From 463759de78192847268d3ebadb06194d2a4d2a15 Mon Sep 17 00:00:00 2001 From: William Freudenberger Date: Wed, 10 Mar 2021 18:02:02 +0100 Subject: [PATCH] Update KILT types for upcoming release (#4812) * chore: upgrade KILT types for 0.24.0 release * refactor: add KILT name to mashnet --- packages/apps-config/src/api/spec/kilt.ts | 29 +++++++++++++++---- packages/apps-config/src/endpoints/testing.ts | 2 +- .../apps/public/locales/en/apps-config.json | 4 +-- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/packages/apps-config/src/api/spec/kilt.ts b/packages/apps-config/src/api/spec/kilt.ts index 513d17c0c7..b4d4f4c2a6 100644 --- a/packages/apps-config/src/api/spec/kilt.ts +++ b/packages/apps-config/src/api/spec/kilt.ts @@ -12,16 +12,35 @@ const definitions: OverrideBundleDefinition = { // on all versions minmax: [0, undefined], types: { - Address: 'AccountId', - BlockNumber: 'u64', + Attestation: { + attester: 'AccountId', + ctypeHash: 'Hash', + delegationId: 'Option', + revoked: 'bool' + }, + Balance: 'u128', + DelegationNode: { + owner: 'AccountId', + parent: 'Option', + permissions: 'Permissions', + revoked: 'bool', + rootId: 'DelegationNodeId' + }, DelegationNodeId: 'Hash', - ErrorCode: 'u16', + DelegationRoot: { + ctypeHash: 'Hash', + owner: 'AccountId', + revoked: 'bool' + }, + DidRecord: { + boxKey: 'Hash', + docRef: 'Option>', + signKey: 'Hash' + }, Index: 'u64', - LookupSource: 'AccountId', Permissions: 'u32', PublicBoxKey: 'Hash', PublicSigningKey: 'Hash', - RefCount: 'u8', Signature: 'MultiSignature' } } diff --git a/packages/apps-config/src/endpoints/testing.ts b/packages/apps-config/src/endpoints/testing.ts index a7726a8163..7051f66da0 100644 --- a/packages/apps-config/src/endpoints/testing.ts +++ b/packages/apps-config/src/endpoints/testing.ts @@ -155,7 +155,7 @@ export function createTesting (t: TFunction): LinkOption[] { }, { info: 'kilt', - text: t('rpc.kilt', 'Mashnet', { ns: 'apps-config' }), + text: t('rpc.kilt', 'KILT Mashnet', { ns: 'apps-config' }), providers: { 'KILT Protocol': 'wss://full-nodes.kilt.io:9944/' } diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index f746cce29e..62639241dd 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -37,7 +37,7 @@ "rpc.hosted.by": "hosted by {{host}}", "rpc.hydra": "HydraDX", "rpc.jupiter": "Jupiter", - "rpc.kilt": "Mashnet", + "rpc.kilt": "KILT Mashnet", "rpc.kulupu": "Kulupu", "rpc.kusama.ava": "Kusama", "rpc.kusama.onfinality": "Kusama", @@ -98,4 +98,4 @@ "rpc.westend": "Westend", "rpc.zero": "Zero", "ss58.default": "Default for the connected node" -} \ No newline at end of file +}