types

package
v0.0.0-...-24865f3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MsgTypeBitsUnknown uint64 = 1 << iota

	MsgTypeBitsSetWithdrawAddress
	MsgTypeBitsWithdrawDelegatorReward
	MsgTypeBitsWithdrawValidatorCommission
	MsgTypeBitsFundCommunityPool

	MsgTypeBitsCreateValidator
	MsgTypeBitsEditValidator
	MsgTypeBitsDelegate
	MsgTypeBitsBeginRedelegate
	MsgTypeBitsUndelegate
	MsgTypeBitsCancelUnbondingDelegation

	MsgTypeBitsUnjail

	MsgTypeBitsSend
	MsgTypeBitsMultiSend

	MsgTypeBitsCreateVestingAccount
	MsgTypeBitsCreatePermanentLockedAccount
	MsgTypeBitsCreatePeriodicVestingAccount

	MsgTypeBitsPayForBlobs

	MsgTypeBitsGrant
	MsgTypeBitsExec
	MsgTypeBitsRevoke

	MsgTypeBitsGrantAllowance
	MsgTypeBitsRevokeAllowance

	MsgTypeBitsRegisterEVMAddress

	MsgTypeBitsSubmitProposal
	MsgTypeBitsExecLegacyContent
	MsgTypeBitsVote
	MsgTypeBitsVoteWeighted
	MsgTypeBitsDeposit
)

Variables

View Source
var ErrInvalidEventType = errors.New("not a valid EventType")
View Source
var ErrInvalidModuleName = errors.New("not a valid ModuleName")
View Source
var ErrInvalidMsgAddressType = errors.New("not a valid MsgAddressType")
View Source
var ErrInvalidMsgType = errors.New("not a valid MsgType")
View Source
var ErrInvalidStatus = errors.New("not a valid Status")

Functions

This section is empty.

Types

type Bits

type Bits uint64

func (*Bits) Clear

func (b *Bits) Clear(flag Bits)

func (Bits) CountBits

func (b Bits) CountBits() int

func (Bits) Empty

func (b Bits) Empty() bool

func (Bits) Has

func (b Bits) Has(flag Bits) bool

func (*Bits) Set

func (b *Bits) Set(flag Bits)

type EventType

type EventType string

swagger:enum EventType

ENUM(
	unknown,
	coin_received,
	coinbase,
	coin_spent,
	burn,
	mint,
	message,
	proposer_reward,
	rewards,
	commission,
	liveness,
	transfer,

	celestia.blob.v1.EventPayForBlobs,

	redelegate,
	AttestationRequest,
	withdraw_rewards,
	withdraw_commission,
	set_withdraw_address,
	create_validator,
	delegate,
	edit_validator,
	unbond,
	tx,

	use_feegrant,
	revoke_feegrant,
	set_feegrant,
	update_feegrant,
	slash,

	proposal_vote,
	proposal_deposit,
	submit_proposal,

	cosmos.authz.v1beta1.EventGrant,

	send_packet,
	ibc_transfer
)
const (
	// EventTypeUnknown is a EventType of type unknown.
	EventTypeUnknown EventType = "unknown"
	// EventTypeCoinReceived is a EventType of type coin_received.
	EventTypeCoinReceived EventType = "coin_received"
	// EventTypeCoinbase is a EventType of type coinbase.
	EventTypeCoinbase EventType = "coinbase"
	// EventTypeCoinSpent is a EventType of type coin_spent.
	EventTypeCoinSpent EventType = "coin_spent"
	// EventTypeBurn is a EventType of type burn.
	EventTypeBurn EventType = "burn"
	// EventTypeMint is a EventType of type mint.
	EventTypeMint EventType = "mint"
	// EventTypeMessage is a EventType of type message.
	EventTypeMessage EventType = "message"
	// EventTypeProposerReward is a EventType of type proposer_reward.
	EventTypeProposerReward EventType = "proposer_reward"
	// EventTypeRewards is a EventType of type rewards.
	EventTypeRewards EventType = "rewards"
	// EventTypeCommission is a EventType of type commission.
	EventTypeCommission EventType = "commission"
	// EventTypeLiveness is a EventType of type liveness.
	EventTypeLiveness EventType = "liveness"
	// EventTypeTransfer is a EventType of type transfer.
	EventTypeTransfer EventType = "transfer"
	// EventTypeCelestiablobv1EventPayForBlobs is a EventType of type celestia.blob.v1.EventPayForBlobs.
	EventTypeCelestiablobv1EventPayForBlobs EventType = "celestia.blob.v1.EventPayForBlobs"
	// EventTypeRedelegate is a EventType of type redelegate.
	EventTypeRedelegate EventType = "redelegate"
	// EventTypeAttestationRequest is a EventType of type AttestationRequest.
	EventTypeAttestationRequest EventType = "AttestationRequest"
	// EventTypeWithdrawRewards is a EventType of type withdraw_rewards.
	EventTypeWithdrawRewards EventType = "withdraw_rewards"
	// EventTypeWithdrawCommission is a EventType of type withdraw_commission.
	EventTypeWithdrawCommission EventType = "withdraw_commission"
	// EventTypeSetWithdrawAddress is a EventType of type set_withdraw_address.
	EventTypeSetWithdrawAddress EventType = "set_withdraw_address"
	// EventTypeCreateValidator is a EventType of type create_validator.
	EventTypeCreateValidator EventType = "create_validator"
	// EventTypeDelegate is a EventType of type delegate.
	EventTypeDelegate EventType = "delegate"
	// EventTypeEditValidator is a EventType of type edit_validator.
	EventTypeEditValidator EventType = "edit_validator"
	// EventTypeUnbond is a EventType of type unbond.
	EventTypeUnbond EventType = "unbond"
	// EventTypeTx is a EventType of type tx.
	EventTypeTx EventType = "tx"
	// EventTypeUseFeegrant is a EventType of type use_feegrant.
	EventTypeUseFeegrant EventType = "use_feegrant"
	// EventTypeRevokeFeegrant is a EventType of type revoke_feegrant.
	EventTypeRevokeFeegrant EventType = "revoke_feegrant"
	// EventTypeSetFeegrant is a EventType of type set_feegrant.
	EventTypeSetFeegrant EventType = "set_feegrant"
	// EventTypeUpdateFeegrant is a EventType of type update_feegrant.
	EventTypeUpdateFeegrant EventType = "update_feegrant"
	// EventTypeSlash is a EventType of type slash.
	EventTypeSlash EventType = "slash"
	// EventTypeProposalVote is a EventType of type proposal_vote.
	EventTypeProposalVote EventType = "proposal_vote"
	// EventTypeProposalDeposit is a EventType of type proposal_deposit.
	EventTypeProposalDeposit EventType = "proposal_deposit"
	// EventTypeSubmitProposal is a EventType of type submit_proposal.
	EventTypeSubmitProposal EventType = "submit_proposal"
	// EventTypeCosmosauthzv1beta1EventGrant is a EventType of type cosmos.authz.v1beta1.EventGrant.
	EventTypeCosmosauthzv1beta1EventGrant EventType = "cosmos.authz.v1beta1.EventGrant"
	// EventTypeSendPacket is a EventType of type send_packet.
	EventTypeSendPacket EventType = "send_packet"
	// EventTypeIbcTransfer is a EventType of type ibc_transfer.
	EventTypeIbcTransfer EventType = "ibc_transfer"
)

func EventTypeValues

func EventTypeValues() []EventType

EventTypeValues returns a list of the values for EventType

func ParseEventType

func ParseEventType(name string) (EventType, error)

ParseEventType attempts to convert a string to a EventType.

func (EventType) IsValid

func (x EventType) IsValid() bool

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

func (EventType) MarshalText

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

MarshalText implements the text marshaller method.

func (*EventType) Scan

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

Scan implements the Scanner interface.

func (EventType) String

func (x EventType) String() string

String implements the Stringer interface.

func (*EventType) UnmarshalText

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

UnmarshalText implements the text unmarshaller method.

func (EventType) Value

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

Value implements the driver Valuer interface.

type ModuleName

type ModuleName string

swagger:enum ModuleName

ENUM(
	auth,
	blob,
	crisis,
	distribution,
	indexer,
	gov,
	slashing,
	staking
)
const (
	// ModuleNameAuth is a ModuleName of type auth.
	ModuleNameAuth ModuleName = "auth"
	// ModuleNameBlob is a ModuleName of type blob.
	ModuleNameBlob ModuleName = "blob"
	// ModuleNameCrisis is a ModuleName of type crisis.
	ModuleNameCrisis ModuleName = "crisis"
	// ModuleNameDistribution is a ModuleName of type distribution.
	ModuleNameDistribution ModuleName = "distribution"
	// ModuleNameIndexer is a ModuleName of type indexer.
	ModuleNameIndexer ModuleName = "indexer"
	// ModuleNameGov is a ModuleName of type gov.
	ModuleNameGov ModuleName = "gov"
	// ModuleNameSlashing is a ModuleName of type slashing.
	ModuleNameSlashing ModuleName = "slashing"
	// ModuleNameStaking is a ModuleName of type staking.
	ModuleNameStaking ModuleName = "staking"
)

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 MsgAddressType

type MsgAddressType string

swagger:enum MsgAddressType

ENUM(
	validator,
	delegator,
	depositor,

	validatorSrc,
	validatorDst,

	fromAddress,
	toAddress,
	input,
	output,

	grantee,
	granter,
	signer,
	withdraw,

	voter,
	proposer,
	authority,

	sender,
	receiver,
)
const (
	// MsgAddressTypeValidator is a MsgAddressType of type validator.
	MsgAddressTypeValidator MsgAddressType = "validator"
	// MsgAddressTypeDelegator is a MsgAddressType of type delegator.
	MsgAddressTypeDelegator MsgAddressType = "delegator"
	// MsgAddressTypeDepositor is a MsgAddressType of type depositor.
	MsgAddressTypeDepositor MsgAddressType = "depositor"
	// MsgAddressTypeValidatorSrc is a MsgAddressType of type validatorSrc.
	MsgAddressTypeValidatorSrc MsgAddressType = "validatorSrc"
	// MsgAddressTypeValidatorDst is a MsgAddressType of type validatorDst.
	MsgAddressTypeValidatorDst MsgAddressType = "validatorDst"
	// MsgAddressTypeFromAddress is a MsgAddressType of type fromAddress.
	MsgAddressTypeFromAddress MsgAddressType = "fromAddress"
	// MsgAddressTypeToAddress is a MsgAddressType of type toAddress.
	MsgAddressTypeToAddress MsgAddressType = "toAddress"
	// MsgAddressTypeInput is a MsgAddressType of type input.
	MsgAddressTypeInput MsgAddressType = "input"
	// MsgAddressTypeOutput is a MsgAddressType of type output.
	MsgAddressTypeOutput MsgAddressType = "output"
	// MsgAddressTypeGrantee is a MsgAddressType of type grantee.
	MsgAddressTypeGrantee MsgAddressType = "grantee"
	// MsgAddressTypeGranter is a MsgAddressType of type granter.
	MsgAddressTypeGranter MsgAddressType = "granter"
	// MsgAddressTypeSigner is a MsgAddressType of type signer.
	MsgAddressTypeSigner MsgAddressType = "signer"
	// MsgAddressTypeWithdraw is a MsgAddressType of type withdraw.
	MsgAddressTypeWithdraw MsgAddressType = "withdraw"
	// MsgAddressTypeVoter is a MsgAddressType of type voter.
	MsgAddressTypeVoter MsgAddressType = "voter"
	// MsgAddressTypeProposer is a MsgAddressType of type proposer.
	MsgAddressTypeProposer MsgAddressType = "proposer"
	// MsgAddressTypeAuthority is a MsgAddressType of type authority.
	MsgAddressTypeAuthority MsgAddressType = "authority"
	// MsgAddressTypeSender is a MsgAddressType of type sender.
	MsgAddressTypeSender MsgAddressType = "sender"
	// MsgAddressTypeReceiver is a MsgAddressType of type receiver.
	MsgAddressTypeReceiver MsgAddressType = "receiver"
)

func MsgAddressTypeValues

func MsgAddressTypeValues() []MsgAddressType

MsgAddressTypeValues returns a list of the values for MsgAddressType

func ParseMsgAddressType

func ParseMsgAddressType(name string) (MsgAddressType, error)

ParseMsgAddressType attempts to convert a string to a MsgAddressType.

func (MsgAddressType) IsValid

func (x MsgAddressType) IsValid() bool

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

func (MsgAddressType) MarshalText

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

MarshalText implements the text marshaller method.

func (*MsgAddressType) Scan

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

Scan implements the Scanner interface.

func (MsgAddressType) String

func (x MsgAddressType) String() string

String implements the Stringer interface.

func (*MsgAddressType) UnmarshalText

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

UnmarshalText implements the text unmarshaller method.

func (MsgAddressType) Value

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

Value implements the driver Valuer interface.

type MsgType

type MsgType string

swagger:enum MsgType

ENUM(
	MsgUnknown,

	MsgSetWithdrawAddress,
	MsgWithdrawDelegatorReward,
	MsgWithdrawValidatorCommission,
	MsgFundCommunityPool,

	MsgCreateValidator,
	MsgEditValidator,
	MsgDelegate,
	MsgBeginRedelegate,
	MsgUndelegate,
	MsgCancelUnbondingDelegation,

	MsgUnjail,

	MsgSend,
	MsgMultiSend,

	MsgCreateVestingAccount,
	MsgCreatePermanentLockedAccount,
	MsgCreatePeriodicVestingAccount,

	MsgPayForBlobs,

	MsgGrant,
	MsgExec,
	MsgRevoke,

	MsgGrantAllowance,
	MsgRevokeAllowance,

	MsgRegisterEVMAddress,

	MsgSubmitProposal,
	MsgExecLegacyContent,
	MsgVote,
	MsgVoteWeighted,
	MsgDeposit,

	IBCTransfer,
)
const (
	// MsgUnknown is a MsgType of type MsgUnknown.
	MsgUnknown MsgType = "MsgUnknown"
	// MsgSetWithdrawAddress is a MsgType of type MsgSetWithdrawAddress.
	MsgSetWithdrawAddress MsgType = "MsgSetWithdrawAddress"
	// MsgWithdrawDelegatorReward is a MsgType of type MsgWithdrawDelegatorReward.
	MsgWithdrawDelegatorReward MsgType = "MsgWithdrawDelegatorReward"
	// MsgWithdrawValidatorCommission is a MsgType of type MsgWithdrawValidatorCommission.
	MsgWithdrawValidatorCommission MsgType = "MsgWithdrawValidatorCommission"
	// MsgFundCommunityPool is a MsgType of type MsgFundCommunityPool.
	MsgFundCommunityPool MsgType = "MsgFundCommunityPool"
	// MsgCreateValidator is a MsgType of type MsgCreateValidator.
	MsgCreateValidator MsgType = "MsgCreateValidator"
	// MsgEditValidator is a MsgType of type MsgEditValidator.
	MsgEditValidator MsgType = "MsgEditValidator"
	// MsgDelegate is a MsgType of type MsgDelegate.
	MsgDelegate MsgType = "MsgDelegate"
	// MsgBeginRedelegate is a MsgType of type MsgBeginRedelegate.
	MsgBeginRedelegate MsgType = "MsgBeginRedelegate"
	// MsgUndelegate is a MsgType of type MsgUndelegate.
	MsgUndelegate MsgType = "MsgUndelegate"
	// MsgCancelUnbondingDelegation is a MsgType of type MsgCancelUnbondingDelegation.
	MsgCancelUnbondingDelegation MsgType = "MsgCancelUnbondingDelegation"
	// MsgUnjail is a MsgType of type MsgUnjail.
	MsgUnjail MsgType = "MsgUnjail"
	// MsgSend is a MsgType of type MsgSend.
	MsgSend MsgType = "MsgSend"
	// MsgMultiSend is a MsgType of type MsgMultiSend.
	MsgMultiSend MsgType = "MsgMultiSend"
	// MsgCreateVestingAccount is a MsgType of type MsgCreateVestingAccount.
	MsgCreateVestingAccount MsgType = "MsgCreateVestingAccount"
	// MsgCreatePermanentLockedAccount is a MsgType of type MsgCreatePermanentLockedAccount.
	MsgCreatePermanentLockedAccount MsgType = "MsgCreatePermanentLockedAccount"
	// MsgCreatePeriodicVestingAccount is a MsgType of type MsgCreatePeriodicVestingAccount.
	MsgCreatePeriodicVestingAccount MsgType = "MsgCreatePeriodicVestingAccount"
	// MsgPayForBlobs is a MsgType of type MsgPayForBlobs.
	MsgPayForBlobs MsgType = "MsgPayForBlobs"
	// MsgGrant is a MsgType of type MsgGrant.
	MsgGrant MsgType = "MsgGrant"
	// MsgExec is a MsgType of type MsgExec.
	MsgExec MsgType = "MsgExec"
	// MsgRevoke is a MsgType of type MsgRevoke.
	MsgRevoke MsgType = "MsgRevoke"
	// MsgGrantAllowance is a MsgType of type MsgGrantAllowance.
	MsgGrantAllowance MsgType = "MsgGrantAllowance"
	// MsgRevokeAllowance is a MsgType of type MsgRevokeAllowance.
	MsgRevokeAllowance MsgType = "MsgRevokeAllowance"
	// MsgRegisterEVMAddress is a MsgType of type MsgRegisterEVMAddress.
	MsgRegisterEVMAddress MsgType = "MsgRegisterEVMAddress"
	// MsgSubmitProposal is a MsgType of type MsgSubmitProposal.
	MsgSubmitProposal MsgType = "MsgSubmitProposal"
	// MsgExecLegacyContent is a MsgType of type MsgExecLegacyContent.
	MsgExecLegacyContent MsgType = "MsgExecLegacyContent"
	// MsgVote is a MsgType of type MsgVote.
	MsgVote MsgType = "MsgVote"
	// MsgVoteWeighted is a MsgType of type MsgVoteWeighted.
	MsgVoteWeighted MsgType = "MsgVoteWeighted"
	// MsgDeposit is a MsgType of type MsgDeposit.
	MsgDeposit MsgType = "MsgDeposit"
	// IBCTransfer is a MsgType of type IBCTransfer.
	IBCTransfer MsgType = "IBCTransfer"
)

func MsgTypeValues

func MsgTypeValues() []MsgType

MsgTypeValues returns a list of the values for MsgType

func ParseMsgType

func ParseMsgType(name string) (MsgType, error)

ParseMsgType attempts to convert a string to a MsgType.

func (MsgType) IsValid

func (x MsgType) IsValid() bool

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

func (MsgType) MarshalText

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

MarshalText implements the text marshaller method.

func (*MsgType) Scan

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

Scan implements the Scanner interface.

func (MsgType) String

func (x MsgType) String() string

String implements the Stringer interface.

func (*MsgType) UnmarshalText

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

UnmarshalText implements the text unmarshaller method.

func (MsgType) Value

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

Value implements the driver Valuer interface.

type MsgTypeBits

type MsgTypeBits struct {
	Bits
}

func NewMsgTypeBitMask

func NewMsgTypeBitMask(values ...MsgType) MsgTypeBits

func (MsgTypeBits) HasOne

func (mask MsgTypeBits) HasOne(value MsgTypeBits) bool

func (MsgTypeBits) Names

func (mask MsgTypeBits) Names() []MsgType

func (*MsgTypeBits) Scan

func (mask *MsgTypeBits) Scan(src interface{}) (err error)

func (*MsgTypeBits) SetBit

func (mask *MsgTypeBits) SetBit(value MsgType)

func (MsgTypeBits) Value

func (mask MsgTypeBits) Value() (driver.Value, error)

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