ghost-portal/packages/apps-config/src/api/spec/kusari.ts
2021-12-10 14:51:31 +02:00

44 lines
1015 B
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, undefined],
types: {
EvmAddress: 'H160',
EthereumTxHash: 'H256',
Address: 'MultiAddress',
LookupSource: 'MultiAddress',
AccountInfo: 'AccountInfoWithTripleRefCount',
Account: {
nonce: 'U256',
balance: 'U256'
},
Transaction: {
nonce: 'U256',
action: 'String',
gas_price: 'u64',
gas_limit: 'u64',
value: 'U256',
input: 'Vec<u8>',
signature: 'Signature'
},
Signature: {
v: 'u64',
r: 'H256',
s: 'H256'
}
}
}
]
};
export default definitions;