Documentation ¶
Index ¶
- Constants
- func ExtractAddress(param interface{}) (*gethcommon.Address, error)
- func ExtractBlockNumber(param interface{}) (*gethrpc.BlockNumberOrHash, error)
- func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error)
- func ExtractOptionalBlockNumber(params []interface{}, idx int) (*gethrpc.BlockNumberOrHash, error)
- func ExtractPrivateTransactionsQuery(queryParams any) (*common.ListPrivateTransactionsQueryParams, error)
- type EncodingService
Constants ¶
View Source
const (
CallFieldFrom = "from"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractAddress ¶
func ExtractAddress(param interface{}) (*gethcommon.Address, error)
ExtractAddress returns a gethcommon.Address given an interface{}, errors if unexpected values are used
func ExtractBlockNumber ¶
func ExtractBlockNumber(param interface{}) (*gethrpc.BlockNumberOrHash, error)
func ExtractEthCall ¶
func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error)
ExtractEthCall extracts the eth_call gethapi.TransactionArgs from an interface{}
func ExtractOptionalBlockNumber ¶
func ExtractOptionalBlockNumber(params []interface{}, idx int) (*gethrpc.BlockNumberOrHash, error)
ExtractOptionalBlockNumber defaults nil or empty block number params to latest block number
func ExtractPrivateTransactionsQuery ¶ added in v0.26.0
func ExtractPrivateTransactionsQuery(queryParams any) (*common.ListPrivateTransactionsQueryParams, error)
ExtractPrivateTransactionsQuery is designed to support a wide range of custom TEN queries. The first parameter here is the method name, which is used to determine the query type. The second parameter is the query parameters.
Types ¶
type EncodingService ¶ added in v0.21.0
type EncodingService interface { CreateEthHeaderForBatch(ctx context.Context, h *common.BatchHeader) (*types.Header, error) CreateEthBlockFromBatch(ctx context.Context, b *core.Batch) (*types.Block, error) }
EncodingService handles conversion to Geth data structures
func NewGethEncodingService ¶ added in v0.21.0
func NewGethEncodingService(storage storage.Storage, cachingService *storage.CacheService, logger gethlog.Logger) EncodingService
Click to show internal directories.
Click to hide internal directories.