schema

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeSchema

type CodeSchema interface {
	GetCode(address string) (*jsonrpc2.Request, *string)
}

type EthSchema

type EthSchema interface {
	BlockNumber() (*jsonrpc2.Request, *types.Number)
	GetBlockByNumber(num types.Number) (*jsonrpc2.Request, types.Block)
	GetBlockByHash(hash string) (*jsonrpc2.Request, types.BlockHeader)
	GetTransaction(hash string) (*jsonrpc2.Request, types.Transaction)
	GetTransactionReceipt(hash string) (*jsonrpc2.Request, types.TransactionReceipt)
	GetBalance(address string, block *types.Number) (*jsonrpc2.Request, *hexutil.Big)
	GetCode(address string, block *types.Number) (*jsonrpc2.Request, *string)
	GetNonce(address string, block *types.Number) (*jsonrpc2.Request, *hexutil.Uint64)
	GetStorage(address string, offset common.Hash, block *types.Number) (*jsonrpc2.Request, *string)
}

type NetSchema

type NetSchema interface {
	Version() (*jsonrpc2.Request, *string)
}

type PubSubSchema

type PubSubSchema interface {
	Subscribe() (*jsonrpc2.Request, *types.SubscriptionID)
	Unsubscribe(id types.SubscriptionID) (*jsonrpc2.Request, *types.UnsubscribeSuccess)
}

type Schema

type Schema interface {
	Eth() EthSchema
	Net() NetSchema
	Trace() TraceSchema
	PubSub() PubSubSchema
}

type TraceSchema

type TraceSchema interface {
	VMTrace(hash string) (*jsonrpc2.Request, types.TransactionStates)
	CallTrace(hash string) (*jsonrpc2.Request, types.CallTraces)
}

Jump to

Keyboard shortcuts

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