ghost-portal/packages/apps-config/src/api/spec/robonomics.ts
Aleksandr Krupenkin 896fad01f5
Updated robonomics chain types (#5013)
* Updated robonomics chain types

* Fix lint
2021-04-02 21:10:16 +02:00

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;