Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidActionType = fmt.Errorf("not a valid ActionType, try [%s]", strings.Join(_ActionTypeNames, ", "))
var ErrInvalidModuleName = errors.New("not a valid ModuleName")
var ErrInvalidStatus = fmt.Errorf("not a valid Status, try [%s]", strings.Join(_StatusNames, ", "))
Functions ¶
func ActionTypeNames ¶
func ActionTypeNames() []string
ActionTypeNames returns a list of possible string values of ActionType.
func StatusNames ¶
func StatusNames() []string
StatusNames returns a list of possible string values of Status.
Types ¶
type ActionType ¶
type ActionType string
swagger:enum ActionType
ENUM( transfer, rollup_data_submission, validator_update, sudo_address_change, ibc_relay, ics20_withdrawal, ibc_relayer_change, fee_asset_change, init_bridge_account, bridge_lock, bridge_unlock, bridge_sudo_change_action, fee_change, ibc_sudo_change_action )
const ( // ActionTypeTransfer is a ActionType of type transfer. ActionTypeTransfer ActionType = "transfer" // ActionTypeRollupDataSubmission is a ActionType of type rollup_data_submission. ActionTypeRollupDataSubmission ActionType = "rollup_data_submission" // ActionTypeValidatorUpdate is a ActionType of type validator_update. ActionTypeValidatorUpdate ActionType = "validator_update" // ActionTypeSudoAddressChange is a ActionType of type sudo_address_change. ActionTypeSudoAddressChange ActionType = "sudo_address_change" // ActionTypeIbcRelay is a ActionType of type ibc_relay. ActionTypeIbcRelay ActionType = "ibc_relay" // ActionTypeIcs20Withdrawal is a ActionType of type ics20_withdrawal. ActionTypeIcs20Withdrawal ActionType = "ics20_withdrawal" // ActionTypeIbcRelayerChange is a ActionType of type ibc_relayer_change. ActionTypeIbcRelayerChange ActionType = "ibc_relayer_change" // ActionTypeFeeAssetChange is a ActionType of type fee_asset_change. ActionTypeFeeAssetChange ActionType = "fee_asset_change" // ActionTypeInitBridgeAccount is a ActionType of type init_bridge_account. ActionTypeInitBridgeAccount ActionType = "init_bridge_account" // ActionTypeBridgeLock is a ActionType of type bridge_lock. ActionTypeBridgeLock ActionType = "bridge_lock" // ActionTypeBridgeUnlock is a ActionType of type bridge_unlock. ActionTypeBridgeUnlock ActionType = "bridge_unlock" // ActionTypeBridgeSudoChangeAction is a ActionType of type bridge_sudo_change_action. ActionTypeBridgeSudoChangeAction ActionType = "bridge_sudo_change_action" // ActionTypeFeeChange is a ActionType of type fee_change. ActionTypeFeeChange ActionType = "fee_change" // ActionTypeIbcSudoChangeAction is a ActionType of type ibc_sudo_change_action. ActionTypeIbcSudoChangeAction ActionType = "ibc_sudo_change_action" )
func ActionTypeValues ¶
func ActionTypeValues() []ActionType
ActionTypeValues returns a list of the values for ActionType
func ParseActionType ¶
func ParseActionType(name string) (ActionType, error)
ParseActionType attempts to convert a string to a ActionType.
func (ActionType) IsValid ¶
func (x ActionType) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (ActionType) MarshalText ¶
func (x ActionType) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (*ActionType) Scan ¶
func (x *ActionType) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ActionType) String ¶
func (x ActionType) String() string
String implements the Stringer interface.
func (*ActionType) UnmarshalText ¶
func (x *ActionType) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type ActionTypeMask ¶
type ActionTypeMask struct {
Bits
}
func NewActionTypeMask ¶
func NewActionTypeMask(vals ...string) ActionTypeMask
func NewActionTypeMaskBits ¶
func NewActionTypeMaskBits(bits Bits) ActionTypeMask
func (ActionTypeMask) Empty ¶
func (mask ActionTypeMask) Empty() bool
func (*ActionTypeMask) SetType ¶
func (mask *ActionTypeMask) SetType(typ ActionType)
func (ActionTypeMask) Strings ¶
func (mask ActionTypeMask) Strings() []string
type Bits ¶
type Bits uint64
const ( ActionTypeTransferBits Bits = 1 << iota ActionTypeRollupDataSubmissionBits ActionTypeValidatorUpdateBits ActionTypeSudoAddressChangeBits ActionTypeIbcRelayBits ActionTypeIcs20WithdrawalBits ActionTypeIbcRelayerChangeBits ActionTypeFeeAssetChangeBits ActionTypeInitBridgeAccountBits ActionTypeBridgeLockBits ActionTypeBridgeUnlockBits ActionTypeBridgeSudoChangeBits ActionTypeFeeChangeBits ActionTypeIbcSudoChangeBits )
type ModuleName ¶
type ModuleName string
swagger:enum ModuleName
ENUM( block, evidence, validator, version, generic )
const ( // ModuleNameBlock is a ModuleName of type block. ModuleNameBlock ModuleName = "block" // ModuleNameEvidence is a ModuleName of type evidence. ModuleNameEvidence ModuleName = "evidence" // ModuleNameValidator is a ModuleName of type validator. ModuleNameValidator ModuleName = "validator" // ModuleNameVersion is a ModuleName of type version. ModuleNameVersion ModuleName = "version" // ModuleNameGeneric is a ModuleName of type generic. ModuleNameGeneric ModuleName = "generic" )
func ModuleNameValues ¶
func ModuleNameValues() []ModuleName
ModuleNameValues returns a list of the values for ModuleName
func ParseModuleName ¶
func ParseModuleName(name string) (ModuleName, error)
ParseModuleName attempts to convert a string to a ModuleName.
func (ModuleName) IsValid ¶
func (x ModuleName) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (ModuleName) MarshalText ¶
func (x ModuleName) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (*ModuleName) Scan ¶
func (x *ModuleName) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (ModuleName) String ¶
func (x ModuleName) String() string
String implements the Stringer interface.
func (*ModuleName) UnmarshalText ¶
func (x *ModuleName) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type Status ¶
type Status string
swagger:enum Status
ENUM( success, failed )
func ParseStatus ¶
ParseStatus attempts to convert a string to a Status.
func StatusValues ¶
func StatusValues() []Status
StatusValues returns a list of the values for Status
func (Status) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (Status) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Status) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.