TransactionSEALED
◇●&▫#?╱#░!▫░╳□%▪╳▪╳□^$&▒▫@█▒▒▫■▒░$○◇^@▓#&╳░^$▪╱^▫▒~●▓□░░◇~*%█■*▓
Transaction ID
Execution Fee
0.00003149 FLOWTransaction Summary
UpdatingContract Call
Called TopShot, TopShotMarketV3
Contracts
Script Arguments
Copy:
0ids[UInt64]
[ "46627293", "46630356", "46645659", "46623558" ]
Cadence Script
1import TopShot from 0x0b2a3299cc857e29
2import TopShotMarketV3 from 0xc1e4f4f4c4257510
3
4// This transaction locks a list of TopShot NFTs rendering them unable to be withdrawn, sold, or transferred
5// Hardcoded to lock for 1 year
6
7// Parameters
8//
9// ids: array of TopShot moment Flow IDs
10
11transaction(ids: [UInt64]) {
12 prepare(acct: AuthAccount) {
13 if let saleRef = acct.borrow<&TopShotMarketV3.SaleCollection>(from: TopShotMarketV3.marketStoragePath) {
14 for id in ids {
15 saleRef.cancelSale(tokenID: id)
16 }
17 }
18
19 let collectionRef = acct.borrow<&TopShot.Collection>(from: /storage/MomentCollection)
20 ?? panic("Could not borrow from MomentCollection in storage")
21
22 let ONE_YEAR_IN_SECONDS: UFix64 = UFix64(31536000)
23 collectionRef.batchLock(ids: ids, duration: ONE_YEAR_IN_SECONDS)
24 }
25}