Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeForJSONByType(t string, v []byte) (interface{}, error)
- func DecomposeEventSignature(s string) (string, []string)
- func EqualEventValue(e, r any) bool
- func EventDataStringToBytesByType(t string, v string) ([]byte, error)
- func EventDataToBytesByType(t string, v interface{}) ([]byte, error)
- func NewReceiptListFromHash(database db.Database, h []byte) module.ReceiptList
- func NewReceiptListFromSlice(database db.Database, list []Receipt) module.ReceiptList
- func NewReceiptListWithBuilder(builder merkle.Builder, h []byte) module.ReceiptList
- type LogsBloom
- func (lb *LogsBloom) AddAddressOfLog(addr module.Address)
- func (lb *LogsBloom) AddIndexedOfLog(i int, b []byte)
- func (lb *LogsBloom) AddLog(addr module.Address, log [][]byte)
- func (lb *LogsBloom) CompressedBytes() []byte
- func (lb *LogsBloom) Contain(mlb module.LogsBloom) bool
- func (lb *LogsBloom) Equal(mlb module.LogsBloom) bool
- func (lb *LogsBloom) LogBytes() []byte
- func (lb LogsBloom) MarshalJSON() ([]byte, error)
- func (lb *LogsBloom) Merge(lb2 module.LogsBloom)
- func (lb *LogsBloom) RLPDecodeSelf(d codec.Decoder) error
- func (lb *LogsBloom) RLPEncodeSelf(e codec.Encoder) error
- func (lb *LogsBloom) SetCompressedBytes(bs []byte) *big.Int
- func (lb *LogsBloom) String() string
- func (lb *LogsBloom) UnmarshalJSON(data []byte) error
- type Receipt
- type TestEventLog
- type Version
Constants ¶
View Source
const ( LogsBloomBits = 2048 LogsBloomBytes = LogsBloomBits / 8 )
View Source
const ( ExtensionFeeDetail = 1 << iota ExtensionDisableLogsBloom )
View Source
const (
EventLogICXTransfer = "ICXTransfer(Address,Address,int)"
)
Variables ¶
View Source
var ReceiptType = reflect.TypeOf((*receipt)(nil))
Functions ¶
func DecodeForJSONByType ¶
func DecomposeEventSignature ¶
func EqualEventValue ¶ added in v1.4.0
func EventDataToBytesByType ¶
func NewReceiptListFromHash ¶
func NewReceiptListFromHash(database db.Database, h []byte) module.ReceiptList
func NewReceiptListFromSlice ¶
func NewReceiptListFromSlice(database db.Database, list []Receipt) module.ReceiptList
func NewReceiptListWithBuilder ¶
func NewReceiptListWithBuilder(builder merkle.Builder, h []byte) module.ReceiptList
Types ¶
type LogsBloom ¶
logsBloom store blooms of logs.
func NewLogsBloom ¶
func (*LogsBloom) AddAddressOfLog ¶
func (*LogsBloom) AddIndexedOfLog ¶
func (*LogsBloom) CompressedBytes ¶
func (LogsBloom) MarshalJSON ¶
func (*LogsBloom) UnmarshalJSON ¶
type Receipt ¶
type Receipt interface { module.Receipt AddLog(addr module.Address, indexed, data [][]byte) AddBTPMessages(messages list.List) // AddPayment adds payment information. // addr is payer. steps is total steps paid by the payer. // feeSteps is amount of steps for fee. // ( steps - feeSteps ) is virtual steps paid by the payer. // feeSteps can be nil if there is no steps for fee AddPayment(addr module.Address, steps *big.Int, feeSteps *big.Int) // FeeByEOA returns a fee paid by EOA (not including deposit). FeeByEOA() *big.Int // Fee returns total fee (excluding virtual steps). Fee() *big.Int DisableLogsBloom() SetCumulativeStepUsed(cumulativeUsed *big.Int) SetResult(status module.Status, used, price *big.Int, addr module.Address) SetReason(e error) Reason() error Flush() error }
func NewReceipt ¶
type TestEventLog ¶ added in v1.4.0
func (*TestEventLog) DecodeParams ¶ added in v1.4.0
func (ev *TestEventLog) DecodeParams() (signature string, indexed []any, data []any, ret error)
Click to show internal directories.
Click to hide internal directories.