@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,222 +0,0 @@
1
- import { PendleAction, PendleLPAction } from './hinkal.types';
2
- export declare enum PendleTabs {
3
- Trade = "TRADE",
4
- Earn = "EARN"
5
- }
6
- export declare enum PendleTradeGeneralTabs {
7
- Markets = "Market",
8
- Pools = "Pools",
9
- Dashboard = "Dashboard"
10
- }
11
- export declare enum PendleTradeTabs {
12
- Swap = "Swap",
13
- Mint = "Mint"
14
- }
15
- export declare enum PendlePoolTabs {
16
- Zap = "Zap",
17
- Manual = "Manual"
18
- }
19
- export declare enum PendlePoolZapTabs {
20
- ZapIn = "Zap In",
21
- ZapOut = "Zap Out"
22
- }
23
- export declare enum PendlePoolManualTabs {
24
- AddLiquidity = "Add Liquidity",
25
- RemoveLiquidity = "Remove Liquidity"
26
- }
27
- export declare enum PendleDashboardTabs {
28
- YT = "YT",
29
- LP = "LP"
30
- }
31
- export declare enum PendleEarnTabs {
32
- Pool = "Pool",
33
- Stake = "Stake"
34
- }
35
- export declare enum PendleChains {
36
- Ethereum = "ethereum",
37
- Arbitrum = "arbitrum",
38
- BNB = "bnb",
39
- Optimism = "optimism"
40
- }
41
- export declare enum PendleAssetType {
42
- IB = "IB",
43
- GENERIC = "GENERIC",
44
- PENDLE_LP = "PENDLE_LP",
45
- NATIVE = "NATIVE",
46
- PT = "PT",
47
- SY = "SY",
48
- YT = "YT"
49
- }
50
- export declare enum PendleSwapType {
51
- SwapExactTokenForYt = "SwapExactTokenForYt",
52
- SwapExactTokenForPt = "SwapExactTokenForPt",
53
- SwapExactYtForToken = "SwapExactYtForToken",
54
- SwapExactPtForToken = "SwapExactPtForToken"
55
- }
56
- export type PendleAsset = {
57
- id: string;
58
- chainId: number;
59
- address: string;
60
- name: string;
61
- proName: string;
62
- symbol: string;
63
- decimals: number;
64
- icon: string;
65
- baseAssetType: PendleAssetType;
66
- assetTypes: PendleAssetType[];
67
- expiry: Date;
68
- price: {
69
- usd: number;
70
- acc: number;
71
- };
72
- priceUpdatedAt: Date;
73
- protocol: string;
74
- underlyingPool: string;
75
- zappable: boolean;
76
- };
77
- export type PendleMarket = {
78
- id: string;
79
- address: string;
80
- aggregatedApy: number;
81
- chainId: number;
82
- name: string;
83
- symbol: string;
84
- icon: string;
85
- maturity: Date;
86
- underlyingAPY: number;
87
- impliedAPY: number;
88
- lp: PendleAsset;
89
- maxBoostedApy: number;
90
- pt: PendleAsset;
91
- sy: PendleAsset;
92
- yt: PendleAsset;
93
- underlyingAsset: PendleAsset;
94
- basePricingAsset: PendleAsset;
95
- rewardTokens: PendleAsset[] | [];
96
- inputTokens: PendleAsset[] | [];
97
- outputTokens: PendleAsset[] | [];
98
- totalPt: number;
99
- totalSy: number;
100
- totalLp: number;
101
- totalActiveSupply: number;
102
- liquidity: {
103
- usd: number;
104
- acc: number;
105
- };
106
- tradingVolume: {
107
- usd: number;
108
- };
109
- ytFloatingApy: number;
110
- swapFeeApy: number;
111
- pendleApy: number;
112
- arbApy: number;
113
- estimatedDailyPoolRewards: {
114
- asset: PendleAsset;
115
- amount: number;
116
- }[];
117
- liquidityChange24h: number;
118
- tradingVolumeChange24h: number;
119
- underlyingApyChange24h: number;
120
- impliedApyChange24h: number;
121
- ytFloatingApyChange24h: number;
122
- accentColor: string;
123
- };
124
- export type PendleMarketAssetStatistics = {
125
- liquidity: {
126
- value: number;
127
- change: number;
128
- };
129
- volume: {
130
- value: number;
131
- change: number;
132
- };
133
- underlyingAPY: {
134
- value: number;
135
- change: number;
136
- };
137
- fixedAPY: {
138
- value: number;
139
- change: number;
140
- } | undefined;
141
- impliedAPY: {
142
- value: number;
143
- change: number;
144
- } | undefined;
145
- longTermAPY: {
146
- value: number;
147
- change: number;
148
- } | undefined;
149
- };
150
- export declare enum PendleMarketTransactionTypes {
151
- mintPY = "MINT_PY",
152
- redeemPY = "REDEEM_PY",
153
- addLiquidity = "ADD_LIQUIDITY",
154
- removeLiquidity = "REMOVE_LIQUIDITY",
155
- swapPT = "SWAP_PT",
156
- swapYT = "SWAP_YT",
157
- swapPY = "SWAP_PY"
158
- }
159
- export type PendleMarketTransactions = {
160
- type: PendleMarketTransactionTypes;
161
- hash: string;
162
- value: number;
163
- tokensIn: {
164
- token: PendleAsset | undefined;
165
- amount: number;
166
- }[] | undefined;
167
- tokensOut: {
168
- token: PendleAsset | undefined;
169
- amount: number;
170
- }[] | undefined;
171
- time: Date;
172
- };
173
- export type PriceHistoricalData = {
174
- time: string;
175
- open: number;
176
- high: number;
177
- low: number;
178
- close: number;
179
- volume: number;
180
- };
181
- export type PendleAssetPriceHistoricalData = {
182
- total: number;
183
- currency: string;
184
- timeFrame: string;
185
- timestampStart: string;
186
- timestampEnd: string;
187
- results: PriceHistoricalData[] | undefined;
188
- };
189
- export type APYHistoricalData = {
190
- timestamp: string;
191
- underlyingApy: number;
192
- impliedApy: number;
193
- };
194
- export type PendleMarketAPYHistoricalData = {
195
- total: number;
196
- timestampStart: string;
197
- timestampEnd: string;
198
- results: APYHistoricalData[] | undefined;
199
- };
200
- export type VolumeHistoricalData = {
201
- time: string;
202
- volume: number;
203
- };
204
- export type PendleMarketVolumeHistoricalData = {
205
- total: number;
206
- timestampStart: string;
207
- timestampEnd: string;
208
- results: VolumeHistoricalData[] | undefined;
209
- };
210
- export type PendleMarketDataKeyType = keyof PendleMarket;
211
- export type PendleMetadata = {
212
- pendleAction: PendleAction;
213
- ytAddress: string;
214
- userAddress?: string;
215
- evmData?: string;
216
- isRelayerOff?: boolean;
217
- };
218
- export type PendleLPMetadata = {
219
- pendleLPAction: PendleLPAction;
220
- lpAddress: string;
221
- evmData: string;
222
- };
@@ -1,25 +0,0 @@
1
- export interface RelayerTransaction {
2
- to: string;
3
- from: string;
4
- contractAddress: string | null;
5
- gasUsed: {
6
- type: string;
7
- hex: string;
8
- };
9
- logsBloom: string;
10
- blockHash: string;
11
- transactionHash: string;
12
- blockNumber: number;
13
- confirmations: number;
14
- cumulativeGasUsed: {
15
- type: string;
16
- hex: string;
17
- };
18
- effectiveGasPrice: {
19
- type: string;
20
- hex: string;
21
- };
22
- status: number;
23
- type: number;
24
- byzantium: boolean;
25
- }
@@ -1,15 +0,0 @@
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,230 +0,0 @@
1
- import { networkRegistry } from '../constants/chains.constants';
2
- export declare enum TIER_LEVEL {
3
- None = "None",
4
- Bronze = "Bronze",
5
- Silver = "Silver",
6
- Gold = "Gold",
7
- Platinum = "Platinum",
8
- Diamond = "Diamond",
9
- Elite = "Elite"
10
- }
11
- export declare enum LP_TIER {
12
- None = "None",
13
- Bronze = "Bronze",
14
- Silver = "Silver",
15
- Gold = "Gold",
16
- Platinum = "Platinum",
17
- Diamond = "Diamond"
18
- }
19
- export interface TraderIndex {
20
- tier: TIER_LEVEL;
21
- activeCode: string;
22
- inviteeDiscount: number;
23
- userTransactions: number;
24
- userTrade: number;
25
- traderRebates: number;
26
- }
27
- export interface AffiliateIndex {
28
- tier: TIER_LEVEL;
29
- tradersReferred: number;
30
- trade: number;
31
- transactions: number;
32
- lockedDeposit: number;
33
- referrerDiscount: number;
34
- referrerRebates: number;
35
- }
36
- export interface ReferralIndex {
37
- referralCode: string;
38
- tradersReferred: number;
39
- trade: number;
40
- transactions: number;
41
- }
42
- export interface WeeklyReferralIndex extends ReferralIndex {
43
- week: number;
44
- consistency: number;
45
- rebates: number;
46
- }
47
- export interface LpIndex {
48
- tier: LP_TIER;
49
- lockedDeposit: number;
50
- lockinDuration: number;
51
- feeDiscount: number;
52
- lpRebates: number;
53
- revenueRebates: number;
54
- }
55
- export interface UserIndex {
56
- lpPoints: number;
57
- referralPoints: number;
58
- certificationPoints: number;
59
- tradePoints: number;
60
- ambassadorPoints: number;
61
- totalPoints: number;
62
- boost: number;
63
- }
64
- export interface AnonymityStakingUserIndex {
65
- position: number;
66
- username: string;
67
- points: number;
68
- referralPoints: number;
69
- totalPoints: number;
70
- }
71
- export interface AnonymityStakingReferralPointsIndex {
72
- referralCode: string;
73
- numberOfStakersReferred: number;
74
- cumulativeValue: number;
75
- }
76
- export interface CombinedReferralIndex extends ReferralIndex, AnonymityStakingReferralPointsIndex {
77
- }
78
- export declare enum RewardsPageTabs {
79
- Points = "POINTS",
80
- ReferralProgram = "REFERRAL",
81
- LrtPoints = "LRT_POINTS",
82
- LPProgram = "LP",
83
- RewardsHistory = "HISTORY"
84
- }
85
- export declare enum RewardsHistoryStatuses {
86
- InProgress = "In Progress",
87
- Closed = "Closed"
88
- }
89
- export declare enum RewardsHistorySnapshots {
90
- Pending = "Pending",
91
- Submitted = "Submitted",
92
- Unsubmitted = "Didn't Submit"
93
- }
94
- export declare enum RewardsHistoryEligibility {
95
- Pending = "Pending",
96
- Eligible = "Eligible",
97
- Ineligible = "Ineligible"
98
- }
99
- export declare enum RewardsHistoryDistribution {
100
- Pending = "Pending",
101
- Completed = "Completed",
102
- Unsubmitted = "Didn't Submit"
103
- }
104
- export interface RewardsHistoryItem<T> {
105
- id: number;
106
- date: string;
107
- status: RewardsHistoryStatuses;
108
- snapshot: RewardsHistorySnapshots;
109
- eligibility: RewardsHistoryEligibility;
110
- distribution: RewardsHistoryDistribution;
111
- data: T;
112
- }
113
- export declare enum RafflePrizeType {
114
- Gold = "Gold",
115
- Silver = "Silver"
116
- }
117
- export declare enum PointType {
118
- CertificationPoints = "CertificationPoints",
119
- TradePoints = "TradePoints",
120
- LPPoints = "LPPoints",
121
- ReferralPoints = "ReferralPoints",
122
- GalxePoints = "GalxePoints",
123
- ZealyPoints = "ZealyPoints",
124
- TaskOnPoints = "TaskOnPoints",
125
- BonusPoints = "BonusPoints"
126
- }
127
- export type PointData = {
128
- [PointType.CertificationPoints]: number;
129
- [PointType.TradePoints]: number;
130
- [PointType.LPPoints]: number;
131
- [PointType.ReferralPoints]: number;
132
- [PointType.GalxePoints]: number;
133
- [PointType.ZealyPoints]: number;
134
- [PointType.TaskOnPoints]?: number;
135
- [PointType.BonusPoints]?: number;
136
- RafflePrize?: RafflePrizeType;
137
- boost?: number;
138
- points: number;
139
- };
140
- export type TradingData = {
141
- volume: number;
142
- transactions: number;
143
- };
144
- export interface RewardsHistoryData {
145
- week: number;
146
- affiliateIndex: AffiliateIndex;
147
- traderIndex: TraderIndex;
148
- lpIndex: LpIndex;
149
- points?: PointData;
150
- isVerified: boolean;
151
- paymentStatus?: PaymentStatus;
152
- eligibility?: boolean;
153
- rafflePrize: RafflePrizeType;
154
- raffleTickets: number;
155
- }
156
- export declare enum Timeline {
157
- Season = "Season",
158
- Week = "Week"
159
- }
160
- export type CountDown = {
161
- daysLeft: number;
162
- hoursLeft: number;
163
- minutesLeft: number;
164
- secondsLeft: number;
165
- };
166
- export type RewardPaymentInfo = {
167
- chainId: number;
168
- receivingAddress: string;
169
- rewardTokenAddress: string;
170
- };
171
- export declare enum PaymentStatus {
172
- PAID = "PAID",
173
- PENDING = "PENDING"
174
- }
175
- export declare enum CertifyType {
176
- Certify = 0,
177
- CheckActivity = 1
178
- }
179
- export declare enum RewardPage {
180
- Points = 0,
181
- Trader = 1,
182
- Affiliate = 2,
183
- LP = 3,
184
- History = 4
185
- }
186
- export declare enum BonusType {
187
- ReclaimCheck = 0,
188
- IntegrationCheck = 1,
189
- RandomPrizeGold = 2,
190
- RandomPrizeSilver = 3
191
- }
192
- export type UserPoints = Record<string, number>;
193
- export type UserPointsTokens = Record<string, UserPoints>;
194
- export type UserPointsResponse = {
195
- Result: UserPointsTokens;
196
- };
197
- export declare const emptyUserPointsResponse: {
198
- Result: {};
199
- };
200
- export type UserPointsBreakdown = {
201
- EtherFi: number;
202
- Renzo: number;
203
- Kelp: number;
204
- Zircuit: number;
205
- };
206
- export declare const emptyUserPointsBreakdown: {
207
- renzo: number;
208
- kelp: number;
209
- etherFi: number;
210
- zircuit: number;
211
- };
212
- export interface HistoryIndexesProps {
213
- week: number;
214
- lpIndex: LpIndex;
215
- affiliateIndex: AffiliateIndex;
216
- traderIndex: TraderIndex;
217
- points?: PointData;
218
- raffleTickets: number;
219
- rafflePrize: RafflePrizeType;
220
- lpProgramStartWeek: number;
221
- raffleProgramStartWeek: number;
222
- }
223
- export type HashInfoByChain = Record<keyof typeof networkRegistry, {
224
- lastCertifiedHash: string;
225
- week: number;
226
- }>;
227
- export type WeekOption = {
228
- value: number;
229
- label: string;
230
- };
@@ -1,15 +0,0 @@
1
- export declare enum SlippageType {
2
- Swap = "Swap",
3
- CurveDeposit = "CurveDeposit",
4
- CurveWithdraw = "CurveWithdraw",
5
- Beefy = "Beefy",
6
- Pendle = "Pendle"
7
- }
8
- export interface ISlippageLevels {
9
- [SlippageType.Swap]: number;
10
- [SlippageType.CurveDeposit]: number;
11
- [SlippageType.CurveWithdraw]: number;
12
- [SlippageType.Beefy]: number;
13
- [SlippageType.Pendle]: number;
14
- }
15
- export declare const slippageLevels: ISlippageLevels;
@@ -1,40 +0,0 @@
1
- interface ZkBaseInputType {
2
- rootHashHinkal: bigint | undefined;
3
- shieldedPrivateKey: string;
4
- inAmounts: string[];
5
- inBlindings: string[];
6
- inNullifiers: string[];
7
- inCommitmentSiblings: string[][];
8
- inCommitmentSiblingSides: string[][];
9
- outCommitments: string[];
10
- rootHashAccessToken: bigint | undefined;
11
- accessTokenSiblings: string[];
12
- accessTokenSiblingSides: string[];
13
- relayFee: bigint;
14
- relay: string;
15
- }
16
- export interface ZkInputType extends ZkBaseInputType {
17
- publicAmount: bigint;
18
- recipientAddress: string;
19
- erc20TokenAddress: string;
20
- outAmounts: string[];
21
- outShieldedPublicKey: string[];
22
- outBlindings: string[];
23
- }
24
- export interface ZkExternalInputType extends ZkBaseInputType {
25
- inSwapAmount: bigint;
26
- inErc20TokenAddress: string;
27
- outAmount: bigint;
28
- outBlinding: bigint;
29
- outSwapAmount: bigint;
30
- outErc20TokenAddress: string;
31
- outSwapBlinding: bigint;
32
- externalActionId: bigint;
33
- externalActionMetadataHash: bigint;
34
- }
35
- export interface ZkResultType {
36
- proof: string;
37
- publicSignals: string[];
38
- }
39
- export type NewZkCallDataType = [[string, string], [[string, string], [string, string]], [string, string], string[]];
40
- export {};
@@ -1,31 +0,0 @@
1
- export declare const secondInMilliseconds = 1000;
2
- export declare const minuteInMilliseconds: number;
3
- export declare const hourInMilliseconds: number;
4
- export declare const dayInMilliseconds: number;
5
- export declare const weekInMilliseconds: number;
6
- export declare const getDateFromWeek: (week: number) => Date;
7
- export declare const getWeekTimestamps: (week: number) => {
8
- initialTimestamp: number;
9
- endTimestamp: number;
10
- };
11
- export declare const getCurrentWeek: () => number;
12
- export declare const parseWeek: (week: unknown) => number | undefined;
13
- export declare const toDateString: (date: Date, delimiter?: string) => string;
14
- export declare const isWeekCurrent: (week: number) => boolean;
15
- export declare const hasCertificationPeriodExpired: (week: number) => boolean;
16
- export declare const getNextDay: (date: Date) => Date;
17
- export declare enum MONTHS {
18
- JANUARY = 0,
19
- FEBRUARY = 1,
20
- MARCH = 2,
21
- APRIL = 3,
22
- MAY = 4,
23
- JUNE = 5,
24
- JULY = 6,
25
- AUGUST = 7,
26
- SEPTEMBER = 8,
27
- OCTOBER = 9,
28
- NOVEMBER = 10,
29
- DECEMBER = 11
30
- }
31
- export declare const divideMonthOnIntervals: (year: number, month: MONTHS) => number[];
@@ -1,36 +0,0 @@
1
- export interface ERC20Token {
2
- chainId: number;
3
- erc20TokenAddress: string;
4
- wrappedErc20TokenAddress?: string;
5
- underlyingErc20TokenAddress?: string;
6
- name: string;
7
- symbol: string;
8
- decimals: number;
9
- logoURI?: string;
10
- logoURIs?: string[];
11
- whitelisted?: boolean;
12
- isCustom?: true;
13
- isNFT?: boolean;
14
- approvalType?: ApprovalType;
15
- isVolatile?: boolean;
16
- sharedAddress?: string;
17
- isPendleToken?: boolean;
18
- isHToken?: boolean;
19
- hasHToken?: boolean;
20
- aaveToken?: boolean;
21
- }
22
- export declare enum ApprovalType {
23
- Classic = 0,
24
- ERC20Permit = 1,
25
- DAIPermit = 2
26
- }
27
- export interface NFT {
28
- tokenId: number;
29
- timestamp: string;
30
- }
31
- export interface TokenBalance {
32
- token: ERC20Token;
33
- balance: bigint;
34
- timestamp?: string;
35
- nfts?: NFT[];
36
- }
@@ -1,55 +0,0 @@
1
- import { BigNumber } from 'ethers';
2
- import { HookDataType, StealthAddressStructure } from './circom-data.types';
3
- export interface RawTx {
4
- blockNumber: number;
5
- timeStamp: number;
6
- isError: string;
7
- methodId: string;
8
- input: string;
9
- logs: Log[];
10
- hash: string;
11
- gas: number;
12
- gasPrice: number;
13
- contract?: string;
14
- }
15
- type Log = {
16
- topics: string[];
17
- data: string;
18
- };
19
- export interface EventLog {
20
- address: string;
21
- topics: string[];
22
- data: string;
23
- blockNumber: string;
24
- blockHash: string;
25
- timeStamp: string;
26
- gasPrice: string;
27
- gasUsed: string;
28
- logIndex: string;
29
- transactionHash: string;
30
- transactionIndex: string;
31
- }
32
- export interface DecodedTx<T = bigint, K = BigNumber> extends RawTx {
33
- decodedInput: {
34
- erc20TokenAddresses: string[];
35
- amountChanges: K[];
36
- flatFees: K[];
37
- externalActionId: K;
38
- externalActionMetadata: string;
39
- encryptedOutputs: string[];
40
- hookData: HookDataType;
41
- stealthAddressStructure: StealthAddressStructure<T>;
42
- };
43
- status: string;
44
- }
45
- export interface DecodedTxWithUtxos<T = bigint, K = BigNumber> extends DecodedTx<T, K> {
46
- utxosArray?: OnChainUtxo<T>[];
47
- }
48
- export type OnChainUtxo<AmountType = bigint> = {
49
- amount: AmountType;
50
- erc20TokenAddress: string;
51
- timeStamp: string;
52
- tokenId: number;
53
- };
54
- export declare const emptyDecodedTx: DecodedTx;
55
- export {};
@@ -1,5 +0,0 @@
1
- import { WorkerVariant } from './worker.registry';
2
- export declare const performTaskWithWorker: <P, T>(workerData: {
3
- type: WorkerVariant;
4
- payload: P;
5
- }) => Promise<T>;
@@ -1,14 +0,0 @@
1
- import { WorkerParams, WorkerPayload } from '../worker.types';
2
- export declare enum SnarkJSWorkerActionType {
3
- FULL_PROVE = 0
4
- }
5
- export interface SnarkJSWorkerFullProvePayload extends WorkerPayload<{
6
- input: any;
7
- chainId: number;
8
- wasmFilePath: string;
9
- zKeyFilePath: string;
10
- }> {
11
- type: SnarkJSWorkerActionType.FULL_PROVE;
12
- }
13
- export type SnarkJSPayload = SnarkJSWorkerFullProvePayload;
14
- export type SnarkJSParams = WorkerParams<SnarkJSPayload>;
@@ -1 +0,0 @@
1
- export {};