From 58bc2b5b4504aa6da879d4aa7b0b93ac02648334 Mon Sep 17 00:00:00 2001 From: William Freudenberger Date: Mon, 29 Mar 2021 18:48:29 +0200 Subject: [PATCH] feat: add KILT xcmp types (#4971) --- packages/apps-config/src/api/spec/kilt.ts | 45 ++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/packages/apps-config/src/api/spec/kilt.ts b/packages/apps-config/src/api/spec/kilt.ts index b4d4f4c2a6..9aff7d63f2 100644 --- a/packages/apps-config/src/api/spec/kilt.ts +++ b/packages/apps-config/src/api/spec/kilt.ts @@ -41,7 +41,50 @@ const definitions: OverrideBundleDefinition = { Permissions: 'u32', PublicBoxKey: 'Hash', PublicSigningKey: 'Hash', - Signature: 'MultiSignature' + Signature: 'MultiSignature', + XCurrencyId: { + chainId: 'ChainId', + currencyId: 'Vec' + }, + ChainId: { + _enum: { + RelayChain: 'Null', + ParaChain: 'ParaId' + } + }, + CurrencyIdOf: 'CurrencyId', + CurrencyId: { + _enum: { + DOT: 0, + KSM: 1, + KILT: 2 + } + }, + XcmError: { + _enum: { + Undefined: 0, + Unimplemented: 1, + UnhandledXcmVersion: 2, + UnhandledXcmMessage: 3, + UnhandledEffect: 4, + EscalationOfPrivilege: 5, + UntrustedReserveLocation: 6, + UntrustedTeleportLocation: 7, + DestinationBufferOverflow: 8, + CannotReachDestination: 9, + MultiLocationFull: 10, + FailedToDecode: 11, + BadOrigin: 12, + ExceedsMaxMessageSize: 13, + FailedToTransactAsset: 14 + } + }, + ReferendumInfo: { + _enum: { + Ongoing: 'ReferendumStatus', + Finished: 'ReferendumInfoFinished' + } + } } } ]