Documentation ¶
Index ¶
- Variables
- func DecodeBlock(b []byte) (*types.Block, error)
- func DecodeCallMsg(callArgsBytes []byte) (ret ethereum.CallMsg, err error)
- func DecodeChainID(b []byte, def ...uint16) (uint16, error)
- func DecodeFilterQuery(b []byte) (*ethereum.FilterQuery, error)
- func DecodeGenesisAlloc(b []byte) (core.GenesisAlloc, error)
- func DecodeLog(b []byte, includeDerivedFields bool) (*types.Log, error)
- func DecodeLogs(b []byte) ([]*types.Log, error)
- func DecodeReceipt(b []byte) (*types.Receipt, error)
- func DecodeReceiptFull(receiptBytes []byte) (*types.Receipt, error)
- func DecodeTransaction(b []byte) (*types.Transaction, error)
- func EVMGasToISC(evmGas uint64, gasRatio *util.Ratio32) uint64
- func EncodeBlock(block *types.Block) []byte
- func EncodeCallMsg(c ethereum.CallMsg) []byte
- func EncodeChainID(chainID uint16) []byte
- func EncodeFilterQuery(q *ethereum.FilterQuery) []byte
- func EncodeGenesisAlloc(alloc core.GenesisAlloc) []byte
- func EncodeLog(log *types.Log, includeDerivedFields bool) []byte
- func EncodeLogs(logs []*types.Log) []byte
- func EncodeReceipt(receipt *types.Receipt) []byte
- func EncodeReceiptFull(r *types.Receipt) []byte
- func EncodeTransaction(tx *types.Transaction) []byte
- func ISCGasBudgetToEVM(iscGasBudget uint64, gasRatio *util.Ratio32) uint64
- func ISCGasBurnedToEVM(iscGasBurned uint64, gasRatio *util.Ratio32) uint64
- func MustDecodeChainID(b []byte, def ...uint16) uint16
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultGasRatio = util.Ratio32{A: 1, B: 1}
<ISC gas> = <EVM Gas> * <A> / <B>
Functions ¶
func DecodeCallMsg ¶
func DecodeFilterQuery ¶
func DecodeGenesisAlloc ¶
func DecodeGenesisAlloc(b []byte) (core.GenesisAlloc, error)
func DecodeTransaction ¶
func DecodeTransaction(b []byte) (*types.Transaction, error)
func EncodeBlock ¶
func EncodeCallMsg ¶
func EncodeCallMsg(c ethereum.CallMsg) []byte
func EncodeChainID ¶ added in v0.3.0
func EncodeFilterQuery ¶
func EncodeFilterQuery(q *ethereum.FilterQuery) []byte
func EncodeGenesisAlloc ¶
func EncodeGenesisAlloc(alloc core.GenesisAlloc) []byte
func EncodeLogs ¶
func EncodeReceipt ¶
EncodeReceipt serializes the receipt in RLP format
func EncodeReceiptFull ¶
EncodeReceiptFull encodes the receipt including fields not serialized by EncodeReceipt
func EncodeTransaction ¶
func EncodeTransaction(tx *types.Transaction) []byte
func ISCGasBudgetToEVM ¶ added in v0.3.0
func ISCGasBurnedToEVM ¶ added in v0.3.0
func MustDecodeChainID ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.