Documentation ¶
Index ¶
- type Context
- func (c *Context) ChainId() *big.Int
- func (c *Context) ContractAddress() *common.Address
- func (c *Context) EthClient() *ethclient.Client
- func (c *Context) PrivateKey() *ecdsa.PrivateKey
- func (c *Context) SetChainId(chainId *big.Int)
- func (c *Context) SetContractAddress(addr *common.Address)
- func (c *Context) SetEthClient(cli *ethclient.Client)
- func (c *Context) SetPrivateKey(pk *ecdsa.PrivateKey)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewCtx ¶
NewCtx creates a new ctx with the given config. If the config is invalid, it will prompt the user to input manually.
func (*Context) ContractAddress ¶
func (*Context) PrivateKey ¶
func (c *Context) PrivateKey() *ecdsa.PrivateKey
func (*Context) SetChainId ¶
func (*Context) SetContractAddress ¶
func (*Context) SetPrivateKey ¶
func (c *Context) SetPrivateKey(pk *ecdsa.PrivateKey)
Click to show internal directories.
Click to hide internal directories.