cli

package
v8.0.0-...-5ea88d2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagOrder     = "order"
	FlagClaimType = "claim-type"
	FlagNonce     = "nonce"
	FlagEthHeight = "eth-height"
	FlagUseV1Key  = "use-v1-key"
)

Variables

This section is empty.

Functions

func CmdCancelSendToEth

func CmdCancelSendToEth() *cobra.Command

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

func CmdExecutePendingIbcAutoForwards() *cobra.Command

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

func CmdGetAttestations() *cobra.Command

CmdGetAttestations fetches the most recently created Attestations in the store (only the most recent 1000 are available) up to an optional limit

func CmdGetCurrentValset

func CmdGetCurrentValset() *cobra.Command

CmdGetCurrentValset fetches the current validator set

func CmdGetLastObservedEthBlock

func CmdGetLastObservedEthBlock() *cobra.Command

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

func CmdGetLastObservedEthNonce() *cobra.Command

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

func CmdGetPendingOutgoingTXBatchRequest() *cobra.Command

CmdGetPendingOutgoingTXBatchRequest fetches the batch to be confirmed next by the given validator, if any exists

func CmdGetPendingSendToEth

func CmdGetPendingSendToEth() *cobra.Command

CmdGetPendingSendToEth fetches all pending Sends to Ethereum made by the given address

func CmdGetPendingValsetRequest

func CmdGetPendingValsetRequest() *cobra.Command

CmdGetPendingValsetRequest fetches the valset to be confirmed next by the given validator, if any exists

func CmdGetValsetConfirm

func CmdGetValsetConfirm() *cobra.Command

CmdGetValsetConfirm fetches a confirm for the valset with the given nonce made by the given validator

func CmdGetValsetRequest

func CmdGetValsetRequest() *cobra.Command

CmdGetValsetRequest fetches a historical valset with the given valset nonce, for use in Ethereum relaying

func CmdGovAirdropProposal

func CmdGovAirdropProposal() *cobra.Command

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

func CmdGovIbcMetadataProposal() *cobra.Command

CmdGovIbcMetadataProposal enables users to easily submit json file proposals for IBC Metadata registration, needed to send Cosmos tokens over to Ethereum

func CmdGovUnhaltBridgeProposal

func CmdGovUnhaltBridgeProposal() *cobra.Command

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

func CmdRequestBatch() *cobra.Command

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

func CmdSendToEth() *cobra.Command

CmdSendToEth sends tokens to Ethereum. Locks Cosmos-side tokens into the Transaction pool for batching.

func CmdSetOrchestratorAddress

func CmdSetOrchestratorAddress() *cobra.Command

CmdSetOrchestratorAddress registers delegate keys for a validator so that their Orchestrator has authority to perform its responsibility

func GetCmdPendingIbcAutoForwards

func GetCmdPendingIbcAutoForwards() *cobra.Command

GetCmdPendingIbcAutoForwards fetches the next IBC auto forwards to be executed, up to an optional limit

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams fetches the current Gravity module params

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd bundles all the query subcmds together so they appear under `gravity query` or `gravity q`

func GetTxCmd

func GetTxCmd(storeKey string) *cobra.Command

GetTxCmd bundles all the subcmds together so they appear under `gravity tx`

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

Jump to

Keyboard shortcuts

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