@sabaaa1/common 0.1.7 → 0.1.14

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 (674) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +16 -12
  3. package/API/API.mjs +73 -69
  4. package/API/accessCodeCalls.cjs +1 -0
  5. package/API/accessCodeCalls.d.ts +23 -0
  6. package/API/accessCodeCalls.mjs +23 -0
  7. package/API/admin-calls.cjs +1 -1
  8. package/API/admin-calls.mjs +5 -7
  9. package/API/ai-calls.cjs +1 -1
  10. package/API/ai-calls.mjs +11 -10
  11. package/API/brotherhoodCalls.cjs +1 -1
  12. package/API/brotherhoodCalls.mjs +43 -69
  13. package/API/callLifiAPI.cjs +1 -1
  14. package/API/callLifiAPI.mjs +8 -7
  15. package/API/callOdosAPI.cjs +1 -1
  16. package/API/callOdosAPI.mjs +16 -16
  17. package/API/callOkxAPI.cjs +1 -0
  18. package/API/callOkxAPI.d.ts +10 -0
  19. package/API/callOkxAPI.mjs +13 -0
  20. package/API/callOneInchAPI.cjs +1 -1
  21. package/API/callOneInchAPI.mjs +8 -7
  22. package/API/callRelayer.cjs +1 -1
  23. package/API/callRelayer.d.ts +11 -0
  24. package/API/callRelayer.mjs +15 -7
  25. package/API/checkRisk.cjs +1 -1
  26. package/API/checkRisk.mjs +5 -4
  27. package/API/duneAPI.cjs +1 -1
  28. package/API/duneAPI.mjs +2 -3
  29. package/API/enclaveCalls.cjs +1 -1
  30. package/API/enclaveCalls.mjs +9 -11
  31. package/API/fetchCommitmentsCache.cjs +1 -1
  32. package/API/fetchCommitmentsCache.d.ts +2 -2
  33. package/API/fetchCommitmentsCache.mjs +13 -10
  34. package/API/generate-trading-points.cjs +1 -1
  35. package/API/generate-trading-points.mjs +34 -39
  36. package/API/get-token-data.cjs +1 -1
  37. package/API/get-token-data.mjs +5 -4
  38. package/API/getBridgeProtocols.cjs +1 -1
  39. package/API/getBridgeProtocols.mjs +4 -3
  40. package/API/getGasEstimates.cjs +1 -1
  41. package/API/getGasEstimates.d.ts +2 -1
  42. package/API/getGasEstimates.mjs +14 -16
  43. package/API/getLifiStatus.cjs +1 -1
  44. package/API/getLifiStatus.mjs +11 -10
  45. package/API/getRelayerURL.cjs +1 -1
  46. package/API/getRelayerURL.mjs +4 -4
  47. package/API/getServerURL.cjs +1 -1
  48. package/API/getServerURL.mjs +42 -36
  49. package/API/getTokenPrice.cjs +1 -1
  50. package/API/getTokenPrice.d.ts +0 -11
  51. package/API/getTokenPrice.mjs +8 -23
  52. package/API/getWebsiteURL.cjs +1 -1
  53. package/API/getWebsiteURL.d.ts +1 -1
  54. package/API/getWebsiteURL.mjs +6 -7
  55. package/API/index.d.ts +2 -1
  56. package/API/is-tx-stateless.cjs +1 -1
  57. package/API/is-tx-stateless.mjs +17 -22
  58. package/API/kycCalls.cjs +1 -1
  59. package/API/kycCalls.d.ts +2 -2
  60. package/API/kycCalls.mjs +31 -30
  61. package/API/leaderboardCalls.cjs +1 -1
  62. package/API/leaderboardCalls.mjs +11 -16
  63. package/API/proxyAccountsCalls.cjs +1 -1
  64. package/API/proxyAccountsCalls.mjs +19 -18
  65. package/API/referralsCalls.cjs +1 -1
  66. package/API/referralsCalls.mjs +16 -24
  67. package/API/relayCalls.cjs +1 -1
  68. package/API/relayCalls.mjs +6 -8
  69. package/API/resolve-sns.cjs +1 -0
  70. package/API/resolve-sns.d.ts +1 -0
  71. package/API/resolve-sns.mjs +12 -0
  72. package/API/restoreSnapshots.cjs +1 -1
  73. package/API/restoreSnapshots.mjs +5 -5
  74. package/API/rewardsUserCalls.cjs +1 -1
  75. package/API/rewardsUserCalls.mjs +37 -54
  76. package/API/seedless-calls.cjs +1 -0
  77. package/API/seedless-calls.d.ts +53 -0
  78. package/API/seedless-calls.mjs +12 -0
  79. package/API/send-telegram-callback.cjs +1 -1
  80. package/API/send-telegram-callback.mjs +9 -11
  81. package/API/simulate-batch-tx.cjs +1 -1
  82. package/API/simulate-batch-tx.mjs +11 -13
  83. package/API/solana-calls.cjs +1 -0
  84. package/API/solana-calls.d.ts +34 -0
  85. package/API/solana-calls.mjs +19 -0
  86. package/API/tenderly.api.cjs +1 -1
  87. package/API/tenderly.api.mjs +48 -59
  88. package/API/token-calls.cjs +1 -1
  89. package/API/token-calls.mjs +11 -13
  90. package/API/weeklyAnalyticCalls.cjs +1 -1
  91. package/API/weeklyAnalyticCalls.mjs +9 -14
  92. package/README.md +164 -0
  93. package/_virtual/_commonjsHelpers.cjs +1 -0
  94. package/_virtual/_commonjsHelpers.mjs +30 -0
  95. package/_virtual/bn.cjs +1 -0
  96. package/_virtual/bn.mjs +4 -0
  97. package/_virtual/bn2.cjs +1 -0
  98. package/_virtual/bn2.mjs +4 -0
  99. package/_virtual/common.cjs +1 -0
  100. package/_virtual/common.mjs +4 -0
  101. package/_virtual/common2.cjs +1 -0
  102. package/_virtual/common2.mjs +4 -0
  103. package/_virtual/hash.cjs +1 -0
  104. package/_virtual/hash.mjs +4 -0
  105. package/_virtual/index.cjs +1 -0
  106. package/_virtual/index.mjs +6 -0
  107. package/_virtual/index10.cjs +1 -0
  108. package/_virtual/index10.mjs +6 -0
  109. package/_virtual/index11.cjs +1 -0
  110. package/_virtual/index11.mjs +6 -0
  111. package/_virtual/index12.cjs +1 -0
  112. package/_virtual/index12.mjs +6 -0
  113. package/_virtual/index13.cjs +1 -0
  114. package/_virtual/index13.mjs +6 -0
  115. package/_virtual/index14.cjs +1 -0
  116. package/_virtual/index14.mjs +6 -0
  117. package/_virtual/index15.cjs +1 -0
  118. package/_virtual/index15.mjs +6 -0
  119. package/_virtual/index16.cjs +1 -0
  120. package/_virtual/index16.mjs +6 -0
  121. package/_virtual/index17.cjs +1 -0
  122. package/_virtual/index17.mjs +6 -0
  123. package/_virtual/index18.cjs +1 -0
  124. package/_virtual/index18.mjs +6 -0
  125. package/_virtual/index19.cjs +1 -0
  126. package/_virtual/index19.mjs +6 -0
  127. package/_virtual/index2.cjs +1 -0
  128. package/_virtual/index2.mjs +6 -0
  129. package/_virtual/index20.cjs +1 -0
  130. package/_virtual/index20.mjs +6 -0
  131. package/_virtual/index21.cjs +1 -0
  132. package/_virtual/index21.mjs +6 -0
  133. package/_virtual/index22.cjs +1 -0
  134. package/_virtual/index22.mjs +4 -0
  135. package/_virtual/index3.cjs +1 -0
  136. package/_virtual/index3.mjs +6 -0
  137. package/_virtual/index4.cjs +1 -0
  138. package/_virtual/index4.mjs +6 -0
  139. package/_virtual/index5.cjs +1 -0
  140. package/_virtual/index5.mjs +6 -0
  141. package/_virtual/index6.cjs +1 -0
  142. package/_virtual/index6.mjs +6 -0
  143. package/_virtual/index7.cjs +1 -0
  144. package/_virtual/index7.mjs +6 -0
  145. package/_virtual/index8.cjs +1 -0
  146. package/_virtual/index8.mjs +6 -0
  147. package/_virtual/index9.cjs +1 -0
  148. package/_virtual/index9.mjs +6 -0
  149. package/_virtual/inherits_browser.cjs +1 -0
  150. package/_virtual/inherits_browser.mjs +4 -0
  151. package/_virtual/ripemd.cjs +1 -0
  152. package/_virtual/ripemd.mjs +4 -0
  153. package/_virtual/scrypt.cjs +1 -0
  154. package/_virtual/scrypt.mjs +4 -0
  155. package/_virtual/sha.cjs +1 -0
  156. package/_virtual/sha.mjs +4 -0
  157. package/_virtual/sha3.cjs +1 -0
  158. package/_virtual/sha3.mjs +4 -0
  159. package/_virtual/utils.cjs +1 -0
  160. package/_virtual/utils.mjs +4 -0
  161. package/_virtual/utils2.cjs +1 -0
  162. package/_virtual/utils2.mjs +4 -0
  163. package/constants/backend.constants.cjs +1 -1
  164. package/constants/backend.constants.d.ts +2 -1
  165. package/constants/backend.constants.mjs +5 -7
  166. package/constants/chains.constants.cjs +1 -1
  167. package/constants/chains.constants.d.ts +5 -0
  168. package/constants/chains.constants.mjs +63 -35
  169. package/constants/coingecko.constants.cjs +1 -1
  170. package/constants/coingecko.constants.d.ts +1 -1
  171. package/constants/coingecko.constants.mjs +18 -11
  172. package/constants/contracts.constants.cjs +1 -1
  173. package/constants/contracts.constants.mjs +19 -15
  174. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  175. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +1218 -8
  176. package/constants/deploy-data/deploy-data-arcTestnet.json.cjs +1 -1
  177. package/constants/deploy-data/deploy-data-arcTestnet.json.mjs +1214 -4
  178. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  179. package/constants/deploy-data/deploy-data-base.json.mjs +1218 -8
  180. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  181. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +1213 -3
  182. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  183. package/constants/deploy-data/deploy-data-optimism.json.mjs +1218 -8
  184. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  185. package/constants/deploy-data/deploy-data-polygon.json.mjs +1218 -8
  186. package/constants/deploy-data/deploy-data-solana.json.cjs +1 -0
  187. package/constants/deploy-data/deploy-data-solana.json.mjs +6111 -0
  188. package/constants/deploy-data/index.d.ts +2 -1
  189. package/constants/index.d.ts +1 -1
  190. package/constants/mediaUrls.constants.cjs +1 -1
  191. package/constants/mediaUrls.constants.d.ts +9 -0
  192. package/constants/mediaUrls.constants.mjs +13 -4
  193. package/constants/okx.constants.cjs +1 -0
  194. package/constants/okx.constants.d.ts +2 -0
  195. package/constants/okx.constants.mjs +5 -0
  196. package/constants/protocol.constants.cjs +1 -1
  197. package/constants/protocol.constants.d.ts +12 -1
  198. package/constants/protocol.constants.mjs +37 -29
  199. package/constants/save-depths.cjs +1 -1
  200. package/constants/save-depths.mjs +4 -1
  201. package/constants/server.constants.cjs +1 -1
  202. package/constants/server.constants.d.ts +23 -10
  203. package/constants/server.constants.mjs +102 -89
  204. package/constants/token-data/ERC20Registry.cjs +1 -1
  205. package/constants/token-data/ERC20Registry.mjs +49 -35
  206. package/constants/token-data/index.cjs +1 -1
  207. package/constants/token-data/index.d.ts +17 -1
  208. package/constants/token-data/index.mjs +29 -25
  209. package/constants/token-data/solanaLocalnetRegistry.json.cjs +1 -0
  210. package/constants/token-data/solanaLocalnetRegistry.json.mjs +24 -0
  211. package/constants/token-data/solanaMainnetRegistry.json.cjs +1 -0
  212. package/constants/token-data/solanaMainnetRegistry.json.mjs +560 -0
  213. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.cjs +1 -1
  214. package/data-structures/ApprovalDBs/EventsPublicApprovalsDB.mjs +41 -41
  215. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  216. package/data-structures/Hinkal/Hinkal.d.ts +19 -10
  217. package/data-structures/Hinkal/Hinkal.mjs +290 -125
  218. package/data-structures/Hinkal/IHinkal.d.ts +18 -11
  219. package/data-structures/Hinkal/handleAutoDepositBack.cjs +1 -1
  220. package/data-structures/Hinkal/handleAutoDepositBack.mjs +36 -32
  221. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.cjs +1 -1
  222. package/data-structures/Hinkal/hinkalActionFundApproveAndTransact.mjs +24 -23
  223. package/data-structures/Hinkal/hinkalActionReceive.cjs +1 -1
  224. package/data-structures/Hinkal/hinkalActionReceive.mjs +13 -12
  225. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.cjs +1 -0
  226. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.d.ts +3 -0
  227. package/data-structures/Hinkal/hinkalCheckSolanaTokenRegistry.mjs +28 -0
  228. package/data-structures/Hinkal/hinkalCheckTokenRegistry.cjs +1 -1
  229. package/data-structures/Hinkal/hinkalCheckTokenRegistry.mjs +11 -8
  230. package/data-structures/Hinkal/hinkalDepositAndWithdraw.cjs +1 -0
  231. package/data-structures/Hinkal/hinkalDepositAndWithdraw.d.ts +4 -0
  232. package/data-structures/Hinkal/hinkalDepositAndWithdraw.mjs +167 -0
  233. package/data-structures/Hinkal/hinkalGetRecipientInfo.cjs +1 -1
  234. package/data-structures/Hinkal/hinkalGetRecipientInfo.d.ts +1 -1
  235. package/data-structures/Hinkal/hinkalGetRecipientInfo.mjs +4 -4
  236. package/data-structures/Hinkal/hinkalMultiSend.cjs +1 -1
  237. package/data-structures/Hinkal/hinkalMultiSend.mjs +6 -6
  238. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  239. package/data-structures/Hinkal/hinkalPrivateWallet.d.ts +2 -2
  240. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +109 -93
  241. package/data-structures/Hinkal/hinkalProxySwap.cjs +1 -1
  242. package/data-structures/Hinkal/hinkalProxySwap.mjs +23 -22
  243. package/data-structures/Hinkal/hinkalProxyToPrivate.cjs +1 -0
  244. package/data-structures/Hinkal/hinkalProxyToPrivate.d.ts +6 -0
  245. package/data-structures/Hinkal/hinkalProxyToPrivate.mjs +45 -0
  246. package/data-structures/Hinkal/hinkalSignSubAccount.cjs +1 -1
  247. package/data-structures/Hinkal/hinkalSignSubAccount.mjs +11 -9
  248. package/data-structures/Hinkal/hinkalSolanaDeposit.cjs +1 -0
  249. package/data-structures/Hinkal/hinkalSolanaDeposit.d.ts +4 -0
  250. package/data-structures/Hinkal/hinkalSolanaDeposit.mjs +133 -0
  251. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.cjs +1 -0
  252. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.d.ts +3 -0
  253. package/data-structures/Hinkal/hinkalSolanaDepositAndWithdraw.mjs +216 -0
  254. package/data-structures/Hinkal/hinkalSolanaProxySend.cjs +1 -0
  255. package/data-structures/Hinkal/hinkalSolanaProxySend.d.ts +6 -0
  256. package/data-structures/Hinkal/hinkalSolanaProxySend.mjs +55 -0
  257. package/data-structures/Hinkal/hinkalSolanaProxyShield.cjs +1 -0
  258. package/data-structures/Hinkal/hinkalSolanaProxyShield.d.ts +6 -0
  259. package/data-structures/Hinkal/hinkalSolanaProxyShield.mjs +99 -0
  260. package/data-structures/Hinkal/hinkalSolanaProxySwap.cjs +1 -0
  261. package/data-structures/Hinkal/hinkalSolanaProxySwap.d.ts +5 -0
  262. package/data-structures/Hinkal/hinkalSolanaProxySwap.mjs +96 -0
  263. package/data-structures/Hinkal/hinkalSolanaSwap.cjs +1 -0
  264. package/data-structures/Hinkal/hinkalSolanaSwap.d.ts +4 -0
  265. package/data-structures/Hinkal/hinkalSolanaSwap.mjs +120 -0
  266. package/data-structures/Hinkal/hinkalSolanaTransfer.cjs +1 -0
  267. package/data-structures/Hinkal/hinkalSolanaTransfer.d.ts +3 -0
  268. package/data-structures/Hinkal/hinkalSolanaTransfer.mjs +90 -0
  269. package/data-structures/Hinkal/hinkalSolanaWithdraw.cjs +1 -0
  270. package/data-structures/Hinkal/hinkalSolanaWithdraw.d.ts +3 -0
  271. package/data-structures/Hinkal/hinkalSolanaWithdraw.mjs +106 -0
  272. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  273. package/data-structures/Hinkal/hinkalSwap.mjs +33 -27
  274. package/data-structures/Hinkal/hinkalTransfer.cjs +1 -1
  275. package/data-structures/Hinkal/hinkalTransfer.mjs +20 -14
  276. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  277. package/data-structures/Hinkal/hinkalWithdraw.mjs +15 -9
  278. package/data-structures/Hinkal/index.d.ts +4 -0
  279. package/data-structures/Hinkal/resetMerkleTrees.cjs +1 -1
  280. package/data-structures/Hinkal/resetMerkleTrees.mjs +56 -23
  281. package/data-structures/IndexedDB/activity-db.cjs +1 -1
  282. package/data-structures/IndexedDB/activity-db.d.ts +0 -1
  283. package/data-structures/IndexedDB/activity-db.mjs +86 -86
  284. package/data-structures/IndexedDB/balances-db.cjs +1 -1
  285. package/data-structures/IndexedDB/balances-db.mjs +15 -12
  286. package/data-structures/IndexedDB/contact-db.cjs +1 -1
  287. package/data-structures/IndexedDB/contact-db.mjs +29 -26
  288. package/data-structures/IndexedDB/signatures-db.cjs +1 -1
  289. package/data-structures/IndexedDB/signatures-db.mjs +14 -10
  290. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.cjs +1 -1
  291. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.d.ts +2 -2
  292. package/data-structures/MultiThreadedUtxoUtils/MultiThreadedUtxoUtils.mjs +32 -31
  293. package/data-structures/TokenDBs/AlchemyPublicTokensDB.cjs +1 -1
  294. package/data-structures/TokenDBs/AlchemyPublicTokensDB.d.ts +6 -1
  295. package/data-structures/TokenDBs/AlchemyPublicTokensDB.mjs +154 -79
  296. package/data-structures/TokenDBs/EventsPublicTokensDB.cjs +1 -1
  297. package/data-structures/TokenDBs/EventsPublicTokensDB.mjs +24 -21
  298. package/data-structures/TokenDBs/PrivateTokensDB.cjs +1 -1
  299. package/data-structures/TokenDBs/PrivateTokensDB.mjs +39 -34
  300. package/data-structures/crypto-keys/decodeUTXO.cjs +1 -1
  301. package/data-structures/crypto-keys/decodeUTXO.d.ts +15 -3
  302. package/data-structures/crypto-keys/decodeUTXO.mjs +84 -26
  303. package/data-structures/crypto-keys/encryptDecryptUtxo.cjs +1 -1
  304. package/data-structures/crypto-keys/encryptDecryptUtxo.mjs +36 -30
  305. package/data-structures/crypto-keys/keys.cjs +1 -1
  306. package/data-structures/crypto-keys/keys.d.ts +19 -5
  307. package/data-structures/crypto-keys/keys.mjs +117 -60
  308. package/data-structures/event-service/evm/AbstractAccessTokenSnapshotService.cjs +1 -0
  309. package/data-structures/event-service/{AbstractAccessTokenSnapshotService.d.ts → evm/AbstractAccessTokenSnapshotService.d.ts} +2 -2
  310. package/data-structures/event-service/{AbstractAccessTokenSnapshotService.mjs → evm/AbstractAccessTokenSnapshotService.mjs} +6 -6
  311. package/data-structures/event-service/evm/AbstractApprovalsSnapshotService.cjs +1 -0
  312. package/data-structures/event-service/{AbstractApprovalsSnapshotService.d.ts → evm/AbstractApprovalsSnapshotService.d.ts} +2 -2
  313. package/data-structures/event-service/{AbstractApprovalsSnapshotService.mjs → evm/AbstractApprovalsSnapshotService.mjs} +2 -2
  314. package/data-structures/event-service/evm/AbstractCommitmentsSnapshotService.cjs +1 -0
  315. package/data-structures/event-service/{AbstractCommitmentsSnapshotService.d.ts → evm/AbstractCommitmentsSnapshotService.d.ts} +3 -3
  316. package/data-structures/event-service/{AbstractCommitmentsSnapshotService.mjs → evm/AbstractCommitmentsSnapshotService.mjs} +24 -21
  317. package/data-structures/event-service/evm/AbstractEventService.cjs +1 -0
  318. package/data-structures/event-service/{AbstractEventService.d.ts → evm/AbstractEventService.d.ts} +1 -1
  319. package/data-structures/event-service/evm/AbstractEventService.mjs +37 -0
  320. package/data-structures/event-service/{AbstractNullifierSnapshotService.d.ts → evm/AbstractNullifierSnapshotService.d.ts} +1 -1
  321. package/data-structures/event-service/evm/AbstractSnapshotService.cjs +1 -0
  322. package/data-structures/event-service/{AbstractSnapshotService.mjs → evm/AbstractSnapshotService.mjs} +1 -1
  323. package/data-structures/event-service/evm/BlockchainEventEmitter.cjs +1 -0
  324. package/data-structures/event-service/{BlockchainEventEmitter.d.ts → evm/BlockchainEventEmitter.d.ts} +2 -1
  325. package/data-structures/event-service/evm/BlockchainEventEmitter.mjs +89 -0
  326. package/data-structures/event-service/index.d.ts +13 -7
  327. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.cjs +1 -0
  328. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.d.ts +34 -0
  329. package/data-structures/event-service/solana/AbstractSolanaAccessTokenSnapshotService.mjs +87 -0
  330. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.cjs +1 -0
  331. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.d.ts +29 -0
  332. package/data-structures/event-service/solana/AbstractSolanaCommitmentsSnapshotService.mjs +96 -0
  333. package/data-structures/event-service/solana/AbstractSolanaEventService.cjs +1 -0
  334. package/data-structures/event-service/solana/AbstractSolanaEventService.d.ts +22 -0
  335. package/data-structures/event-service/solana/AbstractSolanaEventService.mjs +33 -0
  336. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.cjs +1 -0
  337. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.d.ts +21 -0
  338. package/data-structures/event-service/solana/AbstractSolanaNullifierSnapshotService.mjs +49 -0
  339. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.cjs +1 -0
  340. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.d.ts +22 -0
  341. package/data-structures/event-service/solana/AbstractSolanaSnapshotService.mjs +33 -0
  342. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.cjs +1 -0
  343. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.d.ts +39 -0
  344. package/data-structures/event-service/solana/SolanaBlockchainEventEmitter.mjs +153 -0
  345. package/data-structures/http/BasicHttpClient.cjs +1 -0
  346. package/data-structures/http/BasicHttpClient.d.ts +11 -0
  347. package/data-structures/http/BasicHttpClient.mjs +25 -0
  348. package/data-structures/http/HttpClient.cjs +1 -0
  349. package/data-structures/http/HttpClient.d.ts +10 -0
  350. package/data-structures/http/HttpClient.mjs +15 -0
  351. package/data-structures/http/index.d.ts +2 -0
  352. package/data-structures/index.d.ts +1 -0
  353. package/data-structures/provider-adapter/IProviderAdapter.d.ts +1 -3
  354. package/data-structures/snapshot/SnapshotFetcherService.d.ts +1 -1
  355. package/data-structures/snapshot/evm-snapshots/ClientAccessTokenSnapshotService.cjs +1 -0
  356. package/data-structures/snapshot/{ClientAccessTokenSnapshotService.d.ts → evm-snapshots/ClientAccessTokenSnapshotService.d.ts} +2 -2
  357. package/data-structures/snapshot/{ClientAccessTokenSnapshotService.mjs → evm-snapshots/ClientAccessTokenSnapshotService.mjs} +13 -9
  358. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.cjs +1 -0
  359. package/data-structures/snapshot/{ClientApprovalsSnapshotService.d.ts → evm-snapshots/ClientApprovalsSnapshotService.d.ts} +2 -3
  360. package/data-structures/snapshot/evm-snapshots/ClientApprovalsSnapshotService.mjs +43 -0
  361. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.cjs +1 -0
  362. package/data-structures/snapshot/{ClientCommitmentsSnapshotService.d.ts → evm-snapshots/ClientCommitmentsSnapshotService.d.ts} +2 -2
  363. package/data-structures/snapshot/evm-snapshots/ClientCommitmentsSnapshotService.mjs +35 -0
  364. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.cjs +1 -0
  365. package/data-structures/snapshot/{ClientNullifierSnapshotService.d.ts → evm-snapshots/ClientNullifierSnapshotService.d.ts} +2 -2
  366. package/data-structures/snapshot/evm-snapshots/ClientNullifierSnapshotService.mjs +34 -0
  367. package/data-structures/snapshot/index.d.ts +7 -0
  368. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.cjs +1 -0
  369. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.d.ts +8 -0
  370. package/data-structures/snapshot/solana-snapshots/ClientSolanaAccessTokenSnapshotService.mjs +42 -0
  371. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.cjs +1 -0
  372. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.d.ts +8 -0
  373. package/data-structures/snapshot/solana-snapshots/ClientSolanaCommitmentsSnapshotService.mjs +34 -0
  374. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.cjs +1 -0
  375. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.d.ts +8 -0
  376. package/data-structures/snapshot/solana-snapshots/ClientSolanaNullifierSnapshotService.mjs +34 -0
  377. package/data-structures/token-price-fetcher/TokenChecker.cjs +1 -1
  378. package/data-structures/token-price-fetcher/TokenChecker.mjs +5 -4
  379. package/data-structures/utxo/Utxo.cjs +1 -1
  380. package/data-structures/utxo/Utxo.d.ts +6 -1
  381. package/data-structures/utxo/Utxo.mjs +37 -24
  382. package/error-handling/error-codes.constants.cjs +1 -1
  383. package/error-handling/error-codes.constants.d.ts +2 -0
  384. package/error-handling/error-codes.constants.mjs +4 -2
  385. package/functions/connectors.types.d.ts +14 -0
  386. package/functions/index.d.ts +1 -0
  387. package/functions/pre-transaction/addressTableLookup.cjs +1 -0
  388. package/functions/pre-transaction/addressTableLookup.d.ts +4 -0
  389. package/functions/pre-transaction/addressTableLookup.mjs +44 -0
  390. package/functions/pre-transaction/constructAdminData.cjs +1 -1
  391. package/functions/pre-transaction/constructAdminData.d.ts +2 -1
  392. package/functions/pre-transaction/constructAdminData.mjs +30 -12
  393. package/functions/pre-transaction/convert-okx-instructions.cjs +1 -0
  394. package/functions/pre-transaction/convert-okx-instructions.d.ts +12 -0
  395. package/functions/pre-transaction/convert-okx-instructions.mjs +30 -0
  396. package/functions/pre-transaction/getSolanaCalldataHash.cjs +1 -0
  397. package/functions/pre-transaction/getSolanaCalldataHash.d.ts +4 -0
  398. package/functions/pre-transaction/getSolanaCalldataHash.mjs +36 -0
  399. package/functions/pre-transaction/getVolatileTransferAmount.cjs +1 -1
  400. package/functions/pre-transaction/getVolatileTransferAmount.mjs +11 -7
  401. package/functions/pre-transaction/index.d.ts +10 -0
  402. package/functions/pre-transaction/initTokenLimitIfNeeded.cjs +1 -0
  403. package/functions/pre-transaction/initTokenLimitIfNeeded.d.ts +3 -0
  404. package/functions/pre-transaction/initTokenLimitIfNeeded.mjs +20 -0
  405. package/functions/pre-transaction/outputUtxoProcessing.cjs +1 -1
  406. package/functions/pre-transaction/outputUtxoProcessing.mjs +14 -13
  407. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  408. package/functions/pre-transaction/process-gas-estimates.d.ts +2 -2
  409. package/functions/pre-transaction/process-gas-estimates.mjs +13 -12
  410. package/functions/pre-transaction/recipientUtxoProcessing.cjs +1 -0
  411. package/functions/pre-transaction/recipientUtxoProcessing.d.ts +3 -0
  412. package/functions/pre-transaction/recipientUtxoProcessing.mjs +36 -0
  413. package/functions/pre-transaction/sendInitNullifiersTransaction.cjs +1 -0
  414. package/functions/pre-transaction/sendInitNullifiersTransaction.d.ts +11 -0
  415. package/functions/pre-transaction/sendInitNullifiersTransaction.mjs +41 -0
  416. package/functions/pre-transaction/sendV0Transaction.cjs +1 -0
  417. package/functions/pre-transaction/sendV0Transaction.d.ts +22 -0
  418. package/functions/pre-transaction/sendV0Transaction.mjs +121 -0
  419. package/functions/pre-transaction/solana-public-signals.cjs +1 -0
  420. package/functions/pre-transaction/solana-public-signals.d.ts +19 -0
  421. package/functions/pre-transaction/solana-public-signals.mjs +60 -0
  422. package/functions/pre-transaction/solana.cjs +1 -0
  423. package/functions/pre-transaction/solana.d.ts +17 -0
  424. package/functions/pre-transaction/solana.mjs +96 -0
  425. package/functions/pre-transaction/solanaTransfer.utils.cjs +1 -0
  426. package/functions/pre-transaction/solanaTransfer.utils.d.ts +6 -0
  427. package/functions/pre-transaction/solanaTransfer.utils.mjs +38 -0
  428. package/functions/pre-transaction/store-instructions.cjs +1 -0
  429. package/functions/pre-transaction/store-instructions.d.ts +4 -0
  430. package/functions/pre-transaction/store-instructions.mjs +9 -0
  431. package/functions/pre-transaction/store-proof.cjs +1 -0
  432. package/functions/pre-transaction/store-proof.d.ts +7 -0
  433. package/functions/pre-transaction/store-proof.mjs +55 -0
  434. package/functions/private-wallet/emporium.helpers.cjs +1 -1
  435. package/functions/private-wallet/emporium.helpers.mjs +33 -29
  436. package/functions/private-wallet/emporium.swap.helpers.cjs +1 -1
  437. package/functions/private-wallet/emporium.swap.helpers.d.ts +1 -1
  438. package/functions/private-wallet/emporium.swap.helpers.mjs +79 -69
  439. package/functions/snarkjs/constant.cjs +1 -1
  440. package/functions/snarkjs/constant.d.ts +40 -0
  441. package/functions/snarkjs/constant.mjs +66 -23
  442. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  443. package/functions/snarkjs/constructEmporiumProof.mjs +32 -32
  444. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  445. package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
  446. package/functions/snarkjs/constructGeneralZkProof.mjs +63 -61
  447. package/functions/snarkjs/constructSolanaZkProof.cjs +1 -0
  448. package/functions/snarkjs/constructSolanaZkProof.d.ts +13 -0
  449. package/functions/snarkjs/constructSolanaZkProof.mjs +109 -0
  450. package/functions/snarkjs/generateCircomData.cjs +1 -1
  451. package/functions/snarkjs/generateCircomData.d.ts +1 -1
  452. package/functions/snarkjs/generateCircomData.mjs +9 -9
  453. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -1
  454. package/functions/snarkjs/generateZkProofEnclave.mjs +10 -9
  455. package/functions/snarkjs/getZKFiles.cjs +1 -1
  456. package/functions/snarkjs/getZKFiles.mjs +13 -13
  457. package/functions/snarkjs/index.d.ts +1 -0
  458. package/functions/utils/addresses.cjs +1 -1
  459. package/functions/utils/addresses.d.ts +1 -1
  460. package/functions/utils/addresses.mjs +21 -17
  461. package/functions/utils/amounts.utils.cjs +1 -1
  462. package/functions/utils/amounts.utils.d.ts +1 -0
  463. package/functions/utils/amounts.utils.mjs +53 -40
  464. package/functions/utils/bytes32.utils.cjs +1 -0
  465. package/functions/utils/bytes32.utils.d.ts +2 -0
  466. package/functions/utils/bytes32.utils.mjs +10 -0
  467. package/functions/utils/cacheDevice.utils.cjs +1 -1
  468. package/functions/utils/cacheDevice.utils.mjs +2 -3
  469. package/functions/utils/cacheFunctions.cjs +1 -1
  470. package/functions/utils/cacheFunctions.mjs +53 -52
  471. package/functions/utils/convertIntegrationProviderToExternalActionId.cjs +1 -1
  472. package/functions/utils/convertIntegrationProviderToExternalActionId.mjs +1 -0
  473. package/functions/utils/create-provider.cjs +1 -1
  474. package/functions/utils/create-provider.d.ts +4 -1
  475. package/functions/utils/create-provider.mjs +8 -6
  476. package/functions/utils/encodeTokenWithId.cjs +1 -1
  477. package/functions/utils/encodeTokenWithId.d.ts +1 -1
  478. package/functions/utils/encodeTokenWithId.mjs +6 -2
  479. package/functions/utils/encryptInputForEnclave.cjs +1 -1
  480. package/functions/utils/encryptInputForEnclave.mjs +29 -28
  481. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  482. package/functions/utils/erc20tokenFunctions.mjs +29 -29
  483. package/functions/utils/ethers-formatter.utils.cjs +1 -1
  484. package/functions/utils/ethers-formatter.utils.d.ts +2 -0
  485. package/functions/utils/ethers-formatter.utils.mjs +45 -15
  486. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  487. package/functions/utils/evmNetworkFunctions.mjs +3 -4
  488. package/functions/utils/fees.utils.cjs +1 -1
  489. package/functions/utils/fees.utils.d.ts +1 -0
  490. package/functions/utils/fees.utils.mjs +19 -9
  491. package/functions/utils/get-hinkal-approvals.cjs +1 -1
  492. package/functions/utils/get-hinkal-approvals.mjs +1 -1
  493. package/functions/utils/getBlockExplorerUrl.cjs +1 -1
  494. package/functions/utils/getBlockExplorerUrl.mjs +2 -2
  495. package/functions/utils/getRecipientInfoFromUserKeys.cjs +1 -1
  496. package/functions/utils/getRecipientInfoFromUserKeys.d.ts +0 -1
  497. package/functions/utils/getRecipientInfoFromUserKeys.mjs +10 -13
  498. package/functions/utils/getUtxosFromReceipt.utils.cjs +1 -0
  499. package/functions/utils/getUtxosFromReceipt.utils.d.ts +4 -0
  500. package/functions/utils/getUtxosFromReceipt.utils.mjs +29 -0
  501. package/functions/utils/getUtxosFromReceiptSolana.cjs +1 -0
  502. package/functions/utils/getUtxosFromReceiptSolana.d.ts +5 -0
  503. package/functions/utils/getUtxosFromReceiptSolana.mjs +19 -0
  504. package/functions/utils/index.d.ts +5 -1
  505. package/functions/utils/networks.utils.cjs +1 -1
  506. package/functions/utils/networks.utils.mjs +2 -3
  507. package/functions/utils/nftTokenFunctions.cjs +1 -1
  508. package/functions/utils/nftTokenFunctions.mjs +8 -4
  509. package/functions/utils/prepareHinkal.cjs +1 -0
  510. package/functions/utils/prepareHinkal.d.ts +7 -1
  511. package/functions/utils/prepareHinkal.mjs +88 -0
  512. package/functions/utils/publicBalance.utils.cjs +1 -1
  513. package/functions/utils/publicBalance.utils.d.ts +1 -0
  514. package/functions/utils/publicBalance.utils.mjs +75 -45
  515. package/functions/utils/solanaMint.utils.cjs +1 -0
  516. package/functions/utils/solanaMint.utils.d.ts +10 -0
  517. package/functions/utils/solanaMint.utils.mjs +14 -0
  518. package/functions/utils/time.utils.cjs +1 -1
  519. package/functions/utils/time.utils.d.ts +1 -1
  520. package/functions/utils/time.utils.mjs +11 -11
  521. package/functions/utils/userAgent.cjs +1 -1
  522. package/functions/utils/userAgent.mjs +6 -7
  523. package/functions/utils/walletBalances.utils.cjs +1 -1
  524. package/functions/utils/walletBalances.utils.d.ts +2 -1
  525. package/functions/utils/walletBalances.utils.mjs +18 -17
  526. package/functions/web3/events/getInputUtxoAndBalance.cjs +1 -1
  527. package/functions/web3/events/getInputUtxoAndBalance.mjs +98 -91
  528. package/functions/web3/events/getInputUtxosEnclave.cjs +1 -1
  529. package/functions/web3/events/getInputUtxosEnclave.mjs +38 -16
  530. package/functions/web3/events/getShieldedBalance.cjs +2 -2
  531. package/functions/web3/events/getShieldedBalance.mjs +70 -62
  532. package/functions/web3/events/getTransactionLogEvents.cjs +1 -1
  533. package/functions/web3/events/getTransactionLogEvents.d.ts +3 -2
  534. package/functions/web3/events/getTransactionLogEvents.mjs +12 -9
  535. package/functions/web3/fetchSolanaMerkleTreeRootHash.cjs +1 -0
  536. package/functions/web3/fetchSolanaMerkleTreeRootHash.d.ts +4 -0
  537. package/functions/web3/fetchSolanaMerkleTreeRootHash.mjs +45 -0
  538. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  539. package/functions/web3/functionCalls/accessTokenCalls.d.ts +2 -0
  540. package/functions/web3/functionCalls/accessTokenCalls.mjs +25 -7
  541. package/functions/web3/functionCalls/estimateGasRelayer.cjs +1 -1
  542. package/functions/web3/functionCalls/estimateGasRelayer.mjs +12 -12
  543. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  544. package/functions/web3/functionCalls/transactCallRelayer.d.ts +20 -0
  545. package/functions/web3/functionCalls/transactCallRelayer.mjs +61 -19
  546. package/functions/web3/getContractMetadata.cjs +1 -1
  547. package/functions/web3/getContractMetadata.mjs +20 -50
  548. package/functions/web3/getTokenHolder.cjs +1 -1
  549. package/functions/web3/getTokenHolder.mjs +29 -24
  550. package/functions/web3/index.d.ts +2 -0
  551. package/functions/web3/odosAPI.cjs +1 -1
  552. package/functions/web3/odosAPI.mjs +11 -8
  553. package/functions/web3/okxAPI.cjs +1 -0
  554. package/functions/web3/okxAPI.d.ts +8 -0
  555. package/functions/web3/okxAPI.mjs +43 -0
  556. package/functions/web3/oneInchAPI.cjs +1 -1
  557. package/functions/web3/oneInchAPI.mjs +7 -4
  558. package/functions/web3/runContractFunction.cjs +1 -1
  559. package/functions/web3/runContractFunction.mjs +22 -18
  560. package/functions/web3/signAndSendSerializedTransaction.cjs +1 -0
  561. package/functions/web3/signAndSendSerializedTransaction.d.ts +2 -0
  562. package/functions/web3/signAndSendSerializedTransaction.mjs +11 -0
  563. package/functions/web3/uniswapAPI.cjs +1 -1
  564. package/functions/web3/uniswapAPI.mjs +7 -4
  565. package/index.cjs +1 -1
  566. package/index.mjs +922 -810
  567. package/package.json +12 -16
  568. package/providers/CustomEthersProvider.cjs +1 -0
  569. package/providers/{TorExternalProvider.d.ts → CustomEthersProvider.d.ts} +2 -2
  570. package/providers/CustomEthersProvider.mjs +29 -0
  571. package/providers/CustomSolanaConnection.cjs +1 -0
  572. package/providers/CustomSolanaConnection.d.ts +4 -0
  573. package/providers/CustomSolanaConnection.mjs +33 -0
  574. package/providers/EthersProviderAdapter.cjs +1 -1
  575. package/providers/EthersProviderAdapter.d.ts +1 -2
  576. package/providers/EthersProviderAdapter.mjs +8 -48
  577. package/providers/SolanaProviderAdapter.cjs +1 -0
  578. package/providers/SolanaProviderAdapter.d.ts +44 -0
  579. package/providers/SolanaProviderAdapter.mjs +125 -0
  580. package/providers/WagmiProviderAdapter.cjs +1 -1
  581. package/providers/WagmiProviderAdapter.d.ts +1 -2
  582. package/providers/WagmiProviderAdapter.mjs +26 -24
  583. package/providers/prepareEthersHinkal.cjs +1 -1
  584. package/providers/prepareEthersHinkal.mjs +10 -7
  585. package/providers/prepareWagmiHinkal.cjs +1 -1
  586. package/providers/prepareWagmiHinkal.mjs +9 -6
  587. package/types/IMultiThreadedUtxoUtils.d.ts +2 -2
  588. package/types/TransactionSimulator.types.d.ts +1 -0
  589. package/types/activities.types.cjs +1 -1
  590. package/types/activities.types.d.ts +1 -0
  591. package/types/activities.types.mjs +6 -4
  592. package/types/admin.types.cjs +1 -1
  593. package/types/admin.types.d.ts +16 -0
  594. package/types/admin.types.mjs +1 -1
  595. package/types/all-points.types.d.ts +0 -1
  596. package/types/cache.types.cjs +1 -1
  597. package/types/cache.types.d.ts +8 -1
  598. package/types/cache.types.mjs +1 -1
  599. package/types/circom-data.types.d.ts +6 -0
  600. package/types/commitments.types.d.ts +12 -0
  601. package/types/ethereum-network.types.cjs +1 -1
  602. package/types/ethereum-network.types.d.ts +9 -3
  603. package/types/ethereum-network.types.mjs +1 -1
  604. package/types/external-action.types.cjs +1 -1
  605. package/types/external-action.types.d.ts +3 -1
  606. package/types/external-action.types.mjs +2 -2
  607. package/types/hinkal.types.cjs +1 -1
  608. package/types/hinkal.types.d.ts +3 -2
  609. package/types/hinkal.types.mjs +8 -8
  610. package/types/http.types.d.ts +8 -0
  611. package/types/index.d.ts +3 -2
  612. package/types/new-rewards.type.d.ts +2 -9
  613. package/types/offscreen.types.cjs +1 -1
  614. package/types/offscreen.types.d.ts +2 -1
  615. package/types/offscreen.types.mjs +2 -2
  616. package/types/okx.types.d.ts +57 -0
  617. package/types/rewards.types.d.ts +0 -11
  618. package/types/sandbox.types.cjs +1 -1
  619. package/types/sandbox.types.d.ts +19 -2
  620. package/types/sandbox.types.mjs +2 -2
  621. package/types/solana.types.d.ts +75 -0
  622. package/types/token.types.d.ts +6 -0
  623. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.cjs +1 -1
  624. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.mjs +1 -1
  625. package/webworker/snarkjsWorker/snarkjsWorkerLogic.cjs +1 -1
  626. package/webworker/snarkjsWorker/snarkjsWorkerLogic.d.ts +0 -1
  627. package/webworker/snarkjsWorker/snarkjsWorkerLogic.mjs +28 -30
  628. package/webworker/utxoWorker/utxoWorker.types.d.ts +2 -0
  629. package/webworker/utxoWorker/utxoWorkerLauncher.cjs +1 -1
  630. package/webworker/utxoWorker/utxoWorkerLauncher.mjs +1 -1
  631. package/webworker/utxoWorker/utxoWorkerLogic.cjs +1 -1
  632. package/webworker/utxoWorker/utxoWorkerLogic.mjs +33 -31
  633. package/webworker/viteWorkerURL.constant.cjs +21 -1
  634. package/webworker/viteWorkerURL.constant.mjs +21 -12
  635. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  636. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
  637. package/API/mysteryBoxesCalls.cjs +0 -1
  638. package/API/mysteryBoxesCalls.d.ts +0 -60
  639. package/API/mysteryBoxesCalls.mjs +0 -66
  640. package/assets/snarkjsWorkerLauncher-CWaDqRaL.js +0 -14803
  641. package/assets/utxoWorkerLauncher-BUhBaUSg.js +0 -115868
  642. package/assets/zkProofWorkerLauncher-DlWQP3l9.js +0 -115360
  643. package/constants/mystery-boxes.constants.cjs +0 -1
  644. package/constants/mystery-boxes.constants.d.ts +0 -63
  645. package/constants/mystery-boxes.constants.mjs +0 -355
  646. package/data-structures/event-service/AbstractAccessTokenSnapshotService.cjs +0 -1
  647. package/data-structures/event-service/AbstractApprovalsSnapshotService.cjs +0 -1
  648. package/data-structures/event-service/AbstractCommitmentsSnapshotService.cjs +0 -1
  649. package/data-structures/event-service/AbstractEventService.cjs +0 -1
  650. package/data-structures/event-service/AbstractEventService.mjs +0 -33
  651. package/data-structures/event-service/AbstractSnapshotService.cjs +0 -1
  652. package/data-structures/event-service/BlockchainEventEmitter.cjs +0 -1
  653. package/data-structures/event-service/BlockchainEventEmitter.mjs +0 -80
  654. package/data-structures/snapshot/ClientAccessTokenSnapshotService.cjs +0 -1
  655. package/data-structures/snapshot/ClientApprovalsSnapshotService.cjs +0 -1
  656. package/data-structures/snapshot/ClientApprovalsSnapshotService.mjs +0 -23
  657. package/data-structures/snapshot/ClientCommitmentsSnapshotService.cjs +0 -1
  658. package/data-structures/snapshot/ClientCommitmentsSnapshotService.mjs +0 -31
  659. package/data-structures/snapshot/ClientNullifierSnapshotService.cjs +0 -1
  660. package/data-structures/snapshot/ClientNullifierSnapshotService.mjs +0 -30
  661. package/functions/utils/mystery-box-auction.utils.cjs +0 -1
  662. package/functions/utils/mystery-box-auction.utils.d.ts +0 -8
  663. package/functions/utils/mystery-box-auction.utils.mjs +0 -51
  664. package/providers/TorExternalProvider.cjs +0 -1
  665. package/providers/TorExternalProvider.mjs +0 -29
  666. package/types/merch-order.types.cjs +0 -1
  667. package/types/merch-order.types.d.ts +0 -16
  668. package/types/merch-order.types.mjs +0 -4
  669. package/types/mystery-boxes.types.cjs +0 -1
  670. package/types/mystery-boxes.types.d.ts +0 -43
  671. package/types/mystery-boxes.types.mjs +0 -6
  672. /package/data-structures/event-service/{AbstractNullifierSnapshotService.cjs → evm/AbstractNullifierSnapshotService.cjs} +0 -0
  673. /package/data-structures/event-service/{AbstractNullifierSnapshotService.mjs → evm/AbstractNullifierSnapshotService.mjs} +0 -0
  674. /package/data-structures/event-service/{AbstractSnapshotService.d.ts → evm/AbstractSnapshotService.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios"),o=require("../constants/server.constants.cjs"),c=require("./getRelayerURL.cjs");async function i(e,t,r){const{data:a}=await n.post(`${c.getRelayerURL(e)}${o.RELAYER_CONFIG.getTokenPrice}`,{erc20Address:t,id:r});return a}async function s(e,t){const{data:r}=await n.get(`${c.getRelayerURL(e)}${o.RELAYER_CONFIG.getTokenPriceEth(t)}`);return r}const g=async(e,t)=>{const{data:r}=await n.post(`${c.getRelayerURL(e)}${o.RELAYER_CONFIG.getTokenPrices}`,{erc20Addresses:t});return r};exports.getTokenPrice=i;exports.getTokenPriceEth=s;exports.getTokenPrices=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../constants/server.constants.cjs"),s=require("./getRelayerURL.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");const i=async(e,t)=>await n.httpClient.post(`${s.getRelayerURL(e)}${r.RELAYER_CONFIG.getTokenPrices}`,{erc20Addresses:t});exports.getTokenPrices=i;
@@ -1,14 +1,3 @@
1
- interface GetTokenPriceInterface {
2
- price: number;
3
- status: 'success' | 'failed';
4
- }
5
- export declare function getTokenPrice(chainId: number, erc20Address?: string, id?: string): Promise<GetTokenPriceInterface>;
6
- interface GetTokenPriceEthInterface {
7
- usd: number;
8
- eth: number;
9
- status: 'success' | 'failed';
10
- }
11
- export declare function getTokenPriceEth(chainId: number, id: string): Promise<GetTokenPriceEthInterface>;
12
1
  interface IGetPrices {
13
2
  prices: number[];
14
3
  }
@@ -1,25 +1,10 @@
1
- import n from "axios";
2
- import { RELAYER_CONFIG as r } from "../constants/server.constants.mjs";
3
- import { getRelayerURL as a } from "./getRelayerURL.mjs";
4
- async function k(t, e, o) {
5
- const { data: c } = await n.post(`${a(t)}${r.getTokenPrice}`, {
6
- erc20Address: e,
7
- id: o
8
- });
9
- return c;
10
- }
11
- async function m(t, e) {
12
- const { data: o } = await n.get(`${a(t)}${r.getTokenPriceEth(e)}`);
13
- return o;
14
- }
15
- const p = async (t, e) => {
16
- const { data: o } = await n.post(`${a(t)}${r.getTokenPrices}`, {
17
- erc20Addresses: e
18
- });
19
- return o;
20
- };
1
+ import { RELAYER_CONFIG as e } from "../constants/server.constants.mjs";
2
+ import { getRelayerURL as o } from "./getRelayerURL.mjs";
3
+ import { httpClient as i } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ const a = async (t, r) => await i.post(`${o(t)}${e.getTokenPrices}`, {
6
+ erc20Addresses: r
7
+ });
21
8
  export {
22
- k as getTokenPrice,
23
- m as getTokenPriceEth,
24
- p as getTokenPrices
9
+ a as getTokenPrices
25
10
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../constants/token-data/index.cjs");require("../constants/chains.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/server.constants.cjs");const n=require("../constants/vite.constants.cjs");require("../constants/coingecko.constants.cjs");require("../constants/reorg-depths.constants.cjs");require("../constants/addresses.constants.cjs");require("../constants/token.limits.constants.cjs");require("../constants/presale.constants.cjs");require("../constants/mystery-boxes.constants.cjs");require("../constants/activity.constants.cjs");require("../constants/tasks.constants.cjs");require("../constants/events.constants.cjs");const t="http://localhost:4230",e="https://hinkal-playground-landing.netlify.app",r="https://staging-hinkal-landing.netlify.app",a="https://hinkal.pro",i="http://localhost:4118",s="https://hinkal-playground-onboarding.netlify.app",l="https://staging-hinkal-onboarding.netlify.app",o="https://onboarding.hinkal.pro",g="http://localhost:4117",O="https://hinkal-playground.netlify.app",E="https://staging-hinkal-rewards.netlify.app",d="https://rewards.hinkal.pro",c=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return t;case n.DEPLOYMENT_MODE.PLAYGROUND:return e;case n.DEPLOYMENT_MODE.STAGING:return r;case n.DEPLOYMENT_MODE.PRODUCTION:default:return a}},u=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return i;case n.DEPLOYMENT_MODE.PLAYGROUND:return s;case n.DEPLOYMENT_MODE.STAGING:return l;case n.DEPLOYMENT_MODE.PRODUCTION:default:return o}},p=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return g;case n.DEPLOYMENT_MODE.PLAYGROUND:return O;case n.DEPLOYMENT_MODE.STAGING:return E;case n.DEPLOYMENT_MODE.PRODUCTION:default:return d}};exports.getHinkalLandingURL=c;exports.getRewardsURL=p;exports.getWalletOnboardingURL=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../constants/token-data/index.cjs");require("../constants/chains.constants.cjs");require("../constants/contracts.constants.cjs");require("../constants/kyc.constants.cjs");require("../constants/server.constants.cjs");const n=require("../constants/vite.constants.cjs");require("../constants/coingecko.constants.cjs");require("../constants/reorg-depths.constants.cjs");require("../constants/addresses.constants.cjs");require("../constants/token.limits.constants.cjs");require("../constants/presale.constants.cjs");require("../constants/activity.constants.cjs");require("../constants/tasks.constants.cjs");require("../constants/events.constants.cjs");const t="http://localhost:4230",e="https://hinkal-playground-landing.netlify.app",r="https://staging-hinkal-landing.netlify.app",a="https://hinkal.pro",i="http://localhost:4118",s="https://hinkal-playground-onboarding.netlify.app",l="https://staging-hinkal-onboarding.netlify.app",o="https://onboarding.hinkal.pro",g="http://localhost:4117",O="https://hinkal-playground.netlify.app",E="https://staging-hinkal-rewards.netlify.app",d="https://rewards.hinkal.pro",c=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return t;case n.DEPLOYMENT_MODE.PLAYGROUND:return e;case n.DEPLOYMENT_MODE.STAGING:return r;case n.DEPLOYMENT_MODE.PRODUCTION:default:return a}},u=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return i;case n.DEPLOYMENT_MODE.PLAYGROUND:return s;case n.DEPLOYMENT_MODE.STAGING:return l;case n.DEPLOYMENT_MODE.PRODUCTION:default:return o}},p=()=>{switch(n.deploymentMode){case n.DEPLOYMENT_MODE.DEVELOPMENT:return g;case n.DEPLOYMENT_MODE.PLAYGROUND:return O;case n.DEPLOYMENT_MODE.STAGING:return E;case n.DEPLOYMENT_MODE.PRODUCTION:default:return d}};exports.getHinkalLandingURL=c;exports.getRewardsURL=p;exports.getWalletOnboardingURL=u;
@@ -1,3 +1,3 @@
1
- export declare const getHinkalLandingURL: () => "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app" | "https://hinkal.pro";
1
+ export declare const getHinkalLandingURL: () => "https://hinkal.pro" | "http://localhost:4230" | "https://hinkal-playground-landing.netlify.app" | "https://staging-hinkal-landing.netlify.app";
2
2
  export declare const getWalletOnboardingURL: () => "http://localhost:4118" | "https://hinkal-playground-onboarding.netlify.app" | "https://staging-hinkal-onboarding.netlify.app" | "https://onboarding.hinkal.pro";
3
3
  export declare const getRewardsURL: () => "http://localhost:4117" | "https://hinkal-playground.netlify.app" | "https://staging-hinkal-rewards.netlify.app" | "https://rewards.hinkal.pro";
@@ -9,11 +9,10 @@ import "../constants/reorg-depths.constants.mjs";
9
9
  import "../constants/addresses.constants.mjs";
10
10
  import "../constants/token.limits.constants.mjs";
11
11
  import "../constants/presale.constants.mjs";
12
- import "../constants/mystery-boxes.constants.mjs";
13
12
  import "../constants/activity.constants.mjs";
14
13
  import "../constants/tasks.constants.mjs";
15
14
  import "../constants/events.constants.mjs";
16
- const a = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.app", i = "https://staging-hinkal-landing.netlify.app", o = "https://hinkal.pro", s = "http://localhost:4118", l = "https://hinkal-playground-onboarding.netlify.app", e = "https://staging-hinkal-onboarding.netlify.app", p = "https://onboarding.hinkal.pro", g = "http://localhost:4117", c = "https://hinkal-playground.netlify.app", d = "https://staging-hinkal-rewards.netlify.app", h = "https://rewards.hinkal.pro", U = () => {
15
+ const a = "http://localhost:4230", r = "https://hinkal-playground-landing.netlify.app", i = "https://staging-hinkal-landing.netlify.app", o = "https://hinkal.pro", s = "http://localhost:4118", l = "https://hinkal-playground-onboarding.netlify.app", e = "https://staging-hinkal-onboarding.netlify.app", p = "https://onboarding.hinkal.pro", g = "http://localhost:4117", c = "https://hinkal-playground.netlify.app", d = "https://staging-hinkal-rewards.netlify.app", h = "https://rewards.hinkal.pro", G = () => {
17
16
  switch (n) {
18
17
  case t.DEVELOPMENT:
19
18
  return a;
@@ -25,7 +24,7 @@ const a = "http://localhost:4230", r = "https://hinkal-playground-landing.netlif
25
24
  default:
26
25
  return o;
27
26
  }
28
- }, b = () => {
27
+ }, U = () => {
29
28
  switch (n) {
30
29
  case t.DEVELOPMENT:
31
30
  return s;
@@ -37,7 +36,7 @@ const a = "http://localhost:4230", r = "https://hinkal-playground-landing.netlif
37
36
  default:
38
37
  return p;
39
38
  }
40
- }, A = () => {
39
+ }, b = () => {
41
40
  switch (n) {
42
41
  case t.DEVELOPMENT:
43
42
  return g;
@@ -51,7 +50,7 @@ const a = "http://localhost:4230", r = "https://hinkal-playground-landing.netlif
51
50
  }
52
51
  };
53
52
  export {
54
- U as getHinkalLandingURL,
55
- A as getRewardsURL,
56
- b as getWalletOnboardingURL
53
+ G as getHinkalLandingURL,
54
+ b as getRewardsURL,
55
+ U as getWalletOnboardingURL
57
56
  };
package/API/index.d.ts CHANGED
@@ -16,4 +16,5 @@ export * from './getLifiStatus';
16
16
  export * from './generate-trading-points';
17
17
  export * from './brotherhoodCalls';
18
18
  export * from './getWebsiteURL';
19
- export * from './mysteryBoxesCalls';
19
+ export * from './resolve-sns';
20
+ export * from './seedless-calls';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),a=require("../constants/server.constants.cjs"),n=require("axios"),i=async(e,t,s)=>{const{data:o}=await n.post(`${r.getServerURL(e)}${a.API_CONFIG.ROUTES.isTxStateless}`,{txParameters:t,simulateRandomUserTx:s});return o},l=async(e,t)=>{const{data:s}=await n.post(`${r.getServerURL(e)}${a.API_CONFIG.ROUTES.simulateVolatileTokenTransfer}`,{tokenTransfers:t});return s};exports.isTxStateless=i;exports.simulateVolatileTokenTransfer=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),s=require("../constants/server.constants.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");const l=async(e,t,i)=>n.httpClient.post(`${r.getServerURL(e)}${s.API_CONFIG.ROUTES.isTxStateless}`,{txParameters:t,simulateRandomUserTx:i}),o=async(e,t)=>n.httpClient.post(`${r.getServerURL(e)}${s.API_CONFIG.ROUTES.simulateVolatileTokenTransfer}`,{tokenTransfers:t});exports.isTxStateless=l;exports.simulateVolatileTokenTransfer=o;
@@ -1,25 +1,20 @@
1
- import { getServerURL as e } from "./getServerURL.mjs";
1
+ import { getServerURL as r } from "./getServerURL.mjs";
2
2
  import { API_CONFIG as o } from "../constants/server.constants.mjs";
3
- import r from "axios";
4
- const T = async (t, a, s) => {
5
- const { data: i } = await r.post(
6
- `${e(t)}${o.ROUTES.isTxStateless}`,
7
- {
8
- txParameters: a,
9
- simulateRandomUserTx: s
10
- }
11
- );
12
- return i;
13
- }, c = async (t, a) => {
14
- const { data: s } = await r.post(
15
- `${e(t)}${o.ROUTES.simulateVolatileTokenTransfer}`,
16
- {
17
- tokenTransfers: a
18
- }
19
- );
20
- return s;
21
- };
3
+ import { httpClient as s } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ const p = async (t, e, i) => s.post(
6
+ `${r(t)}${o.ROUTES.isTxStateless}`,
7
+ {
8
+ txParameters: e,
9
+ simulateRandomUserTx: i
10
+ }
11
+ ), T = async (t, e) => s.post(
12
+ `${r(t)}${o.ROUTES.simulateVolatileTokenTransfer}`,
13
+ {
14
+ tokenTransfers: e
15
+ }
16
+ );
22
17
  export {
23
- T as isTxStateless,
24
- c as simulateVolatileTokenTransfer
18
+ p as isTxStateless,
19
+ T as simulateVolatileTokenTransfer
25
20
  };
package/API/kycCalls.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../constants/server.constants.cjs"),a=require("./getServerURL.cjs"),c=require("axios");async function o(e,t){return(await c.post(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:t})).data}async function u(e,t,r,n){return(await c.post(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:t,verificationSessionId:r,verificationType:n})).data}async function g(e,t,r){return(await c.post(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.getUserSignature}`,{ethereumAddress:t,accessKey:r})).data}async function S(e,t,r,n,i){return(await c.post(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.startReclaimVerification}`,{ethereumAddress:r,providerId:t,userSignature:n,withSignature:i})).data}const U=async e=>(await c.get(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.zkMeAccessToken}`)).data.accessToken,R=async(e,t,r)=>await c.post(`${a.getServerURL(e)}${s.API_CONFIG.ROUTES.userHasKyc}`,{ethereumAddress:t,hasKyc:r});exports.getAccessTokenSignature=g;exports.getReclaimVerificationRequest=S;exports.getUserKycStatus=o;exports.getZkMeAccessToken=U;exports.setAiPriseVerificationUrl=u;exports.userHasKyc=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../constants/server.constants.cjs"),n=require("./getServerURL.cjs"),c=require("../data-structures/http/HttpClient.cjs");require("axios");async function o(e,t){return c.httpClient.post(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.checkKycStatus}`,{ethereumAddress:t})}async function u(e,t,r,i){return c.httpClient.post(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.startUserVerification}`,{ethereumAddress:t,verificationSessionId:r,verificationType:i})}async function g(e,t,r){return c.httpClient.post(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.getUserSignature}`,{ethereumAddress:t,accessKey:r})}async function S(e,t,r,i,a){return c.httpClient.post(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.startReclaimVerification}`,{ethereumAddress:r,providerId:t,userSignature:i,withSignature:a})}const U=async e=>(await c.httpClient.get(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.zkMeAccessToken}`)).accessToken,R=async(e,t,r)=>await c.httpClient.post(`${n.getServerURL(e)}${s.API_CONFIG.ROUTES.userHasKyc}`,{ethereumAddress:t,hasKyc:r});exports.getAccessTokenSignature=g;exports.getReclaimVerificationRequest=S;exports.getUserKycStatus=o;exports.getZkMeAccessToken=U;exports.setAiPriseVerificationUrl=u;exports.userHasKyc=R;
package/API/kycCalls.d.ts CHANGED
@@ -4,7 +4,7 @@ interface IGetKycStatus {
4
4
  verificationResult: KycVerificationResult;
5
5
  passportIds?: Passports[];
6
6
  }
7
- export declare function getUserKycStatus(chainId: number, ethereumAddress: string): Promise<IGetKycStatus>;
7
+ export declare function getUserKycStatus(chainId: number, ethereumOrSolanaAddress: string): Promise<IGetKycStatus>;
8
8
  export declare function setAiPriseVerificationUrl(chainId: number, ethereumAddress: string, verificationSessionId: string, verificationType: VERIFICATION_TYPE): Promise<any>;
9
9
  interface AccessTokenSignatureResponse {
10
10
  signatureData: SignatureData;
@@ -19,5 +19,5 @@ export declare const getZkMeAccessToken: (chainId: number) => Promise<any>;
19
19
  type IUserHasKyc = {
20
20
  updated: boolean;
21
21
  };
22
- export declare const userHasKyc: (chainId: number, ethereumAddress: string, hasKyc: boolean) => Promise<import("axios").AxiosResponse<IUserHasKyc, any>>;
22
+ export declare const userHasKyc: (chainId: number, ethereumAddress: string, hasKyc: boolean) => Promise<IUserHasKyc>;
23
23
  export {};
package/API/kycCalls.mjs CHANGED
@@ -1,41 +1,42 @@
1
- import { API_CONFIG as s } from "../constants/server.constants.mjs";
2
- import { getServerURL as r } from "./getServerURL.mjs";
3
- import n from "axios";
4
- async function f(t, e) {
5
- return (await n.post(`${r(t)}${s.ROUTES.checkKycStatus}`, {
6
- ethereumAddress: e
7
- })).data;
1
+ import { API_CONFIG as r } from "../constants/server.constants.mjs";
2
+ import { getServerURL as n } from "./getServerURL.mjs";
3
+ import { httpClient as c } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ async function f(e, t) {
6
+ return c.post(`${n(e)}${r.ROUTES.checkKycStatus}`, {
7
+ ethereumAddress: t
8
+ });
8
9
  }
9
- async function p(t, e, a, c) {
10
- return (await n.post(`${r(t)}${s.ROUTES.startUserVerification}`, {
11
- ethereumAddress: e,
12
- verificationSessionId: a,
13
- verificationType: c
14
- })).data;
10
+ async function S(e, t, s, o) {
11
+ return c.post(`${n(e)}${r.ROUTES.startUserVerification}`, {
12
+ ethereumAddress: t,
13
+ verificationSessionId: s,
14
+ verificationType: o
15
+ });
15
16
  }
16
- async function S(t, e, a) {
17
- return (await n.post(`${r(t)}${s.ROUTES.getUserSignature}`, {
18
- ethereumAddress: e,
19
- accessKey: a
20
- })).data;
17
+ async function U(e, t, s) {
18
+ return c.post(`${n(e)}${r.ROUTES.getUserSignature}`, {
19
+ ethereumAddress: t,
20
+ accessKey: s
21
+ });
21
22
  }
22
- async function U(t, e, a, c, i) {
23
- return (await n.post(`${r(t)}${s.ROUTES.startReclaimVerification}`, {
24
- ethereumAddress: a,
25
- providerId: e,
26
- userSignature: c,
23
+ async function m(e, t, s, o, i) {
24
+ return c.post(`${n(e)}${r.ROUTES.startReclaimVerification}`, {
25
+ ethereumAddress: s,
26
+ providerId: t,
27
+ userSignature: o,
27
28
  withSignature: i
28
- })).data;
29
+ });
29
30
  }
30
- const y = async (t) => (await n.get(`${r(t)}${s.ROUTES.zkMeAccessToken}`)).data.accessToken, R = async (t, e, a) => await n.post(`${r(t)}${s.ROUTES.userHasKyc}`, {
31
- ethereumAddress: e,
32
- hasKyc: a
31
+ const y = async (e) => (await c.get(`${n(e)}${r.ROUTES.zkMeAccessToken}`)).accessToken, R = async (e, t, s) => await c.post(`${n(e)}${r.ROUTES.userHasKyc}`, {
32
+ ethereumAddress: t,
33
+ hasKyc: s
33
34
  });
34
35
  export {
35
- S as getAccessTokenSignature,
36
- U as getReclaimVerificationRequest,
36
+ U as getAccessTokenSignature,
37
+ m as getReclaimVerificationRequest,
37
38
  f as getUserKycStatus,
38
39
  y as getZkMeAccessToken,
39
- p as setAiPriseVerificationUrl,
40
+ S as setAiPriseVerificationUrl,
40
41
  R as userHasKyc
41
42
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),t=require("../constants/server.constants.cjs"),a=require("axios"),s=async({ethereumAddress:e})=>{const{data:o}=await a.get(`${r.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.getUserCurrentLeaderboard}`,{params:{ethereumAddress:e}});return o},d=async()=>{const{data:e}=await a.get(`${r.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.getBrotherhoodsLeaderboard}`);return e};exports.getBrotherhoodsLeaderboard=d;exports.getUserCurrentLeaderboard=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./getServerURL.cjs"),r=require("../constants/server.constants.cjs"),t=require("../data-structures/http/HttpClient.cjs");require("axios");const a=async({ethereumAddress:o})=>t.httpClient.get(`${e.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.getUserCurrentLeaderboard}`,{params:{ethereumAddress:o}}),n=async()=>t.httpClient.get(`${e.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.getBrotherhoodsLeaderboard}`);exports.getBrotherhoodsLeaderboard=n;exports.getUserCurrentLeaderboard=a;
@@ -1,21 +1,16 @@
1
- import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
1
+ import { DATA_SERVER_URL as r } from "./getServerURL.mjs";
2
2
  import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
3
- import o from "axios";
3
+ import { httpClient as t } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
4
5
  const m = async ({
5
- ethereumAddress: r
6
- }) => {
7
- const { data: a } = await o.get(
8
- `${t}${e.getUserCurrentLeaderboard}`,
9
- {
10
- params: { ethereumAddress: r }
11
- }
12
- );
13
- return a;
14
- }, c = async () => {
15
- const { data: r } = await o.get(`${t}${e.getBrotherhoodsLeaderboard}`);
16
- return r;
17
- };
6
+ ethereumAddress: o
7
+ }) => t.get(
8
+ `${r}${e.getUserCurrentLeaderboard}`,
9
+ {
10
+ params: { ethereumAddress: o }
11
+ }
12
+ ), p = async () => t.get(`${r}${e.getBrotherhoodsLeaderboard}`);
18
13
  export {
19
- c as getBrotherhoodsLeaderboard,
14
+ p as getBrotherhoodsLeaderboard,
20
15
  m as getUserCurrentLeaderboard
21
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../constants/server.constants.cjs"),u=require("./getServerURL.cjs"),c=require("ethers"),P=require("../functions/utils/addresses.cjs"),a=require("axios"),i=(t,e)=>{const r=e.getShieldedPrivateKey(),s=`HinkalProxyAccounts|${t.toLowerCase()}|${r}`;return c.ethers.utils.keccak256(c.ethers.utils.toUtf8Bytes(s))},g=async(t,e,r)=>{const s=i(e,r),{data:o}=await a.get(`${u.getServerURL(t)}${n.API_CONFIG.ROUTES.getProxyAccounts(s)}`);return o},h=async(t,e,r,s)=>{const o=i(e,r),y=P.hashEthereumAddress(e),{data:d}=await a.post(`${u.getServerURL(t)}${n.API_CONFIG.ROUTES.updateProxyAccounts}`,{secureKey:o,hashedEthereumAddress:y,proxyAccounts:s});return d};exports.getProxyAccounts=g;exports.updateProxyAccounts=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../constants/server.constants.cjs"),u=require("./getServerURL.cjs"),n=require("ethers"),d=require("../functions/utils/addresses.cjs"),i=require("../data-structures/http/HttpClient.cjs");require("axios");const a=(t,e)=>{const r=e.getShieldedPrivateKey(),s=`HinkalProxyAccounts|${t.toLowerCase()}|${r}`;return n.ethers.utils.keccak256(n.ethers.utils.toUtf8Bytes(s))},P=async(t,e,r)=>{const s=a(e,r);return await i.httpClient.get(`${u.getServerURL(t)}${c.API_CONFIG.ROUTES.getProxyAccounts(s)}`)},g=async(t,e,r,s)=>{const o=a(e,r),y=d.hashEthereumAddress(e);return await i.httpClient.post(`${u.getServerURL(t)}${c.API_CONFIG.ROUTES.updateProxyAccounts}`,{secureKey:o,hashedEthereumAddress:y,proxyAccounts:s})};exports.getProxyAccounts=P;exports.updateProxyAccounts=g;
@@ -1,25 +1,26 @@
1
- import { API_CONFIG as n } from "../constants/server.constants.mjs";
2
- import { getServerURL as a } from "./getServerURL.mjs";
3
- import { ethers as c } from "ethers";
4
- import { hashEthereumAddress as m } from "../functions/utils/addresses.mjs";
5
- import i from "axios";
6
- const u = (e, t) => {
7
- const o = t.getShieldedPrivateKey(), r = `HinkalProxyAccounts|${e.toLowerCase()}|${o}`;
8
- return c.utils.keccak256(c.utils.toUtf8Bytes(r));
9
- }, A = async (e, t, o) => {
10
- const r = u(t, o), { data: s } = await i.get(
11
- `${a(e)}${n.ROUTES.getProxyAccounts(r)}`
1
+ import { API_CONFIG as c } from "../constants/server.constants.mjs";
2
+ import { getServerURL as i } from "./getServerURL.mjs";
3
+ import { ethers as n } from "ethers";
4
+ import { hashEthereumAddress as y } from "../functions/utils/addresses.mjs";
5
+ import { httpClient as a } from "../data-structures/http/HttpClient.mjs";
6
+ import "axios";
7
+ const u = (t, e) => {
8
+ const o = e.getShieldedPrivateKey(), r = `HinkalProxyAccounts|${t.toLowerCase()}|${o}`;
9
+ return n.utils.keccak256(n.utils.toUtf8Bytes(r));
10
+ }, f = async (t, e, o) => {
11
+ const r = u(e, o);
12
+ return await a.get(
13
+ `${i(t)}${c.ROUTES.getProxyAccounts(r)}`
12
14
  );
13
- return s;
14
- }, f = async (e, t, o, r) => {
15
- const s = u(t, o), y = m(t), { data: d } = await i.post(`${a(e)}${n.ROUTES.updateProxyAccounts}`, {
15
+ }, l = async (t, e, o, r) => {
16
+ const s = u(e, o), p = y(e);
17
+ return await a.post(`${i(t)}${c.ROUTES.updateProxyAccounts}`, {
16
18
  secureKey: s,
17
- hashedEthereumAddress: y,
19
+ hashedEthereumAddress: p,
18
20
  proxyAccounts: r
19
21
  });
20
- return d;
21
22
  };
22
23
  export {
23
- A as getProxyAccounts,
24
- f as updateProxyAccounts
24
+ f as getProxyAccounts,
25
+ l as updateProxyAccounts
25
26
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./getServerURL.cjs"),a=require("../constants/server.constants.cjs"),s=require("axios"),R=async({ethereumAddress:e})=>{const{data:r}=await s.get(`${t.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.getCurrentUserReferral}`,{params:{ethereumAddress:e}});return r},o=async({referralCode:e,ethereumAddress:r})=>{const{data:n}=await s.post(`${t.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.submitReferralCode}`,{referralCode:e,ethereumAddress:r});return n},u=async e=>{const{data:r}=await s.get(`${t.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.getCurrentUserAppliedReferralCode}`,{params:{ethereumAddress:e}});return r};exports.getCurrentUserAppliedReferralCode=u;exports.getCurrentUserReferral=R;exports.submitReferralCode=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),t=require("../constants/server.constants.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");const R=async({ethereumAddress:e})=>n.httpClient.get(`${r.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.getCurrentUserReferral}`,{params:{ethereumAddress:e}}),a=async({referralCode:e,ethereumAddress:s})=>n.httpClient.post(`${r.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.submitReferralCode}`,{referralCode:e,ethereumAddress:s}),l=async e=>n.httpClient.get(`${r.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.getCurrentUserAppliedReferralCode}`,{params:{ethereumAddress:e}});exports.getCurrentUserAppliedReferralCode=l;exports.getCurrentUserReferral=R;exports.submitReferralCode=a;
@@ -1,30 +1,22 @@
1
- import { DATA_SERVER_URL as t } from "./getServerURL.mjs";
2
- import { DATA_SERVER_CONFIG as a } from "../constants/server.constants.mjs";
3
- import o from "axios";
1
+ import { DATA_SERVER_URL as e } from "./getServerURL.mjs";
2
+ import { DATA_SERVER_CONFIG as t } from "../constants/server.constants.mjs";
3
+ import { httpClient as o } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
4
5
  const R = async ({
5
6
  ethereumAddress: r
6
- }) => {
7
- const { data: e } = await o.get(`${t}${a.getCurrentUserReferral}`, {
8
- params: { ethereumAddress: r }
9
- });
10
- return e;
11
- }, m = async ({
7
+ }) => o.get(`${e}${t.getCurrentUserReferral}`, {
8
+ params: { ethereumAddress: r }
9
+ }), C = async ({
12
10
  referralCode: r,
13
- ethereumAddress: e
14
- }) => {
15
- const { data: s } = await o.post(`${t}${a.submitReferralCode}`, {
16
- referralCode: r,
17
- ethereumAddress: e
18
- });
19
- return s;
20
- }, c = async (r) => {
21
- const { data: e } = await o.get(`${t}${a.getCurrentUserAppliedReferralCode}`, {
22
- params: { ethereumAddress: r }
23
- });
24
- return e;
25
- };
11
+ ethereumAddress: s
12
+ }) => o.post(`${e}${t.submitReferralCode}`, {
13
+ referralCode: r,
14
+ ethereumAddress: s
15
+ }), f = async (r) => o.get(`${e}${t.getCurrentUserAppliedReferralCode}`, {
16
+ params: { ethereumAddress: r }
17
+ });
26
18
  export {
27
- c as getCurrentUserAppliedReferralCode,
19
+ f as getCurrentUserAppliedReferralCode,
28
20
  R as getCurrentUserReferral,
29
- m as submitReferralCode
21
+ C as submitReferralCode
30
22
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./getRelayerURL.cjs"),s=require("../constants/server.constants.cjs"),n=require("axios"),l=async(e,t=!1)=>{const{data:r}=await n.get(`${a.getRelayerURL(e)}${s.RELAYER_CONFIG.getIdleRelay}?markAsPending=${t}`);return r};exports.getIdleRelay=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getRelayerURL.cjs"),n=require("../constants/server.constants.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");const l=async(e,t=!1)=>await s.httpClient.get(`${r.getRelayerURL(e)}${n.RELAYER_CONFIG.getIdleRelay}?markAsPending=${t}`);exports.getIdleRelay=l;
@@ -1,12 +1,10 @@
1
1
  import { getRelayerURL as r } from "./getRelayerURL.mjs";
2
2
  import { RELAYER_CONFIG as o } from "../constants/server.constants.mjs";
3
- import m from "axios";
4
- const s = async (e, t = !1) => {
5
- const { data: a } = await m.get(
6
- `${r(e)}${o.getIdleRelay}?markAsPending=${t}`
7
- );
8
- return a;
9
- };
3
+ import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ const l = async (e, t = !1) => await n.get(
6
+ `${r(e)}${o.getIdleRelay}?markAsPending=${t}`
7
+ );
10
8
  export {
11
- s as getIdleRelay
9
+ l as getIdleRelay
12
10
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../data-structures/http/HttpClient.cjs"),n="https://sns-sdk-proxy.bonfida.workers.dev/resolve",o=async e=>{try{const{result:t}=await r.httpClient.get(`${n}/${e}`);return!t||t==="error"||t==="Domain not found"?null:typeof t=="string"?t.trim():null}catch{return null}};exports.resolveSns=o;
@@ -0,0 +1 @@
1
+ export declare const resolveSns: (domain: string) => Promise<string | null>;
@@ -0,0 +1,12 @@
1
+ import { httpClient as n } from "../data-structures/http/HttpClient.mjs";
2
+ const e = "https://sns-sdk-proxy.bonfida.workers.dev/resolve", s = async (t) => {
3
+ try {
4
+ const { result: r } = await n.get(`${e}/${t}`);
5
+ return !r || r === "error" || r === "Domain not found" ? null : typeof r == "string" ? r.trim() : null;
6
+ } catch {
7
+ return null;
8
+ }
9
+ };
10
+ export {
11
+ s as resolveSns
12
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../constants/server.constants.cjs"),s=require("./getServerURL.cjs"),o=require("axios");async function n(e){const{data:t}=await o.post(`${s.getServerURL(e)}${r.API_CONFIG.ROUTES.restoreSnapshots}`);return t}exports.restoreSnapshots=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../constants/server.constants.cjs"),r=require("./getServerURL.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");async function n(e){return s.httpClient.post(`${r.getServerURL(e)}${t.API_CONFIG.ROUTES.restoreSnapshots}`)}exports.restoreSnapshots=n;
@@ -1,9 +1,9 @@
1
1
  import { API_CONFIG as t } from "../constants/server.constants.mjs";
2
- import { getServerURL as s } from "./getServerURL.mjs";
3
- import e from "axios";
4
- async function i(o) {
5
- const { data: r } = await e.post(`${s(o)}${t.ROUTES.restoreSnapshots}`);
6
- return r;
2
+ import { getServerURL as o } from "./getServerURL.mjs";
3
+ import { httpClient as e } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ async function i(r) {
6
+ return e.post(`${o(r)}${t.ROUTES.restoreSnapshots}`);
7
7
  }
8
8
  export {
9
9
  i as restoreSnapshots
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./getServerURL.cjs"),a=require("../constants/server.constants.cjs"),o=require("../functions/utils/get-signature-header.cjs"),s=require("axios"),i=async(e,t,n)=>{const{data:c}=await s.post(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.connectRewardsUser}`,{ethereumAddress:e,proxyAddress:n},o.getSignatureHeader(t));return c},S=async e=>{const{data:t}=await s.patch(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.updateRewardsUser}`,e,o.getSignatureHeader(e.signature));return t},g=async e=>{const{data:t}=await s.get(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.getSwapStreak}`,{params:{ethereumAddress:e}});return t},d=async e=>{const{data:t}=await s.get(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.getTasksProgress(e)}`);return t},A=async({ethereumAddress:e,socialWebsiteId:t,signature:n,proxyAddress:c})=>{const{data:R}=await s.patch(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.disconnectSocialNetwork}`,{ethereumAddress:e,socialWebsiteId:t,proxyAddress:c},o.getSignatureHeader(n));return R},_=async e=>{const{data:t}=await s.get(`${r.DATA_SERVER_URL}${a.DATA_SERVER_CONFIG.getNftMultiplier(e)}`);return t};exports.connectRewardsUser=i;exports.disconnectSocialNetwork=A;exports.getNftMultiplier=_;exports.getSwapStreak=g;exports.getTasksProgress=d;exports.updateRewardsUser=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./getServerURL.cjs"),r=require("../constants/server.constants.cjs"),s=require("../data-structures/http/HttpClient.cjs");require("axios");const c=require("../functions/utils/get-signature-header.cjs"),i=async(t,e,n)=>await s.httpClient.post(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.connectRewardsUser}`,{ethereumAddress:t,proxyAddress:n},c.getSignatureHeader(e)),R=async t=>await s.httpClient.patch(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.updateRewardsUser}`,t,c.getSignatureHeader(t.signature)),d=async t=>await s.httpClient.get(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.getSwapStreak}`,{params:{ethereumAddress:t}}),S=async t=>await s.httpClient.get(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.getTasksProgress(t)}`),g=async({ethereumAddress:t,socialWebsiteId:e,signature:n,proxyAddress:o})=>await s.httpClient.patch(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.disconnectSocialNetwork}`,{ethereumAddress:t,socialWebsiteId:e,proxyAddress:o},c.getSignatureHeader(n)),A=async t=>await s.httpClient.get(`${a.DATA_SERVER_URL}${r.DATA_SERVER_CONFIG.getNftMultiplier(t)}`);exports.connectRewardsUser=i;exports.disconnectSocialNetwork=g;exports.getNftMultiplier=A;exports.getSwapStreak=d;exports.getTasksProgress=S;exports.updateRewardsUser=R;
@@ -1,61 +1,44 @@
1
1
  import { DATA_SERVER_URL as r } from "./getServerURL.mjs";
2
2
  import { DATA_SERVER_CONFIG as e } from "../constants/server.constants.mjs";
3
- import { getSignatureHeader as c } from "../functions/utils/get-signature-header.mjs";
4
- import s from "axios";
5
- const $ = async (t, a, o) => {
6
- const { data: n } = await s.post(
7
- `${r}${e.connectRewardsUser}`,
8
- {
9
- ethereumAddress: t,
10
- proxyAddress: o
11
- },
12
- c(a)
13
- );
14
- return n;
15
- }, u = async (t) => {
16
- const { data: a } = await s.patch(
17
- `${r}${e.updateRewardsUser}`,
18
- t,
19
- c(t.signature)
20
- );
21
- return a;
22
- }, m = async (t) => {
23
- const { data: a } = await s.get(`${r}${e.getSwapStreak}`, {
24
- params: { ethereumAddress: t }
25
- });
26
- return a;
27
- }, R = async (t) => {
28
- const { data: a } = await s.get(
29
- `${r}${e.getTasksProgress(t)}`
30
- );
31
- return a;
32
- }, S = async ({
3
+ import { httpClient as s } from "../data-structures/http/HttpClient.mjs";
4
+ import "axios";
5
+ import { getSignatureHeader as o } from "../functions/utils/get-signature-header.mjs";
6
+ const u = async (t, a, n) => await s.post(
7
+ `${r}${e.connectRewardsUser}`,
8
+ {
9
+ ethereumAddress: t,
10
+ proxyAddress: n
11
+ },
12
+ o(a)
13
+ ), m = async (t) => await s.patch(
14
+ `${r}${e.updateRewardsUser}`,
15
+ t,
16
+ o(t.signature)
17
+ ), R = async (t) => await s.get(`${r}${e.getSwapStreak}`, {
18
+ params: { ethereumAddress: t }
19
+ }), S = async (t) => await s.get(
20
+ `${r}${e.getTasksProgress(t)}`
21
+ ), l = async ({
33
22
  ethereumAddress: t,
34
23
  socialWebsiteId: a,
35
- signature: o,
36
- proxyAddress: n
37
- }) => {
38
- const { data: i } = await s.patch(
39
- `${r}${e.disconnectSocialNetwork}`,
40
- {
41
- ethereumAddress: t,
42
- socialWebsiteId: a,
43
- proxyAddress: n
44
- },
45
- c(o)
46
- );
47
- return i;
48
- }, y = async (t) => {
49
- const { data: a } = await s.get(
50
- `${r}${e.getNftMultiplier(t)}`
51
- );
52
- return a;
53
- };
24
+ signature: n,
25
+ proxyAddress: c
26
+ }) => await s.patch(
27
+ `${r}${e.disconnectSocialNetwork}`,
28
+ {
29
+ ethereumAddress: t,
30
+ socialWebsiteId: a,
31
+ proxyAddress: c
32
+ },
33
+ o(n)
34
+ ), y = async (t) => await s.get(
35
+ `${r}${e.getNftMultiplier(t)}`
36
+ );
54
37
  export {
55
- $ as connectRewardsUser,
56
- S as disconnectSocialNetwork,
38
+ u as connectRewardsUser,
39
+ l as disconnectSocialNetwork,
57
40
  y as getNftMultiplier,
58
- m as getSwapStreak,
59
- R as getTasksProgress,
60
- u as updateRewardsUser
41
+ R as getSwapStreak,
42
+ S as getTasksProgress,
43
+ m as updateRewardsUser
61
44
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./getServerURL.cjs"),t=require("../constants/server.constants.cjs"),n=require("../data-structures/http/HttpClient.cjs");require("axios");const r=async e=>n.httpClient.post(`${s.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.seedlessInit}`,e),l=async e=>n.httpClient.post(`${s.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.seedlessBackup}`,e),R=async e=>n.httpClient.post(`${s.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.seedlessStatus}`,e),c=async e=>n.httpClient.post(`${s.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.seedlessCheckPassword}`,e),o=async e=>n.httpClient.post(`${s.DATA_SERVER_URL}${t.DATA_SERVER_CONFIG.seedlessSalt}`,e);exports.seedlessBackup=l;exports.seedlessCheckPassword=c;exports.seedlessInit=r;exports.seedlessSalt=o;exports.seedlessStatus=R;