TransactionSEALED
▓╲□$&●╲□■&!&■◇░◇▪&●□^$╳□◇╲?!#░~!╳█!○░&╱╱╲◇^&^!╲╱&$?~█╳○░◇&*◇◇╱◆◆
Transaction ID
Transaction Summary
Contract CallCalled TopShot, TopShotMarketV3, NonFungibleToken
Script Arguments
0ids[UInt64]
[ "36580" ]
Cadence Script
1import TopShot from 0x0b2a3299cc857e29
2import TopShotMarketV3 from 0xc1e4f4f4c4257510
3import NonFungibleToken from 0x1d7e57aa55817448
4
5// This transaction locks a list of TopShot NFTs rendering them unable to be withdrawn, sold, or transferred
6// Hardcoded to lock for 1 year
7
8// Parameters
9//
10// ids: array of TopShot moment Flow IDs
11
12transaction(ids: [UInt64]) {
13 prepare(acct: auth(Storage, Capabilities) &Account) {
14 if let saleRef = acct.storage.borrow<auth(TopShotMarketV3.Cancel) &TopShotMarketV3.SaleCollection>(from: TopShotMarketV3.marketStoragePath) {
15 for id in ids {
16 saleRef.cancelSale(tokenID: id)
17 }
18 }
19
20 let collectionRef = acct.storage.borrow<auth(NonFungibleToken.Update) &TopShot.Collection>(from: /storage/MomentCollection)
21 ?? panic("Could not borrow from MomentCollection in storage")
22
23 let ONE_YEAR_IN_SECONDS: UFix64 = UFix64(31536000)
24 collectionRef.batchLock(ids: ids, duration: ONE_YEAR_IN_SECONDS)
25 }
26}