service

package
v0.0.0-...-7492f51 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: Apache-2.0 Imports: 19 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 JsonBlock

type JsonBlock struct {
	Hash         string        `json:"hash"`
	Index        int           `json:"index"`
	Round        int           `json:"round"`
	StateHash    string        `json:"stateHash"`
	FrameHash    string        `json:"frameHash"`
	Transactions []JsonReceipt `json:"transactions"`
}

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"`
	Value             *big.Int        `json:"value"`
	Gas               *big.Int        `json:"gas"`
	GasUsed           *big.Int        `json:"gasUsed"`
	GasPrice          *big.Int        `json:"gasPrice"`
	CumulativeGasUsed *big.Int        `json:"cumulativeGasUsed"`
	ContractAddress   common.Address  `json:"contractAddress"`
	Logs              []*ethTypes.Log `json:"logs"`
	LogsBloom         ethTypes.Bloom  `json:"logsBloom"`
	Error             string          `json:"error"`
	Failed            bool            `json:"failed"`
}

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      *big.Int        `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 submit 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) Run

func (m *Service) Run()

Jump to

Keyboard shortcuts

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