Adding RT4 Types (#3007)

* update to rc6 types

* Adding RT4 Types
This commit is contained in:
Miguel Hervas
2020-12-30 18:20:54 +01:00
committed by GitHub
parent e0b7dd13e0
commit af0bcc80e8
@@ -10,51 +10,74 @@ const sharedTypes = {
AccountInfo: 'AccountInfoWithRefCount',
Address: 'LookupSource',
LookupSource: 'IndicesLookupSource',
Multiplier: 'Fixed64',
// Anchor
AnchorData: {
anchoredBlock: 'u64',
docRoot: 'H256',
id: 'H256'
},
ChainId: 'u8',
DepositNonce: 'u64',
PreCommitData: {
expirationBlock: 'u64',
identity: 'H256',
signingRoot: 'H256'
},
// Fees
Fee: {
key: 'Hash',
price: 'Balance'
},
// MultiAccount
MultiAccountData: {
deposit: 'Balance',
depositor: 'AccountId',
signatories: 'Vec<AccountId>',
threshold: 'u16'
},
Multiplier: 'Fixed64',
PreCommitData: {
expirationBlock: 'u64',
identity: 'H256',
signingRoot: 'H256'
// Bridge
ChainId: 'u8',
DepositNonce: 'u64',
ResourceId: '[u8; 32]',
'chainbridge::ChainId': 'u8',
// NFT
RegistryId: 'H160',
TokenId: 'U256',
AssetId: {
registryId: 'RegistryId',
tokenId: 'TokenId'
},
AssetInfo: {
metadata: 'Bytes'
},
MintInfo: {
anchorId: 'Hash',
proofs: 'Vec<ProofMint>',
staticHashes: '[Hash; 3]'
},
Proof: {
leafHash: 'H256',
sortedHashes: 'H256'
},
ResourceId: '[u8; 32]',
'chainbridge::ChainId': 'u8'
ProofMint: {
hashes: 'Vec<Hash>',
property: 'Bytes',
salt: '[u8; 32]',
value: 'Bytes'
},
RegistryInfo: {
fields: 'Vec<Bytes>',
ownerCanBurn: 'bool'
}
};
const versioned: OverrideVersionedType[] = [
{
minmax: [229, 234],
types: {
...sharedTypes,
RefCount: 'RefCountTo259',
ReferendumInfo: 'ReferendumInfoTo239',
StakingLedger: 'StakingLedgerTo240',
Weight: 'u32'
}
},
{
minmax: [235, undefined],
minmax: [240, undefined],
types: {
...sharedTypes,
RefCount: 'RefCountTo259'