diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 800d2f4..de98661 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -36,6 +36,7 @@ // ../../../transactions/fastbreak/scripts/get_fast_break.cdc (149B) // ../../../transactions/fastbreak/scripts/get_fast_break_stats.cdc (181B) // ../../../transactions/fastbreak/scripts/get_player_score.cdc (394B) +// ../../../transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc (648B) // ../../../transactions/fastbreak/scripts/get_token_count.cdc (106B) // ../../../transactions/market/change_percentage.cdc (942B) // ../../../transactions/market/change_price.cdc (879B) @@ -905,6 +906,26 @@ func TransactionsFastbreakScriptsGet_player_scoreCdc() (*asset, error) { return a, nil } +var _TransactionsFastbreakScriptsGet_player_scores_from_tokensCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x90\x4f\x8f\xd3\x30\x10\xc5\xef\xfe\x14\xa3\x3d\x80\x73\x89\x40\x42\x1c\x2a\xca\x2a\xdb\x6c\x51\x85\x54\xad\xda\xc2\x65\xb5\x07\xd7\x19\x17\x8b\x74\x6c\x8d\x27\xfc\x51\x94\xef\x8e\xb2\xa6\x21\x50\xe6\x64\x4b\xef\xbd\x79\xbf\x51\xca\x9f\x63\x60\x81\xb5\x49\x72\xc7\x68\xbe\x7e\x7e\x0d\x8e\xc3\x19\x5e\xfd\x58\x57\xfb\xc3\xdd\xee\xbe\xfa\x58\xd5\xf5\xee\x7e\xbf\x57\x2a\x76\x47\x70\x1d\xc1\xd9\x78\xd2\xa6\x69\x78\x01\x55\xd3\x30\xa6\x54\x2c\xe0\xb1\xdf\x0b\x7b\x3a\x2d\xe0\xd3\x86\xe4\xed\x9b\xe1\x09\x7a\xa5\x00\x00\x5a\x14\x60\xb4\x3e\x7a\x24\xa9\xac\x0d\x1d\x09\x2c\xe1\x84\x97\xcf\x73\x56\x31\x69\x6d\x68\x5b\xb4\xe2\x03\xed\xd0\xc1\xf2\xca\x5b\x9e\x50\x56\x26\x9a\xa3\x6f\xbd\xfc\xd4\xb3\xea\xe5\x6a\xb2\x3e\x74\xc7\xd6\xdb\x07\x23\x5f\x8a\xf2\x18\x98\xc3\xf7\x77\x2f\xfa\xb9\x74\x7a\x6f\xd7\x87\x7f\x6d\xc3\x7b\x9d\xeb\x8c\x73\x7b\x0b\xd1\x90\xb7\xfa\x66\x15\xba\xb6\x81\x6d\x10\xc8\x89\xb0\x43\x87\x8c\x64\xf1\xa6\xc8\xa8\xdf\x0c\x83\x61\xde\xae\x0f\x09\x96\x7f\x83\x8c\xad\x37\x75\xd2\x33\x65\xb2\x81\x31\xfd\xf7\x74\x4b\x78\x7c\xca\x42\x17\x18\xc8\xc9\xa6\x06\x4f\x53\x76\x0f\x53\xbd\xf1\x62\xe4\xe4\x6a\x5d\xae\x38\xa7\xd4\xbe\x59\xe4\xa8\x62\x84\xfa\x13\x31\xce\x1c\x91\x5e\x4e\x84\x73\xff\x05\x72\x9c\x5c\xbd\x34\x31\x22\x35\xba\x27\x27\xa5\xbb\x48\x3f\x98\x33\x6e\xea\xe7\x55\x65\x0c\x9e\x24\xe9\x62\xc8\xf7\x1c\x72\x02\xa3\x74\x4c\xbf\x43\xd4\xa0\xd4\xaf\x00\x00\x00\xff\xff\x19\x58\xc8\x2f\x88\x02\x00\x00" + +func TransactionsFastbreakScriptsGet_player_scores_from_tokensCdcBytes() ([]byte, error) { + return bindataRead( + _TransactionsFastbreakScriptsGet_player_scores_from_tokensCdc, + "../../../transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc", + ) +} + +func TransactionsFastbreakScriptsGet_player_scores_from_tokensCdc() (*asset, error) { + bytes, err := TransactionsFastbreakScriptsGet_player_scores_from_tokensCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "../../../transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x32, 0x7e, 0x42, 0xe7, 0xf, 0x64, 0x1a, 0x60, 0x60, 0xfb, 0x4c, 0x7e, 0x67, 0xd9, 0xae, 0xc5, 0x38, 0xf3, 0x8a, 0xfc, 0xbb, 0x58, 0x8a, 0x7f, 0xaf, 0x5d, 0xd3, 0x65, 0x2a, 0x32, 0xe, 0xd1}} + return a, nil +} + var _TransactionsFastbreakScriptsGet_token_countCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xca\xcc\x2d\xc8\x2f\x2a\x51\x70\x4b\x2c\x2e\x71\x2a\x4a\x4d\xcc\x0e\x33\x54\x48\x2b\xca\xcf\x55\x30\xa8\x70\x73\x0c\x0e\x71\x0a\x72\x75\xf4\x76\x74\x71\x09\x72\x0d\x0e\xe6\xe2\x2a\x28\x4d\x52\x48\x2b\xcd\x53\xc8\x4d\xcc\xcc\xd3\xd0\xb4\x52\x08\xf5\xcc\x2b\x31\x33\x51\xa8\xe6\xe2\x52\x50\x50\x50\x28\x4a\x2d\x29\x2d\xca\x43\x36\x49\xaf\x24\xbf\x24\x31\x27\xb8\xb4\xa0\x20\xa7\x92\xab\x16\x10\x00\x00\xff\xff\x69\xbc\x54\x59\x6a\x00\x00\x00" func TransactionsFastbreakScriptsGet_token_countCdcBytes() ([]byte, error) { @@ -2596,122 +2617,123 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ - "../../../transactions/admin/add_play_to_set.cdc": TransactionsAdminAdd_play_to_setCdc, - "../../../transactions/admin/add_plays_to_set.cdc": TransactionsAdminAdd_plays_to_setCdc, - "../../../transactions/admin/batch_mint_moment.cdc": TransactionsAdminBatch_mint_momentCdc, - "../../../transactions/admin/batch_mint_moment_with_subedition.cdc": TransactionsAdminBatch_mint_moment_with_subeditionCdc, - "../../../transactions/admin/create_new_subedition_admin_resource.cdc": TransactionsAdminCreate_new_subedition_admin_resourceCdc, - "../../../transactions/admin/create_play.cdc": TransactionsAdminCreate_playCdc, - "../../../transactions/admin/create_set.cdc": TransactionsAdminCreate_setCdc, - "../../../transactions/admin/create_set_and_play_struct.cdc": TransactionsAdminCreate_set_and_play_structCdc, - "../../../transactions/admin/create_subedition.cdc": TransactionsAdminCreate_subeditionCdc, - "../../../transactions/admin/fulfill_pack.cdc": TransactionsAdminFulfill_packCdc, - "../../../transactions/admin/grant_topshot_locking_admin.cdc": TransactionsAdminGrant_topshot_locking_adminCdc, - "../../../transactions/admin/lock_set.cdc": TransactionsAdminLock_setCdc, - "../../../transactions/admin/mark_moment_unlockable.cdc": TransactionsAdminMark_moment_unlockableCdc, - "../../../transactions/admin/mint_moment.cdc": TransactionsAdminMint_momentCdc, - "../../../transactions/admin/mint_moment_with_subedition.cdc": TransactionsAdminMint_moment_with_subeditionCdc, - "../../../transactions/admin/retireAll_plays_from_set.cdc": TransactionsAdminRetireall_plays_from_setCdc, - "../../../transactions/admin/retire_all.cdc": TransactionsAdminRetire_allCdc, - "../../../transactions/admin/retire_play_from_set.cdc": TransactionsAdminRetire_play_from_setCdc, - "../../../transactions/admin/set_nft_subedition.cdc": TransactionsAdminSet_nft_subeditionCdc, - "../../../transactions/admin/set_nfts_lock_expiry.cdc": TransactionsAdminSet_nfts_lock_expiryCdc, - "../../../transactions/admin/start_new_series.cdc": TransactionsAdminStart_new_seriesCdc, - "../../../transactions/admin/transfer_admin.cdc": TransactionsAdminTransfer_adminCdc, - "../../../transactions/admin/unlock_all_moments.cdc": TransactionsAdminUnlock_all_momentsCdc, - "../../../transactions/admin/update_tagline.cdc": TransactionsAdminUpdate_taglineCdc, - "../../../transactions/fastbreak/oracle/add_stat_to_game.cdc": TransactionsFastbreakOracleAdd_stat_to_gameCdc, - "../../../transactions/fastbreak/oracle/create_game.cdc": TransactionsFastbreakOracleCreate_gameCdc, - "../../../transactions/fastbreak/oracle/create_run.cdc": TransactionsFastbreakOracleCreate_runCdc, - "../../../transactions/fastbreak/oracle/score_fast_break_submission.cdc": TransactionsFastbreakOracleScore_fast_break_submissionCdc, - "../../../transactions/fastbreak/oracle/update_fast_break_game.cdc": TransactionsFastbreakOracleUpdate_fast_break_gameCdc, - "../../../transactions/fastbreak/player/create_player.cdc": TransactionsFastbreakPlayerCreate_playerCdc, - "../../../transactions/fastbreak/player/play.cdc": TransactionsFastbreakPlayerPlayCdc, - "../../../transactions/fastbreak/player/update_submission.cdc": TransactionsFastbreakPlayerUpdate_submissionCdc, - "../../../transactions/fastbreak/scripts/get_current_player.cdc": TransactionsFastbreakScriptsGet_current_playerCdc, - "../../../transactions/fastbreak/scripts/get_fast_break.cdc": TransactionsFastbreakScriptsGet_fast_breakCdc, - "../../../transactions/fastbreak/scripts/get_fast_break_stats.cdc": TransactionsFastbreakScriptsGet_fast_break_statsCdc, - "../../../transactions/fastbreak/scripts/get_player_score.cdc": TransactionsFastbreakScriptsGet_player_scoreCdc, - "../../../transactions/fastbreak/scripts/get_token_count.cdc": TransactionsFastbreakScriptsGet_token_countCdc, - "../../../transactions/market/change_percentage.cdc": TransactionsMarketChange_percentageCdc, - "../../../transactions/market/change_price.cdc": TransactionsMarketChange_priceCdc, - "../../../transactions/market/change_receiver.cdc": TransactionsMarketChange_receiverCdc, - "../../../transactions/market/create_sale.cdc": TransactionsMarketCreate_saleCdc, - "../../../transactions/market/create_start_sale.cdc": TransactionsMarketCreate_start_saleCdc, - "../../../transactions/market/mint_and_purchase.cdc": TransactionsMarketMint_and_purchaseCdc, - "../../../transactions/market/purchase_moment.cdc": TransactionsMarketPurchase_momentCdc, - "../../../transactions/market/scripts/get_sale_len.cdc": TransactionsMarketScriptsGet_sale_lenCdc, - "../../../transactions/market/scripts/get_sale_percentage.cdc": TransactionsMarketScriptsGet_sale_percentageCdc, - "../../../transactions/market/scripts/get_sale_price.cdc": TransactionsMarketScriptsGet_sale_priceCdc, - "../../../transactions/market/scripts/get_sale_set_id.cdc": TransactionsMarketScriptsGet_sale_set_idCdc, - "../../../transactions/market/start_sale.cdc": TransactionsMarketStart_saleCdc, - "../../../transactions/market/stop_sale.cdc": TransactionsMarketStop_saleCdc, - "../../../transactions/marketV3/change_price.cdc": TransactionsMarketv3Change_priceCdc, - "../../../transactions/marketV3/change_receiver.cdc": TransactionsMarketv3Change_receiverCdc, - "../../../transactions/marketV3/create_sale.cdc": TransactionsMarketv3Create_saleCdc, - "../../../transactions/marketV3/create_start_sale.cdc": TransactionsMarketv3Create_start_saleCdc, - "../../../transactions/marketV3/mint_and_purchase.cdc": TransactionsMarketv3Mint_and_purchaseCdc, - "../../../transactions/marketV3/purchase_both_markets.cdc": TransactionsMarketv3Purchase_both_marketsCdc, - "../../../transactions/marketV3/purchase_group_of_moments.cdc": TransactionsMarketv3Purchase_group_of_momentsCdc, - "../../../transactions/marketV3/purchase_moment.cdc": TransactionsMarketv3Purchase_momentCdc, - "../../../transactions/marketV3/scripts/get_sale_len.cdc": TransactionsMarketv3ScriptsGet_sale_lenCdc, - "../../../transactions/marketV3/scripts/get_sale_percentage.cdc": TransactionsMarketv3ScriptsGet_sale_percentageCdc, - "../../../transactions/marketV3/scripts/get_sale_price.cdc": TransactionsMarketv3ScriptsGet_sale_priceCdc, - "../../../transactions/marketV3/scripts/get_sale_set_id.cdc": TransactionsMarketv3ScriptsGet_sale_set_idCdc, - "../../../transactions/marketV3/start_sale.cdc": TransactionsMarketv3Start_saleCdc, - "../../../transactions/marketV3/stop_sale.cdc": TransactionsMarketv3Stop_saleCdc, - "../../../transactions/marketV3/upgrade_sale.cdc": TransactionsMarketv3Upgrade_saleCdc, - "../../../transactions/scripts/collections/borrow_nft_safe.cdc": TransactionsScriptsCollectionsBorrow_nft_safeCdc, - "../../../transactions/scripts/collections/get_collection_ids.cdc": TransactionsScriptsCollectionsGet_collection_idsCdc, - "../../../transactions/scripts/collections/get_id_in_Collection.cdc": TransactionsScriptsCollectionsGet_id_in_collectionCdc, - "../../../transactions/scripts/collections/get_locked_nfts_length.cdc": TransactionsScriptsCollectionsGet_locked_nfts_lengthCdc, - "../../../transactions/scripts/collections/get_metadata.cdc": TransactionsScriptsCollectionsGet_metadataCdc, - "../../../transactions/scripts/collections/get_metadata_field.cdc": TransactionsScriptsCollectionsGet_metadata_fieldCdc, - "../../../transactions/scripts/collections/get_moment_isLocked.cdc": TransactionsScriptsCollectionsGet_moment_islockedCdc, - "../../../transactions/scripts/collections/get_moment_lockExpiry.cdc": TransactionsScriptsCollectionsGet_moment_lockexpiryCdc, - "../../../transactions/scripts/collections/get_moment_playID.cdc": TransactionsScriptsCollectionsGet_moment_playidCdc, - "../../../transactions/scripts/collections/get_moment_serialNum.cdc": TransactionsScriptsCollectionsGet_moment_serialnumCdc, - "../../../transactions/scripts/collections/get_moment_series.cdc": TransactionsScriptsCollectionsGet_moment_seriesCdc, - "../../../transactions/scripts/collections/get_moment_setID.cdc": TransactionsScriptsCollectionsGet_moment_setidCdc, - "../../../transactions/scripts/collections/get_moment_setName.cdc": TransactionsScriptsCollectionsGet_moment_setnameCdc, - "../../../transactions/scripts/collections/get_setplays_are_owned.cdc": TransactionsScriptsCollectionsGet_setplays_are_ownedCdc, - "../../../transactions/scripts/get_currentSeries.cdc": TransactionsScriptsGet_currentseriesCdc, - "../../../transactions/scripts/get_nft_metadata.cdc": TransactionsScriptsGet_nft_metadataCdc, - "../../../transactions/scripts/get_topshot_metadata.cdc": TransactionsScriptsGet_topshot_metadataCdc, - "../../../transactions/scripts/get_totalSupply.cdc": TransactionsScriptsGet_totalsupplyCdc, - "../../../transactions/scripts/plays/get_all_plays.cdc": TransactionsScriptsPlaysGet_all_playsCdc, - "../../../transactions/scripts/plays/get_nextPlayID.cdc": TransactionsScriptsPlaysGet_nextplayidCdc, - "../../../transactions/scripts/plays/get_play_metadata.cdc": TransactionsScriptsPlaysGet_play_metadataCdc, - "../../../transactions/scripts/plays/get_play_metadata_field.cdc": TransactionsScriptsPlaysGet_play_metadata_fieldCdc, - "../../../transactions/scripts/sets/get_edition_retired.cdc": TransactionsScriptsSetsGet_edition_retiredCdc, - "../../../transactions/scripts/sets/get_nextSetID.cdc": TransactionsScriptsSetsGet_nextsetidCdc, - "../../../transactions/scripts/sets/get_numMoments_in_edition.cdc": TransactionsScriptsSetsGet_nummoments_in_editionCdc, - "../../../transactions/scripts/sets/get_plays_in_set.cdc": TransactionsScriptsSetsGet_plays_in_setCdc, - "../../../transactions/scripts/sets/get_setIDs_by_name.cdc": TransactionsScriptsSetsGet_setids_by_nameCdc, - "../../../transactions/scripts/sets/get_setName.cdc": TransactionsScriptsSetsGet_setnameCdc, - "../../../transactions/scripts/sets/get_setSeries.cdc": TransactionsScriptsSetsGet_setseriesCdc, - "../../../transactions/scripts/sets/get_set_data.cdc": TransactionsScriptsSetsGet_set_dataCdc, - "../../../transactions/scripts/sets/get_set_locked.cdc": TransactionsScriptsSetsGet_set_lockedCdc, - "../../../transactions/scripts/subeditions/get_all_subeditions.cdc": TransactionsScriptsSubeditionsGet_all_subeditionsCdc, - "../../../transactions/scripts/subeditions/get_nextSubeditionID.cdc": TransactionsScriptsSubeditionsGet_nextsubeditionidCdc, - "../../../transactions/scripts/subeditions/get_nft_subedition.cdc": TransactionsScriptsSubeditionsGet_nft_subeditionCdc, - "../../../transactions/scripts/subeditions/get_subedition_by_id.cdc": TransactionsScriptsSubeditionsGet_subedition_by_idCdc, - "../../../transactions/scripts/users/is_account_all_set_up.cdc": TransactionsScriptsUsersIs_account_all_set_upCdc, - "../../../transactions/shardedCollection/batch_from_sharded.cdc": TransactionsShardedcollectionBatch_from_shardedCdc, - "../../../transactions/shardedCollection/setup_sharded_collection.cdc": TransactionsShardedcollectionSetup_sharded_collectionCdc, - "../../../transactions/shardedCollection/transfer_from_sharded.cdc": TransactionsShardedcollectionTransfer_from_shardedCdc, - "../../../transactions/user/batch_lock_moments.cdc": TransactionsUserBatch_lock_momentsCdc, - "../../../transactions/user/batch_transfer.cdc": TransactionsUserBatch_transferCdc, - "../../../transactions/user/batch_unlock_moments.cdc": TransactionsUserBatch_unlock_momentsCdc, - "../../../transactions/user/destroy_moments.cdc": TransactionsUserDestroy_momentsCdc, - "../../../transactions/user/destroy_moments_v2.cdc": TransactionsUserDestroy_moments_v2Cdc, - "../../../transactions/user/lock_fake_nft.cdc": TransactionsUserLock_fake_nftCdc, - "../../../transactions/user/lock_moment.cdc": TransactionsUserLock_momentCdc, - "../../../transactions/user/setup_collection.cdc": TransactionsUserSetup_collectionCdc, - "../../../transactions/user/setup_up_all_collections.cdc": TransactionsUserSetup_up_all_collectionsCdc, - "../../../transactions/user/transfer_moment.cdc": TransactionsUserTransfer_momentCdc, - "../../../transactions/user/transfer_moment_v3_sale.cdc": TransactionsUserTransfer_moment_v3_saleCdc, - "../../../transactions/user/unlock_moment.cdc": TransactionsUserUnlock_momentCdc, + "../../../transactions/admin/add_play_to_set.cdc": TransactionsAdminAdd_play_to_setCdc, + "../../../transactions/admin/add_plays_to_set.cdc": TransactionsAdminAdd_plays_to_setCdc, + "../../../transactions/admin/batch_mint_moment.cdc": TransactionsAdminBatch_mint_momentCdc, + "../../../transactions/admin/batch_mint_moment_with_subedition.cdc": TransactionsAdminBatch_mint_moment_with_subeditionCdc, + "../../../transactions/admin/create_new_subedition_admin_resource.cdc": TransactionsAdminCreate_new_subedition_admin_resourceCdc, + "../../../transactions/admin/create_play.cdc": TransactionsAdminCreate_playCdc, + "../../../transactions/admin/create_set.cdc": TransactionsAdminCreate_setCdc, + "../../../transactions/admin/create_set_and_play_struct.cdc": TransactionsAdminCreate_set_and_play_structCdc, + "../../../transactions/admin/create_subedition.cdc": TransactionsAdminCreate_subeditionCdc, + "../../../transactions/admin/fulfill_pack.cdc": TransactionsAdminFulfill_packCdc, + "../../../transactions/admin/grant_topshot_locking_admin.cdc": TransactionsAdminGrant_topshot_locking_adminCdc, + "../../../transactions/admin/lock_set.cdc": TransactionsAdminLock_setCdc, + "../../../transactions/admin/mark_moment_unlockable.cdc": TransactionsAdminMark_moment_unlockableCdc, + "../../../transactions/admin/mint_moment.cdc": TransactionsAdminMint_momentCdc, + "../../../transactions/admin/mint_moment_with_subedition.cdc": TransactionsAdminMint_moment_with_subeditionCdc, + "../../../transactions/admin/retireAll_plays_from_set.cdc": TransactionsAdminRetireall_plays_from_setCdc, + "../../../transactions/admin/retire_all.cdc": TransactionsAdminRetire_allCdc, + "../../../transactions/admin/retire_play_from_set.cdc": TransactionsAdminRetire_play_from_setCdc, + "../../../transactions/admin/set_nft_subedition.cdc": TransactionsAdminSet_nft_subeditionCdc, + "../../../transactions/admin/set_nfts_lock_expiry.cdc": TransactionsAdminSet_nfts_lock_expiryCdc, + "../../../transactions/admin/start_new_series.cdc": TransactionsAdminStart_new_seriesCdc, + "../../../transactions/admin/transfer_admin.cdc": TransactionsAdminTransfer_adminCdc, + "../../../transactions/admin/unlock_all_moments.cdc": TransactionsAdminUnlock_all_momentsCdc, + "../../../transactions/admin/update_tagline.cdc": TransactionsAdminUpdate_taglineCdc, + "../../../transactions/fastbreak/oracle/add_stat_to_game.cdc": TransactionsFastbreakOracleAdd_stat_to_gameCdc, + "../../../transactions/fastbreak/oracle/create_game.cdc": TransactionsFastbreakOracleCreate_gameCdc, + "../../../transactions/fastbreak/oracle/create_run.cdc": TransactionsFastbreakOracleCreate_runCdc, + "../../../transactions/fastbreak/oracle/score_fast_break_submission.cdc": TransactionsFastbreakOracleScore_fast_break_submissionCdc, + "../../../transactions/fastbreak/oracle/update_fast_break_game.cdc": TransactionsFastbreakOracleUpdate_fast_break_gameCdc, + "../../../transactions/fastbreak/player/create_player.cdc": TransactionsFastbreakPlayerCreate_playerCdc, + "../../../transactions/fastbreak/player/play.cdc": TransactionsFastbreakPlayerPlayCdc, + "../../../transactions/fastbreak/player/update_submission.cdc": TransactionsFastbreakPlayerUpdate_submissionCdc, + "../../../transactions/fastbreak/scripts/get_current_player.cdc": TransactionsFastbreakScriptsGet_current_playerCdc, + "../../../transactions/fastbreak/scripts/get_fast_break.cdc": TransactionsFastbreakScriptsGet_fast_breakCdc, + "../../../transactions/fastbreak/scripts/get_fast_break_stats.cdc": TransactionsFastbreakScriptsGet_fast_break_statsCdc, + "../../../transactions/fastbreak/scripts/get_player_score.cdc": TransactionsFastbreakScriptsGet_player_scoreCdc, + "../../../transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc": TransactionsFastbreakScriptsGet_player_scores_from_tokensCdc, + "../../../transactions/fastbreak/scripts/get_token_count.cdc": TransactionsFastbreakScriptsGet_token_countCdc, + "../../../transactions/market/change_percentage.cdc": TransactionsMarketChange_percentageCdc, + "../../../transactions/market/change_price.cdc": TransactionsMarketChange_priceCdc, + "../../../transactions/market/change_receiver.cdc": TransactionsMarketChange_receiverCdc, + "../../../transactions/market/create_sale.cdc": TransactionsMarketCreate_saleCdc, + "../../../transactions/market/create_start_sale.cdc": TransactionsMarketCreate_start_saleCdc, + "../../../transactions/market/mint_and_purchase.cdc": TransactionsMarketMint_and_purchaseCdc, + "../../../transactions/market/purchase_moment.cdc": TransactionsMarketPurchase_momentCdc, + "../../../transactions/market/scripts/get_sale_len.cdc": TransactionsMarketScriptsGet_sale_lenCdc, + "../../../transactions/market/scripts/get_sale_percentage.cdc": TransactionsMarketScriptsGet_sale_percentageCdc, + "../../../transactions/market/scripts/get_sale_price.cdc": TransactionsMarketScriptsGet_sale_priceCdc, + "../../../transactions/market/scripts/get_sale_set_id.cdc": TransactionsMarketScriptsGet_sale_set_idCdc, + "../../../transactions/market/start_sale.cdc": TransactionsMarketStart_saleCdc, + "../../../transactions/market/stop_sale.cdc": TransactionsMarketStop_saleCdc, + "../../../transactions/marketV3/change_price.cdc": TransactionsMarketv3Change_priceCdc, + "../../../transactions/marketV3/change_receiver.cdc": TransactionsMarketv3Change_receiverCdc, + "../../../transactions/marketV3/create_sale.cdc": TransactionsMarketv3Create_saleCdc, + "../../../transactions/marketV3/create_start_sale.cdc": TransactionsMarketv3Create_start_saleCdc, + "../../../transactions/marketV3/mint_and_purchase.cdc": TransactionsMarketv3Mint_and_purchaseCdc, + "../../../transactions/marketV3/purchase_both_markets.cdc": TransactionsMarketv3Purchase_both_marketsCdc, + "../../../transactions/marketV3/purchase_group_of_moments.cdc": TransactionsMarketv3Purchase_group_of_momentsCdc, + "../../../transactions/marketV3/purchase_moment.cdc": TransactionsMarketv3Purchase_momentCdc, + "../../../transactions/marketV3/scripts/get_sale_len.cdc": TransactionsMarketv3ScriptsGet_sale_lenCdc, + "../../../transactions/marketV3/scripts/get_sale_percentage.cdc": TransactionsMarketv3ScriptsGet_sale_percentageCdc, + "../../../transactions/marketV3/scripts/get_sale_price.cdc": TransactionsMarketv3ScriptsGet_sale_priceCdc, + "../../../transactions/marketV3/scripts/get_sale_set_id.cdc": TransactionsMarketv3ScriptsGet_sale_set_idCdc, + "../../../transactions/marketV3/start_sale.cdc": TransactionsMarketv3Start_saleCdc, + "../../../transactions/marketV3/stop_sale.cdc": TransactionsMarketv3Stop_saleCdc, + "../../../transactions/marketV3/upgrade_sale.cdc": TransactionsMarketv3Upgrade_saleCdc, + "../../../transactions/scripts/collections/borrow_nft_safe.cdc": TransactionsScriptsCollectionsBorrow_nft_safeCdc, + "../../../transactions/scripts/collections/get_collection_ids.cdc": TransactionsScriptsCollectionsGet_collection_idsCdc, + "../../../transactions/scripts/collections/get_id_in_Collection.cdc": TransactionsScriptsCollectionsGet_id_in_collectionCdc, + "../../../transactions/scripts/collections/get_locked_nfts_length.cdc": TransactionsScriptsCollectionsGet_locked_nfts_lengthCdc, + "../../../transactions/scripts/collections/get_metadata.cdc": TransactionsScriptsCollectionsGet_metadataCdc, + "../../../transactions/scripts/collections/get_metadata_field.cdc": TransactionsScriptsCollectionsGet_metadata_fieldCdc, + "../../../transactions/scripts/collections/get_moment_isLocked.cdc": TransactionsScriptsCollectionsGet_moment_islockedCdc, + "../../../transactions/scripts/collections/get_moment_lockExpiry.cdc": TransactionsScriptsCollectionsGet_moment_lockexpiryCdc, + "../../../transactions/scripts/collections/get_moment_playID.cdc": TransactionsScriptsCollectionsGet_moment_playidCdc, + "../../../transactions/scripts/collections/get_moment_serialNum.cdc": TransactionsScriptsCollectionsGet_moment_serialnumCdc, + "../../../transactions/scripts/collections/get_moment_series.cdc": TransactionsScriptsCollectionsGet_moment_seriesCdc, + "../../../transactions/scripts/collections/get_moment_setID.cdc": TransactionsScriptsCollectionsGet_moment_setidCdc, + "../../../transactions/scripts/collections/get_moment_setName.cdc": TransactionsScriptsCollectionsGet_moment_setnameCdc, + "../../../transactions/scripts/collections/get_setplays_are_owned.cdc": TransactionsScriptsCollectionsGet_setplays_are_ownedCdc, + "../../../transactions/scripts/get_currentSeries.cdc": TransactionsScriptsGet_currentseriesCdc, + "../../../transactions/scripts/get_nft_metadata.cdc": TransactionsScriptsGet_nft_metadataCdc, + "../../../transactions/scripts/get_topshot_metadata.cdc": TransactionsScriptsGet_topshot_metadataCdc, + "../../../transactions/scripts/get_totalSupply.cdc": TransactionsScriptsGet_totalsupplyCdc, + "../../../transactions/scripts/plays/get_all_plays.cdc": TransactionsScriptsPlaysGet_all_playsCdc, + "../../../transactions/scripts/plays/get_nextPlayID.cdc": TransactionsScriptsPlaysGet_nextplayidCdc, + "../../../transactions/scripts/plays/get_play_metadata.cdc": TransactionsScriptsPlaysGet_play_metadataCdc, + "../../../transactions/scripts/plays/get_play_metadata_field.cdc": TransactionsScriptsPlaysGet_play_metadata_fieldCdc, + "../../../transactions/scripts/sets/get_edition_retired.cdc": TransactionsScriptsSetsGet_edition_retiredCdc, + "../../../transactions/scripts/sets/get_nextSetID.cdc": TransactionsScriptsSetsGet_nextsetidCdc, + "../../../transactions/scripts/sets/get_numMoments_in_edition.cdc": TransactionsScriptsSetsGet_nummoments_in_editionCdc, + "../../../transactions/scripts/sets/get_plays_in_set.cdc": TransactionsScriptsSetsGet_plays_in_setCdc, + "../../../transactions/scripts/sets/get_setIDs_by_name.cdc": TransactionsScriptsSetsGet_setids_by_nameCdc, + "../../../transactions/scripts/sets/get_setName.cdc": TransactionsScriptsSetsGet_setnameCdc, + "../../../transactions/scripts/sets/get_setSeries.cdc": TransactionsScriptsSetsGet_setseriesCdc, + "../../../transactions/scripts/sets/get_set_data.cdc": TransactionsScriptsSetsGet_set_dataCdc, + "../../../transactions/scripts/sets/get_set_locked.cdc": TransactionsScriptsSetsGet_set_lockedCdc, + "../../../transactions/scripts/subeditions/get_all_subeditions.cdc": TransactionsScriptsSubeditionsGet_all_subeditionsCdc, + "../../../transactions/scripts/subeditions/get_nextSubeditionID.cdc": TransactionsScriptsSubeditionsGet_nextsubeditionidCdc, + "../../../transactions/scripts/subeditions/get_nft_subedition.cdc": TransactionsScriptsSubeditionsGet_nft_subeditionCdc, + "../../../transactions/scripts/subeditions/get_subedition_by_id.cdc": TransactionsScriptsSubeditionsGet_subedition_by_idCdc, + "../../../transactions/scripts/users/is_account_all_set_up.cdc": TransactionsScriptsUsersIs_account_all_set_upCdc, + "../../../transactions/shardedCollection/batch_from_sharded.cdc": TransactionsShardedcollectionBatch_from_shardedCdc, + "../../../transactions/shardedCollection/setup_sharded_collection.cdc": TransactionsShardedcollectionSetup_sharded_collectionCdc, + "../../../transactions/shardedCollection/transfer_from_sharded.cdc": TransactionsShardedcollectionTransfer_from_shardedCdc, + "../../../transactions/user/batch_lock_moments.cdc": TransactionsUserBatch_lock_momentsCdc, + "../../../transactions/user/batch_transfer.cdc": TransactionsUserBatch_transferCdc, + "../../../transactions/user/batch_unlock_moments.cdc": TransactionsUserBatch_unlock_momentsCdc, + "../../../transactions/user/destroy_moments.cdc": TransactionsUserDestroy_momentsCdc, + "../../../transactions/user/destroy_moments_v2.cdc": TransactionsUserDestroy_moments_v2Cdc, + "../../../transactions/user/lock_fake_nft.cdc": TransactionsUserLock_fake_nftCdc, + "../../../transactions/user/lock_moment.cdc": TransactionsUserLock_momentCdc, + "../../../transactions/user/setup_collection.cdc": TransactionsUserSetup_collectionCdc, + "../../../transactions/user/setup_up_all_collections.cdc": TransactionsUserSetup_up_all_collectionsCdc, + "../../../transactions/user/transfer_moment.cdc": TransactionsUserTransfer_momentCdc, + "../../../transactions/user/transfer_moment_v3_sale.cdc": TransactionsUserTransfer_moment_v3_saleCdc, + "../../../transactions/user/unlock_moment.cdc": TransactionsUserUnlock_momentCdc, } // AssetDebug is true if the assets were built with the debug flag enabled. @@ -2806,6 +2828,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "get_fast_break.cdc": {TransactionsFastbreakScriptsGet_fast_breakCdc, map[string]*bintree{}}, "get_fast_break_stats.cdc": {TransactionsFastbreakScriptsGet_fast_break_statsCdc, map[string]*bintree{}}, "get_player_score.cdc": {TransactionsFastbreakScriptsGet_player_scoreCdc, map[string]*bintree{}}, + "get_player_scores_from_tokens.cdc": {TransactionsFastbreakScriptsGet_player_scores_from_tokensCdc, map[string]*bintree{}}, "get_token_count.cdc": {TransactionsFastbreakScriptsGet_token_countCdc, map[string]*bintree{}}, }}, }}, diff --git a/transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc b/transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc new file mode 100644 index 0000000..37be8d1 --- /dev/null +++ b/transactions/fastbreak/scripts/get_player_scores_from_tokens.cdc @@ -0,0 +1,24 @@ + + +import FastBreakV1 from 0xFASTBREAKADDRESS + +pub fun main(addr: Address): [{String: UInt64}] { + + let recipientAccount = getAccount(addr) + let collectionRef = recipientAccount.getCapability(FastBreakV1.CollectionPublicPath).borrow<&{FastBreakV1.FastBreakNFTCollectionPublic}>() + ?? panic("Could Not borrow Reference") + + var arrNFTs = collectionRef.getIDs() + + var scores: [{String: UInt64}] = [] + + for nftID in arrNFTs { + let nft = collectionRef.borrowFastBreakNFT(id: nftID) ?? + panic("Couldn't borrow FastBreakNFT") + + scores.append({nft.fastBreakGameID: nft.points()}) + } + + return scores +} +