/
proposal.go
104 lines (76 loc) · 4.51 KB
/
proposal.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
package types
import (
gov "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)
var (
proposalTypeMsgGovUpdateParams = MsgGovUpdateParams{}.String()
proposalTypeMsgGovCancelUpdateParams = MsgGovCancelUpdateParamPlan{}.String()
proposalTypeMsgGovAddDenoms = MsgGovAddDenoms{}.String()
proposalTypeMsgGovRemoveCurrencyPairProviders = MsgGovRemoveCurrencyPairProviders{}.String()
proposalTypeMsgGovRemoveCurrencyDeviationThresholds = MsgGovRemoveCurrencyDeviationThresholds{}.String()
)
func init() {
gov.RegisterProposalType(proposalTypeMsgGovUpdateParams)
gov.RegisterProposalType(proposalTypeMsgGovCancelUpdateParams)
gov.RegisterProposalType(proposalTypeMsgGovAddDenoms)
gov.RegisterProposalType(proposalTypeMsgGovRemoveCurrencyPairProviders)
gov.RegisterProposalType(proposalTypeMsgGovRemoveCurrencyDeviationThresholds)
}
// Implements Proposal Interface
var _ gov.Content = &MsgGovUpdateParams{}
// GetTitle returns the title of a community pool spend proposal.
func (msg *MsgGovUpdateParams) GetTitle() string { return msg.Title }
// GetDescription returns the description of a community pool spend proposal.
func (msg *MsgGovUpdateParams) GetDescription() string { return msg.Description }
// GetDescription returns the routing key of a community pool spend proposal.
func (msg *MsgGovUpdateParams) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a community pool spend proposal.
func (msg *MsgGovUpdateParams) ProposalType() string { return proposalTypeMsgGovUpdateParams }
// Implements Proposal Interface
var _ gov.Content = &MsgGovCancelUpdateParamPlan{}
// GetTitle returns the title of a community pool spend proposal.
func (msg *MsgGovCancelUpdateParamPlan) GetTitle() string { return msg.Title }
// GetDescription returns the description of a community pool spend proposal.
func (msg *MsgGovCancelUpdateParamPlan) GetDescription() string { return msg.Description }
// GetDescription returns the routing key of a community pool spend proposal.
func (msg *MsgGovCancelUpdateParamPlan) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a community pool spend proposal.
func (msg *MsgGovCancelUpdateParamPlan) ProposalType() string {
return proposalTypeMsgGovCancelUpdateParams
}
// Implements Proposal Interface
var _ gov.Content = &MsgGovAddDenoms{}
// GetTitle returns the title of a community pool spend proposal.
func (msg *MsgGovAddDenoms) GetTitle() string { return msg.Title }
// GetDescription returns the description of a community pool spend proposal.
func (msg *MsgGovAddDenoms) GetDescription() string { return msg.Description }
// GetDescription returns the routing key of a community pool spend proposal.
func (msg *MsgGovAddDenoms) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a community pool spend proposal.
func (msg *MsgGovAddDenoms) ProposalType() string {
return proposalTypeMsgGovAddDenoms
}
// Implements Proposal Interface
var _ gov.Content = &MsgGovRemoveCurrencyPairProviders{}
// GetTitle returns the title of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyPairProviders) GetTitle() string { return msg.Title }
// GetDescription returns the description of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyPairProviders) GetDescription() string { return msg.Description }
// GetDescription returns the routing key of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyPairProviders) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyPairProviders) ProposalType() string {
return proposalTypeMsgGovRemoveCurrencyPairProviders
}
// Implements Proposal Interface
var _ gov.Content = &MsgGovRemoveCurrencyDeviationThresholds{}
// GetTitle returns the title of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyDeviationThresholds) GetTitle() string { return msg.Title }
// GetDescription returns the description of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyDeviationThresholds) GetDescription() string { return msg.Description }
// GetDescription returns the routing key of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyDeviationThresholds) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a community pool spend proposal.
func (msg *MsgGovRemoveCurrencyDeviationThresholds) ProposalType() string {
return proposalTypeMsgGovRemoveCurrencyDeviationThresholds
}