scan

package
v0.0.0-...-0ff5682 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event interface{}

Event is an alias of interface{} and it represents the ERC721 events

type EventApproval

type EventApproval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
}

EventApproval is the ERC721 Approval event

type EventApprovalForAll

type EventApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
}

EventApprovalForAll is the ERC721 ApprovalForAll event

type EventEvolvedWithExternalURI

type EventEvolvedWithExternalURI struct {
	TokenId  *big.Int
	TokenURI string
}

EventEvolvedWithExternalURI is the LaosEvolution event emitted when a token metadata is updated

type EventMintedWithExternalURI

type EventMintedWithExternalURI struct {
	Slot        *big.Int
	To          common.Address
	TokenURI    string
	TokenId     *big.Int
	Contract    common.Address
	BlockNumber uint64
	Timestamp   uint64
	TxIndex     uint64
}

EventMintedWithExternalURI is the LaosEvolution event emitted when a token is minted

type EventNewCollecion

type EventNewCollecion struct {
	CollectionAddress common.Address
	Owner             common.Address
}

EventNewCollecion is the LaosEvolution event emitted when a new collection is created

type EventNewERC721Universal

type EventNewERC721Universal struct {
	NewContractAddress common.Address
	BaseURI            string
	BlockNumber        uint64
}

EventNewERC721Universal is the ERC721 event emitted when a new Universal contract is deployed

func (EventNewERC721Universal) CollectionAddress

func (e EventNewERC721Universal) CollectionAddress() (common.Address, error)

func (EventNewERC721Universal) GlobalConsensus

func (e EventNewERC721Universal) GlobalConsensus() (string, error)

func (EventNewERC721Universal) Parachain

func (e EventNewERC721Universal) Parachain() (uint64, error)

type EventTransfer

type EventTransfer struct {
	From        common.Address
	To          common.Address
	TokenId     *big.Int
	BlockNumber uint64
	Contract    common.Address
}

EventTransfer is the ERC721 Transfer event

type Scanner

type Scanner interface {
	ScanNewUniversalEvents(ctx context.Context, fromBlock, toBlock *big.Int) ([]EventNewERC721Universal, error)
	ScanEvents(ctx context.Context, fromBlock *big.Int, toBlock *big.Int, contracts []string) ([]Event, error)
}

Scanner is responsible for scanning and retrieving the ERC721 events

func NewScanner

func NewScanner(client blockchain.EthClient, contracts ...string) Scanner

NewScanner instantiates the default implementation for the Scanner interface

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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