ghost-portal/packages/apps-config/src/api/spec/phala.ts
Jaco Greeff f84a55089b
Convert all specs to type bundles (#4646)
* Convert all specs to type bundles

* Additional

* s.specVersioned/spec/

* Fix paraApi typesSpec import

* Update

* small update

* comment on mapping
2021-02-11 11:54:27 +01:00

47 lines
1.1 KiB
TypeScript

// 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: {
EcdsaSignature: '[u8; 65]',
EthereumAddress: 'H160',
EthereumTxHash: 'H256',
MiningInfo: {
isMining: 'bool',
startBlock: 'Option<BlockNumber>'
},
PayoutPrefs: {
commission: 'u32',
target: 'AccountId'
},
Score: {
features: 'Vec<u32>',
overallScore: 'u32'
},
StashInfo: {
controller: 'AccountId',
payoutPrefs: 'PayoutPrefs'
},
WorkerInfo: {
machineId: 'Vec<u8>',
pubkey: 'Vec<u8>',
lastUpdated: 'u64',
score: 'Option<Score>',
status: 'i32'
}
}
}
]
};
export default definitions;