@hinkal/common 0.2.11 → 0.2.12

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 (272) hide show
  1. package/package.json +16 -41
  2. package/API/API.d.mts +0 -49
  3. package/API/HinkalPointsCalls.d.mts +0 -20
  4. package/API/callBeefyGraphAPI.d.mts +0 -2
  5. package/API/callCurveAPI.d.mts +0 -9
  6. package/API/callMonitor.d.mts +0 -1
  7. package/API/callOdosAPI.d.mts +0 -63
  8. package/API/callOneInchAPI.d.mts +0 -18
  9. package/API/callRelayer.d.mts +0 -10
  10. package/API/checkRisk.d.mts +0 -1
  11. package/API/dataServerCalls.d.mts +0 -2
  12. package/API/duneAPI.d.mts +0 -11
  13. package/API/fetchCommitmentsCache.d.mts +0 -20
  14. package/API/fetchNullifiers.d.mts +0 -5
  15. package/API/getAxelarGasEstimate.d.mts +0 -5
  16. package/API/getCoingeckoPrice.d.mts +0 -22
  17. package/API/getConnextReceiveFee.d.mts +0 -2
  18. package/API/getGasEstimates.d.mts +0 -9
  19. package/API/getRelayerURL.d.mts +0 -1
  20. package/API/getServerURL.d.mts +0 -2
  21. package/API/getTokenPrice.d.mts +0 -16
  22. package/API/index.d.mts +0 -14
  23. package/API/kycCalls.d.mts +0 -30
  24. package/API/passwordCalls.d.mts +0 -9
  25. package/API/referralProgramCalls.d.mts +0 -36
  26. package/API/relayCalls.d.mts +0 -5
  27. package/API/restoreSnapshots.d.mts +0 -1
  28. package/API/rewardsPointsCalls.d.mts +0 -13
  29. package/API/userVerifyTransactions.d.mts +0 -19
  30. package/constants/assets.constants.d.mts +0 -13
  31. package/constants/axelar.constants.d.mts +0 -5
  32. package/constants/backend.constants.d.mts +0 -11
  33. package/constants/beefy.registry.d.mts +0 -8
  34. package/constants/chains.constants.d.mts +0 -36
  35. package/constants/coingecko.constants.d.mts +0 -13
  36. package/constants/contracts.constants.d.mts +0 -119
  37. package/constants/crvCvx.registry.d.mts +0 -20
  38. package/constants/crvDynamic.registry.d.mts +0 -1
  39. package/constants/deploy-data/index.d.mts +0 -11
  40. package/constants/fees.constants.d.mts +0 -11
  41. package/constants/index.d.mts +0 -20
  42. package/constants/kyc.constants.d.mts +0 -28
  43. package/constants/lido.constants.d.mts +0 -10
  44. package/constants/pendle.registry.d.mts +0 -21
  45. package/constants/protocol.constants.d.mts +0 -18
  46. package/constants/reorg-depths.constants.d.mts +0 -3
  47. package/constants/rewards.constants.d.mts +0 -19
  48. package/constants/server.constants.d.mts +0 -155
  49. package/constants/token-data/ERC20Registry.d.mts +0 -3
  50. package/constants/token-data/index.d.mts +0 -976
  51. package/constants/token-data/popularTokens.constants.d.mts +0 -3
  52. package/constants/token-data/tokenPricing.consts.d.mts +0 -5
  53. package/constants/vite.constants.d.mts +0 -14
  54. package/crypto/babyJub.d.mts +0 -16
  55. package/crypto/index.d.mts +0 -3
  56. package/crypto/poseidon.d.mts +0 -15
  57. package/crypto/preProcessing.d.mts +0 -1
  58. package/data-structures/Hinkal/Hinkal.d.mts +0 -100
  59. package/data-structures/Hinkal/IHinkal.d.mts +0 -93
  60. package/data-structures/Hinkal/hinkalActionBeefy.d.mts +0 -3
  61. package/data-structures/Hinkal/hinkalActionConvex.d.mts +0 -12
  62. package/data-structures/Hinkal/hinkalActionCurve.d.mts +0 -12
  63. package/data-structures/Hinkal/hinkalActionLidoEth.d.mts +0 -4
  64. package/data-structures/Hinkal/hinkalActionPendle.d.mts +0 -3
  65. package/data-structures/Hinkal/hinkalActionPendleLP.d.mts +0 -7
  66. package/data-structures/Hinkal/hinkalActionStake.d.mts +0 -3
  67. package/data-structures/Hinkal/hinkalActionVolatile.d.mts +0 -3
  68. package/data-structures/Hinkal/hinkalDeposit.d.mts +0 -3
  69. package/data-structures/Hinkal/hinkalGetRecipientInfo.d.mts +0 -2
  70. package/data-structures/Hinkal/hinkalGetZkMeProvider.d.mts +0 -3
  71. package/data-structures/Hinkal/hinkalPrivateWallet.d.mts +0 -2
  72. package/data-structures/Hinkal/hinkalSwap.d.mts +0 -3
  73. package/data-structures/Hinkal/hinkalTransfer.d.mts +0 -1
  74. package/data-structures/Hinkal/hinkalWithdraw.d.mts +0 -2
  75. package/data-structures/Hinkal/index.d.mts +0 -12
  76. package/data-structures/Hinkal/resetMerkleTrees.d.mts +0 -2
  77. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.mts +0 -20
  78. package/data-structures/ValueCache/ValueCache.d.mts +0 -10
  79. package/data-structures/ValueCache/index.d.mts +0 -1
  80. package/data-structures/cacheDevices/BaseCacheDevice.d.mts +0 -8
  81. package/data-structures/cacheDevices/FileCacheDevice.d.mts +0 -9
  82. package/data-structures/cacheDevices/LocalStorageCacheDevice.d.mts +0 -7
  83. package/data-structures/cacheDevices/index.d.mts +0 -2
  84. package/data-structures/crypto-keys/decodeUTXO.d.mts +0 -14
  85. package/data-structures/crypto-keys/encryptDecryptUtxo.d.mts +0 -18
  86. package/data-structures/crypto-keys/index.d.mts +0 -4
  87. package/data-structures/crypto-keys/keyUtils.d.mts +0 -2
  88. package/data-structures/crypto-keys/keys.d.mts +0 -58
  89. package/data-structures/custom-token-registry/CustomTokenRegistry.d.mts +0 -13
  90. package/data-structures/event-service/AbstractAccessTokenSnapshotService.d.mts +0 -35
  91. package/data-structures/event-service/AbstractCommitmentsSnapshotService.d.mts +0 -30
  92. package/data-structures/event-service/AbstractEventService.d.mts +0 -31
  93. package/data-structures/event-service/AbstractNullifierSnapshotService.d.mts +0 -22
  94. package/data-structures/event-service/AbstractSnapshotService.d.mts +0 -23
  95. package/data-structures/event-service/index.d.mts +0 -5
  96. package/data-structures/index.d.mts +0 -13
  97. package/data-structures/merkle-tree/MerkleTree.d.mts +0 -78
  98. package/data-structures/merkle-tree/MerkleTreeIncompleteError.d.mts +0 -3
  99. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.mts +0 -3
  100. package/data-structures/merkle-tree/index.d.mts +0 -3
  101. package/data-structures/provider-adapter/IProviderAdapter.d.mts +0 -35
  102. package/data-structures/snapshot/ClientAccessTokenSnapshotService.d.mts +0 -7
  103. package/data-structures/snapshot/ClientCommitmentsSnapshotService.d.mts +0 -7
  104. package/data-structures/snapshot/ClientNullifierSnapshotService.d.mts +0 -7
  105. package/data-structures/token-price-fetcher/TokenChecker.d.mts +0 -20
  106. package/data-structures/token-price-fetcher/index.d.mts +0 -1
  107. package/data-structures/transactions-manager/TransactionsManager.d.mts +0 -27
  108. package/data-structures/transactions-manager/history/getBeefyData.d.mts +0 -3
  109. package/data-structures/transactions-manager/history/getConvexData.d.mts +0 -6
  110. package/data-structures/transactions-manager/history/getCurveData.d.mts +0 -6
  111. package/data-structures/transactions-manager/history/getDepositData.d.mts +0 -2
  112. package/data-structures/transactions-manager/history/getLidoData.d.mts +0 -10
  113. package/data-structures/transactions-manager/history/getPendleData.d.mts +0 -3
  114. package/data-structures/transactions-manager/history/getSwapData.d.mts +0 -3
  115. package/data-structures/transactions-manager/history/getTxDetails.d.mts +0 -3
  116. package/data-structures/transactions-manager/history/getVolatileData.d.mts +0 -32
  117. package/data-structures/transactions-manager/history/history.types.d.mts +0 -95
  118. package/data-structures/transactions-manager/history/history.utils.d.mts +0 -8
  119. package/data-structures/transactions-manager/index.d.mts +0 -2
  120. package/data-structures/utxo/Utxo.d.mts +0 -63
  121. package/data-structures/volatile-helper/VolatileHelper.d.mts +0 -57
  122. package/data-structures/volatile-helper/index.d.mts +0 -1
  123. package/error-handling/customErrors/ErrorWithAmount.d.mts +0 -4
  124. package/error-handling/customErrors/FeeOverTransactionValueError.d.mts +0 -9
  125. package/error-handling/customErrors/customErrors.helpers.d.mts +0 -5
  126. package/error-handling/customErrors/index.d.mts +0 -3
  127. package/error-handling/error-codes.constants.d.mts +0 -181
  128. package/error-handling/get-error.message.d.mts +0 -3
  129. package/error-handling/handleErrorRestore.d.mts +0 -2
  130. package/error-handling/index.d.mts +0 -7
  131. package/error-handling/logError.d.mts +0 -1
  132. package/error-handling/types.d.mts +0 -5
  133. package/externalABIs/BUSD.d.mts +0 -38
  134. package/externalABIs/DAI.d.mts +0 -45
  135. package/externalABIs/ERC20.d.mts +0 -1
  136. package/externalABIs/SanctionsList.d.mts +0 -35
  137. package/externalABIs/USDC.d.mts +0 -28
  138. package/externalABIs/USDR.d.mts +0 -28
  139. package/externalABIs/USDR3CRV.d.mts +0 -49
  140. package/externalABIs/USDT.d.mts +0 -41
  141. package/externalABIs/WETH.d.mts +0 -38
  142. package/externalABIs/amToken.d.mts +0 -28
  143. package/externalABIs/crvFRAX.d.mts +0 -38
  144. package/externalABIs/index.d.mts +0 -323
  145. package/externalABIs/swapAbi.d.mts +0 -77
  146. package/functions/index.d.mts +0 -14
  147. package/functions/kyc/aiPriseHelper.d.mts +0 -0
  148. package/functions/kyc/authentoHelper.d.mts +0 -12
  149. package/functions/kyc/index.d.mts +0 -3
  150. package/functions/kyc/openDefaultPassportWindow.d.mts +0 -1
  151. package/functions/kyc/passportHelper.d.mts +0 -3
  152. package/functions/kyc/zkMeHelper.d.mts +0 -4
  153. package/functions/pre-transaction/getFlatFees.d.mts +0 -12
  154. package/functions/pre-transaction/index.d.mts +0 -5
  155. package/functions/pre-transaction/interaction-to-action.d.mts +0 -2
  156. package/functions/pre-transaction/outputUtxoProcessing.d.mts +0 -5
  157. package/functions/pre-transaction/process-gas-estimates.d.mts +0 -5
  158. package/functions/pre-transaction/processAmountChanges.d.mts +0 -12
  159. package/functions/private-wallet/emporium.helpers.d.mts +0 -5
  160. package/functions/private-wallet/index.d.mts +0 -2
  161. package/functions/private-wallet/opProducer.d.mts +0 -5
  162. package/functions/protocols/convex.protocols.d.mts +0 -1
  163. package/functions/protocols/curve.protocols.d.mts +0 -1
  164. package/functions/protocols/index.d.mts +0 -3
  165. package/functions/protocols/pendle.helpers.d.mts +0 -8
  166. package/functions/snarkjs/common.snarkjs.d.mts +0 -22
  167. package/functions/snarkjs/constant.d.mts +0 -151
  168. package/functions/snarkjs/constructEmporiumProof.d.mts +0 -10
  169. package/functions/snarkjs/constructGeneralZkProof.d.mts +0 -12
  170. package/functions/snarkjs/generateCircomData.d.mts +0 -4
  171. package/functions/snarkjs/generateZkProof.d.mts +0 -5
  172. package/functions/snarkjs/generateZkProofEnclave.d.mts +0 -5
  173. package/functions/snarkjs/generateZkProofSelf.d.mts +0 -5
  174. package/functions/snarkjs/getZKFiles.d.mts +0 -2
  175. package/functions/snarkjs/index.d.mts +0 -4
  176. package/functions/staking/index.d.mts +0 -11
  177. package/functions/utils/amounts.utils.d.mts +0 -21
  178. package/functions/utils/axelar.utils.d.mts +0 -2
  179. package/functions/utils/cacheDevice.utils.d.mts +0 -3
  180. package/functions/utils/cacheFunctions.d.mts +0 -17
  181. package/functions/utils/caseInsensitive.utils.d.mts +0 -3
  182. package/functions/utils/convertIntegrationProviderToExternalActionId.d.mts +0 -2
  183. package/functions/utils/create-provider.d.mts +0 -2
  184. package/functions/utils/enum.utils.d.mts +0 -9
  185. package/functions/utils/erc20tokenFunctions.d.mts +0 -4
  186. package/functions/utils/evmNetworkFunctions.d.mts +0 -4
  187. package/functions/utils/external-action.utils.d.mts +0 -8
  188. package/functions/utils/getDataFromTransaction.d.mts +0 -45
  189. package/functions/utils/index.d.mts +0 -21
  190. package/functions/utils/memoize.utils.d.mts +0 -1
  191. package/functions/utils/nickname.utils.d.mts +0 -1
  192. package/functions/utils/process.utils.d.mts +0 -7
  193. package/functions/utils/reloadPage.d.mts +0 -1
  194. package/functions/utils/requireEnv.d.mts +0 -1
  195. package/functions/utils/resolve-sync.utils.d.mts +0 -6
  196. package/functions/utils/serialize.utils.d.mts +0 -1
  197. package/functions/utils/string.utils.d.mts +0 -8
  198. package/functions/utils/time.utils.d.mts +0 -1
  199. package/functions/utils/userAgent.d.mts +0 -2
  200. package/functions/utils/volatile-patcher.utils.d.mts +0 -1
  201. package/functions/web3/etherFunctions.d.mts +0 -20
  202. package/functions/web3/events/balanceChangedHandler.d.mts +0 -1
  203. package/functions/web3/events/getInputUtxoAndBalance.d.mts +0 -24
  204. package/functions/web3/events/getShieldedBalance.d.mts +0 -18
  205. package/functions/web3/events/index.d.mts +0 -4
  206. package/functions/web3/events/web3RetrieveEvents.d.mts +0 -14
  207. package/functions/web3/functionCalls/accessTokenCalls.d.mts +0 -6
  208. package/functions/web3/functionCalls/approveToken.d.mts +0 -4
  209. package/functions/web3/functionCalls/estimateGasRelayer.d.mts +0 -4
  210. package/functions/web3/functionCalls/getRootHash.d.mts +0 -2
  211. package/functions/web3/functionCalls/relayFunctions.d.mts +0 -17
  212. package/functions/web3/functionCalls/transactCallDirect.d.mts +0 -6
  213. package/functions/web3/functionCalls/transactCallRelayer.d.mts +0 -7
  214. package/functions/web3/getContractMetadata.d.mts +0 -5
  215. package/functions/web3/index.d.mts +0 -6
  216. package/functions/web3/odosAPI.d.mts +0 -5
  217. package/functions/web3/oneInchAPI.d.mts +0 -5
  218. package/functions/web3/runContractFunction.d.mts +0 -15
  219. package/functions/web3/uniswapAPI.d.mts +0 -16
  220. package/index.d.mts +0 -8
  221. package/providers/EthersProviderAdapter.d.mts +0 -39
  222. package/providers/WagmiProviderAdapter.d.mts +0 -46
  223. package/providers/exportProviers.d.mts +0 -3
  224. package/providers/prepareEthersHinkal.d.mts +0 -4
  225. package/providers/prepareWagmiHinkal.d.mts +0 -3
  226. package/types/API.types.d.mts +0 -23
  227. package/types/ICacheDevice.d.mts +0 -4
  228. package/types/IMultiThreadedUtxoUtils.d.mts +0 -8
  229. package/types/admin.types.d.mts +0 -22
  230. package/types/axelar.types.d.mts +0 -14
  231. package/types/beefy.types.d.mts +0 -11
  232. package/types/big-intable.types.d.mts +0 -2
  233. package/types/circom-data.types.d.mts +0 -70
  234. package/types/coingecko.types.d.mts +0 -8
  235. package/types/commitments.types.d.mts +0 -26
  236. package/types/connext.types.d.mts +0 -13
  237. package/types/crypto.types.d.mts +0 -7
  238. package/types/curve.types.d.mts +0 -133
  239. package/types/duneAPI.types.d.mts +0 -9
  240. package/types/ethereum-network.types.d.mts +0 -142
  241. package/types/external-action.types.d.mts +0 -28
  242. package/types/hinkal.stake.types.d.mts +0 -11
  243. package/types/hinkal.types.d.mts +0 -150
  244. package/types/hinkalTvl.types.d.mts +0 -4
  245. package/types/index.d.mts +0 -27
  246. package/types/kyc.types.d.mts +0 -39
  247. package/types/pendle.api.types.d.mts +0 -233
  248. package/types/pendle.types.d.mts +0 -222
  249. package/types/relayer.types.d.mts +0 -25
  250. package/types/remote-proof.types.d.mts +0 -15
  251. package/types/rewards.types.d.mts +0 -230
  252. package/types/slippage.types.d.mts +0 -15
  253. package/types/snark.types.d.mts +0 -40
  254. package/types/time.types.d.mts +0 -31
  255. package/types/token.types.d.mts +0 -36
  256. package/types/transactions.types.d.mts +0 -55
  257. package/webworker/performTaskWithWorker.d.mts +0 -5
  258. package/webworker/snarkjsWorker/snarkjsWorker.types.d.mts +0 -14
  259. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.d.mts +0 -1
  260. package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.mts +0 -10
  261. package/webworker/utxoWorker/utxoWorker.types.d.mts +0 -29
  262. package/webworker/utxoWorker/utxoWorkerLauncher.d.mts +0 -1
  263. package/webworker/utxoWorker/utxoWorkerLogic.d.mts +0 -8
  264. package/webworker/viteWorkerURL.constant.d.mts +0 -9
  265. package/webworker/worker.registry.d.mts +0 -10
  266. package/webworker/worker.types.d.mts +0 -33
  267. package/webworker/workerErrorHandler.d.mts +0 -1
  268. package/webworker/workerFactory.d.mts +0 -7
  269. package/webworker/workerProxy.d.mts +0 -40
  270. package/webworker/zkProofWorker/zkProofWorker.types.d.mts +0 -38
  271. package/webworker/zkProofWorker/zkProofWorkerLauncher.d.mts +0 -1
  272. package/webworker/zkProofWorker/zkProofWorkerLogic.d.mts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hinkal/common",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "homepage": "hinkal.pro",
5
5
  "author": {
6
6
  "name": "Hinkal Protocol"
@@ -13,54 +13,29 @@
13
13
  ],
14
14
  "exports": {
15
15
  ".": {
16
- "import": {
17
- "types": "./index.d.mts",
18
- "default": "./index.mjs"
19
- },
20
- "require": {
21
- "types": "./index.d.ts",
22
- "default": "./index.cjs"
23
- }
16
+ "types": "./index.d.ts",
17
+ "import": "./index.mjs",
18
+ "default": "./index.cjs"
24
19
  },
25
20
  "./providers/EthersProviderAdapter": {
26
- "import": {
27
- "types": "./providers/EthersProviderAdapter.d.mts",
28
- "default": "./providers/EthersProviderAdapter.mjs"
29
- },
30
- "require": {
31
- "types": "./providers/EthersProviderAdapter.d.ts",
32
- "default": "./providers/EthersProviderAdapter.cjs"
33
- }
21
+ "types": "./providers/EthersProviderAdapter.d.ts",
22
+ "import": "./providers/EthersProviderAdapter.mjs",
23
+ "default": "./providers/EthersProviderAdapter.cjs"
34
24
  },
35
25
  "./providers/WagmiProviderAdapter": {
36
- "import": {
37
- "types": "./providers/WagmiProviderAdapter.d.mts",
38
- "default": "./providers/WagmiProviderAdapter.mjs"
39
- },
40
- "require": {
41
- "types:": "./providers/WagmiProviderAdapter.d.ts",
42
- "default": "./providers/WagmiProviderAdapter.cjs"
43
- }
26
+ "types": "./providers/WagmiProviderAdapter.d.ts",
27
+ "import": "./providers/WagmiProviderAdapter.mjs",
28
+ "default": "./providers/WagmiProviderAdapter.cjs"
44
29
  },
45
30
  "./providers/prepareEthersHinkal": {
46
- "import": {
47
- "types": "./providers/prepareEthersHinkal.d.mts",
48
- "default": "./providers/prepareEthersHinkal.mjs"
49
- },
50
- "require": {
51
- "types": "./providers/prepareEthersHinkal.d.ts",
52
- "default": "./providers/prepareEthersHinkal.cjs"
53
- }
31
+ "types": "./providers/prepareEthersHinkal.d.ts",
32
+ "import": "./providers/prepareEthersHinkal.mjs",
33
+ "default": "./providers/prepareEthersHinkal.cjs"
54
34
  },
55
35
  "./providers/prepareWagmiHinkal": {
56
- "import": {
57
- "types": "./providers/prepareWagmiHinkal.d.mts",
58
- "default": "./providers/prepareWagmiHinkal.mjs"
59
- },
60
- "require": {
61
- "types": "./providers/prepareWagmiHinkal.d.ts",
62
- "default": "./providers/prepareWagmiHinkal.cjs"
63
- }
36
+ "types": "./providers/prepareWagmiHinkal.d.ts",
37
+ "import": "./providers/prepareWagmiHinkal.mjs",
38
+ "default": "./providers/prepareWagmiHinkal.cjs"
64
39
  }
65
40
  },
66
41
  "types": "./index.d.ts",
package/API/API.d.mts DELETED
@@ -1,49 +0,0 @@
1
- import { addReferralCode, getActiveCode, getLpProgram, getReferralCodes, getRewardsHistory, getRewardsReceivingData, getWeeklyReferralCodes, setRewardsReceivingData, updateActiveCode } from './referralProgramCalls';
2
- import { addNickname, getNickname, leaderboard, points, seasonLeaderboard } from './rewardsPointsCalls';
3
- import { userGetLatestCertifiedHashes, userGetTransactions, userVerifyTransactions } from './userVerifyTransactions';
4
- import { getIdleRelay } from './relayCalls';
5
- import { userHasPassword, userRegisterPassword } from './passwordCalls';
6
- import { getTokenPrice, getTokenPriceEth, getTokenPrices } from './getTokenPrice';
7
- import { afterKycCall, getAccessTokenSignature, getReclaimVerificationRequest, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl, userHasAccessToken, userHasReclaim } from './kycCalls';
8
- import { getOdosPriceForToken } from './callOdosAPI';
9
- import { getUserPoints } from './dataServerCalls';
10
- import { getLimitedAnonymityStakingPoints, getUserAnonymityStakingPoints, getUserAnonymityStakingReferralPoints } from './HinkalPointsCalls';
11
- export type IAPI = {
12
- getUserKycStatus: typeof getUserKycStatus;
13
- setAiPriseVerificationUrl: typeof setAiPriseVerificationUrl;
14
- getAccessTokenSignature: typeof getAccessTokenSignature;
15
- getReclaimVerificationRequest: typeof getReclaimVerificationRequest;
16
- getZkMeAccessToken: typeof getZkMeAccessToken;
17
- getTokenPrice: typeof getTokenPrice;
18
- getTokenPriceEth: typeof getTokenPriceEth;
19
- getTokenPrices: typeof getTokenPrices;
20
- getOdosPriceForToken: typeof getOdosPriceForToken;
21
- getActiveCode: typeof getActiveCode;
22
- updateActiveCode: typeof updateActiveCode;
23
- getWeeklyReferralCodes: typeof getWeeklyReferralCodes;
24
- getReferralCodes: typeof getReferralCodes;
25
- addReferralCode: typeof addReferralCode;
26
- getLpProgram: typeof getLpProgram;
27
- addNickname: typeof addNickname;
28
- getNickname: typeof getNickname;
29
- userHasAccessToken: typeof userHasAccessToken;
30
- afterKycCall: typeof afterKycCall;
31
- userGetLatestCertifiedHashes: typeof userGetLatestCertifiedHashes;
32
- userGetTransactions: typeof userGetTransactions;
33
- userVerifyTransactions: typeof userVerifyTransactions;
34
- getIdleRelay: typeof getIdleRelay;
35
- userHasPassword: typeof userHasPassword;
36
- userRegisterPassword: typeof userRegisterPassword;
37
- points: typeof points;
38
- leaderboard: typeof leaderboard;
39
- seasonLeaderboard: typeof seasonLeaderboard;
40
- getRewardsHistory: typeof getRewardsHistory;
41
- setRewardsReceivingData: typeof setRewardsReceivingData;
42
- getRewardsReceivingData: typeof getRewardsReceivingData;
43
- getUserPoints: typeof getUserPoints;
44
- getLimitedAnonymityStakingPoints: typeof getLimitedAnonymityStakingPoints;
45
- getUserAnonymityStakingPoints: typeof getUserAnonymityStakingPoints;
46
- getUserAnonymityStakingReferralPoints: typeof getUserAnonymityStakingReferralPoints;
47
- userHasReclaim: typeof userHasReclaim;
48
- };
49
- export declare const API: IAPI;
@@ -1,20 +0,0 @@
1
- import { AnonymityStakingReferralPointsIndex, AnonymityStakingUserIndex } from '../types/rewards.types';
2
- interface LimitedAnonymityStakingPointsResponse {
3
- success: boolean;
4
- message?: string;
5
- leaderboard?: AnonymityStakingUserIndex[];
6
- }
7
- export declare const getLimitedAnonymityStakingPoints: (chainId: number, ethereumAddress: string) => Promise<LimitedAnonymityStakingPointsResponse>;
8
- interface UserAnonymityStakingPointsResponse {
9
- success: boolean;
10
- message?: string;
11
- userInfo?: AnonymityStakingUserIndex;
12
- }
13
- export declare const getUserAnonymityStakingPoints: (chainId: number, ethereumAddress: string) => Promise<UserAnonymityStakingPointsResponse>;
14
- interface UserAnonymityStakingReferralPointsResponse {
15
- success: boolean;
16
- message?: string;
17
- userReferralCodesInfo?: AnonymityStakingReferralPointsIndex[];
18
- }
19
- export declare const getUserAnonymityStakingReferralPoints: (chainId: number, ethereumAddress: string) => Promise<UserAnonymityStakingReferralPointsResponse>;
20
- export {};
@@ -1,2 +0,0 @@
1
- import { ChartTimeBucket } from '../types/beefy.types';
2
- export declare const getBeefyHistoricalChartData: (id: string, datePeriod: ChartTimeBucket, chainId: number, dataType?: 'prices' | 'apys' | 'tvls') => Promise<import("axios").AxiosResponse<any, any>>;
@@ -1,9 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { CurvePoolExtendedInfo, CurvePoolsAllType, PoolDataType } from '../types/curve.types';
3
- export declare const lpTokens: Set<string>;
4
- export declare const lpTokensToBasePool: {
5
- [id: string]: string;
6
- };
7
- export declare const getCurvePools: (chainId: number) => Promise<CurvePoolsAllType[]>;
8
- export declare const getCurvePoolsforPriceFetching: (chainId: number) => Promise<CurvePoolsAllType[]>;
9
- export declare function getExtendedPoolInfo(pool: PoolDataType, contract: ethers.Contract): Promise<CurvePoolExtendedInfo>;
@@ -1 +0,0 @@
1
- export declare const monitor: (address: string, chainId: number) => Promise<import("axios").AxiosResponse<void, any>>;
@@ -1,63 +0,0 @@
1
- export interface OdosSwapRequest {
2
- chainId: number;
3
- inputTokens: {
4
- tokenAddress: string;
5
- amount: string;
6
- }[];
7
- outputTokens: {
8
- tokenAddress: string;
9
- proportion: number;
10
- }[];
11
- userAddr: string;
12
- gasPrice?: number;
13
- slippageLimitPercent?: number;
14
- sourceBlacklist?: Array<string>;
15
- sourceWhitelist?: Array<string>;
16
- simulate?: boolean;
17
- pathVizImage?: string;
18
- pathVizImageConfig?: {
19
- linkColors?: string[];
20
- nodeColor?: string;
21
- nodeTextColor?: string;
22
- legendTextColor?: string;
23
- width: number;
24
- height: number;
25
- };
26
- disableRFQs?: boolean;
27
- referralCode?: string;
28
- compact?: boolean;
29
- likeAsset?: boolean;
30
- }
31
- export interface OdosSwapData {
32
- blockNumber: number;
33
- gasEstimate: number;
34
- gasEstimateValue: number;
35
- inputTokens: {
36
- tokenAddress: string;
37
- amount: number;
38
- }[];
39
- outputTokens: {
40
- tokenAddress: string;
41
- amount: number;
42
- }[];
43
- netOutValues: Array<number>;
44
- outValues: Array<string>;
45
- transaction: {
46
- gas: number;
47
- gasPrice: number;
48
- chainId: number;
49
- value: string;
50
- to: string;
51
- data: string;
52
- nonce: number;
53
- };
54
- simulation: {
55
- isSuccess: boolean;
56
- amountsOut: Array<number>;
57
- simGasUsed: number;
58
- gasEstimate: number;
59
- simulationError: string;
60
- };
61
- }
62
- export declare function callOdosAPI(chainId: number, requestBody: OdosSwapRequest): Promise<any>;
63
- export declare const getOdosPriceForToken: (chainId: number, tokenAddress: string) => Promise<number | undefined>;
@@ -1,18 +0,0 @@
1
- export interface OneInchRequest {
2
- fromTokenAddress: string;
3
- toTokenAddress: string;
4
- amount: bigint;
5
- fromAddress: string;
6
- slippage: number;
7
- destReceiver?: string;
8
- disableEstimate?: boolean;
9
- allowPartialFill?: boolean;
10
- }
11
- export interface OneInchTx {
12
- data: string;
13
- }
14
- export interface OneInchResponse {
15
- tx: OneInchTx;
16
- toAmount: string;
17
- }
18
- export declare const callOneInchAPI: (chainId: number, request: OneInchRequest) => Promise<OneInchResponse>;
@@ -1,10 +0,0 @@
1
- import { CircomDataJsonType, DimDataType } from '../types/circom-data.types';
2
- export interface HinkalTransactionRequestBody {
3
- a: [string, string];
4
- b: [[string, string], [string, string]];
5
- c: [string, string];
6
- dimData: DimDataType;
7
- circomData: CircomDataJsonType;
8
- withPrivateMempool?: boolean;
9
- }
10
- export declare function callRelayerTransactAPI(chainId: number, requestBody: HinkalTransactionRequestBody): Promise<any>;
@@ -1 +0,0 @@
1
- export declare const checkRisk: (chainId: number, address: string) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import { UserPointsBreakdown } from '../types/rewards.types';
2
- export declare const getUserPoints: (chainId: number, ethereumAddress: string) => Promise<UserPointsBreakdown>;
package/API/duneAPI.d.mts DELETED
@@ -1,11 +0,0 @@
1
- interface WalletBalancesInfo {
2
- amount: string;
3
- decimals: number;
4
- address: string;
5
- chain: string;
6
- chain_id: number;
7
- symbol?: string;
8
- value_usd?: number;
9
- }
10
- export declare const getPublicWalletBalance: (walletAddress: string, chainId: number) => Promise<WalletBalancesInfo[]>;
11
- export {};
@@ -1,20 +0,0 @@
1
- import { MerkleTreeJson } from '../data-structures/merkle-tree/MerkleTree';
2
- import { SenderAddressIndexMapJson } from '../data-structures/event-service/AbstractAccessTokenSnapshotService';
3
- import { EncryptedOutputWithSign } from '../types';
4
- export interface ICommitmentsTreeSnapshot {
5
- merkleTree: MerkleTreeJson;
6
- latestBlockNumber: number;
7
- encryptedOutputs: EncryptedOutputWithSign<string>[];
8
- hinkalAddress: string;
9
- chainId: number;
10
- }
11
- export interface IAccessTokenTreeSnapshot {
12
- merkleTree: MerkleTreeJson;
13
- senderAddresses: string[];
14
- senderAddressIndexMap?: SenderAddressIndexMapJson;
15
- latestBlockNumber: number;
16
- accessTokenContractAddress: string;
17
- chainId: number;
18
- }
19
- export declare const fetchCommitmentsSnapshot: (chainId: number) => Promise<ICommitmentsTreeSnapshot>;
20
- export declare const fetchAccessTokenSnapshot: (chainId: number) => Promise<IAccessTokenTreeSnapshot>;
@@ -1,5 +0,0 @@
1
- export interface GetNullifiersResponse {
2
- nullifiers: string[];
3
- latestBlockNumber?: number;
4
- }
5
- export declare const fetchNullifiers: (chainId: number) => Promise<GetNullifiersResponse>;
@@ -1,5 +0,0 @@
1
- export interface AxelarGasResponse {
2
- axelarEstimate: string;
3
- hasAccessToken: boolean;
4
- }
5
- export declare const getAxelarGasEstimate: (chaindId: number, sourceChainName: string, destChainName: string, sourceChainToken: string, accessKey: string) => Promise<AxelarGasResponse>;
@@ -1,22 +0,0 @@
1
- import { CoingeckoToken } from '../types/coingecko.types';
2
- export interface CoingeckoPriceResponse {
3
- usd: number;
4
- eth: number;
5
- }
6
- export declare function getCoingeckoPrice(tokenId: string): Promise<CoingeckoPriceResponse>;
7
- /**
8
- * Fetches the price of a token from Coingecko API based on token address and platform.
9
- * Also Coingecko API works for lowercased addresses, so that is why we lowercase inside the function.
10
- * @param tokenAddress The address of the token contract.
11
- * @param platform The platform identifier for the token.
12
- * @returns Promise resolving to CoingeckoPriceResponse object.
13
- */
14
- export declare function getCoingeckoPrice2(tokenAddress: string, platform: string): Promise<CoingeckoPriceResponse>;
15
- export interface CoingeckoPricesResponse {
16
- [coingeckoId: string]: {
17
- usd?: number;
18
- eth?: number;
19
- };
20
- }
21
- export declare function getCoingeckoPrices(tokenIds: string): Promise<CoingeckoPricesResponse>;
22
- export declare function getCoingeckoTokenList(): Promise<CoingeckoToken[]>;
@@ -1,2 +0,0 @@
1
- import { ConnextFeeResponse } from '../types/connext.types';
2
- export declare const getConnextReceiveFee: (chaindId: number, sourceChainName: string, destChainName: string) => Promise<ConnextFeeResponse>;
@@ -1,9 +0,0 @@
1
- import { ExternalActionId } from '../types/external-action.types';
2
- import { ValidExternalAction } from '../types/hinkal.types';
3
- interface GetGasEstimateResponse {
4
- status: 'success' | 'failed';
5
- priceOfTransactionInUSD?: number;
6
- priceOfTransactionInToken?: number;
7
- }
8
- export declare const getGasEstimates: (chainId: number, tokenAddress: string, externalActionId: ExternalActionId, action: ValidExternalAction | undefined, erc20TokenAddressLength: number, gasAmount?: number) => Promise<GetGasEstimateResponse>;
9
- export {};
@@ -1 +0,0 @@
1
- export declare const getRelayerURL: (chainId: number) => string;
@@ -1,2 +0,0 @@
1
- export declare const getServerURL: (chainId: number) => string;
2
- export declare const getDataServerURL: (chainId: number) => "https://ethMainnet-data-server.hinkal.pro" | "http://localhost:7090" | "http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com:7090" | "http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com:7090";
@@ -1,16 +0,0 @@
1
- interface GetTokenPriceInterface {
2
- price: number;
3
- status: 'success' | 'failed';
4
- }
5
- export declare function getTokenPrice(chainId: number, erc20Address?: string, id?: string): Promise<GetTokenPriceInterface>;
6
- interface GetTokenPriceEthInterface {
7
- usd: number;
8
- eth: number;
9
- status: 'success' | 'failed';
10
- }
11
- export declare function getTokenPriceEth(chainId: number, id: string): Promise<GetTokenPriceEthInterface>;
12
- interface IGetPrices {
13
- prices: number[];
14
- }
15
- export declare const getTokenPrices: (chainId: number, erc20Addresses: string[]) => Promise<IGetPrices>;
16
- export {};
package/API/index.d.mts DELETED
@@ -1,14 +0,0 @@
1
- export * from './getServerURL';
2
- export * from './getCoingeckoPrice';
3
- export * from './callOneInchAPI';
4
- export * from './callBeefyGraphAPI';
5
- export * from './callRelayer';
6
- export * from './getAxelarGasEstimate';
7
- export * from './getGasEstimates';
8
- export * from './getTokenPrice';
9
- export * from './checkRisk';
10
- export * from './relayCalls';
11
- export * from './API';
12
- export * from './callCurveAPI';
13
- export * from './getRelayerURL';
14
- export * from './duneAPI';
@@ -1,30 +0,0 @@
1
- import { KycVerificationResult, Passports, VERIFICATION_TYPE } from '../types/kyc.types';
2
- import { SignatureData } from '../types/crypto.types';
3
- interface IGetKycStatus {
4
- verificationResult: KycVerificationResult;
5
- passportIds?: Passports[];
6
- }
7
- export declare function getUserKycStatus(chainId: number, ethereumAddress: string): Promise<IGetKycStatus>;
8
- export declare function setAiPriseVerificationUrl(chainId: number, ethereumAddress: string, verificationSessionId: string, verificationType: VERIFICATION_TYPE): Promise<any>;
9
- interface AccessTokenSignatureResponse {
10
- signatureData: SignatureData;
11
- }
12
- export declare function getAccessTokenSignature(chainId: number, ethereumAddress: string, accessKey: string): Promise<AccessTokenSignatureResponse>;
13
- interface ReclaimVerificationRequestResponse {
14
- reclaimProofRequestConfig: string;
15
- message?: string;
16
- }
17
- export declare function getReclaimVerificationRequest(chainId: number, providerId: string, ethereumAddress: string, userSignature: string): Promise<ReclaimVerificationRequestResponse>;
18
- export declare const getZkMeAccessToken: (chainId: number) => Promise<any>;
19
- export declare const userHasAccessToken: (chainId: number, accessKey: string) => Promise<{
20
- hasAccessToken: boolean;
21
- }>;
22
- type IAfterKycCall = {
23
- updated: boolean;
24
- };
25
- export declare const afterKycCall: (chainId: number, ethereumAddress: string, hasAccessTokenOnAnyChain: boolean) => Promise<IAfterKycCall>;
26
- type IUserHasReclaiml = {
27
- updated: boolean;
28
- };
29
- export declare const userHasReclaim: (chainId: number, ethereumAddress: string, hasReclaimPassport: boolean) => Promise<IUserHasReclaiml>;
30
- export {};
@@ -1,9 +0,0 @@
1
- type OptionalUserPassword = {
2
- passwordHash: string | null;
3
- };
4
- type UserPassword = {
5
- passwordHash: string;
6
- };
7
- export declare const userHasPassword: (chainId: number, ethereumAddress: string) => Promise<OptionalUserPassword>;
8
- export declare const userRegisterPassword: (chainId: number, ethereumAddress: string, passwordHash: string) => Promise<UserPassword>;
9
- export {};
@@ -1,36 +0,0 @@
1
- import { AffiliateIndex, LpIndex, ReferralIndex, RewardPaymentInfo, RewardsHistoryData, TraderIndex, WeeklyReferralIndex } from '../types/rewards.types';
2
- interface GetActiveCode {
3
- traderIndex: TraderIndex;
4
- traderIndexCurrent: TraderIndex;
5
- }
6
- export declare const getActiveCode: (chainId: number, ethereumAddress: string) => Promise<GetActiveCode>;
7
- export declare const updateActiveCode: (chainId: number, ethereumAddress: string, activeCode: string) => Promise<GetActiveCode>;
8
- interface IGetWeeklyReferralCodes {
9
- weeklyReferralIndexes: WeeklyReferralIndex[];
10
- }
11
- export declare const getWeeklyReferralCodes: (chainId: number, ethereumAddress: string, week: number) => Promise<IGetWeeklyReferralCodes>;
12
- interface IGetReferralCodes {
13
- affiliateIndex: AffiliateIndex;
14
- affiliateIndexCurrent: AffiliateIndex;
15
- referralIndexes: ReferralIndex[];
16
- }
17
- export declare const getReferralCodes: (chainId: number, ethereumAddress: string) => Promise<IGetReferralCodes>;
18
- interface IUpdateCode {
19
- referralCode: string;
20
- }
21
- export declare const addReferralCode: (chainId: number, ethereumAddress: string, referralCode: string, action: 'add' | 'delete') => Promise<IUpdateCode>;
22
- interface GetLPIndexes {
23
- lpIndex: LpIndex;
24
- lpIndexCurrent: LpIndex;
25
- }
26
- export declare const getLpProgram: (chainId: number, ethereumAddress: string) => Promise<GetLPIndexes>;
27
- export declare const getRewardsHistory: (etereumAddress: string, chainId: number) => Promise<RewardsHistoryData[]>;
28
- interface SetRewardsReceivingDataInterface {
29
- message: string;
30
- }
31
- export declare const setRewardsReceivingData: (ethereumAddress: string, receivingAddress: string, rewardTokenAddress: string, chainId: number) => Promise<SetRewardsReceivingDataInterface>;
32
- interface GetRewardsReceivingDataInterface {
33
- paymentInfo: RewardPaymentInfo | undefined;
34
- }
35
- export declare const getRewardsReceivingData: (ethereumAddress: string, chainId: number) => Promise<GetRewardsReceivingDataInterface>;
36
- export {};
@@ -1,5 +0,0 @@
1
- interface IGetIdleRelay {
2
- relay: string | undefined;
3
- }
4
- export declare const getIdleRelay: (chainId: number) => Promise<IGetIdleRelay>;
5
- export {};
@@ -1 +0,0 @@
1
- export declare function restoreSnapshots(chainId: number): Promise<any>;
@@ -1,13 +0,0 @@
1
- import { LeaderboardEntry, LeaderBoardItem } from '../types/API.types';
2
- export declare const addNickname: (chainId: number, ethereumAddress: string, nickname: string, action: 'add' | 'delete') => Promise<string>;
3
- interface IGetNickname {
4
- nickname: string | undefined;
5
- }
6
- export declare const getNickname: (chainId: number, ethereumAddress: string) => Promise<IGetNickname>;
7
- export declare const points: (ethereumAddress: string, chainId: number, week?: number) => Promise<LeaderBoardItem[]>;
8
- export declare const leaderboard: (chainId: number, week?: number) => Promise<LeaderboardEntry[]>;
9
- export declare const seasonLeaderboard: (chainId: number) => Promise<LeaderboardEntry[]>;
10
- export declare const getLastCertifyTime: (chainId: number, ethereumAddress: string) => Promise<{
11
- lastCertifyTime: Date;
12
- }>;
13
- export {};
@@ -1,19 +0,0 @@
1
- import { NewZkCallDataType } from '../types/snark.types';
2
- import { RawTx } from '../types/transactions.types';
3
- import { HashInfoByChain } from '../types';
4
- interface IUserGetLatestCertifiedHashes {
5
- lastCertifiedHashes: HashInfoByChain;
6
- }
7
- export declare const userGetLatestCertifiedHashes: (chainId: number, ethereumAddress: string) => Promise<IUserGetLatestCertifiedHashes>;
8
- interface IUserGetTransactions {
9
- transactions: RawTx[];
10
- }
11
- export declare const userGetTransactions: (chainId: number, week?: number, lastHash?: string, startWeek?: number) => Promise<IUserGetTransactions>;
12
- interface IUserVerifyTransactions {
13
- trade: number;
14
- transactions: number;
15
- lockedDeposit: number;
16
- verification: boolean;
17
- }
18
- export declare const userVerifyTransactions: (chainId: number, transactionHashes: string[], zkCallDataArray: NewZkCallDataType[], backendToken: string, ethereumAddress: string) => Promise<IUserVerifyTransactions>;
19
- export {};
@@ -1,13 +0,0 @@
1
- export declare const IMAGE_PATHS: {
2
- CHEVRON: string;
3
- MOON: string;
4
- SUN: string;
5
- ARROW_LEFT: string;
6
- AUTHENTO_LIGHT: string;
7
- AUTHENTO_DARK: string;
8
- KING: string;
9
- CIRCLE_STRIKETHROUGH: string;
10
- RIGHT_SQUARE: string;
11
- COINBASE_DARK: string;
12
- COINBASE_LIGHT: string;
13
- };
@@ -1,5 +0,0 @@
1
- export declare const AxelarRegistry: {
2
- chainId: number;
3
- sourceChain: string;
4
- sourceAddress: string;
5
- }[];
@@ -1,11 +0,0 @@
1
- export declare const NETWORKS: {
2
- polygon: string;
3
- bnbMainnet: string;
4
- arbMainnet: string;
5
- ethMainnet: string;
6
- avalanche: string;
7
- optimism: string;
8
- base: string;
9
- localhost: string;
10
- };
11
- export declare const getGasStationUrl: (network: string) => "https://gasstation.polygon.technology/v1" | undefined;
@@ -1,8 +0,0 @@
1
- export type BeefyRegistryEntryType = {
2
- name: string;
3
- beefyBoost: string;
4
- mooToken: string;
5
- wstMooToken?: string;
6
- };
7
- export declare const ethBeefyRegistry: BeefyRegistryEntryType[];
8
- export declare const getBeefyRegistryWithChainId: (chainId: number) => BeefyRegistryEntryType[];
@@ -1,36 +0,0 @@
1
- import { EthereumNetwork } from '../types/ethereum-network.types';
2
- export declare const chainIds: {
3
- polygon: number;
4
- arbMainnet: number;
5
- ethMainnet: number;
6
- avalanche: number;
7
- bnbMainnet: number;
8
- optimism: number;
9
- base: number;
10
- bnbTestnet: number;
11
- polygonMumbai: number;
12
- mainnetSepolia: number;
13
- optimismSepolia: number;
14
- axelar1: number;
15
- axelar2: number;
16
- localhost: number;
17
- hardhat: number;
18
- };
19
- export declare const localhostNetwork: number;
20
- export declare const isLocalNetwork: (chainId: number) => boolean;
21
- export declare const getNonLocalhostChainId: (chainId: number | undefined) => number;
22
- export declare const networkRegistry: Record<number, EthereumNetwork>;
23
- export declare const crossChainAccessTokenNetworks: number[];
24
- export declare enum EthereumNetworkType {
25
- Mainnet = "Mainnet",
26
- Testnet = "Testnet",
27
- Local = "Local"
28
- }
29
- export declare const chainIdsByType: {
30
- Mainnet: number[];
31
- Testnet: number[];
32
- Local: number[];
33
- };
34
- export declare const isOptimismEcotoneLike: (chainId: number) => boolean;
35
- export declare const isOptimismBedrockLike: (_chainId: number) => boolean;
36
- export declare const isOptimismLike: (chainId: number) => boolean;
@@ -1,13 +0,0 @@
1
- export declare const proCoingeckoUrl = "https://pro-api.coingecko.com/api/v3";
2
- export declare const COINGECKO_API_KEY: string | undefined;
3
- export declare const proHeader = "x-cg-pro-api-key";
4
- export declare const coingeckoPriceUrl: (tokenId: string) => string;
5
- export declare const coingeckoPriceUrl2: (tokenAddress: string, platform: string) => string;
6
- export declare const coingeckoTokenListUrl = "https://pro-api.coingecko.com/api/v3/coins/list";
7
- export declare const getCoingeckoIdForNativeTokens: {
8
- [x: number]: string;
9
- };
10
- export declare const getCoingeckoPlatform: (chainId: number) => "ethereum" | "base" | "avalanche" | "polygon-pos" | "arbitrum-one" | "binance-smart-chain" | "optimistic-ethereum";
11
- export declare const CoinGeckoChainLabels: {
12
- [x: number]: string;
13
- };