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:
Hging 2021-01-14 18:58:26 +08:00 committed by GitHub
parent f2f58fb30f
commit 177e637f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 44 additions and 14 deletions

View 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'
};

View File

@ -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
};

View File

@ -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'
};

View File

@ -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,

View File

@ -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'