Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidActionType = fmt.Errorf("not a valid ActionType, try [%s]", strings.Join(_ActionTypeNames, ", "))
var ErrInvalidAppCategory = fmt.Errorf("not a valid AppCategory, try [%s]", strings.Join(_AppCategoryNames, ", "))
var ErrInvalidAppType = fmt.Errorf("not a valid AppType, try [%s]", strings.Join(_AppTypeNames, ", "))
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 AppCategoryNames ¶ added in v1.2.0
func AppCategoryNames() []string
AppCategoryNames returns a list of possible string values of AppCategory.
func AppTypeNames ¶ added in v1.2.0
func AppTypeNames() []string
AppTypeNames returns a list of possible string values of AppType.
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 AppCategory ¶ added in v1.2.0
type AppCategory string
swagger:enum AppCategory
ENUM( uncategorized, finance, gaming, nft, social )
const ( // AppCategoryUncategorized is a AppCategory of type uncategorized. AppCategoryUncategorized AppCategory = "uncategorized" // AppCategoryFinance is a AppCategory of type finance. AppCategoryFinance AppCategory = "finance" // AppCategoryGaming is a AppCategory of type gaming. AppCategoryGaming AppCategory = "gaming" // AppCategoryNft is a AppCategory of type nft. AppCategoryNft AppCategory = "nft" // AppCategorySocial is a AppCategory of type social. AppCategorySocial AppCategory = "social" )
func AppCategoryValues ¶ added in v1.2.0
func AppCategoryValues() []AppCategory
AppCategoryValues returns a list of the values for AppCategory
func ParseAppCategory ¶ added in v1.2.0
func ParseAppCategory(name string) (AppCategory, error)
ParseAppCategory attempts to convert a string to a AppCategory.
func (AppCategory) IsValid ¶ added in v1.2.0
func (x AppCategory) IsValid() bool
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (AppCategory) MarshalText ¶ added in v1.2.0
func (x AppCategory) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (*AppCategory) Scan ¶ added in v1.2.0
func (x *AppCategory) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (AppCategory) String ¶ added in v1.2.0
func (x AppCategory) String() string
String implements the Stringer interface.
func (*AppCategory) UnmarshalText ¶ added in v1.2.0
func (x *AppCategory) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type AppType ¶ added in v1.2.0
type AppType string
swagger:enum AppType
ENUM( sovereign, settled )
func AppTypeValues ¶ added in v1.2.0
func AppTypeValues() []AppType
AppTypeValues returns a list of the values for AppType
func ParseAppType ¶ added in v1.2.0
ParseAppType attempts to convert a string to a AppType.
func (AppType) IsValid ¶ added in v1.2.0
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
func (AppType) MarshalText ¶ added in v1.2.0
MarshalText implements the text marshaller method.
func (*AppType) UnmarshalText ¶ added in v1.2.0
UnmarshalText implements the text unmarshaller method.
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.