example

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Parse event/log data based on the 'example' ABI

Code generated by "genabi"; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {

	// Un-indexed:
	Other [20]byte
	Key   [32]byte
	Value []byte
	Geo   Geo
	// contains filtered or unexported fields
}

func (Details) Done

func (x Details) Done()

type Geo

type Geo struct {

	// Un-indexed:
	X uint8
	Y uint8
	// contains filtered or unexported fields
}

func (Geo) Done

func (x Geo) Done()

type Transfer

type Transfer struct {

	// Indexed:
	From [20]byte
	To   [20]byte
	Id   *big.Int
	// Un-indexed:
	Extra   [3][2]uint8
	Details [][]Details
	// contains filtered or unexported fields
}

func MatchTransfer

func MatchTransfer(l abi.Log) (Transfer, error)

Event Signature:

transfer(address,address,uint256,uint8[2][3],(address,bytes32,bytes,(uint8,uint8))[][])

Checks the first log topic against the signature hash:

70711f9efd2d568665592c1d6245e892eab7d9e56c76714682526066ca69d65e

Copies indexed event inputs from the remaining topics into Transfer

Uses the the following abi schema to decode the un-indexed event inputs from the log's data field into Transfer:

(uint8[2][3],(address,bytes32,bytes,(uint8,uint8))[][])

func (Transfer) Done

func (x Transfer) Done()

Jump to

Keyboard shortcuts

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