@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
@@ -1,119 +0,0 @@
1
- import { ethers } from 'ethers';
2
- import { ContractData, ContractMetadata, ContractType } from '../types/ethereum-network.types';
3
- export declare const uniswapV3FactoryData: {
4
- abi: ({
5
- anonymous: boolean;
6
- inputs: {
7
- indexed: boolean;
8
- internalType: string;
9
- name: string;
10
- type: string;
11
- }[];
12
- name: string;
13
- type: string;
14
- outputs?: undefined;
15
- stateMutability?: undefined;
16
- } | {
17
- inputs: {
18
- internalType: string;
19
- name: string;
20
- type: string;
21
- }[];
22
- name: string;
23
- outputs: {
24
- internalType: string;
25
- name: string;
26
- type: string;
27
- }[];
28
- stateMutability: string;
29
- type: string;
30
- anonymous?: undefined;
31
- })[];
32
- };
33
- export declare const uniswapV3PoolData: {
34
- abi: ({
35
- anonymous: boolean;
36
- inputs: {
37
- indexed: boolean;
38
- internalType: string;
39
- name: string;
40
- type: string;
41
- }[];
42
- name: string;
43
- type: string;
44
- outputs?: undefined;
45
- stateMutability?: undefined;
46
- } | {
47
- inputs: {
48
- internalType: string;
49
- name: string;
50
- type: string;
51
- }[];
52
- name: string;
53
- outputs: {
54
- internalType: string;
55
- name: string;
56
- type: string;
57
- }[];
58
- stateMutability: string;
59
- type: string;
60
- anonymous?: undefined;
61
- })[];
62
- };
63
- export declare const uniswapV2PoolData: {
64
- abi: {
65
- inputs: never[];
66
- name: string;
67
- outputs: {
68
- internalType: string;
69
- name: string;
70
- type: string;
71
- }[];
72
- stateMutability: string;
73
- type: string;
74
- }[];
75
- };
76
- export declare const uniswapV3QuoterData: {
77
- abi: ({
78
- inputs: {
79
- internalType: string;
80
- name: string;
81
- type: string;
82
- }[];
83
- name: string;
84
- outputs: {
85
- internalType: string;
86
- name: string;
87
- type: string;
88
- }[];
89
- stateMutability: string;
90
- type: string;
91
- } | {
92
- inputs: {
93
- components: {
94
- internalType: string;
95
- name: string;
96
- type: string;
97
- }[];
98
- internalType: string;
99
- name: string;
100
- type: string;
101
- }[];
102
- name: string;
103
- outputs: {
104
- internalType: string;
105
- name: string;
106
- type: string;
107
- }[];
108
- stateMutability: string;
109
- type: string;
110
- })[];
111
- };
112
- export declare const contractMetadataMapping: Record<ContractType, (contractData: ContractData) => ContractMetadata>;
113
- export declare const getHinkalParameters: (chainId: number) => {
114
- hinkalInterface: ethers.utils.Interface;
115
- transactMethodId: string;
116
- transactWithExternalActionMethodId: string;
117
- NewCommitment: string;
118
- NewCommitmentTopic: string;
119
- };
@@ -1,20 +0,0 @@
1
- export type CrvCvxRegistryType = {
2
- name: string;
3
- pool: string;
4
- lpToken: string;
5
- gauge: string;
6
- hasCrvRewards?: boolean;
7
- rewards?: string[];
8
- version?: number;
9
- pid?: number;
10
- cvxRewards?: string;
11
- wstCurveToken?: string;
12
- wstCvxToken?: string;
13
- };
14
- export declare const ethCrvCvxRegistry: CrvCvxRegistryType[];
15
- export declare const polygonCrvCvxRegistry: CrvCvxRegistryType[];
16
- export declare const arbMainnetCrvCvxRegistry: CrvCvxRegistryType[];
17
- export declare const optimismCrvCvxRegistry: CrvCvxRegistryType[];
18
- export declare const avalancheCrvCvxRegistry: CrvCvxRegistryType[];
19
- export declare const baseCrvCvxRegistry: CrvCvxRegistryType[];
20
- export declare const getCrvCvxWithChainId: (chainId: number) => CrvCvxRegistryType[];
@@ -1 +0,0 @@
1
- export declare const getCalcTokenAmountWithDynamicArray: (chainId: number) => string[];
@@ -1,11 +0,0 @@
1
- import bnbMainnetData from './deploy-data-bnbMainnet.json';
2
- import arbMainnetData from './deploy-data-arbMainnet.json';
3
- import ethMainnetData from './deploy-data-ethMainnet.json';
4
- import optimismData from './deploy-data-optimism.json';
5
- import polygonData from './deploy-data-polygon.json';
6
- import avalancheData from './deploy-data-avalanche.json';
7
- import baseData from './deploy-data-base.json';
8
- import localhostData from './deploy-data-localhost.json';
9
- import axelar1Data from './deploy-data-axelar1.json';
10
- import axelar2Data from './deploy-data-axelar2.json';
11
- export { bnbMainnetData, arbMainnetData, ethMainnetData, polygonData, avalancheData, optimismData, baseData, localhostData, axelar1Data, axelar2Data, };
@@ -1,11 +0,0 @@
1
- import { SlippageType } from '../types/slippage.types';
2
- export declare const HINKAL_UNIVERSAL_FEE = 8n;
3
- export declare const HINKAL_EXTERNAL_ACTION_FEE = 3n;
4
- export declare const getHinkalFeeRateInBeeps: (isUniversalFee: boolean) => 8n | 3n;
5
- export declare const getRelayFee: (amount: bigint, isWithdrawal?: boolean) => bigint;
6
- export declare const getSlippageFee: (amount: bigint, slippageType: SlippageType) => bigint;
7
- export declare const getAmountAfterRelayFee: (amount: bigint, isWithdrawal?: boolean) => bigint;
8
- export declare const getAmountWithoutFee: (amountWithFee: bigint, isWithdrawal?: boolean) => bigint;
9
- export declare const getAmountAfterRelayAndFlatFees: (amount: bigint, flatFees: bigint, isWithdrawal?: boolean) => bigint;
10
- export declare const getAmountAfterSlippage: (amount: bigint, slippageType: SlippageType) => bigint;
11
- export declare const getAmountAfterRelayAndFlatFeesAndSlippage: (amount: bigint, flatFees: bigint, slippageType: SlippageType, isWithdrawal?: boolean) => bigint;
@@ -1,20 +0,0 @@
1
- export * from './assets.constants';
2
- export * from './token-data';
3
- export * from './deploy-data';
4
- export * from './chains.constants';
5
- export * from './fees.constants';
6
- export * from './contracts.constants';
7
- export * from './kyc.constants';
8
- export * from './server.constants';
9
- export * from './vite.constants';
10
- export * from './protocol.constants';
11
- export * from './coingecko.constants';
12
- export * from './axelar.constants';
13
- export * from './backend.constants';
14
- export * from './crvCvx.registry';
15
- export * from './crvDynamic.registry';
16
- export * from './lido.constants';
17
- export * from './rewards.constants';
18
- export * from './reorg-depths.constants';
19
- export * from './beefy.registry';
20
- export * from './pendle.registry';
@@ -1,28 +0,0 @@
1
- import { IHinkal } from '../data-structures/Hinkal/IHinkal';
2
- import { Passports } from '../types/kyc.types';
3
- export declare const aipriseBaseOnboardingProductionUrl = "https://onboard.aiprise.com";
4
- export declare const aipriseBaseOnboardingSandboxUrl = "https://onboard-sandbox.aiprise.com";
5
- export type PassportDetails = {
6
- id: Passports;
7
- shortName: string;
8
- fullName: string;
9
- apiURL: string;
10
- onboardURL: string;
11
- customHandleKYC?: (hinkal: IHinkal, shortName: string, onboardURL: string) => Promise<void>;
12
- params?: Record<string, number | string>;
13
- supportsAllChains?: boolean;
14
- supportedChainIds: number[];
15
- };
16
- export declare const StandardPassports: {
17
- [passport: number]: PassportDetails;
18
- };
19
- export declare const ReclaimPassports: {
20
- [passport: number]: PassportDetails;
21
- };
22
- export declare const SupportedPassports: {
23
- [x: number]: PassportDetails;
24
- };
25
- export declare const supportedPassportLinks: string[];
26
- export declare const AIPRISE_KYC_TEMPLATE_ID_PROD = "dbda56e5-31f5-4a37-a895-d4adca6c53fd";
27
- export declare const AIPRISE_KYB_TEMPLATE_ID_PROD = "96050d8d-23c9-4908-b285-2e6dec4c020b";
28
- export declare const RECLAIM_MESSAGE_TO_SIGN = "Approve Integrity Status proof generation using Reclaim Protocol.";
@@ -1,10 +0,0 @@
1
- export declare const lidoWithdrawalQueueERC721Address = "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1";
2
- export declare const lidoStakeManagerAddress = "0x5e3Ef299fDDf15eAa0432E6e66473ace8c13D908";
3
- export declare const lidoWstEthContractAddress = "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0";
4
- export declare const lidoStEthContractAddress = "0xae7ab96520de3a18e5e111b5eaab095312d7fe84";
5
- export declare const poLidoNftAddress = "0x60a91E2B7A1568f0848f3D43353C453730082E46";
6
- export declare const lidoStMaticAddress = "0x9ee91f9f426fa633d227f7a9b000e28b9dfd8599";
7
- export declare const ethSymbol = "ETH";
8
- export declare const maticSymbol = "MATIC";
9
- export declare const wstEthSymbol = "wstETH";
10
- export declare const stMaticSymbol = "stMATIC";
@@ -1,21 +0,0 @@
1
- export type PendleRegistryEntryType = {
2
- name: string;
3
- SY: string;
4
- YT: string;
5
- PT: string;
6
- market: string;
7
- expiry: number;
8
- version: number;
9
- wstYtToken?: string;
10
- wstPendleLPToken?: string;
11
- decimals: number;
12
- rewardTokens: string[];
13
- };
14
- export declare const ethPendleRegistry: PendleRegistryEntryType[];
15
- export declare const bnbPendleRegistry: PendleRegistryEntryType[];
16
- export declare const optimismPendleRegistry: PendleRegistryEntryType[];
17
- export declare const arbPendleRegistry: PendleRegistryEntryType[];
18
- export declare const getPendleRegistryWithChainId: (chainId: number) => PendleRegistryEntryType[];
19
- export declare const getYtTokensWithChainId: (chainId: number) => string[];
20
- export declare const isYtToken: (chainId: number, tokenAddress: string) => boolean;
21
- export declare const findSyAddress: (chainId: number, ytAddress: string) => string;
@@ -1,18 +0,0 @@
1
- export declare const zeroAddress: string;
2
- export declare const oneInchZeroAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
3
- export declare const curveZeroAddress = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
4
- export declare const ethVolatileAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
5
- export declare const signaturePhrase = "Hinkal Stake KeyPair Generator";
6
- export declare const ownerPublicKey = "0xa33e4e1672ffdc9a08d0d8b50c79a7dee400bb5493d054076ff01733d7646b32";
7
- export declare const permitSignatureValidFor: number;
8
- export declare const CIRCOM_P = 21888242871839275222246405745257275088548364400416034343698204186575808495617n;
9
- export declare const CIRCOM_P_HALF: bigint;
10
- export declare const curveWithdrawGasTokenAddress: {
11
- current: string;
12
- };
13
- export declare const crvSymbol = "curve-dao-token";
14
- export declare const threePoolSymbol = "lp-3pool-curve";
15
- export declare const cvxSymbol = "convex-finance";
16
- export declare const beefyChainIds: {
17
- [key: number]: string;
18
- };
@@ -1,3 +0,0 @@
1
- export declare const blockReorgDepth: {
2
- [x: number]: number;
3
- };
@@ -1,19 +0,0 @@
1
- export declare const REWARD_RECEIVABLE_TOKEN_SYMBOLS: string[];
2
- export declare const referralLink = "https://hinkal-team.gitbook.io/hinkal/users/rebates/referral-program";
3
- export declare const pointsLink = "https://hinkal-team.gitbook.io/hinkal/users/rewards/points";
4
- export declare const lpLink = "https://hinkal-team.gitbook.io/hinkal/users/rebates/lp-program";
5
- export declare const lpProgramStartWeek = 3;
6
- export declare const raffleProgramStartWeek = 9;
7
- export declare const boostAmounts: {
8
- readonly 10: 2;
9
- readonly 50: 1.6;
10
- readonly 100: 1.2;
11
- };
12
- export declare const CERTIFICATION_DISABLE_WEEK = 7;
13
- export declare const ACCESS_TOKEN_MINTING_POINTS = 1000;
14
- export declare const ACCESS_TOKEN_RECLAIM_POINTS = 10000;
15
- export declare const RafflePrizePoints: {
16
- Silver: number;
17
- Gold: number;
18
- };
19
- export type PointsProvider = 'Hinkal';
@@ -1,155 +0,0 @@
1
- import { ValidExternalAction } from '../types';
2
- export declare const API_CONFIG: {
3
- ROUTES: {
4
- checkKycStatus: string;
5
- getUserSignature: string;
6
- startReclaimVerification: string;
7
- startUserVerification: string;
8
- zkMeAccessToken: string;
9
- getCommitmentsSnapshot: string;
10
- getAccessTokenSnapshot: string;
11
- callOdosAPI: string;
12
- callOneInchAPI: string;
13
- getOdosPriceForToken: (tokenAddress: string) => string;
14
- getNullifiers: string;
15
- axelarGasEstimate: (sourceChainName: string, destChainName: string, sourceChainToken: string, accessKey: string) => string;
16
- userHasAccessToken: (accessKey: string) => string;
17
- afterKycCall: string;
18
- userHasReclaim: string;
19
- restoreSnapshots: string;
20
- beefyGraphAPI: string;
21
- monitor: string;
22
- checkRisk: (address: string) => string;
23
- userVerifyTransactions: string;
24
- userGetLatestCertifiedHashes: (ethereumAddress: string) => string;
25
- userGetHasCerified: (ethereumAddress: string) => string;
26
- userGetTransactions: (week?: number, lastHash?: string, startWeek?: number) => string;
27
- getActiveCode: (ethereumAddress: string) => string;
28
- updateActiveCode: string;
29
- getWeeklyReferralCodes: (ethereumAddress: string, week: number) => string;
30
- getReferralCodes: (ethereumAddress: string) => string;
31
- getRewardsHistory: (ethereumAddress: string) => string;
32
- addReferralCode: string;
33
- getLpProgram: (ethereumAddress: string) => string;
34
- points: (ethereumAddress: string, week?: number) => string;
35
- leaderboard: (week?: number) => string;
36
- setRewardsReceivingData: string;
37
- getRewardsReceivingData: (ethereumAddress: string) => string;
38
- seasonLeaderboard: string;
39
- getUserAnonymityStakingPoints: (ethereumAddress: string) => string;
40
- getLimitedAnonymityStakingPoints: (ethereumAddress: string) => string;
41
- getUserAnonymityStakingReferralPoints: (ethereumAddress: string) => string;
42
- userHasPassword: (ethereumAddress: string) => string;
43
- userRegisterPassword: string;
44
- getNickname: (ethereumAddress: string) => string;
45
- addNickname: string;
46
- getLastCertifyTime: (ethereumAddress: string) => string;
47
- getLidoDefiData: string;
48
- getLidoStats: string;
49
- getLidoEthStats: string;
50
- getLidoDiscount: string;
51
- getLidoRequestTime: string;
52
- getLidoMaticReward: string;
53
- pendleAddLiquiditySingleToken: string;
54
- pendleAddLiquiditySingleSy: string;
55
- pendleAddLiquiditySinglePt: string;
56
- pendleAddLiquidityDualTokenAndPt: string;
57
- pendleAddLiquidityDualSyAndPt: string;
58
- pendleAddLiquiditySingleTokenKeepYt: string;
59
- pendleRemoveLiquiditySingleToken: string;
60
- pendleRemoveLiquiditySingleSy: string;
61
- pendleRemoveLiquiditySinglePt: string;
62
- pendleRemoveLiquidityDualTokenAndPt: string;
63
- pendleRemoveLiquidityDualSyAndPt: string;
64
- pendleMintPyFromToken: string;
65
- pendlRedeemPyToToken: string;
66
- removeLiquidityDualTokenAndPt: string;
67
- removeLiquiditySinglePt: string;
68
- pendleSwapExactTokenForYT: string;
69
- pendleSwapExactTokenForPt: string;
70
- pendleSwapExactPtForToken: string;
71
- pendleSwapExactPtForYt: string;
72
- pendleSwapExactYtForToken: string;
73
- pendleSwapExactYtForPt: string;
74
- pendleSyTokenInOut: string;
75
- connextReceiveFee: (sourceChainName: string, destChainName: string) => string;
76
- stakedYield: string;
77
- getPublicWalletInformation: (ethereumAddress: string) => string;
78
- };
79
- };
80
- export declare const RELAYER_CONFIG: {
81
- getGasEstimate: (tokenAddress: string, externalActionId: string, action: ValidExternalAction | undefined, erc20TokenAddressLength: number, gasAmount?: number) => string;
82
- getTokenPrice: string;
83
- getTokenPriceEth: (id: string) => string;
84
- getTokenPrices: string;
85
- TRANSACT: string;
86
- getIdleRelay: string;
87
- };
88
- export declare const DATA_SERVER_CONFIG: {
89
- getUserPoints: (ethereumAddress: string) => string;
90
- };
91
- export declare const STAGING_URL = "http://ec2-54-241-116-187.us-west-1.compute.amazonaws.com";
92
- export declare const PLAYGROUND_URL = "http://ec2-18-144-10-166.us-west-1.compute.amazonaws.com";
93
- export declare const DATA_SERVER_URL_PRODUCTION = "https://ethMainnet-data-server.hinkal.pro";
94
- export declare const DATA_SERVER_URL_LOCAL = "http://localhost";
95
- export declare const DATA_SERVER_PORT = 7090;
96
- export declare const SERVER_URLS: {
97
- polygon: string;
98
- arbMainnet: string;
99
- ethMainnet: string;
100
- bnbMainnet: string;
101
- avalanche: string;
102
- optimism: string;
103
- base: string;
104
- localhost: string;
105
- };
106
- export declare const STAGING_SERVER_URLS: {
107
- polygon: string;
108
- arbMainnet: string;
109
- ethMainnet: string;
110
- bnbMainnet: string;
111
- avalanche: string;
112
- optimism: string;
113
- base: string;
114
- localhost: string;
115
- };
116
- export declare const PLAYGROUND_SERVER_URLS: {
117
- polygon: string;
118
- arbMainnet: string;
119
- ethMainnet: string;
120
- bnbMainnet: string;
121
- avalanche: string;
122
- optimism: string;
123
- base: string;
124
- localhost: string;
125
- };
126
- export declare const RELAYER_URLS: {
127
- polygon: string;
128
- arbMainnet: string;
129
- ethMainnet: string;
130
- bnbMainnet: string;
131
- avalanche: string;
132
- optimism: string;
133
- base: string;
134
- localhost: string;
135
- };
136
- export declare const STAGING_RELAYER_URLS: {
137
- polygon: string;
138
- arbMainnet: string;
139
- ethMainnet: string;
140
- bnbMainnet: string;
141
- avalanche: string;
142
- optimism: string;
143
- base: string;
144
- localhost: string;
145
- };
146
- export declare const PLAYGROUND_RELAYER_URLS: {
147
- polygon: string;
148
- arbMainnet: string;
149
- ethMainnet: string;
150
- bnbMainnet: string;
151
- avalanche: string;
152
- optimism: string;
153
- base: string;
154
- localhost: string;
155
- };
@@ -1,3 +0,0 @@
1
- import { ERC20Token } from '../../types/token.types';
2
- export declare const getERC20Registry: (chainId: number) => ERC20Token[];
3
- export declare const getFixedRegistry: (chainId: number) => ERC20Token[];