@triadxyz/triad-protocol 1.3.4-beta → 1.3.5-beta
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.js
CHANGED
|
@@ -266,14 +266,12 @@ class TriadProtocolClient {
|
|
|
266
266
|
ixs.push(yield this.program.methods
|
|
267
267
|
.mintPoseidon({
|
|
268
268
|
collectionSymbol: constants_1.POSEIDON_COLLECTION_SYMBOL,
|
|
269
|
-
number: new anchor_1.BN(item.number)
|
|
270
|
-
attributes: item.attributes
|
|
269
|
+
number: new anchor_1.BN(item.number)
|
|
271
270
|
})
|
|
272
271
|
.accounts({
|
|
273
272
|
signer: this.provider.wallet.publicKey,
|
|
274
273
|
asset: asset.publicKey,
|
|
275
|
-
coreCollection: constants_1.POSEIDON_CORE_COLLECTION
|
|
276
|
-
nftMint: new web3_js_1.PublicKey('EzhK3EPW5PfWBRdyNaZbxTBfnYE5M2JSordnCBdMoCvp')
|
|
274
|
+
coreCollection: constants_1.POSEIDON_CORE_COLLECTION
|
|
277
275
|
})
|
|
278
276
|
.instruction());
|
|
279
277
|
}
|
package/dist/local-test.js
CHANGED
|
@@ -446,7 +446,7 @@ const getSpinPrize = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
446
446
|
console.log(prizes);
|
|
447
447
|
});
|
|
448
448
|
const spinWheel = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
449
|
-
const response = yield triadProtocol.spinWheel(false);
|
|
449
|
+
const response = yield triadProtocol.spinWheel(false, { skipPreflight: true });
|
|
450
450
|
console.log(response);
|
|
451
451
|
});
|
|
452
452
|
spinWheel();
|
|
@@ -785,10 +785,6 @@
|
|
|
785
785
|
"writable": true,
|
|
786
786
|
"signer": true
|
|
787
787
|
},
|
|
788
|
-
{
|
|
789
|
-
"name": "nft_mint",
|
|
790
|
-
"writable": true
|
|
791
|
-
},
|
|
792
788
|
{
|
|
793
789
|
"name": "collection",
|
|
794
790
|
"writable": true,
|
|
@@ -2538,19 +2534,6 @@
|
|
|
2538
2534
|
{
|
|
2539
2535
|
"name": "number",
|
|
2540
2536
|
"type": "u64"
|
|
2541
|
-
},
|
|
2542
|
-
{
|
|
2543
|
-
"name": "attributes",
|
|
2544
|
-
"type": {
|
|
2545
|
-
"array": [
|
|
2546
|
-
{
|
|
2547
|
-
"defined": {
|
|
2548
|
-
"name": "PoseidonAttribute"
|
|
2549
|
-
}
|
|
2550
|
-
},
|
|
2551
|
-
7
|
|
2552
|
-
]
|
|
2553
|
-
}
|
|
2554
2537
|
}
|
|
2555
2538
|
]
|
|
2556
2539
|
}
|
|
@@ -2814,22 +2797,6 @@
|
|
|
2814
2797
|
]
|
|
2815
2798
|
}
|
|
2816
2799
|
},
|
|
2817
|
-
{
|
|
2818
|
-
"name": "PoseidonAttribute",
|
|
2819
|
-
"type": {
|
|
2820
|
-
"kind": "struct",
|
|
2821
|
-
"fields": [
|
|
2822
|
-
{
|
|
2823
|
-
"name": "key",
|
|
2824
|
-
"type": "string"
|
|
2825
|
-
},
|
|
2826
|
-
{
|
|
2827
|
-
"name": "value",
|
|
2828
|
-
"type": "string"
|
|
2829
|
-
}
|
|
2830
|
-
]
|
|
2831
|
-
}
|
|
2832
|
-
},
|
|
2833
2800
|
{
|
|
2834
2801
|
"name": "PriceUpdate",
|
|
2835
2802
|
"type": {
|
|
@@ -1110,10 +1110,6 @@ export type TriadProtocol = {
|
|
|
1110
1110
|
writable: true;
|
|
1111
1111
|
signer: true;
|
|
1112
1112
|
},
|
|
1113
|
-
{
|
|
1114
|
-
name: 'nftMint';
|
|
1115
|
-
writable: true;
|
|
1116
|
-
},
|
|
1117
1113
|
{
|
|
1118
1114
|
name: 'collection';
|
|
1119
1115
|
writable: true;
|
|
@@ -3294,19 +3290,6 @@ export type TriadProtocol = {
|
|
|
3294
3290
|
{
|
|
3295
3291
|
name: 'number';
|
|
3296
3292
|
type: 'u64';
|
|
3297
|
-
},
|
|
3298
|
-
{
|
|
3299
|
-
name: 'attributes';
|
|
3300
|
-
type: {
|
|
3301
|
-
array: [
|
|
3302
|
-
{
|
|
3303
|
-
defined: {
|
|
3304
|
-
name: 'poseidonAttribute';
|
|
3305
|
-
};
|
|
3306
|
-
},
|
|
3307
|
-
7
|
|
3308
|
-
];
|
|
3309
|
-
};
|
|
3310
3293
|
}
|
|
3311
3294
|
];
|
|
3312
3295
|
};
|
|
@@ -3570,22 +3553,6 @@ export type TriadProtocol = {
|
|
|
3570
3553
|
];
|
|
3571
3554
|
};
|
|
3572
3555
|
},
|
|
3573
|
-
{
|
|
3574
|
-
name: 'poseidonAttribute';
|
|
3575
|
-
type: {
|
|
3576
|
-
kind: 'struct';
|
|
3577
|
-
fields: [
|
|
3578
|
-
{
|
|
3579
|
-
name: 'key';
|
|
3580
|
-
type: 'string';
|
|
3581
|
-
},
|
|
3582
|
-
{
|
|
3583
|
-
name: 'value';
|
|
3584
|
-
type: 'string';
|
|
3585
|
-
}
|
|
3586
|
-
];
|
|
3587
|
-
};
|
|
3588
|
-
},
|
|
3589
3556
|
{
|
|
3590
3557
|
name: 'priceUpdate';
|
|
3591
3558
|
type: {
|
package/dist/utils/constants.js
CHANGED
|
@@ -10,6 +10,6 @@ exports.TRIAD_ADMIN = new web3_js_1.PublicKey('82ppCojm3yrEKgdpH8B5AmBJTU1r1uAWX
|
|
|
10
10
|
exports.SOL_MINT = new web3_js_1.PublicKey('So11111111111111111111111111111111111111112');
|
|
11
11
|
exports.TICKET_CORE_COLLECTION = new web3_js_1.PublicKey('BaqopH1VXYUCT6VsojbTibVcd3k5jpGGT6296HFb6fVa');
|
|
12
12
|
exports.SPIN_NAME = 'christmas';
|
|
13
|
-
exports.TCMAS_MINT = new web3_js_1.PublicKey('
|
|
13
|
+
exports.TCMAS_MINT = new web3_js_1.PublicKey('tCMraBSGHeMcQS76hNnBhnfbMzrtnnT3nbt3vAnSCE2');
|
|
14
14
|
exports.POSEIDON_COLLECTION_SYMBOL = '$PSN';
|
|
15
15
|
exports.POSEIDON_CORE_COLLECTION = new web3_js_1.PublicKey('69CLccefLRmvDSAJP7Er632dvn878qkpdcnvq5ZUspSm');
|