modulepackage
0.0.0-20210331054442-42b2cffb1f22
Repository: https://github.com/manxiaqu/ethutils.git
Documentation: pkg.go.dev
# Functions
AutoDeploy deploys contract/ panic if error/logs info info.
AutoSendTx send tx to contract using contract object generated by abigen.
MustGenrateKey generates an random key using ethereum/crypto.
MustGetClient panics if can't get client.
MustGetDefaultOptByEncryptFile returns an ethereum account with nonce set by keystore file path path.
MustGetDefaultOptByHexKey returns an ethereum account with nonce set by hex key.
MustGetEthAccount returns an ethereum operation account by hex private key.
MustGetETHAccountByEncryptFile returns an ethereum account by keystore file path path.
No description provided by the author
MustGetRPCClient returns a ethereum rpc client instance.
MustReadLines returns all lines in file.
MustSetNonce sets nonce to ethereum account if nonce is nil.
PanicIfErr panics if error occurs.
PrivateKeyToHex change to private key to hex format.
WaitForTx stuck until tx is included in a block.
# Variables
common params.
These are the multipliers for ether denominations.
These are the multipliers for ether denominations.
Config default values.
Normal used numbers in ethereum dapp.
Normal used numbers in ethereum dapp.
These are the multipliers for ether denominations.
# Type aliases
DeployFunc deploys contracts when executing.
TransactFunc is a func to send tx to contract.