From 55a17f49ff3dc3051de0e7be05aa1943e54f3c86 Mon Sep 17 00:00:00 2001 From: zzcwoshizz Date: Tue, 8 Jun 2021 03:32:08 -0500 Subject: [PATCH] update jupiter types (#5496) * update jupiter types * add AccountInfo on old version --- packages/apps-config/src/api/spec/jupiter.ts | 36 +++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/packages/apps-config/src/api/spec/jupiter.ts b/packages/apps-config/src/api/spec/jupiter.ts index 6d59b2ca03..09817a6f9c 100644 --- a/packages/apps-config/src/api/spec/jupiter.ts +++ b/packages/apps-config/src/api/spec/jupiter.ts @@ -10,10 +10,11 @@ const definitions: OverrideBundleDefinition = { types: [ { // on all versions - minmax: [0, undefined], + minmax: [0, 2], types: { LookupSource: 'MultiAddress', Address: 'MultiAddress', + AccountInfo: 'AccountInfoWithDualRefCount', FullIdentification: 'AccountId', AuthorityState: { _enum: [ @@ -31,6 +32,39 @@ const definitions: OverrideBundleDefinition = { reporters: 'Vec' } } + }, + { + // on all versions + minmax: [3, undefined], + types: { + LookupSource: 'MultiAddress', + Address: 'MultiAddress', + AccountInfo: 'AccountInfoWithTripleRefCount', + AliveContractInfo: { + trieId: 'TrieId', + storageSize: 'u32', + pairCount: 'u32', + codeHash: 'CodeHash', + rentAllowance: 'Balance', + rentPayed: 'Balance', + deductBlock: 'BlockNumber', + lastWrite: 'Option', + _reserved: 'Option' + }, + FullIdentification: 'AccountId', + AuthorityState: { + _enum: ['Working', 'Waiting'] + }, + EraIndex: 'u32', + ActiveEraInfo: { + index: 'EraIndex', + start: 'Option' + }, + UnappliedSlash: { + validator: 'AccountId', + reporters: 'Vec' + } + } } ] };