Update Ternoa types and rename Ternoa Chaos network to Ternoa Testnet (#6240)

* updated ternoa types to support new marketplace features

* rebranded Ternoa Chaos to Ternoa Testnet
This commit is contained in:
Marko Petrlić 2021-10-05 10:41:49 +02:00 committed by GitHub
parent 0e3de2630d
commit c9047e7f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 10 deletions

View File

@ -12,9 +12,11 @@ const definitions: OverrideBundleDefinition = {
// on all versions
minmax: [0, undefined],
types: {
Address: 'AccountId',
AccountDataOf: 'AccountData',
Address: 'MultiAddress',
NFTId: 'u32',
NFTIdOf: 'NFTId',
NFTSeriesId: 'u32',
NFTData: {
owner: 'AccountId',
details: 'NFTDetails',
@ -22,14 +24,71 @@ const definitions: OverrideBundleDefinition = {
locked: 'bool'
},
NFTDetails: {
offchain_uri: 'Vec<u8>'
offchain_uri: 'Vec<u8>',
series_id: 'NFTSeriesId',
is_capsule: 'bool'
},
LookupSource: 'MultiAddress',
NFTSeriesDetails: {
owner: 'AccountId',
nfts: 'Vec<NFTId>'
},
NFTSeriesId: 'u32',
LookupSource: 'AccountId'
NFTCurrencyCombined: {
caps: 'Balance',
tiime: 'Balance'
},
NFTCurrency: {
_enum: {
Caps: 'Balance',
Tiime: 'Balance',
Combined: 'NFTCurrencyCombined'
}
},
NFTCurrencyId: {
_enum: [
'Caps',
'Tiime'
]
},
Request: {
shard: 'ShardIdentifier',
cyphertext: 'Vec<u8>'
},
ShardIdentifier: 'Hash',
MarketplaceId: 'u32',
SaleInformation: {
account_id: 'AccountId',
price: 'NFTCurrency',
marketplace_id: 'MarketplaceId'
},
Status: {
_enum: [
'Free',
'Reserved'
]
},
MarketplaceType: {
_enum: [
'Public',
'Private'
]
},
MarketplaceInformation: {
kind: 'MarketplaceType',
commission_fee: 'u8',
owner: 'AccountId',
allow_list: 'Vec<AccountId>',
name: 'Vec<u8>'
},
ClusterId: 'u32',
EnclaveId: 'u32',
Cluster: {
enclaves: 'Vec<EnclaveId>'
},
Url: 'Vec<u8>',
Enclave: {
api_url: 'Url'
}
}
}
]

View File

@ -414,10 +414,10 @@ export function createTesting (t: TFunction, firstOnly: boolean, withSort: boole
}
},
{
info: 'ternoa-chaos',
text: t('rpc.test.ternoa-chaos', 'Ternoa Chaos', { ns: 'apps-config' }),
info: 'ternoa-testnet',
text: t('rpc.test.ternoa-testnet', 'Ternoa Testnet', { ns: 'apps-config' }),
providers: {
CapsuleCorp: 'wss://chaos.ternoa.com'
CapsuleCorp: 'wss://testnet.ternoa.com/'
}
},
{

View File

@ -605,7 +605,7 @@ export const namedLogos: Record<string, unknown> = {
subsocial: nodeSubsocial,
substrate: nodeSubstrate,
substrateContractsNode: nodeSubstrateContractsNode,
'ternoa-chaos': nodeTernoa,
'ternoa-testnet': nodeTernoa,
trustbase: nodeTrustBase,
uniarts: nodeUniarts,
unique: nodeUnique,

View File

@ -176,7 +176,7 @@
"rpc.test.sora-substrate-staging": "SORA-staging",
"rpc.test.subgame": "SubGame Staging",
"rpc.test.subspace": "Spartan testnet",
"rpc.test.ternoa-chaos": "Ternoa Chaos",
"rpc.test.ternoa-testnet": "Ternoa Testnet",
"rpc.test.turbulence": "Turbulence",
"rpc.test.uniarts": "UniArts",
"rpc.test.unique": "Unique",

View File

@ -1883,7 +1883,7 @@
"rpc.test.snowbridge": "",
"rpc.test.sora-substrate-staging": "",
"rpc.test.subgame": "",
"rpc.test.ternoa-chaos": "",
"rpc.test.ternoa-testnet": "",
"rpc.test.turbulence": "",
"rpc.test.uniarts": "",
"rpc.test.unique": "",