@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user