DataHighway mainnet westlake (#5066)
* add DataHighway parachain * fix chain name * add logo * fix order * fix syntax * update colours * update fork * update fork * add types * add types * fix formet * fix format * update endpoint * add DataHighway mainnet westlake * fix linting * fix linting * fix tests
This commit is contained in:
parent
9c125fd9ea
commit
3b5cec6576
@ -70,6 +70,7 @@ import unique from './unique';
|
||||
import unitv from './unitv';
|
||||
import vln from './vln';
|
||||
import vlnrococo from './vln-rococo';
|
||||
import westlake from './westlake';
|
||||
import zeitgeist from './zeitgeist';
|
||||
import zenlink from './zenlink';
|
||||
import zero from './zero';
|
||||
@ -159,6 +160,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
uart,
|
||||
'unit-node': unitv,
|
||||
'unit-parachain': unitv,
|
||||
westlake: westlake,
|
||||
zeitgeist: zeitgeist
|
||||
};
|
||||
|
||||
|
||||
302
packages/apps-config/src/api/spec/westlake.ts
Normal file
302
packages/apps-config/src/api/spec/westlake.ts
Normal file
@ -0,0 +1,302 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import type { OverrideBundleDefinition } from '@polkadot/types/types';
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
const definitions: OverrideBundleDefinition = {
|
||||
types: [
|
||||
{
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Date: 'i64',
|
||||
Keys: 'SessionKeys2',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
RoamingOperator: '[u8; 16]',
|
||||
RoamingOperatorIndex: 'u64',
|
||||
RoamingNetwork: '[u8; 16]',
|
||||
RoamingNetworkIndex: 'u64',
|
||||
RoamingOrganization: '[u8; 16]',
|
||||
RoamingOrganizationIndex: 'u64',
|
||||
RoamingNetworkServer: '[u8; 16]',
|
||||
RoamingNetworkServerIndex: 'u64',
|
||||
RoamingDevice: '[u8; 16]',
|
||||
RoamingDeviceIndex: 'u64',
|
||||
RoamingRoutingProfile: '[u8; 16]',
|
||||
RoamingRoutingProfileIndex: 'u64',
|
||||
RoamingRoutingProfileAppServer: 'Text',
|
||||
RoamingServiceProfile: '[u8; 16]',
|
||||
RoamingServiceProfileIndex: 'u64',
|
||||
RoamingServiceProfileUplinkRate: 'u32',
|
||||
RoamingServiceProfileDownlinkRate: 'u32',
|
||||
RoamingAccountingPolicy: '[u8; 16]',
|
||||
RoamingAccountingPolicyIndex: 'u64',
|
||||
RoamingAccountingPolicyType: 'Text',
|
||||
RoamingAccountingPolicyUplinkFeeFactor: 'u32',
|
||||
RoamingAccountingPolicyDownlinkFeeFactor: 'u32',
|
||||
RoamingAccountingPolicySetting: {
|
||||
policy_type: 'Text',
|
||||
subscription_fee: 'Balance',
|
||||
uplink_fee_factor: 'u32',
|
||||
downlink_fee_factor: 'u32'
|
||||
},
|
||||
RoamingAgreementPolicy: '[u8; 16]',
|
||||
RoamingAgreementPolicyIndex: 'u64',
|
||||
RoamingAgreementPolicyActivationType: 'Text',
|
||||
RoamingAgreementPolicySetting: {
|
||||
policy_activation_type: 'Text',
|
||||
policy_expiry_block: 'Moment'
|
||||
},
|
||||
RoamingNetworkProfile: '[u8; 16]',
|
||||
RoamingNetworkProfileIndex: 'u64',
|
||||
RoamingDeviceProfile: '[u8; 16]',
|
||||
RoamingDeviceProfileIndex: 'u64',
|
||||
RoamingDeviceProfileDevAddr: 'Text',
|
||||
RoamingDeviceProfileDevEUI: 'Text',
|
||||
RoamingDeviceProfileJoinEUI: 'Text',
|
||||
RoamingDeviceProfileVendorID: 'Text',
|
||||
RoamingDeviceProfileSetting: {
|
||||
device_profile_devaddr: 'Text',
|
||||
device_profile_deveui: 'Text',
|
||||
device_profile_joineui: 'Text',
|
||||
device_profile_vendorid: 'Text'
|
||||
},
|
||||
RoamingSession: '[u8; 16]',
|
||||
RoamingSessionIndex: 'u64',
|
||||
RoamingSessionJoinRequest: {
|
||||
session_network_server_id: 'Moment',
|
||||
session_join_requested_at_block: 'Moment'
|
||||
},
|
||||
RoamingSessionJoinAccept: {
|
||||
session_join_request_accept_expiry: 'Moment',
|
||||
session_join_request_accept_accepted_at_block: 'Moment'
|
||||
},
|
||||
RoamingBillingPolicy: '[u8; 16]',
|
||||
RoamingBillingPolicyIndex: 'u64',
|
||||
RoamingBillingPolicySetting: {
|
||||
policy_next_billing_at_block: 'Moment',
|
||||
policy_frequency_in_blocks: 'Moment'
|
||||
},
|
||||
RoamingChargingPolicy: '[u8; 16]',
|
||||
RoamingChargingPolicyIndex: 'u64',
|
||||
RoamingChargingPolicySetting: {
|
||||
policy_next_charging_at_block: 'Moment',
|
||||
policy_delay_after_billing_in_blocks: 'u64'
|
||||
},
|
||||
RoamingPacketBundle: '[u8; 16]',
|
||||
RoamingPacketBundleIndex: 'u64',
|
||||
RoamingPacketBundleReceivedAtHome: 'bool',
|
||||
RoamingPacketBundleReceivedPacketsCount: 'u64',
|
||||
RoamingPacketBundleReceivedPacketsOkCount: 'u64',
|
||||
RoamingPacketBundleExternalDataStorageHash: 'Hash',
|
||||
RoamingPacketBundleReceiver: {
|
||||
packet_bundle_received_at_home: 'bool',
|
||||
packet_bundle_received_packets_count: 'u64',
|
||||
packet_bundle_received_packets_ok_count: 'u64',
|
||||
packet_bundle_received_started_at_block: 'Moment',
|
||||
packet_bundle_received_ended_at_block: 'Moment',
|
||||
packet_bundle_external_data_storage_hash: 'Hash'
|
||||
},
|
||||
MiningRatesToken: '[u8; 16]',
|
||||
MiningRatesTokenIndex: 'u64',
|
||||
MiningRatesTokenTokenDOT: 'u32',
|
||||
MiningRatesTokenTokenMXC: 'u32',
|
||||
MiningRatesTokenTokenIOTA: 'u32',
|
||||
MiningRatesTokenMaxToken: 'u32',
|
||||
MiningRatesTokenMaxLoyalty: 'u32',
|
||||
MiningRatesTokenSetting: {
|
||||
token_token_mxc: 'u32',
|
||||
token_token_iota: 'u32',
|
||||
token_token_dot: 'u32',
|
||||
token_max_token: 'u32',
|
||||
token_max_loyalty: 'u32'
|
||||
},
|
||||
MiningRatesHardware: '[u8; 16]',
|
||||
MiningRatesHardwareIndex: 'u64',
|
||||
MiningRatesHardwareSecure: 'u32',
|
||||
MiningRatesHardwareInsecure: 'u32',
|
||||
MiningRatesHardwareMaxHardware: 'u32',
|
||||
MiningRatesHardwareCategory1MaxTokenBonusPerGateway: 'u32',
|
||||
MiningRatesHardwareCategory2MaxTokenBonusPerGateway: 'u32',
|
||||
MiningRatesHardwareCategory3MaxTokenBonusPerGateway: 'u32',
|
||||
MiningRatesHardwareSetting: {
|
||||
hardware_hardware_secure: 'u32',
|
||||
hardware_hardware_insecure: 'u32',
|
||||
hardware_max_hardware: 'u32',
|
||||
hardware_category_1_max_token_bonus_per_gateway: 'u32',
|
||||
hardware_category_2_max_token_bonus_per_gateway: 'u32',
|
||||
hardware_category_3_max_token_bonus_per_gateway: 'u32'
|
||||
},
|
||||
MiningSettingToken: '[u8; 16]',
|
||||
MiningSettingTokenIndex: 'u64',
|
||||
MiningSettingTokenType: 'Text',
|
||||
MiningSettingTokenLockAmount: 'u64',
|
||||
MiningSettingTokenSetting: {
|
||||
token_type: 'Text',
|
||||
token_lock_amount: 'u64',
|
||||
token_lock_start_block: 'Moment',
|
||||
token_lock_interval_blocks: 'Moment'
|
||||
},
|
||||
MiningSettingTokenRequirementsSetting: {
|
||||
token_type: 'Text',
|
||||
token_lock_min_amount: 'u64',
|
||||
token_lock_min_blocks: 'u32'
|
||||
},
|
||||
MiningSettingHardware: '[u8; 16]',
|
||||
MiningSettingHardwareIndex: 'u64',
|
||||
MiningSettingHardwareSecure: 'bool',
|
||||
MiningSettingHardwareType: 'Text',
|
||||
MiningSettingHardwareID: 'u64',
|
||||
MiningSettingHardwareDevEUI: 'u64',
|
||||
MiningSettingHardwareSetting: {
|
||||
hardware_secure: 'bool',
|
||||
hardware_type: 'Text',
|
||||
hardware_id: 'u64',
|
||||
hardware_dev_eui: 'u64',
|
||||
hardware_lock_start_block: 'Moment',
|
||||
hardware_lock_interval_blocks: 'Moment'
|
||||
},
|
||||
MiningSamplingToken: '[u8; 16]',
|
||||
MiningSamplingTokenIndex: 'u64',
|
||||
MiningSamplingTokenSampleLockedAmount: 'u64',
|
||||
MiningSamplingTokenSetting: {
|
||||
token_sample_block: 'Moment',
|
||||
token_sample_locked_amount: 'u64'
|
||||
},
|
||||
MiningSamplingHardware: '[u8; 16]',
|
||||
MiningSamplingHardwareIndex: 'u64',
|
||||
MiningSamplingHardwareSampleHardwareOnline: 'u64',
|
||||
MiningSamplingHardwareSetting: {
|
||||
hardware_sample_block: 'Moment',
|
||||
hardware_sample_hardware_online: 'bool'
|
||||
},
|
||||
MiningEligibilityToken: '[u8; 16]',
|
||||
MiningEligibilityTokenIndex: 'u64',
|
||||
MiningEligibilityTokenCalculatedEligibility: 'u64',
|
||||
MiningEligibilityTokenLockedPercentage: 'u32',
|
||||
MiningEligibilityTokenAuditorAccountID: 'u64',
|
||||
MiningEligibilityTokenResult: {
|
||||
token_calculated_eligibility: 'u64',
|
||||
token_token_locked_percentage: 'u32',
|
||||
token_date_audited: 'Moment',
|
||||
token_auditor_account_id: 'u64'
|
||||
},
|
||||
MiningEligibilityHardware: '[u8; 16]',
|
||||
MiningEligibilityHardwareIndex: 'u64',
|
||||
MiningEligibilityHardwareCalculatedEligibility: 'u64',
|
||||
MiningEligibilityHardwareUptimePercentage: 'u32',
|
||||
MiningEligibilityHardwareAuditorAccountID: 'u64',
|
||||
MiningEligibilityHardwareResult: {
|
||||
hardware_calculated_eligibility: 'u64',
|
||||
hardware_uptime_percentage: 'u32',
|
||||
hardware_block_audited: 'Moment',
|
||||
hardware_auditor_account_id: 'u64'
|
||||
},
|
||||
MiningEligibilityProxy: '[u8; 16]',
|
||||
MiningEligibilityProxyIndex: 'u64',
|
||||
MiningEligibilityProxyRewardRequest: {
|
||||
proxy_claim_requestor_account_id: 'AccountId',
|
||||
proxy_claim_total_reward_amount: 'Balance',
|
||||
proxy_claim_timestamp_redeemed: 'Moment'
|
||||
},
|
||||
MiningEligibilityProxyClaimRewardeeData: {
|
||||
proxy_claim_rewardee_account_id: 'AccountId',
|
||||
proxy_claim_reward_amount: 'Balance',
|
||||
proxy_claim_start_date: 'Date',
|
||||
proxy_claim_end_date: 'Date'
|
||||
},
|
||||
RewardeeData: {
|
||||
proxy_claim_rewardee_account_id: 'AccountId',
|
||||
proxy_claim_reward_amount: 'Balance',
|
||||
proxy_claim_start_date: 'Date',
|
||||
proxy_claim_end_date: 'Date'
|
||||
},
|
||||
RewardRequestorData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
total_amt: 'Balance',
|
||||
rewardee_count: 'u64',
|
||||
member_kind: 'u32',
|
||||
requested_date: 'Moment'
|
||||
},
|
||||
RequestorData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
total_amt: 'Balance',
|
||||
rewardee_count: 'u64',
|
||||
member_kind: 'u32',
|
||||
requested_date: 'Moment'
|
||||
},
|
||||
RewardTransferData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
is_sent: 'bool',
|
||||
total_amt: 'Balance',
|
||||
rewardee_count: 'u64',
|
||||
member_kind: 'u32',
|
||||
requested_date: 'Moment'
|
||||
},
|
||||
TransferData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
is_sent: 'bool',
|
||||
total_amt: 'Balance',
|
||||
rewardee_count: 'u64',
|
||||
member_kind: 'u32',
|
||||
requested_date: 'Moment'
|
||||
},
|
||||
RewardDailyData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
total_amt: 'Balance',
|
||||
proxy_claim_requestor_account_id: 'AccountId',
|
||||
member_kind: 'u32',
|
||||
rewarded_date: 'Date'
|
||||
},
|
||||
DailyData: {
|
||||
mining_eligibility_proxy_id: 'MiningEligibilityProxyIndex',
|
||||
total_amt: 'Balance',
|
||||
proxy_claim_requestor_account_id: 'AccountId',
|
||||
member_kind: 'u32',
|
||||
rewarded_date: 'Date'
|
||||
},
|
||||
MiningClaimsToken: '[u8; 16]',
|
||||
MiningClaimsTokenIndex: 'u64',
|
||||
MiningClaimsTokenClaimAmount: 'u64',
|
||||
MiningClaimsTokenClaimResult: {
|
||||
token_claim_amount: 'u64',
|
||||
token_claim_block_redeemed: 'u64'
|
||||
},
|
||||
MiningClaimsHardware: '[u8; 16]',
|
||||
MiningClaimsHardwareIndex: 'u64',
|
||||
MiningClaimsHardwareClaimAmount: 'u64',
|
||||
MiningClaimsHardwareClaimResult: {
|
||||
hardware_claim_amount: 'u64',
|
||||
hardware_claim_block_redeemed: 'u64'
|
||||
},
|
||||
MiningExecutionToken: '[u8; 16]',
|
||||
MiningExecutionTokenIndex: 'u64',
|
||||
MiningExecutionTokenExecutorAccountID: 'u64',
|
||||
MiningExecutionTokenExecutionResult: {
|
||||
token_execution_exector_account_id: 'u64',
|
||||
token_execution_started_block: 'Moment',
|
||||
token_execution_ended_block: 'Moment'
|
||||
},
|
||||
ExchangeRateIndex: 'u64',
|
||||
ExchangeRateSetting: {
|
||||
hbtc: 'u64',
|
||||
dot: 'u64',
|
||||
iota: 'u64',
|
||||
fil: 'u64',
|
||||
decimals_after_point: 'u32'
|
||||
},
|
||||
HBTCRate: 'u64',
|
||||
DOTRate: 'u64',
|
||||
IOTARate: 'u64',
|
||||
FILRate: 'u64',
|
||||
DecimalsAfterPoint: 'u32'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -148,6 +148,13 @@ export function createProduction (t: TFunction): LinkOption[] {
|
||||
providers: {
|
||||
DappForce: 'wss://rpc.subsocial.network'
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'westlake',
|
||||
text: t('rpc.westlake', 'Westlake', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
DataHighway: 'wss://westlake.datahighway.com'
|
||||
}
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
||||
@ -65,6 +65,7 @@ const chainSubsocial = '#b9018c';
|
||||
const chainTrustBase = '#ff43aa';
|
||||
const chainUnitv = '#1452F0';
|
||||
const chainVln = '#33cc33';
|
||||
const chainWestlake = 'linear-gradient(-90deg, #9400D3 0%, #5A5CA9 50%, #00BFFF 100%)';
|
||||
// based on node name
|
||||
// alphabetical
|
||||
const nodeApron = 'linear-gradient(45deg, #0099F7 0%, #2E49EB 100%)';
|
||||
@ -97,6 +98,7 @@ const nodeSubsocial = '#b9018c';
|
||||
const nodeTernoa = '#d622ff';
|
||||
const nodeUniarts = chainUniarts;
|
||||
const nodeUnique = chainUnique;
|
||||
const nodeWestlake = chainWestlake;
|
||||
const nodeZeitgeist = 'linear-gradient(180deg, rgba(32,90,172,1) 0%, rgba(26,72,138,1) 50%, rgba(13,36,69,1) 100%)';
|
||||
const nodeZero = '#0099cc';
|
||||
const nodeZenlink = 'linear-gradient(45deg, #F20082 0%, #FF4D4D 100%)';
|
||||
@ -176,6 +178,7 @@ export const chainColors: Record<string, any> = [
|
||||
['Unique Node', chainUnique],
|
||||
['VLN PC', chainVln],
|
||||
['Westend', chainWestend],
|
||||
['Westlake', chainWestlake],
|
||||
['Zenlink PC1', chainZenlink],
|
||||
['ZERO.IO', chainZero],
|
||||
['PHOENIX', chainPhoenix],
|
||||
@ -220,6 +223,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Ternoa Node', nodeTernoa],
|
||||
['uni arts node', nodeUniarts],
|
||||
['Unique Node', nodeUnique],
|
||||
['Westlake', nodeWestlake],
|
||||
['Zeitgeist Node', nodeZeitgeist],
|
||||
['Zeitgeist Collator', nodeZeitgeist],
|
||||
['Zenlink Collator', nodeZenlink],
|
||||
|
||||
@ -84,6 +84,7 @@ import nodeUniarts from './nodes/uniarts.png';
|
||||
import nodeUnique from './nodes/unique.svg';
|
||||
import nodeUnitv from './nodes/unitv.png';
|
||||
import nodeVln from './nodes/valiu.png';
|
||||
import nodeWestlake from './nodes/westlake.png';
|
||||
import nodeZeitgeist from './nodes/zeitgeist.png';
|
||||
import nodeZenlink from './nodes/zenlink.svg';
|
||||
import nodeZero from './nodes/zero.svg';
|
||||
@ -146,6 +147,8 @@ export const chainLogos: Record<string, unknown> = [
|
||||
['uni arts staging network', nodeUniarts],
|
||||
['Unique', chainUnique],
|
||||
['VLN PC', nodeVln],
|
||||
['Vln', nodeVln],
|
||||
['Westlake', nodeWestlake],
|
||||
['PHOENIX PC1', nodePhoenix],
|
||||
['mybank.network PC1', mybank],
|
||||
['Unit Network', nodeUnitv]
|
||||
@ -247,6 +250,7 @@ export const nodeLogos: Record<string, unknown> = [
|
||||
['PHOENIX Collator', nodePhoenix],
|
||||
['Unit Node', nodeUnitv],
|
||||
['Unit Collator', nodeUnitv],
|
||||
['Westlake', nodeWestlake],
|
||||
['Zeitgeist Node', nodeZeitgeist],
|
||||
['Zeitgeist Collator', nodeZeitgeist],
|
||||
['mybank.network', mybank]
|
||||
@ -362,6 +366,7 @@ export const namedLogos: Record<string, unknown> = {
|
||||
unitv: nodeUnitv,
|
||||
vln: nodeVln,
|
||||
westend: nodePolkadot,
|
||||
westlake: nodeWestlake,
|
||||
zeitgeist: nodeZeitgeist,
|
||||
zero: nodeZero
|
||||
};
|
||||
|
||||
BIN
packages/apps-config/src/ui/logos/nodes/westlake.png
Normal file
BIN
packages/apps-config/src/ui/logos/nodes/westlake.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
Loading…
Reference in New Issue
Block a user