TransactionSEALED
▪%?▒█▫&◇?$◇╱$▪◆?○#*○█◆◆^@□╱░◆▒□^╲◆□▪?█*░◆■^╳*▓~□~&╱□?□▓●%!%●~!█░
Transaction ID
Execution Fee
0.00074 FLOWTransaction Summary
Contract CallCalled Escrow, AllDay, NonFungibleToken
Contracts
Script Arguments
0leaderboardNameString
mack_hollins_sb_obsidian_tia_2_12_26
Cadence Script
1import Escrow from 0x4da127056dc9ba3f
2import AllDay from 0xe4cf4bdc1751c65d
3import NonFungibleToken from 0x1d7e57aa55817448
4
5// This transaction takes a name and creates a new leaderboard with that name.
6transaction(leaderboardName: String) {
7 prepare(signer: auth(BorrowValue) &Account) {
8 let collectionRef = signer.storage.borrow<auth(Escrow.Operate) &Escrow.Collection>(from: Escrow.CollectionStoragePath)
9 ?? panic("Could not borrow reference to the Collection resource")
10
11 let type = Type<@AllDay.NFT>()
12
13 let newNFTCollection <- AllDay.createEmptyCollection(nftType: Type<@AllDay.NFT>())
14
15 collectionRef.createLeaderboard(name: leaderboardName, nftType: type, collection: <-newNFTCollection)
16 }
17}