veilix-sdk 0.0.7 → 0.0.9

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.
@@ -1,9 +1,9 @@
1
- import { N as Network, V as VeilixSDK } from '../VeilixSDK-CAMQrwDf.cjs';
1
+ import { N as Network, V as VeilixSDK } from '../VeilixSDK-DgXMu4lI.cjs';
2
2
  import '@solana/web3.js';
3
3
  import '@switchboard-xyz/common';
4
4
  import '@coral-xyz/anchor';
5
5
  import '@coral-xyz/anchor/dist/cjs/provider';
6
- import '../constants-9OPXLj27.cjs';
6
+ import '../constants-sO9UKB9l.cjs';
7
7
 
8
8
  type UseVeilixSdkOptions = {
9
9
  /** Target Solana cluster. */
@@ -1,9 +1,9 @@
1
- import { N as Network, V as VeilixSDK } from '../VeilixSDK-CCru3r_B.js';
1
+ import { N as Network, V as VeilixSDK } from '../VeilixSDK-BmB790UK.js';
2
2
  import '@solana/web3.js';
3
3
  import '@switchboard-xyz/common';
4
4
  import '@coral-xyz/anchor';
5
5
  import '@coral-xyz/anchor/dist/cjs/provider';
6
- import '../constants-9OPXLj27.js';
6
+ import '../constants-sO9UKB9l.js';
7
7
 
8
8
  type UseVeilixSdkOptions = {
9
9
  /** Target Solana cluster. */
@@ -350,18 +350,6 @@ var veilix_devnet_default = {
350
350
  ]
351
351
  }
352
352
  },
353
- {
354
- name: "queue",
355
- address: "A43DyUGA7s8eXPxqEjJY6EBu1KKbNgfxF8h17VAHn13w"
356
- },
357
- {
358
- name: "slot_hashes",
359
- address: "SysvarS1otHashes111111111111111111111111111"
360
- },
361
- {
362
- name: "instructions",
363
- address: "Sysvar1nstructions1111111111111111111111111"
364
- },
365
353
  {
366
354
  name: "system_program",
367
355
  address: "11111111111111111111111111111111"
@@ -718,18 +706,6 @@ var veilix_devnet_default = {
718
706
  ]
719
707
  }
720
708
  },
721
- {
722
- name: "queue",
723
- address: "A43DyUGA7s8eXPxqEjJY6EBu1KKbNgfxF8h17VAHn13w"
724
- },
725
- {
726
- name: "slot_hashes",
727
- address: "SysvarS1otHashes111111111111111111111111111"
728
- },
729
- {
730
- name: "instructions",
731
- address: "Sysvar1nstructions1111111111111111111111111"
732
- },
733
709
  {
734
710
  name: "mint"
735
711
  },
@@ -2119,18 +2095,6 @@ var veilix_default = {
2119
2095
  ]
2120
2096
  }
2121
2097
  },
2122
- {
2123
- name: "queue",
2124
- address: "A43DyUGA7s8eXPxqEjJY6EBu1KKbNgfxF8h17VAHn13w"
2125
- },
2126
- {
2127
- name: "slot_hashes",
2128
- address: "SysvarS1otHashes111111111111111111111111111"
2129
- },
2130
- {
2131
- name: "instructions",
2132
- address: "Sysvar1nstructions1111111111111111111111111"
2133
- },
2134
2098
  {
2135
2099
  name: "system_program",
2136
2100
  address: "11111111111111111111111111111111"
@@ -2487,18 +2451,6 @@ var veilix_default = {
2487
2451
  ]
2488
2452
  }
2489
2453
  },
2490
- {
2491
- name: "queue",
2492
- address: "A43DyUGA7s8eXPxqEjJY6EBu1KKbNgfxF8h17VAHn13w"
2493
- },
2494
- {
2495
- name: "slot_hashes",
2496
- address: "SysvarS1otHashes111111111111111111111111111"
2497
- },
2498
- {
2499
- name: "instructions",
2500
- address: "Sysvar1nstructions1111111111111111111111111"
2501
- },
2502
2454
  {
2503
2455
  name: "mint"
2504
2456
  },
@@ -3656,8 +3608,8 @@ var PACKAGE_NAME = package_default.name;
3656
3608
  var WITHDRAW_CIRCUIT_WASM = "withdraw.wasm";
3657
3609
  var WITHDRAW_CIRCUIT_ZKEY = "withdraw.zkey";
3658
3610
  var WITHDRAW_CIRCUIT_SHA256 = {
3659
- wasm: "2565a8dd94b0b3cb9ec6d415933ab05ed5d32ac07165b71be6bcf31615fc0330",
3660
- zkey: "64a4d915099f6fe6bfa06e151c254843be8773c7991c742260019dc5184e5d82"
3611
+ wasm: "68b712068a25e5b027a755ec96c35f176dfdc988f437b98587d572d6f3a26c03",
3612
+ zkey: "fd177812fb178896c08de7efd7bcc9e6b17d5ac1e5de512459ba0a9a92161a5e"
3661
3613
  };
3662
3614
  var CIRCUIT_CDN_PACKAGE = "veilix-sdk";
3663
3615
  var CIRCUIT_CDN_VERSION = "0.0.4";
@@ -12676,7 +12628,6 @@ async function buildDepositIx(senderPubkey, commitmentBytes, denominationLamport
12676
12628
  [Buffer.from("commitment"), commitmentBuf],
12677
12629
  getProgramId()
12678
12630
  );
12679
- const queueAccount = new PublicKey(getDepositQueueAddress());
12680
12631
  const remainingAccounts = [];
12681
12632
  if (tempSigner) {
12682
12633
  remainingAccounts.push({
@@ -12692,9 +12643,9 @@ async function buildDepositIx(senderPubkey, commitmentBytes, denominationLamport
12692
12643
  pool: poolPDA,
12693
12644
  treasury: treasuryPDA,
12694
12645
  commitmentAccount: commitmentPDA,
12695
- queue: queueAccount,
12696
- slotHashes: anchor.web3.SYSVAR_SLOT_HASHES_PUBKEY,
12697
- instructions: anchor.web3.SYSVAR_INSTRUCTIONS_PUBKEY,
12646
+ // queue: queueAccount,
12647
+ // slotHashes: anchor.web3.SYSVAR_SLOT_HASHES_PUBKEY,
12648
+ // instructions: anchor.web3.SYSVAR_INSTRUCTIONS_PUBKEY,
12698
12649
  systemProgram: anchor.web3.SystemProgram.programId
12699
12650
  }).remainingAccounts(remainingAccounts).instruction();
12700
12651
  } else {
@@ -12721,9 +12672,9 @@ async function buildDepositIx(senderPubkey, commitmentBytes, denominationLamport
12721
12672
  treasury: treasuryPDA,
12722
12673
  treasuryAta: getAssociatedTokenAddressSync(mintPubkey, treasuryPDA, true, tokenProgramForMint),
12723
12674
  commitmentAccount: commitmentPDA,
12724
- queue: queueAccount,
12725
- slotHashes: anchor.web3.SYSVAR_SLOT_HASHES_PUBKEY,
12726
- instructions: anchor.web3.SYSVAR_INSTRUCTIONS_PUBKEY,
12675
+ // queue: queueAccount,
12676
+ // slotHashes: anchor.web3.SYSVAR_SLOT_HASHES_PUBKEY,
12677
+ // instructions: anchor.web3.SYSVAR_INSTRUCTIONS_PUBKEY,
12727
12678
  mint: mintPubkey,
12728
12679
  tokenProgram: tokenProgramForMint,
12729
12680
  systemProgram: anchor.web3.SystemProgram.programId