Add Bounty type definitions (#2632)

* Add Bounty type definitions

* CHANGELOG
This commit is contained in:
Jaco Greeff
2020-09-22 11:58:58 +02:00
committed by GitHub
parent 9bae65864d
commit b4cae14836
2 changed files with 38 additions and 0 deletions
@@ -9,6 +9,37 @@ import { Definitions } from '../../types';
export default {
rpc: {},
types: {
Bounty: {
proposer: 'AccountId',
value: 'Balance',
fee: 'Balance',
curatorDeposit: 'Balance',
bond: 'Balance',
status: 'BountyStatus'
},
BountyIndex: 'u32',
BountyStatus: {
_enum: {
Proposed: 'Null',
Approved: 'Null',
Funded: 'Null',
CuratorProposed: 'BountyStatusCuratorProposed',
Active: 'BountyStatusActive',
PendingPayout: 'BountyStatusPendingPayout'
}
},
BountyStatusActive: {
curator: 'AccountId',
updateDue: 'BlockNumber'
},
BountyStatusCuratorProposed: {
curator: 'AccountId'
},
BountyStatusPendingPayout: {
curator: 'AccountId',
beneficiary: 'AccountId',
unlockAt: 'BlockNumber'
},
OpenTip: {
reason: 'Hash',
who: 'AccountId',