Skip to content

Instantly share code, notes, and snippets.

@Hugo6991
Last active February 21, 2022 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hugo6991/0cb469b0258abff6a657f70d3750c250 to your computer and use it in GitHub Desktop.
Save Hugo6991/0cb469b0258abff6a657f70d3750c250 to your computer and use it in GitHub Desktop.
02 | Event 宣告 | pub event ContractInitialized
pub event ContractInitialized()
pub event PlayCreated(id: UInt32, metadata: {String:String})
pub event NewSeriesStarted(newCurrentSeries: UInt32)
pub event SetCreated(setID: UInt32, series: UInt32)
pub event PlayAddedToSet(setID: UInt32, playID: UInt32)
pub event PlayRetiredFromSet(setID: UInt32, playID: UInt32, numMoments: UInt32)
pub event SetLocked(setID: UInt32)
pub event MomentMinted(momentID: UInt64, playID: UInt32, setID: UInt32, serialNumber: UInt32)
pub event Withdraw(id: UInt64, from: Address?)
pub event Deposit(id: UInt64, to: Address?)
pub event MomentDestroyed(id: UInt64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment