service

package
v0.0.0-...-71debdd Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CORSServer

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

func (*CORSServer) ServeHTTP

func (s *CORSServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type JsonAccount

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

type JsonAccountList

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

type JsonCallRes

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

type JsonReceipt

type JsonReceipt struct {
	Root              common.Hash     `json:"root"`
	TransactionHash   common.Hash     `json:"transactionHash"`
	From              common.Address  `json:"from"`
	To                *common.Address `json:"to"`
	GasUsed           uint64          `json:"gasUsed"`
	CumulativeGasUsed uint64          `json:"cumulativeGasUsed"`
	ContractAddress   common.Address  `json:"contractAddress"`
	Logs              []*ethTypes.Log `json:"logs"`
	LogsBloom         ethTypes.Bloom  `json:"logsBloom"`
	Status            uint64          `json:"status"`
}

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 {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewService

func NewService(genesisFile, keystoreDir, apiAddr, pwdFile string,
	state *state.State,
	submitCh chan []byte,
	logger *logrus.Logger) *Service

func (*Service) GetSubmitCh

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

XXX

func (*Service) Run

func (m *Service) Run()

func (*Service) SetInfoCallback

func (m *Service) SetInfoCallback(f infoCallback)

XXX

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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