fix Galois cannot construct AccountServiceEnum (#4408)
* add Galois chain config fix cannot construct AccountServiceEnum * remove spec files and fix lint
This commit is contained in:
parent
f2f58fb30f
commit
177e637f54
42
packages/apps-config/src/api/chain/galois.ts
Normal file
42
packages/apps-config/src/api/chain/galois.ts
Normal file
@ -0,0 +1,42 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
RefCount: 'u8',
|
||||
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'
|
||||
},
|
||||
ExitReason: 'U256',
|
||||
AccountServiceEnum: {
|
||||
_enum: {
|
||||
Nickname: 'String',
|
||||
Ethereum: 'H160'
|
||||
}
|
||||
},
|
||||
MultiAddressDetails: {
|
||||
nickname: 'AccountServiceEnum',
|
||||
ethereum: 'AccountServiceEnum'
|
||||
},
|
||||
Nickname: 'String',
|
||||
Ethereum: 'H160'
|
||||
};
|
||||
@ -1,9 +1,11 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import Galois from './galois';
|
||||
import Phala from './phala';
|
||||
|
||||
// alphabetical, based on the actual displayed name
|
||||
export default {
|
||||
Galois: Galois,
|
||||
'Phala PoC-3': Phala
|
||||
};
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
// Copyright 2017-2021 @polkadot/apps-config authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// structs need to be in order
|
||||
/* eslint-disable sort-keys */
|
||||
|
||||
export default {
|
||||
Address: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
RefCount: 'u8'
|
||||
};
|
||||
@ -15,7 +15,6 @@ import encointerNodeNotee from './encointer-node-notee';
|
||||
import encointerNodeTeeproxy from './encointer-node-teeproxy';
|
||||
import encointerPara from './encointer-para';
|
||||
import equilibrium from './equilibrium';
|
||||
import galois from './galois';
|
||||
import hanonycash from './hanonycash';
|
||||
import jupiter from './jupiter';
|
||||
import kilt from './kilt';
|
||||
@ -47,7 +46,6 @@ export default {
|
||||
'encointer-node-notee': encointerNodeNotee,
|
||||
'encointer-node-teeproxy': encointerNodeTeeproxy,
|
||||
'encointer-parachain': encointerPara,
|
||||
galois: galois,
|
||||
hanonycash,
|
||||
jupiter,
|
||||
'mashnet-node': kilt,
|
||||
|
||||
@ -114,7 +114,6 @@ export function createTesting (t: TFunction): LinkOption[] {
|
||||
},
|
||||
{
|
||||
info: 'galois',
|
||||
isDisabled: true, // cannot construct AccountServiceEnum
|
||||
text: t('rpc.galois', 'Galois', { ns: 'apps-config' }),
|
||||
providers: {
|
||||
MathWallet: 'wss://galois.maiziqianbao.net/ws'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user