@triadxyz/poseidons-protocol 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,8 @@ export default class PoseidonsProtocolClient {
|
|
|
55
55
|
/**
|
|
56
56
|
* Burn NFT
|
|
57
57
|
* @param mint - The mint of the Poseidon
|
|
58
|
+
* @param burnMint - The mint of the burn Poseidon
|
|
58
59
|
* @returns The transaction signature or versioned transaction
|
|
59
60
|
*/
|
|
60
|
-
burnNft(mint: PublicKey): Promise<string | import("@solana/web3.js").VersionedTransaction>;
|
|
61
|
+
burnNft(mint: PublicKey, burnMint: PublicKey): Promise<string | import("@solana/web3.js").VersionedTransaction>;
|
|
61
62
|
}
|
package/dist/index.js
CHANGED
|
@@ -158,15 +158,17 @@ class PoseidonsProtocolClient {
|
|
|
158
158
|
/**
|
|
159
159
|
* Burn NFT
|
|
160
160
|
* @param mint - The mint of the Poseidon
|
|
161
|
+
* @param burnMint - The mint of the burn Poseidon
|
|
161
162
|
* @returns The transaction signature or versioned transaction
|
|
162
163
|
*/
|
|
163
|
-
burnNft(mint) {
|
|
164
|
+
burnNft(mint, burnMint) {
|
|
164
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
165
166
|
const ixs = [
|
|
166
167
|
yield this.program.methods
|
|
167
168
|
.burnNft()
|
|
168
169
|
.accounts({
|
|
169
170
|
poseidonAsset: mint,
|
|
171
|
+
burnPoseidonAsset: burnMint,
|
|
170
172
|
corePoseidonCollection: constants_1.CORE_POSEIDON_COLLECTION
|
|
171
173
|
})
|
|
172
174
|
.instruction()
|