veilix-sdk 0.0.5 → 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/circuits/paths.cjs.map +1 -1
- package/dist/circuits/paths.js.map +1 -1
- package/dist/index.cjs +10 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +10 -9
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +10 -9
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12625,7 +12625,7 @@ function getProgramId() {
|
|
|
12625
12625
|
}
|
|
12626
12626
|
return _programId;
|
|
12627
12627
|
}
|
|
12628
|
-
var CONFIG_SEED = Buffer.from("
|
|
12628
|
+
var CONFIG_SEED = Buffer.from("config");
|
|
12629
12629
|
function getPoolPDA(denominationLamports) {
|
|
12630
12630
|
const buf = Buffer.alloc(8);
|
|
12631
12631
|
buf.writeBigUInt64BE(BigInt(denominationLamports));
|
|
@@ -12799,8 +12799,6 @@ async function buildDepositTx({
|
|
|
12799
12799
|
}).instruction()
|
|
12800
12800
|
);
|
|
12801
12801
|
}
|
|
12802
|
-
const { sigVerifyIx } = await getOracleQuote(sender, sender.toBase58());
|
|
12803
|
-
ixs.unshift(sigVerifyIx);
|
|
12804
12802
|
const { blockhash } = await connection.getLatestBlockhash();
|
|
12805
12803
|
const depositMessage = new TransactionMessage({
|
|
12806
12804
|
payerKey: sender,
|
|
@@ -13704,11 +13702,14 @@ async function executeVeilixTransfer(items, tempKeypair) {
|
|
|
13704
13702
|
const circuitArtifacts = await prepareWithdrawCircuitArtifacts();
|
|
13705
13703
|
try {
|
|
13706
13704
|
const extendBackupPdaNeeded = await isExtendBackupPdaNeeded2(senderPublicKey, allNotes.length);
|
|
13707
|
-
const [
|
|
13708
|
-
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13705
|
+
const [depositInstructions, initNotesIx] = (
|
|
13706
|
+
//{ sigVerifyIx },
|
|
13707
|
+
await Promise.all([
|
|
13708
|
+
// getOracleQuote(senderPublicKey, senderPublicKey.toBase58()),
|
|
13709
|
+
buildDepositInstructionsForNotes2(senderPublicKey, allNotes, tempKeypair.publicKey),
|
|
13710
|
+
buildInitNotesInstructionIfNeeded2(senderPublicKey)
|
|
13711
|
+
])
|
|
13712
|
+
);
|
|
13712
13713
|
const indexedDeposits = prepared.map((item, index) => ({
|
|
13713
13714
|
item,
|
|
13714
13715
|
depositIx: depositInstructions[index]
|
|
@@ -13719,7 +13720,7 @@ async function executeVeilixTransfer(items, tempKeypair) {
|
|
|
13719
13720
|
Promise.all(
|
|
13720
13721
|
depositChunks.map(async (batch, batchIndex) => {
|
|
13721
13722
|
const instructions = [
|
|
13722
|
-
sigVerifyIx,
|
|
13723
|
+
// sigVerifyIx,
|
|
13723
13724
|
...batch.map((entry) => entry.depositIx)
|
|
13724
13725
|
];
|
|
13725
13726
|
instructions.map((ix) => {
|