From b4cae148364a63f7fdce8c0d916ff59ffb739308 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Tue, 22 Sep 2020 11:58:58 +0200 Subject: [PATCH] Add Bounty type definitions (#2632) * Add Bounty type definitions * CHANGELOG --- CHANGELOG.md | 7 +++++ .../src/interfaces/treasury/definitions.ts | 31 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3d280adf..8d450637c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 1.35.0-beta.x + +Changes: + +- Add bounty type definitions from treasury + + ## 1.34.1 Sep 21, 2020 Upgrade priority: High. Metadata v12 is the next major version containing structural data exchange changes and will start rolling out to test and live networks in due course. diff --git a/packages/types/src/interfaces/treasury/definitions.ts b/packages/types/src/interfaces/treasury/definitions.ts index 10b4505959..342142a7d5 100644 --- a/packages/types/src/interfaces/treasury/definitions.ts +++ b/packages/types/src/interfaces/treasury/definitions.ts @@ -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',