@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.
- package/crypto/preProcessing.cjs +1 -1
- package/crypto/preProcessing.mjs +6 -5
- package/data-structures/Hinkal/Hinkal.cjs +1 -1
- package/data-structures/Hinkal/Hinkal.mjs +3 -2
- package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
- package/data-structures/Hinkal/hinkalActionStake.mjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
- package/data-structures/Hinkal/hinkalPrivateWallet.mjs +3 -2
- package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
- package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +8 -9
- package/data-structures/crypto-keys/keys.cjs +1 -1
- package/data-structures/crypto-keys/keys.mjs +6 -7
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractAccessTokenSnapshotService.mjs +3 -2
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/event-service/AbstractCommitmentsSnapshotService.mjs +11 -10
- package/data-structures/index.cjs +1 -0
- package/data-structures/index.mjs +26 -0
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientAccessTokenSnapshotService.mjs +3 -2
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +3 -2
- package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +1 -1
- package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +3 -2
- package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
- package/functions/pre-transaction/outputUtxoProcessing.mjs +3 -2
- package/functions/pre-transaction/processAmountChanges.cjs +1 -1
- package/functions/pre-transaction/processAmountChanges.mjs +8 -7
- package/functions/protocols/pendle.helpers.cjs +1 -1
- package/functions/protocols/pendle.helpers.mjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
- package/functions/web3/functionCalls/transactCallRelayer.mjs +1 -1
- package/functions/web3/odosAPI.cjs +1 -1
- package/functions/web3/odosAPI.mjs +6 -5
- package/functions/web3/oneInchAPI.cjs +1 -1
- package/functions/web3/oneInchAPI.mjs +7 -6
- package/functions/web3/runContractFunction.cjs +1 -1
- package/functions/web3/runContractFunction.mjs +7 -6
- package/functions/web3/uniswapAPI.cjs +1 -1
- package/functions/web3/uniswapAPI.mjs +3 -2
- package/index.cjs +1 -1
- package/index.mjs +640 -639
- package/package.json +1 -1
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +7 -25
- package/providers/prepareWagmiv1Hinkal.cjs +1 -1
- package/providers/prepareWagmiv1Hinkal.mjs +10 -28
- package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
- package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
- package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("
|
|
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 "
|
|
1
|
+
import "../data-structures/index.mjs";
|
|
2
2
|
import "circomlibjs";
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
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
|
-
|
|
26
|
-
|
|
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
|
-
|
|
13
|
+
c as prepareEthersHinkal
|
|
32
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("
|
|
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 "
|
|
1
|
+
import "../data-structures/index.mjs";
|
|
2
2
|
import "circomlibjs";
|
|
3
|
-
import "
|
|
4
|
-
import "../
|
|
5
|
-
import {
|
|
6
|
-
import "../
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
13
|
+
c as prepareWagmiv1Hinkal
|
|
32
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/utxoWorkerLauncher-
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";const r=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-
|
|
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;
|