Versions in this module Expand all Collapse all v0 v0.2.0 Jul 5, 2023 Changes in this version + var ErrEvmBroadcastTimeout = errors.New("timed out waiting for tx to be committed to block") + var ErrEvmTxFailed = errors.New(...) + var ErrSdkBroadcastTimeout = errors.New("timed out waiting for tx to be committed to block") + func BuildErc20ApproveCallData(spender common.Address, amount *big.Int) []byte + func BuildErc20BalanceOfCallData(address common.Address) []byte + func BuildErc20BurnCallData(from common.Address, amount *big.Int) []byte + func BuildErc20MintCallData(to common.Address, amount *big.Int) []byte + func BuildErc20TransferCallData(to common.Address, amount *big.Int) []byte + func BuildErc20TransferFromCallData(from common.Address, to common.Address, amount *big.Int) []byte + func CtxAtHeight(height int64) context.Context + func EvmContractMethodId(signature string) []byte + func EvmToSdkAddress(addr common.Address) sdk.AccAddress + func GetAccAddress(privKey cryptotypes.PrivKey) sdk.AccAddress + func NewGrpcConnection(endpoint string) (*grpc.ClientConn, error) + func PrettyPrintCoins(coins sdk.Coins) string + func SdkToEvmAddress(addr sdk.AccAddress) common.Address + func Sign(txConfig sdkclient.TxConfig, privKey cryptotypes.PrivKey, ...) (authsigning.Tx, []byte, error) + func WaitForEvmTxReceipt(client *ethclient.Client, txHash common.Hash, timeout time.Duration) (*ethtypes.Receipt, error) + func WaitForSdkTxCommit(txClient txtypes.ServiceClient, txHash string, timeout time.Duration) (*sdk.TxResponse, error) + type ErrEvmFailedToBroadcast struct + Err error + func (e ErrEvmFailedToBroadcast) Error() string + type ErrEvmFailedToSign struct + Err error + func (e ErrEvmFailedToSign) Error() string + type EvmSigner struct + Auth *bind.TransactOpts + EvmClient *ethclient.Client + func NewEvmSigner(evmClient *ethclient.Client, privKey *ecdsa.PrivateKey, chainId *big.Int) (*EvmSigner, error) + func (s *EvmSigner) Address() common.Address + func (s *EvmSigner) Run(requests <-chan EvmTxRequest) <-chan EvmTxResponse + type EvmTxRequest struct + Data interface{} + Tx *ethtypes.Transaction + type EvmTxResponse struct + Err error + Request EvmTxRequest + TxHash common.Hash + type FuryMsgRequest struct + Data interface{} + FeeAmount sdk.Coins + GasLimit uint64 + Memo string + Msgs []sdk.Msg + type FuryMsgResponse struct + Err error + Request FuryMsgRequest + Result sdk.TxResponse + Tx authsigning.Tx + TxBytes []byte + type FurySigner struct + func NewFurySigner(chainID string, encodingConfig params.EncodingConfig, ...) *FurySigner + func (s *FurySigner) Address() sdk.AccAddress + func (s *FurySigner) Run(requests <-chan FuryMsgRequest) (<-chan FuryMsgResponse, error)