@ltmp/rcrdshp-flow-templates
Advanced tools
Comparing version
module.exports = function txCode () { return `import FungibleToken from 0xFUNGIBLETOKEN | ||
import NonFungibleToken from 0xNONFUNGIBLETOKEN | ||
import MetadataViews from 0xNONFUNGIBLETOKEN | ||
import DapperUtilityCoin from 0xDAPPERUTILITYCOIN | ||
@@ -10,3 +11,3 @@ import NFTStorefront from 0xNFTSTOREFRONT | ||
// will also initialize the buyer's NFT collection on their account if it has not already been initialized. | ||
transaction(listingResourceID: UInt64, storefrontAddress: Address, expectedPrice: UFix64) { | ||
transaction(storefrontAddress: Address, listingResourceID: UInt64, expectedPrice: UFix64) { | ||
let paymentVault: @FungibleToken.Vault | ||
@@ -29,2 +30,6 @@ let nftCollection: &RCRDSHPNFT.Collection{NonFungibleToken.Receiver} | ||
) | ||
} else if buyer.getCapability<&RCRDSHPNFT.Collection{MetadataViews.ResolverCollection}>(RCRDSHPNFT.collectionPublicPath) == nil { | ||
// If the buyer's account was old and not linked with Metadata, relink here so they can see collectibles in the Dapper inventory | ||
buyer.unlink(RCRDSHPNFT.collectionPublicPath) | ||
buyer.link<&RCRDSHPNFT.Collection{NonFungibleToken.CollectionPublic, RCRDSHPNFT.RCRDSHPNFTCollectionPublic, MetadataViews.ResolverCollection}>(RCRDSHPNFT.collectionPublicPath,target: RCRDSHPNFT.collectionStoragePath) | ||
} | ||
@@ -31,0 +36,0 @@ |
@@ -1,12 +0,8 @@ | ||
const initializeAccount = require('./generated/initialize-account.cdc') | ||
const purchaseNft = require('./generated/purchase-nft-rcrdshp.cdc') | ||
const purchaseNftCustodial = require('./generated/purchase-nft-custodial-rcrdshp.cdc') | ||
const transferToCustodialViaForwarder = require('./generated/transfer-dapper-custodial.cdc') | ||
module.exports = { | ||
initializeAccount, | ||
purchaseNft, | ||
purchaseNftCustodial, | ||
transferToCustodialViaForwarder | ||
} | ||
{ | ||
"name": "@ltmp/rcrdshp-flow-templates", | ||
"version": "1.0.5", | ||
"version": "1.1.1", | ||
"main": "index.js", | ||
"repository": "git@github.com:letthemusicpay/rcrdshp-flow.git", | ||
"author": "Pablo Castro", | ||
"author": "Pablo Castro and Nathan Pahucki", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepare": "node ./generator.js" | ||
"prepare": "node ./packager.js" | ||
}, | ||
"files": [ | ||
"index.js", | ||
"generated" | ||
] | ||
"files": ["index.js", "generated"] | ||
} |
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
0
-100%31
Infinity%8492
-66.43%6
-45.45%131
-69.39%1
Infinity%