update BitCountry latest customType and upgrade paraId to 1008 (#5207)
* update BitCountry customType and paraId * fix single quote lint * spacing by formatter
This commit is contained in:
parent
c21dcbb638
commit
abca622c10
128
packages/apps-config/src/api/spec/bitcountry-rococo.ts
Normal file
128
packages/apps-config/src/api/spec/bitcountry-rococo.ts
Normal file
@ -0,0 +1,128 @@
|
||||
// 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: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
AssetInfo: {
|
||||
owner: 'AccountId',
|
||||
data: 'AssetData'
|
||||
},
|
||||
AssetData: {
|
||||
name: 'Text',
|
||||
description: 'Text',
|
||||
properties: 'Text',
|
||||
supporters: 'Vec<AccountId>'
|
||||
},
|
||||
AuctionId: 'u64',
|
||||
AuctionItem: {
|
||||
asset_id: 'TokenId',
|
||||
class_id: 'ClassId',
|
||||
recipient: 'AccountId',
|
||||
initial_amount: 'Balance',
|
||||
amount: 'Balance',
|
||||
start_time: 'u32',
|
||||
end_time: 'u32'
|
||||
},
|
||||
AuctionInfo: {
|
||||
bid: 'Option<(AccountId,Balance)>',
|
||||
start: 'BlockNumber',
|
||||
end: 'Option<BlockNumber>'
|
||||
},
|
||||
RentId: 'u64',
|
||||
RentalInfo: {
|
||||
owner: 'AccountId',
|
||||
start: 'BlockNumber',
|
||||
end: 'Option<BlockNumber>',
|
||||
price_per_block: 'Balance'
|
||||
},
|
||||
CountryId: 'u64',
|
||||
CollectionId: 'u64',
|
||||
ClassId: 'u32',
|
||||
TokenId: 'u64',
|
||||
ClassInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
total_issuance: 'TokenId',
|
||||
owner: 'AccountId',
|
||||
data: 'NftClassData'
|
||||
},
|
||||
TokenInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
data: 'NftAssetData'
|
||||
},
|
||||
NftCollectionData: {
|
||||
name: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
properties: 'Vec<u8>'
|
||||
},
|
||||
TokenType: {
|
||||
_enum: [
|
||||
'Transferrable',
|
||||
'BoundToAddress'
|
||||
]
|
||||
},
|
||||
NftAssetData: {
|
||||
name: 'Vec<u8>',
|
||||
description: 'Vec<u8>',
|
||||
properties: 'Vec<u8>'
|
||||
},
|
||||
NftClassData: {
|
||||
deposit: 'Balance',
|
||||
properties: 'Vec<u8>',
|
||||
token_type: 'TokenType'
|
||||
},
|
||||
NetworkId: {
|
||||
_enum: {
|
||||
Any: 'Null',
|
||||
Named: 'Vec<u8>',
|
||||
Polkadot: 'Null',
|
||||
Kusama: 'Null'
|
||||
}
|
||||
},
|
||||
CurrencyId: {
|
||||
_enum: {
|
||||
Token: 'TokenSymbol'
|
||||
}
|
||||
},
|
||||
TokenSymbol: {
|
||||
_enum: [
|
||||
'NUUM',
|
||||
'AUSD',
|
||||
'ACA',
|
||||
'DOT'
|
||||
]
|
||||
},
|
||||
CountryCurrencyId: 'u32',
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
BalanceIdOf: 'Balance',
|
||||
ChainId: {
|
||||
_enum: {
|
||||
RelayChain: 'Null',
|
||||
ParaChain: 'ParaId'
|
||||
}
|
||||
},
|
||||
XCurrencyId: {
|
||||
chain_id: 'ChainId',
|
||||
currency_id: 'CurrencyId'
|
||||
},
|
||||
GroupCollectionId: 'u64',
|
||||
ClassIdOf: 'u32',
|
||||
TokenIdOf: 'u32',
|
||||
SpotId: 'u32'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -14,34 +14,32 @@ const definitions: OverrideBundleDefinition = {
|
||||
types: {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
Balance: 'u128',
|
||||
AssetId: 'u64',
|
||||
BlockNumber: 'u32',
|
||||
AssetInfo: {
|
||||
owner: 'AccountId',
|
||||
data: 'AssetData'
|
||||
},
|
||||
AssetData: {
|
||||
name: 'Vec<u8>',
|
||||
description: 'Vec<u8>',
|
||||
properties: 'Vec<u8>',
|
||||
name: 'Text',
|
||||
description: 'Text',
|
||||
properties: 'Text',
|
||||
supporters: 'Vec<AccountId>'
|
||||
},
|
||||
AuctionId: 'u64',
|
||||
AuctionItem: {
|
||||
asset_id: 'AssetId',
|
||||
asset_id: 'TokenId',
|
||||
class_id: 'ClassId',
|
||||
recipient: 'AccountId',
|
||||
initial_amount: 'Balance',
|
||||
amount: 'Balance',
|
||||
start_time: 'u32',
|
||||
ed_time: 'u32'
|
||||
end_time: 'u32'
|
||||
},
|
||||
AuctionInfo: {
|
||||
bid: 'Option<(AccountId,Balance)>',
|
||||
start: 'BlockNumber',
|
||||
end: 'Option<BlockNumber>'
|
||||
},
|
||||
RentId: 'u64 ',
|
||||
RentId: 'u64',
|
||||
RentalInfo: {
|
||||
owner: 'AccountId',
|
||||
start: 'BlockNumber',
|
||||
@ -49,11 +47,33 @@ const definitions: OverrideBundleDefinition = {
|
||||
price_per_block: 'Balance'
|
||||
},
|
||||
CountryId: 'u64',
|
||||
CountryCurrencyId: 'u32',
|
||||
CollectionId: 'u64',
|
||||
CurrencyId: 'u32',
|
||||
ClassId: 'u32',
|
||||
TokenId: 'u64',
|
||||
ClassInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
total_issuance: 'TokenId',
|
||||
owner: 'AccountId',
|
||||
data: 'NftClassData'
|
||||
},
|
||||
TokenInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
data: 'NftAssetData'
|
||||
},
|
||||
NftCollectionData: {
|
||||
name: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
properties: 'Vec<u8>'
|
||||
},
|
||||
CurrencyId: 'u32',
|
||||
CurrencyIdOf: 'CurrencyId',
|
||||
BalanceIdOf: 'Balance'
|
||||
BalanceIdOf: 'Balance',
|
||||
GroupCollectionId: 'u64',
|
||||
ClassIdOf: 'u32',
|
||||
TokenIdOf: 'u32',
|
||||
SpotId: 'u32'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -9,6 +9,7 @@ import aresParachain from './ares-parachain';
|
||||
import bifrost from './bifrost';
|
||||
import bifrostParachain from './bifrost-parachain';
|
||||
import bitcountry from './bitcountry';
|
||||
import bitcountryParachain from './bitcountry-rococo';
|
||||
import canvas from './canvas';
|
||||
import centrifugeChain from './centrifuge-chain';
|
||||
import chainx from './chainx';
|
||||
@ -96,6 +97,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
bifrost: bifrost,
|
||||
'bifrost-parachain': bifrostParachain,
|
||||
'bitcountry-node': bitcountry,
|
||||
'bitcountry-parachain': bitcountryParachain,
|
||||
'btc-parachain': polkabtc,
|
||||
canvas,
|
||||
'centrifuge-chain': centrifugeChain,
|
||||
|
||||
@ -92,8 +92,7 @@ export function createRococo (t: TFunction): LinkOption[] {
|
||||
info: 'rococoBitCountry',
|
||||
// Needs paraId >= 1000, below that is reserved for system parachains
|
||||
// Update paraId to new selection, remove this flag to enable
|
||||
isDisabled: true,
|
||||
paraId: 8,
|
||||
paraId: 1008,
|
||||
text: t('rpc.rococo.bitcountry', 'Bit.Country PC1', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
BitCountry: 'wss://tewai-parachain.bit.country:9955'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user