feat: add types to Bifrost testnet (#4134)

This commit is contained in:
Janpo Pan 2020-12-02 19:01:16 +08:00 committed by GitHub
parent cbf9e32730
commit 77b8fb6ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,33 +65,31 @@ export default {
from: 'AccountId',
token_symbol: 'TokenSymbol'
},
Processing: { tx_id: 'Vec<u8>', multi_sig_tx: 'MultiSigTx' },
Sent: { tx_id: 'Vec<u8>', from: 'AccountId', token_symbol: 'TokenSymbol' },
Fail: { tx_id: 'Vec<u8>', reason: 'Vec<u8>', tx: 'MultiSigTx' },
Failure: { tx_id: 'Vec<u8>', reason: 'Vec<u8>' },
Succeeded: { tx_id: 'Vec<u8>' },
Failed: { tx_id: 'Vec<u8>', reason: 'Vec<u8>' },
TxOut: {
_enum: {
Initial: 'MultiSigTx',
Generated: 'MultiSigTx',
Signed: 'MultiSigTx',
Processing: 'Processing',
Success: 'Vec<u8>',
Fail: 'Fail'
}
},
TxOutV1: {
_enum: {
Initialized: 'MultiSigTx',
Created: 'MultiSigTx',
CompleteSigned: 'MultiSigTx',
SignComplete: 'MultiSigTx',
Sent: 'Sent',
Succeeded: 'Vec<u8>',
Failure: 'Failure'
Succeeded: 'Succeeded',
Failed: 'Failed'
}
},
RewardRecord: { account_id: 'AccountId', record_amount: 'Balance' },
ConvertPrice: 'u128',
RatePerBlock: 'u64',
Fee: 'u64',
PoolId: 'u32',
Nonce: 'u32',
PoolDetails: { owner: 'AccountId', swap_fee_rate: 'Fee', active: 'bool' },
PoolCreateTokenDetails: {
token_id: 'TokenSymbol',
token_balance: 'Balance',
token_weight: 'PoolWeight'
},
TokenPool: 'Balance',
VTokenPool: 'Balance',
InVariantPool: 'Balance',
@ -104,14 +102,14 @@ export default {
'vIOST'
]
},
TrxStatus: {
TransactionStatus: {
_enum: [
'Initial',
'Generated',
'Signed',
'Processing',
'Success',
'Fail'
'Initialized',
'Created',
'SignComplete',
'Sent',
'Succeeded',
'Failed'
]
},
Cost: 'u128',