@hinkal/common 0.1.16 → 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/data-structures/index.cjs +1 -0
- package/data-structures/index.mjs +26 -0
- 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 -24
- package/providers/prepareWagmiv1Hinkal.cjs +1 -1
- package/providers/prepareWagmiv1Hinkal.mjs +10 -27
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,31 +1,14 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../data-structures/index.mjs";
|
|
2
2
|
import "circomlibjs";
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import "../constants/chains.constants.mjs";
|
|
6
|
-
import "../types/circom-data.types.mjs";
|
|
7
|
-
import "../types/transactions.types.mjs";
|
|
8
|
-
import "../types/curve.types.mjs";
|
|
9
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
10
|
-
import "../constants/vite.constants.mjs";
|
|
11
|
-
import "axios";
|
|
12
|
-
import "../constants/coingecko.constants.mjs";
|
|
13
|
-
import "../constants/contracts.constants.mjs";
|
|
14
|
-
import "../constants/kyc.constants.mjs";
|
|
15
|
-
import "../constants/axelar.constants.mjs";
|
|
16
|
-
import "../constants/rewards.constants.mjs";
|
|
17
|
-
import "../constants/reorg-depths.constants.mjs";
|
|
18
|
-
import { preProcessing as p } from "../crypto/preProcessing.mjs";
|
|
19
|
-
import "../functions/utils/external-action.utils.mjs";
|
|
20
|
-
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
21
|
-
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
22
|
-
import "idb-keyval";
|
|
3
|
+
import "ethers";
|
|
4
|
+
import { preProcessing as e } from "../crypto/preProcessing.mjs";
|
|
23
5
|
import { ethersProvierAdapter as i } from "./EthersProviderAdapter.mjs";
|
|
24
|
-
|
|
25
|
-
|
|
6
|
+
import { Hinkal as o } from "../data-structures/Hinkal/Hinkal.mjs";
|
|
7
|
+
const c = async (t) => {
|
|
8
|
+
await e();
|
|
26
9
|
const r = new o();
|
|
27
10
|
return i.initSigner?.(t), await r.initProviderAdapter(void 0, i), await r.initUserKeys(), await r.resetMerkle(), r;
|
|
28
11
|
};
|
|
29
12
|
export {
|
|
30
|
-
|
|
13
|
+
c as prepareEthersHinkal
|
|
31
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,31 +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 "axios";
|
|
12
|
-
import "../constants/coingecko.constants.mjs";
|
|
13
|
-
import "../constants/contracts.constants.mjs";
|
|
14
|
-
import "../constants/kyc.constants.mjs";
|
|
15
|
-
import "../constants/axelar.constants.mjs";
|
|
16
|
-
import "../constants/rewards.constants.mjs";
|
|
17
|
-
import "../constants/reorg-depths.constants.mjs";
|
|
18
|
-
import { preProcessing as o } from "../crypto/preProcessing.mjs";
|
|
19
|
-
import "../functions/utils/external-action.utils.mjs";
|
|
20
|
-
import "../functions/web3/events/getShieldedBalance.mjs";
|
|
21
|
-
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
22
|
-
import "idb-keyval";
|
|
23
|
-
import { wagmiv1ProvierAdapter as p } from "./Wagmiv1ProviderAdapter.mjs";
|
|
24
|
-
const W = async (i) => {
|
|
25
|
-
await o();
|
|
26
|
-
const r = new t();
|
|
27
|
-
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;
|
|
28
11
|
};
|
|
29
12
|
export {
|
|
30
|
-
|
|
13
|
+
c as prepareWagmiv1Hinkal
|
|
31
14
|
};
|