Documentation ¶
Index ¶
- Constants
- func CreateEthHeaderForBatch(h *common.BatchHeader, secret []byte) (*types.Header, error)
- func DecodeParamBytes(paramBytes []byte) ([]interface{}, error)
- func ExtractAddress(param interface{}) (*gethcommon.Address, error)
- func ExtractBlockNumber(param interface{}) (*gethrpc.BlockNumber, error)
- func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error)
- func ExtractEthCallMapString(paramBytes interface{}) (map[string]string, error)
- func ExtractOptionalBlockNumber(params []interface{}, idx int) (*gethrpc.BlockNumber, error)
- func ExtractPrivateCustomQuery(_ interface{}, query interface{}) (*common.PrivateCustomQueryListTransactions, error)
- func ExtractViewingKey(vkBytesIntf interface{}) ([]byte, []byte, error)
Constants ¶
const (
CallFieldFrom = "from"
)
Variables ¶
This section is empty.
Functions ¶
func CreateEthHeaderForBatch ¶ added in v0.14.0
CreateEthHeaderForBatch - the EVM requires an Ethereum "block" header. In this function we are creating one from the Batch Header
func DecodeParamBytes ¶ added in v0.14.0
DecodeParamBytes decodes the parameters byte array into a slice of interfaces Helps each calling method to manage the positional data
func ExtractAddress ¶ added in v0.8.0
func ExtractAddress(param interface{}) (*gethcommon.Address, error)
ExtractAddress returns a gethcommon.Address given an interface{}, errors if unexpected values are used
func ExtractBlockNumber ¶ added in v0.8.0
func ExtractBlockNumber(param interface{}) (*gethrpc.BlockNumber, error)
ExtractBlockNumber returns a gethrpc.BlockNumber given an interface{}, errors if unexpected values are used
func ExtractEthCall ¶
func ExtractEthCall(param interface{}) (*gethapi.TransactionArgs, error)
ExtractEthCall extracts the eth_call gethapi.TransactionArgs from an interface{}
func ExtractEthCallMapString ¶
ExtractEthCallMapString extracts the eth_call gethapi.TransactionArgs from an interface{} it ensures that : - All types are string - All keys are lowercase - There is only one key per value - From field is set by default
func ExtractOptionalBlockNumber ¶ added in v0.8.0
func ExtractOptionalBlockNumber(params []interface{}, idx int) (*gethrpc.BlockNumber, error)
ExtractOptionalBlockNumber defaults nil or empty block number params to latest block number
func ExtractPrivateCustomQuery ¶ added in v0.14.0
func ExtractPrivateCustomQuery(_ interface{}, query interface{}) (*common.PrivateCustomQueryListTransactions, error)
func ExtractViewingKey ¶ added in v0.14.0
ExtractViewingKey returns the viewingkey pubkey and the signature from the request
Types ¶
This section is empty.