@umbra-privacy/sdk 2.0.3 → 2.0.5
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/{chunk-ZQOIYCGA.cjs → chunk-43JEHY7D.cjs} +513 -3
- package/dist/chunk-43JEHY7D.cjs.map +1 -0
- package/dist/{chunk-INJ73LXQ.js → chunk-FQDYYTPG.js} +513 -3
- package/dist/chunk-FQDYYTPG.js.map +1 -0
- package/dist/constants/index.cjs +18 -18
- package/dist/constants/index.js +1 -1
- package/dist/index.cjs +44 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -13
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-INJ73LXQ.js.map +0 -1
- package/dist/chunk-ZQOIYCGA.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkNKVMSABR_cjs = require('./chunk-NKVMSABR.cjs');
|
|
4
|
+
var chunk43JEHY7D_cjs = require('./chunk-43JEHY7D.cjs');
|
|
4
5
|
var chunk3LS5P32X_cjs = require('./chunk-3LS5P32X.cjs');
|
|
5
6
|
var chunkZY3TSHMJ_cjs = require('./chunk-ZY3TSHMJ.cjs');
|
|
6
7
|
var chunkUEI7SYH6_cjs = require('./chunk-UEI7SYH6.cjs');
|
|
7
|
-
var chunkZQOIYCGA_cjs = require('./chunk-ZQOIYCGA.cjs');
|
|
8
8
|
require('./chunk-TQQZGNOI.cjs');
|
|
9
9
|
var chunkBL6WXLPV_cjs = require('./chunk-BL6WXLPV.cjs');
|
|
10
10
|
var chunkYEZBTYCP_cjs = require('./chunk-YEZBTYCP.cjs');
|
|
@@ -671,12 +671,12 @@ async function getUmbraClient(args, deps) {
|
|
|
671
671
|
offsets: customOffsets,
|
|
672
672
|
deferMasterSeedSignature = false
|
|
673
673
|
} = args;
|
|
674
|
-
const networkConfig =
|
|
674
|
+
const networkConfig = chunk43JEHY7D_cjs.getNetworkConfig(network);
|
|
675
675
|
const versions = {
|
|
676
|
-
protocol: customVersions?.protocol ??
|
|
677
|
-
algorithm: customVersions?.algorithm ??
|
|
678
|
-
scheme: customVersions?.scheme ??
|
|
679
|
-
network:
|
|
676
|
+
protocol: customVersions?.protocol ?? chunk43JEHY7D_cjs.getDefaultProtocolVersion,
|
|
677
|
+
algorithm: customVersions?.algorithm ?? chunk43JEHY7D_cjs.getDefaultAlgorithmVersion,
|
|
678
|
+
scheme: customVersions?.scheme ?? chunk43JEHY7D_cjs.getDefaultSchemeVersion,
|
|
679
|
+
network: chunk43JEHY7D_cjs.getNetworkSpecifier(network)
|
|
680
680
|
};
|
|
681
681
|
const offsets = {
|
|
682
682
|
masterViewingKey: customOffsets?.masterViewingKey ?? 0n,
|
|
@@ -5135,9 +5135,9 @@ function getComplianceGrantIssuerFunction(args, deps) {
|
|
|
5135
5135
|
granterX25519: { first: granterX25519 },
|
|
5136
5136
|
receiverX25519: { first: receiverX25519 },
|
|
5137
5137
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES }
|
|
5138
|
-
});
|
|
5138
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5139
5139
|
const latestBlockhash = await getLatestBlockhash();
|
|
5140
|
-
const computeBudgetInstruction =
|
|
5140
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5141
5141
|
const transactionMessage = kit.pipe(
|
|
5142
5142
|
kit.createTransactionMessage({ version: 0 }),
|
|
5143
5143
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5179,9 +5179,9 @@ function getComplianceGrantRevokerFunction(args, deps) {
|
|
|
5179
5179
|
granterX25519: { first: granterX25519 },
|
|
5180
5180
|
receiverX25519: { first: receiverX25519 },
|
|
5181
5181
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES2 }
|
|
5182
|
-
});
|
|
5182
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5183
5183
|
const latestBlockhash = await getLatestBlockhash();
|
|
5184
|
-
const computeBudgetInstruction =
|
|
5184
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5185
5185
|
const transactionMessage = kit.pipe(
|
|
5186
5186
|
kit.createTransactionMessage({ version: 0 }),
|
|
5187
5187
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5260,7 +5260,8 @@ function getSharedCiphertextReencryptorForUserGrantFunction(args, deps) {
|
|
|
5260
5260
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5261
5261
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5262
5262
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES3 }
|
|
5263
|
-
}
|
|
5263
|
+
},
|
|
5264
|
+
{ programAddress: client.networkConfig.programId }
|
|
5264
5265
|
);
|
|
5265
5266
|
const latestBlockhash = await getLatestBlockhash();
|
|
5266
5267
|
const baseTransactionMessage = kit.pipe(
|
|
@@ -5345,7 +5346,8 @@ function getNetworkCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5345
5346
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5346
5347
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5347
5348
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES4 }
|
|
5348
|
-
}
|
|
5349
|
+
},
|
|
5350
|
+
{ programAddress: client.networkConfig.programId }
|
|
5349
5351
|
);
|
|
5350
5352
|
const latestBlockhash = await getLatestBlockhash();
|
|
5351
5353
|
const baseTransactionMessage = kit.pipe(
|
|
@@ -5430,7 +5432,7 @@ function getSharedCiphertextReencryptorForNetworkGrantFunction(args, deps) {
|
|
|
5430
5432
|
mpcCallbackDataOffset: { first: mpcCallbackDataOffset },
|
|
5431
5433
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5432
5434
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES5 }
|
|
5433
|
-
});
|
|
5435
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5434
5436
|
const latestBlockhash = await getLatestBlockhash();
|
|
5435
5437
|
const baseTransactionMessage = kit.pipe(
|
|
5436
5438
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -5623,7 +5625,7 @@ function getNetworkEncryptionToSharedEncryptionConverterFunction(args, deps) {
|
|
|
5623
5625
|
},
|
|
5624
5626
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5625
5627
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES6 }
|
|
5626
|
-
});
|
|
5628
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5627
5629
|
const baseTransactionMessage = kit.pipe(
|
|
5628
5630
|
kit.createTransactionMessage({ version: 0 }),
|
|
5629
5631
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5778,9 +5780,9 @@ function getMintEncryptionKeyRotatorFunction(args, deps) {
|
|
|
5778
5780
|
},
|
|
5779
5781
|
priorityFees: { first: microLamportsPerAcu ?? 0n },
|
|
5780
5782
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES7 }
|
|
5781
|
-
});
|
|
5783
|
+
}, { programAddress: client.networkConfig.programId });
|
|
5782
5784
|
const latestBlockhash = await getLatestBlockhash();
|
|
5783
|
-
const computeBudgetInstruction =
|
|
5785
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
5784
5786
|
const baseTransactionMessage = kit.pipe(
|
|
5785
5787
|
kit.createTransactionMessage({ version: 0 }),
|
|
5786
5788
|
(m) => kit.setTransactionMessageFeePayer(userAddress, m),
|
|
@@ -5946,7 +5948,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
5946
5948
|
{
|
|
5947
5949
|
instruction,
|
|
5948
5950
|
preInstructions: [
|
|
5949
|
-
|
|
5951
|
+
chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5),
|
|
5950
5952
|
...preInstructions ?? []
|
|
5951
5953
|
],
|
|
5952
5954
|
altEntry
|
|
@@ -6017,7 +6019,7 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6017
6019
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError("mint-fetch", `Mint account not found: ${mint}`);
|
|
6018
6020
|
}
|
|
6019
6021
|
mintOwner = mintAccount.programAddress;
|
|
6020
|
-
if (mintOwner ===
|
|
6022
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
6021
6023
|
const mintData = new Uint8Array(mintAccount.data);
|
|
6022
6024
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
6023
6025
|
if (feeConfig === null) {
|
|
@@ -6035,12 +6037,12 @@ function getPublicBalanceToEncryptedBalanceDirectDepositorFunction(args, deps) {
|
|
|
6035
6037
|
chunkLTCKPTZC_cjs.assertU64(calculatedDepositAmount);
|
|
6036
6038
|
depositAmount = calculatedDepositAmount;
|
|
6037
6039
|
}
|
|
6038
|
-
} else if (mintOwner ===
|
|
6040
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
6039
6041
|
depositAmount = transferAmount;
|
|
6040
6042
|
} else {
|
|
6041
6043
|
throw new chunkBL6WXLPV_cjs.EncryptedDepositError(
|
|
6042
6044
|
"mint-fetch",
|
|
6043
|
-
`Unknown token program: ${mintOwner}. Expected SPL Token (${
|
|
6045
|
+
`Unknown token program: ${mintOwner}. Expected SPL Token (${chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID}) or Token-2022 (${chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID})`
|
|
6044
6046
|
);
|
|
6045
6047
|
}
|
|
6046
6048
|
} catch (error) {
|
|
@@ -7240,7 +7242,7 @@ function getEncryptedBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
7240
7242
|
},
|
|
7241
7243
|
{ programAddress: client.networkConfig.programId }
|
|
7242
7244
|
);
|
|
7243
|
-
const computeBudgetInstruction =
|
|
7245
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(6e5);
|
|
7244
7246
|
const resolvedAwaitConfig = factoryAwaitComputationFinalization === false ? false : factoryAwaitComputationFinalization ?? {};
|
|
7245
7247
|
const utxoCallbackOptions = resolvedAwaitConfig === false ? void 0 : {
|
|
7246
7248
|
...resolvedAwaitConfig,
|
|
@@ -8230,7 +8232,7 @@ function getEncryptedBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8230
8232
|
},
|
|
8231
8233
|
{ programAddress: client.networkConfig.programId }
|
|
8232
8234
|
);
|
|
8233
|
-
const computeBudgetInstruction =
|
|
8235
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(6e5);
|
|
8234
8236
|
const resolvedAwaitConfig = factoryAwaitComputationFinalization === false ? false : factoryAwaitComputationFinalization ?? {};
|
|
8235
8237
|
const utxoCallbackOptions = resolvedAwaitConfig === false ? void 0 : {
|
|
8236
8238
|
...resolvedAwaitConfig,
|
|
@@ -8371,7 +8373,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8371
8373
|
mintAccountMap.get(client.networkConfig.mxeAccountAddress)
|
|
8372
8374
|
);
|
|
8373
8375
|
const mintOwner = mintAccount.programAddress;
|
|
8374
|
-
if (mintOwner ===
|
|
8376
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
8375
8377
|
const mintData = new Uint8Array(mintAccount.data);
|
|
8376
8378
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
8377
8379
|
if (feeConfig === null) {
|
|
@@ -8386,10 +8388,10 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8386
8388
|
);
|
|
8387
8389
|
}
|
|
8388
8390
|
}
|
|
8389
|
-
mintTokenProgram =
|
|
8390
|
-
} else if (mintOwner ===
|
|
8391
|
+
mintTokenProgram = chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID;
|
|
8392
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
8391
8393
|
actualReceived = amount;
|
|
8392
|
-
mintTokenProgram =
|
|
8394
|
+
mintTokenProgram = chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID;
|
|
8393
8395
|
} else {
|
|
8394
8396
|
throw new chunkBL6WXLPV_cjs.TransactionError(
|
|
8395
8397
|
`Unknown token program: ${mintOwner}. Expected SPL Token or Token-2022.`
|
|
@@ -8761,7 +8763,7 @@ function getPublicBalanceToSelfClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8761
8763
|
},
|
|
8762
8764
|
{ programAddress: client.networkConfig.programId }
|
|
8763
8765
|
);
|
|
8764
|
-
const computeBudgetInstruction =
|
|
8766
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
8765
8767
|
if (factoryCreateUtxoCallbacks?.pre !== void 0) {
|
|
8766
8768
|
await factoryCreateUtxoCallbacks.pre(proofAccountResult.signedTransaction);
|
|
8767
8769
|
}
|
|
@@ -8915,7 +8917,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8915
8917
|
throw new chunkBL6WXLPV_cjs.TransactionError(`Mint account not found: ${mint}`);
|
|
8916
8918
|
}
|
|
8917
8919
|
const mintOwner = mintAccount.programAddress;
|
|
8918
|
-
if (mintOwner ===
|
|
8920
|
+
if (mintOwner === chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
8919
8921
|
const mintData = new Uint8Array(mintAccount.data);
|
|
8920
8922
|
const feeConfig = chunkZY3TSHMJ_cjs.extractTransferFeeConfig(mintData);
|
|
8921
8923
|
if (feeConfig === null) {
|
|
@@ -8930,10 +8932,10 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
8930
8932
|
);
|
|
8931
8933
|
}
|
|
8932
8934
|
}
|
|
8933
|
-
mintTokenProgram =
|
|
8934
|
-
} else if (mintOwner ===
|
|
8935
|
+
mintTokenProgram = chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID;
|
|
8936
|
+
} else if (mintOwner === chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID) {
|
|
8935
8937
|
actualReceived = amount;
|
|
8936
|
-
mintTokenProgram =
|
|
8938
|
+
mintTokenProgram = chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID;
|
|
8937
8939
|
} else {
|
|
8938
8940
|
throw new chunkBL6WXLPV_cjs.TransactionError(
|
|
8939
8941
|
`Unknown token program: ${mintOwner}. Expected SPL Token or Token-2022.`
|
|
@@ -9291,7 +9293,7 @@ function getPublicBalanceToReceiverClaimableUtxoCreatorFunction(args, deps) {
|
|
|
9291
9293
|
},
|
|
9292
9294
|
{ programAddress: client.networkConfig.programId }
|
|
9293
9295
|
);
|
|
9294
|
-
const computeBudgetInstruction =
|
|
9296
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
9295
9297
|
if (factoryCreateUtxoCallbacks?.pre !== void 0) {
|
|
9296
9298
|
await factoryCreateUtxoCallbacks.pre(proofAccountResult.signedTransaction);
|
|
9297
9299
|
}
|
|
@@ -9592,7 +9594,7 @@ function getStagedSolRecovererFunction(args, deps) {
|
|
|
9592
9594
|
destination,
|
|
9593
9595
|
amount: { first: amount },
|
|
9594
9596
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES8 }
|
|
9595
|
-
});
|
|
9597
|
+
}, { programAddress: client.networkConfig.programId });
|
|
9596
9598
|
const latestBlockhash = await getLatestBlockhash();
|
|
9597
9599
|
const transactionMessage = kit.pipe(
|
|
9598
9600
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -9631,7 +9633,7 @@ function getStagedSplRecovererFunction(args, deps) {
|
|
|
9631
9633
|
destinationAta,
|
|
9632
9634
|
amount: { first: amount },
|
|
9633
9635
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES9 }
|
|
9634
|
-
});
|
|
9636
|
+
}, { programAddress: client.networkConfig.programId });
|
|
9635
9637
|
const latestBlockhash = await getLatestBlockhash();
|
|
9636
9638
|
const transactionMessage = kit.pipe(
|
|
9637
9639
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -9816,7 +9818,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
9816
9818
|
programAddress: client.networkConfig.programId
|
|
9817
9819
|
}
|
|
9818
9820
|
);
|
|
9819
|
-
const computeBudgetInstruction =
|
|
9821
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
9820
9822
|
const signature = await executeTransactionWithCallbacks(
|
|
9821
9823
|
registerX25519Instruction,
|
|
9822
9824
|
callbacks?.registerX25519PublicKey,
|
|
@@ -10229,7 +10231,7 @@ function getUserRegistrationFunction(args, deps) {
|
|
|
10229
10231
|
programAddress: client.networkConfig.programId
|
|
10230
10232
|
}
|
|
10231
10233
|
);
|
|
10232
|
-
const computeBudgetInstruction =
|
|
10234
|
+
const computeBudgetInstruction = chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(12e5);
|
|
10233
10235
|
const registrationAltEntry = chunkAXD7LXYY_cjs.lookupAltEntry(client.networkConfig.addressLookupTables, clusterOffset, "register_user_for_anonymous_usage_v11");
|
|
10234
10236
|
const signature = await executeTransactionWithCallbacks(
|
|
10235
10237
|
registerAnonymousInstruction,
|
|
@@ -10307,7 +10309,7 @@ function getUserEntropySeedRotatorFunction(args, deps) {
|
|
|
10307
10309
|
user: noopSigner,
|
|
10308
10310
|
newSeed: { first: newSeed },
|
|
10309
10311
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES10 }
|
|
10310
|
-
});
|
|
10312
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10311
10313
|
const latestBlockhash = await getLatestBlockhash();
|
|
10312
10314
|
const transactionMessage = kit.pipe(
|
|
10313
10315
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -10348,7 +10350,7 @@ function getTokenEntropySeedRotatorFunction(args, deps) {
|
|
|
10348
10350
|
mint,
|
|
10349
10351
|
newSeed: { first: newSeed },
|
|
10350
10352
|
optionalData: { first: optionalData ?? DEFAULT_OPTIONAL_DATA_BYTES11 }
|
|
10351
|
-
});
|
|
10353
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10352
10354
|
const latestBlockhash = await getLatestBlockhash();
|
|
10353
10355
|
const transactionMessage = kit.pipe(
|
|
10354
10356
|
kit.createTransactionMessage({ version: 0 }),
|
|
@@ -10461,7 +10463,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10461
10463
|
executorConfig,
|
|
10462
10464
|
{
|
|
10463
10465
|
instruction,
|
|
10464
|
-
preInstructions: [
|
|
10466
|
+
preInstructions: [chunk43JEHY7D_cjs.createSetComputeUnitLimitInstruction(4e5)],
|
|
10465
10467
|
altEntry
|
|
10466
10468
|
},
|
|
10467
10469
|
awaitCallback
|
|
@@ -10522,10 +10524,10 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10522
10524
|
throw new chunkBL6WXLPV_cjs.EncryptedWithdrawalError("mint-fetch", `Mint account not found: ${mint}`);
|
|
10523
10525
|
}
|
|
10524
10526
|
const mintOwner = mintAccount.programAddress;
|
|
10525
|
-
if (mintOwner !==
|
|
10527
|
+
if (mintOwner !== chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID && mintOwner !== chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID) {
|
|
10526
10528
|
throw new chunkBL6WXLPV_cjs.EncryptedWithdrawalError(
|
|
10527
10529
|
"mint-fetch",
|
|
10528
|
-
`Unknown token program: ${mintOwner}. Expected SPL Token (${
|
|
10530
|
+
`Unknown token program: ${mintOwner}. Expected SPL Token (${chunk43JEHY7D_cjs.SPL_TOKEN_PROGRAM_ID}) or Token-2022 (${chunk43JEHY7D_cjs.TOKEN_2022_PROGRAM_ID})`
|
|
10529
10531
|
);
|
|
10530
10532
|
}
|
|
10531
10533
|
mintTokenProgram = mintOwner;
|
|
@@ -10599,7 +10601,7 @@ function getEncryptedBalanceToPublicBalanceDirectWithdrawerFunction(args, deps)
|
|
|
10599
10601
|
},
|
|
10600
10602
|
// Fee slab data and merkle proof
|
|
10601
10603
|
...feeSlabResultToInstructionFields(protocolFeeConfig)
|
|
10602
|
-
});
|
|
10604
|
+
}, { programAddress: client.networkConfig.programId });
|
|
10603
10605
|
} catch (error) {
|
|
10604
10606
|
if (error instanceof chunkBL6WXLPV_cjs.EncryptedWithdrawalError) {
|
|
10605
10607
|
throw error;
|