types

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidActionType = fmt.Errorf("not a valid ActionType, try [%s]", strings.Join(_ActionTypeNames, ", "))
View Source
var ErrInvalidAppCategory = fmt.Errorf("not a valid AppCategory, try [%s]", strings.Join(_AppCategoryNames, ", "))
View Source
var ErrInvalidAppType = fmt.Errorf("not a valid AppType, try [%s]", strings.Join(_AppTypeNames, ", "))
View Source
var ErrInvalidModuleName = errors.New("not a valid ModuleName")
View Source
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.

func (ActionType) Value

func (x ActionType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

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.

func (AppCategory) Value added in v1.2.0

func (x AppCategory) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type AppType added in v1.2.0

type AppType string

swagger:enum AppType

ENUM(
	sovereign,
	settled
)
const (
	// AppTypeSovereign is a AppType of type sovereign.
	AppTypeSovereign AppType = "sovereign"
	// AppTypeSettled is a AppType of type settled.
	AppTypeSettled AppType = "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

func ParseAppType(name string) (AppType, error)

ParseAppType attempts to convert a string to a AppType.

func (AppType) IsValid added in v1.2.0

func (x AppType) IsValid() bool

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

func (x AppType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (*AppType) Scan added in v1.2.0

func (x *AppType) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (AppType) String added in v1.2.0

func (x AppType) String() string

String implements the Stringer interface.

func (*AppType) UnmarshalText added in v1.2.0

func (x *AppType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

func (AppType) Value added in v1.2.0

func (x AppType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Bits

type Bits uint64
const (
	ActionTypeTransferBits Bits = 1 << iota
	ActionTypeRollupDataSubmissionBits
	ActionTypeValidatorUpdateBits
	ActionTypeSudoAddressChangeBits
	ActionTypeIbcRelayBits
	ActionTypeIcs20WithdrawalBits
	ActionTypeIbcRelayerChangeBits
	ActionTypeFeeAssetChangeBits
	ActionTypeInitBridgeAccountBits
	ActionTypeBridgeLockBits
	ActionTypeBridgeUnlockBits
	ActionTypeBridgeSudoChangeBits
	ActionTypeFeeChangeBits
	ActionTypeIbcSudoChangeBits
)

func (*Bits) Clear

func (b *Bits) Clear(flag Bits)

func (Bits) Has

func (b Bits) Has(flag Bits) bool

func (*Bits) Set

func (b *Bits) Set(flag Bits)

func (*Bits) Toggle

func (b *Bits) Toggle(flag Bits)

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.

func (ModuleName) Value

func (x ModuleName) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Status

type Status string

swagger:enum Status

ENUM(
	success,
	failed
)
const (
	// StatusSuccess is a Status of type success.
	StatusSuccess Status = "success"
	// StatusFailed is a Status of type failed.
	StatusFailed Status = "failed"
)

func ParseStatus

func ParseStatus(name string) (Status, error)

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

func (x Status) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (Status) MarshalText

func (x Status) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (*Status) Scan

func (x *Status) Scan(value interface{}) (err error)

Scan implements the Scanner interface.

func (Status) String

func (x Status) String() string

String implements the Stringer interface.

func (*Status) UnmarshalText

func (x *Status) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

func (Status) Value

func (x Status) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL