Update Odyssey parachain (#7019)
* update json * Update for Odyssey * remove todo. * update Odyssey * Fix odyssey - named logo * update sort * update sort * support ares-chain v1.1.0 * support ares-chain v1.1.0 * support ares-chain v1.1.0 * support ares-chain v1.1.0 * support ares-chain v1.1.0 * support ares-chain v1.1.0 * support ares-chain v1.1.0 * update ares pic * support ares-chain v1.1.0 * update gladios png * support ares-chain v1.1.0 * update ares-gladios.ts * update ares-gladios.ts * fix pic not find * sort order * remove repetitive * update ares-gladios.ts * Update type for runtime 106 * Add parachain-mars type json. * Add parachain-odyssey logos/index.ts * Update AccountParticipateEstimates, bsc_address, estimates_id * update index.ts Co-authored-by: linhai <kami@cancanyou.com> Co-authored-by: zzm <zzmwork8@gmail.com>
This commit is contained in:
parent
acd01fe058
commit
bd8183f84e
@ -20,13 +20,13 @@ const definitions: OverrideBundleDefinition = {
|
||||
end: 'BlockNumber',
|
||||
estimates: 'Option<u64>',
|
||||
range_index: 'Option<u8>',
|
||||
eth_address: 'Option<Bytes>',
|
||||
bsc_address: 'Option<Bytes>',
|
||||
multiplier: 'MultiplierOption',
|
||||
reward: 'u128'
|
||||
},
|
||||
AresPriceData: {
|
||||
price: 'u64',
|
||||
account_id: 'AuthorityId',
|
||||
account_id: 'AccountId',
|
||||
create_bn: 'BlockNumber',
|
||||
fraction_len: 'FractionLength',
|
||||
raw_number: 'JsonNumberValue',
|
||||
@ -37,7 +37,7 @@ const definitions: OverrideBundleDefinition = {
|
||||
block_number: 'BlockNumber',
|
||||
winners: 'Vec<AccountParticipateEstimates>',
|
||||
public: 'AccountId',
|
||||
estimates_config: 'Bytes',
|
||||
estimates_id: 'u64',
|
||||
symbol: 'Bytes',
|
||||
price: '(u64, FractionLength)'
|
||||
},
|
||||
@ -99,7 +99,8 @@ const definitions: OverrideBundleDefinition = {
|
||||
is_income: 'bool'
|
||||
},
|
||||
PurchasedId: 'Bytes',
|
||||
PriceKey: 'Bytes',
|
||||
PriceKey: 'Vec<u8>',
|
||||
PriceToken: 'Bytes',
|
||||
PreCheckPayload: {
|
||||
block_number: 'BlockNumber',
|
||||
pre_check_stash: 'AccountId',
|
||||
@ -164,8 +165,7 @@ const definitions: OverrideBundleDefinition = {
|
||||
PurchasedDefaultData: {
|
||||
submit_threshold: 'u8',
|
||||
max_duration: 'u64',
|
||||
avg_keep_duration: 'u64',
|
||||
unit_price: 'u64'
|
||||
avg_keep_duration: 'u64'
|
||||
},
|
||||
PurchasedForceCleanPayload: {
|
||||
BlockNumber: 'BlockNumber',
|
||||
@ -174,6 +174,14 @@ const definitions: OverrideBundleDefinition = {
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PurchaseId: 'Vec<u8>',
|
||||
Releases: {
|
||||
_enum: [
|
||||
'V1_0_0_Ancestral',
|
||||
'V1_0_1_HttpErrUpgrade',
|
||||
'V1_1_0_HttpErrUpgrade',
|
||||
'V1_2_0'
|
||||
]
|
||||
},
|
||||
RequestInterval: 'u8',
|
||||
StatusErr: '(u16)',
|
||||
SymbolEstimatesConfig: {
|
||||
|
||||
@ -12,8 +12,194 @@ const definitions: OverrideBundleDefinition = {
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId'
|
||||
Address: 'MultiAddress',
|
||||
AskPeriodNum: 'u64',
|
||||
AskPointNum: 'u32',
|
||||
AuthorityAres: 'AccountId',
|
||||
AccountParticipateEstimates: {
|
||||
account: 'AccountId',
|
||||
end: 'BlockNumber',
|
||||
estimates: 'Option<u64>',
|
||||
range_index: 'Option<u8>',
|
||||
eth_address: 'Option<Bytes>',
|
||||
multiplier: 'MultiplierOption',
|
||||
reward: 'u128'
|
||||
},
|
||||
AresPriceData: {
|
||||
price: 'u64',
|
||||
account_id: 'AccountId',
|
||||
create_bn: 'BlockNumber',
|
||||
fraction_len: 'FractionLength',
|
||||
raw_number: 'JsonNumberValue',
|
||||
timestamp: 'u64'
|
||||
},
|
||||
BalanceOf: 'Balance',
|
||||
ChooseWinnersPayload: {
|
||||
block_number: 'BlockNumber',
|
||||
winners: 'Vec<AccountParticipateEstimates>',
|
||||
public: 'AccountId',
|
||||
estimates_config: 'Bytes',
|
||||
symbol: 'Bytes',
|
||||
price: '(u64, FractionLength)'
|
||||
},
|
||||
EstimatesState: {
|
||||
_enum: [
|
||||
'InActive',
|
||||
'Active',
|
||||
'WaitingPayout',
|
||||
'Completed'
|
||||
]
|
||||
},
|
||||
EstimatesType: {
|
||||
_enum: [
|
||||
'DEVIATION', 'RANGE'
|
||||
]
|
||||
},
|
||||
FractionLength: 'u32',
|
||||
HttpError: {
|
||||
_enum: {
|
||||
IoErr: 'Bytes',
|
||||
TimeOut: 'Bytes',
|
||||
StatusErr: '(Bytes,u16)',
|
||||
ParseErr: 'Bytes'
|
||||
}
|
||||
},
|
||||
HttpErrTracePayload: {
|
||||
trace_data: 'HttpErrTraceData<BlockNumber, AuthorityId>',
|
||||
auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
HttpErrTraceData: {
|
||||
block_number: 'BlockNumber',
|
||||
err_auth: 'AuthorityId',
|
||||
err_status: 'HttpError',
|
||||
tip: 'Bytes'
|
||||
},
|
||||
JsonNumberValue: {
|
||||
integer: 'u64',
|
||||
fraction: 'u64',
|
||||
fraction_length: 'u32',
|
||||
exponent: 'u32'
|
||||
},
|
||||
Keys: 'SessionKeys4',
|
||||
LookupSource: 'MultiAddress',
|
||||
MultiplierOption: {
|
||||
_enum: [
|
||||
'Base1', 'Base2', 'Base5'
|
||||
]
|
||||
},
|
||||
OcwControlData: {
|
||||
need_verifier_check: 'bool',
|
||||
open_free_price_reporter: 'bool',
|
||||
open_paid_price_reporter: 'bool'
|
||||
},
|
||||
OffchainSignature: 'MultiSignature',
|
||||
PaidValue: {
|
||||
create_bn: 'BlockNumber',
|
||||
amount: 'BalanceOf',
|
||||
is_income: 'bool'
|
||||
},
|
||||
PurchasedId: 'Bytes',
|
||||
PriceKey: 'Vec<u8>',
|
||||
PriceToken: 'Bytes',
|
||||
PreCheckPayload: {
|
||||
block_number: 'BlockNumber',
|
||||
pre_check_stash: 'AccountId',
|
||||
pre_check_auth: 'AuthorityId',
|
||||
auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PreCheckResultPayload: {
|
||||
block_number: 'BlockNumber',
|
||||
pre_check_list: 'Vec<PreCheckStruct>',
|
||||
pre_check_stash: 'AccountId',
|
||||
pre_check_auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PreCheckCompareLog: {
|
||||
chain_avg_price_list: 'BTreeMap<Bytes, (u64, FractionLength)>',
|
||||
validator_up_price_list: 'BTreeMap<Bytes, (u64, FractionLength)>',
|
||||
raw_precheck_list: 'Vec<PreCheckStruct>'
|
||||
},
|
||||
PreCheckStruct: {
|
||||
price_key: 'Vec<u8>',
|
||||
number_val: 'JsonNumberValue',
|
||||
max_offset: 'Percent',
|
||||
timestamp: 'u64'
|
||||
},
|
||||
PricePayloadSubPrice: '(PriceKey, u64, FractionLength, JsonNumberValue, u64)',
|
||||
PricePayloadSubJumpBlock: '(PriceKey, RequestInterval)',
|
||||
PricePayload: {
|
||||
block_number: 'BlockNumber',
|
||||
price: 'Vec<PricePayloadSubPrice>',
|
||||
jump_block: 'Vec<PricePayloadSubJumpBlock>',
|
||||
auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PreCheckStatus: {
|
||||
_enum: [
|
||||
'Review',
|
||||
'Prohibit',
|
||||
'Pass'
|
||||
]
|
||||
},
|
||||
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>',
|
||||
auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PurchasedAvgPriceData: {
|
||||
create_bn: 'u64',
|
||||
reached_type: 'u8',
|
||||
price_data: '(u64, FractionLength)'
|
||||
},
|
||||
PurchasedDefaultData: {
|
||||
submit_threshold: 'u8',
|
||||
max_duration: 'u64',
|
||||
avg_keep_duration: 'u64'
|
||||
},
|
||||
PurchasedForceCleanPayload: {
|
||||
BlockNumber: 'BlockNumber',
|
||||
purchase_id_list: 'Vec<Vec<u8>>',
|
||||
auth: 'AuthorityId',
|
||||
public: 'MultiSigner'
|
||||
},
|
||||
PurchaseId: 'Vec<u8>',
|
||||
Releases: {
|
||||
_enum: [
|
||||
'V1_0_0_Ancestral',
|
||||
'V1_0_1_HttpErrUpgrade',
|
||||
'V1_1_0_HttpErrUpgrade',
|
||||
'V1_2_0'
|
||||
]
|
||||
},
|
||||
RequestInterval: 'u8',
|
||||
StatusErr: '(u16)',
|
||||
SymbolEstimatesConfig: {
|
||||
symbol: 'Bytes',
|
||||
estimates_type: 'EstimatesType',
|
||||
id: 'u64',
|
||||
ticket_price: 'Balance',
|
||||
symbol_completed_price: 'u64',
|
||||
symbol_fraction: 'FractionLength',
|
||||
start: 'BlockNumber',
|
||||
end: 'BlockNumber',
|
||||
distribute: 'BlockNumber',
|
||||
deviation: 'Option<Permill>',
|
||||
range: 'Option<Vec<u64>>',
|
||||
total_reward: 'Balance',
|
||||
state: 'EstimatesState'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -138,7 +138,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
altair,
|
||||
apron,
|
||||
'ares-gladios': aresGladios,
|
||||
'ares-parachain': aresParachain,
|
||||
'ares-mars': aresParachain,
|
||||
'ares-odyssey': aresParachain,
|
||||
asgard: bifrostAsgard,
|
||||
astar,
|
||||
automata: automata,
|
||||
|
||||
@ -323,6 +323,7 @@ export const chainColors: Record<string, string> = Object.entries({
|
||||
'Neumann Network': chainNeumann,
|
||||
'NFTMart Staging': chainNFTMart,
|
||||
'NFTMart Testnet': chainNFTMart,
|
||||
Odyssey: nodeOdyssey,
|
||||
'Opal Node': chainOpal,
|
||||
'OriginTrail Parachain': nodeOriginTrail,
|
||||
'OriginTrail Parachain Testnet': nodeOriginTrail,
|
||||
|
||||
@ -184,7 +184,6 @@ export const chainLogos = Object.entries({
|
||||
Altair: chainAltair,
|
||||
'Apron PC1': nodeApron,
|
||||
'Ares Gladios': nodeAresGladios,
|
||||
'Ares Odyssey': nodeAresGladios,
|
||||
'Ares PC1': nodeAres,
|
||||
Astar: chainAstar,
|
||||
Automata: nodeAutomata,
|
||||
@ -271,6 +270,7 @@ export const chainLogos = Object.entries({
|
||||
NFTMart: nodeNFTMart,
|
||||
'NFTMart Staging': nodeNFTMart,
|
||||
'NFTMart Testnet': nodeNFTMart,
|
||||
Odyssey: nodeAresGladios,
|
||||
'OPAL by UNIQUE': chainOpal,
|
||||
'OriginTrail Parachain': nodeOriginTrail,
|
||||
'OriginTrail Parachain Testnet': nodeOriginTrail,
|
||||
|
||||
@ -254,4 +254,4 @@
|
||||
"ss58.default": "Default for the connected node",
|
||||
"testnet.kylin-node.co.uk": "Kylin Testnet",
|
||||
"westend.kylin-node.co.uk": "Pichiu"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user