update jupiter types (#5496)

* update jupiter types

* add AccountInfo on old version
This commit is contained in:
zzcwoshizz 2021-06-08 03:32:08 -05:00 committed by GitHub
parent 1f5acf6604
commit 55a17f49ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<AccountId>'
}
}
},
{
// 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<BlockNumber>',
_reserved: 'Option<Null>'
},
FullIdentification: 'AccountId',
AuthorityState: {
_enum: ['Working', 'Waiting']
},
EraIndex: 'u32',
ActiveEraInfo: {
index: 'EraIndex',
start: 'Option<u64>'
},
UnappliedSlash: {
validator: 'AccountId',
reporters: 'Vec<AccountId>'
}
}
}
]
};