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.cjs
CHANGED
|
@@ -12653,7 +12653,7 @@ function getProgramId() {
|
|
|
12653
12653
|
}
|
|
12654
12654
|
return _programId;
|
|
12655
12655
|
}
|
|
12656
|
-
var CONFIG_SEED = buffer.Buffer.from("
|
|
12656
|
+
var CONFIG_SEED = buffer.Buffer.from("config");
|
|
12657
12657
|
function getPoolPDA(denominationLamports) {
|
|
12658
12658
|
const buf = buffer.Buffer.alloc(8);
|
|
12659
12659
|
buf.writeBigUInt64BE(BigInt(denominationLamports));
|
|
@@ -12827,8 +12827,6 @@ async function buildDepositTx({
|
|
|
12827
12827
|
}).instruction()
|
|
12828
12828
|
);
|
|
12829
12829
|
}
|
|
12830
|
-
const { sigVerifyIx } = await getOracleQuote(sender, sender.toBase58());
|
|
12831
|
-
ixs.unshift(sigVerifyIx);
|
|
12832
12830
|
const { blockhash } = await connection.getLatestBlockhash();
|
|
12833
12831
|
const depositMessage = new web3_js.TransactionMessage({
|
|
12834
12832
|
payerKey: sender,
|
|
@@ -13732,11 +13730,14 @@ async function executeVeilixTransfer(items, tempKeypair) {
|
|
|
13732
13730
|
const circuitArtifacts = await prepareWithdrawCircuitArtifacts();
|
|
13733
13731
|
try {
|
|
13734
13732
|
const extendBackupPdaNeeded = await isExtendBackupPdaNeeded2(senderPublicKey, allNotes.length);
|
|
13735
|
-
const [
|
|
13736
|
-
|
|
13737
|
-
|
|
13738
|
-
|
|
13739
|
-
|
|
13733
|
+
const [depositInstructions, initNotesIx] = (
|
|
13734
|
+
//{ sigVerifyIx },
|
|
13735
|
+
await Promise.all([
|
|
13736
|
+
// getOracleQuote(senderPublicKey, senderPublicKey.toBase58()),
|
|
13737
|
+
buildDepositInstructionsForNotes2(senderPublicKey, allNotes, tempKeypair.publicKey),
|
|
13738
|
+
buildInitNotesInstructionIfNeeded2(senderPublicKey)
|
|
13739
|
+
])
|
|
13740
|
+
);
|
|
13740
13741
|
const indexedDeposits = prepared.map((item, index) => ({
|
|
13741
13742
|
item,
|
|
13742
13743
|
depositIx: depositInstructions[index]
|
|
@@ -13747,7 +13748,7 @@ async function executeVeilixTransfer(items, tempKeypair) {
|
|
|
13747
13748
|
Promise.all(
|
|
13748
13749
|
depositChunks.map(async (batch, batchIndex) => {
|
|
13749
13750
|
const instructions = [
|
|
13750
|
-
sigVerifyIx,
|
|
13751
|
+
// sigVerifyIx,
|
|
13751
13752
|
...batch.map((entry) => entry.depositIx)
|
|
13752
13753
|
];
|
|
13753
13754
|
instructions.map((ix) => {
|