core_types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockTransaction

type BlockTransaction struct {
	From     *apitypes.Address `json:"from"`
	Gas      cmn.Uint64        `json:"gas"`
	GasPrice *cmn.Big          `json:"gasPrice"`
	Hash     *cmn.Hash         `json:"hash"`
	Input    cmn.Bytes         `json:"input"`
	Nonce    *cmn.Uint64       `json:"nonce"`
	To       *apitypes.Address `json:"to"`
	Value    *cmn.Big          `json:"value"`
	V        *cmn.Big          `json:"v"`
	R        *cmn.Big          `json:"r"`
	S        *cmn.Big          `json:"s"`
}

type Blockdata

type Blockdata struct {
	Number           cmn.Uint64          `json:"number"`
	Hash             cmn.Hash            `json:"hash"`
	ParentHash       cmn.Hash            `json:"parentHash"`
	MixHash          cmn.Hash            `json:"mixHash"`
	StateRoot        cmn.Hash            `json:"stateRoot"`
	Miner            apitypes.Address    `json:"miner"`
	Timestamp        cmn.Uint64          `json:"timestamp"`
	TransactionsRoot cmn.Hash            `json:"transactionsRoot"`
	ReceiptsRoot     cmn.Hash            `json:"receiptsRoot"`
	Transactions     []*BlockTransaction `json:"transactions"`
	GasLimit         cmn.Uint64          `json:"gasLimit"`
}

type ChannelInfo

type ChannelInfo struct {
	Name      string `json:"name"`
	ChannelId string `json:"channelId"`
}

type NodeInfo

type NodeInfo struct {
	HostName string `json:"hostName"`
	Url      string `json:"url"`
	Genesis  string `json:"genesis"`
}

type RPCReceipt

type RPCReceipt struct {
	BlockHash         cmn.Hash          `json:"blockHash"`
	BlockNumber       *cmn.Big          `json:"blockNumber"`
	TransactionHash   *cmn.Hash         `json:"transactionHash"`
	TransactionIndex  cmn.Uint          `json:"transactionIndex"`
	From              *apitypes.Address `json:"from"`
	To                *apitypes.Address `json:"to"`
	Root              []byte            `json:"root"`
	Status            *cmn.Uint64       `json:"status"`
	GasUsed           *cmn.Uint64       `json:"gasUsed"`
	CumulativeGasUsed *cmn.Uint64       `json:"cumulativeGasUsed"`
	LogsBloom         []byte            `json:"logsBloom"`
	Logs              []*types.Log      `json:"logs"`
	ContractAddress   *apitypes.Address `json:"contractAddress"`
}

type RPCTransaction

type RPCTransaction struct {
	BlockHash        cmn.Hash          `json:"blockHash"`
	BlockNumber      cmn.Uint64        `json:"blockNumber"`
	From             *apitypes.Address `json:"from"`
	Gas              cmn.Uint64        `json:"gas"`
	GasPrice         *cmn.Big          `json:"gasPrice"`
	Hash             *cmn.Hash         `json:"hash"`
	Input            cmn.Bytes         `json:"input"`
	Nonce            *cmn.Uint64       `json:"nonce"`
	To               *apitypes.Address `json:"to"`
	TransactionIndex cmn.Uint          `json:"transactionIndex"`
	Value            *cmn.Big          `json:"value"`
	V                *cmn.Big          `json:"v"`
	R                *cmn.Big          `json:"r"`
	S                *cmn.Big          `json:"s"`
}

type ResultEcho

type ResultEcho struct {
	Value string `json:"value"`
}

type SendTxArgs

type SendTxArgs struct {
	From     types.Address  `json:"from"`
	To       *types.Address `json:"to"`
	Gas      *common.Uint64 `json:"gas"`
	GasPrice *common.Big    `json:"gasPrice"`
	Value    *common.Big    `json:"value"`
	Nonce    *common.Uint64 `json:"nonce,omitempty"`
	// We accept "data" and "input" for backwards-compatibility reasons. "input" is the
	// newer name and should be preferred by clients.
	Data  *common.Bytes `json:"data"`
	Input *common.Bytes `json:"input"`
}

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

type StringArgs

type StringArgs struct {
	From string `json:"from"`
}

Jump to

Keyboard shortcuts

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