github.com/DapperCollectives/CAST/backend@v0.0.0-20230921221157-1350c8be7c96/main/cadence/float/scripts/get_float_ids.cdc (about)

     1  import FLOAT from 0x2d4c3caffbeab845
     2  pub fun main(account: Address, eventId: UInt64): [UInt64] {
     3    let floatCollection = getAccount(account).getCapability(FLOAT.FLOATCollectionPublicPath)
     4                          .borrow<&FLOAT.Collection{FLOAT.CollectionPublic}>()
     5                          ?? panic("Could not borrow the Collection from the account.")
     6    
     7    return floatCollection.ownedIdsFromEvent(eventId: eventId)
     8  }