events

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventRevealed specifies that there is a Revealed Event on a PackNFT Contract located at the address
	EventRevealed = "PackNFT.Revealed"
)

Variables

View Source
var (
	// This variable specifies that there is a Deposit Event on a TopShot Contract located at address 0x04
	EventDeposit = "TopShot.Deposit"
)
View Source
var (
	EventMomentDestroyed = "TopShot.MomentDestroyed"
)
View Source
var (
	// This variable specifies that there is a MomentMinted Event on a TopShot Contract located at address 0x04
	EventMomentMinted = "TopShot.MomentMinted"
)
View Source
var (
	EventPlayAddedToSet = "TopShot.PlayAddedToSet"
)
View Source
var (
	EventPlayCreated = "TopShot.PlayCreated"
)
View Source
var (
	EventPlayRetiredFromSet = "TopShot.PlayRetiredFromSet"
)
View Source
var (
	EventSetCreated = "TopShot.SetCreated"
)
View Source
var (
	EventSetLocked = "TopShot.SetLocked"
)
View Source
var (
	// This variable specifies that there is a Withdraw Event on a TopShot Contract located at address 0x04
	EventWithdraw = "TopShot.Withdraw"
)

Functions

func NewCadenceString added in v1.1.0

func NewCadenceString(str string) cadence.String

Types

type DepositEvent

type DepositEvent interface {
	Id() uint64
	Owner() string // deprecated: use To()
	To() string
}

func DecodeDepositEvent

func DecodeDepositEvent(b []byte) (DepositEvent, error)

type MomentDestroyedEvent added in v1.0.3

type MomentDestroyedEvent interface {
	Id() uint64
}

func DecodeMomentDestroyedEvent added in v1.0.3

func DecodeMomentDestroyedEvent(b []byte) (MomentDestroyedEvent, error)

type MomentMintedEvent

type MomentMintedEvent interface {
	MomentId() uint64
	PlayId() uint32
	SetId() uint32
	SerialNumber() uint32
}

func DecodeMomentMintedEvent

func DecodeMomentMintedEvent(b []byte) (MomentMintedEvent, error)

type PlayAddedToSetEvent

type PlayAddedToSetEvent interface {
	SetID() uint32
	PlayID() uint32
}

func DecodePlayAddedToSetEvent

func DecodePlayAddedToSetEvent(b []byte) (PlayAddedToSetEvent, error)

type PlayCreatedEvent

type PlayCreatedEvent interface {
	Id() uint32
	MetaData() map[interface{}]interface{}
}

func DecodePlayCreatedEvent

func DecodePlayCreatedEvent(b []byte) (PlayCreatedEvent, error)

type RevealedEvent added in v1.0.5

type RevealedEvent interface {
	Id() uint64
	Salt() string
	NFTs() string
}

func DecodeRevealedEvent added in v1.0.5

func DecodeRevealedEvent(b []byte) (RevealedEvent, error)

type SetCreatedEvent

type SetCreatedEvent interface {
	SetID() uint32
	Series() uint32
}

func DecodeSetCreatedEvent

func DecodeSetCreatedEvent(b []byte) (SetCreatedEvent, error)

type SetLockedEvent added in v1.0.4

type SetLockedEvent interface {
	SetID() uint32
}

func DecodeSetLockedEvent added in v1.0.4

func DecodeSetLockedEvent(b []byte) (SetLockedEvent, error)

type SetPlayRetiredEvent added in v1.0.4

type SetPlayRetiredEvent interface {
	SetID() uint32
	PlayID() uint32
	NumMoments() uint32
}

func DecodeSetPlayRetiredEvent added in v1.0.4

func DecodeSetPlayRetiredEvent(b []byte) (SetPlayRetiredEvent, error)

type WithdrawEvent

type WithdrawEvent interface {
	Id() uint64
	Owner() string // deprecated: use From()
	From() string
}

func DecodeWithdrawEvent

func DecodeWithdrawEvent(b []byte) (WithdrawEvent, error)

Jump to

Keyboard shortcuts

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