ghost-portal/packages/apps-config/src/api/chain/phala.ts
2021-01-03 11:33:39 +01:00

35 lines
709 B
TypeScript

// 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 {
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'
}
};