forked from umee-network/umee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proposal_legacy.go
31 lines (22 loc) · 1.04 KB
/
proposal_legacy.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
package upgradev3x3
import (
"encoding/json"
gov1b1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)
// Assert UpdateRegistryProposal implements govtypes.Content at compile-time
var _ gov1b1.Content = &UpdateRegistryProposal{}
// String implements the Stringer interface.
func (p UpdateRegistryProposal) String() string {
b, _ := json.Marshal(p)
return string(b)
}
// GetTitle returns the title of the proposal.
func (p *UpdateRegistryProposal) GetTitle() string { return p.Title }
// GetDescription returns the description of the proposal.
func (p *UpdateRegistryProposal) GetDescription() string { return p.Description }
// ProposalRoute returns the x/gov routing key of the proposal.
func (p *UpdateRegistryProposal) ProposalRoute() string { return "not needed" }
// ProposalType returns the x/gov type of the proposal.
func (p *UpdateRegistryProposal) ProposalType() string { return "not needed" }
// ValidateBasic validates the proposal returning an error if invalid.
func (p *UpdateRegistryProposal) ValidateBasic() error { return nil }