@hinkal/common 0.2.3 → 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.
Files changed (262) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +2 -2
  3. package/API/API.mjs +22 -22
  4. package/API/duneAPI.cjs +1 -1
  5. package/API/duneAPI.mjs +3 -2
  6. package/API/userVerifyTransactions.cjs +1 -1
  7. package/API/userVerifyTransactions.d.ts +6 -7
  8. package/API/userVerifyTransactions.mjs +13 -14
  9. package/constants/chains.constants.cjs +1 -1
  10. package/constants/chains.constants.mjs +2 -2
  11. package/constants/contracts.constants.cjs +1 -1
  12. package/constants/contracts.constants.mjs +138 -134
  13. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  14. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +846 -11
  15. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
  16. package/constants/deploy-data/deploy-data-avalanche.json.mjs +848 -13
  17. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  18. package/constants/deploy-data/deploy-data-base.json.mjs +852 -17
  19. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
  20. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +855 -20
  21. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  22. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +850 -15
  23. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  24. package/constants/deploy-data/deploy-data-localhost.json.mjs +935 -100
  25. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  26. package/constants/deploy-data/deploy-data-optimism.json.mjs +858 -19
  27. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  28. package/constants/deploy-data/deploy-data-polygon.json.mjs +844 -9
  29. package/constants/kyc.constants.cjs +1 -1
  30. package/constants/kyc.constants.mjs +30 -18
  31. package/constants/server.constants.cjs +1 -1
  32. package/constants/server.constants.d.ts +3 -2
  33. package/constants/server.constants.mjs +7 -6
  34. package/constants/token-data/ERC20Registry.cjs +1 -1
  35. package/constants/token-data/ERC20Registry.mjs +48 -48
  36. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  37. package/constants/token-data/arbMainnetRegistry.json.mjs +4 -1
  38. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  39. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +4 -1
  40. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  41. package/constants/token-data/avalancheRegistry.json.mjs +4 -1
  42. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  43. package/constants/token-data/avalancheRegistryFixed.json.mjs +4 -1
  44. package/constants/token-data/baseRegistry.json.cjs +1 -1
  45. package/constants/token-data/baseRegistry.json.mjs +4 -1
  46. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  47. package/constants/token-data/baseRegistryFixed.json.mjs +4 -1
  48. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
  49. package/constants/token-data/bnbMainnetRegistry.json.mjs +12 -9
  50. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
  51. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +12 -9
  52. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  53. package/constants/token-data/ethMainnetRegistry.json.mjs +15 -12
  54. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  55. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +15 -12
  56. package/constants/token-data/index.cjs +1 -0
  57. package/constants/token-data/index.d.ts +972 -15
  58. package/constants/token-data/index.mjs +34 -0
  59. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  60. package/constants/token-data/localhostRegistry.json.mjs +15 -12
  61. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  62. package/constants/token-data/optimismRegistry.json.mjs +4 -1
  63. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  64. package/constants/token-data/optimismRegistryFixed.json.mjs +4 -1
  65. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  66. package/constants/token-data/polygonRegistry.json.mjs +4 -1
  67. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  68. package/constants/token-data/polygonRegistryFixed.json.mjs +4 -1
  69. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  70. package/data-structures/Hinkal/Hinkal.d.ts +2 -0
  71. package/data-structures/Hinkal/Hinkal.mjs +38 -32
  72. package/data-structures/Hinkal/IHinkal.d.ts +2 -0
  73. package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
  74. package/data-structures/Hinkal/hinkalActionBeefy.mjs +21 -20
  75. package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
  76. package/data-structures/Hinkal/hinkalActionConvex.mjs +13 -12
  77. package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
  78. package/data-structures/Hinkal/hinkalActionCurve.mjs +15 -14
  79. package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
  80. package/data-structures/Hinkal/hinkalActionLidoEth.mjs +17 -16
  81. package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
  82. package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
  83. package/data-structures/Hinkal/hinkalActionPendle.mjs +24 -23
  84. package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
  85. package/data-structures/Hinkal/hinkalActionPendleLP.mjs +21 -20
  86. package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
  87. package/data-structures/Hinkal/hinkalActionStake.d.ts +1 -1
  88. package/data-structures/Hinkal/hinkalActionStake.mjs +6 -5
  89. package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
  90. package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
  91. package/data-structures/Hinkal/hinkalActionVolatile.mjs +9 -8
  92. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  93. package/data-structures/Hinkal/hinkalDeposit.d.ts +2 -2
  94. package/data-structures/Hinkal/hinkalDeposit.mjs +93 -54
  95. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
  96. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +3 -2
  97. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  98. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +5 -4
  99. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  100. package/data-structures/Hinkal/hinkalSwap.mjs +23 -22
  101. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  102. package/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
  103. package/data-structures/Hinkal/hinkalWithdraw.mjs +13 -12
  104. package/data-structures/cacheDevices/LocalStorageCacheDevice.cjs +1 -1
  105. package/data-structures/cacheDevices/LocalStorageCacheDevice.d.ts +1 -1
  106. package/data-structures/cacheDevices/LocalStorageCacheDevice.mjs +2 -2
  107. package/data-structures/custom-token-registry/CustomTokenRegistry.cjs +1 -1
  108. package/data-structures/custom-token-registry/CustomTokenRegistry.mjs +14 -18
  109. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  110. package/data-structures/merkle-tree/MerkleTree.d.ts +2 -0
  111. package/data-structures/merkle-tree/MerkleTree.mjs +38 -25
  112. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -0
  113. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +3 -0
  114. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +9 -0
  115. package/data-structures/merkle-tree/index.d.ts +1 -0
  116. package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
  117. package/data-structures/transactions-manager/TransactionsManager.d.ts +6 -5
  118. package/data-structures/transactions-manager/TransactionsManager.mjs +118 -111
  119. package/error-handling/error-codes.constants.cjs +1 -1
  120. package/error-handling/error-codes.constants.d.ts +4 -0
  121. package/error-handling/error-codes.constants.mjs +6 -2
  122. package/externalABIs/BabPassport.json.cjs +1 -1
  123. package/externalABIs/BabPassport.json.mjs +8 -3
  124. package/externalABIs/BeefyRouterAbi.json.cjs +1 -1
  125. package/externalABIs/BeefyRouterAbi.json.mjs +5 -2
  126. package/externalABIs/BeefyStrategyAbi.json.cjs +1 -1
  127. package/externalABIs/BeefyStrategyAbi.json.mjs +5 -2
  128. package/externalABIs/BeefyVaultAbi.json.cjs +1 -1
  129. package/externalABIs/BeefyVaultAbi.json.mjs +5 -2
  130. package/externalABIs/BeefyZapAbi.json.cjs +1 -1
  131. package/externalABIs/BeefyZapAbi.json.mjs +5 -2
  132. package/externalABIs/BeefyZapOneInchAbi.json.cjs +1 -1
  133. package/externalABIs/BeefyZapOneInchAbi.json.mjs +5 -2
  134. package/externalABIs/ConvexBoosterAbi.json.cjs +1 -1
  135. package/externalABIs/ConvexBoosterAbi.json.mjs +5 -2
  136. package/externalABIs/ConvexBoosterAbiMainnet.json.cjs +1 -1
  137. package/externalABIs/ConvexBoosterAbiMainnet.json.mjs +5 -2
  138. package/externalABIs/ConvexRewardPoolAbi.json.cjs +1 -1
  139. package/externalABIs/ConvexRewardPoolAbi.json.mjs +5 -2
  140. package/externalABIs/CurveReadingWrapperAbi.json.cjs +1 -1
  141. package/externalABIs/CurveReadingWrapperAbi.json.mjs +5 -2
  142. package/externalABIs/CurveWrappedMainPool.json.cjs +1 -1
  143. package/externalABIs/CurveWrappedMainPool.json.mjs +5 -2
  144. package/externalABIs/CurveZap.json.cjs +1 -1
  145. package/externalABIs/CurveZap.json.mjs +5 -2
  146. package/externalABIs/CvxCrvUtilities.json.cjs +1 -1
  147. package/externalABIs/CvxCrvUtilities.json.mjs +5 -2
  148. package/externalABIs/ERC20.json.cjs +1 -1
  149. package/externalABIs/ERC20.json.mjs +20 -3
  150. package/externalABIs/GalxePassport.json.cjs +1 -1
  151. package/externalABIs/GalxePassport.json.mjs +8 -3
  152. package/externalABIs/IQuoterV2.json.cjs +1 -1
  153. package/externalABIs/IQuoterV2.json.mjs +20 -3
  154. package/externalABIs/ISwapRouter.json.cjs +1 -1
  155. package/externalABIs/ISwapRouter.json.mjs +5 -2
  156. package/externalABIs/IUniswapV3Factory.json.cjs +1 -1
  157. package/externalABIs/IUniswapV3Factory.json.mjs +20 -3
  158. package/externalABIs/IUniswapV3Pool.json.cjs +1 -1
  159. package/externalABIs/IUniswapV3Pool.json.mjs +20 -3
  160. package/externalABIs/PendleRouterAbi.json.cjs +1 -1
  161. package/externalABIs/PendleRouterAbi.json.mjs +5 -2
  162. package/externalABIs/UniswapV2PoolAbi.json.cjs +1 -1
  163. package/externalABIs/UniswapV2PoolAbi.json.mjs +16 -3
  164. package/externalABIs/index.cjs +1 -0
  165. package/externalABIs/index.d.ts +307 -11
  166. package/externalABIs/index.mjs +23 -0
  167. package/externalABIs/transactionsProver.json.cjs +1 -1
  168. package/externalABIs/transactionsProver.json.mjs +20 -3
  169. package/functions/kyc/zkMeHelper.cjs +1 -1
  170. package/functions/kyc/zkMeHelper.d.ts +0 -1
  171. package/functions/kyc/zkMeHelper.mjs +8 -11
  172. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  173. package/functions/pre-transaction/process-gas-estimates.mjs +3 -2
  174. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  175. package/functions/private-wallet/emporium.helpers.d.ts +8 -3
  176. package/functions/private-wallet/emporium.helpers.mjs +23 -11
  177. package/functions/private-wallet/index.d.ts +1 -0
  178. package/functions/private-wallet/opProducer.cjs +1 -1
  179. package/functions/private-wallet/opProducer.mjs +9 -10
  180. package/functions/private-wallet/smartContractWalletCalculator.cjs +1 -0
  181. package/functions/private-wallet/smartContractWalletCalculator.d.ts +1 -0
  182. package/functions/private-wallet/smartContractWalletCalculator.mjs +20 -0
  183. package/functions/protocols/convex.protocols.cjs +1 -1
  184. package/functions/protocols/convex.protocols.mjs +3 -2
  185. package/functions/protocols/pendle.helpers.cjs +1 -1
  186. package/functions/protocols/pendle.helpers.mjs +1 -1
  187. package/functions/snarkjs/constant.cjs +1 -1
  188. package/functions/snarkjs/constant.d.ts +1 -0
  189. package/functions/snarkjs/constant.mjs +6 -5
  190. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  191. package/functions/snarkjs/constructEmporiumProof.d.ts +1 -1
  192. package/functions/snarkjs/constructEmporiumProof.mjs +31 -31
  193. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  194. package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
  195. package/functions/snarkjs/constructGeneralZkProof.mjs +76 -75
  196. package/functions/snarkjs/generateZkProof.cjs +1 -1
  197. package/functions/snarkjs/generateZkProof.d.ts +1 -1
  198. package/functions/snarkjs/generateZkProof.mjs +4 -15
  199. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
  200. package/functions/snarkjs/generateZkProofEnclave.d.ts +5 -0
  201. package/functions/snarkjs/generateZkProofEnclave.mjs +33 -0
  202. package/functions/snarkjs/generateZkProofSelf.cjs +1 -0
  203. package/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
  204. package/functions/snarkjs/generateZkProofSelf.mjs +17 -0
  205. package/functions/utils/axelar.utils.cjs +1 -1
  206. package/functions/utils/axelar.utils.mjs +3 -2
  207. package/functions/utils/cacheDevice.utils.cjs +1 -1
  208. package/functions/utils/cacheDevice.utils.mjs +2 -1
  209. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  210. package/functions/utils/erc20tokenFunctions.mjs +8 -7
  211. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  212. package/functions/utils/evmNetworkFunctions.mjs +4 -3
  213. package/functions/utils/string.utils.cjs +1 -1
  214. package/functions/utils/string.utils.d.ts +1 -0
  215. package/functions/utils/string.utils.mjs +16 -6
  216. package/functions/utils/userAgent.cjs +1 -1
  217. package/functions/utils/userAgent.mjs +8 -8
  218. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  219. package/functions/web3/functionCalls/accessTokenCalls.mjs +8 -8
  220. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  221. package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
  222. package/functions/web3/functionCalls/transactCallDirect.mjs +43 -29
  223. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  224. package/functions/web3/functionCalls/transactCallRelayer.mjs +10 -8
  225. package/functions/web3/getContractMetadata.cjs +1 -0
  226. package/functions/web3/getContractMetadata.d.ts +5 -0
  227. package/functions/web3/getContractMetadata.mjs +30 -0
  228. package/functions/web3/odosAPI.cjs +1 -1
  229. package/functions/web3/odosAPI.d.ts +1 -2
  230. package/functions/web3/odosAPI.mjs +19 -18
  231. package/functions/web3/oneInchAPI.cjs +1 -1
  232. package/functions/web3/oneInchAPI.d.ts +1 -2
  233. package/functions/web3/oneInchAPI.mjs +17 -15
  234. package/functions/web3/uniswapAPI.cjs +1 -1
  235. package/functions/web3/uniswapAPI.d.ts +4 -4
  236. package/functions/web3/uniswapAPI.mjs +54 -43
  237. package/index.cjs +1 -1
  238. package/index.mjs +620 -638
  239. package/package.json +3 -2
  240. package/providers/EthersProviderAdapter.cjs +1 -1
  241. package/providers/EthersProviderAdapter.d.ts +1 -0
  242. package/providers/EthersProviderAdapter.mjs +26 -37
  243. package/providers/WagmiProviderAdapter.cjs +1 -1
  244. package/providers/WagmiProviderAdapter.d.ts +1 -0
  245. package/providers/WagmiProviderAdapter.mjs +45 -56
  246. package/providers/prepareEthersHinkal.cjs +1 -1
  247. package/providers/prepareEthersHinkal.mjs +4 -3
  248. package/providers/prepareWagmiHinkal.cjs +1 -1
  249. package/providers/prepareWagmiHinkal.mjs +4 -3
  250. package/types/ethereum-network.types.cjs +1 -1
  251. package/types/ethereum-network.types.d.ts +64 -59
  252. package/types/ethereum-network.types.mjs +1 -1
  253. package/types/hinkal.types.d.ts +5 -0
  254. package/types/kyc.types.cjs +1 -1
  255. package/types/kyc.types.d.ts +1 -1
  256. package/types/kyc.types.mjs +1 -1
  257. package/types/remote-proof.types.d.ts +15 -0
  258. package/types/rewards.types.d.ts +5 -0
  259. package/types/time.types.cjs +1 -1
  260. package/types/time.types.mjs +1 -1
  261. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  262. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
@@ -7,65 +7,66 @@ export declare enum ContractType {
7
7
  HinkalContract = 0,
8
8
  HinkalHelperContract = 1,
9
9
  CrossChainAccessTokenContract = 2,
10
- UniswapV3FactoryContract = 3,
11
- UniswapV3PoolContract = 4,
12
- UniswapV3QuoterContract = 5,
13
- ERC20Contract = 6,
14
- WATokenContract = 7,
15
- OneInchExternalActionContract = 8,
16
- MerkleTreeContract = 9,
17
- ContractWithNonces = 10,
18
- PermitterContract = 11,
19
- CurveWrappedMainPool = 12,
20
- CurveReadingWrapper = 13,
21
- CurvePoolLPTokenAmountCalculator2 = 14,
22
- CurvePoolLPTokenAmountCalculator3 = 15,
23
- CurvePoolLPTokenAmountCalculator4 = 16,
24
- CurvePoolLPTokenAmountCalculatorDynamic = 17,
25
- CurvePoolLPTokenAmountCalculator2OneArg = 18,
26
- CurvePoolLPTokenAmountCalculator3OneArg = 19,
27
- CurvePoolLPTokenAmountCalculator4OneArg = 20,
28
- CurvePoolWithIntCoins = 21,
29
- CurveExternalAction = 22,
30
- WrappedStakedCurveLp = 23,
31
- WrappedStakedRewardsCurveLp = 24,
32
- CurveGauge = 25,
33
- ConvexBooster = 26,
34
- ConvexBoosterMainnet = 27,
35
- ConvexRewardPool = 28,
36
- ConvexCvxLocker = 29,
37
- ConvexStakePool = 30,
38
- ConvexCvxCRVWrapper = 31,
39
- ConvexCxvCrvUtillities = 32,
40
- ConvexExternalAction = 33,
41
- WrappedStakedConvexLp = 34,
42
- CurvePoolWithIntBalances = 35,
43
- CurveZaps = 36,
44
- BeefyVault = 37,
45
- BeefyZap = 38,
46
- BeefyRouter = 39,
47
- BeefyZapOneInch = 40,
48
- BeefyExternalAction = 41,
49
- BeefyStakeExternalAction = 42,
50
- BeefyStrategy = 43,
51
- WrappedStakedBeefyLp = 44,
52
- UniswapV2PoolContract = 45,
53
- LidoWstEther = 46,
54
- LidoStEther = 47,
55
- LidoStMatic = 48,
56
- LidoWithdrawalQueueERC721 = 49,
57
- LidoStakeManager = 50,
58
- PoLidoNFT = 51,
59
- PendleGeneralExternalAction = 52,
60
- PendleRouter = 53,
61
- WstPendleLPToken = 54,
62
- WstYtToken = 55,
63
- VolatileVault = 56,
64
- VolatileTokenAction = 57,
65
- HinkalWrapper = 58,
66
- HinkalWrapper2 = 59,
67
- HinkalStakeExternalAction = 60,
68
- HToken = 61
10
+ CrossChainAccessTokenManagerContract = 3,
11
+ UniswapV3FactoryContract = 4,
12
+ UniswapV3PoolContract = 5,
13
+ UniswapV3QuoterContract = 6,
14
+ ERC20Contract = 7,
15
+ WATokenContract = 8,
16
+ OneInchExternalActionContract = 9,
17
+ MerkleTreeContract = 10,
18
+ ContractWithNonces = 11,
19
+ PermitterContract = 12,
20
+ CurveWrappedMainPool = 13,
21
+ CurveReadingWrapper = 14,
22
+ CurvePoolLPTokenAmountCalculator2 = 15,
23
+ CurvePoolLPTokenAmountCalculator3 = 16,
24
+ CurvePoolLPTokenAmountCalculator4 = 17,
25
+ CurvePoolLPTokenAmountCalculatorDynamic = 18,
26
+ CurvePoolLPTokenAmountCalculator2OneArg = 19,
27
+ CurvePoolLPTokenAmountCalculator3OneArg = 20,
28
+ CurvePoolLPTokenAmountCalculator4OneArg = 21,
29
+ CurvePoolWithIntCoins = 22,
30
+ CurveExternalAction = 23,
31
+ WrappedStakedCurveLp = 24,
32
+ WrappedStakedRewardsCurveLp = 25,
33
+ CurveGauge = 26,
34
+ ConvexBooster = 27,
35
+ ConvexBoosterMainnet = 28,
36
+ ConvexRewardPool = 29,
37
+ ConvexCvxLocker = 30,
38
+ ConvexStakePool = 31,
39
+ ConvexCvxCRVWrapper = 32,
40
+ ConvexCxvCrvUtillities = 33,
41
+ ConvexExternalAction = 34,
42
+ WrappedStakedConvexLp = 35,
43
+ CurvePoolWithIntBalances = 36,
44
+ CurveZaps = 37,
45
+ BeefyVault = 38,
46
+ BeefyZap = 39,
47
+ BeefyRouter = 40,
48
+ BeefyZapOneInch = 41,
49
+ BeefyExternalAction = 42,
50
+ BeefyStakeExternalAction = 43,
51
+ BeefyStrategy = 44,
52
+ WrappedStakedBeefyLp = 45,
53
+ UniswapV2PoolContract = 46,
54
+ LidoWstEther = 47,
55
+ LidoStEther = 48,
56
+ LidoStMatic = 49,
57
+ LidoWithdrawalQueueERC721 = 50,
58
+ LidoStakeManager = 51,
59
+ PoLidoNFT = 52,
60
+ PendleGeneralExternalAction = 53,
61
+ PendleRouter = 54,
62
+ WstPendleLPToken = 55,
63
+ WstYtToken = 56,
64
+ VolatileVault = 57,
65
+ VolatileTokenAction = 58,
66
+ HinkalWrapper = 59,
67
+ HinkalWrapper2 = 60,
68
+ HinkalStakeExternalAction = 61,
69
+ HToken = 62
69
70
  }
70
71
  export interface ContractData {
71
72
  hinkalAddress: string;
@@ -74,6 +75,8 @@ export interface ContractData {
74
75
  hinkalHelperABI?: ContractInterface;
75
76
  crossChainAccessTokenAddress?: string;
76
77
  crossChainAccessTokenABI?: ContractInterface;
78
+ crossChainAccessTokenManagerAddress?: string;
79
+ crossChainAccessTokenManagerABI?: ContractInterface;
77
80
  permitterAddress?: string;
78
81
  permitterABI?: ContractInterface;
79
82
  uniswapExternalActionAddress?: string;
@@ -120,6 +123,8 @@ export interface ContractData {
120
123
  hETHOracleAddress?: string;
121
124
  HTokenOracleABI?: ContractInterface;
122
125
  emporiumAddress?: string;
126
+ hinkalWalletFactoryAddress?: string;
127
+ hinkalWalletBeaconAddress?: string;
123
128
  }
124
129
  export interface EthereumNetwork {
125
130
  name: string;
@@ -1,4 +1,4 @@
1
- var l = /* @__PURE__ */ ((e) => (e[e.HinkalContract = 0] = "HinkalContract", e[e.HinkalHelperContract = 1] = "HinkalHelperContract", e[e.CrossChainAccessTokenContract = 2] = "CrossChainAccessTokenContract", e[e.UniswapV3FactoryContract = 3] = "UniswapV3FactoryContract", e[e.UniswapV3PoolContract = 4] = "UniswapV3PoolContract", e[e.UniswapV3QuoterContract = 5] = "UniswapV3QuoterContract", e[e.ERC20Contract = 6] = "ERC20Contract", e[e.WATokenContract = 7] = "WATokenContract", e[e.OneInchExternalActionContract = 8] = "OneInchExternalActionContract", e[e.MerkleTreeContract = 9] = "MerkleTreeContract", e[e.ContractWithNonces = 10] = "ContractWithNonces", e[e.PermitterContract = 11] = "PermitterContract", e[e.CurveWrappedMainPool = 12] = "CurveWrappedMainPool", e[e.CurveReadingWrapper = 13] = "CurveReadingWrapper", e[e.CurvePoolLPTokenAmountCalculator2 = 14] = "CurvePoolLPTokenAmountCalculator2", e[e.CurvePoolLPTokenAmountCalculator3 = 15] = "CurvePoolLPTokenAmountCalculator3", e[e.CurvePoolLPTokenAmountCalculator4 = 16] = "CurvePoolLPTokenAmountCalculator4", e[e.CurvePoolLPTokenAmountCalculatorDynamic = 17] = "CurvePoolLPTokenAmountCalculatorDynamic", e[e.CurvePoolLPTokenAmountCalculator2OneArg = 18] = "CurvePoolLPTokenAmountCalculator2OneArg", e[e.CurvePoolLPTokenAmountCalculator3OneArg = 19] = "CurvePoolLPTokenAmountCalculator3OneArg", e[e.CurvePoolLPTokenAmountCalculator4OneArg = 20] = "CurvePoolLPTokenAmountCalculator4OneArg", e[e.CurvePoolWithIntCoins = 21] = "CurvePoolWithIntCoins", e[e.CurveExternalAction = 22] = "CurveExternalAction", e[e.WrappedStakedCurveLp = 23] = "WrappedStakedCurveLp", e[e.WrappedStakedRewardsCurveLp = 24] = "WrappedStakedRewardsCurveLp", e[e.CurveGauge = 25] = "CurveGauge", e[e.ConvexBooster = 26] = "ConvexBooster", e[e.ConvexBoosterMainnet = 27] = "ConvexBoosterMainnet", e[e.ConvexRewardPool = 28] = "ConvexRewardPool", e[e.ConvexCvxLocker = 29] = "ConvexCvxLocker", e[e.ConvexStakePool = 30] = "ConvexStakePool", e[e.ConvexCvxCRVWrapper = 31] = "ConvexCvxCRVWrapper", e[e.ConvexCxvCrvUtillities = 32] = "ConvexCxvCrvUtillities", e[e.ConvexExternalAction = 33] = "ConvexExternalAction", e[e.WrappedStakedConvexLp = 34] = "WrappedStakedConvexLp", e[e.CurvePoolWithIntBalances = 35] = "CurvePoolWithIntBalances", e[e.CurveZaps = 36] = "CurveZaps", e[e.BeefyVault = 37] = "BeefyVault", e[e.BeefyZap = 38] = "BeefyZap", e[e.BeefyRouter = 39] = "BeefyRouter", e[e.BeefyZapOneInch = 40] = "BeefyZapOneInch", e[e.BeefyExternalAction = 41] = "BeefyExternalAction", e[e.BeefyStakeExternalAction = 42] = "BeefyStakeExternalAction", e[e.BeefyStrategy = 43] = "BeefyStrategy", e[e.WrappedStakedBeefyLp = 44] = "WrappedStakedBeefyLp", e[e.UniswapV2PoolContract = 45] = "UniswapV2PoolContract", e[e.LidoWstEther = 46] = "LidoWstEther", e[e.LidoStEther = 47] = "LidoStEther", e[e.LidoStMatic = 48] = "LidoStMatic", e[e.LidoWithdrawalQueueERC721 = 49] = "LidoWithdrawalQueueERC721", e[e.LidoStakeManager = 50] = "LidoStakeManager", e[e.PoLidoNFT = 51] = "PoLidoNFT", e[e.PendleGeneralExternalAction = 52] = "PendleGeneralExternalAction", e[e.PendleRouter = 53] = "PendleRouter", e[e.WstPendleLPToken = 54] = "WstPendleLPToken", e[e.WstYtToken = 55] = "WstYtToken", e[e.VolatileVault = 56] = "VolatileVault", e[e.VolatileTokenAction = 57] = "VolatileTokenAction", e[e.HinkalWrapper = 58] = "HinkalWrapper", e[e.HinkalWrapper2 = 59] = "HinkalWrapper2", e[e.HinkalStakeExternalAction = 60] = "HinkalStakeExternalAction", e[e.HToken = 61] = "HToken", e))(l || {});
1
+ var l = /* @__PURE__ */ ((e) => (e[e.HinkalContract = 0] = "HinkalContract", e[e.HinkalHelperContract = 1] = "HinkalHelperContract", e[e.CrossChainAccessTokenContract = 2] = "CrossChainAccessTokenContract", e[e.CrossChainAccessTokenManagerContract = 3] = "CrossChainAccessTokenManagerContract", e[e.UniswapV3FactoryContract = 4] = "UniswapV3FactoryContract", e[e.UniswapV3PoolContract = 5] = "UniswapV3PoolContract", e[e.UniswapV3QuoterContract = 6] = "UniswapV3QuoterContract", e[e.ERC20Contract = 7] = "ERC20Contract", e[e.WATokenContract = 8] = "WATokenContract", e[e.OneInchExternalActionContract = 9] = "OneInchExternalActionContract", e[e.MerkleTreeContract = 10] = "MerkleTreeContract", e[e.ContractWithNonces = 11] = "ContractWithNonces", e[e.PermitterContract = 12] = "PermitterContract", e[e.CurveWrappedMainPool = 13] = "CurveWrappedMainPool", e[e.CurveReadingWrapper = 14] = "CurveReadingWrapper", e[e.CurvePoolLPTokenAmountCalculator2 = 15] = "CurvePoolLPTokenAmountCalculator2", e[e.CurvePoolLPTokenAmountCalculator3 = 16] = "CurvePoolLPTokenAmountCalculator3", e[e.CurvePoolLPTokenAmountCalculator4 = 17] = "CurvePoolLPTokenAmountCalculator4", e[e.CurvePoolLPTokenAmountCalculatorDynamic = 18] = "CurvePoolLPTokenAmountCalculatorDynamic", e[e.CurvePoolLPTokenAmountCalculator2OneArg = 19] = "CurvePoolLPTokenAmountCalculator2OneArg", e[e.CurvePoolLPTokenAmountCalculator3OneArg = 20] = "CurvePoolLPTokenAmountCalculator3OneArg", e[e.CurvePoolLPTokenAmountCalculator4OneArg = 21] = "CurvePoolLPTokenAmountCalculator4OneArg", e[e.CurvePoolWithIntCoins = 22] = "CurvePoolWithIntCoins", e[e.CurveExternalAction = 23] = "CurveExternalAction", e[e.WrappedStakedCurveLp = 24] = "WrappedStakedCurveLp", e[e.WrappedStakedRewardsCurveLp = 25] = "WrappedStakedRewardsCurveLp", e[e.CurveGauge = 26] = "CurveGauge", e[e.ConvexBooster = 27] = "ConvexBooster", e[e.ConvexBoosterMainnet = 28] = "ConvexBoosterMainnet", e[e.ConvexRewardPool = 29] = "ConvexRewardPool", e[e.ConvexCvxLocker = 30] = "ConvexCvxLocker", e[e.ConvexStakePool = 31] = "ConvexStakePool", e[e.ConvexCvxCRVWrapper = 32] = "ConvexCvxCRVWrapper", e[e.ConvexCxvCrvUtillities = 33] = "ConvexCxvCrvUtillities", e[e.ConvexExternalAction = 34] = "ConvexExternalAction", e[e.WrappedStakedConvexLp = 35] = "WrappedStakedConvexLp", e[e.CurvePoolWithIntBalances = 36] = "CurvePoolWithIntBalances", e[e.CurveZaps = 37] = "CurveZaps", e[e.BeefyVault = 38] = "BeefyVault", e[e.BeefyZap = 39] = "BeefyZap", e[e.BeefyRouter = 40] = "BeefyRouter", e[e.BeefyZapOneInch = 41] = "BeefyZapOneInch", e[e.BeefyExternalAction = 42] = "BeefyExternalAction", e[e.BeefyStakeExternalAction = 43] = "BeefyStakeExternalAction", e[e.BeefyStrategy = 44] = "BeefyStrategy", e[e.WrappedStakedBeefyLp = 45] = "WrappedStakedBeefyLp", e[e.UniswapV2PoolContract = 46] = "UniswapV2PoolContract", e[e.LidoWstEther = 47] = "LidoWstEther", e[e.LidoStEther = 48] = "LidoStEther", e[e.LidoStMatic = 49] = "LidoStMatic", e[e.LidoWithdrawalQueueERC721 = 50] = "LidoWithdrawalQueueERC721", e[e.LidoStakeManager = 51] = "LidoStakeManager", e[e.PoLidoNFT = 52] = "PoLidoNFT", e[e.PendleGeneralExternalAction = 53] = "PendleGeneralExternalAction", e[e.PendleRouter = 54] = "PendleRouter", e[e.WstPendleLPToken = 55] = "WstPendleLPToken", e[e.WstYtToken = 56] = "WstYtToken", e[e.VolatileVault = 57] = "VolatileVault", e[e.VolatileTokenAction = 58] = "VolatileTokenAction", e[e.HinkalWrapper = 59] = "HinkalWrapper", e[e.HinkalWrapper2 = 60] = "HinkalWrapper2", e[e.HinkalStakeExternalAction = 61] = "HinkalStakeExternalAction", e[e.HToken = 62] = "HToken", e))(l || {});
2
2
  export {
3
3
  l as ContractType
4
4
  };
@@ -13,6 +13,11 @@ export type HinkalConfig = {
13
13
  * Node only.
14
14
  */
15
15
  useFileCache?: boolean;
16
+ disableCaching?: boolean;
17
+ /**
18
+ * Indicator controlling wether the proof should be constructed remotely in secure enclave.
19
+ */
20
+ generateProofRemotely?: boolean;
16
21
  };
17
22
  export declare enum EventType {
18
23
  BalanceChange = "BalanceChange",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const a=["USER","BUSINESS"];var N=(e=>(e[e.AiPriseKyc=0]="AiPriseKyc",e[e.AiPriseKyb=1]="AiPriseKyb",e[e.BABPassport=2]="BABPassport",e[e.GalxePassport=3]="GalxePassport",e[e.ZkMePassport=4]="ZkMePassport",e[e.CoinbasePassport=5]="CoinbasePassport",e[e.AuthentoPassport=6]="AuthentoPassport",e[e.AuthentoPassportKyb=7]="AuthentoPassportKyb",e[e.ReclaimBinance=8]="ReclaimBinance",e[e.ReclaimBNBPassport=9]="ReclaimBNBPassport",e[e.ReclaimOKXPassport=10]="ReclaimOKXPassport",e[e.ReclaimGatePassport=11]="ReclaimGatePassport",e[e.ReclaimKucoinPassport=12]="ReclaimKucoinPassport",e[e.ReclaimMexcPassport=13]="ReclaimMexcPassport",e[e.ReclaimHtxPassport=14]="ReclaimHtxPassport",e))(N||{}),R=(e=>(e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.REVIEW="REVIEW",e.UNKNOWN="UNKNOWN",e))(R||{}),i=(e=>(e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING="PENDING",e.RUNNING="RUNNING",e.NOT_STARTED="NOT_STARTED",e))(i||{});exports.KycVerificationResult=R;exports.KycVerificationStatus=i;exports.Passports=N;exports.VERIFICATION_TYPE=E;exports.VerificationTypes=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var E=(e=>(e.USER="USER",e.BUSINESS="BUSINESS",e))(E||{});const a=["USER","BUSINESS"];var N=(e=>(e[e.AiPriseKyc=0]="AiPriseKyc",e[e.AiPriseKyb=1]="AiPriseKyb",e[e.BABPassport=2]="BABPassport",e[e.GalxePassport=3]="GalxePassport",e[e.ZkMePassport=4]="ZkMePassport",e[e.CoinbasePassport=5]="CoinbasePassport",e[e.AuthentoPassport=6]="AuthentoPassport",e[e.AuthentoPassportKyb=7]="AuthentoPassportKyb",e[e.ReclaimCoinbasePassport=8]="ReclaimCoinbasePassport",e[e.ReclaimBNBPassport=9]="ReclaimBNBPassport",e[e.ReclaimOKXPassport=10]="ReclaimOKXPassport",e[e.ReclaimGatePassport=11]="ReclaimGatePassport",e[e.ReclaimKucoinPassport=12]="ReclaimKucoinPassport",e[e.ReclaimMexcPassport=13]="ReclaimMexcPassport",e[e.ReclaimHtxPassport=14]="ReclaimHtxPassport",e))(N||{}),R=(e=>(e.APPROVED="APPROVED",e.DECLINED="DECLINED",e.REVIEW="REVIEW",e.UNKNOWN="UNKNOWN",e))(R||{}),i=(e=>(e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.PENDING="PENDING",e.RUNNING="RUNNING",e.NOT_STARTED="NOT_STARTED",e))(i||{});exports.KycVerificationResult=R;exports.KycVerificationStatus=i;exports.Passports=N;exports.VERIFICATION_TYPE=E;exports.VerificationTypes=a;
@@ -12,7 +12,7 @@ export declare enum Passports {
12
12
  CoinbasePassport = 5,
13
13
  AuthentoPassport = 6,
14
14
  AuthentoPassportKyb = 7,
15
- ReclaimBinance = 8,
15
+ ReclaimCoinbasePassport = 8,
16
16
  ReclaimBNBPassport = 9,
17
17
  ReclaimOKXPassport = 10,
18
18
  ReclaimGatePassport = 11,
@@ -4,7 +4,7 @@ const m = [
4
4
  "BUSINESS"
5
5
  /* BUSINESS */
6
6
  ];
7
- var N = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e[e.ReclaimBinance = 8] = "ReclaimBinance", e[e.ReclaimBNBPassport = 9] = "ReclaimBNBPassport", e[e.ReclaimOKXPassport = 10] = "ReclaimOKXPassport", e[e.ReclaimGatePassport = 11] = "ReclaimGatePassport", e[e.ReclaimKucoinPassport = 12] = "ReclaimKucoinPassport", e[e.ReclaimMexcPassport = 13] = "ReclaimMexcPassport", e[e.ReclaimHtxPassport = 14] = "ReclaimHtxPassport", e))(N || {}), R = /* @__PURE__ */ ((e) => (e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.REVIEW = "REVIEW", e.UNKNOWN = "UNKNOWN", e))(R || {}), A = /* @__PURE__ */ ((e) => (e.COMPLETED = "COMPLETED", e.FAILED = "FAILED", e.PENDING = "PENDING", e.RUNNING = "RUNNING", e.NOT_STARTED = "NOT_STARTED", e))(A || {});
7
+ var N = /* @__PURE__ */ ((e) => (e[e.AiPriseKyc = 0] = "AiPriseKyc", e[e.AiPriseKyb = 1] = "AiPriseKyb", e[e.BABPassport = 2] = "BABPassport", e[e.GalxePassport = 3] = "GalxePassport", e[e.ZkMePassport = 4] = "ZkMePassport", e[e.CoinbasePassport = 5] = "CoinbasePassport", e[e.AuthentoPassport = 6] = "AuthentoPassport", e[e.AuthentoPassportKyb = 7] = "AuthentoPassportKyb", e[e.ReclaimCoinbasePassport = 8] = "ReclaimCoinbasePassport", e[e.ReclaimBNBPassport = 9] = "ReclaimBNBPassport", e[e.ReclaimOKXPassport = 10] = "ReclaimOKXPassport", e[e.ReclaimGatePassport = 11] = "ReclaimGatePassport", e[e.ReclaimKucoinPassport = 12] = "ReclaimKucoinPassport", e[e.ReclaimMexcPassport = 13] = "ReclaimMexcPassport", e[e.ReclaimHtxPassport = 14] = "ReclaimHtxPassport", e))(N || {}), R = /* @__PURE__ */ ((e) => (e.APPROVED = "APPROVED", e.DECLINED = "DECLINED", e.REVIEW = "REVIEW", e.UNKNOWN = "UNKNOWN", e))(R || {}), A = /* @__PURE__ */ ((e) => (e.COMPLETED = "COMPLETED", e.FAILED = "FAILED", e.PENDING = "PENDING", e.RUNNING = "RUNNING", e.NOT_STARTED = "NOT_STARTED", e))(A || {});
8
8
  export {
9
9
  R as KycVerificationResult,
10
10
  A as KycVerificationStatus,
@@ -0,0 +1,15 @@
1
+ import { NewZkCallDataType } from './snark.types';
2
+ export type HandshakeResponseType = {
3
+ public_key: string;
4
+ };
5
+ export type RemoteProofType = {
6
+ pi_a: string[];
7
+ pi_b: string[][];
8
+ pi_c: string[];
9
+ protocol: string;
10
+ };
11
+ export type GenerateProofResponseType = {
12
+ proof: RemoteProofType;
13
+ public_signals: string[];
14
+ zk_calldata: NewZkCallDataType;
15
+ };
@@ -1,3 +1,4 @@
1
+ import { networkRegistry } from '../constants/chains.constants';
1
2
  export declare enum TIER_LEVEL {
2
3
  None = "None",
3
4
  Bronze = "Bronze",
@@ -218,3 +219,7 @@ export interface HistoryIndexesProps {
218
219
  lpProgramStartWeek: number;
219
220
  raffleProgramStartWeek: number;
220
221
  }
222
+ export type HashInfoByChain = Record<keyof typeof networkRegistry, {
223
+ lastCertifiedHash: string;
224
+ week: number;
225
+ }>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=1e3,a=60*c,l=60*a,u=24*l,R=7*u,o=new Date("2024-03-04T00:00:00.000Z"),d=e=>{if(e<0)throw Error("Certification for the past week is not available")},s=e=>(d(e),new Date(new Date(o).setUTCDate(o.getUTCDate()+7*e))),g=e=>{d(e);const t=s(e).getTime()/1e3,n=s(e+1).getTime()/1e3;return{initialTimestamp:t,endTimestamp:n}},r=()=>{const e=new Date().getTime()/1e3;let t=-1,n;do t+=1,{endTimestamp:n}=g(t);while(e>n);return t},f=e=>{if(e===void 0)return r();const t=Number(e);return!Number.isFinite(t)||t<0?r():t},k=(e,t="/")=>[e.getUTCDate(),e.getUTCMonth()+1,e.getUTCFullYear()].join(t),A=e=>{const t=r();return e===t},I=e=>{const t=r();return e<t-1},p=e=>{const t=new Date(e);return t.setUTCDate(t.getUTCDate()+1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t};var E=(e=>(e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER",e))(E||{});const v=(e,t)=>{if(t<0||t>11)throw Error("getNextMonth: incorrect month provided");if(e<2023||e>2025)throw Error("getNextMonth: incorrect year provided");let n=e,i;return t<11?i=t+1:(i=0,n=e+1),{newYear:n,newMonth:i}},W=(e,t)=>{const{newYear:n,newMonth:i}=v(e,t),C=new Date(e,t,1).getTime()/1e3,D=new Date(e,t,8).getTime()/1e3,U=new Date(e,t,15).getTime()/1e3,w=new Date(e,t,23).getTime()/1e3,m=new Date(n,i,1).getTime()/1e3;return[C,D,U,w,m]};exports.MONTHS=E;exports.dayInMilliseconds=u;exports.divideMonthOnIntervals=W;exports.getCurrentWeek=r;exports.getDateFromWeek=s;exports.getNextDay=p;exports.getWeekTimestamps=g;exports.hasCertificationPeriodExpired=I;exports.hourInMilliseconds=l;exports.isWeekCurrent=A;exports.minuteInMilliseconds=a;exports.parseWeek=f;exports.secondInMilliseconds=c;exports.toDateString=k;exports.weekInMilliseconds=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=1e3,a=60*c,l=60*a,u=24*l,R=7*u,o=new Date("2024-03-04T00:00:00.000Z"),d=e=>{if(e<0)throw Error("Certification for the past week is not available")},s=e=>(d(e),new Date(new Date(o).setUTCDate(o.getUTCDate()+7*e))),g=e=>{d(e);const t=s(e).getTime()/1e3,n=s(e+1).getTime()/1e3;return{initialTimestamp:t,endTimestamp:n}},r=()=>{const e=new Date().getTime()/1e3;let t=-1,n;do t+=1,{endTimestamp:n}=g(t);while(e>n);return t},f=e=>{if(e===void 0)return r();const t=Number(e);return!Number.isFinite(t)||t<0?r():t},k=(e,t="/")=>[e.getUTCDate(),e.getUTCMonth()+1,e.getUTCFullYear()].join(t),A=e=>{const t=r();return e===t},I=e=>{const t=r();return e<t},p=e=>{const t=new Date(e);return t.setUTCDate(t.getUTCDate()+1),t.setUTCHours(0),t.setUTCMinutes(0),t.setUTCSeconds(0),t.setUTCMilliseconds(0),t};var E=(e=>(e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER",e))(E||{});const v=(e,t)=>{if(t<0||t>11)throw Error("getNextMonth: incorrect month provided");if(e<2023||e>2025)throw Error("getNextMonth: incorrect year provided");let n=e,i;return t<11?i=t+1:(i=0,n=e+1),{newYear:n,newMonth:i}},W=(e,t)=>{const{newYear:n,newMonth:i}=v(e,t),C=new Date(e,t,1).getTime()/1e3,D=new Date(e,t,8).getTime()/1e3,U=new Date(e,t,15).getTime()/1e3,w=new Date(e,t,23).getTime()/1e3,m=new Date(n,i,1).getTime()/1e3;return[C,D,U,w,m]};exports.MONTHS=E;exports.dayInMilliseconds=u;exports.divideMonthOnIntervals=W;exports.getCurrentWeek=r;exports.getDateFromWeek=s;exports.getNextDay=p;exports.getWeekTimestamps=g;exports.hasCertificationPeriodExpired=I;exports.hourInMilliseconds=l;exports.isWeekCurrent=A;exports.minuteInMilliseconds=a;exports.parseWeek=f;exports.secondInMilliseconds=c;exports.toDateString=k;exports.weekInMilliseconds=R;
@@ -22,7 +22,7 @@ const w = 1e3, R = 6e4, m = 36e5, f = 864e5, A = 6048e5, r = /* @__PURE__ */ new
22
22
  return e === t;
23
23
  }, p = (e) => {
24
24
  const t = i();
25
- return e < t - 1;
25
+ return e < t;
26
26
  }, v = (e) => {
27
27
  const t = new Date(e);
28
28
  return t.setUTCDate(t.getUTCDate() + 1), t.setUTCHours(0), t.setUTCMinutes(0), t.setUTCSeconds(0), t.setUTCMilliseconds(0), t;
@@ -1 +1 @@
1
- "use strict";const e=""+(typeof document>"u"?require("url").pathToFileURL(__dirname+"/../../assets/zkProofWorkerLauncher-CK9HJBVR.js").href:new URL("../../assets/zkProofWorkerLauncher-CK9HJBVR.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/zkProofWorkerLauncher-DggSotLy.js").href:new URL("../../assets/zkProofWorkerLauncher-DggSotLy.js",document.currentScript&&document.currentScript.src||document.baseURI).href);module.exports=e;
@@ -1,4 +1,4 @@
1
- const r = "" + new URL("../../assets/zkProofWorkerLauncher-CK9HJBVR.js", import.meta.url).href;
1
+ const r = "" + new URL("../../assets/zkProofWorkerLauncher-DggSotLy.js", import.meta.url).href;
2
2
  export {
3
3
  r as default
4
4
  };