ctx

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func NewCtx(conf *config.Config) *Context

NewCtx creates a new ctx with the given config. If the config is invalid, it will prompt the user to input manually.

func (*Context) ChainId

func (c *Context) ChainId() *big.Int

func (*Context) ContractAddress

func (c *Context) ContractAddress() *common.Address

func (*Context) EthClient

func (c *Context) EthClient() *ethclient.Client

getters

func (*Context) PrivateKey

func (c *Context) PrivateKey() *ecdsa.PrivateKey

func (*Context) SetChainId

func (c *Context) SetChainId(chainId *big.Int)

func (*Context) SetContractAddress

func (c *Context) SetContractAddress(addr *common.Address)

func (*Context) SetEthClient

func (c *Context) SetEthClient(cli *ethclient.Client)

setters

func (*Context) SetPrivateKey

func (c *Context) SetPrivateKey(pk *ecdsa.PrivateKey)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL