diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index 71fc0d7e..cfda0a42 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -85,7 +85,7 @@ // ../../../transactions/scripts/subeditions/get_nft_subedition.cdc (228B) // ../../../transactions/scripts/subeditions/get_subedition_by_id.cdc (436B) // ../../../transactions/shardedCollection/batch_from_sharded.cdc (1.086kB) -// ../../../transactions/shardedCollection/setup_sharded_collection.cdc (1.271kB) +// ../../../transactions/shardedCollection/setup_sharded_collection.cdc (1.375kB) // ../../../transactions/shardedCollection/transfer_from_sharded.cdc (1.042kB) // ../../../transactions/user/batch_lock_moments.cdc (852B) // ../../../transactions/user/batch_transfer.cdc (1.111kB) @@ -93,7 +93,7 @@ // ../../../transactions/user/destroy_moments.cdc (1.23kB) // ../../../transactions/user/lock_fake_nft.cdc (851B) // ../../../transactions/user/lock_moment.cdc (785B) -// ../../../transactions/user/setup_account.cdc (990B) +// ../../../transactions/user/setup_account.cdc (1.018kB) // ../../../transactions/user/transfer_moment.cdc (1.509kB) // ../../../transactions/user/transfer_moment_v3_sale.cdc (1.529kB) // ../../../transactions/user/unlock_moment.cdc (525B) @@ -1866,7 +1866,7 @@ func TransactionsShardedcollectionBatch_from_shardedCdc() (*asset, error) { return a, nil } -var _TransactionsShardedcollectionSetup_sharded_collectionCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x52\x4d\x6b\xdb\x40\x14\xbc\xeb\x57\x4c\x73\x08\x0a\x24\x56\x0f\xa5\x87\xe0\x04\xdc\xda\x90\x1e\x4a\x4c\xe4\xfe\x80\xe7\xf5\x53\xb4\x58\xbb\x2b\x76\x9f\x9a\x98\xe0\xff\x5e\x56\xf2\x87\x64\x63\x68\x2f\xdd\x83\x10\xcb\xbc\x99\xd9\x99\xa7\x4d\xed\xbc\x60\xe1\xea\xbc\x74\x82\xc2\x3b\x83\xcf\xef\x8b\xe7\x79\xfe\xf4\xbc\x98\x4c\xa7\x2f\xb3\x3c\x4f\x86\xa0\xbc\x24\xbf\xe2\xd5\x77\x57\x55\xac\x44\x3b\xbb\x9f\xca\x9f\x26\x2f\xd3\xd9\x74\x3f\x95\x64\x19\x16\xa5\x0e\x10\x4f\x36\x50\x07\x55\x9e\x49\x38\x80\xec\x0a\x41\x9c\x6f\x7f\xc1\xa6\x96\x0d\x8c\x33\x6c\x05\xea\x48\x1c\x29\x22\xf2\x30\x85\xba\x59\x56\x5a\x41\x51\x4d\x4b\x5d\x69\xd9\xa0\x70\x1e\x5a\x46\x11\xfa\xb3\x25\x08\x20\xcf\x08\x75\xa5\x05\xda\x8a\x03\xc1\x36\x66\xc9\x1e\xae\xc0\xb2\x51\x6b\x96\x70\xf0\x66\x68\xcd\xa1\x75\x42\xaf\x0c\xe3\x3c\x83\x8b\x42\x2b\x1d\x9d\x44\xe9\x9a\x7d\xe1\xbc\x21\x2b\xed\x83\xe6\xe4\xc9\xb0\xb0\x8f\x14\xf1\xc2\x36\xe6\x5b\xc7\x79\x8f\x45\xc9\xe7\x52\x10\xb7\x33\xb3\xb7\x17\x4d\x25\x49\x2f\x95\xb4\x4f\xf2\xeb\x87\x95\xaf\x5f\x6e\xf0\x91\x24\x00\x50\x7b\xae\xc9\x73\x4a\x4a\xc9\x3d\x26\x8d\x94\x13\xa5\x5c\x63\xe5\x80\x88\x47\x17\x88\x80\xd1\xd2\x79\xef\xde\xc6\xd7\x97\xaa\x1a\x9d\xdd\x3c\xa6\xb1\xbd\x7b\x64\xbb\x0c\xb2\x1d\xa2\x33\x7b\xc4\xdd\xe0\xe1\x01\x56\x57\x7d\xd5\x78\x2a\x1e\x34\x36\xbe\xbb\xb8\x26\xa3\xae\xc5\x59\xec\xfa\x78\x3b\x78\xfb\xf1\xff\x66\x20\x12\x83\x6f\x24\x16\xc9\x6f\xe8\x2d\x9e\xb6\xfb\xea\x06\xf0\x36\x8a\x40\xbf\x39\x1d\xdf\x1d\xbd\xdd\x42\xdc\x5f\xbc\x33\x39\x55\xee\x6c\x5f\xdc\x3d\x29\xb9\x17\xc0\x60\x78\xdf\x4a\xa5\xed\x7a\x7c\xfd\xb1\x0b\x66\x74\x2a\x39\x6f\x79\xb7\x8f\x69\xd6\x29\x64\xa7\x80\x5b\x08\xf9\x57\x96\x7f\x6a\x09\x27\xa7\x75\xd2\xd8\xe8\xe5\xa2\xd0\x30\xf5\x6d\x72\x9e\xea\x7f\x7c\xca\x41\x7c\x0b\xae\x02\x9f\x2e\x5e\x4d\x56\xab\xf4\x6a\x37\xdd\xdf\x0a\xaa\x3c\xd3\x6a\x03\x7e\xd7\x41\xc2\xa7\xab\x1e\x53\xd2\x7d\xb7\x7f\x02\x00\x00\xff\xff\xc6\x90\x5b\xe5\xf7\x04\x00\x00" +var _TransactionsShardedcollectionSetup_sharded_collectionCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x54\x4d\x6f\xda\x40\x10\xbd\xfb\x57\x4c\x73\x88\x8c\x44\xec\x1e\xaa\x1e\x10\x89\x44\x0b\x51\x7a\x68\x82\xb0\xfb\x03\xd6\xcb\x18\xaf\xd8\x0f\x6b\x77\x9c\x04\x45\xfc\xf7\x6a\x6d\x63\x6c\x23\xa4\xf6\x92\x3d\xa0\xd5\xea\xcd\x9b\x37\xef\x0d\x16\xaa\x34\x96\x20\x35\x65\x52\x18\x82\xdc\x1a\x05\x5f\xdf\xd3\x97\x75\xf2\xf4\x92\x2e\x96\xcb\xcd\x2a\x49\x82\x21\x28\x29\x98\xdd\xe2\xf6\xa7\x91\x12\x39\x09\xa3\x4f\x55\xc9\xd3\x62\xb3\x5c\x2d\x47\x55\xcf\x46\x3f\x56\x7a\x27\x32\x89\xa9\xd9\x63\x87\x7e\x7e\xec\xf8\x83\x38\x86\xb4\x10\x0e\xc8\x32\xed\x58\x43\xca\x2d\x32\x42\x07\x4c\x6f\xc1\x91\xb1\xf5\x15\x50\x95\x74\x00\x65\x14\x6a\x02\x7e\x96\xe0\x29\x3c\xb2\xab\x82\xb2\xca\xa4\xe0\xc0\x59\xc9\x32\x21\x05\x1d\x20\x37\x16\x04\x45\x1e\xfa\xbb\x26\x70\xc0\x2c\x82\x2b\xa5\x20\x10\x9a\x0c\x30\xd0\x95\xca\xd0\x82\xc9\x21\xab\xf8\x1e\xc9\x75\xda\x14\xdb\xa3\xab\x95\xb0\x1d\x82\x32\x16\x01\xf3\x5c\x70\xe1\x95\xf8\xd6\x25\xda\xdc\x58\xc5\x34\xd5\x03\xad\x99\x65\x0a\x09\xad\xa7\xf0\x0f\xba\x52\x3f\x1a\xce\x19\xa4\x05\x5e\xb6\x02\x32\xad\x98\x93\x3c\x2f\x2a\x08\x7a\xae\x84\x7d\x92\x3f\xbf\x34\x7d\xff\x36\x81\x8f\x20\x00\x00\x28\x2d\x96\xcc\x62\xc8\x38\xa7\x19\x2c\x2a\x2a\x16\x9c\x9b\x4a\x53\x87\xf0\x47\xe4\xe0\x01\x51\x66\xac\x35\x6f\xf3\xdb\x6b\xa1\x46\x17\x2f\x0f\xa1\x4f\x6e\x06\x71\xeb\x41\xdc\x22\x1a\xb1\x67\xdc\x04\xee\xef\x41\x0b\xd9\xef\xea\x8f\xc4\x41\x62\xf3\xbb\xab\x0b\x15\x35\x29\xae\x7c\xd6\xe7\xd7\xc1\xec\xe7\xfb\x64\xd0\xc4\x1b\x5f\x91\x0f\x12\xdf\xa0\xb7\xa2\x42\x9f\xa2\x1b\xc0\x6b\x2b\x1c\x7b\xc5\x70\x7e\x77\xd6\x36\x05\x32\xff\x30\x67\x30\xee\xdc\xc8\xbe\xba\x7b\x54\x60\xcf\x80\x41\xf1\x29\x15\x29\xf4\x7e\x7e\xfb\xd1\x1a\x13\x8d\x5b\xae\x6b\xde\xe3\x43\x18\x37\x1d\xe2\x31\x60\x0a\xc4\xec\x0e\xe9\xbf\x52\x82\xd1\xa9\x95\x54\xda\x6b\xb9\xda\x68\xe8\xfa\x31\xb8\x74\xb5\x1d\x65\xfc\xf7\x8f\x36\xc8\x51\xbc\xa2\x9d\x5e\x7c\x19\xa2\xf1\xa0\x53\xf8\x0c\x23\x3a\xe9\x47\x40\xe9\x70\xbc\xb6\x25\xd3\x82\x87\x37\x6d\x75\x7f\xa7\x98\xb4\xc8\xb6\x07\xc0\x77\xe1\xc8\x7d\xb9\xe9\x31\x05\xcd\xef\xf1\x6f\x00\x00\x00\xff\xff\xef\x9c\x00\x24\x5f\x05\x00\x00" func TransactionsShardedcollectionSetup_sharded_collectionCdcBytes() ([]byte, error) { return bindataRead( @@ -1882,7 +1882,7 @@ func TransactionsShardedcollectionSetup_sharded_collectionCdc() (*asset, error) } info := bindataFileInfo{name: "../../../transactions/shardedCollection/setup_sharded_collection.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5, 0x5f, 0x46, 0xfe, 0x70, 0x79, 0xee, 0x71, 0x85, 0xf3, 0xa9, 0x79, 0x5f, 0x9b, 0xd, 0x8c, 0x3b, 0xc5, 0x50, 0xed, 0xea, 0xda, 0xe2, 0x6b, 0xb1, 0xec, 0xc2, 0x1, 0x5, 0xe7, 0x15, 0x96}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa4, 0x76, 0x48, 0xc2, 0x89, 0x79, 0xef, 0x72, 0xd8, 0x6, 0x9d, 0xc5, 0xaf, 0x74, 0x9e, 0x1e, 0x11, 0x21, 0xc3, 0x82, 0x47, 0x5b, 0x4, 0xb1, 0x14, 0xbc, 0x1, 0x76, 0xb4, 0xba, 0x3d, 0xaf}} return a, nil } @@ -2026,7 +2026,7 @@ func TransactionsUserLock_momentCdc() (*asset, error) { return a, nil } -var _TransactionsUserSetup_accountCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x93\x4f\x6f\xe2\x30\x10\xc5\xef\xf9\x14\x6f\x2f\x15\x48\x94\xec\xb9\xa2\xd5\x46\x0b\x68\xf7\x40\x8b\x4a\xd4\x3d\x0f\x66\x00\x0b\x63\x47\xf6\xa4\x14\x55\x7c\xf7\x95\x03\x21\xfc\x6b\x39\x70\xc9\xef\x8d\x7f\xf3\x2c\xeb\x75\xe1\xbc\xe0\xd9\xd9\x61\x69\x17\x7a\x6a\x38\x77\x2b\xb6\x98\x7b\xb7\xc6\xcf\x8f\xe7\x61\x9e\xf5\xfb\xaf\x83\xc9\x24\x39\x90\xb9\x2b\x26\x4b\x27\x35\x90\xbf\x8c\x27\x7f\x5e\x2e\xa1\x11\x0b\xcd\x48\xe8\x4d\xf3\x26\xd4\xe8\x68\x90\x67\xfd\x2c\xcf\xde\xfe\x0e\xfe\x4d\xea\x40\x92\xa6\xc8\x97\x3a\x40\x3c\xd9\x40\x4a\xb4\xb3\x08\x2c\x01\x65\x01\xb2\x20\xa5\x5c\x69\x05\xe2\x50\x06\x8e\xa7\x23\x1e\x1f\x63\xd3\x2d\x82\x38\xaf\xed\x22\x82\xbc\x2e\x64\x8b\xb5\x5b\xb3\x15\x28\x67\x0c\xef\x67\x91\x9d\x41\x79\x26\xd1\x76\x11\x53\x84\xa2\x9c\x1a\xad\xa0\xa8\xa0\xa9\x36\x5a\xb6\x98\x3b\x0f\x2d\x49\x72\xea\xf0\x99\x24\x00\x50\x78\x2e\xc8\x73\x8b\x94\x92\x07\x64\xa5\x2c\xb3\xbd\x51\xbb\x26\xe2\x2f\x4d\x31\xd4\x3e\x48\x07\x6a\xc9\x6a\x15\x6d\x03\x33\xf4\x1c\x74\x4b\xc9\x78\xa6\xd9\x16\xfc\xa1\x83\x84\xe3\x90\x48\x2b\x25\xdd\xa9\xf3\xde\x6d\x7a\x77\x87\xa6\xbb\xbf\x8f\xc9\xa7\x56\xac\xf2\x01\x69\xdc\x9b\x16\x9c\x8e\xaa\xd9\x0d\xd0\xc6\xe3\x23\xac\x36\xa7\x6e\x07\xbf\xaa\x03\x06\xc1\xf2\xe6\x78\x89\x4d\xf2\x0c\x37\x7c\xe6\xdb\xbb\xaf\x03\xdd\xfd\x94\x41\xec\xba\xc9\xb6\xda\xa0\xf0\x03\xbf\xae\x85\xaf\x2c\xc6\xa5\x40\x96\x5c\x49\x34\x18\xb4\xc5\x61\xa5\xb3\x40\x55\x47\xa0\x77\x6e\xf5\xee\x1b\x9f\x0e\xc4\x7d\xd7\xc1\xd7\xab\xdf\xbe\xf9\xe8\xa3\x6e\x17\x51\x09\x18\x6d\x57\xbd\xbb\xcf\xcb\x27\x72\xb2\xe6\xb8\x9a\xdb\x39\xb6\x74\xa9\x54\x7f\x3f\x7b\x16\xdd\x57\x0e\xce\xbc\xb3\x6f\xb8\xdd\x53\x2b\xdd\x3b\x5e\x6d\xd5\x81\x90\x5f\xb0\x7c\xbb\x78\xad\xbd\x4b\xf6\xff\xbb\xff\x01\x00\x00\xff\xff\x19\x1f\x8d\xb2\xde\x03\x00\x00" +var _TransactionsUserSetup_accountCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\x93\x4f\x6f\xe2\x30\x10\xc5\xef\xf9\x14\x6f\x2f\x15\x48\x94\xec\xb9\xa2\xd5\x46\x0b\x68\xf7\x40\x8b\x20\xea\x9e\x07\x33\x80\x45\xb0\x23\x7b\x02\x45\x15\xdf\x7d\xe5\x84\x10\xfe\xb5\x1c\xb8\xe4\xf7\xc6\xbf\x79\x96\xf5\x26\xb7\x4e\xf0\x6a\xcd\xb0\x30\x4b\x3d\xcb\x38\xb5\x6b\x36\x58\x38\xbb\xc1\xcf\x8f\xd7\x61\x9a\xf4\xfb\x93\xc1\x74\x1a\x1d\xc9\xd4\xe6\xd3\x95\x95\x1a\x48\xdf\xc6\xd3\x3f\x6f\xd7\xd0\x88\x85\xe6\x24\xf4\xae\x79\xe7\x6b\x74\x34\x48\x93\x7e\x92\x26\xef\x7f\x07\xff\xa6\x75\x20\x8a\x63\xa4\x2b\xed\x21\x8e\x8c\x27\x25\xda\x1a\x78\x16\x8f\x22\x07\x19\x90\x52\xb6\x30\x02\xb1\x28\x3c\x87\xd3\x11\x8e\x0f\xb1\xd9\x1e\x5e\xac\xd3\x66\x19\x40\xde\xe4\xb2\xc7\xc6\x6e\xd8\x08\x94\xcd\x32\xae\x66\x91\x99\x43\x39\x26\xd1\x66\x19\x52\x84\xbc\x98\x65\x5a\x41\x51\x4e\x33\x9d\x69\xd9\x63\x61\x1d\xb4\x44\xd1\xb9\xc3\x67\x14\x01\x40\xee\x38\x27\xc7\x2d\x52\x4a\x9e\x90\x14\xb2\x4a\x2a\xa3\x76\x4d\x84\x5f\x1c\x63\xa8\x9d\x97\x0e\xd4\x8a\xd5\x3a\xd8\x7a\x66\xe8\x05\xe8\x9e\x52\xe6\x98\xe6\x7b\xf0\x87\xf6\xe2\x4f\x43\x02\xad\x94\x74\x67\xd6\x39\xbb\xeb\x3d\x1c\x9b\xee\xfe\x3e\x25\x5f\x5a\xa1\xca\x27\xc4\x61\x6f\x5a\x72\x3c\x2a\x67\x37\x40\x1b\xcf\xcf\x30\x3a\x3b\x77\x3b\xfa\x95\x1d\x30\x08\x86\x77\xa7\x4b\x6c\x92\x17\x78\xc6\x17\xbe\xbd\xc7\x3a\xd0\xad\xa6\x0c\x42\xd7\x4d\xb6\xd5\x06\xf9\x1f\xf8\x75\x2b\x7c\x63\x31\x2e\x04\xb2\xe2\x52\xa2\xc1\xa0\x0d\x8e\x2b\x5d\x04\xca\x3a\x3c\x6d\xb9\xd5\x7b\x6c\x7c\x3a\x10\xfb\x5d\x07\x5f\xaf\x7e\xff\xe6\x83\x8f\xba\x5f\x44\x29\x90\x69\xb3\xee\x3d\x7c\x5e\x3f\x91\xee\x84\x15\xeb\x2d\xbb\xce\xcd\xeb\x39\x6b\x60\x5c\x1e\xd9\x39\x15\x78\x6d\x5b\x7f\xbf\x78\x31\xdd\x09\x7b\x9b\x6d\xd9\x35\xdc\xe1\xa5\x15\x57\xfa\x37\x0b\x77\x20\xe4\x96\x2c\xdf\x76\x52\x6f\x74\x88\xaa\xff\x43\xf4\x3f\x00\x00\xff\xff\xca\xab\x7b\xde\xfa\x03\x00\x00" func TransactionsUserSetup_accountCdcBytes() ([]byte, error) { return bindataRead( @@ -2042,7 +2042,7 @@ func TransactionsUserSetup_accountCdc() (*asset, error) { } info := bindataFileInfo{name: "../../../transactions/user/setup_account.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x95, 0xbe, 0x8e, 0x76, 0x92, 0x9, 0x74, 0x7e, 0x18, 0x73, 0x24, 0xc7, 0x3a, 0x93, 0x40, 0xd3, 0x96, 0x4c, 0x9a, 0x19, 0xe4, 0xf8, 0x72, 0x67, 0x2d, 0xfa, 0x15, 0x61, 0xd3, 0x45, 0x73, 0x8a}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4a, 0x4e, 0x4b, 0xc8, 0xb3, 0xa1, 0xae, 0x1b, 0x29, 0xe2, 0x54, 0x10, 0x21, 0x3, 0x84, 0x7d, 0xa8, 0x9, 0x4b, 0x80, 0x34, 0x48, 0x87, 0x60, 0x72, 0xc0, 0x98, 0xe7, 0xbc, 0x1, 0x94, 0xd8}} return a, nil } diff --git a/transactions/shardedCollection/setup_sharded_collection.cdc b/transactions/shardedCollection/setup_sharded_collection.cdc index e11c29f4..8ace9cda 100644 --- a/transactions/shardedCollection/setup_sharded_collection.cdc +++ b/transactions/shardedCollection/setup_sharded_collection.cdc @@ -1,5 +1,6 @@ import TopShot from 0xTOPSHOTADDRESS import TopShotShardedCollection from 0xSHARDEDADDRESS +import NonFungibleToken from 0xNFTADDRESS // This transaction creates and stores an empty moment collection // and creates a public capability for it. @@ -25,7 +26,7 @@ transaction(numBuckets: UInt64) { acct.unlink(/public/MomentCollection) } - acct.link<&{TopShot.MomentCollectionPublic}>(/public/MomentCollection, target: /storage/ShardedMomentCollection) + acct.link<&{NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, TopShot.MomentCollectionPublic}>(/public/MomentCollection, target: /storage/ShardedMomentCollection) } else { panic("Sharded Collection already exists!") diff --git a/transactions/user/setup_account.cdc b/transactions/user/setup_account.cdc index 1eb22815..d5a62a2d 100644 --- a/transactions/user/setup_account.cdc +++ b/transactions/user/setup_account.cdc @@ -20,7 +20,7 @@ transaction { acct.save(<-collection, to: /storage/MomentCollection) // create a public capability for the collection - acct.link<&{NonFungibleToken.CollectionPublic, TopShot.MomentCollectionPublic, MetadataViews.ResolverCollection}>(/public/MomentCollection, target: /storage/MomentCollection) + acct.link<&{NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, TopShot.MomentCollectionPublic, MetadataViews.ResolverCollection}>(/public/MomentCollection, target: /storage/MomentCollection) } } -} \ No newline at end of file +}