service

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 14 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonAccount

type JsonAccount struct {
	Address string   `json:"address"`
	Balance *big.Int `json:"balance"`
	Nonce   uint64   `json:"nonce"`
	Code    string   `json:"bytecode"`
}

type JsonAccountList

type JsonAccountList struct {
	Accounts []JsonAccount `json:"accounts"`
}

type JsonCallRes

type JsonCallRes struct {
	Data string `json:"data"`
}

type JsonContract

type JsonContract struct {
	Address common.Address `json:"address"`
	ABI     string         `json:"abi"`
}

type JsonContractList

type JsonContractList struct {
	Contracts []JsonContract `json:"contracts"`
}

type JsonTxRes

type JsonTxRes struct {
	TxHash string `json:"txHash"`
}

type SendTxArgs

type SendTxArgs struct {
	From     common.Address  `json:"from"`
	To       *common.Address `json:"to"`
	Gas      uint64          `json:"gas"`
	GasPrice *big.Int        `json:"gasPrice"`
	Value    *big.Int        `json:"value"`
	Data     string          `json:"data"`
	Nonce    *uint64         `json:"nonce"`
}

SendTxArgs represents the arguments to sumbit a new transaction into the transaction pool.

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(apiAddr string,
	state *state.State,
	submitCh chan []byte,
	minGasPrice *big.Int,
	logger *logrus.Entry) *Service

func (*Service) GetSubmitCh

func (m *Service) GetSubmitCh() chan []byte

func (*Service) Run

func (m *Service) Run()

func (*Service) SetInfoCallback

func (m *Service) SetInfoCallback(f infoCallback)

Jump to

Keyboard shortcuts

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