@hinkal/common 0.2.37 → 0.2.39

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 (106) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +0 -5
  3. package/API/API.mjs +112 -117
  4. package/README.md +184 -32
  5. package/constants/chains.constants.cjs +1 -1
  6. package/constants/chains.constants.mjs +2 -1
  7. package/constants/index.cjs +1 -1
  8. package/constants/index.d.ts +0 -2
  9. package/constants/index.mjs +0 -2
  10. package/constants/mediaUrls.constants.cjs +1 -1
  11. package/constants/mediaUrls.constants.d.ts +0 -1
  12. package/constants/mediaUrls.constants.mjs +0 -1
  13. package/constants/rewards.constants.cjs +1 -1
  14. package/constants/rewards.constants.d.ts +0 -2
  15. package/constants/rewards.constants.mjs +2 -2
  16. package/constants/server.constants.cjs +1 -1
  17. package/constants/server.constants.d.ts +0 -4
  18. package/constants/server.constants.mjs +0 -5
  19. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  20. package/data-structures/Hinkal/Hinkal.d.ts +0 -3
  21. package/data-structures/Hinkal/Hinkal.mjs +69 -80
  22. package/data-structures/Hinkal/IHinkal.d.ts +0 -3
  23. package/data-structures/TokenDBs/PublicTokensDB.cjs +1 -1
  24. package/data-structures/TokenDBs/PublicTokensDB.mjs +22 -21
  25. package/data-structures/TokenDBs/TempoPublicTokensDB.cjs +1 -0
  26. package/data-structures/TokenDBs/TempoPublicTokensDB.d.ts +9 -0
  27. package/data-structures/TokenDBs/TempoPublicTokensDB.mjs +42 -0
  28. package/data-structures/TokenDBs/index.cjs +1 -1
  29. package/data-structures/TokenDBs/index.d.ts +1 -0
  30. package/data-structures/TokenDBs/index.mjs +1 -0
  31. package/data-structures/index.cjs +1 -1
  32. package/data-structures/index.mjs +1 -0
  33. package/error-handling/error-codes.constants.cjs +1 -1
  34. package/error-handling/error-codes.constants.d.ts +0 -5
  35. package/error-handling/error-codes.constants.mjs +0 -5
  36. package/externalABIs/index.cjs +1 -1
  37. package/externalABIs/index.d.ts +1 -36
  38. package/externalABIs/index.mjs +2 -4
  39. package/functions/index.cjs +1 -1
  40. package/functions/index.d.ts +0 -1
  41. package/functions/index.mjs +0 -4
  42. package/index.cjs +1 -1
  43. package/index.mjs +314 -319
  44. package/package.json +2 -2
  45. package/types/cache.types.cjs +1 -1
  46. package/types/cache.types.d.ts +1 -0
  47. package/types/cache.types.mjs +1 -1
  48. package/types/commitments.types.d.ts +0 -10
  49. package/types/hinkal.types.cjs +1 -1
  50. package/types/hinkal.types.d.ts +0 -7
  51. package/types/hinkal.types.mjs +2 -4
  52. package/types/index.cjs +1 -1
  53. package/types/index.d.ts +0 -1
  54. package/types/index.mjs +0 -1
  55. package/types/new-rewards.type.cjs +1 -1
  56. package/types/new-rewards.type.d.ts +0 -1
  57. package/types/new-rewards.type.mjs +1 -1
  58. package/webworker/{logError-B1LyaM6e.js → logError-CU_5hb0O.js} +1 -1
  59. package/webworker/package.json +2 -2
  60. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.cjs +1 -1
  61. package/webworker/snarkjsWorker/snarkjsWorkerLauncher.ts?worker&url.mjs +1 -1
  62. package/webworker/snarkjsWorkerNode.cjs +1 -1
  63. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.cjs +1 -1
  64. package/webworker/utxoWorker/utxoWorkerLauncher.ts?worker&url.mjs +1 -1
  65. package/webworker/utxoWorkerNode.cjs +1 -1
  66. package/webworker/viteWorkerURL.constant.cjs +3 -3
  67. package/webworker/viteWorkerURL.constant.mjs +3 -3
  68. package/webworker/{workerProxy-UUs7pDb1.js → workerProxy-JYVsEgnC.js} +1 -1
  69. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.cjs +1 -1
  70. package/webworker/zkProofWorker/zkProofWorkerLauncher.ts?worker&url.mjs +1 -1
  71. package/webworker/zkProofWorkerNode.cjs +1 -1
  72. package/API/kycCalls.cjs +0 -1
  73. package/API/kycCalls.d.ts +0 -14
  74. package/API/kycCalls.mjs +0 -26
  75. package/constants/assets.constants.cjs +0 -1
  76. package/constants/assets.constants.d.ts +0 -13
  77. package/constants/assets.constants.mjs +0 -16
  78. package/constants/kyc.constants.cjs +0 -1
  79. package/constants/kyc.constants.d.ts +0 -29
  80. package/constants/kyc.constants.mjs +0 -126
  81. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +0 -1
  82. package/data-structures/Hinkal/hinkalGetZkMeProvider.d.ts +0 -28
  83. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +0 -22
  84. package/externalABIs/BabPassport.json.cjs +0 -1
  85. package/externalABIs/BabPassport.json.mjs +0 -20
  86. package/externalABIs/GalxePassport.json.cjs +0 -1
  87. package/externalABIs/GalxePassport.json.mjs +0 -37
  88. package/functions/kyc/aiPriseHelper.d.ts +0 -0
  89. package/functions/kyc/checkTokenLimitsUSD.cjs +0 -1
  90. package/functions/kyc/checkTokenLimitsUSD.d.ts +0 -1
  91. package/functions/kyc/checkTokenLimitsUSD.mjs +0 -29
  92. package/functions/kyc/index.cjs +0 -1
  93. package/functions/kyc/index.d.ts +0 -3
  94. package/functions/kyc/index.mjs +0 -3
  95. package/functions/kyc/openDefaultPassportWindow.cjs +0 -1
  96. package/functions/kyc/openDefaultPassportWindow.d.ts +0 -1
  97. package/functions/kyc/openDefaultPassportWindow.mjs +0 -7
  98. package/functions/kyc/passportHelper.cjs +0 -1
  99. package/functions/kyc/passportHelper.d.ts +0 -3
  100. package/functions/kyc/passportHelper.mjs +0 -9
  101. package/functions/kyc/zkMeHelper.cjs +0 -1
  102. package/functions/kyc/zkMeHelper.d.ts +0 -4
  103. package/functions/kyc/zkMeHelper.mjs +0 -42
  104. package/types/kyc.types.cjs +0 -1
  105. package/types/kyc.types.d.ts +0 -41
  106. package/types/kyc.types.mjs +0 -12
package/API/API.cjs CHANGED
@@ -1 +1 @@
1
- const e=require(`./callRelayer.cjs`),t=require(`./getTokenPrice.cjs`),n=require(`./callMonitor.cjs`),r=require(`./relayCalls.cjs`),i=require(`./kycCalls.cjs`),a=require(`./callOdosAPI.cjs`),o=require(`./simulate-transaction.cjs`),s=require(`./simulate-batch-tx.cjs`),c=require(`./token-calls.cjs`),l=require(`./get-token-data.cjs`),u=require(`./enclaveUtxoCalls.cjs`),d=require(`./generate-trading-points.cjs`),f=require(`./brotherhoodCalls.cjs`),p=require(`./leaderboardCalls.cjs`),m=require(`./referralsCalls.cjs`),h=require(`./accessCodeCalls.cjs`),g=require(`./rewardsUserCalls.cjs`),_=require(`./weeklyAnalyticCalls.cjs`),v=require(`./send-telegram-callback.cjs`),y=require(`./proxyAccountsCalls.cjs`),b=require(`./seedless-calls.cjs`),x=require(`./scheduled-transactions-calls.cjs`),S=require(`./temporaryWalletCalls.cjs`),C=require(`./onrampCalls.cjs`),w=require(`./get-token-price-chart-data.cjs`),T=require(`./privacy-score-calls.cjs`),E=require(`./privateSendRecipientInfoCalls.cjs`),D=require(`./privateSendNonceCalls.cjs`),O=require(`./snapshot-event-calls.cjs`),k=require(`./privateSendEmailNotificationsCalls.cjs`),A=require(`./tronSubsidyCalls.cjs`),j=require(`./dashboardAccountCalls.cjs`),M=require(`./dashboardContactCalls.cjs`),N=require(`./dashboardPayoutCalls.cjs`),P=require(`./dashboardAccountMemberCalls.cjs`),F=require(`./dashboardBalanceCalls.cjs`),I=require(`./dashboardTransactionCalls.cjs`);var L={getUserKycStatus:i.getUserKycStatus,setAiPriseVerificationUrl:i.setAiPriseVerificationUrl,getReclaimVerificationRequest:i.getReclaimVerificationRequest,getZkMeAccessToken:i.getZkMeAccessToken,getTokenPrices:t.getTokenPrices,getOdosPriceForToken:a.getOdosPriceForToken,getTokenPriceChartData:w.getTokenPriceChartData,getTokenPreviousDayPrices:t.getTokenPreviousDayPrices,getIdleRelay:r.getIdleRelay,generateTradingPoints:d.generateTradingPoints,generateAumPoints:d.generateAumPoints,getBrotherhoodUsers:f.getBrotherhoodUsers,getCurrentUserBrotherhoodUsers:f.getCurrentUserBrotherhoodUsers,getBrotherhood:f.getBrotherhood,editBrotherhood:f.editBrotherhood,createBrotherhood:f.createBrotherhood,getCurrentUserBrotherhood:f.getCurrentUserBrotherhood,getPublicBrotherhoods:f.getPublicBrotherhoods,leaveBrotherhood:f.leaveBrotherhood,joinBrotherhood:f.joinBrotherhood,getUserAnalytics:_.getUserAnalytics,getBrotherhoodAnalytics:_.getBrotherhoodAnalytics,connectRewardsUser:g.connectRewardsUser,updateRewardsUser:g.updateRewardsUser,getRewardsUser:g.getRewardsUser,checkUsernameAvailability:g.checkUsernameAvailability,disconnectSocialNetwork:g.disconnectSocialNetwork,getUserCurrentLeaderboard:p.getUserCurrentLeaderboard,getBrotherhoodsLeaderboard:p.getBrotherhoodsLeaderboard,getCurrentUserReferral:m.getCurrentUserReferral,submitReferralCode:m.submitReferralCode,getCurrentUserAppliedReferralCode:m.getCurrentUserAppliedReferralCode,submitAccessCode:h.submitAccessCode,getAccessCodeBenefits:h.getAccessCodeBenefits,simulateTransaction:o.simulateTransaction,simulateBatchTx:s.simulateBatchTx,tokensInfoCall:c.tokensInfoCall,getTokenData:l.getTokenData,decryptUtxoEnclaveCall:u.decryptUtxoEnclaveCall,storeUtxoEnclaveCall:u.storeUtxoEnclaveCall,getUtxosEnclaveCall:u.getUtxosEnclaveCall,sendTelegramCallback:v.sendTelegramCallback,getTasksProgress:g.getTasksProgress,getSwapStreak:g.getSwapStreak,getProxyAccounts:y.getProxyAccounts,updateProxyAccounts:y.updateProxyAccounts,getNftMultiplier:g.getNftMultiplier,monitor:n.monitor,callRelayerSolanaTransactBatchAPI:e.callRelayerSolanaTransactBatchAPI,seedlessInit:b.seedlessInit,seedlessBackup:b.seedlessBackup,seedlessCheckPassword:b.seedlessCheckPassword,seedlessStatus:b.seedlessStatus,seedlessSalt:b.seedlessSalt,getScheduledTransactions:x.getScheduledTransactions,getTemporaryWalletNonces:S.getTemporaryWalletNonces,addTemporaryWalletNonce:S.addTemporaryWalletNonce,removeTemporaryWalletNonce:S.removeTemporaryWalletNonce,encodeMoonPayBuyUrl:C.encodeMoonPayBuyUrl,generateMoonPayQuote:C.generateMoonPayQuote,getPrivateTransactionRatio:T.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:T.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:E.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:D.syncPrivateSendNonce,reservePrivateSendNonceRange:D.reservePrivateSendNonceRange,getSnapshotServerEvents:O.getSnapshotServerEvents,sendPrivateSendEmailNotifications:k.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:A.checkTronSubsidyEligibility,recordTronSubsidyUsage:A.recordTronSubsidyUsage,getDashboardAccount:j.getDashboardAccount,updateDashboardAccount:j.updateDashboardAccount,addDashboardContact:M.addDashboardContact,deleteDashboardContact:M.deleteDashboardContact,deleteDashboardAccount:j.deleteDashboardAccount,updateDashboardContact:M.updateDashboardContact,getDashboardContacts:M.getDashboardContacts,updateUserProfile:P.updateUserProfile,sendDashboardInvitationEmail:P.sendDashboardInvitationEmail,removeMember:P.removeMember,editMember:P.editMember,createDashboardPayout:N.createDashboardPayout,getDashboardPayouts:N.getDashboardPayouts,syncDashboardBalances:F.syncDashboardBalances,getDashboardBalances:F.getDashboardBalances,changePayoutStatus:N.changePayoutStatus,createDashboardTransactions:I.createDashboardTransactions,getDashboardTransactions:I.getDashboardTransactions};exports.API=L;
1
+ const e=require(`./callRelayer.cjs`),t=require(`./getTokenPrice.cjs`),n=require(`./callMonitor.cjs`),r=require(`./relayCalls.cjs`),i=require(`./callOdosAPI.cjs`),a=require(`./simulate-transaction.cjs`),o=require(`./simulate-batch-tx.cjs`),s=require(`./token-calls.cjs`),c=require(`./get-token-data.cjs`),l=require(`./enclaveUtxoCalls.cjs`),u=require(`./generate-trading-points.cjs`),d=require(`./brotherhoodCalls.cjs`),f=require(`./leaderboardCalls.cjs`),p=require(`./referralsCalls.cjs`),m=require(`./accessCodeCalls.cjs`),h=require(`./rewardsUserCalls.cjs`),g=require(`./weeklyAnalyticCalls.cjs`),_=require(`./send-telegram-callback.cjs`),v=require(`./proxyAccountsCalls.cjs`),y=require(`./seedless-calls.cjs`),b=require(`./scheduled-transactions-calls.cjs`),x=require(`./temporaryWalletCalls.cjs`),S=require(`./onrampCalls.cjs`),C=require(`./get-token-price-chart-data.cjs`),w=require(`./privacy-score-calls.cjs`),T=require(`./privateSendRecipientInfoCalls.cjs`),E=require(`./privateSendNonceCalls.cjs`),D=require(`./snapshot-event-calls.cjs`),O=require(`./privateSendEmailNotificationsCalls.cjs`),k=require(`./tronSubsidyCalls.cjs`),A=require(`./dashboardAccountCalls.cjs`),j=require(`./dashboardContactCalls.cjs`),M=require(`./dashboardPayoutCalls.cjs`),N=require(`./dashboardAccountMemberCalls.cjs`),P=require(`./dashboardBalanceCalls.cjs`),F=require(`./dashboardTransactionCalls.cjs`);var I={getTokenPrices:t.getTokenPrices,getOdosPriceForToken:i.getOdosPriceForToken,getTokenPriceChartData:C.getTokenPriceChartData,getTokenPreviousDayPrices:t.getTokenPreviousDayPrices,getIdleRelay:r.getIdleRelay,generateTradingPoints:u.generateTradingPoints,generateAumPoints:u.generateAumPoints,getBrotherhoodUsers:d.getBrotherhoodUsers,getCurrentUserBrotherhoodUsers:d.getCurrentUserBrotherhoodUsers,getBrotherhood:d.getBrotherhood,editBrotherhood:d.editBrotherhood,createBrotherhood:d.createBrotherhood,getCurrentUserBrotherhood:d.getCurrentUserBrotherhood,getPublicBrotherhoods:d.getPublicBrotherhoods,leaveBrotherhood:d.leaveBrotherhood,joinBrotherhood:d.joinBrotherhood,getUserAnalytics:g.getUserAnalytics,getBrotherhoodAnalytics:g.getBrotherhoodAnalytics,connectRewardsUser:h.connectRewardsUser,updateRewardsUser:h.updateRewardsUser,getRewardsUser:h.getRewardsUser,checkUsernameAvailability:h.checkUsernameAvailability,disconnectSocialNetwork:h.disconnectSocialNetwork,getUserCurrentLeaderboard:f.getUserCurrentLeaderboard,getBrotherhoodsLeaderboard:f.getBrotherhoodsLeaderboard,getCurrentUserReferral:p.getCurrentUserReferral,submitReferralCode:p.submitReferralCode,getCurrentUserAppliedReferralCode:p.getCurrentUserAppliedReferralCode,submitAccessCode:m.submitAccessCode,getAccessCodeBenefits:m.getAccessCodeBenefits,simulateTransaction:a.simulateTransaction,simulateBatchTx:o.simulateBatchTx,tokensInfoCall:s.tokensInfoCall,getTokenData:c.getTokenData,decryptUtxoEnclaveCall:l.decryptUtxoEnclaveCall,storeUtxoEnclaveCall:l.storeUtxoEnclaveCall,getUtxosEnclaveCall:l.getUtxosEnclaveCall,sendTelegramCallback:_.sendTelegramCallback,getTasksProgress:h.getTasksProgress,getSwapStreak:h.getSwapStreak,getProxyAccounts:v.getProxyAccounts,updateProxyAccounts:v.updateProxyAccounts,getNftMultiplier:h.getNftMultiplier,monitor:n.monitor,callRelayerSolanaTransactBatchAPI:e.callRelayerSolanaTransactBatchAPI,seedlessInit:y.seedlessInit,seedlessBackup:y.seedlessBackup,seedlessCheckPassword:y.seedlessCheckPassword,seedlessStatus:y.seedlessStatus,seedlessSalt:y.seedlessSalt,getScheduledTransactions:b.getScheduledTransactions,getTemporaryWalletNonces:x.getTemporaryWalletNonces,addTemporaryWalletNonce:x.addTemporaryWalletNonce,removeTemporaryWalletNonce:x.removeTemporaryWalletNonce,encodeMoonPayBuyUrl:S.encodeMoonPayBuyUrl,generateMoonPayQuote:S.generateMoonPayQuote,getPrivateTransactionRatio:w.getPrivateTransactionRatio,savePrivacyScoreAndGetPrivacyRank:w.savePrivacyScoreAndGetPrivacyRank,allocatePrivateSendRecipientInfos:T.allocatePrivateSendRecipientInfos,syncPrivateSendNonce:E.syncPrivateSendNonce,reservePrivateSendNonceRange:E.reservePrivateSendNonceRange,getSnapshotServerEvents:D.getSnapshotServerEvents,sendPrivateSendEmailNotifications:O.sendPrivateSendEmailNotifications,checkTronSubsidyEligibility:k.checkTronSubsidyEligibility,recordTronSubsidyUsage:k.recordTronSubsidyUsage,getDashboardAccount:A.getDashboardAccount,updateDashboardAccount:A.updateDashboardAccount,addDashboardContact:j.addDashboardContact,deleteDashboardContact:j.deleteDashboardContact,deleteDashboardAccount:A.deleteDashboardAccount,updateDashboardContact:j.updateDashboardContact,getDashboardContacts:j.getDashboardContacts,updateUserProfile:N.updateUserProfile,sendDashboardInvitationEmail:N.sendDashboardInvitationEmail,removeMember:N.removeMember,editMember:N.editMember,createDashboardPayout:M.createDashboardPayout,getDashboardPayouts:M.getDashboardPayouts,syncDashboardBalances:P.syncDashboardBalances,getDashboardBalances:P.getDashboardBalances,changePayoutStatus:M.changePayoutStatus,createDashboardTransactions:F.createDashboardTransactions,getDashboardTransactions:F.getDashboardTransactions};exports.API=I;
package/API/API.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { getIdleRelay } from './relayCalls';
2
2
  import { getTokenPreviousDayPrices, getTokenPrices } from './getTokenPrice';
3
- import { getReclaimVerificationRequest, getUserKycStatus, getZkMeAccessToken, setAiPriseVerificationUrl } from './kycCalls';
4
3
  import { getOdosPriceForToken } from './callOdosAPI';
5
4
  import { simulateTransaction } from './simulate-transaction';
6
5
  import { simulateBatchTx } from './simulate-batch-tx';
@@ -36,10 +35,6 @@ import { editMember, removeMember, sendDashboardInvitationEmail, updateUserProfi
36
35
  import { getDashboardBalances, syncDashboardBalances } from './dashboardBalanceCalls';
37
36
  import { createDashboardTransactions, getDashboardTransactions } from './dashboardTransactionCalls';
38
37
  export type IAPI = {
39
- getUserKycStatus: typeof getUserKycStatus;
40
- setAiPriseVerificationUrl: typeof setAiPriseVerificationUrl;
41
- getReclaimVerificationRequest: typeof getReclaimVerificationRequest;
42
- getZkMeAccessToken: typeof getZkMeAccessToken;
43
38
  getTokenPrices: typeof getTokenPrices;
44
39
  getOdosPriceForToken: typeof getOdosPriceForToken;
45
40
  getTokenPriceChartData: typeof getTokenPriceChartData;
package/API/API.mjs CHANGED
@@ -2,128 +2,123 @@ import { callRelayerSolanaTransactBatchAPI as e } from "./callRelayer.mjs";
2
2
  import { getTokenPreviousDayPrices as t, getTokenPrices as n } from "./getTokenPrice.mjs";
3
3
  import { monitor as r } from "./callMonitor.mjs";
4
4
  import { getIdleRelay as i } from "./relayCalls.mjs";
5
- import { getReclaimVerificationRequest as a, getUserKycStatus as o, getZkMeAccessToken as s, setAiPriseVerificationUrl as c } from "./kycCalls.mjs";
6
- import { getOdosPriceForToken as l } from "./callOdosAPI.mjs";
7
- import { simulateTransaction as u } from "./simulate-transaction.mjs";
8
- import { simulateBatchTx as d } from "./simulate-batch-tx.mjs";
9
- import { tokensInfoCall as f } from "./token-calls.mjs";
10
- import { getTokenData as p } from "./get-token-data.mjs";
11
- import { decryptUtxoEnclaveCall as m, getUtxosEnclaveCall as h, storeUtxoEnclaveCall as g } from "./enclaveUtxoCalls.mjs";
12
- import { generateAumPoints as _, generateTradingPoints as v } from "./generate-trading-points.mjs";
13
- import { createBrotherhood as y, editBrotherhood as b, getBrotherhood as x, getBrotherhoodUsers as S, getCurrentUserBrotherhood as C, getCurrentUserBrotherhoodUsers as w, getPublicBrotherhoods as T, joinBrotherhood as E, leaveBrotherhood as D } from "./brotherhoodCalls.mjs";
14
- import { getBrotherhoodsLeaderboard as O, getUserCurrentLeaderboard as k } from "./leaderboardCalls.mjs";
15
- import { getCurrentUserAppliedReferralCode as A, getCurrentUserReferral as j, submitReferralCode as M } from "./referralsCalls.mjs";
16
- import { getAccessCodeBenefits as N, submitAccessCode as P } from "./accessCodeCalls.mjs";
17
- import { checkUsernameAvailability as F, connectRewardsUser as I, disconnectSocialNetwork as L, getNftMultiplier as R, getRewardsUser as z, getSwapStreak as B, getTasksProgress as V, updateRewardsUser as H } from "./rewardsUserCalls.mjs";
18
- import { getBrotherhoodAnalytics as U, getUserAnalytics as W } from "./weeklyAnalyticCalls.mjs";
19
- import { sendTelegramCallback as G } from "./send-telegram-callback.mjs";
20
- import { getProxyAccounts as K, updateProxyAccounts as q } from "./proxyAccountsCalls.mjs";
21
- import { seedlessBackup as J, seedlessCheckPassword as Y, seedlessInit as X, seedlessSalt as Z, seedlessStatus as Q } from "./seedless-calls.mjs";
22
- import { getScheduledTransactions as $ } from "./scheduled-transactions-calls.mjs";
23
- import { addTemporaryWalletNonce as ee, getTemporaryWalletNonces as te, removeTemporaryWalletNonce as ne } from "./temporaryWalletCalls.mjs";
24
- import { encodeMoonPayBuyUrl as re, generateMoonPayQuote as ie } from "./onrampCalls.mjs";
25
- import { getTokenPriceChartData as ae } from "./get-token-price-chart-data.mjs";
26
- import { getPrivateTransactionRatio as oe, savePrivacyScoreAndGetPrivacyRank as se } from "./privacy-score-calls.mjs";
27
- import { allocatePrivateSendRecipientInfos as ce } from "./privateSendRecipientInfoCalls.mjs";
28
- import { reservePrivateSendNonceRange as le, syncPrivateSendNonce as ue } from "./privateSendNonceCalls.mjs";
29
- import { getSnapshotServerEvents as de } from "./snapshot-event-calls.mjs";
30
- import { sendPrivateSendEmailNotifications as fe } from "./privateSendEmailNotificationsCalls.mjs";
31
- import { checkTronSubsidyEligibility as pe, recordTronSubsidyUsage as me } from "./tronSubsidyCalls.mjs";
32
- import { deleteDashboardAccount as he, getDashboardAccount as ge, updateDashboardAccount as _e } from "./dashboardAccountCalls.mjs";
33
- import { addDashboardContact as ve, deleteDashboardContact as ye, getDashboardContacts as be, updateDashboardContact as xe } from "./dashboardContactCalls.mjs";
34
- import { changePayoutStatus as Se, createDashboardPayout as Ce, getDashboardPayouts as we } from "./dashboardPayoutCalls.mjs";
35
- import { editMember as Te, removeMember as Ee, sendDashboardInvitationEmail as De, updateUserProfile as Oe } from "./dashboardAccountMemberCalls.mjs";
36
- import { getDashboardBalances as ke, syncDashboardBalances as Ae } from "./dashboardBalanceCalls.mjs";
37
- import { createDashboardTransactions as je, getDashboardTransactions as Me } from "./dashboardTransactionCalls.mjs";
5
+ import { getOdosPriceForToken as a } from "./callOdosAPI.mjs";
6
+ import { simulateTransaction as o } from "./simulate-transaction.mjs";
7
+ import { simulateBatchTx as s } from "./simulate-batch-tx.mjs";
8
+ import { tokensInfoCall as c } from "./token-calls.mjs";
9
+ import { getTokenData as l } from "./get-token-data.mjs";
10
+ import { decryptUtxoEnclaveCall as u, getUtxosEnclaveCall as d, storeUtxoEnclaveCall as f } from "./enclaveUtxoCalls.mjs";
11
+ import { generateAumPoints as p, generateTradingPoints as m } from "./generate-trading-points.mjs";
12
+ import { createBrotherhood as h, editBrotherhood as g, getBrotherhood as _, getBrotherhoodUsers as v, getCurrentUserBrotherhood as y, getCurrentUserBrotherhoodUsers as b, getPublicBrotherhoods as x, joinBrotherhood as S, leaveBrotherhood as C } from "./brotherhoodCalls.mjs";
13
+ import { getBrotherhoodsLeaderboard as w, getUserCurrentLeaderboard as T } from "./leaderboardCalls.mjs";
14
+ import { getCurrentUserAppliedReferralCode as E, getCurrentUserReferral as D, submitReferralCode as O } from "./referralsCalls.mjs";
15
+ import { getAccessCodeBenefits as k, submitAccessCode as A } from "./accessCodeCalls.mjs";
16
+ import { checkUsernameAvailability as j, connectRewardsUser as M, disconnectSocialNetwork as N, getNftMultiplier as P, getRewardsUser as F, getSwapStreak as I, getTasksProgress as L, updateRewardsUser as R } from "./rewardsUserCalls.mjs";
17
+ import { getBrotherhoodAnalytics as z, getUserAnalytics as B } from "./weeklyAnalyticCalls.mjs";
18
+ import { sendTelegramCallback as V } from "./send-telegram-callback.mjs";
19
+ import { getProxyAccounts as H, updateProxyAccounts as U } from "./proxyAccountsCalls.mjs";
20
+ import { seedlessBackup as W, seedlessCheckPassword as G, seedlessInit as K, seedlessSalt as q, seedlessStatus as J } from "./seedless-calls.mjs";
21
+ import { getScheduledTransactions as Y } from "./scheduled-transactions-calls.mjs";
22
+ import { addTemporaryWalletNonce as X, getTemporaryWalletNonces as Z, removeTemporaryWalletNonce as Q } from "./temporaryWalletCalls.mjs";
23
+ import { encodeMoonPayBuyUrl as $, generateMoonPayQuote as ee } from "./onrampCalls.mjs";
24
+ import { getTokenPriceChartData as te } from "./get-token-price-chart-data.mjs";
25
+ import { getPrivateTransactionRatio as ne, savePrivacyScoreAndGetPrivacyRank as re } from "./privacy-score-calls.mjs";
26
+ import { allocatePrivateSendRecipientInfos as ie } from "./privateSendRecipientInfoCalls.mjs";
27
+ import { reservePrivateSendNonceRange as ae, syncPrivateSendNonce as oe } from "./privateSendNonceCalls.mjs";
28
+ import { getSnapshotServerEvents as se } from "./snapshot-event-calls.mjs";
29
+ import { sendPrivateSendEmailNotifications as ce } from "./privateSendEmailNotificationsCalls.mjs";
30
+ import { checkTronSubsidyEligibility as le, recordTronSubsidyUsage as ue } from "./tronSubsidyCalls.mjs";
31
+ import { deleteDashboardAccount as de, getDashboardAccount as fe, updateDashboardAccount as pe } from "./dashboardAccountCalls.mjs";
32
+ import { addDashboardContact as me, deleteDashboardContact as he, getDashboardContacts as ge, updateDashboardContact as _e } from "./dashboardContactCalls.mjs";
33
+ import { changePayoutStatus as ve, createDashboardPayout as ye, getDashboardPayouts as be } from "./dashboardPayoutCalls.mjs";
34
+ import { editMember as xe, removeMember as Se, sendDashboardInvitationEmail as Ce, updateUserProfile as we } from "./dashboardAccountMemberCalls.mjs";
35
+ import { getDashboardBalances as Te, syncDashboardBalances as Ee } from "./dashboardBalanceCalls.mjs";
36
+ import { createDashboardTransactions as De, getDashboardTransactions as Oe } from "./dashboardTransactionCalls.mjs";
38
37
  //#region libs/shared/common/src/API/API.ts
39
- var Ne = {
40
- getUserKycStatus: o,
41
- setAiPriseVerificationUrl: c,
42
- getReclaimVerificationRequest: a,
43
- getZkMeAccessToken: s,
38
+ var ke = {
44
39
  getTokenPrices: n,
45
- getOdosPriceForToken: l,
46
- getTokenPriceChartData: ae,
40
+ getOdosPriceForToken: a,
41
+ getTokenPriceChartData: te,
47
42
  getTokenPreviousDayPrices: t,
48
43
  getIdleRelay: i,
49
- generateTradingPoints: v,
50
- generateAumPoints: _,
51
- getBrotherhoodUsers: S,
52
- getCurrentUserBrotherhoodUsers: w,
53
- getBrotherhood: x,
54
- editBrotherhood: b,
55
- createBrotherhood: y,
56
- getCurrentUserBrotherhood: C,
57
- getPublicBrotherhoods: T,
58
- leaveBrotherhood: D,
59
- joinBrotherhood: E,
60
- getUserAnalytics: W,
61
- getBrotherhoodAnalytics: U,
62
- connectRewardsUser: I,
63
- updateRewardsUser: H,
64
- getRewardsUser: z,
65
- checkUsernameAvailability: F,
66
- disconnectSocialNetwork: L,
67
- getUserCurrentLeaderboard: k,
68
- getBrotherhoodsLeaderboard: O,
69
- getCurrentUserReferral: j,
70
- submitReferralCode: M,
71
- getCurrentUserAppliedReferralCode: A,
72
- submitAccessCode: P,
73
- getAccessCodeBenefits: N,
74
- simulateTransaction: u,
75
- simulateBatchTx: d,
76
- tokensInfoCall: f,
77
- getTokenData: p,
78
- decryptUtxoEnclaveCall: m,
79
- storeUtxoEnclaveCall: g,
80
- getUtxosEnclaveCall: h,
81
- sendTelegramCallback: G,
82
- getTasksProgress: V,
83
- getSwapStreak: B,
84
- getProxyAccounts: K,
85
- updateProxyAccounts: q,
86
- getNftMultiplier: R,
44
+ generateTradingPoints: m,
45
+ generateAumPoints: p,
46
+ getBrotherhoodUsers: v,
47
+ getCurrentUserBrotherhoodUsers: b,
48
+ getBrotherhood: _,
49
+ editBrotherhood: g,
50
+ createBrotherhood: h,
51
+ getCurrentUserBrotherhood: y,
52
+ getPublicBrotherhoods: x,
53
+ leaveBrotherhood: C,
54
+ joinBrotherhood: S,
55
+ getUserAnalytics: B,
56
+ getBrotherhoodAnalytics: z,
57
+ connectRewardsUser: M,
58
+ updateRewardsUser: R,
59
+ getRewardsUser: F,
60
+ checkUsernameAvailability: j,
61
+ disconnectSocialNetwork: N,
62
+ getUserCurrentLeaderboard: T,
63
+ getBrotherhoodsLeaderboard: w,
64
+ getCurrentUserReferral: D,
65
+ submitReferralCode: O,
66
+ getCurrentUserAppliedReferralCode: E,
67
+ submitAccessCode: A,
68
+ getAccessCodeBenefits: k,
69
+ simulateTransaction: o,
70
+ simulateBatchTx: s,
71
+ tokensInfoCall: c,
72
+ getTokenData: l,
73
+ decryptUtxoEnclaveCall: u,
74
+ storeUtxoEnclaveCall: f,
75
+ getUtxosEnclaveCall: d,
76
+ sendTelegramCallback: V,
77
+ getTasksProgress: L,
78
+ getSwapStreak: I,
79
+ getProxyAccounts: H,
80
+ updateProxyAccounts: U,
81
+ getNftMultiplier: P,
87
82
  monitor: r,
88
83
  callRelayerSolanaTransactBatchAPI: e,
89
- seedlessInit: X,
90
- seedlessBackup: J,
91
- seedlessCheckPassword: Y,
92
- seedlessStatus: Q,
93
- seedlessSalt: Z,
94
- getScheduledTransactions: $,
95
- getTemporaryWalletNonces: te,
96
- addTemporaryWalletNonce: ee,
97
- removeTemporaryWalletNonce: ne,
98
- encodeMoonPayBuyUrl: re,
99
- generateMoonPayQuote: ie,
100
- getPrivateTransactionRatio: oe,
101
- savePrivacyScoreAndGetPrivacyRank: se,
102
- allocatePrivateSendRecipientInfos: ce,
103
- syncPrivateSendNonce: ue,
104
- reservePrivateSendNonceRange: le,
105
- getSnapshotServerEvents: de,
106
- sendPrivateSendEmailNotifications: fe,
107
- checkTronSubsidyEligibility: pe,
108
- recordTronSubsidyUsage: me,
109
- getDashboardAccount: ge,
110
- updateDashboardAccount: _e,
111
- addDashboardContact: ve,
112
- deleteDashboardContact: ye,
113
- deleteDashboardAccount: he,
114
- updateDashboardContact: xe,
115
- getDashboardContacts: be,
116
- updateUserProfile: Oe,
117
- sendDashboardInvitationEmail: De,
118
- removeMember: Ee,
119
- editMember: Te,
120
- createDashboardPayout: Ce,
121
- getDashboardPayouts: we,
122
- syncDashboardBalances: Ae,
123
- getDashboardBalances: ke,
124
- changePayoutStatus: Se,
125
- createDashboardTransactions: je,
126
- getDashboardTransactions: Me
84
+ seedlessInit: K,
85
+ seedlessBackup: W,
86
+ seedlessCheckPassword: G,
87
+ seedlessStatus: J,
88
+ seedlessSalt: q,
89
+ getScheduledTransactions: Y,
90
+ getTemporaryWalletNonces: Z,
91
+ addTemporaryWalletNonce: X,
92
+ removeTemporaryWalletNonce: Q,
93
+ encodeMoonPayBuyUrl: $,
94
+ generateMoonPayQuote: ee,
95
+ getPrivateTransactionRatio: ne,
96
+ savePrivacyScoreAndGetPrivacyRank: re,
97
+ allocatePrivateSendRecipientInfos: ie,
98
+ syncPrivateSendNonce: oe,
99
+ reservePrivateSendNonceRange: ae,
100
+ getSnapshotServerEvents: se,
101
+ sendPrivateSendEmailNotifications: ce,
102
+ checkTronSubsidyEligibility: le,
103
+ recordTronSubsidyUsage: ue,
104
+ getDashboardAccount: fe,
105
+ updateDashboardAccount: pe,
106
+ addDashboardContact: me,
107
+ deleteDashboardContact: he,
108
+ deleteDashboardAccount: de,
109
+ updateDashboardContact: _e,
110
+ getDashboardContacts: ge,
111
+ updateUserProfile: we,
112
+ sendDashboardInvitationEmail: Ce,
113
+ removeMember: Se,
114
+ editMember: xe,
115
+ createDashboardPayout: ye,
116
+ getDashboardPayouts: be,
117
+ syncDashboardBalances: Ee,
118
+ getDashboardBalances: Te,
119
+ changePayoutStatus: ve,
120
+ createDashboardTransactions: De,
121
+ getDashboardTransactions: Oe
127
122
  };
128
123
  //#endregion
129
- export { Ne as API };
124
+ export { ke as API };
package/README.md CHANGED
@@ -80,9 +80,95 @@ type HinkalConfig = {
80
80
  * Indicator controlling wether the proof should be constructed remotely in secure enclave. Defaults to true.
81
81
  */
82
82
  generateProofRemotely?: boolean;
83
+
84
+ /** Disables automatic merkle tree updates. Defaults to false. */
85
+ disableMerkleTreeUpdates?: boolean;
86
+
87
+ /** Override which Tron chain this Hinkal instance targets. */
88
+ tronChainOverride?: number;
83
89
  };
84
90
  ```
85
91
 
92
+ ### Identity persistence
93
+
94
+ When a user connects their wallet, they sign a fixed login message to authenticate with Hinkal. That signature defines their Hinkal identity. Their shielded balances, transaction ability, and all private operations depend on it.
95
+
96
+ Most wallets return the same signature every time for the same message. Some do not. Smart contract wallets, certain hardware wallets, and other non-deterministic signers may produce a different signature on each login, even for the same address and message.
97
+
98
+ When that happens, a returning user appears as a new account. Funds deposited in an earlier session remain tied to the original identity and are not accessible from the new one.
99
+
100
+ Use `storeAndGetInitialSignature` to keep identity stable across sessions. It stores the user's first login signature server-side and returns that same signature on every later login. The user still signs each session to prove wallet ownership, but the SDK always initializes with the original signature.
101
+
102
+ ```typescript
103
+ function storeAndGetInitialSignature(
104
+ authSignature: string,
105
+ isSolanaLedger?: boolean,
106
+ txMessageForSolanaLedger?: string,
107
+ ): Promise<string>;
108
+ ```
109
+
110
+ Parameters:
111
+
112
+ - `authSignature` — signature from the current login session
113
+ - `isSolanaLedger` — set to `true` for a Solana Ledger wallet. Defaults to `false`
114
+ - `txMessageForSolanaLedger` — base64-encoded transaction message used for Solana Ledger authentication. Required when `isSolanaLedger` is `true`
115
+
116
+ Typical flow:
117
+
118
+ ```typescript
119
+ const authSignature = await hinkal.signHinkalMessage();
120
+ const initialSignature = await hinkal.storeAndGetInitialSignature(authSignature);
121
+ hinkal.initUserKeysWithSignature(initialSignature);
122
+ ```
123
+
124
+ Call this once per session, after wallet connection and before fetching balances or submitting transactions.
125
+
126
+ **Security**
127
+
128
+ The stored signature is protected at every stage. Before leaving the client, the signature is encrypted with hybrid encryption. The payload is encrypted with a symmetric key, and that key is encrypted with the enclave's public key.
129
+
130
+ Inside the secure enclave, Google Cloud KMS decrypts the symmetric key. Only then is the signature decrypted. The plaintext signature never leaves the enclave unprotected.
131
+
132
+ At rest, only the encrypted signature and encrypted key are stored in the database. A caller cannot retrieve a stored signature by wallet address alone. Each request must include any valid signature that proves wallet ownership.
133
+
134
+ Requests that fail this check are rejected. The first signature stored for a given address is never replaced. Later logins only use a fresh signature to authenticate retrieval of the original.
135
+
136
+ You should use this function in any wallet-connected application where users may reconnect across sessions, especially when supporting smart contract wallets. It is not necessary if your wallet produces deterministic signatures for the same login message on every session — in that case, calling `initUserKeys` or `initUserKeysWithSignature` with the fresh signature is sufficient. It is also not needed if you persist the signature yourself, or if you use seed-phrase-based login through `initUserKeysFromSeedPhrases`.
137
+
138
+ **Solana Ledger wallets**
139
+
140
+ For standard EVM and Solana wallets, authentication uses a plain message signature. Call `signHinkalMessage` and pass the result to `storeAndGetInitialSignature` without extra parameters.
141
+
142
+ Solana Ledger wallets cannot reliably sign arbitrary UTF-8 messages. For those wallets, Hinkal uses a deterministic empty Solana transaction instead. The transaction uses a fixed blockhash and block height, so signing it always returns the same result.
143
+
144
+ Use `signSolanaLedgerMessage` to get both the signature and the transaction message, then pass them to `storeAndGetInitialSignature`:
145
+
146
+ ```typescript
147
+ const isSolanaLedger = hinkal.getProviderAdapter().isSolanaLedger?.() ?? false;
148
+ let authSignature: string;
149
+ let txMessageForSolanaLedger: string | undefined;
150
+
151
+ if (isSolanaLedger) {
152
+ const ledgerAuth = await hinkal.signSolanaLedgerMessage();
153
+ authSignature = ledgerAuth.signature;
154
+ txMessageForSolanaLedger = ledgerAuth.txMessageForSolanaLedger;
155
+ } else {
156
+ authSignature = await hinkal.signHinkalMessage();
157
+ }
158
+
159
+ const initialSignature = await hinkal.storeAndGetInitialSignature(
160
+ authSignature,
161
+ isSolanaLedger,
162
+ txMessageForSolanaLedger,
163
+ );
164
+
165
+ hinkal.initUserKeysWithSignature(initialSignature);
166
+ ```
167
+
168
+ On return visits, the user must sign the same deterministic transaction again to authenticate. The enclave verifies the fresh signature against `txMessageForSolanaLedger`, not against a plain login message.
169
+
170
+ If your application caches the transaction message locally between sessions, pass the cached value as `txMessageForSolanaLedger` so the enclave can verify the correct payload.
171
+
86
172
  ### Shielded balance
87
173
 
88
174
  Shielded balances are encrypted token holdings stored within the Hinkal protocol. Unlike regular blockchain balances that are publicly visible, shielded balances are hidden from external observers, providing privacy for your assets. After initializing the Hinkal object, you can access and calculate your shielded balances:
@@ -188,9 +274,93 @@ where:
188
274
  - `erc20Token` is the token to transfer (only single token transfers are supported for this method)
189
275
  - `recipientAmounts` is an array of amounts to send to each recipient (in the token's smallest unit)
190
276
  - `recipientAddresses` is an array of public addresses that will receive the funds
191
- - `txCompletionTime` (optional) specifies a delay in milliseconds before the withdrawal completes
277
+ - `txCompletionTime` (optional) is a Unix timestamp in seconds by which all scheduled withdrawals must complete
278
+ - `preEstimateGas` If true (default), the gas needed for the operation will be estimated before executing the deposit. This can help avoid failed transactions due to "out of gas" error.
279
+
280
+ ### Private Send from Public to Public addresses (extended)
281
+
282
+ Private Send from Public to Public addresses (extended) follows the same flow as `depositAndWithdraw`. Tokens are shielded from the sender's public address, then withdrawn to one or more recipient public addresses on a relayer schedule. In addition to the deposit transaction hash, it returns a `scheduleId` that you can use to check the status of each scheduled withdrawal.
283
+
284
+ A user can perform an extended private transfer between public addresses using:
285
+
286
+ ```typescript
287
+ function depositAndWithdrawExtended(
288
+ erc20Token: ERC20Token,
289
+ recipientAmounts: bigint[],
290
+ recipientAddresses: string[],
291
+ txCompletionTime?: number,
292
+ preEstimateGas?: boolean,
293
+ ): Promise<DepositAndSendExtendedResult>;
294
+ ```
295
+
296
+ where:
297
+
298
+ - `erc20Token` is the token to transfer (only single token transfers are supported for this method)
299
+ - `recipientAmounts` is an array of amounts to send to each recipient (in the token's smallest unit)
300
+ - `recipientAddresses` is an array of public addresses that will receive the funds
301
+ - `txCompletionTime` (optional) is a Unix timestamp in seconds by which all scheduled withdrawals must complete
192
302
  - `preEstimateGas` If true (default), the gas needed for the operation will be estimated before executing the deposit. This can help avoid failed transactions due to "out of gas" error.
193
303
 
304
+ The function returns:
305
+
306
+ ```typescript
307
+ type DepositAndSendExtendedResult = {
308
+ depositTxHash: string;
309
+ scheduleId: string;
310
+ };
311
+ ```
312
+
313
+ where:
314
+
315
+ - `depositTxHash` is the on-chain hash of the deposit transaction
316
+ - `scheduleId` is the relayer schedule identifier used to fetch withdrawal status
317
+
318
+ ### Checking scheduled send status
319
+
320
+ After calling `depositAndWithdrawExtended`, a user can fetch the current status of the scheduled withdrawals using the returned `scheduleId`:
321
+
322
+ ```typescript
323
+ function checkSendTransactionStatus(scheduleId: string): Promise<ScheduledTransactionByIdResponse>;
324
+ ```
325
+
326
+ where:
327
+
328
+ - `scheduleId` is the schedule identifier returned from an extended deposit-and-send call
329
+
330
+ The function returns:
331
+
332
+ ```typescript
333
+ type ScheduledTransactionByIdResponse = {
334
+ scheduleId: string;
335
+ chainId: number;
336
+ transactions: ScheduledTransactionItemStatus[];
337
+ };
338
+
339
+ type ScheduledTransactionItemStatus = {
340
+ status: ScheduledTransactionStatus;
341
+ scheduledTime: string;
342
+ txHash: string | null;
343
+ };
344
+ ```
345
+
346
+ where:
347
+
348
+ - `scheduleId` is the schedule identifier
349
+ - `chainId` is the chain on which the scheduled transactions are executed
350
+ - `transactions` is the list of scheduled withdrawals, one entry per recipient
351
+ - `status` indicates the current state of a scheduled withdrawal
352
+ - `scheduledTime` is the planned execution time in ISO 8601 format
353
+ - `txHash` is the on-chain transaction hash once the withdrawal is sent on-chain, or `null` before submission
354
+
355
+ Possible values for `ScheduledTransactionStatus` are:
356
+
357
+ - `pending` — the withdrawal is scheduled and waiting for its execution time
358
+ - `processing` — the relayer is currently submitting the withdrawal transaction on-chain
359
+ - `waiting_for_relayer` — the relayer is busy; the withdrawal is queued to start
360
+ - `sent_on_chain` — the withdrawal was submitted on-chain and `txHash` is available
361
+ - `completed` — the withdrawal was confirmed on-chain
362
+ - `failed` — the withdrawal transaction failed
363
+
194
364
  ### Swapping tokens from the shielded balance
195
365
 
196
366
  Swapping allows you to exchange tokens directly from your shielded balance without revealing your identity. The swap is executed through integrated DEX protocols (Uniswap, 1Inch, Odos) while keeping your transaction private. Your tokens are withdrawn from your shielded balance, swapped through the specified protocol, and the resulting tokens are deposited back into your shielded balance—all in a single private transaction.
@@ -338,41 +508,23 @@ In this example:
338
508
  - First operation approves the gauge contract to spend LP tokens, executed from the persistent wallet
339
509
  - Second operation deposits LP tokens into the gauge, with the wallet address as the recipient for reward tracking
340
510
 
341
- ## Access Tokens
342
-
343
- Access tokens are required credentials that allow users to interact with Hinkal's privacy smart contracts. Think of them as a "passport" that proves you've completed the necessary compliance verification.
344
-
345
- Before you can deposit funds, make transfers, or perform any private transactions through Hinkal, you must have a valid access token associated with your wallet. This is a one-time requirement—once you have an access token, you can use Hinkal's features without needing to verify again.
346
-
347
- To check whether a user already has an access token on a specific chain, use the `checkAccessToken` function:
348
-
349
- ```typescript
350
- function checkAccessToken(): Promise<boolean>;
351
- ```
352
-
353
- If the user does not have an access token, they need to complete a compliance verification through one of Hinkal's supported compliance providers. This is a one-time process that verifies the user meets regulatory requirements before they can use the privacy features.
354
-
355
- To get a list of all available compliance providers that can be used for verification:
356
-
357
- ```typescript
358
- function getSupportedPassportLinks(): string[];
359
- ```
360
-
361
- After passing the compliance check with one of the supported providers, the access token will be automatically minted during the user's first transaction with Hinkal. This token is stored on-chain and grants the user permission to interact with Hinkal's privacy contracts.
362
-
363
511
  ## Supported Chains
364
512
 
365
513
  Hinkal SDK is available on the following blockchain networks:
366
514
 
367
- | Chain | Chain ID | Status |
368
- | -------- | -------- | ------- |
369
- | Ethereum | 1 | ✅ Live |
370
- | Polygon | 137 | ✅ Live |
371
- | Base | 8453 | ✅ Live |
372
- | Arbitrum | 42161 | ✅ Live |
373
- | Optimism | 10 | ✅ Live |
374
- | Solana | - | ✅ Live |
375
- | Tron | - | ✅ Live |
515
+ | Chain | Chain ID | Status |
516
+ | --------------- | ---------- | ------- |
517
+ | Ethereum | 1 | ✅ Live |
518
+ | Arbitrum | 42161 | ✅ Live |
519
+ | Optimism | 10 | ✅ Live |
520
+ | Polygon | 137 | ✅ Live |
521
+ | Base | 8453 | ✅ Live |
522
+ | Solana | 501 | ✅ Live |
523
+ | Tron | 728126428 | ✅ Live |
524
+ | Tempo | 4217 | ✅ Live |
525
+ | Arc Testnet | 5042002 | ✅ Live |
526
+ | Sepolia Testnet | 11155111 | ✅ Live |
527
+ | Tron Nile | 3448148188 | ✅ Live |
376
528
 
377
529
  Each chain supports the full suite of Hinkal privacy features including shielding, transfers, and confidential interactions with DeFi protocols.
378
530
 
@@ -1 +1 @@
1
- const e=require(`../types/chains.types.cjs`),t=require(`./deploy-data/deploy-data-arbMainnet.json.cjs`),n=require(`./deploy-data/deploy-data-ethMainnet.json.cjs`),r=require(`./deploy-data/deploy-data-optimism.json.cjs`),i=require(`./deploy-data/deploy-data-optimismTest.json.cjs`),a=require(`./deploy-data/deploy-data-polygon.json.cjs`),o=require(`./deploy-data/deploy-data-base.json.cjs`),s=require(`./deploy-data/deploy-data-localhost.json.cjs`),c=require(`./deploy-data/deploy-data-arcTestnet.json.cjs`),l=require(`./deploy-data/deploy-data-sepoliaTestnet.json.cjs`),u=require(`./deploy-data/deploy-data-solana.json.cjs`),d=require(`./deploy-data/deploy-data-tronNile.json.cjs`),f=require(`./deploy-data/deploy-data-tronMainnet.json.cjs`),p=require(`./deploy-data/deploy-data-tempo.json.cjs`),m=require(`./vite.constants.cjs`);var h={chainId:0,name:`All`},g={polygon:137,arbMainnet:42161,ethMainnet:1,optimism:10,optimismTest:1010,base:8453,localhost:31337,arcTestnet:5042002,sepoliaTestnet:11155111,solanaMainnet:501,solanaLocalnet:102,tronNile:3448148188,tronLocalnet:103,tronMainnet:728126428,tempo:4217,bnbMainnet:56,avalanche:43114,cronos:25,monad:143,plasma:9745,ink:57073,hyperEvm:999},_=`4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ`,v=g.ethMainnet,y=e=>[g.localhost,g.tronLocalnet,g.solanaLocalnet].includes(e),b=e=>e?y(e)?v:e:v,x=e=>e===g.optimismTest?g.optimism:e,S=(e,t)=>x(e)===x(t),C=`X4IiEZsSzGOrJq8tzq7Y3`,w=m.isNotProduction?C:`XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9`,T=`https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579`,E={[g.ethMainnet]:{name:`Ethereum`,chainId:g.ethMainnet,rpcUrl:`https://rpc.ankr.com/eth`,fetchRpcUrl:`https://eth-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://eth-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:n.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:1,maxPageSize:9e5},[g.arbMainnet]:{name:`Arbitrum`,chainId:g.arbMainnet,rpcUrl:`https://endpoints.omniatech.io/v1/arbitrum/one/public`,fetchRpcUrl:`https://arb-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://arb-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:t.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:2,maxPageSize:5e5},[g.optimism]:{name:`Optimism`,chainId:g.optimism,rpcUrl:`https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903`,fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://opt-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:r.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:3,maxPageSize:9e5},[g.optimismTest]:{name:`Optimism Test`,chainId:g.optimismTest,rpcUrl:`https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903`,fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://opt-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:i.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:3,maxPageSize:9e5},[g.polygon]:{name:`Polygon`,chainId:g.polygon,rpcUrl:`https://polygon-rpc.com`,fetchRpcUrl:`https://polygon-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://polygon-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:a.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:4,maxPageSize:9e5},[g.base]:{name:`Base`,chainId:g.base,rpcUrl:`https://mainnet.base.org/`,fetchRpcUrl:`https://base-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://base-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:o.default,quoterV2Address:`0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a`,uniswapV3FactoryAddress:`0x33128a8fC17869897dcE68Ed026d694621f6FDfD`,priority:7,maxPageSize:5e5},[g.arcTestnet]:{name:`Arc Testnet`,chainId:g.arcTestnet,rpcUrl:`https://arc-testnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://arc-testnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://arc-testnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:c.default,priority:8,maxPageSize:9999},[g.solanaMainnet]:{name:`Solana`,chainId:g.solanaMainnet,rpcUrl:`https://api.mainnet-beta.solana.com`,fetchRpcUrl:`https://mainnet.helius-rpc.com/?api-key=54ad9ec9-dad6-41de-b961-e3e8ea7a7188`,supported:!0,contractData:u.default,priority:8},[g.solanaLocalnet]:{name:`Solana Localnet`,chainId:g.solanaLocalnet,rpcUrl:`http://127.0.0.1:8899`,fetchRpcUrl:`http://127.0.0.1:8899`,supported:!0,contractData:u.default,priority:9},[g.tronNile]:{name:`Tron Nile`,chainId:g.tronNile,rpcUrl:`https://tron-testnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://tron-testnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:d.default,priority:9,maxPageSize:5e5},[g.tronMainnet]:{name:`Tron`,chainId:g.tronMainnet,rpcUrl:`https://tron-mainnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://tron-mainnet.g.alchemy.com/v2/${w}`,supported:!0,priority:10,contractData:f.default,maxPageSize:5e5},[g.sepoliaTestnet]:{name:`Sepolia Testnet`,chainId:g.sepoliaTestnet,rpcUrl:`https://eth-sepolia.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://eth-sepolia.g.alchemy.com/v2/${w}`,supported:!0,priority:11,contractData:l.default,quoterV2Address:`0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3`,uniswapV3FactoryAddress:`0x0227628f3F023bb0B980b67D528571c95c6DaC1c`,maxPageSize:9e5},[g.tempo]:{name:`Tempo`,chainId:g.tempo,rpcUrl:`https://rpc.tempo.xyz`,fetchRpcUrl:`https://rpc.tempo.xyz`,supported:!0,priority:12,contractData:p.default,quoterV2Address:`0x53ab5d7a69db158f621b43ee70423da1e1403c2a`,uniswapV3FactoryAddress:`0x24a3d4757e330890a8b8978028c9e58e04611fd6`,maxPageSize:9999},[g.bnbMainnet]:{name:`BNB Chain`,chainId:g.bnbMainnet,rpcUrl:`https://bsc-dataseed.binance.org`,fetchRpcUrl:`https://bnb-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://bnb-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:{},quoterV2Address:`0x78D78E420Da98ad378D7799bE8f4AF69033EB077`,uniswapV3FactoryAddress:`0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7`,priority:13},[g.avalanche]:{name:`Avalanche`,chainId:g.avalanche,rpcUrl:`https://api.avax.network/ext/bc/C/rpc`,fetchRpcUrl:`https://api.avax.network/ext/bc/C/rpc`,supported:!1,contractData:{},priority:14},[g.cronos]:{name:`Cronos`,chainId:g.cronos,rpcUrl:`https://evm.cronos.org`,fetchRpcUrl:`https://evm.cronos.org`,supported:!1,contractData:{},priority:15},[g.monad]:{name:`Monad`,chainId:g.monad,rpcUrl:`https://rpc.monad.xyz`,fetchRpcUrl:`https://rpc.monad.xyz`,supported:!1,contractData:{},priority:16},[g.plasma]:{name:`Plasma`,chainId:g.plasma,rpcUrl:`https://rpc.plasma.to`,fetchRpcUrl:`https://rpc.plasma.to`,supported:!1,contractData:{},priority:17},[g.ink]:{name:`Ink`,chainId:g.ink,rpcUrl:`https://rpc-gel.inkonchain.com`,fetchRpcUrl:`https://rpc-gel.inkonchain.com`,supported:!1,contractData:{},priority:18},[g.hyperEvm]:{name:`HyperEVM`,chainId:g.hyperEvm,rpcUrl:`https://rpc.hyperliquid.xyz/evm`,fetchRpcUrl:`https://rpc.hyperliquid.xyz/evm`,supported:!1,contractData:{},priority:19},...(m.isDevelopment,{})},D={name:`Localhost`,chainId:g.localhost,rpcUrl:`http://127.0.0.1:8545`,fetchRpcUrl:`http://127.0.0.1:8545`,supported:!0,contractData:s.default,quoterV2Address:E[v].quoterV2Address,uniswapV3FactoryAddress:E[v].uniswapV3FactoryAddress,priority:7};m.isDevelopment&&(E[g.localhost]=D);var O={[e.EthereumNetworkType.Mainnet]:[g.polygon,g.arbMainnet,g.ethMainnet,g.bnbMainnet,g.optimism,g.base,g.tronMainnet,g.tempo],[e.EthereumNetworkType.Testnet]:m.isNotProduction?[g.arcTestnet,g.tronNile,g.sepoliaTestnet,g.optimismTest]:[g.arcTestnet,g.sepoliaTestnet],[e.EthereumNetworkType.Local]:[g.localhost]},k=[g.tronNile,g.tronMainnet,g.tronLocalnet],A=[g.solanaMainnet,g.solanaLocalnet],j=e=>[g.optimism,g.optimismTest,g.base].includes(e),M=e=>A.includes(e),N=e=>k.includes(e),P=e=>M(e)||N(e),F=e=>e===g.sepoliaTestnet,I=e=>e===g.tempo,L=m.isNotProduction?g.tronNile:g.tronMainnet,R=g.solanaMainnet,z=[g.ethMainnet,g.optimism,g.base,g.polygon,g.arbMainnet,g.arcTestnet,R,g.sepoliaTestnet,g.tronMainnet,g.tronNile],B=[...z.filter(e=>!N(e)),L],V=e=>{let t=B.indexOf(L);t!==-1&&(B[t]=e),L=e},H=z.filter(e=>!N(e)&&!F(e)&&!I(e)),U=[g.sepoliaTestnet,g.tempo],W=B.filter(e=>!U.includes(e)),G=z.filter(e=>e!==g.arcTestnet&&!F(e)&&!(N(e)&&e!==g.tronMainnet)),K=[g.bnbMainnet,g.avalanche,g.cronos,g.monad,g.plasma,g.ink,g.hyperEvm],q=e=>K.includes(e),J=[...G,...K],Y=z.filter(e=>!M(e)&&!N(e)),X=e=>Y.includes(e),Z={[e.NetworkFilterType.Wallet]:H,[e.NetworkFilterType.Pay]:B,[e.NetworkFilterType.Bridge]:J,[e.NetworkFilterType.Dashboard]:W},Q=[g.arcTestnet],$=[g.arcTestnet];exports.ALCHEMY_API_KEY=w,exports.ALCHEMY_TEST_KEY=C,exports.ALL_NETWORKS_OPTION=h,exports.BRIDGE_DESTINATION_CHAINS=J,exports.BRIDGE_DESTINATION_ONLY_CHAINS=K,exports.BRIDGE_SUPPORTED_CHAINS=G,exports.DASHBOARD_EXCLUDED_CHAIN_IDS=U,exports.DASHBOARD_SUPPORTED_CHAINS=W,exports.EVM_CHAIN_IDS=Y,exports.EXCLUDED_CHAINS_FOR_BRIDGE=$,exports.FILTER_CHAIN_MAP=Z,exports.FRONT_END_SUPPORTED_CHAINS=B,exports.HELIUS_RPC_URL=T,exports.HINKAL_SUPPORTED_CHAINS=z,exports.SOLANA_CHAIN_IDS=A,exports.SWAP_EXCLUDED_CHAINS=Q,exports.TRON_CHAIN_IDS=k,exports.WALLET_SUPPORTED_CHAINS=H,exports.chainIds=g,exports.chainIdsByType=O,exports.currentSolanaChainId=R,Object.defineProperty(exports,`currentTronChainId`,{enumerable:!0,get:function(){return L}}),exports.getNonLocalhostChainId=b,exports.getOnchainChainId=x,exports.isBridgeDestinationOnlyChain=q,exports.isEvmChain=X,exports.isLocalNetwork=y,exports.isOptimismLike=j,exports.isSameOnchainNetwork=S,exports.isSepoliaTestnet=F,exports.isSolanaLike=M,exports.isTempo=I,exports.isTronLike=N,exports.localhostNetwork=v,exports.networkRegistry=E,exports.setHinkalTronChainId=V,exports.solanaChainIdStr=_,exports.usesNearIntentsBridge=P;
1
+ const e=require(`../types/chains.types.cjs`),t=require(`./deploy-data/deploy-data-arbMainnet.json.cjs`),n=require(`./deploy-data/deploy-data-ethMainnet.json.cjs`),r=require(`./deploy-data/deploy-data-optimism.json.cjs`),i=require(`./deploy-data/deploy-data-optimismTest.json.cjs`),a=require(`./deploy-data/deploy-data-polygon.json.cjs`),o=require(`./deploy-data/deploy-data-base.json.cjs`),s=require(`./deploy-data/deploy-data-localhost.json.cjs`),c=require(`./deploy-data/deploy-data-arcTestnet.json.cjs`),l=require(`./deploy-data/deploy-data-sepoliaTestnet.json.cjs`),u=require(`./deploy-data/deploy-data-solana.json.cjs`),d=require(`./deploy-data/deploy-data-tronNile.json.cjs`),f=require(`./deploy-data/deploy-data-tronMainnet.json.cjs`),p=require(`./deploy-data/deploy-data-tempo.json.cjs`),m=require(`./vite.constants.cjs`);var h={chainId:0,name:`All`},g={polygon:137,arbMainnet:42161,ethMainnet:1,optimism:10,optimismTest:1010,base:8453,localhost:31337,arcTestnet:5042002,sepoliaTestnet:11155111,solanaMainnet:501,solanaLocalnet:102,tronNile:3448148188,tronLocalnet:103,tronMainnet:728126428,tempo:4217,bnbMainnet:56,avalanche:43114,cronos:25,monad:143,plasma:9745,ink:57073,hyperEvm:999},_=`4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ`,v=g.ethMainnet,y=e=>[g.localhost,g.tronLocalnet,g.solanaLocalnet].includes(e),b=e=>e?y(e)?v:e:v,x=e=>e===g.optimismTest?g.optimism:e,S=(e,t)=>x(e)===x(t),C=`X4IiEZsSzGOrJq8tzq7Y3`,w=m.isNotProduction?C:`XzUgeU8YiIIzkD7j2GWnTsFUck7wGgK9`,T=`https://mainnet.helius-rpc.com/?api-key=24718f72-c710-45d6-853e-d447cf530579`,E={[g.ethMainnet]:{name:`Ethereum`,chainId:g.ethMainnet,rpcUrl:`https://rpc.ankr.com/eth`,fetchRpcUrl:`https://eth-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://eth-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:n.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:1,maxPageSize:9e5},[g.arbMainnet]:{name:`Arbitrum`,chainId:g.arbMainnet,rpcUrl:`https://endpoints.omniatech.io/v1/arbitrum/one/public`,fetchRpcUrl:`https://arb-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://arb-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:t.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:2,maxPageSize:5e5},[g.optimism]:{name:`Optimism`,chainId:g.optimism,rpcUrl:`https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903`,fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://opt-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:r.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:3,maxPageSize:9e5},[g.optimismTest]:{name:`Optimism Test`,chainId:g.optimismTest,rpcUrl:`https://optimism-mainnet.infura.io/v3/c26b99456bb6464bb498926ff5162903`,fetchRpcUrl:`https://opt-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://opt-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:i.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:3,maxPageSize:9e5},[g.polygon]:{name:`Polygon`,chainId:g.polygon,rpcUrl:`https://polygon-rpc.com`,fetchRpcUrl:`https://polygon-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://polygon-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:a.default,quoterV2Address:`0x61fFE014bA17989E743c5F6cB21bF9697530B21e`,uniswapV3FactoryAddress:`0x1F98431c8aD98523631AE4a59f267346ea31F984`,priority:4,maxPageSize:9e5},[g.base]:{name:`Base`,chainId:g.base,rpcUrl:`https://mainnet.base.org/`,fetchRpcUrl:`https://base-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://base-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:o.default,quoterV2Address:`0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a`,uniswapV3FactoryAddress:`0x33128a8fC17869897dcE68Ed026d694621f6FDfD`,priority:7,maxPageSize:5e5},[g.arcTestnet]:{name:`Arc Testnet`,chainId:g.arcTestnet,rpcUrl:`https://arc-testnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://arc-testnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://arc-testnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:c.default,priority:8,maxPageSize:9999},[g.solanaMainnet]:{name:`Solana`,chainId:g.solanaMainnet,rpcUrl:`https://api.mainnet-beta.solana.com`,fetchRpcUrl:`https://mainnet.helius-rpc.com/?api-key=54ad9ec9-dad6-41de-b961-e3e8ea7a7188`,supported:!0,contractData:u.default,priority:8},[g.solanaLocalnet]:{name:`Solana Localnet`,chainId:g.solanaLocalnet,rpcUrl:`http://127.0.0.1:8899`,fetchRpcUrl:`http://127.0.0.1:8899`,supported:!0,contractData:u.default,priority:9},[g.tronNile]:{name:`Tron Nile`,chainId:g.tronNile,rpcUrl:`https://tron-testnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://tron-testnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:d.default,priority:9,maxPageSize:5e5},[g.tronMainnet]:{name:`Tron`,chainId:g.tronMainnet,rpcUrl:`https://tron-mainnet.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://tron-mainnet.g.alchemy.com/v2/${w}`,supported:!0,priority:10,contractData:f.default,maxPageSize:5e5},[g.sepoliaTestnet]:{name:`Sepolia Testnet`,chainId:g.sepoliaTestnet,rpcUrl:`https://eth-sepolia.g.alchemy.com/v2/${w}`,fetchRpcUrl:`https://eth-sepolia.g.alchemy.com/v2/${w}`,supported:!0,priority:11,contractData:l.default,quoterV2Address:`0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3`,uniswapV3FactoryAddress:`0x0227628f3F023bb0B980b67D528571c95c6DaC1c`,maxPageSize:9e5},[g.tempo]:{name:`Tempo`,chainId:g.tempo,rpcUrl:`https://rpc.tempo.xyz`,fetchRpcUrl:`https://rpc.tempo.xyz`,supported:!0,priority:12,contractData:p.default,quoterV2Address:`0x53ab5d7a69db158f621b43ee70423da1e1403c2a`,uniswapV3FactoryAddress:`0x24a3d4757e330890a8b8978028c9e58e04611fd6`,maxPageSize:9999},[g.bnbMainnet]:{name:`BNB Chain`,chainId:g.bnbMainnet,rpcUrl:`https://bsc-dataseed.binance.org`,fetchRpcUrl:`https://bnb-mainnet.g.alchemy.com/v2/${w}`,wsRpcUrl:`wss://bnb-mainnet.g.alchemy.com/v2/${w}`,supported:!0,contractData:{},quoterV2Address:`0x78D78E420Da98ad378D7799bE8f4AF69033EB077`,uniswapV3FactoryAddress:`0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7`,priority:13},[g.avalanche]:{name:`Avalanche`,chainId:g.avalanche,rpcUrl:`https://api.avax.network/ext/bc/C/rpc`,fetchRpcUrl:`https://api.avax.network/ext/bc/C/rpc`,supported:!1,contractData:{},priority:14},[g.cronos]:{name:`Cronos`,chainId:g.cronos,rpcUrl:`https://evm.cronos.org`,fetchRpcUrl:`https://evm.cronos.org`,supported:!1,contractData:{},priority:15},[g.monad]:{name:`Monad`,chainId:g.monad,rpcUrl:`https://rpc.monad.xyz`,fetchRpcUrl:`https://rpc.monad.xyz`,supported:!1,contractData:{},priority:16},[g.plasma]:{name:`Plasma`,chainId:g.plasma,rpcUrl:`https://rpc.plasma.to`,fetchRpcUrl:`https://rpc.plasma.to`,supported:!1,contractData:{},priority:17},[g.ink]:{name:`Ink`,chainId:g.ink,rpcUrl:`https://rpc-gel.inkonchain.com`,fetchRpcUrl:`https://rpc-gel.inkonchain.com`,supported:!1,contractData:{},priority:18},[g.hyperEvm]:{name:`HyperEVM`,chainId:g.hyperEvm,rpcUrl:`https://rpc.hyperliquid.xyz/evm`,fetchRpcUrl:`https://rpc.hyperliquid.xyz/evm`,supported:!1,contractData:{},priority:19},...(m.isDevelopment,{})},D={name:`Localhost`,chainId:g.localhost,rpcUrl:`http://127.0.0.1:8545`,fetchRpcUrl:`http://127.0.0.1:8545`,supported:!0,contractData:s.default,quoterV2Address:E[v].quoterV2Address,uniswapV3FactoryAddress:E[v].uniswapV3FactoryAddress,priority:7};m.isDevelopment&&(E[g.localhost]=D);var O={[e.EthereumNetworkType.Mainnet]:[g.polygon,g.arbMainnet,g.ethMainnet,g.bnbMainnet,g.optimism,g.base,g.tronMainnet,g.tempo],[e.EthereumNetworkType.Testnet]:m.isNotProduction?[g.arcTestnet,g.tronNile,g.sepoliaTestnet,g.optimismTest]:[g.arcTestnet,g.sepoliaTestnet],[e.EthereumNetworkType.Local]:[g.localhost]},k=[g.tronNile,g.tronMainnet,g.tronLocalnet],A=[g.solanaMainnet,g.solanaLocalnet],j=e=>[g.optimism,g.optimismTest,g.base].includes(e),M=e=>A.includes(e),N=e=>k.includes(e),P=e=>M(e)||N(e),F=e=>e===g.sepoliaTestnet,I=e=>e===g.tempo,L=m.isNotProduction?g.tronNile:g.tronMainnet,R=g.solanaMainnet,z=[g.ethMainnet,g.optimism,g.base,g.polygon,g.arbMainnet,g.arcTestnet,R,g.sepoliaTestnet,g.tronMainnet,g.tronNile,g.tempo],B=[...z.filter(e=>!N(e)),L],V=e=>{let t=B.indexOf(L);t!==-1&&(B[t]=e),L=e},H=z.filter(e=>!N(e)&&!F(e)&&!I(e)),U=[g.sepoliaTestnet,g.tempo],W=B.filter(e=>!U.includes(e)),G=z.filter(e=>e!==g.arcTestnet&&!F(e)&&!(N(e)&&e!==g.tronMainnet)),K=[g.bnbMainnet,g.avalanche,g.cronos,g.monad,g.plasma,g.ink,g.hyperEvm],q=e=>K.includes(e),J=[...G,...K],Y=z.filter(e=>!M(e)&&!N(e)),X=e=>Y.includes(e),Z={[e.NetworkFilterType.Wallet]:H,[e.NetworkFilterType.Pay]:B,[e.NetworkFilterType.Bridge]:J,[e.NetworkFilterType.Dashboard]:W},Q=[g.arcTestnet],$=[g.arcTestnet];exports.ALCHEMY_API_KEY=w,exports.ALCHEMY_TEST_KEY=C,exports.ALL_NETWORKS_OPTION=h,exports.BRIDGE_DESTINATION_CHAINS=J,exports.BRIDGE_DESTINATION_ONLY_CHAINS=K,exports.BRIDGE_SUPPORTED_CHAINS=G,exports.DASHBOARD_EXCLUDED_CHAIN_IDS=U,exports.DASHBOARD_SUPPORTED_CHAINS=W,exports.EVM_CHAIN_IDS=Y,exports.EXCLUDED_CHAINS_FOR_BRIDGE=$,exports.FILTER_CHAIN_MAP=Z,exports.FRONT_END_SUPPORTED_CHAINS=B,exports.HELIUS_RPC_URL=T,exports.HINKAL_SUPPORTED_CHAINS=z,exports.SOLANA_CHAIN_IDS=A,exports.SWAP_EXCLUDED_CHAINS=Q,exports.TRON_CHAIN_IDS=k,exports.WALLET_SUPPORTED_CHAINS=H,exports.chainIds=g,exports.chainIdsByType=O,exports.currentSolanaChainId=R,Object.defineProperty(exports,`currentTronChainId`,{enumerable:!0,get:function(){return L}}),exports.getNonLocalhostChainId=b,exports.getOnchainChainId=x,exports.isBridgeDestinationOnlyChain=q,exports.isEvmChain=X,exports.isLocalNetwork=y,exports.isOptimismLike=j,exports.isSameOnchainNetwork=S,exports.isSepoliaTestnet=F,exports.isSolanaLike=M,exports.isTempo=I,exports.isTronLike=N,exports.localhostNetwork=v,exports.networkRegistry=E,exports.setHinkalTronChainId=V,exports.solanaChainIdStr=_,exports.usesNearIntentsBridge=P;
@@ -310,7 +310,8 @@ var A = {
310
310
  B,
311
311
  v.sepoliaTestnet,
312
312
  v.tronMainnet,
313
- v.tronNile
313
+ v.tronNile,
314
+ v.tempo
314
315
  ], H = [...V.filter((e) => !F(e)), z], U = (e) => {
315
316
  let t = H.indexOf(z);
316
317
  t !== -1 && (H[t] = e), z = e;
@@ -1 +1 @@
1
- require(`./deploy-data/deploy-data-arbMainnet.json.cjs`),require(`./deploy-data/deploy-data-ethMainnet.json.cjs`),require(`./deploy-data/deploy-data-optimism.json.cjs`),require(`./deploy-data/deploy-data-optimismTest.json.cjs`),require(`./deploy-data/deploy-data-polygon.json.cjs`),require(`./deploy-data/deploy-data-base.json.cjs`),require(`./deploy-data/deploy-data-localhost.json.cjs`),require(`./deploy-data/deploy-data-arcTestnet.json.cjs`),require(`./deploy-data/deploy-data-sepoliaTestnet.json.cjs`),require(`./deploy-data/deploy-data-solana.json.cjs`),require(`./deploy-data/deploy-data-tronNile.json.cjs`),require(`./deploy-data/deploy-data-tronMainnet.json.cjs`),require(`./deploy-data/deploy-data-tempo.json.cjs`),require(`./vite.constants.cjs`),require(`./chains.constants.cjs`),require(`./protocol.constants.cjs`),require(`./fees.constants.cjs`),require(`./server.constants.cjs`),require(`./coingecko.constants.cjs`),require(`./auth.constants.cjs`),require(`./assets.constants.cjs`),require(`./token-data/ERC20Registry.cjs`),require(`./token-data/popularNonRebasingTokens.cjs`),require(`./token-data/index.cjs`),require(`./contracts.constants.cjs`),require(`./kyc.constants.cjs`),require(`./backend.constants.cjs`),require(`./rewards.constants.cjs`),require(`./reorg-depths.constants.cjs`),require(`./mediaUrls.constants.cjs`),require(`./permit2.constants.cjs`),require(`./addresses.constants.cjs`),require(`./conversion.constants.cjs`),require(`./tokens.constants.cjs`),require(`./token.limits.constants.cjs`),require(`./balance.constants.cjs`),require(`./bridging.constants.cjs`),require(`./wallet.constants.cjs`),require(`./presale.constants.cjs`),require(`./lifi.constants.cjs`),require(`./oauthUrls.constants.cjs`),require(`./activity.constants.cjs`),require(`./tasks.constants.cjs`),require(`./events.constants.cjs`),require(`./function-signatures.constants.cjs`),require(`./okx.constants.cjs`),require(`./link.constant.cjs`),require(`./tx-confirmation.constants.cjs`),require(`./schedule.constants.cjs`),require(`./images.constants.cjs`),require(`./pay.constants.cjs`),require(`./price-impact.constants.cjs`);
1
+ require(`./deploy-data/deploy-data-arbMainnet.json.cjs`),require(`./deploy-data/deploy-data-ethMainnet.json.cjs`),require(`./deploy-data/deploy-data-optimism.json.cjs`),require(`./deploy-data/deploy-data-optimismTest.json.cjs`),require(`./deploy-data/deploy-data-polygon.json.cjs`),require(`./deploy-data/deploy-data-base.json.cjs`),require(`./deploy-data/deploy-data-localhost.json.cjs`),require(`./deploy-data/deploy-data-arcTestnet.json.cjs`),require(`./deploy-data/deploy-data-sepoliaTestnet.json.cjs`),require(`./deploy-data/deploy-data-solana.json.cjs`),require(`./deploy-data/deploy-data-tronNile.json.cjs`),require(`./deploy-data/deploy-data-tronMainnet.json.cjs`),require(`./deploy-data/deploy-data-tempo.json.cjs`),require(`./vite.constants.cjs`),require(`./chains.constants.cjs`),require(`./protocol.constants.cjs`),require(`./fees.constants.cjs`),require(`./server.constants.cjs`),require(`./coingecko.constants.cjs`),require(`./auth.constants.cjs`),require(`./token-data/ERC20Registry.cjs`),require(`./token-data/popularNonRebasingTokens.cjs`),require(`./token-data/index.cjs`),require(`./contracts.constants.cjs`),require(`./backend.constants.cjs`),require(`./rewards.constants.cjs`),require(`./reorg-depths.constants.cjs`),require(`./mediaUrls.constants.cjs`),require(`./permit2.constants.cjs`),require(`./addresses.constants.cjs`),require(`./conversion.constants.cjs`),require(`./tokens.constants.cjs`),require(`./token.limits.constants.cjs`),require(`./balance.constants.cjs`),require(`./bridging.constants.cjs`),require(`./wallet.constants.cjs`),require(`./presale.constants.cjs`),require(`./lifi.constants.cjs`),require(`./oauthUrls.constants.cjs`),require(`./activity.constants.cjs`),require(`./tasks.constants.cjs`),require(`./events.constants.cjs`),require(`./function-signatures.constants.cjs`),require(`./okx.constants.cjs`),require(`./link.constant.cjs`),require(`./tx-confirmation.constants.cjs`),require(`./schedule.constants.cjs`),require(`./images.constants.cjs`),require(`./pay.constants.cjs`),require(`./price-impact.constants.cjs`);
@@ -1,10 +1,8 @@
1
- export * from './assets.constants';
2
1
  export * from './token-data';
3
2
  export * from './deploy-data';
4
3
  export * from './chains.constants';
5
4
  export * from './fees.constants';
6
5
  export * from './contracts.constants';
7
- export * from './kyc.constants';
8
6
  export * from './server.constants';
9
7
  export * from './vite.constants';
10
8
  export * from './protocol.constants';