Documentation ¶
Index ¶
- func CanSignEthTx(ctx client.Context) error
- func ConfirmTx(clientCtx client.Context, signingTx signing.Tx) error
- func CreateEthCallContractTx(ctx client.Context, contractAddr *common.Address, data []byte) (signing.Tx, error)
- func GenerateOrBroadcastTx(clientCtx client.Context, signingTx signing.Tx) error
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- func PackContractCallData(abi abi.ABI, method string, args ...interface{}) ([]byte, error)
- func ParseAddrFromHexOrBech32(addrString string) (common.Address, error)
- func ParseOrQueryConversionPairAddress(queryClient types.QueryClient, addrOrDenom string) (common.Address, error)
- func PrintTx(clientCtx client.Context, signingTx signing.Tx) error
- func QueryParamsCmd() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanSignEthTx ¶
CanSignEthTx returns an error if the signing key algorithm is not eth_secp256k1.
func ConfirmTx ¶
ConfirmTx outputs the transaction to be signed and requests confirmation if the SkipConfirm flag is not enabled.
func CreateEthCallContractTx ¶
func CreateEthCallContractTx( ctx client.Context, contractAddr *common.Address, data []byte, ) (signing.Tx, error)
CreateEthCallContractTx creates and signs a Eth transaction wrapped in a cosmos Tx.
func GenerateOrBroadcastTx ¶
GenerateOrBroadcastTx checks CLI flags and generates or broadcasts a transaction this is used over tx.GenerateOrBroadcastTxCLI as it does not sign the message.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func PackContractCallData ¶
PackContractCallData creates a smart contract method call data with the provided method and args.
func ParseAddrFromHexOrBech32 ¶
ParseAddrFromHexOrBech32 parses a string address that can be either a hex or Bech32 string.
func ParseOrQueryConversionPairAddress ¶
func ParseOrQueryConversionPairAddress( queryClient types.QueryClient, addrOrDenom string, ) (common.Address, error)
ParseOrQueryConversionPairAddress returns an EVM address of the provided ERC20 contract address string or denom. If an address string, just returns the parsed address. If a denom, fetches params, searches the enabled conversion pairs, and returns corresponding ERC20 contract address.
func PrintTx ¶
PrintTx outputs a signing.Tx in JSON format, ie. when the GenerateOnly flag is enabled.
func QueryParamsCmd ¶
QueryParamsCmd queries the evmutil module parameters
Types ¶
This section is empty.