Documentation ¶
Index ¶
- Constants
- func CmdCancelSendToEth() *cobra.Command
- func CmdExecutePendingIbcAutoForwards() *cobra.Command
- func CmdGetAttestations() *cobra.Command
- func CmdGetCurrentValset() *cobra.Command
- func CmdGetLastObservedEthBlock() *cobra.Command
- func CmdGetLastObservedEthNonce() *cobra.Command
- func CmdGetPendingOutgoingTXBatchRequest() *cobra.Command
- func CmdGetPendingSendToEth() *cobra.Command
- func CmdGetPendingValsetRequest() *cobra.Command
- func CmdGetValsetConfirm() *cobra.Command
- func CmdGetValsetRequest() *cobra.Command
- func CmdGovAirdropProposal() *cobra.Command
- func CmdGovIbcMetadataProposal() *cobra.Command
- func CmdGovUnhaltBridgeProposal() *cobra.Command
- func CmdRequestBatch() *cobra.Command
- func CmdSendToEth() *cobra.Command
- func CmdSetOrchestratorAddress() *cobra.Command
- func GetCmdPendingIbcAutoForwards() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTxCmd(storeKey string) *cobra.Command
- type AirdropProposalPlain
Constants ¶
const ( FlagOrder = "order" FlagClaimType = "claim-type" FlagNonce = "nonce" FlagEthHeight = "eth-height" FlagUseV1Key = "use-v1-key" )
Variables ¶
This section is empty.
Functions ¶
func CmdCancelSendToEth ¶
CmdCancelSendToEth enables users to take their Transaction out of the pool. Note that this cannot be done if it is locked up in a pending batch or if it has already been executed on Ethereum
func CmdExecutePendingIbcAutoForwards ¶
CmdExecutePendingIbcAutoForwards Executes a number of queued IBC Auto Forwards. When users perform a Send to Cosmos with a registered foreign address prefix (e.g. canto1... cre1...), their funds will be locked in the Gravity module until their pending forward is executed. This will send the funds to the equivalent gravity-prefixed account and then immediately create an IBC transfer to the destination chain to the original foreign account. If there is an IBC failure, the funds will be deposited on the gravity-prefixed account.
func CmdGetAttestations ¶
CmdGetAttestations fetches the most recently created Attestations in the store (only the most recent 1000 are available) up to an optional limit
func CmdGetCurrentValset ¶
CmdGetCurrentValset fetches the current validator set
func CmdGetLastObservedEthBlock ¶
CmdGetLastObservedEthBlock fetches the Ethereum block height for the most recent "observed" Attestation, indicating the state of Cosmos consensus on the submitted Ethereum events nolint: dupl
func CmdGetLastObservedEthNonce ¶
CmdGetLastObservedEthNonce fetches the Ethereum event nonce for the most recent "observed" Attestation, indicating // the state of Cosmos consensus on the submitted Ethereum events nolint: dupl
func CmdGetPendingOutgoingTXBatchRequest ¶
CmdGetPendingOutgoingTXBatchRequest fetches the batch to be confirmed next by the given validator, if any exists
func CmdGetPendingSendToEth ¶
CmdGetPendingSendToEth fetches all pending Sends to Ethereum made by the given address
func CmdGetPendingValsetRequest ¶
CmdGetPendingValsetRequest fetches the valset to be confirmed next by the given validator, if any exists
func CmdGetValsetConfirm ¶
CmdGetValsetConfirm fetches a confirm for the valset with the given nonce made by the given validator
func CmdGetValsetRequest ¶
CmdGetValsetRequest fetches a historical valset with the given valset nonce, for use in Ethereum relaying
func CmdGovAirdropProposal ¶
CmdGovAirdropProposal enables users to easily submit json file proposals for token airdrops, eliminating the need for users to claim their airdrops / a custom on-chain module
func CmdGovIbcMetadataProposal ¶
CmdGovIbcMetadataProposal enables users to easily submit json file proposals for IBC Metadata registration, needed to send Cosmos tokens over to Ethereum
func CmdGovUnhaltBridgeProposal ¶
CmdGovUnhaltBridgeProposal enables users to easily submit json file proposals to set the Gravity module parameters which account for Ethereum forks, "rewinding" state and letting the chain achieve consensus after the fork is settled
func CmdRequestBatch ¶
CmdRequestBatch requests that the validators create and confirm a batch to be sent to Ethereum. This is a manual command which duplicates the efforts of the Ethereum Relayer, likely not to be used often
func CmdSendToEth ¶
CmdSendToEth sends tokens to Ethereum. Locks Cosmos-side tokens into the Transaction pool for batching.
func CmdSetOrchestratorAddress ¶
CmdSetOrchestratorAddress registers delegate keys for a validator so that their Orchestrator has authority to perform its responsibility
func GetCmdPendingIbcAutoForwards ¶
GetCmdPendingIbcAutoForwards fetches the next IBC auto forwards to be executed, up to an optional limit
func GetCmdQueryParams ¶
GetCmdQueryParams fetches the current Gravity module params
func GetQueryCmd ¶
GetQueryCmd bundles all the query subcmds together so they appear under `gravity query` or `gravity q`
Types ¶
type AirdropProposalPlain ¶
type AirdropProposalPlain struct { Title string Description string Denom string Recipients []string Amounts []uint64 }
AirdropProposalPlain is a struct with plaintext recipients so that the proposal.json can be readable and not subject to the strange encoding of the airdrop proposal tx where the recipients are packed as 20 byte sets