From e7a09d9f4aee9962c87599759bfd78f909180f57 Mon Sep 17 00:00:00 2001 From: Josh Hannan Date: Tue, 9 Jul 2024 14:11:23 -0500 Subject: [PATCH] add flix and test generic transactions --- contracts/NonFungibleToken.cdc | 20 +- contracts/test/MaliciousNFT.cdc | 367 ++++++++++++++++++ flow.json | 6 + lib/go/contracts/internal/assets/assets.go | 6 +- lib/go/templates/internal/assets/assets.go | 41 +- lib/go/templates/transaction_templates.go | 37 +- tests/example_nft_test.cdc | 40 ++ .../generic_transfer_with_address.cdc | 32 ++ ...generic_transfer_with_address_and_type.cdc | 78 ++++ transactions/generic_transfer_with_paths.cdc | 14 + transactions/setup_account_from_address.cdc | 16 +- 11 files changed, 628 insertions(+), 29 deletions(-) create mode 100644 contracts/test/MaliciousNFT.cdc create mode 100644 transactions/generic_transfer_with_address_and_type.cdc diff --git a/contracts/NonFungibleToken.cdc b/contracts/NonFungibleToken.cdc index b99b13b..dfa425a 100644 --- a/contracts/NonFungibleToken.cdc +++ b/contracts/NonFungibleToken.cdc @@ -49,8 +49,8 @@ Collection to complete the transfer. import "ViewResolver" -/// The main NFT contract. Other NFT contracts will -/// import and implement the interfaces defined in this contract +/// The main NFT contract interface. Other NFT contracts will import +/// and implement this interface as well the interfaces defined in this interface /// access(all) contract interface NonFungibleToken: ViewResolver { @@ -62,7 +62,7 @@ access(all) contract interface NonFungibleToken: ViewResolver { /// Event that contracts should emit when the metadata of an NFT is updated /// It can only be emitted by calling the `emitNFTUpdated` function - /// with an `Updatable` entitled reference to the NFT that was updated + /// with an `Update` entitled reference to the NFT that was updated /// The entitlement prevents spammers from calling this from other users' collections /// because only code within a collection or that has special entitled access /// to the collections methods will be able to get the entitled reference @@ -106,7 +106,9 @@ access(all) contract interface NonFungibleToken: ViewResolver { /// createEmptyCollection creates an empty Collection that is able to store the NFT /// and returns it to the caller so that they can own NFTs + /// /// @return A an empty collection that can store this NFT + /// access(all) fun createEmptyCollection(): @{Collection} { post { result.getLength() == 0: "The created collection must be empty!" @@ -115,7 +117,9 @@ access(all) contract interface NonFungibleToken: ViewResolver { } /// Gets all the NFTs that this NFT directly owns + /// /// @return A dictionary of all subNFTS keyed by type + /// access(all) view fun getAvailableSubNFTS(): {Type: [UInt64]} { return {} } @@ -146,7 +150,10 @@ access(all) contract interface NonFungibleToken: ViewResolver { /// withdraw removes an NFT from the collection and moves it to the caller /// It does not specify whether the ID is UUID or not + /// /// @param withdrawID: The id of the NFT to withdraw from the collection + /// @return @{NFT}: The NFT that was withdrawn + /// access(Withdraw) fun withdraw(withdrawID: UInt64): @{NFT} { post { result.id == withdrawID: "The ID of the withdrawn token must be the same as the requested ID" @@ -184,11 +191,14 @@ access(all) contract interface NonFungibleToken: ViewResolver { access(all) view fun borrowNFT(_ id: UInt64): &{NFT}? } - /// Requirement for the concrete resource type - /// to be declared in the implementing contract + /// Requirement for the concrete resource type in the implementing contract + /// to implement this interface. Since this interface inherits from + /// all the other necessary interfaces, resources that implement it do not + /// also need to include the other interfaces in their conformance lists /// access(all) resource interface Collection: Provider, Receiver, CollectionPublic, ViewResolver.ResolverCollection { + /// Field that contains all the NFTs that the collection owns access(all) var ownedNFTs: @{UInt64: {NonFungibleToken.NFT}} /// deposit takes a NFT as an argument and stores it in the collection diff --git a/contracts/test/MaliciousNFT.cdc b/contracts/test/MaliciousNFT.cdc new file mode 100644 index 0000000..8fb5a71 --- /dev/null +++ b/contracts/test/MaliciousNFT.cdc @@ -0,0 +1,367 @@ +/* +* +* This is an example implementation of a Flow Non-Fungible Token +* using the V2 standard. +* It is not part of the official standard but it assumed to be +* similar to how many NFTs would implement the core functionality. +* +* This contract does not implement any sophisticated classification +* system for its NFTs. It defines a simple NFT with minimal metadata. +* +*/ + +import "NonFungibleToken" +import "ViewResolver" +import "MetadataViews" +import "ExampleNFT" + +access(all) contract MaliciousNFT: NonFungibleToken { + + /// Standard Paths + access(all) let CollectionStoragePath: StoragePath + access(all) let CollectionPublicPath: PublicPath + + /// Path where the minter should be stored + /// The standard paths for the collection are stored in the collection resource type + access(all) let MinterStoragePath: StoragePath + + /// We choose the name NFT here, but this type can have any name now + /// because the interface does not require it to have a specific name any more + access(all) resource NFT: NonFungibleToken.NFT { + + access(all) let id: UInt64 + + /// From the Display metadata view + access(all) let name: String + access(all) let description: String + access(all) let thumbnail: String + + /// For the Royalties metadata view + access(self) let royalties: [MetadataViews.Royalty] + + /// Generic dictionary of traits the NFT has + access(self) let metadata: {String: AnyStruct} + + init( + name: String, + description: String, + thumbnail: String, + royalties: [MetadataViews.Royalty], + metadata: {String: AnyStruct}, + ) { + self.id = self.uuid + self.name = name + self.description = description + self.thumbnail = thumbnail + self.royalties = royalties + self.metadata = metadata + } + + /// createEmptyCollection creates an empty Collection + /// and returns it to the caller so that they can own NFTs + /// @{NonFungibleToken.Collection} + access(all) fun createEmptyCollection(): @{NonFungibleToken.Collection} { + return <-MaliciousNFT.createEmptyCollection(nftType: Type<@MaliciousNFT.NFT>()) + } + + access(all) view fun getViews(): [Type] { + return [ + Type(), + Type(), + Type(), + Type(), + Type(), + Type(), + Type(), + Type(), + Type() + ] + } + + access(all) fun resolveView(_ view: Type): AnyStruct? { + switch view { + case Type(): + return MetadataViews.Display( + name: self.name, + description: self.description, + thumbnail: MetadataViews.HTTPFile( + url: self.thumbnail + ) + ) + case Type(): + // There is no max number of NFTs that can be minted from this contract + // so the max edition field value is set to nil + let editionInfo = MetadataViews.Edition(name: "Example NFT Edition", number: self.id, max: nil) + let editionList: [MetadataViews.Edition] = [editionInfo] + return MetadataViews.Editions( + editionList + ) + case Type(): + return MetadataViews.Serial( + self.id + ) + case Type(): + return MetadataViews.Royalties( + self.royalties + ) + case Type(): + return MetadataViews.ExternalURL("https://example-nft.onflow.org/".concat(self.id.toString())) + case Type(): + return MaliciousNFT.resolveContractView(resourceType: Type<@MaliciousNFT.NFT>(), viewType: Type()) + case Type(): + return MaliciousNFT.resolveContractView(resourceType: Type<@MaliciousNFT.NFT>(), viewType: Type()) + case Type(): + // exclude mintedTime and foo to show other uses of Traits + let excludedTraits = ["mintedTime", "foo"] + let traitsView = MetadataViews.dictToTraits(dict: self.metadata, excludedNames: excludedTraits) + + // mintedTime is a unix timestamp, we should mark it with a displayType so platforms know how to show it. + let mintedTimeTrait = MetadataViews.Trait(name: "mintedTime", value: self.metadata["mintedTime"]!, displayType: "Date", rarity: nil) + traitsView.addTrait(mintedTimeTrait) + + // foo is a trait with its own rarity + let fooTraitRarity = MetadataViews.Rarity(score: 10.0, max: 100.0, description: "Common") + let fooTrait = MetadataViews.Trait(name: "foo", value: self.metadata["foo"], displayType: nil, rarity: fooTraitRarity) + traitsView.addTrait(fooTrait) + + return traitsView + case Type(): + // Implementing this view gives the project control over how the bridged NFT is represented as an + // ERC721 when bridged to EVM on Flow via the public infrastructure bridge. + + // Get the contract-level name and symbol values + let contractLevel = MaliciousNFT.resolveContractView( + resourceType: nil, + viewType: Type() + ) as! MetadataViews.EVMBridgedMetadata? + ?? panic("Could not resolve contract-level EVMBridgedMetadata") + // Compose the token-level URI based on a base URI and the token ID, pointing to a JSON file. This + // would be a file you've uploaded and are hosting somewhere - in this case HTTP, but this could be + // IPFS, S3, a data URL containing the JSON directly, etc. + let baseURI = "https://example-nft.onflow.org/token-metadata/" + let uriValue = self.id.toString().concat(".json") + + return MetadataViews.EVMBridgedMetadata( + name: contractLevel.name, + symbol: contractLevel.symbol, + uri: MetadataViews.URI( + baseURI: baseURI, // defining baseURI results in a concatenation of baseURI and value + value: self.id.toString().concat(".json") + ) + ) + + } + return nil + } + } + + // Deprecated: Only here for backward compatibility. + access(all) resource interface MaliciousNFTCollectionPublic {} + + access(all) resource Collection: NonFungibleToken.Collection, MaliciousNFTCollectionPublic { + /// dictionary of NFT conforming tokens + /// NFT is a resource type with an `UInt64` ID field + access(all) var ownedNFTs: @{UInt64: {NonFungibleToken.NFT}} + + init () { + self.ownedNFTs <- {} + } + + /// getSupportedNFTTypes returns a list of NFT types that this receiver accepts + access(all) view fun getSupportedNFTTypes(): {Type: Bool} { + let supportedTypes: {Type: Bool} = {} + supportedTypes[Type<@MaliciousNFT.NFT>()] = true + return supportedTypes + } + + /// Returns whether or not the given type is accepted by the collection + /// A collection that can accept any type should just return true by default + access(all) view fun isSupportedNFTType(type: Type): Bool { + return type == Type<@MaliciousNFT.NFT>() + } + + /// withdraw removes an NFT from the collection and moves it to the caller + access(NonFungibleToken.Withdraw) fun withdraw(withdrawID: UInt64): @{NonFungibleToken.NFT} { + let token <- self.ownedNFTs.remove(key: withdrawID) + ?? panic("Could not withdraw an NFT with the provided ID from the collection") + + return <-token + } + + /// deposit takes a NFT and adds it to the collections dictionary + /// and adds the ID to the id array + access(all) fun deposit(token: @{NonFungibleToken.NFT}) { + let token <- token as! @MaliciousNFT.NFT + let id = token.id + + // add the new token to the dictionary which removes the old one + let oldToken <- self.ownedNFTs[token.id] <- token + + destroy oldToken + + // This code is for testing purposes only + // Do not add to your contract unless you have a specific + // reason to want to emit the NFTUpdated event somewhere + // in your contract + let authTokenRef = (&self.ownedNFTs[id] as auth(NonFungibleToken.Update) &{NonFungibleToken.NFT}?)! + //authTokenRef.updateTransferDate(date: getCurrentBlock().timestamp) + MaliciousNFT.emitNFTUpdated(authTokenRef) + } + + /// getIDs returns an array of the IDs that are in the collection + access(all) view fun getIDs(): [UInt64] { + return self.ownedNFTs.keys + } + + /// Gets the amount of NFTs stored in the collection + access(all) view fun getLength(): Int { + return self.ownedNFTs.length + } + + access(all) view fun borrowNFT(_ id: UInt64): &{NonFungibleToken.NFT}? { + return (&self.ownedNFTs[id] as &{NonFungibleToken.NFT}?) + } + + /// Borrow the view resolver for the specified NFT ID + access(all) view fun borrowViewResolver(id: UInt64): &{ViewResolver.Resolver}? { + if let nft = &self.ownedNFTs[id] as &{NonFungibleToken.NFT}? { + return nft as &{ViewResolver.Resolver} + } + return nil + } + + /// createEmptyCollection creates an empty Collection of the same type + /// and returns it to the caller + /// @return A an empty collection of the same type + access(all) fun createEmptyCollection(): @{NonFungibleToken.Collection} { + return <-MaliciousNFT.createEmptyCollection(nftType: Type<@MaliciousNFT.NFT>()) + } + } + + /// createEmptyCollection creates an empty Collection for the specified NFT type + /// and returns it to the caller so that they can own NFTs + access(all) fun createEmptyCollection(nftType: Type): @{NonFungibleToken.Collection} { + return <- create Collection() + } + + /// Function that returns all the Metadata Views implemented by a Non Fungible Token + /// + /// @return An array of Types defining the implemented views. This value will be used by + /// developers to know which parameter to pass to the resolveView() method. + /// + access(all) view fun getContractViews(resourceType: Type?): [Type] { + return [ + Type(), + Type(), + Type() + ] + } + + /// Function that resolves a metadata view for this contract. + /// + /// @param view: The Type of the desired view. + /// @return A structure representing the requested view. + /// + access(all) fun resolveContractView(resourceType: Type?, viewType: Type): AnyStruct? { + switch viewType { + case Type(): + let collectionData = MetadataViews.NFTCollectionData( + storagePath: /storage/exampleNFTCollection, + publicPath: /public/exampleNFTCollection, + publicCollection: Type<&ExampleNFT.Collection>(), + publicLinkedType: Type<&ExampleNFT.Collection>(), + createEmptyCollectionFunction: (fun(): @{NonFungibleToken.Collection} { + return <-MaliciousNFT.createEmptyCollection(nftType: Type<@MaliciousNFT.NFT>()) + }) + ) + return collectionData + case Type(): + let media = MetadataViews.Media( + file: MetadataViews.HTTPFile( + url: "https://assets.website-files.com/5f6294c0c7a8cdd643b1c820/5f6294c0c7a8cda55cb1c936_Flow_Wordmark.svg" + ), + mediaType: "image/svg+xml" + ) + return MetadataViews.NFTCollectionDisplay( + name: "The Example Collection", + description: "This collection is used as an example to help you develop your next Flow NFT.", + externalURL: MetadataViews.ExternalURL("https://example-nft.onflow.org"), + squareImage: media, + bannerImage: media, + socials: { + "twitter": MetadataViews.ExternalURL("https://twitter.com/flow_blockchain") + } + ) + case Type(): + // Implementing this view gives the project control over how the bridged NFT is represented as an ERC721 + // when bridged to EVM on Flow via the public infrastructure bridge. + + // Compose the contract-level URI. In this case, the contract metadata is located on some HTTP host, + // but it could be IPFS, S3, a data URL containing the JSON directly, etc. + return MetadataViews.EVMBridgedMetadata( + name: "MaliciousNFT", + symbol: "XMPL", + uri: MetadataViews.URI( + baseURI: nil, // setting baseURI as nil sets the given value as the uri field value + value: "https://example-nft.onflow.org/contract-metadata.json" + ) + ) + } + return nil + } + + /// Resource that an admin or something similar would own to be + /// able to mint new NFTs + /// + access(all) resource NFTMinter { + + /// mintNFT mints a new NFT with a new ID + /// and returns it to the calling context + access(all) fun mintNFT( + name: String, + description: String, + thumbnail: String, + royalties: [MetadataViews.Royalty] + ): @MaliciousNFT.NFT { + + let metadata: {String: AnyStruct} = {} + let currentBlock = getCurrentBlock() + metadata["mintedBlock"] = currentBlock.height + metadata["mintedTime"] = currentBlock.timestamp + + // this piece of metadata will be used to show embedding rarity into a trait + metadata["foo"] = "bar" + + // create a new NFT + var newNFT <- create NFT( + name: name, + description: description, + thumbnail: thumbnail, + royalties: royalties, + metadata: metadata, + ) + + return <-newNFT + } + } + + init() { + + // Set the named paths + self.CollectionStoragePath = /storage/maliciousNFTCollection + self.CollectionPublicPath = /public/maliciousNFTCollection + self.MinterStoragePath = /storage/maliciousNFTMinter + + // Create a Collection resource and save it to storage + let collection <- create Collection() + self.account.storage.save(<-collection, to: self.CollectionStoragePath) + + // create a public capability for the collection + let collectionCap = self.account.capabilities.storage.issue<&MaliciousNFT.Collection>(self.CollectionStoragePath) + self.account.capabilities.publish(collectionCap, at: self.CollectionPublicPath) + + // Create a Minter resource and save it to storage + let minter <- create NFTMinter() + self.account.storage.save(<-minter, to: self.MinterStoragePath) + } +} diff --git a/flow.json b/flow.json index 3e5f78f..9afeb87 100644 --- a/flow.json +++ b/flow.json @@ -33,6 +33,12 @@ "testing": "0x0000000000000007" } }, + "MaliciousNFT": { + "source": "./contracts/MaliciousNFT.cdc", + "aliases": { + "testing": "0x0000000000000007" + } + }, "UniversalCollection": { "source": "./contracts/UniversalCollection.cdc", "aliases": { diff --git a/lib/go/contracts/internal/assets/assets.go b/lib/go/contracts/internal/assets/assets.go index 75135f0..a79cd1c 100644 --- a/lib/go/contracts/internal/assets/assets.go +++ b/lib/go/contracts/internal/assets/assets.go @@ -2,7 +2,7 @@ // sources: // ExampleNFT.cdc (16.594kB) // MetadataViews.cdc (28.407kB) -// NonFungibleToken.cdc (11.466kB) +// NonFungibleToken.cdc (11.9kB) // ViewResolver.cdc (2.71kB) package assets @@ -113,7 +113,7 @@ func metadataviewsCdc() (*asset, error) { return a, nil } -var _nonfungibletokenCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\xdd\x8e\x1b\xb7\x92\xbe\xd7\x53\x54\x1c\x60\x3d\x13\x68\x34\x01\x76\xb1\x0b\x08\x08\x1c\xdb\xe3\xc9\xce\x7a\x77\x36\xb0\xe5\xe4\x62\xb1\xb0\xa8\xee\x6a\x35\x63\x36\xd9\x26\xd9\x52\x14\x67\xde\xec\xdc\x9d\x17\x3b\xa8\x22\xd9\x3f\x52\xf7\xfc\x24\xc1\x99\x8b\xc4\x6a\x35\x8b\xc5\xaa\xaf\xaa\xbe\x2a\xea\xf2\x9b\x6f\x66\xb3\xaf\xbf\x86\x55\x89\x70\xad\xcc\x1e\x6e\x8d\xbe\xb8\x6e\xf4\x56\x6e\x14\xc2\xca\x7c\x42\x0d\xce\x0b\x9d\x0b\x9b\xf3\x8b\xeb\x5b\xa3\xd3\xf7\xfc\xf5\x1a\x32\xa3\xbd\x15\x99\x9f\xcd\x48\x8a\xd4\x1e\x6d\x21\x32\x04\x5f\x0a\x0f\x42\xa9\x31\x99\x69\x8d\x03\x57\x9a\x46\xe5\xf4\xa0\x30\xb6\x02\x6f\x16\xb3\x9b\x02\x04\x34\x0e\x2d\xec\x85\xf6\x0e\xbc\x81\x1c\x6b\x65\x0e\x20\x40\xe3\x1e\x6e\xaf\x57\xad\x80\x39\xf8\x12\xa5\x6d\x3f\x27\x79\xb2\xaa\x15\x56\xa8\x3d\x2b\xe5\x0f\x35\x3a\xc8\xb1\x90\x1a\x73\x28\xd1\xe2\x6c\x76\x79\x79\x09\xaf\x69\x95\xdc\x34\xde\x58\x07\x67\xb5\x42\xe1\x10\x44\x9e\xd3\x96\xbe\x94\x0e\x94\x74\x1e\x64\x01\x07\xd3\x84\x2d\xe8\x65\xfc\xea\x7c\xc9\xcb\x2f\xe0\xbf\x8c\x2b\x1b\x01\xff\x29\xb4\x16\x1a\x2e\xa0\xf4\xbe\x76\xcb\xcb\xcb\xad\xf4\x65\xb3\x59\x64\xa6\xba\xfc\x85\x5f\x29\xf9\x8d\xb8\xea\x95\x70\x5e\x0a\x0d\xff\xf3\xf7\xbf\x29\x85\xb6\xb7\xce\xef\xa5\xf7\x68\x79\xa1\x6f\xec\xc6\x28\x3a\x42\x58\x75\x85\x1e\xe1\x7d\x29\xad\xc2\xc3\xc4\x92\x1c\x3d\xfe\xc7\xbf\xa6\x5d\x7e\x11\xd6\x23\xbc\x15\x56\x39\xd4\x13\x2b\xbe\xfd\x35\xbc\xf6\x29\x2e\x7a\xd9\x38\x2f\x35\xbc\x55\x52\xe3\xc4\x12\xc1\xaf\x7c\x2c\x94\xd9\xfb\x43\x5c\xf6\x83\x34\x3b\xa1\xb5\x84\xf7\x42\x67\x25\xfe\x36\xb1\x74\x2b\xcd\x47\xa9\x33\xb3\xd5\xd2\x9b\xf6\x58\x5a\xfe\x06\x6f\x72\xa9\x33\xf9\x69\x62\xdd\x46\x35\xe8\xe4\x96\xed\xc7\xcb\xde\x61\x6d\xc0\x62\x81\x16\x75\x86\xcb\x31\xbb\x1b\x4d\x1a\x5e\xd2\x7f\x2e\x74\xe1\x23\x7a\xaf\x57\x6b\xb0\xe8\x4c\x63\xb3\x1e\x56\x03\x74\x33\x63\xb1\xfb\x92\x30\x13\x30\x6c\xb1\xb6\xe8\x90\xa0\x28\x34\xa3\x4f\x6a\x82\x1d\xb8\x4a\x58\xdf\x42\x6f\x11\xb6\x78\x6d\x94\xc2\xcc\x4b\xa3\xd7\xf0\x6e\x62\xa7\x6e\x13\x92\xef\xbc\xb1\xe8\x22\xe6\x9f\xbb\x88\xef\x24\x65\x31\xbb\xf1\x20\x75\xa6\x9a\x9c\x5f\x2a\x70\x0f\x45\xa3\xf9\x3b\x8e\x0d\xa1\x28\x70\x49\x1f\xb3\xd7\x68\xe9\x11\x0a\x27\xd5\x61\x56\x99\x1d\x82\xa7\x80\x73\xa4\xb2\xd0\x39\x98\xc6\x83\x29\xf8\xed\xfe\x16\xac\xf9\x8f\xd6\xec\x64\x8e\x76\xcd\x6f\xae\xdf\x61\x86\x72\x47\x1f\x4f\x0d\xe6\xf8\x1c\xae\xff\x04\x72\xcc\x94\xb0\xd8\x53\x6e\x2f\x7d\x09\xce\x54\x08\xb5\x45\x16\x5a\x1b\xc7\x06\xcb\x25\xbf\x31\x8b\xf6\xfd\xdc\x48\x8b\xac\x54\x67\x3d\x3a\x47\x61\xf8\x6c\x19\x5a\x2f\xa4\x06\x2d\x2a\xa9\xb7\x2c\x68\x83\xa5\xd8\x49\x63\xdb\xec\xe4\x16\xac\xd2\x01\x48\x05\x87\xb5\xb0\xc2\x23\x6c\x30\x13\x0d\xa9\xe9\x61\x2b\x77\xac\xe4\x0e\x95\xa9\xd1\x3a\xde\x4e\x6c\xa4\x92\xfe\x10\x52\x0c\x65\x87\x4e\xfb\xa0\x5b\x26\x34\xb9\x05\x84\x3e\xf4\x10\xd1\x66\x17\x96\xe2\x86\x86\x79\x75\x80\xc6\x91\x9e\xc9\x6c\x8e\x35\xee\x5e\x99\xb3\xa3\x1d\xf9\x81\x5c\x3d\x44\x91\xe3\x2d\x1d\xea\x7c\x46\xab\x6c\x70\x42\xf2\x62\x8d\x68\x2f\xbc\xb9\xa0\xff\xcf\xd9\xbe\xe4\x50\x32\x85\xde\xd2\x21\x78\x13\x4a\x83\x6c\x7a\x01\x19\x92\x54\x05\x0a\xf3\x2d\xda\xd9\x09\x60\x57\x86\xb7\x4a\xb8\x26\x34\x69\xe3\x4b\xb4\xac\xe2\xbc\xcd\xc3\x9c\x53\x1d\x1d\xfb\xc0\xa2\x73\x2b\x02\xe4\x6e\xaf\x57\xb3\xc2\x9a\x2a\xa6\xe1\xce\x7d\x9c\x98\x35\x64\x54\x00\xe8\xc5\x1c\x6b\xe3\xa4\x6f\xed\x0b\x46\x0f\xf6\x7a\xee\x66\x43\xdf\x67\x86\x8c\xec\x03\x2c\xbc\x15\xda\x15\x68\x17\xb3\xd9\x37\x97\xb3\x99\xac\x6a\x63\x3d\x3c\xfb\x49\xe2\x9e\x62\x4c\xed\xd0\x3e\x0b\x29\x9d\xc2\xab\x22\xb0\xf4\xab\xc4\x02\xfe\x97\x37\xea\x3f\x23\x78\x2a\xc5\x6b\xa2\x38\xf6\x52\xf2\x2c\x6f\x3b\x40\x77\x28\x1e\x1c\xfa\xd2\x75\x55\x8f\x52\x92\xc8\x32\x74\xee\x4c\x28\x75\xde\x55\xa2\xae\x12\x1e\xd7\xcc\x25\xf4\x15\x87\x2f\xb3\x19\x00\x00\x69\xf2\x52\x03\x6a\x2f\x7d\xd4\xa1\x30\x36\x84\x37\xbb\xb7\xc4\xd6\xf6\x42\x71\x14\x07\x50\xb0\xfd\x05\xfc\x24\x1a\xe5\x59\x52\x5f\x9d\xbe\xb8\x9f\xe3\xea\xc7\xed\xd7\xd4\xb9\xf0\x11\xbc\xe1\xdf\x80\x3b\xc6\x3c\xbf\xc6\x16\xbe\x77\xbb\x0f\xbc\xa8\xdb\xec\xcd\x2e\xd8\x55\xf8\xd3\xfa\x8f\x95\xf4\xb0\x27\xc4\xd0\x31\x2b\xf4\x22\x17\x5e\xd0\x21\x53\xca\x75\x51\x89\xbc\x95\x77\x13\xc2\xd3\x68\x75\x80\x0d\xb2\x08\x8f\x39\x6c\x0e\x8c\xba\x64\xb2\x35\x3d\xbf\xbd\x5e\x05\x6d\xf2\x75\x8b\xc0\x56\x4e\x88\x15\x0d\x6b\x7e\x45\x6c\x14\xae\xd3\x39\xf2\xae\xc8\x04\x4e\x80\x21\x4e\xe8\x0c\x7b\x71\xaa\x12\xa1\xaf\x6f\x82\xda\x46\x93\xb9\x5a\x54\x15\x05\x3d\x3b\xab\xd3\x4f\xc6\x27\x5d\x20\xb8\xe7\xbd\xcc\xec\x5a\xc9\x29\x93\xf1\x69\x33\x93\x07\x2c\x50\x56\xef\xbd\x0e\xc6\x06\xdd\x4a\x41\x5b\x62\x26\x85\xea\x8e\x12\xfc\xd4\x4a\x8c\xe7\xe9\x6d\x46\x76\x2f\x4d\x1e\x22\x83\x4c\x4a\xb6\xa0\xf7\xb6\x18\xe2\xe1\xd4\x2a\xad\xb4\xa1\x09\xd8\xd3\x95\xf8\x84\x8e\x52\xaf\x33\x41\x2b\x5f\x4a\x9b\x5f\xd4\xc2\xfa\x03\x48\x9d\xe3\xaf\x64\x10\x72\x61\x65\x88\x10\xd8\xb0\x07\x1b\xac\x15\x47\xe8\xfb\xdc\xa0\x3d\xf0\x97\xd1\xde\x1d\x40\x52\xee\x09\xb5\x6f\x68\xbb\x45\x12\x72\x8a\xd2\x5d\x87\xcf\xfc\x8c\xf2\xfa\x12\xde\x7b\x2b\xf5\x76\x0e\x32\x5f\xc2\x87\x1b\xed\xff\xfd\xdf\xe6\xd0\x34\xfd\x4f\xbc\xc5\x12\x5e\xe6\xb9\x45\xe7\x5e\x9c\x9f\x88\xdd\xc9\x50\x9b\x61\x08\xb9\xb3\x8f\xa0\x0b\xff\x0e\x8b\x25\x88\xc6\x97\x67\xe1\xf1\x39\xfc\xcb\x97\xe3\xc4\xb0\xb8\xbd\x5e\xdd\x05\xb9\x5f\xf8\xbf\xf4\xc7\xa1\x31\xd4\x35\x88\x5b\x6c\xd1\xaf\x0e\x35\x9e\x9d\x2f\x64\x4e\xae\x29\x24\xe5\x6c\x52\x39\xbe\x20\xf3\x74\x86\xf8\x80\x3e\xb4\x07\x89\xcf\xf8\xd3\x8b\x85\x08\xc7\x0a\xbb\xdf\xcd\x46\xc3\x56\xba\x36\xca\x38\x56\x45\x48\x41\xf4\x3c\x65\x26\x3d\x6f\x17\x4a\x9d\xcb\x4c\xf8\x14\x88\xa4\x3a\x69\x17\x54\x9a\xf7\x18\xcb\x09\x21\x89\xbb\x85\x18\x6b\x25\xb3\xb3\xe7\x03\x64\xd0\xb2\x0f\x1f\x6e\xae\x92\x88\x8e\xa9\x8c\xae\x85\xc6\x35\x42\xa9\xc3\x20\x68\x86\x30\xe1\xc4\x72\xa2\x8f\x74\xa0\x8d\x0f\x24\x8a\x5c\x6e\x1a\xed\x9f\x3b\x66\x6e\x62\x8b\x73\x58\x93\xf8\x75\x1b\x37\x6b\x2d\xd5\xfa\x21\xf8\xa5\x6c\xac\x1f\x0d\x40\xda\xa4\xc3\xdf\x1c\xea\x48\xd8\xc8\x02\xe9\xad\xf3\x51\xc7\x4d\x79\x2d\x56\x65\xe4\x8e\x67\xd4\x28\x70\x13\xbc\x88\xee\x4f\x39\xb1\xbf\xd1\xfd\x2e\xec\x5b\xfd\x74\xed\x5f\xe6\xab\xf9\xd3\x9c\x75\x95\x74\x78\xb4\xb3\xbc\xe9\xbb\xaa\xd3\x6f\xc2\x59\x37\xc3\xbe\x39\x56\x1a\x07\x55\x13\x18\x73\xec\x8e\x27\xd5\x3c\xe5\xe8\xb4\x7e\xc8\x34\x16\xc7\x94\x23\x6d\xde\x68\xf9\xb9\x41\xb8\xb9\xe2\xd2\x9e\x78\x5d\x7a\xa3\xbf\x8d\x42\xdf\x3b\xf3\x50\xca\x78\xa2\x10\x8d\x37\x95\xf0\x32\xe3\xc0\xc3\x1d\xa7\x72\x59\x21\x88\x9e\xce\xe4\x64\xe7\xad\x39\xc4\x5a\xda\x2f\x26\x4c\xbb\x25\x1b\x40\x24\x07\xc7\x7e\x28\x4f\x9d\x58\x5b\x0f\x82\xb7\x9c\x21\xec\x44\x20\x68\x44\x7a\x53\x70\xf7\x26\xec\xb6\xe1\xb1\xc0\xd8\xe1\xc2\xe2\xd4\xb4\x5d\x25\x8d\xce\xba\x03\xc3\x77\xe0\x50\xf5\x13\xeb\xf0\x39\x3d\x3b\x1f\x5a\x25\xb3\x28\x3c\xbe\xa9\x6a\x7f\xe8\x11\xdc\xf0\x94\x55\x42\xfa\x6a\xd0\xf8\x44\x0b\xa6\xea\xcb\xfd\xe1\x89\x57\x52\xfc\x58\xf4\x8d\xd5\x5c\x67\x53\x45\x17\x3c\x55\xe8\xaa\x2e\x1e\x02\x51\xda\x33\x95\x72\x03\x11\xdf\x87\xf5\xf0\xb2\x53\xe5\x38\x84\xb9\x21\x89\x3a\x48\x37\x09\x0d\x2a\x7c\xa3\x87\x3d\x3b\x5f\xc2\xf7\x5f\xba\xcf\x77\xbd\xe2\x46\x7f\xdc\x14\x0e\x1f\xd1\x9f\x45\xd7\x28\x4f\x45\xee\xbf\x51\x6f\x7d\x79\x76\x0e\xdf\x7d\x07\xdf\x2e\xe1\x19\x37\xeb\xbc\x53\xde\x57\x96\x43\x85\x89\x60\xed\x0f\x5f\x3d\x9b\x12\x28\xdd\xfb\xa6\x26\xc2\x8f\xf9\xed\xf5\x8a\x0b\x68\x88\x69\xf6\x60\x5b\x53\xcf\x1f\xd8\xc8\x05\x21\xad\x4d\x18\xa7\xc3\x4d\xef\x66\xdd\xbf\x06\x46\xff\x01\xbd\x83\xd4\x19\x71\x98\x27\x7e\x14\x44\xe5\xd2\x62\xe6\xd5\x81\x5c\x36\xe5\xae\x5c\xb2\x32\xc2\x1e\x98\x25\x2b\x05\xae\xd9\xdc\x5e\xaf\xde\xc3\x27\x3c\x04\x1a\x4c\x1a\x8d\xba\xaa\x25\x2a\x5b\xf4\x2f\x77\x42\x2a\x82\xda\xfb\xb0\x9c\xbc\xf5\x65\xc5\x06\xf9\xbf\x00\xee\xff\x3f\x76\x58\xd4\xe1\xcb\x7d\xe7\xe3\xf0\xee\x51\xe7\xd4\x61\x0e\xce\x79\x72\xbc\x57\x86\xa8\x78\x8c\x51\xc7\xbd\xbc\xa9\xf9\x98\x6a\x38\xea\x88\xdd\x6a\x56\x1a\xe3\x70\x20\xa2\x34\x7b\x8a\x85\x14\x16\xae\xd9\x04\x0b\xe7\x58\xa3\xce\x89\x8c\x18\x0d\x7b\x9e\x4d\x0e\xf6\x89\xc5\x74\x98\x7f\xae\x8d\x05\xfc\x55\x50\x53\x38\x07\x59\xc0\x9a\x4c\xba\x66\x7a\x2d\x60\x27\x54\x83\x73\xd8\x34\x1e\xd6\x32\x5f\x43\x6e\xd0\xe9\xe7\x61\x24\xc9\x0a\x0e\xf3\x80\xd0\x51\x5d\xd8\x97\x32\x2b\x83\x01\x8a\x68\x11\x1e\x2d\x98\x64\x59\xc9\x45\xcd\x72\x62\x14\xf0\x2c\xc7\x82\x7a\xbb\x67\x03\x79\x37\x05\x6c\x82\xb5\x62\x09\x8b\x1d\x77\x07\x27\x6e\x15\x42\xe0\x0a\x70\x52\x6f\x55\x50\x8b\x34\xf9\x85\x20\x1c\x76\x1b\x48\xa5\x85\x0b\x58\x91\x83\x4a\x54\xb5\x8b\xc9\xc4\xc1\xbe\x34\xb4\x95\x7e\x4e\xc8\xb7\x18\x2c\xe8\xd3\xc0\x45\x19\xf3\x89\x4c\x4b\xe5\xa3\x2f\x6f\x88\xdd\x5a\x58\x51\x41\x08\x36\x0a\x2d\x42\x59\x2a\xfb\x39\x3a\x69\x31\x3f\x49\x71\x71\x11\xa5\x5a\x1e\x2f\xe7\x69\x41\x44\xc0\xc6\x58\x6b\xf6\xd3\x7b\xb6\xf1\xe2\xbc\x6d\x32\xdf\xf0\x88\x2f\xce\xf3\x12\x33\xb5\xf8\xb9\x41\x47\x41\x4e\x81\xb1\x98\xcc\x6e\x5b\xf4\x21\x48\x62\xc2\x58\x45\x32\xd4\x96\x73\x58\x4e\x91\xfa\x17\xe3\x21\xa4\xa5\x9a\x0d\xb3\xc5\xdd\x28\x25\x30\x50\x61\x2e\xa9\x05\xef\x26\x00\x6d\xe3\x9f\xca\x68\x9f\xde\x76\xd9\xf6\x29\x8c\x21\x4d\x00\x87\xfc\x00\x7e\xc6\xd8\x9f\xa7\xc9\x4f\x9a\x03\xa4\xe6\x2b\x11\xd1\x9e\xa8\xd4\xaf\x12\x75\xa1\x4c\xa5\xb7\xed\xf2\xbe\xe8\x28\x29\x22\x4b\xf0\x5c\xa5\x08\xe3\x33\x6f\x62\x41\x56\xd2\x79\xa4\xee\x2e\x7d\xaf\xa2\xc0\x34\x53\x8a\x2d\xe3\xc0\xf1\xad\xae\x16\x2b\xb3\xc3\x76\x74\xdb\xea\xdc\xcb\xe7\x54\x46\xc3\x4b\xc7\x45\x74\x18\x71\x9e\x43\x9c\x49\x05\x37\xd7\xc5\x81\x08\x35\x77\xee\xb4\xe4\xe6\x8a\xe2\x35\x70\x59\x4b\x6f\x8d\x01\x39\xe9\x45\x24\x70\x14\xd0\xad\xe2\x23\x9a\x1e\x23\x33\xb5\x10\x01\x9e\x69\xe5\x59\x7f\x8f\x88\x4c\xaa\xc0\x84\xc3\x27\x95\x5e\x99\x53\xc5\xed\x4b\xe3\x8a\xd8\x71\xf5\xae\xbd\x0a\x1d\x45\xaa\xc0\x3c\x1c\x17\xc4\xf1\xdc\x51\x80\xdd\x5c\x9d\xd6\x65\xc6\xd6\x71\x37\xd4\x55\xff\x89\x16\xb7\xd5\x31\x31\xb1\xf8\x20\xf4\x25\xa1\x55\xe2\x8a\x3e\xec\x6f\x8f\xbb\xa6\x1e\x6d\xeb\xeb\x74\xf7\xc4\xb0\x8c\x50\x74\x09\x3e\x7f\x2c\xfe\xd2\xc8\xfd\x98\x9f\x27\xa0\x7b\x9e\xa8\x44\x24\x0f\x09\x2d\x83\x58\xe4\x79\x1f\xc3\xaf\x4f\x81\xd3\xcf\xc3\x61\x14\xb9\xea\xa0\x17\xb7\x99\xcc\x7f\xf1\xfb\xb3\xb8\x32\x20\xea\x88\xee\x72\x8e\x1c\xd2\x2b\xd7\x16\x63\x11\x2e\xd4\xe2\xe0\x3b\xdc\xca\x75\x8c\xc0\xa6\xd3\xd3\xbe\xb5\x7f\x1c\xf1\x09\x42\x2a\x51\xd7\xa1\x89\xdd\x18\xa3\x50\xf0\x85\x47\x3b\x7d\xe0\x72\x2a\x87\xf2\x3a\xa8\x67\x92\x9a\x92\xc4\xe7\xc8\x7e\x0f\x72\xa6\x93\x13\xf6\x48\xd3\x2b\x63\xd4\x11\x1d\x7a\x17\x8f\x9f\x92\x45\xc8\x0e\xec\xa2\xad\xdc\xa1\x8e\x2d\x8e\x8b\x07\x8f\xe4\x6d\x3c\xf2\x79\x6a\x3b\x4a\xd1\xc3\xe2\xee\xa6\x22\x4e\x56\x7b\x95\x1e\xbc\x6d\x90\x64\x47\x42\x31\x5d\x9d\x5f\xea\xd6\x43\x13\x5e\x88\x76\x1e\x31\x73\xe7\x47\xd2\x2a\xda\xf7\xb8\xc6\x3f\x82\x9b\x4e\xf2\x74\xfa\xe7\x79\x30\xf4\x71\x6c\xbe\x25\x0b\x10\x09\xd9\x88\xec\xd3\x5e\xd8\xdc\x5d\x64\xa6\xaa\x85\x97\xf1\xa2\xc7\xa2\x70\x69\xac\xfa\x40\x30\x76\xd1\xf3\x63\xb3\x51\x32\xeb\xe5\xc9\x47\x06\xc6\x43\x30\x4a\x7d\xcd\x92\x72\xca\x83\x6f\xdf\x5c\x31\xcc\x12\x29\x9f\x54\xa6\x30\xf6\x8d\xc8\xca\x9b\xab\xb3\x8f\x50\x2c\xf9\xd1\x59\x5b\x05\xc8\x68\xe7\x4b\xf8\xc9\xc8\xfc\xfe\x0d\x03\xaf\x22\xae\xf3\xb1\xcf\x70\x98\xe0\x10\x9f\x39\xb6\xfc\xbb\x70\x89\xd7\x5e\x23\x04\xf8\xea\xcc\xa2\x3f\xba\x54\xed\x0f\xa0\x37\x98\xae\x0d\xdb\x56\xbe\xbd\x81\x21\x48\xb5\xb7\x2c\x4f\x48\xa2\x9d\xdf\x96\x2d\xa1\x99\xb7\xa9\x75\x7e\xe2\xd7\xf9\xf8\x8c\xa4\xd7\x90\xf7\xb2\xf1\xc0\x56\xc2\xf2\xec\x8b\xe0\xe9\xc8\xeb\xc1\x46\x4b\x18\xa7\x80\x77\xf7\xe6\xf4\xa9\x94\x1e\x2f\x87\xa5\x4f\xf6\x99\xc8\x09\x0f\x25\x75\x32\xd0\xf1\xc0\xff\x09\x78\x1e\x1d\x54\x1f\x93\x09\x8b\x23\x5c\xa2\xc7\x1f\xfb\xf7\x80\x81\xda\xc5\x33\x0d\x2e\xcd\xbb\xbb\xf2\x11\x51\x89\x56\x4e\xaf\xe2\x3c\xaa\x2a\x22\x36\x42\xed\xc5\x21\x30\x90\x42\x52\x0b\x99\xa3\xf3\x52\x8b\xc1\xd9\x7b\xc2\xbb\x2b\x35\xb2\x7c\xab\x69\x25\x9d\xe3\xeb\x91\x70\x77\xd3\x38\x6f\xaa\x36\xc9\x11\x23\xa5\x34\xbb\xc1\x8e\xba\x8e\xc9\x26\x89\xa5\xb0\x79\xe8\xf2\x28\x32\x64\x98\xee\x1c\x71\xdc\x71\x76\x74\x3c\x7e\x64\x35\xef\x21\x47\xe1\xfb\x8e\x1b\x85\xcf\x71\x64\x6b\x26\x88\xd1\xf1\x8c\xf2\x11\xd4\xe8\x74\xaa\xc1\xb7\xea\x95\x69\x74\x2a\xf3\x61\xf2\xda\xc5\xf7\x14\x7e\x53\x65\xd1\xec\xca\x2d\x37\x13\x83\xfb\x03\x27\x7f\xc3\xd3\x21\xf1\xd3\x92\xec\x78\x17\xd6\x5a\x83\x23\x79\xa1\x78\xc5\xd4\x29\x5f\x2a\x65\xf6\x14\xb0\xa1\x74\xb7\xf7\xd9\xde\x80\xf4\xc8\xbf\x3a\xf0\xa5\x35\xcd\xb6\x64\x4d\xc9\xb1\x83\xf5\xa6\x08\x49\x83\xe3\xf3\xe6\x2a\xfc\x32\xa3\x5f\xd0\xd3\xad\x7e\x21\xed\xd1\xd2\xee\x9e\x5f\x19\x91\xb7\x37\x72\x16\xe3\xef\x94\x34\x13\xd2\xca\xd8\xc3\x9f\x2e\x0e\x47\x86\x3a\xb2\x50\x94\xf2\x16\x0f\x67\xc5\xf9\x94\xa1\x5e\x71\x05\x71\x13\x83\xa0\x47\x81\xe2\xa6\xeb\x8c\xf8\x92\x96\x61\xc0\x9d\x97\xe4\x5e\xa2\x37\xeb\x1f\x4a\x99\x1f\x0d\x35\xba\xdf\x75\x24\x5a\x14\x5d\xcf\x93\x13\x0e\x4e\x92\x53\x0b\x2d\xb3\xc5\x43\x03\x8c\x34\x8b\x48\x74\x46\x17\x9e\xda\xb8\x13\x25\x7a\x03\x9d\x64\x83\x0c\xc9\x03\x8b\x29\xe4\xb7\xb3\xae\xb1\x5b\xe7\x3f\x5e\xaf\x1f\x33\x90\x98\xe8\x04\xcf\x42\x57\x45\x7d\xa0\x96\xea\x1c\x7e\xff\x3d\x3d\x7a\x11\xdb\x43\x99\x9f\x2f\xe1\x64\x1d\xfd\x3d\x7b\x2d\x34\x59\x35\xa8\xc6\x5e\xec\xfd\x64\x6b\xd8\x49\x06\x1b\x0c\xee\xdb\xdb\x5e\xbb\x12\x3e\x2b\x53\x87\xdd\x5e\xbd\xb7\x38\x78\xe4\xcc\xf5\xe9\x73\xf8\xa8\x1a\x37\xb2\x27\x4c\xf8\xbe\xd1\xfb\x13\x06\xec\x93\x7b\xfc\x73\x26\xeb\xa1\x7c\x90\x1b\x87\xc3\xef\xe9\xd9\x77\xeb\x95\x52\xec\x70\xa8\x7b\xe8\xf6\xf9\xb7\x31\xe9\xf5\xc9\x21\xfc\x5f\x33\xd5\xbf\xa7\x4b\x7f\xba\xbb\x13\x6b\xed\x12\xcc\xa0\x4f\xf9\x93\xf7\x2d\xbd\xfc\xa1\x0b\xbf\x6a\x67\xa0\xfd\x24\x72\x34\x05\x1e\x54\x85\x36\x6d\x1c\xa5\x0c\x61\xad\x38\xa4\x8e\x7a\xd5\xef\xa8\x27\xa8\x74\xfc\x25\x53\xfc\x75\xc4\xe3\x60\xd6\x69\x1c\x5a\xaf\x11\x42\x38\x0e\xc2\x11\x00\x76\x00\xe0\x86\x26\x56\xdb\x3f\x08\x82\xe4\xf6\xbb\xd9\x3f\x02\x00\x00\xff\xff\x12\xaf\x7e\x10\xca\x2c\x00\x00" +var _nonfungibletokenCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xbc\x5a\x6d\x8f\x1b\xb7\x73\x7f\xaf\x4f\x31\x7f\xff\x81\xfa\x2e\xd0\xe9\x02\xb4\x68\x01\x01\x81\x73\xf6\xf9\xd2\xab\xdb\x6b\x60\xcb\xc9\x8b\xa2\xb0\xa8\xdd\x59\x2d\x63\x2e\xb9\x26\xb9\x52\x14\xe7\xbe\x59\xdf\xf5\x8b\x15\x33\x24\xf7\x41\xda\xbd\x87\x24\xe8\xbd\x48\xac\x5d\x72\x38\x9c\xc7\xdf\xcc\xec\xe5\x37\xdf\xcc\x66\x7f\xff\x3b\xac\x4a\x84\x1b\x65\xf6\x70\x67\xf4\xc5\x4d\xa3\xb7\x72\xa3\x10\x56\xe6\x33\x6a\x70\x5e\xe8\x5c\xd8\x9c\x17\xae\xef\x8c\x4e\xef\xf9\xf5\x1a\x32\xa3\xbd\x15\x99\x9f\xcd\x88\x8a\xd4\x1e\x6d\x21\x32\x04\x5f\x0a\x0f\x42\xa9\x31\x9a\x69\x8f\x03\x57\x9a\x46\xe5\xf4\xa0\x30\xb6\x02\x6f\x16\xb3\xdb\x02\x04\x34\x0e\x2d\xec\x85\xf6\x0e\xbc\x81\x1c\x6b\x65\x0e\x20\x40\xe3\x1e\xee\x6e\x56\x2d\x81\x39\xf8\x12\xa5\x6d\x7f\x27\x7a\xb2\xaa\x15\x56\xa8\x3d\x33\xe5\x0f\x35\x3a\xc8\xb1\x90\x1a\x73\x28\xd1\xe2\x6c\x76\x79\x79\x09\x6f\x68\x97\xdc\x34\xde\x58\x07\x67\xb5\x42\xe1\x10\x44\x9e\xd3\x91\xbe\x94\x0e\x94\x74\x1e\x64\x01\x07\xd3\x84\x23\x68\x31\xfe\xed\x7c\xc9\xdb\x2f\xe0\xdf\x8c\x2b\x1b\x01\xff\x2a\xb4\x16\x1a\x2e\xa0\xf4\xbe\x76\xcb\xcb\xcb\xad\xf4\x65\xb3\x59\x64\xa6\xba\xfc\x85\x97\x94\xbc\x22\xee\x7a\x2d\x9c\x97\x42\xc3\x7f\xfc\xef\xff\x28\x85\xb6\xb7\xcf\xef\xa5\xf7\x68\x79\xa3\x6f\xec\xc6\x28\xba\x42\xd8\x75\x8d\x1e\xe1\x43\x29\xad\xc2\xc3\xc4\x96\x1c\x3d\xfe\xcb\x3f\xa6\x53\x7e\x11\xd6\x23\xbc\x13\x56\x39\xd4\x13\x3b\xbe\xfd\x35\x2c\xfb\x1c\x37\x5d\x35\xce\x4b\x0d\xef\x94\xd4\x38\xb1\x45\xf0\x92\x4f\x85\x32\x7b\x7f\x88\xdb\x7e\x90\x66\x27\xb4\x96\xf0\x41\xe8\xac\xc4\xdf\x26\xb6\x6e\xa5\xf9\x24\x75\x66\xb6\x5a\x7a\xd3\x5e\x4b\xcb\xdf\xe0\x6d\x2e\x75\x26\x3f\x4f\xec\xdb\xa8\x06\x9d\xdc\xb2\xfc\x78\xdb\x7b\xac\x0d\x58\x2c\xd0\xa2\xce\x70\x39\x26\x77\xa3\x89\xc3\x4b\xfa\xcf\x85\x2e\x7c\xb4\xde\x9b\xd5\x1a\x2c\x3a\xd3\xd8\xac\x67\xab\xc1\x74\x33\x63\xb1\x7b\x49\x36\x13\x6c\xd8\x62\x6d\xd1\x21\x99\xa2\xd0\x6c\x7d\x52\x93\xd9\x81\xab\x84\xf5\xad\xe9\x2d\xc2\x11\x6f\x8c\x52\x98\x79\x69\xf4\x1a\xde\x4f\x9c\xd4\x1d\x42\xf4\x9d\x37\x16\x5d\xb4\xf9\x97\x2e\xda\x77\xa2\xb2\x98\xdd\x7a\x90\x3a\x53\x4d\xce\x8b\x0a\xdc\x43\xd1\x68\x7e\xc7\xbe\x21\x14\x39\x2e\xf1\x63\xf6\x1a\x2d\x3d\x42\xe1\xa4\x3a\xcc\x2a\xb3\x43\xf0\xe4\x70\x8e\x58\x16\x3a\x07\xd3\x78\x30\x05\xaf\xee\x1f\xc1\x9c\xff\x68\xcd\x4e\xe6\x68\xd7\xbc\x72\xfd\x1e\x33\x94\x3b\xfa\x79\x2a\x30\xc7\xf7\x70\xfd\x27\x90\x63\xa6\x84\xc5\x1e\x73\x7b\xe9\x4b\x70\xa6\x42\xa8\x2d\x32\xd1\xda\x38\x16\x58\x2e\x79\xc5\x2c\xca\xf7\x4b\x23\x2d\x32\x53\x9d\xf4\xe8\x1e\x85\xe1\xbb\x65\x68\xbd\x90\x1a\xb4\xa8\xa4\xde\x32\xa1\x0d\x96\x62\x27\x8d\x6d\xa3\x93\x5b\x30\x4b\x07\x20\x16\x1c\xd6\xc2\x0a\x8f\xb0\xc1\x4c\x34\xc4\xa6\x87\xad\xdc\x31\x93\x3b\x54\xa6\x46\xeb\xf8\x38\xb1\x91\x4a\xfa\x43\x08\x31\x14\x1d\x3a\xee\x03\x6f\x99\xd0\xa4\x16\x10\xfa\xd0\xb3\x88\x36\xba\x30\x15\x37\x14\xcc\xeb\x03\x34\x8e\xf8\x4c\x62\x73\xcc\x71\xb7\x64\xce\x8a\x76\xa4\x07\x52\xf5\xd0\x8a\x1c\x1f\xe9\x50\xe7\x33\xda\x65\x83\x12\x92\x16\x6b\x44\x7b\xe1\xcd\x05\xfd\x7f\xce\xf2\x25\x85\x92\x28\xf4\x96\x2e\xc1\x87\x50\x18\x64\xd1\x0b\xc8\x90\xa8\x2a\x50\x98\x6f\xd1\xce\x4e\x0c\x76\x65\xf8\xa8\x64\xd7\x64\x4d\xda\xf8\x12\x2d\xb3\x38\x6f\xe3\x30\xc7\x54\x47\xd7\x3e\x30\xe9\xdc\x8a\x60\x72\x77\x37\xab\x59\x61\x4d\x15\xc3\x70\xa7\x3e\x0e\xcc\x1a\x32\x4a\x00\xb4\x30\xc7\xda\x38\xe9\x5b\xf9\x82\xd1\x83\xb3\x5e\xba\xd9\x50\xf7\x99\x21\x21\xfb\x60\x16\xde\x0a\xed\x0a\xb4\x8b\xd9\xec\x9b\xcb\xd9\x4c\x56\xb5\xb1\x1e\x5e\xfc\x24\x71\x4f\x3e\xa6\x76\x68\x5f\x84\x90\x4e\xee\x55\x91\xb1\xf4\xb3\x44\x27\xfc\x05\xfc\x27\x1f\xd9\x7f\x4b\x86\xaa\x14\x04\xa2\x4c\x84\xf5\x95\x74\x1c\x32\x41\x97\xd7\x84\x83\x3d\xc6\x5b\x0d\xcc\x3f\x64\x17\x8e\x0d\xfd\x0d\x1c\xb4\x44\x96\xa1\x73\x67\x42\xa9\xf3\x11\xae\xe0\x38\xab\x2e\xa1\x7f\x35\xf8\x3a\x9b\x01\x00\x10\x6b\x57\x1a\x50\x7b\xe9\x23\x6f\x85\xb1\x21\x00\xb0\x01\x94\xd8\x6a\x47\x28\xf6\xf3\x60\x36\xac\x21\x01\x3f\x89\x46\x79\xa6\xd4\x67\xa7\x4f\xee\xe7\xb8\xfb\x69\xe7\x35\x75\x2e\x7c\x34\xef\xf0\x6f\xc0\x1d\x7b\x05\x2f\x63\x1d\x3c\x78\xdc\x47\xde\xd4\x1d\xf6\x76\x17\xe4\x2d\xfc\x29\x42\xc0\x4a\x7a\xd8\x93\x4d\xd1\x35\x2b\xf4\x22\x17\x5e\xd0\x25\x53\x50\x76\x91\x89\xbc\xa5\x77\x1b\x1c\xd8\x68\x75\x80\x0d\x32\x09\x8f\x39\x6c\x0e\x6c\x97\x49\x64\x6b\x7a\x7e\x77\xb3\x0a\xdc\xe4\xeb\xd6\x46\x5b\x3a\xc1\x9b\x34\xac\xc3\x92\x75\xba\x44\xde\xe5\xa0\x00\x19\x30\xb8\x11\x5d\x60\x2f\x4e\xf9\x21\xe3\xec\xdf\xbf\xb6\x51\x5e\xae\x16\x55\x45\x31\x81\x35\xd5\x31\x27\xe3\x93\xce\x4f\xdc\xcb\x5e\xe0\x76\x2d\xe5\x14\xe8\xf8\xaa\x99\xc9\x83\x21\x50\xd0\xef\x2d\x07\x63\x03\x6f\xa5\xa0\x23\x31\x93\x42\x75\x57\x09\x4a\x6a\x29\xc6\xfb\xf4\x0e\x23\xa1\x97\x26\x8f\xee\xb2\xa1\xe8\xa9\xf8\xde\x5b\xf4\xbc\xf6\x54\x2a\x2d\xb5\xa1\x08\x58\xcd\x95\xf8\x8c\x8e\x22\xb3\x33\x81\x2b\x5f\x4a\x9b\x5f\xd4\xc2\xfa\x03\x48\x9d\xe3\xaf\x24\x10\xd2\x5f\x65\x08\x2f\xd8\x70\x06\x0b\xac\x25\x47\xa6\xf7\xa5\x41\x7b\xe0\x97\x51\xde\x9d\x75\xa4\xd0\x14\x52\xe3\x50\x76\x8b\x44\xe4\xd4\x44\x77\x9d\x71\xe6\x67\x14\xf6\x97\xf0\xc1\x5b\xa9\xb7\x73\x90\xf9\x12\x3e\xde\x6a\xff\xcf\xff\x34\x87\xa6\xe9\xff\xe2\x23\x96\x70\x95\xe7\x16\x9d\x7b\x75\x7e\x42\x76\x27\x43\xea\x86\xa1\xbd\x9d\x7d\x02\x5d\xf8\xf7\x58\x2c\x41\x34\xbe\x3c\x0b\x8f\xcf\xe1\x1f\xbe\x1e\x47\x85\xc5\xdd\xcd\xea\x3e\xd0\xfd\xca\xff\xa5\x3f\xf6\x8b\x21\xaf\x81\xdc\x62\x8b\x7e\x75\xa8\xf1\xec\x7c\x21\x73\x52\x4d\x21\x29\xa4\x13\xcb\x71\x81\xcc\xd3\x1d\xe2\x03\xfa\xd1\x5e\x24\x3e\xe3\x5f\xaf\x16\x22\x5c\x2b\x9c\x7e\x3f\x1b\xf5\x59\xe9\x5a\x17\x63\x47\x15\x21\xfe\xd0\xf3\x14\x96\xf4\xbc\xdd\x28\x75\x2e\x33\xe1\x93\x17\x12\xeb\xc4\x5d\x60\x69\xde\x03\x34\x27\x78\x25\x9e\x16\x7c\xac\xa5\xcc\xca\x9e\x0f\x2c\x83\xb6\x7d\xfc\x78\x7b\x9d\x48\x74\x40\x66\x74\x2f\x34\xae\x11\x4a\x1d\x06\x4e\x33\x34\x13\x8e\x2a\x27\xfc\x48\x07\xda\xf8\x80\xb1\x48\xe5\xa6\xd1\xfe\xa5\x63\x60\x27\xb6\x38\x87\x35\x91\x5f\xb7\x7e\xb3\xd6\x52\xad\x1f\x33\xbf\x14\x8a\xf5\x93\x0d\x90\x0e\xe9\xec\x6f\x0e\x75\xc4\x73\x24\x81\xb4\xea\x7c\x54\x71\x53\x5a\x8b\x49\x1b\xb9\x20\x1a\x15\x0a\xdc\x06\x2d\xa2\xfb\x53\x4a\xec\x1f\xf4\xb0\x0a\xfb\x52\x3f\xdd\xfb\x97\xe9\x6a\xfe\x3c\x65\x5d\x27\x1e\x9e\xac\x2c\x6f\xfa\xaa\xea\xf8\x9b\x50\xd6\xed\xb0\xac\x8e\x99\xc6\x41\xd5\x04\x40\x1d\x8b\xe7\x49\x36\x4f\x21\x3c\xed\x1f\xc2\x8c\xc5\x31\xde\x48\x87\x37\x5a\x7e\x69\x10\x6e\xaf\x39\xaf\x27\xd8\x97\x56\xf4\x8f\x51\xe8\x7b\x77\x1e\x52\x19\x0f\x14\xa2\xf1\xa6\x12\x5e\x66\xec\x78\xb8\xe3\x50\x2e\x2b\x04\xd1\xe3\x99\x94\xec\xbc\x35\x87\x98\x4b\xfb\xc9\x84\x51\xb9\x64\x01\x88\xa4\xe0\x58\x2e\xe5\xa9\x50\x6b\xf3\x41\xd0\x96\x33\x64\x3b\xd1\x10\x34\x22\xad\x14\x5c\xdc\x09\xbb\x6d\xb8\x6b\x30\x76\xb9\xb0\x39\xd5\x74\xd7\x89\xa3\xb3\xee\xc2\xf0\x1d\x38\x54\xfd\xc0\x3a\x7c\x4e\xcf\xce\x87\x52\xc9\x2c\x0a\x8f\x6f\xab\xda\x1f\x7a\xf8\x37\x3c\x65\x96\x90\x5e\x0d\xea\xa2\x28\xc1\x94\x7d\xb9\x7c\x3c\xd1\x4a\xf2\x1f\x8b\xbe\xb1\x9a\xf3\x6c\xca\xe8\x82\x9b\x0e\x5d\xd6\xc5\x43\x40\x49\x7b\xc6\x51\xae\x4f\x62\x40\xee\xfb\x40\x0b\xae\x3a\xb6\x8e\xdd\x99\x6b\x97\xc8\x8f\x74\xc7\x0c\x8d\x4a\x95\x12\xe2\xa8\x10\xce\xce\x97\xf0\xfd\xd7\xee\xf7\x7d\x2f\xe9\xd1\x1f\xd7\x92\xc3\x47\xf4\x67\xd1\x35\xca\x53\xf2\xfb\x77\xd4\x5b\x5f\x9e\x9d\xc3\x77\xdf\xc1\xb7\x4b\x78\xc1\x35\x3e\x9f\x94\xf7\x19\x67\x17\x62\x74\x58\xfb\xc3\xdf\x5e\x4c\x11\x94\xee\x43\x53\x53\x85\x80\xf9\xdd\xcd\x8a\x13\x6b\xf0\x75\xd6\x6c\x9b\x6b\xcf\x1f\x39\xc8\x05\x22\xad\x7c\xd8\x7e\x87\x87\xde\xcf\xba\x7f\x0d\x14\xf0\x03\x7a\x07\xa9\xa0\x62\xf7\x4f\xb8\x29\x90\xca\xa5\xc5\xcc\xab\x03\xa9\xf2\x29\x6a\xcc\x25\x33\x26\xec\x81\x61\xb4\x52\xe0\x9a\xcd\xdd\xcd\xea\x03\x7c\xc6\x43\xc0\xc9\xc4\xdd\xa3\x2a\x6c\x81\xcd\x16\xfd\xd5\x4e\x48\x45\xa6\xf9\x21\x90\x22\x2d\x7e\x5d\xb1\xa0\xfe\x2b\x38\xc3\x7f\x1f\x2b\x32\xf2\xf3\xf5\xa1\x7b\x73\x38\xe8\x41\xed\x54\xb0\x0e\xee\x7f\x7c\x6d\x78\x6d\x08\xb7\x47\x9f\x76\xdc\x1a\x30\x35\x5f\x59\x0d\x3b\x27\xb1\xf8\xcd\x4a\x63\xdc\xe0\xbe\x50\x9a\x3d\xf9\x4e\x72\x23\xd7\x6c\x82\xe4\x73\xac\x51\xe7\x04\x5e\x8c\x86\x3d\xb7\x3a\x07\xe7\xc4\xe4\x3b\x8c\x57\x37\xc6\x02\xfe\x2a\xa8\xb2\x9c\x83\x2c\x60\x4d\xe2\x5d\x33\x1c\x17\xb0\x13\xaa\xc1\x39\x6c\x1a\x0f\x6b\x99\xaf\x21\x37\xe8\xf4\xcb\xd0\xe1\x64\x06\x87\x71\x43\xe8\xc8\x2e\xec\x4b\x99\x95\x41\x00\x45\x94\x08\x77\x2a\x4c\x92\xac\xe4\x24\x68\x39\x90\x0a\x78\x91\x63\x41\x85\xe0\x8b\x01\xbd\xdb\x02\x36\x41\x5a\x31\xe5\xc5\x02\xbe\x33\x33\x2e\x2d\x82\x73\x0b\x70\x52\x6f\x55\x60\x8b\x38\xf9\x85\x4c\x3b\x9c\x36\xa0\x4a\x1b\x17\xb0\x22\x05\x95\xa8\x6a\x17\x83\x8f\x83\x7d\x69\xe8\x28\xfd\x92\x3c\xc2\x62\x90\xa0\x4f\xfd\x1b\x65\xcc\x67\x12\x2d\xa5\x9b\x69\x3b\xae\x85\x15\x15\x04\x27\x24\x97\x23\x2b\x4b\x30\x21\x47\x27\x2d\xe6\x27\x21\x31\x6e\xa2\xd0\xcc\xdd\xea\x3c\x6d\x88\x16\xb0\x31\xd6\x9a\xfd\x13\x7c\xc7\x79\xdb\x64\xbe\xe1\x8e\x61\x6c\x0f\x26\x24\x6b\xf1\x4b\x83\x8e\x9c\x9f\x1c\x63\x31\x19\xf5\xb6\xe8\x83\x93\xc4\x40\xb2\x8a\xe0\xa9\x4d\xff\xb0\x9c\x2a\x02\x5e\x8d\xbb\x90\x96\x6a\x36\x8c\x22\xf7\xa3\x10\xc2\x40\x85\xb9\xa4\x7a\xbd\x6b\x17\xb4\x5d\x82\x94\x76\xfb\x70\xb8\x8b\xc2\xcf\x41\x18\xa9\xa1\x38\xc4\x13\xf0\x33\xc6\x62\x3e\x35\x92\x52\xd3\x20\x15\x6b\x09\xb8\xf6\x48\xa5\xfa\x96\xa0\x0e\x45\x2d\xbd\x6d\xb7\xf7\x49\x47\x4a\xd1\xb2\x84\xe3\xf5\xa1\x1b\xe7\x4d\x4c\xe0\x4a\x3a\x8f\x54\x0d\xa6\xf7\x2a\x12\x4c\x2d\xaa\x58\x62\x0e\x14\xdf\xf2\x6a\xb1\x32\x3b\x6c\x3b\xc1\x2d\xcf\xbd\x38\x4f\x69\x37\x2c\x3a\x4e\xba\x43\x8f\xf3\xec\xe2\x0c\x42\xb8\x18\x2f\x0e\x04\xc0\xb9\xd2\xa7\x2d\xb7\xd7\xe4\xaf\x01\xfb\x5a\x5a\xf5\x98\x27\x24\x1e\x09\x40\x8e\x1a\x77\x7b\x89\x11\xae\x47\xcd\xfc\xfb\xaf\x64\x6c\x81\xda\xa0\xb1\xd1\x16\x4e\x0f\xe5\x86\x54\xc1\x04\x6b\x4f\x5b\xce\xfa\x6c\x46\x43\x5f\xc6\x93\x9e\x95\xe1\x65\x4e\x89\xbd\x4f\x8d\x13\x6f\x57\x2a\x74\xd5\x5d\x28\x68\x52\xa2\xe7\xd6\xbd\xa8\xb8\x93\x37\xf4\xd7\xdb\xeb\xd3\xf4\xcf\xa6\x7a\x5c\x8c\x75\x20\x63\xa2\xc2\x6e\x79\x4c\x40\x30\x3e\x08\x65\x51\xa8\xd4\x18\x38\x0c\xcb\xeb\xe3\xa2\xad\x87\x1a\xfb\x3c\xdd\x3f\xd3\xcb\xa3\x65\xbb\x64\x8d\x7f\xcc\x9d\xd3\x40\xe0\xb8\x3c\x48\x7e\xe3\xb9\xa1\x13\x1d\x63\x88\xa7\xd9\x27\x44\x9e\xf7\x5d\xe2\xcd\x84\xed\xc5\xb0\x1e\xda\xa0\xab\xce\x7a\xe3\x31\x93\xe1\x34\xbe\x3f\x8b\x3b\x83\x45\x1d\xa1\x6d\x0e\xb9\x43\x14\xe7\xda\xdc\x2e\xc2\xb8\x2f\xb6\xe5\xc3\xcc\xb0\x03\x18\x36\xdd\x9e\xce\xad\xbd\x7b\x12\xa6\x0a\x44\x2a\x51\xd7\xa1\x86\xde\x18\xa3\x50\xf0\x38\xa6\x6d\x7e\x70\x76\x96\x43\x7a\x9d\xa9\x67\x92\x6a\xa2\x04\x1b\x49\x7e\x8f\x42\xb0\x93\x1b\xf6\x30\xd8\x6b\x63\xd4\x11\xba\x7a\x1f\xaf\x9f\x62\x4f\x08\x36\xac\xa2\xad\xdc\xa1\x8e\x15\x96\x8b\x17\x8f\xb8\x70\x3a\x78\x5c\x8d\x56\x05\x61\x73\x37\x47\x89\x5d\xdd\x1e\x70\x00\x6f\x1b\x24\xda\x11\x9f\x4c\x27\xfb\x2b\xdd\x6a\x68\x42\x0b\x51\xce\x23\x62\xee\xf4\x48\x5c\x45\xf9\x1e\x43\x86\x21\xe9\x51\x39\x4f\x96\x03\xf4\xcf\xf3\x20\xe8\x63\xdf\x7c\x47\x12\x20\x4c\xb3\x11\xd9\xe7\xbd\xb0\xb9\xbb\xc8\x4c\x55\x0b\x2f\xe3\x18\xca\xa2\x70\xa9\xab\xfb\x88\x33\x76\xde\xf3\x63\xb3\x51\x32\xeb\xc5\xc9\x27\x3a\xc6\x63\x66\x94\xca\xa7\x25\xc5\x94\x47\x57\xdf\x5e\xb3\x99\x25\x8c\x3f\xc9\x4c\x61\xec\x5b\x91\x95\xb7\xd7\x67\x9f\xa0\x58\xf2\xa3\xb3\x36\x0b\x90\xd0\xce\x97\xf0\x93\x91\xf9\xc3\x07\x06\x98\x46\xd0\xe9\x53\x1f\x30\x31\x5e\x22\x78\x74\x2c\xf9\xf7\x61\xc4\xd8\x8e\x30\x82\xf9\xea\xcc\xa2\x3f\x1e\xf9\xc6\x96\x41\x3b\xfe\x21\xdb\x69\x3f\x71\x80\xae\x39\x3e\x35\x1f\x5a\xc0\x07\xc9\x45\xca\x70\x6a\x24\x75\x89\x56\x46\x94\xd3\x75\xb8\x62\x31\x17\xfa\xfb\x1a\xe9\xaa\x14\x3a\xfa\xc3\xc2\x6e\x8c\x38\x9c\x3d\x52\x28\xcd\x0d\xfb\x6a\x8f\x9e\x33\xdc\xd1\x08\xc3\x40\xee\x82\xf4\x0e\xe8\x8d\xab\xc2\x35\xc3\x97\x13\xdc\x3b\x21\x9e\x29\xfe\xb9\xe7\xa4\x84\xce\x0a\x97\x2d\xda\x9b\xb7\x89\x62\x7e\x62\xa5\xf3\xf1\x86\x53\xaf\xbb\x71\x94\x5b\x6e\x24\xaa\xbc\x9b\x08\x09\xa9\xc7\x2b\xe0\x01\x00\x1b\xd4\x81\x03\xfb\x11\x96\xdb\x91\xe4\xb2\x8e\x3c\x21\xd8\xcd\x12\xc6\x51\xf6\xfd\x83\x79\x6e\x2a\xcd\xc5\x71\xbe\xf4\xc9\x94\xa6\x40\xd6\x23\x89\x8e\xc4\x7c\x3c\x83\x79\x86\x8f\x8f\xce\x0e\x8e\x01\x96\xc5\x11\x7c\xd5\x83\xe8\xfd\xc9\x6d\x40\xcf\xf1\x4e\x83\xcf\x1c\xba\x51\xe7\x08\xa9\x84\xdc\xa7\x77\x71\x6e\x51\x15\x81\x3d\xa1\xf6\xe2\x10\x50\x59\x21\xa9\x4a\xcf\xd1\x79\xa9\xc5\xe0\xee\x3d\xe2\xdd\x88\x93\x24\xdf\x72\x5a\x49\xe7\x78\x62\x15\xc6\x69\x8d\xf3\xa6\x6a\x03\x3f\x81\x7e\x4a\x3d\x1b\xec\xaa\x83\x31\xda\x44\xb1\x14\x36\x0f\x85\x34\x45\x0b\x19\x1a\x6e\x47\x65\xc4\x38\x62\x3c\xee\x08\x33\x9b\x0f\x00\xc6\xf0\xbe\xc3\x8b\xe1\x77\xec\xa2\x9b\x09\xb0\x78\xdc\x36\x7e\x02\x5c\x3c\x6d\x28\xf1\x77\x10\x95\x69\x74\x82\x3e\xa1\x19\xde\x75\x4f\x1f\x29\x12\xae\x34\xab\x72\xcb\xf1\x65\x30\xd2\x71\xf2\x37\x3c\xed\xdb\x3f\x2f\xf1\x8c\x17\xba\xad\x34\xd8\x93\x17\x8a\x77\x4c\xdd\xf2\x4a\x29\xb3\x27\x87\x0d\x70\xa6\xfd\x02\x81\x42\xa4\x47\xfe\x4e\xc4\x97\xd6\x34\xdb\x92\x39\x25\xc5\x0e\xf6\x9b\x22\x04\x0d\xf6\xcf\xdb\xeb\xf0\x2d\x4d\x3f\xde\xa4\xef\x30\x0a\x69\x8f\xb6\x76\x5f\x66\x28\x23\xf2\x76\x48\x6a\x31\x7e\x59\xa6\x19\xa4\x57\xc6\x1e\xfe\x74\xc2\x3c\x12\xd4\x91\x84\x22\x95\x77\x78\x38\x2b\xce\xa7\x04\xf5\x9a\xb3\xaa\x9b\xe8\xb5\x3d\xc9\x28\x6e\xbb\x82\x93\x87\xe6\x6c\x06\x5c\xdc\x4a\xae\xaf\x7a\xe3\x97\x21\x95\xf9\x51\xdf\xa8\xfb\x12\x27\x41\xc5\xa8\x7a\x6e\x4e\xb1\x73\x12\x9d\x5a\x68\x99\x2d\x1e\xab\x8c\x53\xbb\x27\x41\x3c\x5d\x78\xaa\x8e\x4f\x98\xe8\xf5\xcc\x92\x0c\x32\x24\x0d\x2c\xa6\x2c\xbf\x6d\x27\x8e\x7d\x08\xf0\xc7\x31\xcc\x53\x7a\x3e\x13\xd5\xf1\x59\xa8\x34\xa9\x36\xd6\x52\x9d\xc3\xef\xbf\xa7\x47\xaf\x62\xc9\x2c\xf3\xf3\x25\x9c\xec\xa3\xbf\x17\x6f\x84\x26\xa9\x06\xd6\x58\x8b\xbd\x8f\xec\x86\xd5\x75\x90\xc1\xe0\x13\x88\xb6\x9d\x51\x09\x9f\x95\xa9\x89\xd1\x36\x0d\x5a\x3b\x78\x62\xbb\xfb\xf9\xa3\x91\xc8\x1a\x17\xf7\x27\xd5\xc1\x43\xd3\x90\x67\xcc\x39\x26\xcf\xf8\xff\x19\x6a\x84\xf4\x41\x6a\x1c\xce\x1d\xa6\xc7\x0e\xad\x56\x4a\xb1\xc3\x21\xef\xa1\x03\x22\x5d\x6f\xf9\xe4\xfc\xe3\xaf\x19\xa8\x3c\xd0\xb9\x78\xbe\xba\x13\x92\xef\x02\xcc\xa0\x76\xfb\x93\x23\xb0\x5e\xfc\xd0\x85\x5f\xb5\x6d\xe6\x7e\x10\x39\x6a\xb4\x0f\xb2\x42\x1b\x36\x8e\x42\x86\xb0\x56\x1c\x52\x97\x61\xd5\xef\x32\x4c\x54\x1d\xf1\xd3\xb2\xf8\xc1\xca\xd3\xcc\xac\xe3\x38\x94\xa3\x23\x80\x70\xdc\x08\x47\x0c\xb0\x33\x00\x2e\xf2\x62\xb6\xfd\x83\x46\x90\xd4\x7e\x3f\xfb\xbf\x00\x00\x00\xff\xff\x55\xbd\xc5\xcc\x7c\x2e\x00\x00" func nonfungibletokenCdcBytes() ([]byte, error) { return bindataRead( @@ -129,7 +129,7 @@ func nonfungibletokenCdc() (*asset, error) { } info := bindataFileInfo{name: "NonFungibleToken.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6, 0x7a, 0x43, 0xc4, 0xa6, 0xf4, 0xe3, 0xfe, 0x62, 0x74, 0xb7, 0xc4, 0xe7, 0xf2, 0xcf, 0xa2, 0x19, 0x6b, 0x24, 0xa1, 0x3a, 0xba, 0x48, 0xce, 0x93, 0x99, 0x52, 0x96, 0xa0, 0xed, 0x55, 0xfa}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6f, 0xce, 0x2f, 0x99, 0xc9, 0xdc, 0x5d, 0xb2, 0x50, 0x56, 0x9c, 0x91, 0x83, 0x73, 0x31, 0xa2, 0x38, 0x2d, 0xf, 0xb4, 0x5e, 0xbd, 0x38, 0x10, 0x18, 0x66, 0x55, 0xe8, 0xf7, 0x5c, 0x98, 0x46}} return a, nil } diff --git a/lib/go/templates/internal/assets/assets.go b/lib/go/templates/internal/assets/assets.go index dd28269..23c4b03 100644 --- a/lib/go/templates/internal/assets/assets.go +++ b/lib/go/templates/internal/assets/assets.go @@ -1,8 +1,9 @@ // Code generated by go-bindata. DO NOT EDIT. // sources: // transactions/destroy_nft.cdc (1.22kB) -// transactions/generic_transfer_with_address.cdc (2.061kB) -// transactions/generic_transfer_with_paths.cdc (1.769kB) +// transactions/generic_transfer_with_address.cdc (3.434kB) +// transactions/generic_transfer_with_address_and_type.cdc (3.463kB) +// transactions/generic_transfer_with_paths.cdc (2.351kB) // transactions/mint_nft.cdc (2.952kB) // transactions/nft-forwarding/change_forwarder_recipient.cdc (1.194kB) // transactions/nft-forwarding/create_forwarder.cdc (1.591kB) @@ -20,7 +21,7 @@ // transactions/scripts/get_views.cdc (890B) // transactions/scripts/iterate_ids.cdc (794B) // transactions/setup_account.cdc (1.326kB) -// transactions/setup_account_from_address.cdc (1.593kB) +// transactions/setup_account_from_address.cdc (2.011kB) // transactions/setup_account_from_nft_reference.cdc (1.374kB) // transactions/setup_account_to_receive_royalty.cdc (1.621kB) // transactions/transfer_nft.cdc (2.097kB) @@ -114,7 +115,7 @@ func transactionsDestroy_nftCdc() (*asset, error) { return a, nil } -var _transactionsGeneric_transfer_with_addressCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x54\x4f\x6f\xea\x38\x10\xbf\xf3\x29\x66\x39\xb4\x89\xd4\xa6\x97\xd5\x1e\x22\x4a\xb7\x4b\x85\xd4\xc3\xa2\x55\x97\xf6\x9d\x1d\x7b\x02\x7e\x2f\xd8\x91\x3d\x81\x87\x2a\xbe\xfb\x93\xff\x24\x4d\x80\x96\x97\x03\x0a\xf1\xcc\xf8\xf7\x67\x66\xe4\xa6\xd6\x86\x60\xbc\xd0\x6a\xde\xa8\x95\x2c\x2a\x5c\xea\x1f\xa8\xc6\xa3\xf6\xe4\x5f\x24\x26\x18\xb1\x37\x89\x3b\x3b\x1e\x8d\xee\xee\xee\x60\xc6\x14\xd4\xcc\x5a\x90\x0a\x98\xda\x03\xd7\x8a\x0c\xe3\x04\x4c\x08\x83\xd6\x02\x53\x02\x14\xdb\xa0\x8f\x5e\xae\xa5\x85\x0a\xc9\xc2\x5e\x37\xc0\xd7\x5a\x5b\x04\x5a\x23\x90\xbb\xc9\x7f\xdc\x31\x45\x40\x1a\x2c\x2a\x01\x05\x72\xd6\xd8\x90\xeb\xc3\x0c\x53\x96\x71\x92\x5a\xc1\xca\x95\x71\x1f\x37\x11\x16\x94\x46\x6f\xfc\x97\xda\xe8\xad\x14\x28\x3a\x34\x99\xab\x30\xea\x65\x27\xa4\x73\x78\x0c\x10\x6f\x40\x8a\x1c\x5e\x9f\x15\xfd\xf5\xe7\x4d\x97\x12\x0f\x7b\x51\xed\xc9\x82\x6d\x30\x87\xff\xc9\x48\xb5\x4a\xe1\x7d\x34\x02\x00\xf0\xe4\x10\x16\xf3\x25\x18\xb4\xba\x31\xdc\x91\x82\x22\x62\x2e\xd1\x18\x14\x3e\xb2\x42\x02\xc2\x4d\xbd\x98\x2f\x73\xf8\xfb\xfd\x58\xee\x6c\x31\x5f\x1e\xba\x9a\x8b\xf9\x72\xa6\xab\x0a\x3d\xe8\x27\x47\xd2\x92\x69\xb8\x57\x68\x85\x04\x35\xa3\xb5\xf5\xc4\xbb\xda\x7c\x10\x9f\xc3\xc0\xb5\xec\xa4\x60\xb8\xaa\x36\x58\x33\x83\x89\x95\x2b\x85\x26\x07\xd6\xd0\x3a\xf9\x47\x1b\xa3\x77\x6f\xac\x6a\x30\x85\xab\x47\xce\x75\xa3\xa8\x63\x1c\x11\x86\x20\x60\x60\xb0\x44\x83\x2a\xf0\x76\x2e\xa8\x92\x3e\xda\x41\x60\x5d\xe9\x3d\x8a\xf6\xd0\xf5\x0c\x0a\x60\xa1\x68\x57\xd0\x11\x70\xfa\x55\x5b\x34\x2f\x58\xc2\xbd\x63\x19\x6f\x4e\x8e\xac\x49\xbb\x2c\xf7\x64\xed\xa9\xcd\x0a\x0f\x69\x72\x75\xa2\xed\x61\x9a\x28\x6f\x5e\xdf\xca\x61\x99\x87\x07\xa8\x99\x92\x3c\x19\xcf\x74\x53\x09\x50\x9a\xa0\xf8\x9c\xa2\x56\xb7\x65\xbc\x21\xf6\x70\x5b\x7a\x9c\x0e\x64\x7a\xf5\x8d\xce\x68\x58\xc3\x20\x19\x89\xdb\x30\x03\xa7\x5e\x6f\x25\xee\xa0\xab\x62\xb1\x2a\xb3\xa1\xbb\x70\xdf\x57\x2b\x8b\xef\xb3\x08\xc1\x39\x9e\xb4\xdd\xb8\xdc\xd7\x98\x83\x92\xd5\x8d\x2f\x1b\xfe\xba\xdf\xc9\x85\x06\x99\x26\x69\x0a\xcc\xfe\x71\xa9\x91\x1e\x2e\xea\x18\xe1\x7d\x45\xb6\xd4\xc6\x1f\xaf\xe4\x16\xd5\x25\x79\xfb\xfa\x7e\xee\x51\x68\xe9\x6b\xeb\x67\xf3\x43\xbe\x41\xcb\xed\x24\xad\x85\x61\xbb\xd0\x72\x21\x23\xb3\xa4\x0d\x5b\x61\xdb\x4e\x7e\x24\x4e\xa6\xf5\x5b\xcc\x4c\xe1\xb4\xdd\xb2\x0f\x86\x87\x69\x32\x90\xc7\x3d\x6e\x6a\xf3\x73\xae\xb6\x37\xff\xc7\x68\x3d\xc8\x4a\x7b\xb2\xc6\xa1\x00\xa1\xd1\x7a\x75\x5d\x12\x02\xeb\x51\x04\x5d\x7c\x47\xb7\x8a\x29\x08\x51\x23\x97\xa5\x44\xe1\xb7\x46\xbf\x3f\x3d\x86\xb8\x93\x60\x72\xdb\x97\x23\x6b\xdf\x93\xf6\xe5\xf9\x29\x07\x29\xc2\xd4\xc4\x45\x85\x3f\x91\x37\x84\xf0\xde\x77\xc4\xad\x27\x77\xad\x41\x2e\x6b\x89\x8a\x2c\xd4\x4d\x51\x49\xde\x0e\x7d\x84\x77\x34\xfb\x31\x78\x38\xf9\xa4\xd3\xf3\x6e\xc7\x8a\x27\xa6\x1b\xe4\x28\xb7\x68\xec\x67\x8e\xb7\x01\xc1\xf1\xee\xda\x8c\xb3\x9a\x15\xb2\x92\x24\xf1\x8b\x45\x92\xbd\xc4\xf4\xc3\x34\x39\x67\x60\x80\xe5\xfc\xfb\xed\xed\x72\x8e\x42\xc0\x74\x6d\x3b\xb4\x47\x4b\xe5\x09\x6b\x6d\x25\xb5\x03\x75\x4c\xbe\x0b\xed\x91\xcd\x44\xc8\x49\xfc\x38\xe5\x30\xb9\xed\x9b\xdf\xba\x7a\xf8\x15\x00\x00\xff\xff\x12\x96\x2e\xb2\x0d\x08\x00\x00" +var _transactionsGeneric_transfer_with_addressCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x56\x51\x6f\xdb\x36\x10\x7e\x9e\x7f\xc5\x45\x03\x5a\x09\x48\x94\x76\x18\x86\xc2\x88\xd3\x66\x69\x5d\xf4\x61\xc6\xd0\xba\xdd\x33\x2d\x9d\x64\xae\x32\xa9\x91\x27\x3b\x46\x90\xff\x3e\x1c\x29\xca\xa2\x9d\x34\xc3\xfc\xd0\x2a\xd2\xdd\x77\x77\xdf\x7d\xbc\xa3\xdc\xb4\xda\x10\x24\x0b\xad\xe6\x9d\xaa\xe5\xaa\xc1\xa5\xfe\x8e\x2a\x99\x84\x2f\x7f\x20\x89\x52\x90\xf8\x26\x71\x67\x93\xc9\xe4\x67\xa9\x08\x8d\x28\x48\x6a\x05\xe9\x04\x60\x8b\xc6\x4a\xad\xa6\x90\xbc\xce\x5f\xe5\xaf\x92\xf3\xc9\x4f\x24\xa9\xc1\x29\x24\x1f\x51\xa1\x91\x05\x2c\xe6\x4b\x58\x1a\xa1\x6c\x85\x06\x76\x92\xd6\x70\xab\x15\x31\x08\xdc\x94\xa5\x41\x6b\x41\xa8\x12\x16\x62\x83\xec\x5e\xa2\x2d\x8c\x6c\xc9\xa3\x0e\x8e\x42\xed\x61\xa1\xd5\x45\x48\x14\x5c\xa6\xb0\xda\x43\x6b\xf4\x56\x96\x52\xd5\x40\x6b\x84\x22\x60\x8b\x11\xb6\xea\xb1\x1b\xa1\xea\x4e\xd4\x9c\x1d\xaa\x8b\xaf\x5f\x92\xf3\x49\x36\x99\x5c\x5e\x5e\xc2\xad\x50\xd0\x0a\x6b\x41\x2a\x17\xea\x49\x18\x67\xbd\x5c\x4b\x0b\x0d\x92\x85\xbd\xee\xa0\x58\x6b\x6d\xd1\x45\x27\x97\x14\xbf\xdc\x09\x45\x40\x1a\x2c\xaa\x12\x56\x58\x88\xce\x7a\x5f\x67\xc6\x55\xf5\x2c\xd6\x0c\xc3\x2f\x37\x3d\xd7\x50\x19\xbd\x71\x6f\x7c\x65\x58\x0e\xd9\xe4\x8c\xe0\x50\xde\xb5\xc2\x88\x0d\x90\x9e\xc2\x72\x8d\x43\x96\xa4\x3d\x36\x33\x76\xc8\x87\xf4\xd8\x47\x96\xde\x47\x96\xa0\xab\xc1\x62\xf0\x1b\x9b\x86\xb8\x7d\x9f\xe2\x58\xec\x3c\x26\x9c\xd6\x82\xa0\xc4\x4a\x2a\xb4\xa3\xe0\x2b\x74\xad\xe9\xd1\x0d\x96\x8f\x05\xe0\xe6\x7b\x74\xe6\xf8\x7f\x43\xe7\xf0\xe1\x6e\x0a\xc9\x87\x3b\xb1\x69\x1b\x5c\xcc\x97\xc9\x40\x98\x6b\xd9\x98\x77\xad\x9a\x3d\xec\xb4\xf9\x6e\xbd\x28\x17\xf3\xa5\xf5\x81\xd6\x62\xdb\x77\x73\xdf\xf6\x09\x25\x01\x0b\x6e\xa0\x94\x55\x85\x06\xb9\xbd\x23\x38\x69\xc1\xe0\x3f\x9d\x34\x58\x42\xa5\x8d\x87\x73\xc0\x62\xec\x11\x10\x5d\x5e\x23\xff\x94\x3b\xd9\xd3\x7c\xee\x5a\xf4\xf5\x93\xa2\xdf\x7e\x3d\x3f\xed\xc1\x60\x15\x93\xf7\x85\x8c\x54\x75\x06\xf7\x93\x09\x00\x80\x2b\x19\xdd\xe1\x33\x68\x75\x67\x0a\x66\x0d\x56\x18\xb5\x82\x2d\x1b\x24\x20\xdc\xb4\x8b\xf9\x72\x0a\xef\xee\x8f\x87\x41\xbe\x98\x2f\x1f\x06\xcc\xc5\x7c\x79\xab\x9b\x06\x5d\xd2\xef\x59\xad\x96\x4c\x57\x38\xa9\xd7\x48\xd0\x0a\x5a\x5b\xa7\xe0\x01\xbb\x88\xec\xa7\x10\xcd\x94\xfc\x04\xd0\x87\x6a\x0d\xb6\xc2\x60\x6a\x65\xad\xd0\x4c\x41\x74\xb4\x4e\x7f\xd7\xc6\xe8\xdd\x37\xd1\x74\x98\xc1\x8b\x9b\xa2\xd0\x9d\xa2\xa1\xe2\x3e\x43\x6f\x04\x02\x0c\x3a\xd2\x7d\xdd\xdc\x4e\x55\xd1\x41\x52\x25\xb6\x8d\xde\x63\x19\x3e\xf2\xe1\xc7\x12\x84\x07\x1d\x00\xb9\x00\xe6\xaf\xd9\xa2\xf9\x8c\x15\xcc\xb8\xca\x3e\x72\x7a\xd4\x9a\x6c\xf0\xe2\x5f\x1e\xbe\xda\x7c\xe5\x52\xba\x7a\x71\xc2\xed\xc3\x75\xaa\x5c\xf3\xc6\xad\x8c\x61\xde\xbe\x85\x56\x28\x59\xa4\xc9\xad\xee\x9a\x12\x94\x26\x58\x3d\x5d\xa2\x56\x17\x55\x98\x90\xfe\x90\x04\xe8\x24\x8b\x68\xfa\xea\x26\x96\xa0\x18\xc3\x20\x19\x89\xbd\xfc\x4f\x7b\xbd\x95\xb8\x83\x01\xc5\x62\x53\xe5\x71\x77\x61\x36\x66\x2b\xef\x9f\xc3\xbc\xe7\x8e\xa7\x41\x8d\xcb\x7d\x8b\x53\x50\xb2\x39\x77\xb0\xfe\x4f\xfe\xf7\xea\x19\x81\x5c\xa7\x59\x06\xc2\x9e\x3d\x27\xa4\xb7\xcf\xf2\xd8\xa7\xf7\xa3\x62\xf9\x28\xf3\xe7\x5a\x6e\x51\x3d\x47\xef\x98\xdf\xa7\x7b\xe4\x25\xfd\xd2\xba\xb3\x79\xa0\x2f\x92\x1c\x0f\x8e\xd2\x88\x9d\x97\x9c\xf7\xc8\x2d\x69\x23\x6a\x0c\x72\x72\x47\xe2\xe4\xb4\xfe\xd5\x7b\x66\x70\x2a\xb7\xfc\x50\xe1\xc3\x75\x1a\xd1\xc3\x3f\x3e\xb5\xd3\xc7\xba\x1a\x22\xff\x29\x68\x1d\x79\x65\x23\x5a\xfb\x43\x01\xa5\x46\xeb\xd8\x65\x27\x04\x31\x2a\x11\xf4\xea\x6f\xe4\x9d\x4a\x9e\x88\x16\x0b\x59\x49\x2c\xdd\xd4\x18\xeb\xd3\xe5\xd0\xcf\x24\xb8\xba\x18\xd3\x91\x87\xe7\x34\x3c\x7c\x7a\x3f\x05\x59\xc6\xea\xfe\x88\x7d\x08\x37\x14\xc1\x60\x6b\xd0\xa2\x22\xe1\xd3\xf0\xeb\x25\x2c\x32\x06\xd2\x9d\x77\x78\x75\x37\xc0\x6c\x85\x09\x26\x7e\xb6\xc2\xec\x78\x18\xe7\xa4\xfd\xa7\xf4\x70\x68\x65\x15\x7b\xe5\x0d\xaa\x9a\xd6\x30\x9b\xc1\xeb\x37\x70\x1f\xf1\x77\x0c\x1f\x3b\xda\x46\x16\x98\xfa\xae\xfc\x72\x0e\x5d\xbb\xd4\x53\x78\xfd\xe6\x10\xea\x21\xd2\x0c\xef\x16\xef\x19\x96\x01\xcc\x20\xb9\xc9\x13\x9e\x44\x85\xa0\x34\x42\xcf\xc2\xdb\x24\x4f\x86\xe7\x68\x0c\x1d\x0c\x78\xf9\x65\x27\xb1\x60\x06\xb7\x7a\xd3\x6a\x2b\xc9\x1d\xe6\xf4\x90\xc0\xc1\x98\xa7\xaa\xa1\x58\x6b\xce\xf9\x6c\xe6\xce\x7e\xf4\x61\x83\xd6\xfa\xdb\xd9\xe1\x8c\x16\x06\x05\xb1\x8c\x9c\x17\xb7\xe9\xf8\x72\xe0\x16\x34\x5f\xcf\xfa\xfa\xce\x92\x01\x74\x24\x8a\xc7\x12\x19\xcb\x2c\xaf\x91\x5c\x15\x19\x77\x8a\x83\x9d\x3d\x95\x5c\xd8\xab\x6e\x7c\xee\x84\x1d\xe4\x19\xdd\xa3\xf8\x46\xc0\x05\x0c\x17\x89\xc1\x9c\xef\x09\x68\x09\xcb\x28\x53\xdf\x50\xf7\x1f\xde\x61\xd1\x11\x8e\xc4\x72\x79\xe9\xb6\x2b\x63\x19\x2c\x64\x2b\x51\x91\x85\xb6\x5b\x35\xb2\x08\x3b\xab\x3f\x5d\x47\xab\xab\x37\x8e\x17\x17\xe9\xec\xf1\x61\xd5\x23\x9e\xcc\x2c\x83\x05\x4a\xbe\xeb\x3f\x35\xb0\x82\x81\x1f\x58\x43\xd8\xbc\x10\xad\x58\xc9\x46\x92\xc4\x1f\xec\xc1\xfc\x73\xef\xfe\x70\x9d\x3e\x36\x7f\x7c\x5a\x3c\x7e\xfe\xf3\x72\x7c\xac\x04\x9f\xd3\x4b\x3b\x64\x7b\xb4\x13\xdf\xa3\x53\x73\xd8\x07\xc7\xc5\x0f\xa6\xa3\x62\xf3\xd2\xfb\xa4\x6e\x1b\x4c\xe1\xea\x62\x2c\xaa\xd0\xd5\x87\x7f\x03\x00\x00\xff\xff\xd2\x66\xd8\x7b\x6a\x0d\x00\x00" func transactionsGeneric_transfer_with_addressCdcBytes() ([]byte, error) { return bindataRead( @@ -130,11 +131,31 @@ func transactionsGeneric_transfer_with_addressCdc() (*asset, error) { } info := bindataFileInfo{name: "transactions/generic_transfer_with_address.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd3, 0x10, 0xad, 0x8b, 0x10, 0xaa, 0xe5, 0xf0, 0x8c, 0xdd, 0xf6, 0xfd, 0xad, 0xd4, 0x30, 0xda, 0xe3, 0x64, 0xd8, 0x3f, 0xba, 0x56, 0x6e, 0xe3, 0x3e, 0xe6, 0xff, 0x84, 0xe2, 0xc0, 0x31, 0x8e}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x33, 0xec, 0x84, 0x17, 0xc6, 0xaf, 0xbd, 0xb, 0x9f, 0x46, 0x81, 0x19, 0x77, 0xfa, 0xd7, 0x12, 0x7f, 0x2f, 0xc7, 0xb0, 0xe1, 0x62, 0x3e, 0x7b, 0x65, 0x34, 0x7b, 0xa0, 0x69, 0x9e, 0x1b, 0x3e}} return a, nil } -var _transactionsGeneric_transfer_with_pathsCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x94\x4b\x6f\xda\x40\x10\xc7\xef\x7c\x8a\x11\x87\xc4\x48\xc4\x5c\xaa\x1e\x50\x1e\x4d\x13\x21\xe5\x82\xa2\x84\xb6\xe7\x65\x77\x8c\x37\x31\xbb\xd6\xce\x38\x14\x45\x7c\xf7\x6a\x1f\x36\x26\x10\x55\x55\x7d\x5a\xdb\xf3\xfa\xff\xe6\x6f\xeb\x75\x6d\x1d\xc3\x70\x6e\xcd\xac\x31\x2b\xbd\xac\x70\x61\x5f\xd1\x0c\x07\x83\xc9\x64\x02\x77\xc2\x40\x2d\x88\x40\x1b\x10\x66\x0b\xc4\xd6\x89\x15\x42\x2d\xb8\x04\x61\x14\x38\x94\xa8\xdf\xd0\xc5\x27\xda\x10\xa3\x50\x60\x0b\x78\x69\x88\x81\x4b\x04\x85\x85\x68\x2a\xce\x43\xbd\x45\xa9\x09\x2a\x64\x82\xad\x6d\x40\x96\xd6\x12\x86\x28\xf6\x4d\xc3\xc3\x8d\x30\x0c\x6c\x81\xd0\x28\x10\x04\x1b\xac\xaa\x10\x22\x45\x2d\x96\xba\xd2\xbc\x3d\x8e\xd3\xfe\x18\x5a\x84\x36\xb7\x66\x9b\x2a\x86\xb1\xa4\x30\xb0\xc4\x20\x04\x43\x4d\x61\x40\xb8\x55\xb3\x46\xc3\x50\xa2\xc3\x31\x90\x85\x8d\xa8\xc2\x64\x54\xda\xa6\x52\xa1\x4e\x3c\x82\x2c\x51\xbe\xee\x33\xde\x44\xd5\x20\xf9\xde\x6b\xf1\x8a\x40\x8d\x8b\x1a\xb4\x61\x34\x0a\x55\xbf\xb5\xa6\xb6\xad\x36\x61\x3c\x76\xc2\x90\x90\xac\xad\xc9\xd8\x4e\xe1\x56\x29\x87\x44\x63\xd0\x6a\x0a\x3f\x1e\x0c\x7f\xfd\x32\x0e\x9a\xd0\x3d\x0a\x2e\x1f\x14\x1a\xd6\x85\x46\x37\x85\x67\x76\xda\xac\xc6\x1d\xf3\xd3\xef\x47\xf0\x3e\x18\x00\x00\x04\xdc\x08\xf3\xd9\x02\x1c\x92\x6d\x9c\xf4\x98\x3d\x88\x30\x43\x81\xce\xa1\x0a\x91\x15\x32\x30\xae\xeb\xf9\x6c\x31\x85\x6f\xef\x1f\xbd\x90\xcf\x67\x8b\x5d\xac\x59\x3b\xac\x85\xc3\x8c\xf4\xca\xf8\x96\xa2\xe1\x32\xfb\x6e\x9d\xb3\x9b\x9f\x9e\xca\x08\xce\x6e\xa5\xb4\x8d\xe1\x6e\x8c\xb6\x41\xb2\x8e\x1f\x1a\xae\xe0\x79\x7f\x97\xe9\x9e\x86\x53\xca\x47\x5d\x1d\x7f\xdd\xdc\x40\x2d\x8c\x96\xd9\xf0\x2e\x2c\xc7\x58\x06\x69\x0d\xb1\x6b\x24\x83\x38\xb4\x68\xe1\xec\x3a\xec\xa6\x76\xf6\x4d\xfb\xdd\xc4\xad\x74\xb5\x81\x02\xb4\xe1\x68\x3f\xec\x64\x02\xcb\xa0\x08\x04\x38\x2c\xd0\xa1\x89\xe4\x7c\x9d\x28\xfc\x9c\x02\x56\x69\xab\x0a\xc3\x2a\x0f\x94\x6e\x34\x97\xca\x89\xcd\x13\x16\x70\x95\x32\xf2\x34\x56\x1e\x4b\x5f\x06\x70\x47\xa0\x7f\xa5\xcc\x11\x9c\x1d\x6f\xe1\xae\xeb\xb6\xbb\xce\x0e\x90\xf8\xcb\x2b\x9d\xf6\x21\x1f\x44\x8c\x7a\xd8\xd2\x82\x40\x59\xa4\x40\xcf\x27\x21\x88\x9e\x1c\xb0\xcb\x17\xf4\x34\xe3\x27\x4c\x35\x4a\x4f\x2b\xd2\xeb\xb3\x22\xac\x8a\x3c\x59\x07\x2e\x2f\xfa\xd2\xf3\xf6\x9c\xb5\x87\x87\xfb\x29\x68\x15\xb7\x99\xfc\x84\xbf\x51\x36\x8c\xf0\x7e\x00\xb0\x6e\x96\x95\x96\xc9\x29\x8f\xdd\xcd\x81\x51\x4e\x7f\x04\xff\x66\x95\xd8\xe7\xbf\x9c\xb2\xc2\x88\xc8\xa1\xd4\xb5\x46\xc3\xd4\x56\x15\x09\x73\x44\x79\xa0\xaf\x0b\x86\x2b\x5f\x20\x2d\x24\x63\xfb\x89\x0b\x53\xc5\x23\x33\xb6\x0c\xe8\x33\x27\xb6\x01\xd1\x89\x5d\xdb\xbc\xfb\x95\x6a\xa4\xd6\x91\x27\x1c\xf7\x94\xd2\x77\xd7\xd9\x7e\x25\x7f\x47\x9c\xe6\x3e\x35\x6e\xec\x7f\x4e\xdd\x64\x1f\x70\xde\x63\x6d\x49\x47\xa4\xde\x52\x1f\x84\x76\xa1\x3d\x61\xb9\x8a\x39\x59\xf8\xeb\x4e\xe1\xf2\xa2\x6f\xca\xd6\x6d\xbb\x3f\x01\x00\x00\xff\xff\x6c\xca\xb1\x6c\xe9\x06\x00\x00" +var _transactionsGeneric_transfer_with_address_and_typeCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x57\xdd\x8e\xdb\x36\x13\xbd\xfe\xf4\x14\xb3\xfa\x80\x44\x02\xbc\xda\xa4\x28\x8a\x40\x58\x6f\x92\x6e\xe2\x20\x17\x35\x8a\x44\x49\xaf\x69\x69\x24\xb3\x95\x49\x95\x1c\xd9\x6b\x04\x7e\xf7\x82\xa4\x28\x8b\xb6\x77\xb7\x68\x2e\x12\x59\x9a\x39\xf3\x77\x78\x86\xe1\x9b\x4e\x2a\x82\x78\x29\xc5\xa2\x17\x0d\x5f\xb5\x58\xc8\xbf\x50\xc4\x91\xff\xf2\x1b\x12\xab\x18\xb1\xef\x1c\x77\x3a\x8e\xa2\xff\x73\x41\xa8\x58\x49\x5c\x0a\x48\x22\x80\x2d\x2a\xcd\xa5\xc8\x21\x7e\x9d\xbd\xca\x5e\xc5\xb3\xe8\x7f\xc4\xa9\xc5\x1c\xe2\x4f\x28\x50\xf1\x12\x96\x8b\x02\x0a\xc5\x84\xae\x51\xc1\x8e\xd3\x1a\xee\xa5\x20\x03\x02\xef\xab\x4a\xa1\xd6\xc0\x44\x05\x4b\xb6\x41\xe3\x5e\xa1\x2e\x15\xef\xc8\xa1\x8e\x8e\x4c\xec\x61\x29\xc5\xb5\x4f\x14\x6c\xa6\xb0\xda\x43\xa7\xe4\x96\x57\x5c\x34\x40\x6b\x84\xd2\x63\xb3\x09\xb6\x60\x1b\xb4\x0f\xb4\xef\xd0\xfe\x32\x91\x5a\x26\x9a\x9e\x35\x26\x57\x14\xd7\xdf\xbe\xc6\xb3\x28\x8d\xa2\x9b\x9b\x1b\xb8\x67\x02\x3a\xa6\x35\x70\x61\x03\x3f\x0d\x6a\x0a\x1c\x81\xad\x7f\xb1\xe6\x1a\x5a\x24\x0d\x7b\xd9\x43\xb9\x96\x52\xa3\xcd\x8e\x6c\xd2\xe6\xe5\x8e\x09\x02\x92\xa0\x51\x54\xb0\xc2\x92\xf5\xda\xf9\x5a\x33\x53\xf5\xd0\xe5\xc6\xc0\x98\x97\x9b\x61\x16\x50\x2b\xb9\xb1\x6f\x5c\xe5\x58\x8d\xf9\x65\x06\xc1\xa2\xbc\xeb\x98\x62\x1b\x20\x99\x43\xb1\xc6\x31\x6f\x92\x0e\xdb\x74\xf4\x98\x0f\xc9\xa9\x0f\xaf\x9c\x0f\xaf\x40\xd6\xa3\xc5\xe8\x37\x35\xf5\x71\x87\x39\x86\xb1\x8c\xf3\x74\x20\xb4\x66\x04\x15\xd6\x5c\xa0\x9e\x04\x5f\xa1\x1d\xdd\x80\xae\xb0\xba\x14\xc0\x90\xc3\xa1\xdb\xae\xff\x57\xe8\x0c\x3e\x3e\xe4\x10\x7f\x7c\x60\x9b\xae\xc5\xe5\xa2\x88\xa7\xc1\x44\x4d\xc5\xbe\xc3\x63\xac\x71\xa8\x3e\xa0\x9d\xb4\x89\x65\x7e\xf4\xda\xf0\x99\x09\xd2\x67\xed\x39\xfd\x63\xa3\xfa\x70\xd1\x64\xba\x89\x19\xd0\xd0\xbd\x99\xed\xfc\xb7\xcf\x82\x7e\xf9\x79\x76\xde\xda\xd1\x2a\xec\xc9\x57\x52\x5c\x34\xb3\x30\x79\xf7\x32\x85\x1f\x51\x64\xc2\x5b\x46\xba\xec\x15\x6a\xd9\xab\xd2\x74\x08\x56\x18\xb4\xdd\x58\xb6\x48\x40\xb8\xe9\x96\x8b\x22\x87\x77\x3f\x4e\x85\x21\x5b\x2e\x8a\xc3\x88\xb9\x5c\x14\xf7\xb2\x6d\xd1\x56\xf2\xc1\x30\x53\x93\xea\x4b\x4b\xeb\x06\x09\x3a\x46\x6b\x6d\xd9\x3a\x62\x97\x81\x7d\x0e\x81\xbe\x64\x67\x80\x2e\x54\xa7\xb0\x63\x0a\x13\xcd\x1b\x81\x2a\x07\xd6\xd3\x3a\xf9\x55\x2a\x25\x77\xdf\x59\xdb\x63\x0a\x2f\xde\x97\xa5\xec\x05\x8d\x15\x0f\x19\x3a\x23\x60\xa0\xb0\x46\x85\xc2\xd5\x6d\x86\x27\x6a\x3a\xd2\xa7\xc2\xae\x95\x7b\xac\xfc\x47\x73\xf4\xb1\x02\xe6\x40\x47\x40\x53\x80\xe9\x5f\xbb\x45\xf5\x05\x6b\x98\x9b\x2a\x87\xc8\xc9\xc9\xbc\xd2\x68\x3a\xff\xcc\x7f\xd5\xd9\xca\xa6\x74\xfb\xe2\xac\xb7\x87\xbb\x44\xd8\xe1\x4d\xe7\x1b\xc2\xbc\x7d\x0b\x1d\x13\xbc\x4c\xe2\x7b\xd9\xb7\x15\x08\x49\xb0\x7a\xbc\x44\x29\xae\x6b\xaf\x96\xee\x40\x78\xe8\x38\x0d\xda\xf4\xcd\xaa\x13\xa3\x10\x43\x21\x29\x8e\x5b\xf4\xcc\x3f\x99\xf5\x96\xe3\x0e\x46\x14\x8d\x6d\x9d\x85\xd3\x85\xf9\xb4\x5b\xd9\xf0\xec\xb5\xdf\x4c\x3c\xf1\x6c\x34\xcc\xcd\x41\xf0\x76\x66\x61\xdd\x4f\xf3\xf7\xed\x33\x04\xb9\x4b\xd2\x14\x98\xbe\x7a\x8e\x48\x6f\x9f\xed\xe3\x90\xde\x53\xc5\xd6\xd2\x89\x66\xc3\xb7\x28\x9e\x6b\xef\xb4\xbf\x8f\xcf\xc8\x51\xfa\xa5\xb6\x67\xf3\xd8\xbe\x80\x72\x66\x65\x56\x8a\xed\x1c\xe5\x9c\x47\xa6\x49\x2a\xd6\xa0\xa7\x93\x3d\x12\x67\xa7\xf5\x8f\xc1\x33\x85\x73\xba\x65\xc7\x0a\x0f\x77\x49\x74\xaa\x58\xe6\xd4\xe6\x97\xa6\xea\x23\xff\xce\x68\x1d\x78\xa5\x93\xb6\x0e\x87\x02\x2a\x89\xda\x76\xd7\x38\x21\xb0\x49\x89\x20\x57\x7f\xa2\xd9\xa8\x4e\x4c\x75\x87\x25\xaf\x39\x56\x56\x35\xa6\xfc\xb4\x39\x0c\x9a\x04\xb7\xd7\xd3\x76\x64\xfe\x39\xf1\x0f\x9f\x3f\xe4\xc0\xab\x90\xdd\x9f\x70\x08\x61\x45\x11\x14\x76\x0a\x35\x0a\x62\x2e\x0d\xa7\xec\x7e\x69\x19\x20\xd9\x3b\x87\x57\x0f\x23\xcc\x96\x29\x6f\xe2\xb4\x15\xe6\xa7\x0a\x9d\x91\x74\x9f\x92\xe3\xa1\xe5\x75\xe8\x95\xb5\x28\x1a\x5a\xc3\x7c\x0e\xaf\xdf\xc0\x8f\xa0\x7f\xa7\xf0\xa1\xa3\x6e\x79\x89\x89\x9b\xca\x4f\x33\xe8\xbb\x42\xe6\xf0\xfa\xcd\x31\xd4\x21\xe0\x8c\xd9\x5c\xce\xd3\x2f\x03\x98\x43\xfc\x3e\x8b\x8d\x12\x95\x8c\x92\x00\x3d\xf5\x6f\xe3\x2c\x1e\x9f\x03\x19\xba\x64\x30\xd9\x38\xe9\x59\x70\x98\xc3\xbd\xdc\x74\x52\x73\xb2\xa7\x3b\x39\x66\x74\x34\x36\x32\xab\x28\x24\x9f\x75\xbe\x9a\x5b\x31\x08\x3e\x6c\x50\x6b\x77\x59\x3b\x1e\xda\x52\x21\x23\xc3\x2b\xeb\x65\xe6\x76\x7a\x33\x18\x2f\x69\x43\xc1\x57\xf1\x08\x3a\x61\xc9\xa5\x44\xa6\xbc\xcb\x1a\xb4\xb5\x26\xa9\x19\x9d\x09\x76\xf5\x58\x72\xc5\xf4\x9a\xb0\x63\x7a\xe4\x6b\x70\x89\x02\xee\xce\x05\xf9\x5b\xc6\x68\xae\xf0\xef\x1e\x35\x61\x15\x64\xea\x26\x6c\xff\xc1\x07\x2c\x7b\xc2\x09\x7b\x6e\x6e\xec\xba\x35\x58\x0a\x4b\xde\x71\x34\x77\x92\xae\x5f\xb5\xbc\xf4\x4b\x6c\x38\x6e\x27\xbb\x6c\x30\x0e\x37\x19\xc9\xf4\xb2\x7a\x0d\x88\x67\x22\xa6\xb0\x44\x6e\xfe\x23\xf0\x98\x82\x79\x03\xa7\x60\x63\xd8\xac\x64\x1d\x5b\xf1\x96\x13\xc7\x27\x16\x63\xf6\x65\x70\x3f\xdc\x25\x97\x04\xc9\xa5\x65\xf4\xe8\x5f\x6f\xcb\x4b\x25\xb8\x9c\x5e\xea\x31\xdb\x93\x25\xf9\x01\x2d\x9b\x8f\xf7\xc0\xb0\xf8\xd1\x74\x52\x6c\x56\x39\x9f\xc4\xae\x87\x1c\x6e\xaf\xa7\xa4\xf2\x53\x3d\xfc\x13\x00\x00\xff\xff\xf8\xae\x72\x21\x87\x0d\x00\x00" + +func transactionsGeneric_transfer_with_address_and_typeCdcBytes() ([]byte, error) { + return bindataRead( + _transactionsGeneric_transfer_with_address_and_typeCdc, + "transactions/generic_transfer_with_address_and_type.cdc", + ) +} + +func transactionsGeneric_transfer_with_address_and_typeCdc() (*asset, error) { + bytes, err := transactionsGeneric_transfer_with_address_and_typeCdcBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "transactions/generic_transfer_with_address_and_type.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x26, 0x7e, 0xf6, 0x9e, 0x32, 0x99, 0x69, 0xdf, 0x14, 0x69, 0xd6, 0xdf, 0xae, 0x88, 0x10, 0xdf, 0x36, 0xa7, 0xba, 0x26, 0xaf, 0xd0, 0x82, 0xc7, 0x17, 0x96, 0xe1, 0x8d, 0xa7, 0x43, 0xaf, 0xf5}} + return a, nil +} + +var _transactionsGeneric_transfer_with_pathsCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x55\xdf\x6f\xdb\x36\x10\x7e\x9e\xff\x8a\x83\x07\xb4\x32\xe0\xc8\x1d\x30\xec\xc1\x48\xda\x66\x29\x32\xe4\xc5\x28\x1a\x77\x7b\xa6\xc9\x93\xc5\x46\x3e\x0a\xe4\x29\x9e\x11\xe4\x7f\x1f\x78\xa4\x64\x39\x3f\x30\xa4\x7a\x12\xe5\xbb\xef\xbe\xfb\xee\xe3\xd9\xee\x5a\xe7\x19\xa6\x2b\x47\xd7\x1d\x6d\xed\xa6\xc1\xb5\xbb\x43\x9a\x4e\x26\xbf\x5a\x62\xf4\x4a\xb3\x75\x04\xc5\x04\xe0\x1e\x7d\xb0\x8e\x96\x30\xfd\xad\xfc\x50\x7e\x98\xce\x27\xbf\xb0\xe5\x06\x97\x30\xfd\x0b\x09\xbd\xd5\xb0\xba\x5e\xc3\xda\x2b\x0a\x15\x7a\xd8\x5b\xae\xe1\xab\xe2\x3a\xc4\x50\x83\x41\x7b\xdb\x72\x42\x18\x82\x14\x1d\x60\xe5\xe8\xac\xaf\x0e\x52\x1e\x36\x07\x68\xbd\xbb\xb7\xc6\xd2\x16\xb8\x46\x68\x23\x0e\x54\xce\xcb\x29\xb8\xce\x6b\x84\x2b\xd7\x34\x98\x08\x2a\x32\x60\x30\xb0\x25\x25\xe7\xe3\x4f\xb1\x78\xa3\x68\xdb\xa9\x6d\xa4\x8a\x74\xf6\xfd\x76\x3a\x9f\xcc\x26\x93\xc5\x62\x01\x57\x8a\xa0\x55\x21\x80\x25\xe1\x12\xd8\x79\xb5\x4d\xf5\x04\xd4\xa3\x46\x7b\x8f\x3e\x7d\xb1\x14\x18\x95\x01\x57\xc1\x8f\x2e\xb0\x90\x31\x58\xa9\xae\xe1\x52\xf0\xd6\xb5\x0d\xd0\x20\x07\x38\xb8\x0e\x74\xed\x5c\x40\x89\x62\xe9\x2b\x7e\xdc\x2b\x62\x60\x07\x01\xc9\x80\x0a\xb0\xc7\xa6\x91\x10\xad\x5a\xb5\xb1\x8d\xe5\xc3\xf3\x38\x1b\x5f\xa5\x84\x94\xb9\xa4\x43\x46\x14\x5a\x5a\x11\x6c\x50\x1a\x41\xc1\x54\x04\xca\x6f\xbb\x1d\x12\x43\x8d\x1e\xe7\x10\x1c\xec\x55\x23\xcc\x42\xed\xba\xc6\x08\x4e\x7a\x05\x5d\xa3\xbe\x3b\x66\xdc\xab\xa6\xc3\x10\x6b\xef\xd4\x1d\x42\xe8\x7c\xea\x21\x3a\x82\x0c\x9a\x71\x69\x1b\xfa\xb2\x96\x06\x7a\x9f\x5b\xe5\xd5\x0e\xd8\x2d\x61\x5d\x23\x28\x63\x3c\x06\x01\xe4\x7e\xf0\x47\x4d\xd8\x8d\x73\xac\x49\x39\x56\x44\x1e\x47\x0d\xb9\xe3\xf0\x28\x0e\xfa\xe8\xb2\x1b\x83\xc4\xb6\xb2\xe8\x13\x40\x60\x1f\xcd\x63\x87\xcf\x3d\xde\x78\xc4\x02\x95\x9f\x7d\x14\x6a\x54\x31\x6b\xb3\x41\x71\xb2\xf1\x6a\x4f\x50\x79\xb7\x1b\x97\xef\xdd\xf1\x26\x02\x6d\xb7\x69\xac\x7e\x43\x7d\x83\xad\x0b\x96\x45\x78\xd1\x58\x94\x48\x57\xb3\x88\x22\x5f\x26\x81\xe7\xa2\xde\xf7\x1b\xe2\x3f\x7e\x9f\xbf\x22\xcd\xad\xb0\x9a\xbf\xca\x3c\xfd\x3e\x83\x87\xc9\x24\x92\x12\x4b\xa3\x5c\x6c\x8f\xf9\xda\xb1\x8b\xa4\xfa\x69\x78\x34\x12\xd9\x20\x03\xe3\xae\x5d\x5d\xaf\x97\xf0\xf9\xe1\xe9\x46\x29\x57\xd7\xeb\xc7\x84\xd9\x7a\x6c\x95\xc7\x22\xd8\x2d\xc5\x92\xaa\xe3\xba\xf8\xd3\x79\xef\xf6\x7f\x47\xe7\xcd\xe0\xdd\xa5\xd6\xae\x23\x1e\x68\xf4\x05\xf2\xec\x22\x69\xb8\x80\xdb\xe3\xa9\xb0\xa3\x1e\x5e\xea\x7c\x36\xe0\xc4\xe7\xd3\x27\x68\x15\x59\x5d\x4c\xaf\x44\x64\x72\x0c\xda\x51\x60\xdf\x69\x06\x75\xba\x06\xe2\xd0\xd3\xe0\x64\x25\xa1\xc9\xce\x3f\x0e\x36\x8d\x7a\x3a\x3b\x92\x5d\x2c\x60\x23\x1d\x81\x02\x8f\x15\x7a\xa4\xa4\x9c\x38\x50\x1a\x7f\x1f\x44\x56\x3d\x6c\xaa\x93\x4e\x7b\xcf\x7d\xc3\x0a\x2e\x72\x46\x99\x69\x95\x09\xfa\x5c\x84\x7b\x26\xf4\x3f\x39\x73\x06\xef\x9e\x4f\xe1\xb8\x17\x1f\x3f\x16\x27\x92\xc4\x27\x76\xba\x1c\x8b\x7c\x12\x31\x1b\xc9\x96\x07\x04\xc6\x61\x10\xf5\x62\x12\x82\x1a\xb5\x03\x6e\xf3\x03\xa3\x9a\x69\x4d\x86\x16\x75\x54\x2b\xa9\x37\xd6\x2a\x60\x53\x95\xd9\x3a\x70\x7e\x36\x6e\xbd\xec\xdf\x8b\xfe\xe5\xe6\xcb\x12\xac\x49\xd3\xcc\x7e\xc2\x7f\x51\x77\x8c\xf0\x70\x22\x60\xba\x65\xd9\x29\x5f\x87\xc3\x89\x51\x5e\xbe\x04\x6f\xb3\xca\xe8\x36\xff\xac\x53\xb6\x98\x24\xf2\xa8\x6d\x6b\x91\x38\xf4\xa8\x2a\xcb\x9c\xa4\x3c\xe9\x6f\x08\x86\x8b\x08\x90\x07\x52\xb0\x7b\xc5\x85\x19\xf1\x99\x19\x7b\x0d\xc2\x6b\x4e\xec\x03\x92\x13\x87\xb2\xe5\xf0\x77\x65\x31\xf4\x8e\x7c\xc1\x71\xdf\x72\xfa\xe3\xc7\xe2\x38\x92\xff\x97\x38\xf3\x7e\x89\x6e\xaa\xff\x3e\x0c\xcc\x9e\xc8\xf9\x25\xad\x4b\x09\x8f\x96\x7a\xd2\xe8\x10\x3a\x6a\xac\xcc\x2b\xb6\x90\xd5\xbb\x84\xf3\xb3\xb1\x29\x7b\xb7\x3d\xfe\x17\x00\x00\xff\xff\x94\xc6\x9f\x9d\x2f\x09\x00\x00" func transactionsGeneric_transfer_with_pathsCdcBytes() ([]byte, error) { return bindataRead( @@ -150,7 +171,7 @@ func transactionsGeneric_transfer_with_pathsCdc() (*asset, error) { } info := bindataFileInfo{name: "transactions/generic_transfer_with_paths.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x61, 0x65, 0x69, 0x6b, 0x98, 0x37, 0xef, 0x86, 0xc4, 0x16, 0x94, 0x5, 0x98, 0xad, 0x68, 0x69, 0x48, 0x0, 0xdb, 0xd6, 0xb7, 0xda, 0x10, 0x95, 0xcc, 0x52, 0x85, 0x67, 0x6b, 0xbd, 0x3e, 0xa8}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5b, 0x6d, 0x31, 0x9, 0xd4, 0x59, 0x93, 0x73, 0xcc, 0x48, 0x15, 0x3, 0x2a, 0x97, 0x5b, 0xd3, 0x4b, 0xeb, 0xdd, 0x46, 0x3e, 0xb1, 0x74, 0xc, 0x7e, 0xb9, 0xaf, 0x63, 0x5a, 0x66, 0x52, 0x2f}} return a, nil } @@ -494,7 +515,7 @@ func transactionsSetup_accountCdc() (*asset, error) { return a, nil } -var _transactionsSetup_account_from_addressCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x54\x4f\x6f\xdb\x3e\x0c\xbd\xfb\x53\xf0\x97\x43\x61\x03\xa9\x73\x0f\xd2\x16\xfd\x79\x2b\xb0\xc3\x82\x62\xcd\x7a\x67\x64\x3a\x16\xea\x4a\x82\x44\xdb\x08\x8a\x7c\xf7\x41\xfe\x97\xc8\x6d\x57\x4c\x87\xc0\x31\xc9\xc7\xc7\xe7\x47\xad\x56\x2b\xd8\x95\xd2\x01\x5b\x54\x0e\x05\x4b\xad\x40\x3a\x68\x4b\x64\x40\x05\x28\x84\xae\x15\x43\xab\xeb\x2a\x07\x5b\xab\xc8\x57\xb0\x06\x47\x0c\x92\x1d\x55\x05\xd4\xc6\xbf\xb0\x24\x48\x36\x04\xdb\x87\x9d\x4b\x7b\xcc\xa2\x56\x1d\x60\x57\x53\x3b\x72\xd0\x48\x6a\x9d\xcf\x7e\x51\xba\x85\xb6\x24\x4b\x23\x98\x47\x29\x09\x84\xae\x2a\x3a\x57\x49\x05\x8e\xb5\xc5\x03\x01\xaa\xdc\xe7\x0a\x4b\xc8\xd4\xe5\xd2\xab\xe1\xe3\x45\x45\x1a\x45\xf2\xd5\x68\xcb\xb0\xd8\x6a\xf5\x50\xab\x83\xdc\x57\xb4\xd3\x2f\xa4\x16\x53\xe4\x27\x31\xe6\xc8\xf8\xec\xa9\x2c\xa2\xe8\x62\xf0\x58\x68\xc5\x16\x05\xdf\xe7\xb9\x25\xe7\xd6\x30\x3c\x2c\x61\x8c\x6c\xf1\x95\xd6\xf0\xc4\x56\xaa\x43\x02\x6f\x51\x04\x00\x60\x2c\x19\xb4\x14\x3b\x79\x50\x64\xd7\x80\x35\x97\xf1\x0f\xe7\x6a\x7a\xea\xb9\x67\x68\x70\x2f\x2b\xc9\xc7\xcc\xe3\x78\xc2\x76\x09\x8f\xf5\xbe\x92\xae\x3c\x07\x97\xf0\x84\x0d\x3d\x63\x55\x53\x02\x57\xf7\xbd\xf4\xbe\x0b\x0c\x67\xb5\x82\xff\xb5\xb5\xba\x05\x04\x4b\x05\x59\x52\xa2\x13\xd0\xab\xa1\x0a\x9e\x68\x42\x4e\xa6\xd2\x47\xca\xc7\xa0\x41\xe7\x28\x1f\x3f\xe7\x04\x58\x11\x83\x25\xa7\xab\x86\xec\x2f\x2a\xe0\x06\x0e\xc4\x43\xe3\xb9\x1a\xc9\x54\xe5\x4f\x3a\x46\x5d\xba\xef\x28\x6d\xae\xde\xe6\xa2\x9f\x6e\x63\xd5\xe9\x75\xa9\x5e\x08\x73\x77\x07\x06\x95\x14\xf1\x22\xeb\x1c\xa6\x34\xc3\xfe\xf3\x11\xb5\xba\x2e\x86\x0e\xc0\xbe\xc5\x04\xbd\x48\xa2\x4b\x99\x7e\x3b\x6f\x11\xe4\x10\xc3\x12\x5b\x49\x4d\xef\x9e\xed\xc3\x2e\x9b\xac\xf3\x0d\x19\x3b\x77\x42\xa0\x8d\x08\x13\x6e\x2e\xc5\x4a\x87\xe7\x6c\x60\xe0\x0d\x15\xfb\x77\xb5\x15\xb4\x3b\x1a\x5a\x83\x92\xd5\xb2\x43\xed\xff\xfa\xdf\x4d\xe0\xbf\xf4\x1d\x89\xdb\x38\x49\x00\xdd\x7f\xf0\x45\xde\xdd\x97\x32\x0e\xf4\xfe\x36\x6b\xa1\x6d\x17\x3e\xc8\x86\xd4\x3f\xa8\x9b\xf5\x3b\x88\xa0\xa8\x7d\xb7\x85\x2e\x50\xb0\x8b\x9e\x7b\xc3\xe6\x7a\x26\x6a\xda\x2f\xf4\xf7\x30\x2f\x0e\x1b\x3a\x6c\x08\x24\x8f\x3e\x98\xdb\xb8\x5f\xbc\x74\xb8\x29\x52\x9f\x1d\x6f\xae\x67\xad\x97\xc0\x7a\x3d\x6f\x3e\x94\x3c\x22\x97\x61\x47\x31\x8e\x68\xfc\x96\x0a\x10\xd3\x96\x4e\xaa\x5d\x5c\x55\x1f\x7b\x26\x43\x03\x37\x23\xb9\x09\x40\x92\x9b\x98\x4a\x7f\x49\x7c\xb0\x39\xe9\x99\xf6\xe9\x36\x0e\x3e\xb5\x3f\x9f\x0f\x11\xa4\x26\x73\x81\x02\x0e\xa6\xbf\x7e\xe2\x80\xef\x12\x90\xdf\x89\xd4\x4b\xd0\x6b\xe4\xd1\x4e\xd1\x29\xfa\x13\x00\x00\xff\xff\xad\x8f\x80\x4c\x39\x06\x00\x00" +var _transactionsSetup_account_from_addressCdc = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x94\xcd\x8e\xdb\x46\x0c\xc7\xcf\xd5\x53\xb0\x2a\x10\xc8\x80\x57\x4e\xaf\xc6\x7e\x34\x75\xd7\x45\x0f\x35\x82\xae\x92\x3b\x2d\x51\xd2\x20\x32\x67\x30\x43\xc9\x71\x83\x7d\xf7\x62\x46\x1f\xb6\xbc\x9b\x2e\x5a\x1d\x0c\x59\x43\xfe\x49\xfe\x86\xa4\x3a\x18\x6d\x05\xe2\x9d\xe6\x6d\xcb\x95\xda\x37\x94\xe9\x2f\xc4\x71\x34\x9e\xfc\x49\x82\x05\x0a\x7e\x56\x74\x74\x71\x14\xfd\xa4\x58\xc8\x62\x2e\x4a\x33\x24\x11\x40\x47\xd6\x29\xcd\x6b\x88\x7f\x4e\xdf\xa7\xef\xe3\x65\xf4\x83\x28\x69\x68\x0d\xf1\xef\xc4\x64\x55\x0e\xdb\x0c\x32\x8b\xec\x4a\xb2\x70\x54\x52\xc3\x46\xb3\x78\x0d\xf8\x50\x14\x96\x9c\x03\xe4\x02\x76\x78\x20\xef\x5d\x90\xcb\xad\x32\xd2\x8b\x4e\x8e\xc8\x27\x18\x73\x84\x90\x24\xec\x4f\x60\xac\xee\x54\xa1\xb8\x02\xa9\x09\xf2\x51\x17\x2f\x74\x79\xd0\x6d\x90\xab\x16\x2b\x9f\x18\xf1\xcd\xa7\xa7\x78\x19\x2d\xa2\x68\xb5\x5a\x41\x56\x2b\x07\xe2\x03\x0d\x75\x29\x07\xc7\x1a\x05\x90\x01\xf3\x5c\xb7\x2c\x70\xd4\x6d\x53\x80\x6d\x39\x78\x88\x06\x47\x02\x4a\x1c\x35\x25\xb4\xc6\x7f\xb0\x94\x93\xea\x08\x76\xdb\xcc\xa5\xbd\x66\xd9\x72\x10\x0c\x3e\xad\x23\x07\x9d\xc7\xe8\xad\xbf\xb0\x3e\xc2\xb1\x26\x4b\xa3\x98\x57\x09\x35\x34\x0d\x9d\xbd\x14\x83\x13\x6d\xb1\xa2\x50\x8c\x68\xc8\x2d\xa1\x50\xb0\xa5\x83\x91\xd3\x85\x47\xea\x5d\x82\xdb\x2f\x06\x2d\x1e\x26\x20\x03\xe7\x35\x64\x35\x4d\x70\x74\x39\x87\x26\xbe\xe4\x82\x4a\xc5\xe4\xc2\x89\xf4\x94\xc9\xe3\x55\xac\x44\x61\xa3\xfe\xa6\xe2\xb5\x00\xfe\xf2\x7a\x75\x8f\xfb\x7f\x4b\xa7\xf0\xf8\x75\x0d\xf1\xe3\x57\x3c\x98\x86\x76\xdb\x2c\x8e\xa2\x8b\x8b\x49\x5e\xd4\x33\xbc\x2c\xaf\x12\x79\x12\xab\xb8\x5a\xc0\xb7\x28\x02\x00\x30\x96\x0c\x5a\x4a\x9c\xaa\x98\xec\x1a\xb0\x95\x3a\xf9\xc3\xb9\x96\x9e\x7a\xb6\x1b\x34\xb8\x57\x8d\x92\x53\x68\x4d\x0f\xd4\x2e\xe1\x63\xbb\x6f\x94\xab\xcf\x87\x4b\x78\xc2\x8e\x3e\x63\xd3\xd2\x02\xde\x7d\xe8\x5b\xc3\x47\x81\xe1\x59\xad\xe0\x57\x6d\xad\x3e\x02\x82\xa5\x92\x2c\x71\x1e\x2e\xd8\xd7\xcc\xa5\x9c\x89\x14\x64\x1a\x7d\xa2\x62\x3c\x34\xe8\x1c\x15\x63\xbb\x4d\x82\x0d\x09\x58\x72\xba\xe9\xc8\xfe\x45\x25\xdc\x41\x45\x32\x04\xbe\xa6\xb1\x98\xbc\xfc\x93\x8e\xa7\x2e\xdd\x87\x94\x6e\xdf\x7d\xbb\x1e\xf3\xe7\xfb\x84\x03\xaf\x4b\x7a\x73\x99\x87\x07\x30\xc8\x2a\x4f\xe2\x4d\x98\x00\xd6\x02\xfb\xef\x97\xa8\xf9\xa6\x1c\x87\xb4\xbf\xe3\x51\x3a\x5e\x44\x97\x98\x3e\x39\xea\xbb\x62\xa6\x61\x49\xac\xa2\xae\xef\xee\xdd\x36\xdb\x4c\xad\xfd\x1b\x0a\x86\xe9\x81\x19\x9b\x7c\x6e\x70\x77\x09\x2b\x1d\xde\xc7\x6d\xe3\x57\x58\xe2\xbf\xb5\x36\xa7\xec\x64\x68\x0d\xac\x9a\x65\x50\xed\xff\xfa\xdf\xdb\xd9\xc6\x4b\x5f\x24\x71\x9f\x2c\x16\x80\xee\x47\x78\xc3\xee\xe1\x4d\x8c\x43\x7a\xff\x56\x6b\xa9\x6d\x38\xae\x54\x47\xfc\x1f\xe8\x6e\xfa\x1d\x81\xc0\x74\x7c\xb1\x25\xdc\x8c\x60\x38\x3d\xc7\x86\xdb\x9b\x2b\xa8\x69\xbf\x70\x1e\xe7\x76\xc9\x3c\xa0\xc3\x8e\x40\xc9\xd8\x07\xd7\x6d\xdc\x0f\x5e\x3a\x6c\xb2\xd4\x5b\x27\xb7\x37\x57\xa1\x97\x20\x7a\x7d\x1d\x7c\x70\xf9\x88\x52\xcf\x23\xe6\x63\x89\xc6\x4f\x69\x0e\xf9\x34\xa5\x13\xb5\x8b\x55\xfa\x7a\xcf\x6c\xd0\xc0\xdd\x98\xdc\x24\xa0\xc8\x4d\x99\x2a\xbf\x24\x5e\x99\x9c\xf4\x9c\xf6\xf3\x7d\x32\xbb\x6a\xff\x7c\xbf\x88\x99\xe9\xe2\x1a\xd0\x2c\x07\xd3\xaf\x9f\x64\x96\xef\x12\x50\x5e\x40\xea\x11\xf4\x8c\xbc\xda\x73\xf4\x1c\xfd\x13\x00\x00\xff\xff\xb6\xf8\xaf\x7e\xdb\x07\x00\x00" func transactionsSetup_account_from_addressCdcBytes() ([]byte, error) { return bindataRead( @@ -510,7 +531,7 @@ func transactionsSetup_account_from_addressCdc() (*asset, error) { } info := bindataFileInfo{name: "transactions/setup_account_from_address.cdc", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbd, 0xd5, 0xda, 0xc2, 0x14, 0x52, 0xcb, 0x3b, 0x70, 0xef, 0x90, 0xad, 0x19, 0x43, 0x47, 0x3b, 0x8f, 0x93, 0xf1, 0xf3, 0xa2, 0x8, 0x7d, 0x31, 0x89, 0xaf, 0x6f, 0xf8, 0xbb, 0x95, 0xd4, 0xb7}} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe8, 0x90, 0x1d, 0x4e, 0x87, 0xb4, 0xe5, 0x9c, 0x90, 0xf4, 0x8d, 0xb9, 0xf0, 0xd5, 0x14, 0x8, 0x8c, 0x7b, 0x3f, 0x96, 0xda, 0x2a, 0x23, 0x8, 0xd8, 0x93, 0x9e, 0xfc, 0xe5, 0xd4, 0xfc, 0x2b}} return a, nil } @@ -687,6 +708,7 @@ func AssetNames() []string { var _bindata = map[string]func() (*asset, error){ "transactions/destroy_nft.cdc": transactionsDestroy_nftCdc, "transactions/generic_transfer_with_address.cdc": transactionsGeneric_transfer_with_addressCdc, + "transactions/generic_transfer_with_address_and_type.cdc": transactionsGeneric_transfer_with_address_and_typeCdc, "transactions/generic_transfer_with_paths.cdc": transactionsGeneric_transfer_with_pathsCdc, "transactions/mint_nft.cdc": transactionsMint_nftCdc, "transactions/nft-forwarding/change_forwarder_recipient.cdc": transactionsNftForwardingChange_forwarder_recipientCdc, @@ -759,6 +781,7 @@ var _bintree = &bintree{nil, map[string]*bintree{ "transactions": {nil, map[string]*bintree{ "destroy_nft.cdc": {transactionsDestroy_nftCdc, map[string]*bintree{}}, "generic_transfer_with_address.cdc": {transactionsGeneric_transfer_with_addressCdc, map[string]*bintree{}}, + "generic_transfer_with_address_and_type.cdc": {transactionsGeneric_transfer_with_address_and_typeCdc, map[string]*bintree{}}, "generic_transfer_with_paths.cdc": {transactionsGeneric_transfer_with_pathsCdc, map[string]*bintree{}}, "mint_nft.cdc": {transactionsMint_nftCdc, map[string]*bintree{}}, "nft-forwarding": {nil, map[string]*bintree{ diff --git a/lib/go/templates/transaction_templates.go b/lib/go/templates/transaction_templates.go index 937cac8..7b136c8 100644 --- a/lib/go/templates/transaction_templates.go +++ b/lib/go/templates/transaction_templates.go @@ -11,15 +11,16 @@ import ( ) const ( - filenameSetupAccount = "transactions/setup_account.cdc" - filenameSetupFromAddress = "transactions/setup_account_from_address.cdc" - filenameMintNFT = "transactions/mint_nft.cdc" - filenameTransferNFT = "transactions/transfer_nft.cdc" - filenameTransferNFTWithPaths = "transactions/generic_transfer_with_paths.cdc" - filenameTransferNFTWithAddress = "transactions/generic_transfer_with_address.cdc" - filenameDestroyNFT = "transactions/destroy_nft.cdc" - filenameSetupRoyalty = "transactions/setup_account_to_receive_royalty.cdc" - filenameSetupAccountFromNftReference = "transactions/setup_account_from_nft_reference.cdc" + filenameSetupAccount = "transactions/setup_account.cdc" + filenameSetupFromAddress = "transactions/setup_account_from_address.cdc" + filenameMintNFT = "transactions/mint_nft.cdc" + filenameTransferNFT = "transactions/transfer_nft.cdc" + filenameTransferNFTWithPaths = "transactions/generic_transfer_with_paths.cdc" + filenameTransferNFTWithAddress = "transactions/generic_transfer_with_address.cdc" + filenameTransferNFTWithAddressAndType = "transactions/generic_transfer_with_address_and_type.cdc" + filenameDestroyNFT = "transactions/destroy_nft.cdc" + filenameSetupRoyalty = "transactions/setup_account_to_receive_royalty.cdc" + filenameSetupAccountFromNftReference = "transactions/setup_account_from_nft_reference.cdc" ) // GenerateSetupAccountScript returns a script that instantiates a new @@ -101,6 +102,24 @@ func GenerateTransferGenericNFTWithAddressScript(nftAddress, metadataViewsAddres return []byte(code) } +func GenerateTransferGenericNFTWithAddressAndTypeScript(nftAddress, metadataViewsAddress string) []byte { + code := assets.MustAssetString(filenameTransferNFTWithAddressAndType) + + code = strings.ReplaceAll( + code, + placeholderNonFungibleTokenString, + nonFungibleTokenImport+withHexPrefix(nftAddress), + ) + + code = strings.ReplaceAll( + code, + placeholderMetadataViewsString, + metadataViewsImport+withHexPrefix(metadataViewsAddress), + ) + + return []byte(code) +} + // GenerateDestroyNFTScript creates a script that withdraws an NFT token // from a collection and destroys it. func GenerateDestroyNFTScript(nftAddress, exampleNFTAddress, metadataAddress flow.Address) []byte { diff --git a/tests/example_nft_test.cdc b/tests/example_nft_test.cdc index 2ebddbc..471ccc9 100644 --- a/tests/example_nft_test.cdc +++ b/tests/example_nft_test.cdc @@ -15,6 +15,7 @@ fun setup() { deploy("NonFungibleToken", "../contracts/NonFungibleToken.cdc") deploy("MetadataViews", "../contracts/MetadataViews.cdc") deploy("ExampleNFT", "../contracts/ExampleNFT.cdc") + deploy("MaliciousNFT", "../contracts/test/MaliciousNFT.cdc") } access(all) @@ -175,6 +176,45 @@ fun testTransferNFT() { recipient ) Test.expect(txResult, Test.beSucceeded()) + + // Other generic transfer transactions should succeed + txResult = executeTransaction( + "../transactions/generic_transfer_with_address.cdc", + [recipient.address, nftID, admin.address, "ExampleNFT"], + admin + ) + Test.expect(txResult, Test.beSucceeded()) + + txResult = executeTransaction( + "../transactions/generic_transfer_with_address_and_type.cdc", + [admin.address, nftID, admin.address, "ExampleNFT", "NFT"], + recipient + ) + Test.expect(txResult, Test.beSucceeded()) + + // Should not be able to transfer an NFT from a malicious contract + // that tries to trick the generic transaction + txResult = executeTransaction( + "../transactions/generic_transfer_with_address.cdc", + [recipient.address, nftID, admin.address, "MaliciousNFT"], + admin + ) + Test.expect(txResult, Test.beFailed()) + Test.assertError( + txResult, + errorMessage: "The NFT that was withdrawn to transfer is not the type that was requested!" + ) + + txResult = executeTransaction( + "../transactions/generic_transfer_with_address_and_type.cdc", + [recipient.address, nftID, admin.address, "MaliciousNFT", "NFT"], + admin + ) + Test.expect(txResult, Test.beFailed()) + Test.assertError( + txResult, + errorMessage: "The NFT that was withdrawn to transfer is not the type that was requested!" + ) } access(all) diff --git a/transactions/generic_transfer_with_address.cdc b/transactions/generic_transfer_with_address.cdc index 781722b..60482cd 100644 --- a/transactions/generic_transfer_with_address.cdc +++ b/transactions/generic_transfer_with_address.cdc @@ -1,10 +1,25 @@ import "NonFungibleToken" import "MetadataViews" +#interaction ( + version: "1.0.0", + title: "Generic NFT Transfer with Contract Address and Name", + description: "Transfer any Non-Fungible Token by providing the contract address and name", + language: "en-US", +) + /// Can pass in any contract address and name /// This lets you choose the token you want to send because /// the transaction gets the metadata from the provided contract. /// +/// @param to: The address to transfer the token to +/// @param id: The id of token to transfer +/// @param contractAddress: The address of the contract that defines the token being transferred +/// @param contractName: The name of the contract that defines the token being transferred. Ex: "ExampleNFT" +/// +/// This transaction only works with NFTs that have the type name "NFT" +/// A different transaction is required for NFTs with a different type name +/// transaction(to: Address, id: UInt64, contractAddress: Address, contractName: String) { // The NFT resource to be transferred @@ -31,6 +46,23 @@ transaction(to: Address, id: UInt64, contractAddress: Address, contractName: Str ) ?? panic("Account does not store a collection object at the specified path") self.tempNFT <- withdrawRef.withdraw(withdrawID: id) + + // Get the string representation of the address without the 0x + var addressString = contractAddress.toString() + if addressString.length == 18 { + addressString = addressString.slice(from: 2, upTo: 18) + } + let typeString: String = "A.".concat(addressString).concat(".").concat(contractName).concat(".NFT") + let type = CompositeType(typeString) + assert( + type != nil, + message: "Could not create a type out of the contract name and address!" + ) + + assert( + self.tempNFT.getType() == type!, + message: "The NFT that was withdrawn to transfer is not the type that was requested!" + ) } execute { diff --git a/transactions/generic_transfer_with_address_and_type.cdc b/transactions/generic_transfer_with_address_and_type.cdc new file mode 100644 index 0000000..26908a9 --- /dev/null +++ b/transactions/generic_transfer_with_address_and_type.cdc @@ -0,0 +1,78 @@ +import "NonFungibleToken" +import "MetadataViews" + +#interaction ( + version: "1.0.0", + title: "Generic NFT Transfer with Contract Address and Name", + description: "Transfer any Non-Fungible Token by providing the contract address and name and type name", + language: "en-US", +) + +/// Can pass in any contract address and name and NFT type name +/// This lets you choose the token you want to send because +/// the transaction gets the metadata from the provided contract. +/// +/// @param to: The address to transfer the token to +/// @param id: The id of token to transfer +/// @param contractAddress: The address of the contract that defines the token being transferred +/// @param contractName: The name of the contract that defines the token being transferred. Ex: "ExampleNFT" +/// @param nftTypeName: The type name of the NFT that the user wants to transfer +/// Ex: "NFT" +/// +transaction(to: Address, id: UInt64, contractAddress: Address, contractName: String, nftTypeName: String) { + + // The NFT resource to be transferred + let tempNFT: @{NonFungibleToken.NFT} + + // NFTCollectionData struct to get paths from + let collectionData: MetadataViews.NFTCollectionData + + prepare(signer: auth(BorrowValue) &Account) { + + // Borrow a reference to the nft contract deployed to the passed account + let resolverRef = getAccount(contractAddress) + .contracts.borrow<&{NonFungibleToken}>(name: contractName) + ?? panic("Could not borrow a reference to the non-fungible token contract") + + // Use that reference to retrieve the NFTCollectionData view + self.collectionData = resolverRef.resolveContractView(resourceType: nil, viewType: Type()) as! MetadataViews.NFTCollectionData? + ?? panic("Could not resolve the NFTCollectionData view for the given non-fungible token contract") + + + // borrow a reference to the signer's NFT collection + let withdrawRef = signer.storage.borrow( + from: self.collectionData.storagePath + ) ?? panic("Account does not store a collection object at the specified path") + + self.tempNFT <- withdrawRef.withdraw(withdrawID: id) + + // Get the string representation of the address without the 0x + var addressString = contractAddress.toString() + if addressString.length == 18 { + addressString = addressString.slice(from: 2, upTo: 18) + } + let typeString: String = "A.".concat(addressString).concat(".").concat(contractName).concat(".").concat(nftTypeName) + let type = CompositeType(typeString) + assert( + type != nil, + message: "Could not create a type out of the contract name and address!" + ) + + assert( + self.tempNFT.getType() == type!, + message: "The NFT that was withdrawn to transfer is not the type that was requested!" + ) + } + + execute { + // get the recipients public account object + let recipient = getAccount(to) + + // borrow a public reference to the receivers collection + let receiverRef = recipient.capabilities.borrow<&{NonFungibleToken.Receiver}>(self.collectionData.publicPath) + ?? panic("Could not borrow reference to the recipient's receiver") + + // Deposit the NFT to the receiver + receiverRef.deposit(token: <-self.tempNFT) + } +} \ No newline at end of file diff --git a/transactions/generic_transfer_with_paths.cdc b/transactions/generic_transfer_with_paths.cdc index 6e0f796..8b0a426 100644 --- a/transactions/generic_transfer_with_paths.cdc +++ b/transactions/generic_transfer_with_paths.cdc @@ -1,11 +1,25 @@ import "NonFungibleToken" +#interaction ( + version: "1.0.0", + title: "Generic NFT Transfer with Paths", + description: "Transfer any Non-Fungible Token by providing the paths for the source Collection and destination Collection", + language: "en-US", +) + /// Can pass in any storage path and receiver path instead of just the default. /// This lets you choose the token you want to send as well the capability you want to send it to. /// /// Any token path can be passed as an argument here, so wallets should /// should check argument values to make sure the intended token path is passed in /// +/// @param to: The address to transfer the token to +/// @param id: The id of the token to transfer +/// @param senderPathIdentifier: The string identifier of the storage path +/// where the token should be withdrawn from +/// @param receiverPathIdentifier: The string identifier of the public path +/// where the token should be deposited to +/// transaction(to: Address, id: UInt64, senderPathIdentifier: String, receiverPathIdentifier: String) { // The NFT resource to be transferred diff --git a/transactions/setup_account_from_address.cdc b/transactions/setup_account_from_address.cdc index d07a77a..bd74502 100644 --- a/transactions/setup_account_from_address.cdc +++ b/transactions/setup_account_from_address.cdc @@ -1,10 +1,20 @@ +import "NonFungibleToken" +import "MetadataViews" + +#interaction ( + version: "1.0.0", + title: "Generic FT Transfer with Contract Address and Name", + description: "Transfer any Fungible Token by providing the contract address and name", + language: "en-US", +) + /// This transaction is what an account would run /// to set itself up to receive NFTs. This function /// uses views to know where to set up the collection /// in storage and to create the empty collection. - -import "NonFungibleToken" -import "MetadataViews" +/// +/// @param contractAddress: The address of the contract that defines the token being initialized +/// @param contractName: The name of the contract that defines the token being initialized. Ex: "ExampleNFT" transaction(contractAddress: Address, contractName: String) {