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 ¶
EventApproval is the ERC721 Approval event
type EventApprovalForAll ¶
EventApprovalForAll is the ERC721 ApprovalForAll event
type EventEvolvedWithExternalURI ¶
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 ¶
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