diff --git a/packages/apps-config/src/api/spec/ares-gladios.ts b/packages/apps-config/src/api/spec/ares-gladios.ts index 2c5b1b1a4b..fbed91e9a4 100644 --- a/packages/apps-config/src/api/spec/ares-gladios.ts +++ b/packages/apps-config/src/api/spec/ares-gladios.ts @@ -14,6 +14,7 @@ const definitions: OverrideBundleDefinition = { types: { Address: 'MultiAddress', LookupSource: 'MultiAddress', + BalanceOf: 'Balance', FractionLength: 'u32', RequestInterval: 'u8', JsonNumberValue: { @@ -23,10 +24,88 @@ const definitions: OverrideBundleDefinition = { exponent: 'u32' }, PricePayloadSubPrice: '(Bytes, u64, FractionLength, JsonNumberValue)', + PricePayloadSubJumpBlock: '(Bytes, RequestInterval)', PricePayload: { block_number: 'BlockNumber', price: 'Vec', + jump_block: 'Vec', public: 'AccountId' + }, + PurchasedRequestData: { + account_id: 'AccountId', + offer: 'BalanceOf', + create_bn: 'BlockNumber', + submit_threshold: 'u8', + max_duration: 'u64', + request_keys: 'Vec>' + }, + PurchasedPricePayload: { + block_number: 'BlockNumber', + purchase_id: 'Vec', + price: 'Vec', + public: 'AccountId' + }, + PurchasedAvgPriceData: { + create_bn: 'u64', + reached_type: 'u8', + price_data: '(u64, FractionLength)' + }, + PurchasedDefaultData: { + submit_threshold: 'u8', + max_duration: 'u64', + avg_keep_duration: 'u64', + unit_price: 'u64' + }, + PurchasedForceCleanPayload: { + BlockNumber: 'BlockNumber', + purchase_id_list: 'Vec>', + public: 'AccountId' + }, + OcwControlData: { + need_verifier_check: 'bool', + open_free_price_reporter: 'bool', + open_paid_price_reporter: 'bool' + }, + AskPeriodNum: 'u64', + PurchaseId: 'Vec', + AskPointNum: 'u32', + PaidValue: { + create_bn: 'BlockNumber', + amount: 'BalanceOf', + is_income: 'bool' + }, + // estimates price + SymbolEstimatesConfig: { + symbol: 'Bytes', + id: 'u64', + price: 'Balance', + start: 'BlockNumber', + length: 'BlockNumber', + delay: 'BlockNumber', + deviation: 'Permill', + state: 'EstimatesState', + total_reward: 'Balance' + }, + EstimatesState: { + _enum: [ + 'InActive', + 'Active', + 'WaitingPayout', + 'Completed' + ] + }, + AccountParticipateEstimates: { + account: 'AccountId', + estimates: 'u64', + eth_address: 'Option' + }, + ChooseWinnersPayload: { + block_number: 'BlockNumber', + winners: 'Vec', + public: 'AccountId', + estimates_config: 'Bytes', + symbol: 'Bytes', + price: '(u64, FractionLength)' } } } diff --git a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts index 946b9e9a7e..94e280dbd8 100644 --- a/packages/apps-config/src/endpoints/productionRelayPolkadot.ts +++ b/packages/apps-config/src/endpoints/productionRelayPolkadot.ts @@ -55,6 +55,15 @@ export function createPolkadot (t: TFunction): EndpointOption { 'Polkawallet 0': 'wss://acala.polkawallet.io' } }, + { + info: 'odyssey', + homepage: 'https://www.aresprotocol.io/', + paraId: 2028, + text: t('rpc.polkadot.odyssey', 'Ares Odyssey', { ns: 'apps-config' }), + providers: { + AresProtocol: 'wss://wss.odyssey.aresprotocol.io' + } + }, { info: 'astar', homepage: 'https://astar.network', diff --git a/packages/apps-config/src/ui/colors.ts b/packages/apps-config/src/ui/colors.ts index f3cdab588e..0512a98178 100644 --- a/packages/apps-config/src/ui/colors.ts +++ b/packages/apps-config/src/ui/colors.ts @@ -145,6 +145,7 @@ const nodeMybank = '#282736'; const nodeNFTMart = '#307182'; const nodeNodle = '#1ab394'; const nodeOakTestnet = '#E38985'; +const nodeOdyssey = '#1295F0'; const nodeOpportunity = '#6143bc'; const nodeOriginTrail = '#131415'; const nodePangolin = '#5744ff'; @@ -194,6 +195,7 @@ export const chainColors: Record = Object.entries({ 'Aleph Zero Testnet': chainAleph, 'Apron PC1': chainApron, 'Ares Gladios': chainAresGladios, + 'Ares Odyssey': nodeOdyssey, 'Ares PC1': chainRoccoAres, Astar: chainAstar, 'Beast Developer': chainBeastEave, diff --git a/packages/apps-config/src/ui/logos/index.ts b/packages/apps-config/src/ui/logos/index.ts index a337ccb4cd..2470371d1c 100644 --- a/packages/apps-config/src/ui/logos/index.ts +++ b/packages/apps-config/src/ui/logos/index.ts @@ -167,6 +167,7 @@ export const chainLogos = Object.entries({ Altair: chainAltair, 'Apron PC1': nodeApron, 'Ares Gladios': nodeAresGladios, + 'Ares Odyssey': nodeAresGladios, 'Ares PC1': nodeAres, Astar: chainAstar, 'Beast Developer': nodeBeast, @@ -556,6 +557,7 @@ export const namedLogos: Record = { nftmart: nodeNFTMart, nodle: nodeNodle, 'oak-testnet': oakTestnet, + odyssey: nodeAresGladios, opal: nodeUniqueWestend, opportunity: nodeOpportunity, 'origintrail-parachain-testnet': nodeOriginTrail, diff --git a/packages/apps/public/locales/en/apps-config.json b/packages/apps/public/locales/en/apps-config.json index 41c4cc003e..ced0a96cf2 100644 --- a/packages/apps/public/locales/en/apps-config.json +++ b/packages/apps/public/locales/en/apps-config.json @@ -60,6 +60,7 @@ "rpc.polkadot.litentry": "Litentry", "rpc.polkadot.manta": "Manta", "rpc.polkadot.moonbeam": "Moonbeam", + "rpc.polkadot.odyssey": "Ares Odyssey", "rpc.polkadot.parallel": "Parallel", "rpc.polkadot.parity": "Polkadot", "rpc.polkadot.statemint-shell": "Statemint (Shell)", @@ -225,4 +226,4 @@ "testnet.kylin-node.co.uk": "Kylin Testnet", "westend-opal.unique.network": "OPAL by UNIQUE", "westend.kylin-node.co.uk": "Pichiu Network" -} \ No newline at end of file +}