@freshmint/core
Advanced tools
Comparing version 0.6.0 to 0.7.0
# @freshmint/core | ||
## 0.7.0 | ||
### Minor Changes | ||
- Add burn transaction and command | ||
## 0.6.0 | ||
@@ -4,0 +10,0 @@ |
@@ -143,2 +143,19 @@ // @ts-ignore | ||
destroyNFTs(ids: string[], fromBucket?: string): Transaction<void> { | ||
return new Transaction(({ imports }: FreshmintConfig) => { | ||
const script = CommonNFTGenerator.destroyNFTs({ | ||
imports, | ||
contractName: this.name, | ||
contractAddress: this.getAddress(), | ||
}); | ||
return { | ||
script, | ||
args: [fcl.arg(ids, t.Array(t.UInt64)), fcl.arg(fromBucket, t.Optional(t.String))], | ||
computeLimit: 9999, | ||
signers: this.getSigners(), | ||
}; | ||
}, Transaction.VoidResult); | ||
} | ||
setupCollection(authorizer: TransactionAuthorizer): Transaction<void> { | ||
@@ -145,0 +162,0 @@ return new Transaction(({ imports }: FreshmintConfig) => { |
@@ -162,2 +162,3 @@ import { S as Signer, P as PublicKey, H as HashAlgorithm } from './publicKey-cb97bfd4.js'; | ||
destroyNFT(id: string): Transaction<void>; | ||
destroyNFTs(ids: string[], fromBucket?: string): Transaction<void>; | ||
setupCollection(authorizer: TransactionAuthorizer): Transaction<void>; | ||
@@ -672,2 +673,7 @@ transferNFT({ id, toAddress }: { | ||
}): string; | ||
static destroyNFTs({ imports, contractName, contractAddress, }: { | ||
imports: ContractImports; | ||
contractName: string; | ||
contractAddress: string; | ||
}): string; | ||
static setupCollection({ imports, contractName, contractAddress, }: { | ||
@@ -674,0 +680,0 @@ imports: ContractImports; |
@@ -81,2 +81,18 @@ /* eslint-disable @typescript-eslint/no-var-requires */ | ||
static destroyNFTs({ | ||
imports, | ||
contractName, | ||
contractAddress, | ||
}: { | ||
imports: ContractImports; | ||
contractName: string; | ||
contractAddress: string; | ||
}): string { | ||
return this.generate(require('../../../cadence/nfts/common/transactions/destroy_nfts.template.cdc'), { | ||
imports, | ||
contractName, | ||
contractAddress, | ||
}); | ||
} | ||
static setupCollection({ | ||
@@ -83,0 +99,0 @@ imports, |
{ | ||
"name": "@freshmint/core", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "The core templates and logic that power Freshmint.", | ||
@@ -10,3 +10,3 @@ "contributors": [ | ||
"license": "Apache-2.0", | ||
"repository": "github:packagelabs/freshmint", | ||
"repository": "github:dapperlabs/freshmint", | ||
"keywords": [ | ||
@@ -13,0 +13,0 @@ "nft", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1334636
101
18615
1