decode

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonTx

func JsonTx(raw []byte) (cosmosTypes.Tx, error)

Types

type CancelUnbondingDelegation added in v1.6.0

type CancelUnbondingDelegation struct {
	Amount         *types.Coin
	Validator      string
	Delegator      string
	CreationHeight int64
}

func NewCancelUnbondingDelegation added in v1.6.0

func NewCancelUnbondingDelegation(m map[string]any) (body CancelUnbondingDelegation, err error)

type CoinReceived

type CoinReceived struct {
	Amount   *types.Coin
	Receiver string
}

func NewCoinReceived

func NewCoinReceived(m map[string]any) (body CoinReceived, err error)

type CoinSpent

type CoinSpent struct {
	Amount  *types.Coin
	Spender string
}

func NewCoinSpent

func NewCoinSpent(m map[string]any) (body CoinSpent, err error)

type Commission added in v1.6.0

type Commission struct {
	Amount    decimal.Decimal
	Validator string
}

func NewCommission added in v1.6.0

func NewCommission(m map[string]any) (body Commission, err error)

type CompleteRedelegation added in v1.6.0

type CompleteRedelegation struct {
	Amount        *types.Coin
	Delegator     string
	DestValidator string
	SrcValidator  string
}

func NewCompleteRedelegation added in v1.6.0

func NewCompleteRedelegation(m map[string]any) (body CompleteRedelegation, err error)

type CompleteUnbonding added in v1.6.0

type CompleteUnbonding struct {
	Amount    *types.Coin
	Delegator string
	Validator string
}

func NewCompleteUnbonding added in v1.6.0

func NewCompleteUnbonding(m map[string]any) (body CompleteUnbonding, err error)

type DecodedMsg

type DecodedMsg struct {
	Msg       storage.Message
	BlobsSize int64
	Addresses []storage.AddressWithType
}

func Message

func Message(
	ctx *context.Context,
	msg cosmosTypes.Msg,
	position int,
	status storageTypes.Status,
) (d DecodedMsg, err error)

type DecodedTx

type DecodedTx struct {
	AuthInfo      tx.AuthInfo
	TimeoutHeight uint64
	Memo          string
	Messages      []cosmosTypes.Msg
	Fee           decimal.Decimal
	Signers       map[types.Address][]byte
	Blobs         []*blobTypes.Blob
}

func Tx

func Tx(b types.BlockData, index int) (d DecodedTx, err error)

type Delegate added in v1.6.0

type Delegate struct {
	Amount    *types.Coin
	NewShares decimal.Decimal
	Validator string
}

func NewDelegate added in v1.6.0

func NewDelegate(m map[string]any) (body Delegate, err error)

type Redelegate added in v1.6.0

type Redelegate struct {
	Amount         *types.Coin
	DestValidator  string
	SrcValidator   string
	CompletionTime time.Time
}

func NewRedelegate added in v1.6.0

func NewRedelegate(m map[string]any) (body Redelegate, err error)

type Rewards added in v1.6.0

type Rewards struct {
	Amount    decimal.Decimal
	Validator string
}

func NewRewards added in v1.6.0

func NewRewards(m map[string]any) (body Rewards, err error)

type Slash added in v1.6.0

type Slash struct {
	Power       decimal.Decimal
	Jailed      string
	Reason      string
	Address     string
	BurnedCoins decimal.Decimal
}

func NewSlash added in v1.6.0

func NewSlash(m map[string]any) (body Slash, err error)

type Unbond added in v1.6.0

type Unbond struct {
	Amount         *types.Coin
	Validator      string
	CompletionTime time.Time
}

func NewUnbond added in v1.6.0

func NewUnbond(m map[string]any) (body Unbond, err error)

type WithdrawCommission added in v1.6.0

type WithdrawCommission struct {
	Amount *types.Coin
}

func NewWithdrawCommission added in v1.6.0

func NewWithdrawCommission(m map[string]any) (body WithdrawCommission, err error)

type WithdrawRewards added in v1.6.0

type WithdrawRewards struct {
	Amount    *types.Coin
	Validator string
	Delegator string
}

func NewWithdrawRewards added in v1.6.0

func NewWithdrawRewards(m map[string]any) (body WithdrawRewards, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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