events

package
v0.0.0-...-c0747e2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventRecords = make(map[string]LockEvent)

EventRecords : map of transaction hashes to LockEvent structs

Functions

func IsEventRecorded

func IsEventRecorded(txHash string) bool

IsEventRecorded : checks the sessions stored events for this transaction hash

func NewEventWrite

func NewEventWrite(txHash string, event LockEvent)

NewEventWrite : add a validator's address to the official claims list

func PrintEvent

func PrintEvent(event LockEvent)

PrintEvent : prints a LockEvent struct's information

func PrintEventByTx

func PrintEventByTx(txHash string)

PrintEventByTx : prints any witnessed events associated with a given transaction hash

func PrintEvents

func PrintEvents()

PrintEvents : prints all the claims made on this event

Types

type LockEvent

type LockEvent struct {
	Id    [32]byte
	From  common.Address
	To    []byte
	Token common.Address
	Value *big.Int
	Nonce *big.Int
}

LockEvent : struct which represents a single smart contract event

func NewLockEvent

func NewLockEvent(contractAbi abi.ABI, eventName string, eventData []byte) LockEvent

NewLockEvent : parses LogLock events using go-ethereum's accounts/abi library

Jump to

Keyboard shortcuts

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