logs

package
v0.0.0-...-70a0e40 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLog

func AddLog(ctx sdk.Context, precompileAddr common.Address, stateDB vm.StateDB, topics []common.Hash, data []byte)

AddLog adds log to stateDB

func MakeTopics

func MakeTopics(event abi.Event, query ...[]interface{}) ([]common.Hash, error)

MakeTopics creates topics for log as wrapper around geth abi.MakeTopics function

func PackArguments

func PackArguments(args []Argument) ([]byte, error)

PackArguments packs an arbitrary number of logs.Arguments as non-indexed data. When packing data, make sure the Argument are passed in the same order as the event definition.

Types

type Argument

type Argument struct {
	Type  string
	Value interface{}
}

Jump to

Keyboard shortcuts

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