eth

package
v0.0.0-...-350b074 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigToHex

func BigToHex(bigInt *big.Int) string

BigToHex covert big.Int to hexadecimal representation

func IntToHex

func IntToHex(i int) string

IntToHex convert int to hexadecimal representation

func ParseBigInt

func ParseBigInt(value string) (big.Int, error)

ParseBigInt parse hex string value to big.Int

func ParseInt

func ParseInt(value string) (int, error)

ParseInt parse hex string value to int

Types

type Account

type Account struct {
	Addr     string
	Password string
}

func (Account) Unlock

func (acc Account) Unlock(client *rpc.Client) (err error)

type Deployer

type Deployer struct {
	*contract.ContractsRepository
	Account
	// contains filtered or unexported fields
}

func NewDeployer

func NewDeployer(rpcURL *url.URL, repo *contract.ContractsRepository) (*Deployer, error)

func (*Deployer) ConfirmContract

func (d *Deployer) ConfirmContract(c *contract.DeployedContract) (err error)

func (*Deployer) CreateContract

func (d *Deployer) CreateContract(c *contract.CompiledContract, jsonParams []byte, opts *deployer.Options) (err error)

func (*Deployer) Mine

func (d *Deployer) Mine() (err error)

type T

type T struct {
	From     string
	To       string
	Gas      *big.Int
	GasPrice *big.Int
	Value    *big.Int
	Data     string
	Nonce    int
}

func (T) MarshalJSON

func (t T) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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