Add Ares Odyssey (#6577)
* update json * Update for Odyssey * remove todo. * update Odyssey * Fix odyssey - named logo * update sort * update sort Co-authored-by: linhai <kami@cancanyou.com>
This commit is contained in:
parent
6bab60ce27
commit
eef26df7dc
@ -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<PricePayloadSubPrice>',
|
||||
jump_block: 'Vec<PricePayloadSubJumpBlock>',
|
||||
public: 'AccountId'
|
||||
},
|
||||
PurchasedRequestData: {
|
||||
account_id: 'AccountId',
|
||||
offer: 'BalanceOf',
|
||||
create_bn: 'BlockNumber',
|
||||
submit_threshold: 'u8',
|
||||
max_duration: 'u64',
|
||||
request_keys: 'Vec<Vec<u8>>'
|
||||
},
|
||||
PurchasedPricePayload: {
|
||||
block_number: 'BlockNumber',
|
||||
purchase_id: 'Vec<u8>',
|
||||
price: 'Vec<PricePayloadSubPrice>',
|
||||
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<Vec<u8>>',
|
||||
public: 'AccountId'
|
||||
},
|
||||
OcwControlData: {
|
||||
need_verifier_check: 'bool',
|
||||
open_free_price_reporter: 'bool',
|
||||
open_paid_price_reporter: 'bool'
|
||||
},
|
||||
AskPeriodNum: 'u64',
|
||||
PurchaseId: 'Vec<u8>',
|
||||
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<Bytes>'
|
||||
},
|
||||
ChooseWinnersPayload: {
|
||||
block_number: 'BlockNumber',
|
||||
winners: 'Vec<AccountParticipateEstimates>',
|
||||
public: 'AccountId',
|
||||
estimates_config: 'Bytes',
|
||||
symbol: 'Bytes',
|
||||
price: '(u64, FractionLength)'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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<string, string> = Object.entries({
|
||||
'Aleph Zero Testnet': chainAleph,
|
||||
'Apron PC1': chainApron,
|
||||
'Ares Gladios': chainAresGladios,
|
||||
'Ares Odyssey': nodeOdyssey,
|
||||
'Ares PC1': chainRoccoAres,
|
||||
Astar: chainAstar,
|
||||
'Beast Developer': chainBeastEave,
|
||||
|
||||
@ -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<string, unknown> = {
|
||||
nftmart: nodeNFTMart,
|
||||
nodle: nodeNodle,
|
||||
'oak-testnet': oakTestnet,
|
||||
odyssey: nodeAresGladios,
|
||||
opal: nodeUniqueWestend,
|
||||
opportunity: nodeOpportunity,
|
||||
'origintrail-parachain-testnet': nodeOriginTrail,
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user