UNPKG

1.6 kBJavaScriptView Raw
1// Copyright 2017-2023 @polkadot/types authors & contributors
2// SPDX-License-Identifier: Apache-2.0
3
4// order important in structs... :)
5/* eslint-disable sort-keys */
6
7export default {
8 rpc: {},
9 types: {
10 Bounty: {
11 proposer: 'AccountId',
12 value: 'Balance',
13 fee: 'Balance',
14 curatorDeposit: 'Balance',
15 bond: 'Balance',
16 status: 'BountyStatus'
17 },
18 BountyIndex: 'u32',
19 BountyStatus: {
20 _enum: {
21 Proposed: 'Null',
22 Approved: 'Null',
23 Funded: 'Null',
24 CuratorProposed: 'BountyStatusCuratorProposed',
25 Active: 'BountyStatusActive',
26 PendingPayout: 'BountyStatusPendingPayout'
27 }
28 },
29 BountyStatusActive: {
30 curator: 'AccountId',
31 updateDue: 'BlockNumber'
32 },
33 BountyStatusCuratorProposed: {
34 curator: 'AccountId'
35 },
36 BountyStatusPendingPayout: {
37 curator: 'AccountId',
38 beneficiary: 'AccountId',
39 unlockAt: 'BlockNumber'
40 },
41 OpenTip: {
42 reason: 'Hash',
43 who: 'AccountId',
44 finder: 'AccountId',
45 deposit: 'Balance',
46 closes: 'Option<BlockNumber>',
47 tips: 'Vec<OpenTipTip>',
48 findersFee: 'bool'
49 },
50 OpenTipTo225: {
51 reason: 'Hash',
52 who: 'AccountId',
53 finder: 'Option<OpenTipFinderTo225>',
54 closes: 'Option<BlockNumber>',
55 tips: 'Vec<OpenTipTip>'
56 },
57 OpenTipFinderTo225: '(AccountId, Balance)',
58 OpenTipTip: '(AccountId, Balance)',
59 TreasuryProposal: {
60 proposer: 'AccountId',
61 value: 'Balance',
62 beneficiary: 'AccountId',
63 bond: 'Balance'
64 }
65 }
66};
\No newline at end of file