69 lines
1.7 KiB
TypeScript
69 lines
1.7 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, undefined],
|
|
types: {
|
|
Address: 'AccountId',
|
|
LookupSource: 'AccountId',
|
|
Lighthouse: 'H160',
|
|
Record: 'Vec<u8>',
|
|
Technics: 'Vec<u8>',
|
|
Economics: '{}',
|
|
Report: {
|
|
index: 'LiabilityIndex',
|
|
sender: 'AccountId',
|
|
payload: 'Vec<u8>',
|
|
signature: 'MultiSignature'
|
|
},
|
|
ReportFor: 'Report',
|
|
Agreement: {
|
|
technics: 'Technics',
|
|
economics: 'Economics',
|
|
promisee: 'AccountId',
|
|
promisor: 'AccountId',
|
|
promisee_signature: 'MultiSignature',
|
|
promisor_signature: 'MultiSignature'
|
|
},
|
|
LiabilityIndex: 'u32',
|
|
ValidationFunctionParams: {
|
|
max_code_size: 'u32',
|
|
relay_chain_height: 'u32',
|
|
code_upgrade_allowed: 'Option<u32>'
|
|
},
|
|
ChainId: {
|
|
_enum: {
|
|
RelayChain: null,
|
|
Parachain: 'ParaId'
|
|
}
|
|
},
|
|
XCurrencyId: {
|
|
chain_id: 'ChainId',
|
|
currency_id: 'Bytes'
|
|
},
|
|
CurrencyIdOf: 'CurrencyId',
|
|
CurrencyId: {
|
|
_enum: {
|
|
Token: 'TokenSymbol'
|
|
}
|
|
},
|
|
TokenSymbol: {
|
|
_enum: ['ACA', 'AUSD', 'DOT', 'XBTC', 'LDOT', 'RENBTC', 'SDN', 'PLM', 'XRT']
|
|
},
|
|
AmountOf: 'Amount',
|
|
Amount: 'i128'
|
|
}
|
|
}
|
|
]
|
|
};
|
|
|
|
export default definitions;
|