Skip to content

Commit

Permalink
Update Ternoa types and rename Ternoa Chaos network to Ternoa Testnet (
Browse files Browse the repository at this point in the history
…#6240)

* updated ternoa types to support new marketplace features

* rebranded Ternoa Chaos to Ternoa Testnet
  • Loading branch information
markopoloparadox authored Oct 5, 2021
1 parent 0e3de26 commit c9047e7
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 10 deletions.
67 changes: 63 additions & 4 deletions packages/apps-config/src/api/spec/ternoa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,83 @@ 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',
sealed: 'bool',
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'
}
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions packages/apps-config/src/endpoints/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-config/src/ui/logos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/public/locales/en/apps-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/public/locales/it/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down

0 comments on commit c9047e7

Please sign in to comment.