diff --git a/packages/apps-config/src/api/chain/galois.ts b/packages/apps-config/src/api/chain/galois.ts deleted file mode 100644 index 3ceba2b664..0000000000 --- a/packages/apps-config/src/api/chain/galois.ts +++ /dev/null @@ -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', - 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' - } -}; diff --git a/packages/apps-config/src/api/chain/index.ts b/packages/apps-config/src/api/chain/index.ts index 96a43259f6..30df06da64 100644 --- a/packages/apps-config/src/api/chain/index.ts +++ b/packages/apps-config/src/api/chain/index.ts @@ -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 }; diff --git a/packages/apps-config/src/api/spec/galois.ts b/packages/apps-config/src/api/spec/galois.ts new file mode 100644 index 0000000000..212fb6e96d --- /dev/null +++ b/packages/apps-config/src/api/spec/galois.ts @@ -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', + 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; diff --git a/packages/apps-config/src/api/spec/index.ts b/packages/apps-config/src/api/spec/index.ts index ffbbcfd56d..f3446e4ab5 100644 --- a/packages/apps-config/src/api/spec/index.ts +++ b/packages/apps-config/src/api/spec/index.ts @@ -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 = { litentry, mandala: acala, 'mashnet-node': kilt, + 'mathchain-galois': galois, 'moonbase-alphanet': moonbeam, moonbeam, 'moonbeam-standalone': moonbeam,