events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 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 {
	EthereumChainID       *big.Int
	BridgeContractAddress common.Address
	Id                    [32]byte
	From                  common.Address
	To                    []byte
	Token                 common.Address
	Symbol                string
	Value                 *big.Int
	Nonce                 *big.Int
}

LockEvent : struct which represents a single smart contract event

func NewLockEvent

func NewLockEvent(contractAbi abi.ABI, clientChainID *big.Int, contractAddress string, 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