update and clean galital standalone chain specs and type (#5225)
* Add PC to galital for clarity * update galital parachain ID * Galital independant testnet * update and clean galital standalone chain specs and type * Fix galital mapping
This commit is contained in:
parent
52f725a580
commit
918d3521ba
70
packages/apps-config/src/api/spec/galital-parachain.ts
Normal file
70
packages/apps-config/src/api/spec/galital-parachain.ts
Normal file
@ -0,0 +1,70 @@
|
||||
// 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: {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
Account: {
|
||||
nonce: 'U256',
|
||||
balance: 'U256'
|
||||
},
|
||||
Transaction: {
|
||||
nonce: 'U256',
|
||||
action: 'String',
|
||||
gas_price: 'u64',
|
||||
gas_limit: 'u64',
|
||||
value: 'U256',
|
||||
input: 'Vec<u8>',
|
||||
signature: 'Signature'
|
||||
},
|
||||
Signature: {
|
||||
v: 'u64',
|
||||
r: 'H256',
|
||||
s: 'H256'
|
||||
},
|
||||
ClassId: 'u64',
|
||||
TokenId: 'u64',
|
||||
ClassData: 'Vec<u8>',
|
||||
TokenData: 'Vec<u8>',
|
||||
ReportReason: {
|
||||
_enum: [
|
||||
'None',
|
||||
'Illigal',
|
||||
'Plagiarism',
|
||||
'Duplicate',
|
||||
'Reported'
|
||||
]
|
||||
},
|
||||
ClassInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
total_issuance: 'TokenId',
|
||||
|
||||
owner: 'AccountId',
|
||||
class_data: 'ClassData'
|
||||
},
|
||||
ExtendedInfo: {
|
||||
display_flag: 'bool',
|
||||
report: 'ReportReason',
|
||||
frozen: 'bool'
|
||||
},
|
||||
TokenInfoOf: {
|
||||
metadata: 'Vec<u8>',
|
||||
owner: 'AccountId',
|
||||
class_data: 'ClassData'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -12,8 +12,8 @@ const definitions: OverrideBundleDefinition = {
|
||||
// on all versions
|
||||
minmax: [0, undefined],
|
||||
types: {
|
||||
Address: 'AccountId',
|
||||
LookupSource: 'AccountId',
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
Account: {
|
||||
nonce: 'U256',
|
||||
balance: 'U256'
|
||||
@ -27,10 +27,14 @@ const definitions: OverrideBundleDefinition = {
|
||||
input: 'Vec<u8>',
|
||||
signature: 'Signature'
|
||||
},
|
||||
Signature: {
|
||||
v: 'u64',
|
||||
r: 'H256',
|
||||
s: 'H256'
|
||||
ChainId: 'u8',
|
||||
ResourceId: '[u8; 32]',
|
||||
DepositNonce: 'u64',
|
||||
ProposalVotes: {
|
||||
votes_for: 'Vec<AccountId>',
|
||||
votes_against: 'Vec<AccountId>',
|
||||
status: 'u8',
|
||||
expiry: 'U256'
|
||||
},
|
||||
ClassId: 'u64',
|
||||
TokenId: 'u64',
|
||||
|
||||
@ -31,6 +31,7 @@ import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||
import encointerPara from './encointer-para';
|
||||
import equilibrium from './equilibrium';
|
||||
import galital from './galital';
|
||||
import galitalParachain from './galital-parachain';
|
||||
import galois from './galois';
|
||||
import gamepower from './gamepower';
|
||||
import hanonycash from './hanonycash';
|
||||
@ -121,7 +122,8 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
'encointer-node-notee': encointerNodeNotee,
|
||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||
'encointer-parachain': encointerPara,
|
||||
'galital-collator': galital,
|
||||
galital: galital,
|
||||
'galital-collator': galitalParachain,
|
||||
gamepower,
|
||||
'hack-hydra-dx': hydrate,
|
||||
hanonycash,
|
||||
|
||||
@ -139,9 +139,8 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
}
|
||||
},
|
||||
{
|
||||
info: 'rococoGalital',
|
||||
paraId: 1230,
|
||||
text: t('rpc.rococo.galital', 'Galital PC2', { ns: 'apps-config' }),
|
||||
info: 'Galital',
|
||||
text: t('rpc.galital', 'Galital PC2', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
StarkleyTech: 'wss://galital-rpc-testnet.starkleytech.com'
|
||||
}
|
||||
|
||||
@ -220,6 +220,7 @@ export const nodeColors: Record<string, any> = [
|
||||
['Encointer Node noTEE', nodeEncointerNotee],
|
||||
['Encointer Node TEE proxy', nodeEncointerTeeproxy],
|
||||
['Equilibrium node', nodeEquilibrium],
|
||||
['Galital', nodeGalital],
|
||||
['Galital Parachain Collator', nodeGalital],
|
||||
['GamePower Node', nodeGamePower],
|
||||
['IpseTestnet', nodeIpse],
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
"rpc.encointer.gesell": "Encointer Gesell",
|
||||
"rpc.equilibrium": "Equilibrium",
|
||||
"rpc.equilibriumtestnet": "Equilibrium",
|
||||
"rpc.galital": "Galital",
|
||||
"rpc.flamingfir": "Flaming Fir",
|
||||
"rpc.galois": "Galois",
|
||||
"rpc.gamepower": "GamePower",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user