@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,323 +0,0 @@
1
- import { abi as AmTokenABI } from './amToken';
2
- import { abi as BUSDABI } from './BUSD';
3
- import { abi as daiABI } from './DAI';
4
- import { abi as sanctionsListABI } from './SanctionsList';
5
- import { abi as USDCABI } from './USDC';
6
- import { abi as USDRABI } from './USDR';
7
- import { abi as USDR3CRVABI } from './USDR3CRV';
8
- import { abi as USDTABI } from './USDT';
9
- import { abi as WETHABI } from './WETH';
10
- import lidoStEthAbi from './LidoStEthAbi.json';
11
- import lidoStMaticAbi from './LidoStMaticAbi.json';
12
- import lidoWithdrawalQueueERC721Abi from './LidoWithdrawalQueueERC721Abi.json';
13
- import poLidoNftAbi from './PoLidoNftAbi.json';
14
- import lidoWstEthAbi from './LidoWstEthAbi.json';
15
- import lidoStakeManagerAbi from './LidoStakeManagerAbi.json';
16
- import optimismGasPriceOracleAbi from './OptimismGasPriceOracle.json';
17
- declare const BeefyVaultABI: ({
18
- anonymous: boolean;
19
- inputs: {
20
- indexed: boolean;
21
- internalType: string;
22
- name: string;
23
- type: string;
24
- }[];
25
- name: string;
26
- type: string;
27
- outputs?: undefined;
28
- stateMutability?: undefined;
29
- } | {
30
- inputs: {
31
- internalType: string;
32
- name: string;
33
- type: string;
34
- }[];
35
- name: string;
36
- outputs: {
37
- internalType: string;
38
- name: string;
39
- type: string;
40
- }[];
41
- stateMutability: string;
42
- type: string;
43
- anonymous?: undefined;
44
- })[];
45
- declare const CurveReadingWrapperABI: ({
46
- name: string;
47
- inputs: {
48
- name: string;
49
- type: string;
50
- indexed: boolean;
51
- }[];
52
- anonymous: boolean;
53
- type: string;
54
- stateMutability?: undefined;
55
- outputs?: undefined;
56
- } | {
57
- stateMutability: string;
58
- type: string;
59
- inputs: {
60
- name: string;
61
- type: string;
62
- }[];
63
- outputs: never[];
64
- name?: undefined;
65
- anonymous?: undefined;
66
- } | {
67
- stateMutability: string;
68
- type: string;
69
- name?: undefined;
70
- inputs?: undefined;
71
- anonymous?: undefined;
72
- outputs?: undefined;
73
- } | {
74
- stateMutability: string;
75
- type: string;
76
- name: string;
77
- inputs: {
78
- name: string;
79
- type: string;
80
- }[];
81
- outputs: {
82
- name: string;
83
- type: string;
84
- }[];
85
- anonymous?: undefined;
86
- })[];
87
- declare const CurveWrappedMainPoolABI: ({
88
- name: string;
89
- inputs: {
90
- name: string;
91
- type: string;
92
- indexed: boolean;
93
- }[];
94
- anonymous: boolean;
95
- type: string;
96
- stateMutability?: undefined;
97
- outputs?: undefined;
98
- } | {
99
- stateMutability: string;
100
- type: string;
101
- inputs: {
102
- name: string;
103
- type: string;
104
- }[];
105
- outputs: never[];
106
- name?: undefined;
107
- anonymous?: undefined;
108
- } | {
109
- stateMutability: string;
110
- type: string;
111
- name: string;
112
- inputs: {
113
- name: string;
114
- type: string;
115
- }[];
116
- outputs: {
117
- name: string;
118
- type: string;
119
- }[];
120
- anonymous?: undefined;
121
- })[];
122
- declare const ERC20ABI: ({
123
- inputs: {
124
- internalType: string;
125
- name: string;
126
- type: string;
127
- }[];
128
- stateMutability: string;
129
- type: string;
130
- anonymous?: undefined;
131
- name?: undefined;
132
- outputs?: undefined;
133
- } | {
134
- anonymous: boolean;
135
- inputs: {
136
- indexed: boolean;
137
- internalType: string;
138
- name: string;
139
- type: string;
140
- }[];
141
- name: string;
142
- type: string;
143
- stateMutability?: undefined;
144
- outputs?: undefined;
145
- } | {
146
- inputs: {
147
- internalType: string;
148
- name: string;
149
- type: string;
150
- }[];
151
- name: string;
152
- outputs: {
153
- internalType: string;
154
- name: string;
155
- type: string;
156
- }[];
157
- stateMutability: string;
158
- type: string;
159
- anonymous?: undefined;
160
- })[];
161
- declare const quoterV2ABI: ({
162
- inputs: {
163
- internalType: string;
164
- name: string;
165
- type: string;
166
- }[];
167
- name: string;
168
- outputs: {
169
- internalType: string;
170
- name: string;
171
- type: string;
172
- }[];
173
- stateMutability: string;
174
- type: string;
175
- } | {
176
- inputs: {
177
- components: {
178
- internalType: string;
179
- name: string;
180
- type: string;
181
- }[];
182
- internalType: string;
183
- name: string;
184
- type: string;
185
- }[];
186
- name: string;
187
- outputs: {
188
- internalType: string;
189
- name: string;
190
- type: string;
191
- }[];
192
- stateMutability: string;
193
- type: string;
194
- })[];
195
- declare const factoryABI: ({
196
- anonymous: boolean;
197
- inputs: {
198
- indexed: boolean;
199
- internalType: string;
200
- name: string;
201
- type: string;
202
- }[];
203
- name: string;
204
- type: string;
205
- outputs?: undefined;
206
- stateMutability?: undefined;
207
- } | {
208
- inputs: {
209
- internalType: string;
210
- name: string;
211
- type: string;
212
- }[];
213
- name: string;
214
- outputs: {
215
- internalType: string;
216
- name: string;
217
- type: string;
218
- }[];
219
- stateMutability: string;
220
- type: string;
221
- anonymous?: undefined;
222
- })[];
223
- declare const ISwapRouterABI: ({
224
- inputs: {
225
- internalType: string;
226
- name: string;
227
- type: string;
228
- }[];
229
- stateMutability: string;
230
- type: string;
231
- name?: undefined;
232
- outputs?: undefined;
233
- } | {
234
- inputs: {
235
- components: {
236
- internalType: string;
237
- name: string;
238
- type: string;
239
- }[];
240
- internalType: string;
241
- name: string;
242
- type: string;
243
- }[];
244
- name: string;
245
- outputs: {
246
- internalType: string;
247
- name: string;
248
- type: string;
249
- }[];
250
- stateMutability: string;
251
- type: string;
252
- } | {
253
- inputs: {
254
- internalType: string;
255
- name: string;
256
- type: string;
257
- }[];
258
- name: string;
259
- outputs: {
260
- internalType: string;
261
- name: string;
262
- type: string;
263
- }[];
264
- stateMutability: string;
265
- type: string;
266
- } | {
267
- stateMutability: string;
268
- type: string;
269
- inputs?: undefined;
270
- name?: undefined;
271
- outputs?: undefined;
272
- })[];
273
- declare const transactionProverABI: {
274
- inputs: {
275
- internalType: string;
276
- name: string;
277
- type: string;
278
- }[];
279
- name: string;
280
- outputs: {
281
- internalType: string;
282
- name: string;
283
- type: string;
284
- }[];
285
- stateMutability: string;
286
- type: string;
287
- }[];
288
- declare const BabABI: {
289
- inputs: {
290
- internalType: string;
291
- name: string;
292
- type: string;
293
- }[];
294
- name: string;
295
- outputs: {
296
- internalType: string;
297
- name: string;
298
- type: string;
299
- }[];
300
- stateMutability: string;
301
- type: string;
302
- }[];
303
- declare const GalxeABI: {
304
- inputs: {
305
- internalType: string;
306
- name: string;
307
- type: string;
308
- }[];
309
- name: string;
310
- outputs: {
311
- components: {
312
- internalType: string;
313
- name: string;
314
- type: string;
315
- }[];
316
- internalType: string;
317
- name: string;
318
- type: string;
319
- }[];
320
- stateMutability: string;
321
- type: string;
322
- }[];
323
- export { CurveWrappedMainPoolABI, CurveReadingWrapperABI, quoterV2ABI, factoryABI, AmTokenABI, BeefyVaultABI, ERC20ABI, USDCABI, daiABI, USDRABI, USDR3CRVABI, USDTABI, WETHABI, BUSDABI, sanctionsListABI, lidoStEthAbi, lidoStMaticAbi, lidoWithdrawalQueueERC721Abi, lidoWstEthAbi, poLidoNftAbi, lidoStakeManagerAbi, transactionProverABI, BabABI, GalxeABI, optimismGasPriceOracleAbi, ISwapRouterABI, };
@@ -1,77 +0,0 @@
1
- export declare const ERC20ABI: ({
2
- inputs: {
3
- internalType: string;
4
- name: string;
5
- type: string;
6
- }[];
7
- stateMutability: string;
8
- type: string;
9
- anonymous?: undefined;
10
- name?: undefined;
11
- outputs?: undefined;
12
- } | {
13
- anonymous: boolean;
14
- inputs: {
15
- indexed: boolean;
16
- internalType: string;
17
- name: string;
18
- type: string;
19
- }[];
20
- name: string;
21
- type: string;
22
- stateMutability?: undefined;
23
- outputs?: undefined;
24
- } | {
25
- inputs: {
26
- internalType: string;
27
- name: string;
28
- type: string;
29
- }[];
30
- name: string;
31
- outputs: {
32
- internalType: string;
33
- name: string;
34
- type: string;
35
- }[];
36
- stateMutability: string;
37
- type: string;
38
- anonymous?: undefined;
39
- })[];
40
- export declare const WETHABI: ({
41
- constant: boolean;
42
- inputs: {
43
- name: string;
44
- type: string;
45
- }[];
46
- name: string;
47
- outputs: {
48
- name: string;
49
- type: string;
50
- }[];
51
- payable: boolean;
52
- stateMutability: string;
53
- type: string;
54
- anonymous?: undefined;
55
- } | {
56
- payable: boolean;
57
- stateMutability: string;
58
- type: string;
59
- constant?: undefined;
60
- inputs?: undefined;
61
- name?: undefined;
62
- outputs?: undefined;
63
- anonymous?: undefined;
64
- } | {
65
- anonymous: boolean;
66
- inputs: {
67
- indexed: boolean;
68
- name: string;
69
- type: string;
70
- }[];
71
- name: string;
72
- type: string;
73
- constant?: undefined;
74
- outputs?: undefined;
75
- payable?: undefined;
76
- stateMutability?: undefined;
77
- })[];
@@ -1,14 +0,0 @@
1
- export * from './kyc';
2
- export * from './utils';
3
- export * from './web3';
4
- export * from './snarkjs';
5
- export * from './pre-transaction';
6
- export * from './protocols';
7
- export * from './staking';
8
- export * from './private-wallet';
9
- export * from './pre-transaction/getFlatFees';
10
- export * from './pre-transaction/outputUtxoProcessing';
11
- export * from './utils/requireEnv';
12
- export * from './utils/resolve-sync.utils';
13
- export * from './utils/getDataFromTransaction';
14
- export * from './web3/uniswapAPI';
File without changes
@@ -1,12 +0,0 @@
1
- import { IHinkal } from '../../data-structures/Hinkal/IHinkal';
2
- export declare const AUTHENTO: {
3
- verifyMessageText: string;
4
- domainName: string;
5
- type: {
6
- Message: {
7
- name: string;
8
- type: string;
9
- }[];
10
- };
11
- };
12
- export declare const authentoKycHandler: (hinkal: IHinkal, shortName: string, onboardURL: string) => Promise<void>;
@@ -1,3 +0,0 @@
1
- export * from '../web3/functionCalls/accessTokenCalls';
2
- export * from './passportHelper';
3
- export * from './openDefaultPassportWindow';
@@ -1 +0,0 @@
1
- export declare const openDefaultPassportWindow: (onboardURL: string, shortName: string, height?: number, width?: number) => void;
@@ -1,3 +0,0 @@
1
- import { Passports } from '../../types/kyc.types';
2
- import { IHinkal } from '../../data-structures/Hinkal/IHinkal';
3
- export declare const openPassportWindow: (passport: Passports, hinkal: IHinkal, height?: number, width?: number) => void;
@@ -1,4 +0,0 @@
1
- import { IHinkal } from '../../data-structures/Hinkal/IHinkal';
2
- export declare const zkMeKycHandler: (hinkal: IHinkal, shortName: string, onboardURL: string, params: {
3
- merchId: string;
4
- }) => Promise<void>;
@@ -1,12 +0,0 @@
1
- import { ERC20Token, ExternalActionId, ValidExternalAction } from '../../types';
2
- /**
3
- * Infer INTERACTION type from given @param externalActionId and @param action
4
- * and return `flatFee` along with `feeUnit` - the token corespond with the fee,
5
- * `priceOfTransactionInToken`, and `priceOfTransactionInUSD`
6
- */
7
- export declare const getFlatFees: (chainId: number, erc20Addresses: string[], externalActionId: ExternalActionId, amountChanges: bigint[], action?: ValidExternalAction, gasTokenAddress?: string) => Promise<{
8
- flatFees: bigint[];
9
- priceOfTransactionInToken: bigint | undefined;
10
- feeUnit: ERC20Token | undefined;
11
- priceOfTransactionInUSD: number | undefined;
12
- }>;
@@ -1,5 +0,0 @@
1
- export * from './interaction-to-action';
2
- export * from './outputUtxoProcessing';
3
- export * from './process-gas-estimates';
4
- export * from './processAmountChanges';
5
- export * from './getFlatFees';
@@ -1,2 +0,0 @@
1
- import { ExternalActionId, INTERACTION, ValidExternalAction } from '../../types';
2
- export declare const getInteractionFromAction: (externalActionId: ExternalActionId, action?: ValidExternalAction) => INTERACTION;
@@ -1,5 +0,0 @@
1
- import { UserKeys } from '../../data-structures/crypto-keys/keys';
2
- import { Utxo } from '../../data-structures/utxo/Utxo';
3
- export declare const outputUtxoProcessing: (userKeys: UserKeys, inputUtxos: Utxo[], amountChange: bigint, timeStamp?: string, tokenId?: number) => {
4
- outputUtxos: Utxo[];
5
- };
@@ -1,5 +0,0 @@
1
- import { ERC20Token, ExternalActionId, ValidExternalAction } from '../../types';
2
- export declare const processGasEstimates: (chainId: number, token: ERC20Token, externalActionId: ExternalActionId, action: ValidExternalAction | undefined, erc20TokenAddressLength: number, gasAmount?: number) => Promise<{
3
- priceOfTransactionInUSD: number | undefined;
4
- priceOfTransactionInToken: bigint | undefined;
5
- }>;
@@ -1,12 +0,0 @@
1
- import { ERC20Token, ExternalActionId, ValidExternalAction } from '../../types';
2
- export interface ProcessAmountChangesParam {
3
- erc20Addresses: string[];
4
- amountChanges: bigint[];
5
- flatFees: bigint[];
6
- feeUnit?: ERC20Token;
7
- externalActionId: ExternalActionId;
8
- action?: ValidExternalAction;
9
- /** if provided, gas will be estimated using this token */
10
- gasTokenAddress?: string;
11
- }
12
- export declare const processAmountChanges: ({ erc20Addresses, amountChanges, flatFees, feeUnit, externalActionId, action, gasTokenAddress, }: ProcessAmountChangesParam) => bigint[];
@@ -1,5 +0,0 @@
1
- import { Contract, ContractTransaction } from 'ethers';
2
- export declare const emporiumOp: <ContractInstance extends Contract, ContractFunctions extends ContractInstance["functions"], ExactFunction extends { [K in keyof ContractFunctions]: ReturnType<ContractFunctions[K]> extends Promise<ContractTransaction> ? K : never; }[keyof ContractFunctions], FunctionArguments extends Parameters<ContractFunctions[ExactFunction]>>(contract: ContractInstance | string, func?: ExactFunction, args?: FunctionArguments extends [
3
- ] ? [
4
- ] : FunctionArguments, invokeWallet?: boolean, value?: bigint) => string;
5
- export declare const encodeEmporiumMetadata: (ops: string[], walletSalt?: string) => string;
@@ -1,2 +0,0 @@
1
- export * from './emporium.helpers';
2
- export * from './opProducer';
@@ -1,5 +0,0 @@
1
- export declare enum OpType {
2
- Erc20Token = 0,
3
- Uniswap = 1
4
- }
5
- export declare const produceOp: (opType: OpType, contractAddress: string, func?: string, args?: any[], invokeWallet?: boolean, value?: bigint) => string;
@@ -1 +0,0 @@
1
- export declare const getCVX: (chainId: number | undefined) => "0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B" | "0x4257ea7637c355f81616050cbb6a9b709fd72683" | "0xb952a807345991bd529fdded05009f5e80fe8f45" | "0x81ab7e0d570b01411fcc4afd3d50ec8c241cb74b";
@@ -1 +0,0 @@
1
- export declare const getCRV: (chainId: number | undefined) => "0xD533a949740bb3306d119CC777fa900bA034cd52" | "0x0994206dfe8de6ec6920ff4d779b0d950605fb53" | "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415" | "0x172370d5Cd63279eFa6d502DAB29171933a610AF" | "0x11cdb42b0eb46d95f990bedd4695a6e3fa034978" | "0x47536F17F4fF30e64A96a7555826b8f9e66ec468";
@@ -1,3 +0,0 @@
1
- export * from './curve.protocols';
2
- export * from './convex.protocols';
3
- export * from './pendle.helpers';
@@ -1,8 +0,0 @@
1
- import { ERC20Token, PendleAsset, PendleAssetType, PendleMarket, PendleSwapType, ValidExternalAction } from '../../types';
2
- export declare function erc20TokenFromPendleAsset(asset: PendleAsset | undefined): ERC20Token | undefined;
3
- /** Extract a specific Pendle Asset section from a market */
4
- export declare function getAssetTypeFromPendleMarket(market: PendleMarket | undefined, selectedMarketAssetType: PendleAssetType | undefined): PendleAsset | undefined;
5
- export declare const determinePendleSwapType: (market: PendleMarket, inSwapToken: ERC20Token, outSwapToken: ERC20Token) => PendleSwapType | undefined;
6
- export declare const determinePendleSwapTypeApiRoute: (swapType: PendleSwapType | undefined) => string;
7
- /** determines which token (by index in a list of tokens) should be used for calcuating gas and */
8
- export declare const getTokenIndexForPendleFlatFee: (action: ValidExternalAction | undefined, amountChanges: bigint[], erc20Addresses: string[], flatFeeTokenAddressSelectedByUser?: string | undefined) => number;
@@ -1,22 +0,0 @@
1
- import { Utxo } from '../../data-structures/utxo/Utxo';
2
- import { UserKeys } from '../../data-structures/crypto-keys/keys';
3
- import { MerkleTree } from '../../data-structures/merkle-tree';
4
- import { CircomDataJsonType, CircomDataType, HookDataType, StealthAddressStructure } from '../../types/circom-data.types';
5
- import { ExternalActionId } from '../../types/external-action.types';
6
- export declare const buildInNullifiers: (inputUtxos: Utxo[][], onChainCreation: boolean[]) => string[][];
7
- export declare const buildOutCommitments: (outputUtxos: Utxo[][], onChainCreation: boolean[]) => string[][];
8
- export declare const calcAmountChanges: (inputUtxos: Utxo[][], outputUtxos: Utxo[][], forCircomData?: boolean) => bigint[];
9
- export declare const calcEncryptedOutputs: (outputUtxos: Utxo[][], forceZeroAmount: boolean) => string[][];
10
- export declare const calcCommitmentsSiblingAndSides: (inputUtxos: Utxo[][], merkleTree: MerkleTree<bigint>) => {
11
- inCommitmentSiblings: string[][][];
12
- inCommitmentSiblingSides: string[][][];
13
- };
14
- export declare const calcAccessTokenSiblingsAndSides: (userKeys: UserKeys, merkleTreeAccessToken: MerkleTree<bigint>) => {
15
- accessTokenSiblings: string[];
16
- accessTokenSiblingSides: string[];
17
- };
18
- export declare const serializeCircomData: (circomData: CircomDataType) => CircomDataJsonType;
19
- export declare const deserializeCircomData: (circomData: CircomDataJsonType) => CircomDataJsonType;
20
- export declare const createCallDataHash: (publicSignalCount: number, relay: string, externalAddress: string | undefined, externalActionId: bigint | ExternalActionId, externalActionMetadata: string, encryptedOutputs: string[][], flatFees: bigint[], hookData: HookDataType | undefined) => bigint;
21
- export declare const calcPublicSignalCount: (verifierName: string, erc20TokenAddresses: string[], amountChanges: bigint[], inNullifiers: string[][], outCommitments: string[][], tokenIdsPositive: number) => number;
22
- export declare const calcStealthAddressStructure: (extraRandomization: bigint, privateKey: string) => StealthAddressStructure;