@interest-protocol/vortex-sdk 8.2.0 → 8.3.0

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/index.js CHANGED
@@ -39014,31 +39014,31 @@ function getMerklePath(merkleTree, utxo) {
39014
39014
  }
39015
39015
  const toProveInput = ({ root, merklePath0, merklePath1, publicAmount, nullifier0, nullifier1, commitment0, commitment1, vortexKeypair, inputUtxo0, inputUtxo1, outputUtxo0, outputUtxo1, vortexObjectId, accountSecret, }) => {
39016
39016
  return {
39017
- vortex: BigInt(normalizeSuiAddress(vortexObjectId, !vortexObjectId.startsWith('0x'))) % BN254_FIELD_MODULUS,
39018
- root,
39019
- publicAmount,
39020
- inputNullifier0: nullifier0,
39021
- inputNullifier1: nullifier1,
39022
- outputCommitment0: commitment0,
39023
- outputCommitment1: commitment1,
39024
- hashedAccountSecret: accountSecret === 0n ? 0n : poseidon1(accountSecret),
39025
- accountSecret: accountSecret === 0n ? 12345n : accountSecret,
39017
+ vortex: (BigInt(normalizeSuiAddress(vortexObjectId, !vortexObjectId.startsWith('0x'))) % BN254_FIELD_MODULUS).toString(),
39018
+ root: root.toString(),
39019
+ publicAmount: publicAmount.toString(),
39020
+ inputNullifier0: nullifier0.toString(),
39021
+ inputNullifier1: nullifier1.toString(),
39022
+ outputCommitment0: commitment0.toString(),
39023
+ outputCommitment1: commitment1.toString(),
39024
+ hashedAccountSecret: accountSecret === 0n ? '0' : poseidon1(accountSecret).toString(),
39025
+ accountSecret: accountSecret === 0n ? '12345' : accountSecret.toString(),
39026
39026
  inPrivateKey0: vortexKeypair.privateKey,
39027
39027
  inPrivateKey1: vortexKeypair.privateKey,
39028
- inAmount0: inputUtxo0.amount,
39029
- inAmount1: inputUtxo1.amount,
39030
- inBlinding0: inputUtxo0.blinding,
39031
- inBlinding1: inputUtxo1.blinding,
39032
- inPathIndex0: inputUtxo0.index,
39033
- inPathIndex1: inputUtxo1.index,
39028
+ inAmount0: inputUtxo0.amount.toString(),
39029
+ inAmount1: inputUtxo1.amount.toString(),
39030
+ inBlinding0: inputUtxo0.blinding.toString(),
39031
+ inBlinding1: inputUtxo1.blinding.toString(),
39032
+ inPathIndex0: inputUtxo0.index.toString(),
39033
+ inPathIndex1: inputUtxo1.index.toString(),
39034
39034
  merklePath0,
39035
39035
  merklePath1,
39036
39036
  outPublicKey0: vortexKeypair.publicKey,
39037
39037
  outPublicKey1: vortexKeypair.publicKey,
39038
- outAmount0: outputUtxo0.amount,
39039
- outAmount1: outputUtxo1.amount,
39040
- outBlinding0: outputUtxo0.blinding,
39041
- outBlinding1: outputUtxo1.blinding,
39038
+ outAmount0: outputUtxo0.amount.toString(),
39039
+ outAmount1: outputUtxo1.amount.toString(),
39040
+ outBlinding0: outputUtxo0.blinding.toString(),
39041
+ outBlinding1: outputUtxo1.blinding.toString(),
39042
39042
  };
39043
39043
  };
39044
39044
  const extractCoinType = (typeString) => {