flipmeme-sdk 1.2.29 → 1.2.31

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
@@ -650,6 +650,38 @@ var flipmeme_default = {
650
650
  {
651
651
  name: "system_program",
652
652
  address: "11111111111111111111111111111111"
653
+ },
654
+ {
655
+ name: "event_authority",
656
+ pda: {
657
+ seeds: [
658
+ {
659
+ kind: "const",
660
+ value: [
661
+ 95,
662
+ 95,
663
+ 101,
664
+ 118,
665
+ 101,
666
+ 110,
667
+ 116,
668
+ 95,
669
+ 97,
670
+ 117,
671
+ 116,
672
+ 104,
673
+ 111,
674
+ 114,
675
+ 105,
676
+ 116,
677
+ 121
678
+ ]
679
+ }
680
+ ]
681
+ }
682
+ },
683
+ {
684
+ name: "program"
653
685
  }
654
686
  ],
655
687
  args: [
@@ -1373,6 +1405,19 @@ var flipmeme_default = {
1373
1405
  185
1374
1406
  ]
1375
1407
  },
1408
+ {
1409
+ name: "EjectEvent",
1410
+ discriminator: [
1411
+ 164,
1412
+ 69,
1413
+ 55,
1414
+ 131,
1415
+ 187,
1416
+ 206,
1417
+ 42,
1418
+ 188
1419
+ ]
1420
+ },
1376
1421
  {
1377
1422
  name: "MintEvent",
1378
1423
  discriminator: [
@@ -1657,6 +1702,34 @@ var flipmeme_default = {
1657
1702
  name: "total_supply",
1658
1703
  type: "u32"
1659
1704
  },
1705
+ {
1706
+ name: "timestamp",
1707
+ type: "i64"
1708
+ },
1709
+ {
1710
+ name: "start_price",
1711
+ type: "u64"
1712
+ },
1713
+ {
1714
+ name: "end_price",
1715
+ type: "u64"
1716
+ }
1717
+ ]
1718
+ }
1719
+ },
1720
+ {
1721
+ name: "EjectEvent",
1722
+ type: {
1723
+ kind: "struct",
1724
+ fields: [
1725
+ {
1726
+ name: "collection",
1727
+ type: "pubkey"
1728
+ },
1729
+ {
1730
+ name: "nft",
1731
+ type: "pubkey"
1732
+ },
1660
1733
  {
1661
1734
  name: "timestamp",
1662
1735
  type: "i64"
@@ -2565,6 +2638,7 @@ var SolanaConnector = class {
2565
2638
  nftInfos,
2566
2639
  SDK_SOLANA_CONFIG.EJECT_CHUNK_SIZE
2567
2640
  );
2641
+ console.log("nftInfos from SDK", tokenChunks);
2568
2642
  try {
2569
2643
  for (const chunk of tokenChunks) {
2570
2644
  let transaction = yield this.setUpInstructions(14e5);
@@ -2576,7 +2650,7 @@ var SolanaConnector = class {
2576
2650
  void 0,
2577
2651
  new import_web34.PublicKey(token.nftId)
2578
2652
  );
2579
- const instruction = yield this.program.methods.ejectNft(nftPda2).accountsStrict({
2653
+ const instruction = yield this.program.methods.ejectNft(new import_web34.PublicKey(token.nftId)).accountsStrict({
2580
2654
  state: SOLANA_PUBKEYS.STATE_ID,
2581
2655
  collection: collectionPda2,
2582
2656
  collectionNft: collectionNftPda2,
@@ -2585,7 +2659,9 @@ var SolanaConnector = class {
2585
2659
  nft: nftPda2,
2586
2660
  operator: this.config.wallet,
2587
2661
  mplCore: SOLANA_PUBKEYS.MPL_CORE,
2588
- systemProgram: import_web34.SystemProgram.programId
2662
+ systemProgram: import_web34.SystemProgram.programId,
2663
+ eventAuthority: eventAuthority(this.program.programId),
2664
+ program: this.program.programId
2589
2665
  }).instruction();
2590
2666
  transaction.add(instruction);
2591
2667
  }