ghost-portal/packages/apps-config/src/api/spec/jupiter.ts
zzcwoshizz 55a17f49ff
update jupiter types (#5496)
* update jupiter types

* add AccountInfo on old version
2021-06-08 10:32:08 +02:00

73 lines
1.8 KiB
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
// structs need to be in order
/* eslint-disable sort-keys */
const definitions: OverrideBundleDefinition = {
types: [
{
// on all versions
minmax: [0, 2],
types: {
LookupSource: 'MultiAddress',
Address: 'MultiAddress',
AccountInfo: 'AccountInfoWithDualRefCount',
FullIdentification: 'AccountId',
AuthorityState: {
_enum: [
'Working',
'Waiting'
]
},
EraIndex: 'u32',
ActiveEraInfo: {
index: 'EraIndex',
start: 'Option<u64>'
},
UnappliedSlash: {
validator: 'AccountId',
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>'
}
}
}
]
};
export default definitions;