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