Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BroadcastTx ¶
func BroadcastTx(ctx context.Context, conn grpc.ClientConnInterface, txBytes []byte, mode txtypes.BroadcastMode) (*sdk.TxResponse, error)
BroadcastTx returns the full response, including nonzero CheckTx codes, so callers can assert either successful submission or the expected rejection.
func GetAccountNumber ¶
Types ¶
type EVMWalletInfo ¶
type EVMWalletInfo struct {
CosmosWalletInfo *WalletInfo
EthAddress common.Address
StringAddress string
Nonce uint64
}
func (*EVMWalletInfo) NewTransactor ¶
func (e *EVMWalletInfo) NewTransactor(ctx context.Context, chainID *big.Int) (*bind.TransactOpts, error)
NewTransactor creates a contract signer using the wallet's existing key. Nonce and gas options remain unset so callers can use RPC defaults or set them.
type WalletInfo ¶
type WalletInfo struct {
sync.Mutex
IsSrc bool
ChainId string
Prefix string
StringAddress string
ByteAddress sdk.AccAddress
PrivKey cryptotypes.PrivKey
PubKey cryptotypes.PubKey
AccountNumber uint64
Sequence uint64
EncCfg moduletestutil.TestEncodingConfig
}