events

package
v0.0.0-...-6b7357b Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSubscription

func RunSubscription(cfg *config.Config, contractABIPath string)

func SubscribeToEvents

func SubscribeToEvents(c *ethclient.Client, contractAddress common.Address, logs chan<- types.Log, contractABI abi.ABI) (ethereum.Subscription, error)

Types

type ItemAdded

type ItemAdded struct {
	ItemId uuid.UUID `json:"itemId"`
}

func DecodeAddEvent

func DecodeAddEvent(c *ethclient.Client, contractABI abi.ABI, vLog types.Log) (ItemAdded, error)

type ItemPurchased

type ItemPurchased struct {
	OrderId uuid.UUID `json:"orderId"`
}

func DecodePurchaseEvent

func DecodePurchaseEvent(c *ethclient.Client, contractABI abi.ABI, vLog types.Log) (ItemPurchased, error)

Jump to

Keyboard shortcuts

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