Upgrade Galois type with new format (#4860)
* Upgrade Galois type with new format * fix lint
This commit is contained in:
parent
0c7c743630
commit
b51c7978e3
@ -1,53 +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',
|
||||
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',
|
||||
TransferAmountInfo: {
|
||||
date: 'u64',
|
||||
daily_info: 'Balance',
|
||||
monthly_info: 'Balance',
|
||||
yearly_info: 'Balance'
|
||||
},
|
||||
AccountLimit: {
|
||||
daily_limit: 'Balance',
|
||||
monthly_limit: 'Balance',
|
||||
yearly_limit: 'Balance'
|
||||
}
|
||||
};
|
||||
@ -1,11 +1,9 @@
|
||||
// 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
|
||||
};
|
||||
|
||||
66
packages/apps-config/src/api/spec/galois.ts
Normal file
66
packages/apps-config/src/api/spec/galois.ts
Normal file
@ -0,0 +1,66 @@
|
||||
// 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: 'MultiAddress',
|
||||
LookupSource: 'MultiAddress',
|
||||
Balance: 'u128',
|
||||
RefCount: 'u32',
|
||||
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',
|
||||
TransferAmountInfo: {
|
||||
date: 'u64',
|
||||
daily_info: 'Balance',
|
||||
monthly_info: 'Balance',
|
||||
yearly_info: 'Balance'
|
||||
},
|
||||
AccountLimit: {
|
||||
daily_limit: 'Balance',
|
||||
monthly_limit: 'Balance',
|
||||
yearly_limit: 'Balance'
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default definitions;
|
||||
@ -28,6 +28,7 @@ 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 hydrate from './hydrate';
|
||||
import idavoll from './idavoll';
|
||||
@ -105,6 +106,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
|
||||
litentry,
|
||||
mandala: acala,
|
||||
'mashnet-node': kilt,
|
||||
'mathchain-galois': galois,
|
||||
'moonbase-alphanet': moonbeam,
|
||||
moonbeam,
|
||||
'moonbeam-standalone': moonbeam,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user