-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdao.go
65 lines (56 loc) · 1.68 KB
/
dao.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package substrate
import "github.com/centrifuge/go-substrate-rpc-client/v4/types"
type Voted struct {
Phase types.Phase
Account AccountID `json:"account_id"`
ProposalHash types.Hash `json:"proposal_hash"`
Voted bool `json:"voted"`
Yes types.U32 `json:"yes"`
No types.U32 `json:"no"`
Topics []types.Hash
}
type Proposed struct {
Phase types.Phase
Account AccountID `json:"account_id"`
ProposalIndex types.U32 `json:"proposal_index"`
ProposalHash types.Hash `json:"proposal_hash"`
Threshold types.U32 `json:"threshold"`
Topics []types.Hash
}
type Approved struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Topics []types.Hash
}
type Disapproved struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Topics []types.Hash
}
type Executed struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Result types.DispatchResult `json:"result"`
Topics []types.Hash
}
type Closed struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Yes types.U32 `json:"yes"`
YesWeight types.U64 `json:"yes_weight"`
No types.U32 `json:"no"`
NoWeight types.U64 `json:"no_weight"`
Topics []types.Hash
}
type ClosedByCouncil struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Vetos []AccountID `json:"vetos"`
Topics []types.Hash
}
type CouncilMemberVeto struct {
Phase types.Phase
ProposalHash types.Hash `json:"proposal_hash"`
Who AccountID `json:"who"`
Topics []types.Hash
}