events

package module
v2.0.0-stable-cadence-... Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Unlicense Imports: 6 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 (
	EventSubeditionAddedToMoment = "TopShot.SubeditionAddedToMoment"
)
View Source
var (
	EventSubeditionCreated = "TopShot.SubeditionCreated"
)
View Source
var (
	EventWithdraw = "TopShot.Withdraw"
)
View Source
var (
	MomentLocked = "TopShotLocking.MomentLocked"
)
View Source
var (
	MomentUnlocked = "TopShotLocking.MomentUnlocked"
)

Functions

func NewCadenceString

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

type MomentDestroyedEvent interface {
	Id() uint64
}

func DecodeMomentDestroyedEvent

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

type MomentLockedEvent

type MomentLockedEvent interface {
	FlowID() uint64
	Duration() float64
	ExpiryTimestamp() float64
}

func DecodeMomentLockedEvent

func DecodeMomentLockedEvent(b []byte) (MomentLockedEvent, error)

type MomentMintedEvent

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

func DecodeMomentMintedEvent

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

type MomentUnlockedEvent

type MomentUnlockedEvent interface {
	FlowID() uint64
}

func DecodeMomentUnlockedEvent

func DecodeMomentUnlockedEvent(b []byte) (MomentUnlockedEvent, 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

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

func DecodeRevealedEvent

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

type SetLockedEvent interface {
	SetID() uint32
}

func DecodeSetLockedEvent

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

type SetPlayRetiredEvent

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

func DecodeSetPlayRetiredEvent

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

type SubeditionAddedToMomentEvent

type SubeditionAddedToMomentEvent interface {
	MomentID() uint64
	SubeditionID() uint32
}

func DecodeSubeditionAddedToMomentEvent

func DecodeSubeditionAddedToMomentEvent(b []byte) (SubeditionAddedToMomentEvent, error)

type SubeditionCreatedEvent

type SubeditionCreatedEvent interface {
	SubeditionId() uint32
	Name() string
	MetaData() map[string]interface{}
}

func DecodeSubeditionCreatedEvent

func DecodeSubeditionCreatedEvent(b []byte) (SubeditionCreatedEvent, error)

type WithdrawEvent

type WithdrawEvent interface {
	Id() uint64
	From() string
	Owner() string
}

func DecodeWithdrawEvent

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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