Documentation ¶
Index ¶
- func DecryptKeyfile(keyfile, password string) (*ecdsa.PrivateKey, error)
- func EtherToWei(amount int64) *big.Int
- func Has0xPrefix(str string) bool
- func IsValidAddress(address string, checksummed bool) bool
- func LSKToWei(amount int64) *big.Int
- func ResolveKeyfilePath(keydir string) (string, error)
- type TxBuild
- func (b *TxBuild) GetContractInstance() *bindings.Token
- func (b *TxBuild) Sender() common.Address
- func (b *TxBuild) TransferERC20(ctx context.Context, to string, value *big.Int, balance *big.Int) (common.Hash, error)
- func (b *TxBuild) TransferETH(ctx context.Context, to string, value *big.Int) (common.Hash, error)
- type TxBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptKeyfile ¶
func DecryptKeyfile(keyfile, password string) (*ecdsa.PrivateKey, error)
func EtherToWei ¶
func Has0xPrefix ¶
func IsValidAddress ¶
func ResolveKeyfilePath ¶
Types ¶
type TxBuild ¶
type TxBuild struct {
// contains filtered or unexported fields
}
func (*TxBuild) GetContractInstance ¶
func (*TxBuild) TransferERC20 ¶
type TxBuilder ¶
type TxBuilder interface { Sender() common.Address GetContractInstance() *bindings.Token TransferETH(ctx context.Context, to string, value *big.Int) (common.Hash, error) TransferERC20(ctx context.Context, to string, value *big.Int, balance *big.Int) (common.Hash, error) }
func NewTxBuilder ¶
Click to show internal directories.
Click to hide internal directories.