package
23.1.6+incompatible
Repository: https://github.com/zeta-chain/node.git
Documentation: pkg.go.dev
# Functions
BuildAssetRateMapFromList builds maps (foreign chain id -> asset -> rate) from a list of gas and erc20 asset rates The 1st map: foreign chain id -> gas coin asset rate The 2nd map: foreign chain id -> erc20 asset -> erc20 coin asset rate.
ConvertCctxValueToAzeta converts the value of the cctx to azeta using given conversion rates.
DefaultGenesis returns the default crosschain genesis state.
No description provided by the author
GetAllAuthzZetaclientTxTypes returns all the authz types for required for zetaclient.
GetCctxIndexFromBytes returns the CCTX index from a byte array.
GetERC20CustodyMigrationCCTXIndexString returns the index string of the CCTX for migrating ERC20 custody funds.
GetERC20CustodyPausingCmdCCTXIndexString returns the index string of the CCTX for updating the pause status of the ERC20 custody contract.
No description provided by the author
No description provided by the author
GetTssMigrationCCTXIndexString returns the index string of the CCTX for migrating funds from the current TSS to the new TSS.
InboundHashToCctxKey returns the store key to retrieve a InboundHashToCctx from the index fields.
No description provided by the author
MigrateERC20CustodyFundsCmdCCTX returns a CCTX allowing to migrate ERC20 custody funds.
MigrateFundCmdCCTX returns a CCTX allowing to migrate funds from the current TSS to the new TSS.
NewCallInbound creates a new inbound object for a call currently inbound data is represented with a MsgVoteInbound message TODO: replace with a more appropriate object https://github.com/zeta-chain/node/issues/2658.
NewCCTX creates a new CCTX from a MsgVoteInbound message and a TSS pubkey.
NewEmptyRevertOptions initializes a new empty RevertOptions.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMsgVoteGasPrice creates a new MsgVoteGasPrice instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRevertOptionsFromEVM initializes a new RevertOptions from a gatewayevm.RevertOptions.
NewRevertOptionsFromZEVM initializes a new RevertOptions from a gatewayzevm.RevertOptions.
NewWithdrawalInbound creates a new inbound object for a withdrawal currently inbound data is represented with a MsgVoteInbound message TODO: replace with a more appropriate object https://github.com/zeta-chain/node/issues/2658.
NewWithdrawAndCallInbound creates a new inbound object for a withdraw and call currently inbound data is represented with a MsgVoteInbound message TODO: replace with a more appropriate object https://github.com/zeta-chain/node/issues/2658.
OutboundTrackerKey returns the store key to retrieve a OutboundTracker from the index fields.
ParseGatewayCallEvent parses the GatewayZEVMCall event from the log.
ParseGatewayEvent parses the event from the gateway contract.
ParseGatewayWithdrawalEvent parses the GatewayZEVMWithdrawal event from the log.
ParseGatewayWithdrawAndCallEvent parses the GatewayZEVMWithdrawAndCall event from the log.
RateLimitExceeded accumulates the cctx value and then checks if the rate limit is exceeded returns true if the rate limit is exceeded.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
UpdateERC20CustodyPauseStatusCmdCCTX returns a CCTX allowing to update the pause status of the ERC20 custody contract.
ValidateAddressForChain validates the address for the chain NOTE: since these checks are currently not used, we don't provide additional chains for simplicity TODO: use authorityKeeper.GetChainInfo to provide additional chains https://github.com/zeta-chain/node/issues/2234 https://github.com/zeta-chain/node/issues/2385 NOTE: We should eventually not using these hard-coded checks at all for same reasons as above.
ValidateCCTXIndex validates the CCTX index.
ValidateHashForChain validates the hash for the chain NOTE: since these checks are currently not used, we don't provide additional chains for simplicity TODO: use authorityKeeper.GetChainInfo to provide additional chains https://github.com/zeta-chain/node/issues/2234 https://github.com/zeta-chain/node/issues/2385 NOTE: We should eventually not using these hard-coded checks at all since it might make the protocol too rigid Example: hash algorithm is changed for a chain: this required a upgrade on the protocol.
VerifyInboundBody validates the tx body for an inbound.
VerifyOutboundBody verifies the tx body for an outbound.
WhitelistERC20CmdCCTX returns a CCTX allowing to whitelist an ERC20 token on an external chain.
WithCrossChainCall sets the cross chain call to true for the inbound vote message.
WithEVMRevertOptions sets the revert options for the inbound vote message (EVM format) the function convert the type from abigen to type defined in proto.
WithMemoRevertOptions sets the revert options for inbound vote message.
WithZEVMRevertOptions sets the revert options for the inbound vote message (ZEVM format) the function convert the type from abigen to type defined in proto.
# Constants
CCTXIndexLength is the length of a crosschain transaction index.
CCTXKey is the key for the cross chain transaction NOTE: Send is the previous name of CCTX and is kept for backward compatibility.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ERC20CustodyMigrationGasMultiplierEVM is multiplied to the median gas price to get the gas price for the erc20 custody migration NOTE: this is a integer type unlike type above because the message logic is slightly different and an integer is needed.
ERC20CustodyPausingGasMultiplierEVM is multiplied to the median gas price to get the gas price for the erc20 custody pausing.
ERC20CustodyWhitelistGasMultiplierEVM is multiplied to the median gas price to get the gas price for the erc20 custody whitelist.
No description provided by the author
No description provided by the author
InboundHashToCctxKeyPrefix is the prefix to retrieve all InboundHashToCctx NOTE: InTxHashToCctx is the previous name of InboundHashToCctx and is kept for backward compatibility.
InboundTrackerKeyPrefix is the prefix to retrieve all InboundHashToCctx NOTE: InTxHashToCctx is the previous name of InboundHashToCctx and is kept for backward compatibility.
No description provided by the author
MaxMessageLength is the maximum length of a message in a cctx TODO: should parameterize the hardcoded max len FIXME: should allow this observation and handle errors in the state machine https://github.com/zeta-chain/node/issues/862.
MemStoreKey defines the in-memory store key NOTE: named metacore because previous module name was metacore we keep the current value for backward compatibility.
ModuleName defines the module name.
OutboundTrackerKeyPrefix is the prefix to retrieve all OutboundTracker NOTE: OutTxTracker is the previous name of OutboundTracker and is kept for backward compatibility.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RouterKey is the message route for slashing.
StoreKey defines the primary module store key.
TSSMigrationBufferAmountEVM is the buffer amount added to the gas price for the tss migration transaction.
TssMigrationGasMultiplierEVM is multiplied to the median gas price to get the gas price for the tss migration .
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ZetaAccountingKey value is used as prefix for storing ZetaAccountingKey #nosec G101: Potential hardcoded credentials (gosec).
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleAddressEVM common.EVMAddress.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenesisState defines the crosschain module's genesis state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
legacy MsgAddInboundTracker defined to keep codec compatibility.
legacy MsgAddOutboundTracker defined to keep codec compatibility.
legacy MsgVoteGasPrice defined to keep codec compatibility.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
legacy MsgRemoveOutboundTracker defined to keep codec compatibility.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
legacy MsgVoteInbound defined to keep codec compatibility.
legacy MsgVoteOutbound defined to keep codec compatibility.
No description provided by the author
No description provided by the author
TODO: https://github.com/zeta-chain/node/issues/3083.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RevertOptions represents the options for reverting a cctx.
No description provided by the author
No description provided by the author
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
No description provided by the author
# Interfaces
AccountKeeper defines the expected account keeper (noalias).
No description provided by the author
BankKeeper defines the expected interface needed to retrieve account balances.
No description provided by the author
No description provided by the author
No description provided by the author
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
No description provided by the author
# Type aliases
No description provided by the author
InboundVoteOption is a function that sets some option on the inbound vote message.
ProtocolContractVersion represents the version of the protocol contract used for cctx workflow.
No description provided by the author