@hinkal/common 0.1.15 → 0.1.17

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.
Files changed (51) hide show
  1. package/crypto/preProcessing.cjs +1 -1
  2. package/crypto/preProcessing.mjs +6 -5
  3. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  4. package/data-structures/Hinkal/Hinkal.mjs +3 -2
  5. package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
  6. package/data-structures/Hinkal/hinkalActionStake.mjs +1 -1
  7. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  8. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +3 -2
  9. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  10. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +8 -9
  11. package/data-structures/crypto-keys/keys.cjs +1 -1
  12. package/data-structures/crypto-keys/keys.mjs +6 -7
  13. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
  14. package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +3 -2
  15. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
  16. package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +11 -10
  17. package/data-structures/index.cjs +1 -0
  18. package/data-structures/index.mjs +26 -0
  19. package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +1 -1
  20. package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +3 -2
  21. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
  22. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +3 -2
  23. package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +1 -1
  24. package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +3 -2
  25. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  26. package/functions/pre-transaction/outputUtxoProcessing.mjs +3 -2
  27. package/functions/pre-transaction/processAmountChanges.cjs +1 -1
  28. package/functions/pre-transaction/processAmountChanges.mjs +8 -7
  29. package/functions/protocols/pendle.helpers.cjs +1 -1
  30. package/functions/protocols/pendle.helpers.mjs +1 -1
  31. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  32. package/functions/web3/functionCalls/transactCallRelayer.mjs +1 -1
  33. package/functions/web3/odosAPI.cjs +1 -1
  34. package/functions/web3/odosAPI.mjs +6 -5
  35. package/functions/web3/oneInchAPI.cjs +1 -1
  36. package/functions/web3/oneInchAPI.mjs +7 -6
  37. package/functions/web3/runContractFunction.cjs +1 -1
  38. package/functions/web3/runContractFunction.mjs +7 -6
  39. package/functions/web3/uniswapAPI.cjs +1 -1
  40. package/functions/web3/uniswapAPI.mjs +3 -2
  41. package/index.cjs +1 -1
  42. package/index.mjs +640 -639
  43. package/package.json +1 -1
  44. package/providers/prepareEthersHinkal.cjs +1 -1
  45. package/providers/prepareEthersHinkal.mjs +7 -25
  46. package/providers/prepareWagmiv1Hinkal.cjs +1 -1
  47. package/providers/prepareWagmiv1Hinkal.mjs +10 -28
  48. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  49. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  50. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  51. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs");require("../data-structures/crypto-keys/keys.cjs");require("../data-structures/crypto-keys/encryptDecryptUtxo.cjs");const t=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const u=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const r=require("./EthersProviderAdapter.cjs"),q=async i=>{await u.preProcessing();const e=new t.Hinkal;return r.ethersProvierAdapter.initSigner?.(i),await e.initProviderAdapter(void 0,r.ethersProvierAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareEthersHinkal=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../data-structures/index.cjs");require("circomlibjs");require("ethers");const t=require("../crypto/preProcessing.cjs"),r=require("./EthersProviderAdapter.cjs"),a=require("../data-structures/Hinkal/Hinkal.cjs"),n=async i=>{await t.preProcessing();const e=new a.Hinkal;return r.ethersProvierAdapter.initSigner?.(i),await e.initProviderAdapter(void 0,r.ethersProvierAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareEthersHinkal=n;
@@ -1,32 +1,14 @@
1
- import "ethers";
1
+ import "../data-structures/index.mjs";
2
2
  import "circomlibjs";
3
- import "../data-structures/crypto-keys/keys.mjs";
4
- import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
5
- import { Hinkal as o } from "../data-structures/Hinkal/Hinkal.mjs";
6
- import "../constants/chains.constants.mjs";
7
- import "../types/circom-data.types.mjs";
8
- import "../types/transactions.types.mjs";
9
- import "../types/curve.types.mjs";
10
- import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
11
- import "../constants/vite.constants.mjs";
12
- import "axios";
13
- import "../constants/coingecko.constants.mjs";
14
- import "../constants/contracts.constants.mjs";
15
- import "../constants/kyc.constants.mjs";
16
- import "../constants/axelar.constants.mjs";
17
- import "../constants/rewards.constants.mjs";
18
- import "../constants/reorg-depths.constants.mjs";
19
- import { preProcessing as p } from "../crypto/preProcessing.mjs";
20
- import "../functions/utils/external-action.utils.mjs";
21
- import "../functions/web3/events/getShieldedBalance.mjs";
22
- import "../data-structures/volatile-helper/VolatileHelper.mjs";
23
- import "idb-keyval";
3
+ import "ethers";
4
+ import { preProcessing as e } from "../crypto/preProcessing.mjs";
24
5
  import { ethersProvierAdapter as i } from "./EthersProviderAdapter.mjs";
25
- const U = async (t) => {
26
- await p();
6
+ import { Hinkal as o } from "../data-structures/Hinkal/Hinkal.mjs";
7
+ const c = async (t) => {
8
+ await e();
27
9
  const r = new o();
28
10
  return i.initSigner?.(t), await r.initProviderAdapter(void 0, i), await r.initUserKeys(), await r.resetMerkle(), r;
29
11
  };
30
12
  export {
31
- U as prepareEthersHinkal
13
+ c as prepareEthersHinkal
32
14
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs");require("../data-structures/crypto-keys/keys.cjs");require("../data-structures/crypto-keys/encryptDecryptUtxo.cjs");const i=require("../data-structures/Hinkal/Hinkal.cjs");require("../constants/chains.constants.cjs");require("../types/circom-data.types.cjs");require("../types/transactions.types.cjs");require("../types/curve.types.cjs");require("../data-structures/custom-token-registry/CustomTokenRegistry.cjs");require("../constants/vite.constants.cjs");require("axios");require("../constants/coingecko.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/axelar.constants.cjs");require("../constants/rewards.constants.cjs");require("../constants/reorg-depths.constants.cjs");const u=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const a=require("./Wagmiv1ProviderAdapter.cjs"),q=async r=>{await u.preProcessing();const e=new i.Hinkal;return await e.initProviderAdapter(r,a.wagmiv1ProvierAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareWagmiv1Hinkal=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../data-structures/index.cjs");require("circomlibjs");require("ethers");const i=require("../crypto/preProcessing.cjs"),a=require("./Wagmiv1ProviderAdapter.cjs"),t=require("../data-structures/Hinkal/Hinkal.cjs"),n=async r=>{await i.preProcessing();const e=new t.Hinkal;return await e.initProviderAdapter(r,a.wagmiv1ProvierAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareWagmiv1Hinkal=n;
@@ -1,32 +1,14 @@
1
- import "ethers";
1
+ import "../data-structures/index.mjs";
2
2
  import "circomlibjs";
3
- import "../data-structures/crypto-keys/keys.mjs";
4
- import "../data-structures/crypto-keys/encryptDecryptUtxo.mjs";
5
- import { Hinkal as t } from "../data-structures/Hinkal/Hinkal.mjs";
6
- import "../constants/chains.constants.mjs";
7
- import "../types/circom-data.types.mjs";
8
- import "../types/transactions.types.mjs";
9
- import "../types/curve.types.mjs";
10
- import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
11
- import "../constants/vite.constants.mjs";
12
- import "axios";
13
- import "../constants/coingecko.constants.mjs";
14
- import "../constants/contracts.constants.mjs";
15
- import "../constants/kyc.constants.mjs";
16
- import "../constants/axelar.constants.mjs";
17
- import "../constants/rewards.constants.mjs";
18
- import "../constants/reorg-depths.constants.mjs";
19
- import { preProcessing as o } from "../crypto/preProcessing.mjs";
20
- import "../functions/utils/external-action.utils.mjs";
21
- import "../functions/web3/events/getShieldedBalance.mjs";
22
- import "../data-structures/volatile-helper/VolatileHelper.mjs";
23
- import "idb-keyval";
24
- import { wagmiv1ProvierAdapter as p } from "./Wagmiv1ProviderAdapter.mjs";
25
- const b = async (i) => {
26
- await o();
27
- const r = new t();
28
- return await r.initProviderAdapter(i, p), await r.initUserKeys(), await r.resetMerkle(), r;
3
+ import "ethers";
4
+ import { preProcessing as t } from "../crypto/preProcessing.mjs";
5
+ import { wagmiv1ProvierAdapter as a } from "./Wagmiv1ProviderAdapter.mjs";
6
+ import { Hinkal as e } from "../data-structures/Hinkal/Hinkal.mjs";
7
+ const c = async (i) => {
8
+ await t();
9
+ const r = new e();
10
+ return await r.initProviderAdapter(i, a), await r.initUserKeys(), await r.resetMerkle(), r;
29
11
  };
30
12
  export {
31
- b as prepareWagmiv1Hinkal
13
+ c as prepareWagmiv1Hinkal
32
14
  };
@@ -1 +1 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-C2sEzlcI.js").href:new URL("../../assets/utxoWorkerLauncher-C2sEzlcI.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
1
+ "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-CB4QU7Zm.js").href:new URL("../../assets/utxoWorkerLauncher-CB4QU7Zm.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +1,4 @@
1
- const e = "" + new URL("../../assets/utxoWorkerLauncher-C2sEzlcI.js", import.meta.url).href;
1
+ const e = "" + new URL("../../assets/utxoWorkerLauncher-CB4QU7Zm.js", import.meta.url).href;
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";const r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-DqoryIuY.js").href:new URL("../../assets/zkProofWorkerLauncher-DqoryIuY.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=r;
1
+ "use strict";const r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-CqRz9ir5.js").href:new URL("../../assets/zkProofWorkerLauncher-CqRz9ir5.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=r;
@@ -1,4 +1,4 @@
1
- const r = "" + new URL("../../assets/zkProofWorkerLauncher-DqoryIuY.js", import.meta.url).href;
1
+ const r = "" + new URL("../../assets/zkProofWorkerLauncher-CqRz9ir5.js", import.meta.url).href;
2
2
  export {
3
3
  r as default
4
4
  };