-
Notifications
You must be signed in to change notification settings - Fork 1
/
whiteliste_ibc_channel_proposal.go
45 lines (34 loc) · 1.55 KB
/
whiteliste_ibc_channel_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
package types
import (
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
)
const (
// UpdatePriceFeederInfo defines the type for a CreateWhitelistedIBCChannelProposal
CreateWhitelistedIBCChannel = "CreateWhitelistedIBCChannel"
)
// Assert CreateWhitelistedIBCChannelProposal implements govtypes.Content at compile-time
var _ govtypes.Content = &CreateWhitelistedIBCChannelProposal{}
func init() {
govtypes.RegisterProposalType(CreateWhitelistedIBCChannel)
}
func NewCreateWhitelistedIBCChannelProposal(
title, description string, channels Channels,
) *CreateWhitelistedIBCChannelProposal {
return &CreateWhitelistedIBCChannelProposal{title, description, channels}
}
// GetTitle returns the title of a update price feeder info proposal.
func (p *CreateWhitelistedIBCChannelProposal) GetTitle() string { return p.Title }
// GetDescription returns the description of a update price feeder info proposal.
func (p *CreateWhitelistedIBCChannelProposal) GetDescription() string { return p.Description }
// ProposalRoute returns the routing key of a update price feeder info proposal.
func (*CreateWhitelistedIBCChannelProposal) ProposalRoute() string { return RouterKey }
// ProposalType returns the type of a update price feeder info proposal.
func (*CreateWhitelistedIBCChannelProposal) ProposalType() string { return UpdatePriceFeederInfo }
// ValidateBasic validates the update price feeder info proposal.
func (p *CreateWhitelistedIBCChannelProposal) ValidateBasic() error {
err := govtypes.ValidateAbstract(p)
if err != nil {
return err
}
return nil
}