@hinkal/common 0.2.4 → 0.2.5
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/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
- package/constants/deploy-data/deploy-data-optimism.json.mjs +21 -17
- package/data-structures/cacheDevices/LocalStorageCacheDevice.cjs +1 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +1 -1
- package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +2 -2
- package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
- package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +14 -18
- package/functions/private-wallet/emporium.helpers.cjs +1 -1
- package/functions/private-wallet/emporium.helpers.d.ts +8 -3
- package/functions/private-wallet/emporium.helpers.mjs +23 -11
- package/functions/private-wallet/index.d.ts +1 -0
- package/functions/private-wallet/opProducer.cjs +1 -1
- package/functions/private-wallet/opProducer.mjs +1 -1
- package/functions/private-wallet/smartContractWalletCalculator.cjs +1 -0
- package/functions/private-wallet/smartContractWalletCalculator.d.ts +1 -0
- package/functions/private-wallet/smartContractWalletCalculator.mjs +20 -0
- package/functions/protocols/pendle.helpers.cjs +1 -1
- package/functions/protocols/pendle.helpers.mjs +13 -14
- package/functions/utils/cacheDevice.utils.cjs +1 -1
- package/functions/utils/cacheDevice.utils.mjs +8 -8
- package/functions/utils/string.utils.cjs +1 -1
- package/functions/utils/string.utils.d.ts +1 -0
- package/functions/utils/string.utils.mjs +16 -6
- package/index.cjs +1 -1
- package/index.mjs +229 -226
- package/package.json +1 -1
- package/providers/prepareEthersHinkal.cjs +1 -1
- package/providers/prepareEthersHinkal.mjs +2 -3
- package/providers/prepareWagmiHinkal.cjs +1 -1
- package/providers/prepareWagmiHinkal.mjs +2 -3
- package/types/ethereum-network.types.d.ts +2 -0
- package/types/hinkal.types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const u=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("../constants/token-data/index.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 q=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("node-forge");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const a=require("./EthersProviderAdapter.cjs"),n=async(i,t)=>{await q.preProcessing();const e=new u.Hinkal(t),r=a.default();return r.initSigner?.(i),await e.initProviderAdapter(void 0,r),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareEthersHinkal=n;
|
|
@@ -7,7 +7,6 @@ import "../types/circom-data.types.mjs";
|
|
|
7
7
|
import "../types/transactions.types.mjs";
|
|
8
8
|
import "../types/curve.types.mjs";
|
|
9
9
|
import "../constants/token-data/index.mjs";
|
|
10
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
11
10
|
import "../constants/vite.constants.mjs";
|
|
12
11
|
import "axios";
|
|
13
12
|
import "../constants/coingecko.constants.mjs";
|
|
@@ -23,11 +22,11 @@ import "../functions/web3/events/getShieldedBalance.mjs";
|
|
|
23
22
|
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
24
23
|
import "idb-keyval";
|
|
25
24
|
import e from "./EthersProviderAdapter.mjs";
|
|
26
|
-
const
|
|
25
|
+
const j = async (t, o) => {
|
|
27
26
|
await m();
|
|
28
27
|
const r = new p(o), i = e();
|
|
29
28
|
return i.initSigner?.(t), await r.initProviderAdapter(void 0, i), await r.initUserKeys(), await r.resetMerkle(), r;
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
j as prepareEthersHinkal
|
|
33
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const a=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("../constants/token-data/index.cjs");require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("ethers");require("circomlibjs-hinkal-fork");require("libsodium-wrappers");const a=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("../constants/token-data/index.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 q=require("../crypto/preProcessing.cjs");require("../functions/utils/external-action.utils.cjs");require("node-forge");require("../functions/web3/events/getShieldedBalance.cjs");require("../data-structures/volatile-helper/VolatileHelper.cjs");require("idb-keyval");const r=require("./WagmiProviderAdapter.cjs"),t=async(i,u)=>{await q.preProcessing();const e=new a.Hinkal;return r.wagmiProviderAdapter.initConfig(u),await e.initProviderAdapter(i,r.wagmiProviderAdapter),await e.initUserKeys(),await e.resetMerkle(),e};exports.prepareWagmiHinkal=t;
|
|
@@ -7,7 +7,6 @@ import "../types/circom-data.types.mjs";
|
|
|
7
7
|
import "../types/transactions.types.mjs";
|
|
8
8
|
import "../types/curve.types.mjs";
|
|
9
9
|
import "../constants/token-data/index.mjs";
|
|
10
|
-
import "../data-structures/custom-token-registry/CustomTokenRegistry.mjs";
|
|
11
10
|
import "../constants/vite.constants.mjs";
|
|
12
11
|
import "axios";
|
|
13
12
|
import "../constants/coingecko.constants.mjs";
|
|
@@ -23,11 +22,11 @@ import "../functions/web3/events/getShieldedBalance.mjs";
|
|
|
23
22
|
import "../data-structures/volatile-helper/VolatileHelper.mjs";
|
|
24
23
|
import "idb-keyval";
|
|
25
24
|
import { wagmiProviderAdapter as r } from "./WagmiProviderAdapter.mjs";
|
|
26
|
-
const
|
|
25
|
+
const b = async (t, o) => {
|
|
27
26
|
await m();
|
|
28
27
|
const i = new p();
|
|
29
28
|
return r.initConfig(o), await i.initProviderAdapter(t, r), await i.initUserKeys(), await i.resetMerkle(), i;
|
|
30
29
|
};
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
b as prepareWagmiHinkal
|
|
33
32
|
};
|
|
@@ -123,6 +123,8 @@ export interface ContractData {
|
|
|
123
123
|
hETHOracleAddress?: string;
|
|
124
124
|
HTokenOracleABI?: ContractInterface;
|
|
125
125
|
emporiumAddress?: string;
|
|
126
|
+
hinkalWalletFactoryAddress?: string;
|
|
127
|
+
hinkalWalletBeaconAddress?: string;
|
|
126
128
|
}
|
|
127
129
|
export interface EthereumNetwork {
|
|
128
130
|
name: string;
|