Add Bounty type definitions (#2632)
* Add Bounty type definitions * CHANGELOG
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user