Documentation
¶
Index ¶
- func JsonTx(raw []byte) (cosmosTypes.Tx, error)
- func MsgToMap(msg cosmosTypes.Msg) (storageTypes.PackedBytes, error)
- func UnmarshalBlobTxShallow(tx tmTypes.Tx) (bTx blobTypes.BlobTx, isBlob bool)
- type AcknowledgementPacket
- type CancelUnbondingDelegation
- type ChannelChange
- type CoinReceived
- type CoinSpent
- type Commission
- type CompleteRedelegation
- type CompleteUnbonding
- type ConnectionChange
- type CreateCollateralToken
- type CreateMailbox
- type CreateSyntheticToken
- type DecodedMsg
- type DecodedTx
- type Delegate
- type EventForwardingComplete
- type EventTokenForwarded
- type FungibleTokenPacket
- type HyperlaneCreateIgpEvent
- type HyperlaneDispatchEvent
- type HyperlaneGasPaymentEvent
- type HyperlaneProcessEvent
- type HyperlaneReceiveTransferEvent
- type HyperlaneSendTransferEvent
- type HyperlaneSetDestinationGasConfig
- type HyperlaneSetIgpEvent
- type ProposalStatus
- type RecvPacket
- type Redelegate
- type Rewards
- type SetMailbox
- type SetToken
- type Slash
- type Unbond
- type UpdateClient
- type WithdrawCommission
- type WithdrawRewards
- type ZkISMCreateEvent
- type ZkISMSubmitMessagesEvent
- type ZkISMUpdateEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MsgToMap ¶ added in v1.19.0
func MsgToMap(msg cosmosTypes.Msg) (storageTypes.PackedBytes, error)
MsgToMap converts a cosmos Msg to PackedBytes using the codec JSON marshaler. Exported for use in tests.
func UnmarshalBlobTxShallow ¶ added in v1.19.0
UnmarshalBlobTxShallow parses a BlobTx from its wire-format bytes while capping each Blob.Data at blobDataSniffLen bytes.
It replicates the validation logic of tmTypes.UnmarshalBlobTx (type_id check, non-empty blobs, correct namespace ID length) so it can be used as a drop-in replacement.
Types ¶
type AcknowledgementPacket ¶ added in v1.15.29
type AcknowledgementPacket struct {
ConnectionID string
MsgIndex string
PacketChannelOrdering string
PacketConnection string
PacketDstChannel string
PacketDstPort string
PacketSequence uint64
PacketSrcChannel string
PacketSrcPort string
Timeout time.Time
TimeoutHeight uint64
}
func NewAcknowledgementPacket ¶ added in v1.15.29
func NewAcknowledgementPacket(m map[string]string) (ap AcknowledgementPacket, err error)
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]string) (body CancelUnbondingDelegation, err error)
type ChannelChange ¶ added in v1.13.0
type ChannelChange struct {
ChannelId string
ConnectionId string
CounterpartyChannelId string
CounterpartyPortId string
PortId string
}
func NewChannelChange ¶ added in v1.13.0
func NewChannelChange(m map[string]string) (cc ChannelChange)
type CoinReceived ¶
func NewCoinReceived ¶
func NewCoinReceived(m map[string]string) (body CoinReceived, err error)
type Commission ¶ added in v1.6.0
type Commission struct {
Amount storageTypes.Numeric
Validator string
}
func NewCommission ¶ added in v1.6.0
func NewCommission(m map[string]string) (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]string) (body CompleteRedelegation, err error)
type CompleteUnbonding ¶ added in v1.6.0
func NewCompleteUnbonding ¶ added in v1.6.0
func NewCompleteUnbonding(m map[string]string) (body CompleteUnbonding, err error)
type ConnectionChange ¶ added in v1.13.0
type ConnectionChange struct {
ClientId string
ConnectionId string
CounterpartyClientId string
CounterpartyConnectionId string
}
func NewConnectionOpen ¶ added in v1.13.0
func NewConnectionOpen(m map[string]string) (cc ConnectionChange)
type CreateCollateralToken ¶ added in v1.15.0
func NewCreateCollateralToken ¶ added in v1.15.0
func NewCreateCollateralToken(m map[string]string) (cct CreateCollateralToken, err error)
type CreateMailbox ¶ added in v1.15.0
type CreateMailbox struct {
MailboxId string
Owner string
DefaultIsm string
DefaultHook string
RequiredHook string
LocalDomain uint64
}
func NewCreateMailbox ¶ added in v1.15.0
func NewCreateMailbox(m map[string]string) (cm CreateMailbox, err error)
type CreateSyntheticToken ¶ added in v1.15.0
func NewCreateSyntheticToken ¶ added in v1.15.0
func NewCreateSyntheticToken(m map[string]string) (cst CreateSyntheticToken, err error)
type DecodedMsg ¶
func Message ¶
func Message( ctx *context.Context, msg cosmosTypes.Msg, position int, status storageTypes.Status, txId uint64, ) (d DecodedMsg, err error)
type DecodedTx ¶
type DecodedTx struct {
TimeoutHeight uint64
Memo string
Messages []cosmosTypes.Msg
Fee decimal.Decimal
Signers map[types.Address][]byte
Blobs []*blobTypes.Blob
Hash []byte
}
func NewDecodedTx ¶ added in v1.13.0
func NewDecodedTx() DecodedTx
type EventForwardingComplete ¶ added in v1.18.13
type EventForwardingComplete struct {
ForwardAddress string
DestinationDomain uint64
DestinationRecipient []byte
SuccessfulCount uint64
FailedCount uint64
}
func NewEventForwardingComplete ¶ added in v1.18.13
func NewEventForwardingComplete(m map[string]string) (efc EventForwardingComplete, err error)
type EventTokenForwarded ¶ added in v1.18.13
type EventTokenForwarded struct {
ForwardAddress string
Denom string
Amount string
MessageId string
Success bool
Error string
}
func NewEventTokenForwarded ¶ added in v1.18.13
func NewEventTokenForwarded(m map[string]string) (etf EventTokenForwarded, err error)
type FungibleTokenPacket ¶ added in v1.13.0
type FungibleTokenPacket struct {
Amount storageTypes.Numeric
Denom string
Memo string
Module string
Receiver string
Sender string
Success string
Error string
}
func NewFungibleTokenPacket ¶ added in v1.13.0
func NewFungibleTokenPacket(m map[string]string) (ftp FungibleTokenPacket)
type HyperlaneCreateIgpEvent ¶ added in v1.17.0
func NewHyperlaneCreateIgpEvent ¶ added in v1.17.0
func NewHyperlaneCreateIgpEvent(m map[string]string) (hcie HyperlaneCreateIgpEvent, err error)
type HyperlaneDispatchEvent ¶ added in v1.15.0
type HyperlaneDispatchEvent struct {
OriginMailboxId string
Sender string
Recipient string
Destination uint64
Message *util.HyperlaneMessage
}
func NewHyperlaneDispatchEvent ¶ added in v1.15.0
func NewHyperlaneDispatchEvent(m map[string]string) (hde HyperlaneDispatchEvent, err error)
type HyperlaneGasPaymentEvent ¶ added in v1.17.0
type HyperlaneGasPaymentEvent struct {
Amount storageTypes.Numeric
GasAmount storageTypes.Numeric
IgpId string
}
func NewHyperlaneGasPaymentEvent ¶ added in v1.17.0
func NewHyperlaneGasPaymentEvent(m map[string]string) (hgpe HyperlaneGasPaymentEvent, err error)
type HyperlaneProcessEvent ¶ added in v1.15.0
type HyperlaneProcessEvent struct {
OriginMailboxId string
Sender string
Recipient string
MessageId string
Origin uint64
Message *util.HyperlaneMessage
}
func NewHyperlaneProcessEvent ¶ added in v1.15.0
func NewHyperlaneProcessEvent(m map[string]string) (hpe HyperlaneProcessEvent, err error)
type HyperlaneReceiveTransferEvent ¶ added in v1.15.0
type HyperlaneReceiveTransferEvent struct {
Amount storageTypes.Numeric
Denom string
OriginDomain uint64
Recipient string
Sender string
TokenId string
}
func NewHyperlaneReceiveTransferEvent ¶ added in v1.15.0
func NewHyperlaneReceiveTransferEvent(m map[string]string) (hrte HyperlaneReceiveTransferEvent, err error)
type HyperlaneSendTransferEvent ¶ added in v1.15.0
type HyperlaneSendTransferEvent struct {
Amount storageTypes.Numeric
Denom string
DestinationDomain uint64
Recipient string
Sender string
TokenId string
}
func NewHyperlaneSendTransferEvent ¶ added in v1.15.0
func NewHyperlaneSendTransferEvent(m map[string]string) (hste HyperlaneSendTransferEvent, err error)
type HyperlaneSetDestinationGasConfig ¶ added in v1.17.0
type HyperlaneSetDestinationGasConfig struct {
GasOverhead storageTypes.Numeric
GasPrice storageTypes.Numeric
IgpId string
Owner string
RemoteDomain uint64
TokenExchangeRate string
}
func NewHyperlaneSetDestinationGasConfig ¶ added in v1.17.0
func NewHyperlaneSetDestinationGasConfig(m map[string]string) (hsdgc HyperlaneSetDestinationGasConfig, err error)
type HyperlaneSetIgpEvent ¶ added in v1.17.0
type HyperlaneSetIgpEvent struct {
IgpId string
Owner string
NewOwner string
RenounceOwnership bool
}
func NewHyperlaneSetIgpEvent ¶ added in v1.17.0
func NewHyperlaneSetIgpEvent(m map[string]string) (hsie HyperlaneSetIgpEvent, err error)
type ProposalStatus ¶ added in v1.12.0
func NewProposalStatus ¶ added in v1.12.0
func NewProposalStatus(m map[string]string) (body ProposalStatus, err error)
type RecvPacket ¶ added in v1.13.0
type RecvPacket struct {
Ordering string
Connection string
Data string
DstChannel string
DstPort string
SrcChannel string
SrcPort string
Sequence uint64
Timeout time.Time
TimeoutHeight uint64
}
func NewRecvPacket ¶ added in v1.13.0
func NewRecvPacket(m map[string]string) (rp RecvPacket, 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]string) (body Redelegate, err error)
type Rewards ¶ added in v1.6.0
type Rewards struct {
Amount storageTypes.Numeric
Validator string
}
type SetMailbox ¶ added in v1.15.0
type SetMailbox struct {
MailboxId string
Owner string
DefaultIsm string
DefaultHook string
NewOwner string
RenounceOwnership bool
}
func NewSetMailbox ¶ added in v1.15.0
func NewSetMailbox(m map[string]string) (sm SetMailbox, err error)
type SetToken ¶ added in v1.15.0
type Slash ¶ added in v1.6.0
type Slash struct {
Power storageTypes.Numeric
Jailed string
Reason string
Address string
BurnedCoins storageTypes.Numeric
}
type UpdateClient ¶ added in v1.13.0
func NewUpdateClient ¶ added in v1.13.0
func NewUpdateClient(m map[string]string) (cc UpdateClient, err error)
type WithdrawCommission ¶ added in v1.6.0
func NewWithdrawCommission ¶ added in v1.6.0
func NewWithdrawCommission(m map[string]string) (body WithdrawCommission, err error)
type WithdrawRewards ¶ added in v1.6.0
func NewWithdrawRewards ¶ added in v1.6.0
func NewWithdrawRewards(m map[string]string) (body WithdrawRewards, err error)
type ZkISMCreateEvent ¶ added in v1.18.13
type ZkISMCreateEvent struct {
Id []byte
Creator string
State []byte
MerkleTreeAddress []byte
Groth16VKey []byte
StateTransitionVKey []byte
StateMembershipVKey []byte
}
func NewZkISMCreateEvent ¶ added in v1.18.13
func NewZkISMCreateEvent(m map[string]string) (e ZkISMCreateEvent, err error)
type ZkISMSubmitMessagesEvent ¶ added in v1.18.13
func NewZkISMSubmitMessagesEvent ¶ added in v1.18.13
func NewZkISMSubmitMessagesEvent(m map[string]string) (e ZkISMSubmitMessagesEvent, err error)
type ZkISMUpdateEvent ¶ added in v1.18.13
func NewZkISMUpdateEvent ¶ added in v1.18.13
func NewZkISMUpdateEvent(m map[string]string) (e ZkISMUpdateEvent, err error)
Click to show internal directories.
Click to hide internal directories.