Include Steam parachain for Rococo (#5025)

* Include Steam parachain for Rococo

* Update type definitions for eave

* Update packages/apps-config/src/api/spec/index.ts

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* fix linting issues

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
John Whitton 2021-04-05 06:50:04 -07:00 committed by GitHub
parent 635ec57b1d
commit 1483812fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 458 additions and 0 deletions

View File

@ -0,0 +1,427 @@
// 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: {
AccountIdOf: 'AccountId',
Address: 'MultiAddress',
AirDropCurrencyId: {
_enum: [
'ICE',
'EAVE'
]
},
Amount: 'i128',
AmountOf: 'Amount',
AsOriginId: 'AuthoritysOriginId',
AssetId: 'u64',
AssetIdOf: 'AssetId',
AuctionId: 'u32',
AuctionIdOf: 'AuctionId',
AuctionInfo: {
bid: 'Option<(AccountId, Balance)>',
start: 'BlockNumber',
end: 'Option<BlockNumber>'
},
AuthoritysOriginId: {
_enum: [
'Root',
'EaveTreasury',
'CdpTreasury',
'ElpTreasury',
'DSWF'
]
},
BalanceInfo: {
amount: 'Balance'
},
BalanceRequest: {
amount: 'Balance'
},
BalanceWrapper: {
amount: 'Balance'
},
BondingLedger: {
total: 'Compact<Balance>',
active: 'Compact<Balance>',
unlocking: 'Vec<UnlockChunk>'
},
CID: 'Vec<u8>',
CallOf: 'Call',
CallRequest: {
from: 'Option<H160>',
to: 'Option<H160>',
gasLimit: 'Option<u32>',
storageLimit: 'Option<u32>',
value: 'Option<U128>',
data: 'Option<Bytes>'
},
ChainId: {
_enum: {
RelayChain: 'Null',
ParaChain: 'ParaId'
}
},
ChangeBalance: {
_enum: {
NoChange: 'Null',
NewValue: 'Balance'
}
},
ChangeOptionRate: {
_enum: {
NoChange: 'Null',
NewValue: 'OptionRate'
}
},
ChangeOptionRatio: {
_enum: {
NoChange: 'Null',
NewValue: 'OptionRatio'
}
},
ChangeRate: {
_enum: {
NoChange: 'Null',
NewValue: 'Rate'
}
},
ChangeRatio: {
_enum: {
NoChange: 'Null',
NewValue: 'Ratio'
}
},
ClassData: {
deposit: 'Balance',
properties: 'Properties'
},
ClassId: 'u32',
ClassIdOf: 'ClassId',
ClassInfoOf: {
metadata: 'CID',
totalIssuance: 'TokenId',
owner: 'AccountId',
data: 'ClassData'
},
CodeInfo: {
codeSize: 'u32',
refCount: 'u32'
},
CollateralAuctionItem: {
refundRecipient: 'AccountId',
currencyId: 'CurrencyId',
initialAmount: 'Compact<Balance>',
amount: 'Compact<Balance>',
target: 'Compact<Balance>',
startTime: 'BlockNumber'
},
CurrencyId: {
_enum: {
Token: 'TokenSymbol',
DEXShare: '(TokenSymbol, TokenSymbol)',
ERC20: 'EvmAddress'
}
},
CurrencyIdOf: 'CurrencyId',
DataProviderId: {
_enum: [
'Aggregated',
'Eave',
'Band'
]
},
DebitAuctionItem: {
initialAmount: 'Compact<Balance>',
amount: 'Compact<Balance>',
fix: 'Compact<Balance>',
startTime: 'BlockNumber'
},
DelayedDispatchTime: {
_enum: {
At: 'BlockNumber',
After: 'BlockNumber'
}
},
DelayedOrigin: {
delay: 'BlockNumber',
origin: 'PalletsOrigin'
},
DestAddress: 'Vec<u8>',
DispatchId: 'u32',
DispatchTime: {
_enum: {
At: 'BlockNumber',
After: 'BlockNumber'
}
},
ElpUnlockChunk: {
value: 'Compact<Balance>',
era: 'Compact<EraIndex>'
},
EvmAccountInfo: {
nonce: 'Index',
contractInfo: 'Option<EvmContractInfo>',
developerDeposit: 'Option<Balance>'
},
EvmAddress: 'H160',
EvmContractInfo: {
codeHash: 'H256',
maintainer: 'H160',
deployed: 'bool'
},
ExchangeRate: 'FixedU128',
GraduallyUpdate: {
key: 'StorageKey',
targetValue: 'StorageValue',
perBlock: 'StorageValue'
},
Keys: 'SessionKeys2',
Ledger: {
bonded: 'Balance',
unbondingToFree: 'Balance',
freePool: 'Balance',
toUnbondNextEra: '(Balance, Balance)'
},
LiquidationStrategy: {
_enum: [
'Auction',
'Exchange'
]
},
LiquidityPool: {
currency_ids: 'Vec<AssetIdOf>',
lp_token_id: 'AssetId',
pool_config_id: 'u32',
pool_reserves: 'Vec<Balance>'
},
LiquidityPoolConfig_: 'PoolConfig',
LiquidityPool_: 'LiquidityPool',
LookupSource: 'MultiAddress',
NFTBalance: 'u128',
OptionRate: 'Option<Rate>',
OptionRatio: 'Option<Ratio>',
OracleKey: 'CurrencyId',
OracleValue: 'Price',
OrderedSet: 'Vec<AccountId>',
OrmlAccountData: {
free: 'Balance',
frozen: 'Balance',
reserved: 'Balance'
},
OrmlBalanceLock: {
amount: 'Balance',
id: 'LockIdentifier'
},
OrmlVestingSchedule: {
start: 'BlockNumber',
period: 'BlockNumber',
periodCount: 'u32',
perPeriod: 'Compact<Balance>'
},
PalletBalanceOf: 'Balance',
PalletsOrigin: {
_enum: {
System: 'SystemOrigin',
Timestamp: 'Null',
RandomnessCollectiveFlip: 'Null',
Balances: 'Null',
Accounts: 'Null',
Currencies: 'Null',
Tokens: 'Null',
Vesting: 'Null',
EaveTreasury: 'Null',
Utility: 'Null',
Multisig: 'Null',
Recovery: 'Null',
Proxy: 'Null',
Scheduler: 'Null',
Indices: 'Null',
GraduallyUpdate: 'Null',
Authorship: 'Null',
Babe: 'Null',
Grandpa: 'Null',
Staking: 'Null',
Session: 'Null',
Historical: 'Null',
GeneralCouncil: 'CollectiveOrigin',
GeneralCouncilMembership: 'Null',
EYECouncil: 'CollectiveOrigin',
EYECouncilMembership: 'Null',
ElpCouncil: 'CollectiveOrigin',
ElpCouncilMembership: 'Null',
TechnicalCommittee: 'CollectiveOrigin',
TechnicalCommitteeMembership: 'Null',
Authority: 'DelayedOrigin',
ElectionsPhragmen: 'Null',
EaveOracle: 'Null',
BandOracle: 'Null',
OperatorMembershipEave: 'Null',
OperatorMembershipBand: 'Null',
Auction: 'Null',
Rewards: 'Null',
OrmlNFT: 'Null',
Prices: 'Null',
Dex: 'Null',
AuctionManager: 'Null',
Loans: 'Null',
EYE: 'Null',
CdpTreasury: 'Null',
CdpEngine: 'Null',
EmergencyShutdown: 'Null',
Elp: 'Null',
NomineesElection: 'Null',
StakingPool: 'Null',
PolkadotBridge: 'Null',
Incentives: 'Null',
AirDrop: 'Null',
NFT: 'Null',
RenVmBridge: 'Null',
Contracts: 'Null',
EVM: 'Null',
Sudo: 'Null',
TransactionPayment: 'Null'
}
},
Params: {
targetMaxFreeUnbondedRatio: 'Ratio',
targetMinFreeUnbondedRatio: 'Ratio',
targetUnbondingToFreeRatio: 'Ratio',
unbondingToFreeAdjustment: 'Ratio',
baseFeeRate: 'Rate'
},
PolkadotAccountId: 'AccountId',
PolkadotAccountIdOf: 'PolkadotAccountId',
PoolId: {
_enum: {
Loans: 'CurrencyId',
DexIncentive: 'CurrencyId',
DexSaving: 'CurrencyId',
Elp: 'Null'
}
},
PoolInfo: {
totalShares: 'Compact<Share>',
totalRewards: 'Compact<Balance>',
totalWithdrawnRewards: 'Compact<Balance>'
},
Position: {
collateral: 'Balance',
debit: 'Balance'
},
Price: 'FixedU128',
Properties: {
_set: {
_bitLength: 8,
Transferable: 1,
Burnable: 2
}
},
PublicKey: '[u8; 20]',
Rate: 'FixedU128',
Ratio: 'FixedU128',
RedeemStrategy: {
_enum: {
Immediately: 'Null',
Target: 'EraIndex',
WaitForUnbonding: 'Null'
}
},
RiskManagementParams: {
maximumTotalDebitValue: 'Balance',
stabilityFee: 'Option<Rate>',
liquidationRatio: 'Option<Rate>',
liquidationPenalty: 'Option<Rate>',
requiredCollateralRatio: 'Option<Rate>'
},
RpcDataProviderId: 'Text',
ScheduleTaskIndex: 'u32',
Share: 'u128',
StorageKeyBytes: 'Vec<u8>',
StorageValue: 'Vec<u8>',
StorageValueBytes: 'Vec<u8>',
SubAccountStatus: {
bonded: 'Balance',
available: 'Balance',
unbonding: 'Vec<(EraIndex,Balance)>',
mockRewardRate: 'Rate'
},
SurplusAuctionItem: {
amount: 'Compact<Balance>',
startTime: 'BlockNumber'
},
TimestampedValue: {
value: 'OracleValue',
timestamp: 'Moment'
},
TimestampedValueOf: 'TimestampedValue',
TokenBalanceOf: 'Balance',
TokenData: {
deposit: 'Balance'
},
TokenId: 'u64',
TokenIdOf: 'TokenId',
TokenInfo: {
name: 'Text',
symbol: 'Text',
decimals: 'u8',
owner: 'AccountId'
},
TokenInfoOf: {
metadata: 'CID',
owner: 'AccountId',
data: 'TokenData'
},
TokenSymbol: {
_enum: {
EAVE: 0,
EUSD: 1,
DOT: 2,
LDOT: 3,
XBTC: 4,
RENBTC: 5,
POLKABTC: 6,
PLM: 7,
PHA: 8,
HDT: 9,
ICE: 128,
IUSD: 129,
KSM: 130,
LKSM: 131,
SDN: 135
}
},
TradingPair: '(CurrencyId, CurrencyId)',
TradingPairProvisionParameters: {
minContribution: '(Balance, Balance)',
targetProvision: '(Balance, Balance)',
accumulatedProvision: '(Balance, Balance)',
notBefore: 'BlockNumber'
},
TradingPairStatus: {
_enum: {
NotEnabled: 'Null',
Provisioning: 'TradingPairProvisionParameters',
Enabled: 'Null'
}
},
VestingScheduleOf: 'OrmlVestingSchedule',
XCurrencyId: {
chainId: 'ChainId',
currencyId: 'Vec<u8>'
}
}
}
]
};
export default definitions;

View File

@ -22,6 +22,7 @@ import datahighwayParachain from './datahighway';
import dock from './dock';
import dotmog from './dotmog';
import dusty from './dusty';
import eave from './eave';
import edgeware from './edgeware';
import encointerNodeNotee from './encointer-node-notee';
import encointerNodeTeeproxy from './encointer-node-teeproxy';
@ -92,6 +93,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
'cumulus-subsocial-parachain': subsocial,
'cumulus-test-parachain': testPara,
'datahighway-parachain': datahighwayParachain,
dawn: eave,
'dev-parachain': zenlink,
'dock-main-runtime': dock,
'dock-testnet': dock,

View File

@ -263,6 +263,14 @@ export function createRococo (t: TFunction): LinkOption[] {
Airalab: 'wss://rococo.parachain.robonomics.network'
}
},
{
info: 'rococoEave',
paraId: 77,
text: t('rpc.rococo.eave', 'Steam PC', { ns: 'apps-config' }),
providers: {
EAVE: 'wss://steamcollator.eave.network'
}
},
{
info: 'rococoSubDAO',
paraId: 888,

View File

@ -39,6 +39,7 @@ const chainRoccoAres = '#70FF8B';
const chainRoccoBifrost = '#002cc3';
const chainRoccoDarwinia = 'linear-gradient(-45deg, #FE3876 0%, #7C30DD 71%, #3A30DD 100%)';
const chainRoccoDataHighway = 'linear-gradient(-90deg, #9400D3 0%, #5A5CA9 50%, #00BFFF 100%)';
const chainRococoEave = '#900048';
const chainRococoLaminar = '#004FFF';
const chainRoccoTick = '#22bb22';
const chainRoccoTrack = '#bb2222';
@ -108,6 +109,7 @@ export const chainColors: Record<string, any> = [
['Darwinia PC2', chainRoccoDarwinia],
['DataHighway', chainRoccoDataHighway],
['DOTMog.com NET', chainDotMog],
['Steam PC', chainRococoEave],
['Encointer PC1', nodeEncointerNotee],
['Galital', chainGalital],
['Galois', chainGalois],

View File

@ -37,6 +37,7 @@ import nodeDataHighway from './nodes/datahighway.png';
import nodeDockMainnet from './nodes/dock-mainnet.png';
import nodeDockTestnet from './nodes/dock-testnet.png';
import nodeDotMog from './nodes/dotmog.svg';
import nodeEave from './nodes/eave.svg';
import nodeEdgeware from './nodes/edgeware-circle.svg';
import nodeEncointerNotee from './nodes/encointer-notee.svg';
import nodeEncointerTeeproxy from './nodes/encointer-teeproxy.svg';
@ -94,6 +95,7 @@ export const chainLogos: Record<string, unknown> = [
['Darwinia PC2', nodeDarwinia],
['DataHighway', nodeDataHighway],
['Dusty', chainDusty],
['Steam PC', nodeEave],
['Galital', nodeGalital],
['Galois', nodeMath],
['HydraDX Hydrate', chainHydrate],
@ -169,6 +171,7 @@ export const nodeLogos: Record<string, unknown> = [
['DataHighway Parachain Collator', nodeDataHighway],
['Dock Full Node', nodeDockMainnet],
['DOTMog Node', nodeDotMog],
['Eave Node', nodeEave],
['Edgeware Node', nodeEdgeware],
['Encointer Node', nodeEncointerNotee],
['Encointer Node noTEE', nodeEncointerNotee],
@ -250,6 +253,7 @@ export const namedLogos: Record<string, unknown> = {
'dock-testnet': nodeDockTestnet,
dotmog: nodeDotMog,
dusty: chainDusty,
eave: nodeEave,
edgeware: nodeEdgeware,
empty: emptyLogo,
encointer_cantillon: nodeEncointerTeeproxy,
@ -287,6 +291,7 @@ export const namedLogos: Record<string, unknown> = {
rococoCrust: nodeCrust,
rococoDarwinia: nodeDarwinia,
rococoDataHighway: nodeDataHighway,
rococoEave: nodeEave,
rococoEncointer: nodeEncointerNotee,
rococoEquilibrium: nodeEquilibrium,
rococoGalital: nodeGalital,

View File

@ -0,0 +1,13 @@
<svg width="50" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<title>background</title>
<rect fill="none" id="canvas_background" height="402" width="582" y="-1" x="-1"/>
</g>
<g>
<title fill="#240041">Layer 1</title>
<path fill="#240041" id="svg_1" fill-rule="evenodd" d="m13.595,24.999c0,-6.289 5.117,-11.405 11.406,-11.405c6.289,0 11.407,5.117 11.407,11.405c0,6.289 -5.117,11.406 -11.407,11.406c-6.289,0 -11.406,-5.117 -11.406,-11.406m11.406,-9.639c-5.316,0 -9.639,4.322 -9.639,9.639c0,5.314 4.323,9.639 9.639,9.639c5.316,0 9.639,-4.325 9.639,-9.639c0,-5.316 -4.323,-9.639 -9.639,-9.639zm-15.157,-10.541c-2.798,2.474 -3.73,7.451 -0.967,10.257c-1.045,1.69 -1.831,3.555 -2.303,5.541l-5.681,0c-0.467,0 -0.851,0.362 -0.88,0.829c-0.23,3.729 2.625,7.896 6.562,7.936c0.473,1.985 1.259,3.85 2.303,5.54l-4.022,4.023c-0.332,0.33 -0.348,0.86 -0.038,1.208c2.439,2.762 7.415,3.768 10.258,0.969c1.69,1.044 3.554,1.831 5.539,2.303l0,5.682c0,0.794 0.688,0.894 1.294,0.894c3.575,0 7.438,-2.806 7.475,-6.576c1.985,-0.473 3.851,-1.259 5.54,-2.303l4.022,4.021c0.328,0.329 0.861,0.345 1.21,0.038c2.805,-2.478 3.73,-7.445 0.969,-10.258c1.044,-1.69 1.83,-3.554 2.302,-5.539l5.68,0c0.466,0 0.852,-0.363 0.881,-0.828c0.232,-3.73 -2.622,-7.899 -6.559,-7.939c-0.473,-1.986 -1.259,-3.851 -2.303,-5.542l4.022,-4.02c0.33,-0.329 0.348,-0.859 0.038,-1.208c-2.474,-2.802 -7.452,-3.729 -10.257,-0.969c-1.691,-1.045 -3.556,-1.832 -5.543,-2.304l0,-5.679c0,-0.467 -0.361,-0.852 -0.828,-0.883c-3.727,-0.23 -7.898,2.625 -7.938,6.561c-1.986,0.473 -3.852,1.259 -5.542,2.304l-4.023,-4.023c-0.333,-0.331 -0.865,-0.343 -1.211,-0.035z" clip-rule="evenodd"/>
<g id="Layer_2"/>
<text xml:space="preserve" text-anchor="start" font-family="Helvetica, Arial, sans-serif" font-size="24" id="svg_2" y="31.173535" x="18.347941" stroke-width="0" stroke="#0f0f00" fill="#ff4057">e</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -22,6 +22,7 @@
"rpc.dock-testnet": "Dock",
"rpc.dotmog": "DOTMog",
"rpc.dusty": "Dusty",
"rpc.eave": "EAVE",
"rpc.edgeware": "Edgeware",
"rpc.encointer.cantillon": "Encointer Cantillon",
"rpc.encointer.gesell": "Encointer Gesell",