forked from polkadot-js/apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
riochain.ts
103 lines (99 loc) · 2.6 KB
/
riochain.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Copyright 2017-2023 @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: {
LookupSource: 'IndicesLookupSource',
Address: 'LookupSource',
Amount: 'i128',
AmountOf: 'Amount',
CurrencyId: 'u32',
CurrencyIdOf: 'CurrencyId',
Price: 'FixedU128',
OracleKey: 'CurrencyId',
Chain:
{
_enum:
['Rio',
'Bitcoin',
'Litecoin',
'Ethereum',
'EOS',
'Polkadot',
'Kusama',
'ChainX']
},
AssetInfo:
{
chain: 'Chain',
symbol: 'Text',
name: 'Text',
decimals: 'u8',
desc: 'Text'
},
FeeExchangeV1: { max_payment: 'Compact<Balance>' },
FeeExchange: { _enum: { V1: 'Compact<FeeExchangeV1>' } },
Restriction:
{
_enum:
['Transferable',
'Depositable',
'Withdrawable',
'Slashable',
'Reservable',
'Unreservable']
},
TxHash: 'H256',
Deposit: { account_id: 'AccountId', amount: 'Balance' },
Auths: { mask: 'u8' },
Auth: { _enum: ['Register', 'Deposit', 'Withdraw', 'Sudo'] },
WithdrawState:
{
_enum:
{
Pending: null,
Cancelled: null,
Rejected: null,
Approved: null,
Success: 'TxHash',
ReBroadcasted: 'TxHash'
}
},
ChainAddress: 'Bytes',
Memo: 'Text',
WithdrawInfo:
{
currency_id: 'CurrencyId',
who: 'AccountId',
value: 'Balance',
addr: 'ChainAddress',
memo: 'Text'
},
WithdrawItem:
{
currency_id: 'CurrencyId',
applicant: 'AccountId',
value: 'Balance',
addr: 'ChainAddress',
memo: 'Text',
state: 'WithdrawState'
},
DepositAddrInfo: { _enum: { Bip32: 'Bip32', Create2: 'Create2' } },
Bip32: { x_pub: 'Text', path: 'Text' },
Create2:
{
creator_address: 'Vec<u8>',
implementation_address: 'Vec<u8>',
vault_address: 'Vec<u8>'
}
}
}
]
};
export default definitions;