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