@hinkal/common 0.2.2 → 0.2.4

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 (249) hide show
  1. package/API/API.cjs +1 -1
  2. package/API/API.d.ts +2 -2
  3. package/API/API.mjs +22 -22
  4. package/API/duneAPI.cjs +1 -1
  5. package/API/duneAPI.mjs +3 -2
  6. package/API/userVerifyTransactions.cjs +1 -1
  7. package/API/userVerifyTransactions.d.ts +6 -7
  8. package/API/userVerifyTransactions.mjs +13 -14
  9. package/README.md +32 -22
  10. package/constants/chains.constants.cjs +1 -1
  11. package/constants/chains.constants.mjs +2 -2
  12. package/constants/contracts.constants.cjs +1 -1
  13. package/constants/contracts.constants.mjs +138 -134
  14. package/constants/deploy-data/deploy-data-arbMainnet.json.cjs +1 -1
  15. package/constants/deploy-data/deploy-data-arbMainnet.json.mjs +846 -11
  16. package/constants/deploy-data/deploy-data-avalanche.json.cjs +1 -1
  17. package/constants/deploy-data/deploy-data-avalanche.json.mjs +848 -13
  18. package/constants/deploy-data/deploy-data-base.json.cjs +1 -1
  19. package/constants/deploy-data/deploy-data-base.json.mjs +852 -17
  20. package/constants/deploy-data/deploy-data-bnbMainnet.json.cjs +1 -1
  21. package/constants/deploy-data/deploy-data-bnbMainnet.json.mjs +855 -20
  22. package/constants/deploy-data/deploy-data-ethMainnet.json.cjs +1 -1
  23. package/constants/deploy-data/deploy-data-ethMainnet.json.mjs +850 -15
  24. package/constants/deploy-data/deploy-data-localhost.json.cjs +1 -1
  25. package/constants/deploy-data/deploy-data-localhost.json.mjs +935 -100
  26. package/constants/deploy-data/deploy-data-optimism.json.cjs +1 -1
  27. package/constants/deploy-data/deploy-data-optimism.json.mjs +844 -9
  28. package/constants/deploy-data/deploy-data-polygon.json.cjs +1 -1
  29. package/constants/deploy-data/deploy-data-polygon.json.mjs +844 -9
  30. package/constants/kyc.constants.cjs +1 -1
  31. package/constants/kyc.constants.mjs +30 -18
  32. package/constants/server.constants.cjs +1 -1
  33. package/constants/server.constants.d.ts +3 -2
  34. package/constants/server.constants.mjs +7 -6
  35. package/constants/token-data/ERC20Registry.cjs +1 -1
  36. package/constants/token-data/ERC20Registry.mjs +48 -48
  37. package/constants/token-data/arbMainnetRegistry.json.cjs +1 -1
  38. package/constants/token-data/arbMainnetRegistry.json.mjs +4 -1
  39. package/constants/token-data/arbMainnetRegistryFixed.json.cjs +1 -1
  40. package/constants/token-data/arbMainnetRegistryFixed.json.mjs +4 -1
  41. package/constants/token-data/avalancheRegistry.json.cjs +1 -1
  42. package/constants/token-data/avalancheRegistry.json.mjs +4 -1
  43. package/constants/token-data/avalancheRegistryFixed.json.cjs +1 -1
  44. package/constants/token-data/avalancheRegistryFixed.json.mjs +4 -1
  45. package/constants/token-data/baseRegistry.json.cjs +1 -1
  46. package/constants/token-data/baseRegistry.json.mjs +4 -1
  47. package/constants/token-data/baseRegistryFixed.json.cjs +1 -1
  48. package/constants/token-data/baseRegistryFixed.json.mjs +4 -1
  49. package/constants/token-data/bnbMainnetRegistry.json.cjs +1 -1
  50. package/constants/token-data/bnbMainnetRegistry.json.mjs +12 -9
  51. package/constants/token-data/bnbMainnetRegistryFixed.json.cjs +1 -1
  52. package/constants/token-data/bnbMainnetRegistryFixed.json.mjs +12 -9
  53. package/constants/token-data/ethMainnetRegistry.json.cjs +1 -1
  54. package/constants/token-data/ethMainnetRegistry.json.mjs +15 -12
  55. package/constants/token-data/ethMainnetRegistryFixed.json.cjs +1 -1
  56. package/constants/token-data/ethMainnetRegistryFixed.json.mjs +15 -12
  57. package/constants/token-data/index.cjs +1 -0
  58. package/constants/token-data/index.d.ts +972 -15
  59. package/constants/token-data/index.mjs +34 -0
  60. package/constants/token-data/localhostRegistry.json.cjs +1 -1
  61. package/constants/token-data/localhostRegistry.json.mjs +15 -12
  62. package/constants/token-data/optimismRegistry.json.cjs +1 -1
  63. package/constants/token-data/optimismRegistry.json.mjs +4 -1
  64. package/constants/token-data/optimismRegistryFixed.json.cjs +1 -1
  65. package/constants/token-data/optimismRegistryFixed.json.mjs +4 -1
  66. package/constants/token-data/polygonRegistry.json.cjs +1 -1
  67. package/constants/token-data/polygonRegistry.json.mjs +4 -1
  68. package/constants/token-data/polygonRegistryFixed.json.cjs +1 -1
  69. package/constants/token-data/polygonRegistryFixed.json.mjs +4 -1
  70. package/data-structures/Hinkal/Hinkal.cjs +1 -1
  71. package/data-structures/Hinkal/Hinkal.d.ts +2 -0
  72. package/data-structures/Hinkal/Hinkal.mjs +38 -32
  73. package/data-structures/Hinkal/IHinkal.d.ts +2 -0
  74. package/data-structures/Hinkal/hinkalActionBeefy.cjs +1 -1
  75. package/data-structures/Hinkal/hinkalActionBeefy.mjs +21 -20
  76. package/data-structures/Hinkal/hinkalActionConvex.cjs +1 -1
  77. package/data-structures/Hinkal/hinkalActionConvex.mjs +13 -12
  78. package/data-structures/Hinkal/hinkalActionCurve.cjs +1 -1
  79. package/data-structures/Hinkal/hinkalActionCurve.mjs +15 -14
  80. package/data-structures/Hinkal/hinkalActionLidoEth.cjs +1 -1
  81. package/data-structures/Hinkal/hinkalActionLidoEth.mjs +17 -16
  82. package/data-structures/Hinkal/hinkalActionPendle.cjs +1 -1
  83. package/data-structures/Hinkal/hinkalActionPendle.d.ts +1 -1
  84. package/data-structures/Hinkal/hinkalActionPendle.mjs +24 -23
  85. package/data-structures/Hinkal/hinkalActionPendleLP.cjs +1 -1
  86. package/data-structures/Hinkal/hinkalActionPendleLP.mjs +21 -20
  87. package/data-structures/Hinkal/hinkalActionStake.cjs +1 -1
  88. package/data-structures/Hinkal/hinkalActionStake.d.ts +1 -1
  89. package/data-structures/Hinkal/hinkalActionStake.mjs +6 -5
  90. package/data-structures/Hinkal/hinkalActionVolatile.cjs +1 -1
  91. package/data-structures/Hinkal/hinkalActionVolatile.d.ts +1 -1
  92. package/data-structures/Hinkal/hinkalActionVolatile.mjs +9 -8
  93. package/data-structures/Hinkal/hinkalDeposit.cjs +1 -1
  94. package/data-structures/Hinkal/hinkalDeposit.d.ts +2 -2
  95. package/data-structures/Hinkal/hinkalDeposit.mjs +93 -54
  96. package/data-structures/Hinkal/hinkalGetZkMeProvider.cjs +1 -1
  97. package/data-structures/Hinkal/hinkalGetZkMeProvider.mjs +3 -2
  98. package/data-structures/Hinkal/hinkalPrivateWallet.cjs +1 -1
  99. package/data-structures/Hinkal/hinkalPrivateWallet.mjs +5 -4
  100. package/data-structures/Hinkal/hinkalSwap.cjs +1 -1
  101. package/data-structures/Hinkal/hinkalSwap.mjs +23 -22
  102. package/data-structures/Hinkal/hinkalWithdraw.cjs +1 -1
  103. package/data-structures/Hinkal/hinkalWithdraw.d.ts +1 -1
  104. package/data-structures/Hinkal/hinkalWithdraw.mjs +13 -12
  105. package/data-structures/merkle-tree/MerkleTree.cjs +1 -1
  106. package/data-structures/merkle-tree/MerkleTree.d.ts +2 -0
  107. package/data-structures/merkle-tree/MerkleTree.mjs +38 -25
  108. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.cjs +1 -0
  109. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.d.ts +3 -0
  110. package/data-structures/merkle-tree/getPatchedAccessTokenMerkleTree.mjs +9 -0
  111. package/data-structures/merkle-tree/index.d.ts +1 -0
  112. package/data-structures/transactions-manager/TransactionsManager.cjs +1 -1
  113. package/data-structures/transactions-manager/TransactionsManager.d.ts +6 -5
  114. package/data-structures/transactions-manager/TransactionsManager.mjs +118 -111
  115. package/error-handling/error-codes.constants.cjs +1 -1
  116. package/error-handling/error-codes.constants.d.ts +4 -0
  117. package/error-handling/error-codes.constants.mjs +6 -2
  118. package/externalABIs/BabPassport.json.cjs +1 -1
  119. package/externalABIs/BabPassport.json.mjs +8 -3
  120. package/externalABIs/BeefyRouterAbi.json.cjs +1 -1
  121. package/externalABIs/BeefyRouterAbi.json.mjs +5 -2
  122. package/externalABIs/BeefyStrategyAbi.json.cjs +1 -1
  123. package/externalABIs/BeefyStrategyAbi.json.mjs +5 -2
  124. package/externalABIs/BeefyVaultAbi.json.cjs +1 -1
  125. package/externalABIs/BeefyVaultAbi.json.mjs +5 -2
  126. package/externalABIs/BeefyZapAbi.json.cjs +1 -1
  127. package/externalABIs/BeefyZapAbi.json.mjs +5 -2
  128. package/externalABIs/BeefyZapOneInchAbi.json.cjs +1 -1
  129. package/externalABIs/BeefyZapOneInchAbi.json.mjs +5 -2
  130. package/externalABIs/ConvexBoosterAbi.json.cjs +1 -1
  131. package/externalABIs/ConvexBoosterAbi.json.mjs +5 -2
  132. package/externalABIs/ConvexBoosterAbiMainnet.json.cjs +1 -1
  133. package/externalABIs/ConvexBoosterAbiMainnet.json.mjs +5 -2
  134. package/externalABIs/ConvexRewardPoolAbi.json.cjs +1 -1
  135. package/externalABIs/ConvexRewardPoolAbi.json.mjs +5 -2
  136. package/externalABIs/CurveReadingWrapperAbi.json.cjs +1 -1
  137. package/externalABIs/CurveReadingWrapperAbi.json.mjs +5 -2
  138. package/externalABIs/CurveWrappedMainPool.json.cjs +1 -1
  139. package/externalABIs/CurveWrappedMainPool.json.mjs +5 -2
  140. package/externalABIs/CurveZap.json.cjs +1 -1
  141. package/externalABIs/CurveZap.json.mjs +5 -2
  142. package/externalABIs/CvxCrvUtilities.json.cjs +1 -1
  143. package/externalABIs/CvxCrvUtilities.json.mjs +5 -2
  144. package/externalABIs/ERC20.json.cjs +1 -1
  145. package/externalABIs/ERC20.json.mjs +20 -3
  146. package/externalABIs/GalxePassport.json.cjs +1 -1
  147. package/externalABIs/GalxePassport.json.mjs +8 -3
  148. package/externalABIs/IQuoterV2.json.cjs +1 -1
  149. package/externalABIs/IQuoterV2.json.mjs +20 -3
  150. package/externalABIs/ISwapRouter.json.cjs +1 -1
  151. package/externalABIs/ISwapRouter.json.mjs +5 -2
  152. package/externalABIs/IUniswapV3Factory.json.cjs +1 -1
  153. package/externalABIs/IUniswapV3Factory.json.mjs +20 -3
  154. package/externalABIs/IUniswapV3Pool.json.cjs +1 -1
  155. package/externalABIs/IUniswapV3Pool.json.mjs +20 -3
  156. package/externalABIs/PendleRouterAbi.json.cjs +1 -1
  157. package/externalABIs/PendleRouterAbi.json.mjs +5 -2
  158. package/externalABIs/UniswapV2PoolAbi.json.cjs +1 -1
  159. package/externalABIs/UniswapV2PoolAbi.json.mjs +16 -3
  160. package/externalABIs/index.cjs +1 -0
  161. package/externalABIs/index.d.ts +307 -11
  162. package/externalABIs/index.mjs +23 -0
  163. package/externalABIs/transactionsProver.json.cjs +1 -1
  164. package/externalABIs/transactionsProver.json.mjs +20 -3
  165. package/functions/kyc/zkMeHelper.cjs +1 -1
  166. package/functions/kyc/zkMeHelper.d.ts +0 -1
  167. package/functions/kyc/zkMeHelper.mjs +8 -11
  168. package/functions/pre-transaction/process-gas-estimates.cjs +1 -1
  169. package/functions/pre-transaction/process-gas-estimates.mjs +3 -2
  170. package/functions/private-wallet/opProducer.cjs +1 -1
  171. package/functions/private-wallet/opProducer.mjs +9 -10
  172. package/functions/protocols/convex.protocols.cjs +1 -1
  173. package/functions/protocols/convex.protocols.mjs +3 -2
  174. package/functions/protocols/pendle.helpers.cjs +1 -1
  175. package/functions/protocols/pendle.helpers.mjs +14 -13
  176. package/functions/snarkjs/constant.cjs +1 -1
  177. package/functions/snarkjs/constant.d.ts +1 -0
  178. package/functions/snarkjs/constant.mjs +6 -5
  179. package/functions/snarkjs/constructEmporiumProof.cjs +1 -1
  180. package/functions/snarkjs/constructEmporiumProof.d.ts +1 -1
  181. package/functions/snarkjs/constructEmporiumProof.mjs +31 -31
  182. package/functions/snarkjs/constructGeneralZkProof.cjs +1 -1
  183. package/functions/snarkjs/constructGeneralZkProof.d.ts +1 -1
  184. package/functions/snarkjs/constructGeneralZkProof.mjs +76 -75
  185. package/functions/snarkjs/generateZkProof.cjs +1 -1
  186. package/functions/snarkjs/generateZkProof.d.ts +1 -1
  187. package/functions/snarkjs/generateZkProof.mjs +4 -15
  188. package/functions/snarkjs/generateZkProofEnclave.cjs +1 -0
  189. package/functions/snarkjs/generateZkProofEnclave.d.ts +5 -0
  190. package/functions/snarkjs/generateZkProofEnclave.mjs +33 -0
  191. package/functions/snarkjs/generateZkProofSelf.cjs +1 -0
  192. package/functions/snarkjs/generateZkProofSelf.d.ts +5 -0
  193. package/functions/snarkjs/generateZkProofSelf.mjs +17 -0
  194. package/functions/utils/axelar.utils.cjs +1 -1
  195. package/functions/utils/axelar.utils.mjs +3 -2
  196. package/functions/utils/cacheDevice.utils.cjs +1 -1
  197. package/functions/utils/cacheDevice.utils.mjs +9 -8
  198. package/functions/utils/erc20tokenFunctions.cjs +1 -1
  199. package/functions/utils/erc20tokenFunctions.mjs +8 -7
  200. package/functions/utils/evmNetworkFunctions.cjs +1 -1
  201. package/functions/utils/evmNetworkFunctions.mjs +4 -3
  202. package/functions/utils/userAgent.cjs +1 -1
  203. package/functions/utils/userAgent.mjs +8 -8
  204. package/functions/web3/functionCalls/accessTokenCalls.cjs +1 -1
  205. package/functions/web3/functionCalls/accessTokenCalls.mjs +8 -8
  206. package/functions/web3/functionCalls/transactCallDirect.cjs +1 -1
  207. package/functions/web3/functionCalls/transactCallDirect.d.ts +1 -1
  208. package/functions/web3/functionCalls/transactCallDirect.mjs +43 -29
  209. package/functions/web3/functionCalls/transactCallRelayer.cjs +1 -1
  210. package/functions/web3/functionCalls/transactCallRelayer.mjs +10 -8
  211. package/functions/web3/getContractMetadata.cjs +1 -0
  212. package/functions/web3/getContractMetadata.d.ts +5 -0
  213. package/functions/web3/getContractMetadata.mjs +30 -0
  214. package/functions/web3/odosAPI.cjs +1 -1
  215. package/functions/web3/odosAPI.d.ts +1 -2
  216. package/functions/web3/odosAPI.mjs +19 -18
  217. package/functions/web3/oneInchAPI.cjs +1 -1
  218. package/functions/web3/oneInchAPI.d.ts +1 -2
  219. package/functions/web3/oneInchAPI.mjs +17 -15
  220. package/functions/web3/uniswapAPI.cjs +1 -1
  221. package/functions/web3/uniswapAPI.d.ts +4 -4
  222. package/functions/web3/uniswapAPI.mjs +54 -43
  223. package/index.cjs +1 -1
  224. package/index.mjs +617 -638
  225. package/package.json +4 -3
  226. package/providers/EthersProviderAdapter.cjs +1 -1
  227. package/providers/EthersProviderAdapter.d.ts +1 -0
  228. package/providers/EthersProviderAdapter.mjs +26 -37
  229. package/providers/WagmiProviderAdapter.cjs +1 -1
  230. package/providers/WagmiProviderAdapter.d.ts +1 -1
  231. package/providers/WagmiProviderAdapter.mjs +52 -66
  232. package/providers/exportProviers.d.ts +1 -1
  233. package/providers/prepareEthersHinkal.cjs +1 -1
  234. package/providers/prepareEthersHinkal.mjs +4 -2
  235. package/providers/prepareWagmiHinkal.cjs +1 -1
  236. package/providers/prepareWagmiHinkal.mjs +4 -2
  237. package/types/ethereum-network.types.cjs +1 -1
  238. package/types/ethereum-network.types.d.ts +62 -59
  239. package/types/ethereum-network.types.mjs +1 -1
  240. package/types/hinkal.types.d.ts +4 -0
  241. package/types/kyc.types.cjs +1 -1
  242. package/types/kyc.types.d.ts +1 -1
  243. package/types/kyc.types.mjs +1 -1
  244. package/types/remote-proof.types.d.ts +15 -0
  245. package/types/rewards.types.d.ts +5 -0
  246. package/types/time.types.cjs +1 -1
  247. package/types/time.types.mjs +1 -1
  248. package/webworker/zkProofWorker/zkProofWorkerLauncher.cjs +1 -1
  249. package/webworker/zkProofWorker/zkProofWorkerLauncher.mjs +1 -1
@@ -6409,7 +6409,7 @@ const e = "0x41658B0DaF59Bb2FbB2D9A5249207011d2B364De", t = [
6409
6409
  stateMutability: "nonpayable",
6410
6410
  type: "function"
6411
6411
  }
6412
- ], v = [
6412
+ ], h = [
6413
6413
  {
6414
6414
  inputs: [
6415
6415
  {
@@ -6909,7 +6909,7 @@ const e = "0x41658B0DaF59Bb2FbB2D9A5249207011d2B364De", t = [
6909
6909
  stateMutability: "nonpayable",
6910
6910
  type: "function"
6911
6911
  }
6912
- ], h = [
6912
+ ], v = [
6913
6913
  {
6914
6914
  inputs: [
6915
6915
  {
@@ -7837,7 +7837,7 @@ const e = "0x41658B0DaF59Bb2FbB2D9A5249207011d2B364De", t = [
7837
7837
  stateMutability: "payable",
7838
7838
  type: "receive"
7839
7839
  }
7840
- ], H = "0xA4D233Da2a8aC86Ff0E47d9b601B24b67E9B239d", g = [
7840
+ ], g = "0xA4D233Da2a8aC86Ff0E47d9b601B24b67E9B239d", H = [
7841
7841
  {
7842
7842
  inputs: [
7843
7843
  {
@@ -8360,7 +8360,838 @@ const e = "0x41658B0DaF59Bb2FbB2D9A5249207011d2B364De", t = [
8360
8360
  stateMutability: "payable",
8361
8361
  type: "receive"
8362
8362
  }
8363
- ], I = "0x6d007d431175b32A308f7a001e62196aEa8e7693", O = "0x0bd4610C1D3DB87C2b5a403674c655B6a1138109", R = {
8363
+ ], O = "0x6d007d431175b32A308f7a001e62196aEa8e7693", I = "0x0bd4610C1D3DB87C2b5a403674c655B6a1138109", R = "0xA7EFDCFff02A89050aAFfB931553E7838792F1FB", D = [
8364
+ {
8365
+ inputs: [
8366
+ {
8367
+ internalType: "address",
8368
+ name: "_accessToken",
8369
+ type: "address"
8370
+ },
8371
+ {
8372
+ internalType: "address",
8373
+ name: "_hinkal",
8374
+ type: "address"
8375
+ }
8376
+ ],
8377
+ stateMutability: "nonpayable",
8378
+ type: "constructor"
8379
+ },
8380
+ {
8381
+ anonymous: !1,
8382
+ inputs: [
8383
+ {
8384
+ indexed: !0,
8385
+ internalType: "address",
8386
+ name: "previousOwner",
8387
+ type: "address"
8388
+ },
8389
+ {
8390
+ indexed: !0,
8391
+ internalType: "address",
8392
+ name: "newOwner",
8393
+ type: "address"
8394
+ }
8395
+ ],
8396
+ name: "OwnershipTransferStarted",
8397
+ type: "event"
8398
+ },
8399
+ {
8400
+ anonymous: !1,
8401
+ inputs: [
8402
+ {
8403
+ indexed: !0,
8404
+ internalType: "address",
8405
+ name: "previousOwner",
8406
+ type: "address"
8407
+ },
8408
+ {
8409
+ indexed: !0,
8410
+ internalType: "address",
8411
+ name: "newOwner",
8412
+ type: "address"
8413
+ }
8414
+ ],
8415
+ name: "OwnershipTransferred",
8416
+ type: "event"
8417
+ },
8418
+ {
8419
+ inputs: [],
8420
+ name: "acceptOwnership",
8421
+ outputs: [],
8422
+ stateMutability: "nonpayable",
8423
+ type: "function"
8424
+ },
8425
+ {
8426
+ inputs: [],
8427
+ name: "accessToken",
8428
+ outputs: [
8429
+ {
8430
+ internalType: "contract IExtendedCrossChainAccessToken",
8431
+ name: "",
8432
+ type: "address"
8433
+ }
8434
+ ],
8435
+ stateMutability: "view",
8436
+ type: "function"
8437
+ },
8438
+ {
8439
+ inputs: [],
8440
+ name: "accessTokenAcceptOwnership",
8441
+ outputs: [],
8442
+ stateMutability: "nonpayable",
8443
+ type: "function"
8444
+ },
8445
+ {
8446
+ inputs: [
8447
+ {
8448
+ internalType: "address",
8449
+ name: "newOwner",
8450
+ type: "address"
8451
+ }
8452
+ ],
8453
+ name: "accessTokenTransferOwnership",
8454
+ outputs: [],
8455
+ stateMutability: "nonpayable",
8456
+ type: "function"
8457
+ },
8458
+ {
8459
+ inputs: [
8460
+ {
8461
+ components: [
8462
+ {
8463
+ internalType: "uint8",
8464
+ name: "v",
8465
+ type: "uint8"
8466
+ },
8467
+ {
8468
+ internalType: "bytes32",
8469
+ name: "r",
8470
+ type: "bytes32"
8471
+ },
8472
+ {
8473
+ internalType: "bytes32",
8474
+ name: "s",
8475
+ type: "bytes32"
8476
+ },
8477
+ {
8478
+ internalType: "uint256",
8479
+ name: "accessKey",
8480
+ type: "uint256"
8481
+ },
8482
+ {
8483
+ internalType: "uint256",
8484
+ name: "nonce",
8485
+ type: "uint256"
8486
+ }
8487
+ ],
8488
+ internalType: "struct SignatureData",
8489
+ name: "signatureData",
8490
+ type: "tuple"
8491
+ }
8492
+ ],
8493
+ name: "addToken",
8494
+ outputs: [],
8495
+ stateMutability: "payable",
8496
+ type: "function"
8497
+ },
8498
+ {
8499
+ inputs: [
8500
+ {
8501
+ components: [
8502
+ {
8503
+ internalType: "uint8",
8504
+ name: "v",
8505
+ type: "uint8"
8506
+ },
8507
+ {
8508
+ internalType: "bytes32",
8509
+ name: "r",
8510
+ type: "bytes32"
8511
+ },
8512
+ {
8513
+ internalType: "bytes32",
8514
+ name: "s",
8515
+ type: "bytes32"
8516
+ },
8517
+ {
8518
+ internalType: "uint256",
8519
+ name: "accessKey",
8520
+ type: "uint256"
8521
+ },
8522
+ {
8523
+ internalType: "uint256",
8524
+ name: "nonce",
8525
+ type: "uint256"
8526
+ }
8527
+ ],
8528
+ internalType: "struct SignatureData",
8529
+ name: "signatureData",
8530
+ type: "tuple"
8531
+ },
8532
+ {
8533
+ internalType: "uint256[2]",
8534
+ name: "a",
8535
+ type: "uint256[2]"
8536
+ },
8537
+ {
8538
+ internalType: "uint256[2][2]",
8539
+ name: "b",
8540
+ type: "uint256[2][2]"
8541
+ },
8542
+ {
8543
+ internalType: "uint256[2]",
8544
+ name: "c",
8545
+ type: "uint256[2]"
8546
+ },
8547
+ {
8548
+ components: [
8549
+ {
8550
+ internalType: "uint16",
8551
+ name: "tokenNumber",
8552
+ type: "uint16"
8553
+ },
8554
+ {
8555
+ internalType: "uint16",
8556
+ name: "nullifierAmount",
8557
+ type: "uint16"
8558
+ },
8559
+ {
8560
+ internalType: "uint16",
8561
+ name: "outputAmount",
8562
+ type: "uint16"
8563
+ }
8564
+ ],
8565
+ internalType: "struct Dimensions",
8566
+ name: "dimensions",
8567
+ type: "tuple"
8568
+ },
8569
+ {
8570
+ components: [
8571
+ {
8572
+ internalType: "uint256",
8573
+ name: "rootHashHinkal",
8574
+ type: "uint256"
8575
+ },
8576
+ {
8577
+ internalType: "address[]",
8578
+ name: "erc20TokenAddresses",
8579
+ type: "address[]"
8580
+ },
8581
+ {
8582
+ internalType: "uint256[]",
8583
+ name: "tokenIds",
8584
+ type: "uint256[]"
8585
+ },
8586
+ {
8587
+ internalType: "int256[]",
8588
+ name: "amountChanges",
8589
+ type: "int256[]"
8590
+ },
8591
+ {
8592
+ internalType: "uint256[][]",
8593
+ name: "inputNullifiers",
8594
+ type: "uint256[][]"
8595
+ },
8596
+ {
8597
+ internalType: "uint256[][]",
8598
+ name: "outCommitments",
8599
+ type: "uint256[][]"
8600
+ },
8601
+ {
8602
+ internalType: "bytes[][]",
8603
+ name: "encryptedOutputs",
8604
+ type: "bytes[][]"
8605
+ },
8606
+ {
8607
+ internalType: "uint256[]",
8608
+ name: "flatFees",
8609
+ type: "uint256[]"
8610
+ },
8611
+ {
8612
+ internalType: "uint256",
8613
+ name: "timeStamp",
8614
+ type: "uint256"
8615
+ },
8616
+ {
8617
+ components: [
8618
+ {
8619
+ internalType: "uint256",
8620
+ name: "extraRandomization",
8621
+ type: "uint256"
8622
+ },
8623
+ {
8624
+ internalType: "uint256",
8625
+ name: "stealthAddress",
8626
+ type: "uint256"
8627
+ },
8628
+ {
8629
+ internalType: "uint256",
8630
+ name: "H0",
8631
+ type: "uint256"
8632
+ },
8633
+ {
8634
+ internalType: "uint256",
8635
+ name: "H1",
8636
+ type: "uint256"
8637
+ }
8638
+ ],
8639
+ internalType: "struct StealthAddressStructure",
8640
+ name: "stealthAddressStructure",
8641
+ type: "tuple"
8642
+ },
8643
+ {
8644
+ internalType: "uint256",
8645
+ name: "rootHashAccessToken",
8646
+ type: "uint256"
8647
+ },
8648
+ {
8649
+ internalType: "uint256",
8650
+ name: "calldataHash",
8651
+ type: "uint256"
8652
+ },
8653
+ {
8654
+ internalType: "uint16",
8655
+ name: "publicSignalCount",
8656
+ type: "uint16"
8657
+ },
8658
+ {
8659
+ internalType: "address",
8660
+ name: "relay",
8661
+ type: "address"
8662
+ },
8663
+ {
8664
+ internalType: "address",
8665
+ name: "externalAddress",
8666
+ type: "address"
8667
+ },
8668
+ {
8669
+ internalType: "uint256",
8670
+ name: "externalActionId",
8671
+ type: "uint256"
8672
+ },
8673
+ {
8674
+ internalType: "bytes",
8675
+ name: "externalActionMetadata",
8676
+ type: "bytes"
8677
+ },
8678
+ {
8679
+ components: [
8680
+ {
8681
+ internalType: "address",
8682
+ name: "preHookContract",
8683
+ type: "address"
8684
+ },
8685
+ {
8686
+ internalType: "address",
8687
+ name: "hookContract",
8688
+ type: "address"
8689
+ },
8690
+ {
8691
+ internalType: "bytes",
8692
+ name: "preHookMetadata",
8693
+ type: "bytes"
8694
+ },
8695
+ {
8696
+ internalType: "bytes",
8697
+ name: "postHookMetadata",
8698
+ type: "bytes"
8699
+ }
8700
+ ],
8701
+ internalType: "struct HookData",
8702
+ name: "hookData",
8703
+ type: "tuple"
8704
+ }
8705
+ ],
8706
+ internalType: "struct CircomData",
8707
+ name: "circomData",
8708
+ type: "tuple"
8709
+ }
8710
+ ],
8711
+ name: "addTokenAndTransact",
8712
+ outputs: [],
8713
+ stateMutability: "payable",
8714
+ type: "function"
8715
+ },
8716
+ {
8717
+ inputs: [
8718
+ {
8719
+ components: [
8720
+ {
8721
+ internalType: "uint8",
8722
+ name: "v",
8723
+ type: "uint8"
8724
+ },
8725
+ {
8726
+ internalType: "bytes32",
8727
+ name: "r",
8728
+ type: "bytes32"
8729
+ },
8730
+ {
8731
+ internalType: "bytes32",
8732
+ name: "s",
8733
+ type: "bytes32"
8734
+ },
8735
+ {
8736
+ internalType: "uint256",
8737
+ name: "accessKey",
8738
+ type: "uint256"
8739
+ },
8740
+ {
8741
+ internalType: "uint256",
8742
+ name: "nonce",
8743
+ type: "uint256"
8744
+ }
8745
+ ],
8746
+ internalType: "struct SignatureData",
8747
+ name: "signatureData",
8748
+ type: "tuple"
8749
+ },
8750
+ {
8751
+ components: [
8752
+ {
8753
+ components: [
8754
+ {
8755
+ internalType: "string",
8756
+ name: "destinationChain",
8757
+ type: "string"
8758
+ },
8759
+ {
8760
+ internalType: "string",
8761
+ name: "destinationAddress",
8762
+ type: "string"
8763
+ },
8764
+ {
8765
+ internalType: "uint256",
8766
+ name: "messageFee",
8767
+ type: "uint256"
8768
+ }
8769
+ ],
8770
+ internalType: "struct AxelarChainInfo[]",
8771
+ name: "chains",
8772
+ type: "tuple[]"
8773
+ },
8774
+ {
8775
+ internalType: "uint256",
8776
+ name: "totalMessageFees",
8777
+ type: "uint256"
8778
+ }
8779
+ ],
8780
+ internalType: "struct AxelarCapsule",
8781
+ name: "capsule",
8782
+ type: "tuple"
8783
+ }
8784
+ ],
8785
+ name: "addTokenCrossChain",
8786
+ outputs: [],
8787
+ stateMutability: "payable",
8788
+ type: "function"
8789
+ },
8790
+ {
8791
+ inputs: [
8792
+ {
8793
+ components: [
8794
+ {
8795
+ internalType: "uint256",
8796
+ name: "accessToken",
8797
+ type: "uint256"
8798
+ },
8799
+ {
8800
+ internalType: "address",
8801
+ name: "ethAddress",
8802
+ type: "address"
8803
+ }
8804
+ ],
8805
+ internalType: "struct AccessTokenWithAddress[]",
8806
+ name: "accessObjects",
8807
+ type: "tuple[]"
8808
+ }
8809
+ ],
8810
+ name: "approveTokens",
8811
+ outputs: [],
8812
+ stateMutability: "nonpayable",
8813
+ type: "function"
8814
+ },
8815
+ {
8816
+ inputs: [
8817
+ {
8818
+ internalType: "uint256",
8819
+ name: "accessKey",
8820
+ type: "uint256"
8821
+ },
8822
+ {
8823
+ internalType: "uint256",
8824
+ name: "index",
8825
+ type: "uint256"
8826
+ }
8827
+ ],
8828
+ name: "blacklistAccessKey",
8829
+ outputs: [],
8830
+ stateMutability: "nonpayable",
8831
+ type: "function"
8832
+ },
8833
+ {
8834
+ inputs: [
8835
+ {
8836
+ internalType: "address",
8837
+ name: "_address",
8838
+ type: "address"
8839
+ }
8840
+ ],
8841
+ name: "blacklistAddress",
8842
+ outputs: [],
8843
+ stateMutability: "nonpayable",
8844
+ type: "function"
8845
+ },
8846
+ {
8847
+ inputs: [
8848
+ {
8849
+ internalType: "uint256",
8850
+ name: "rootHashAccessToken",
8851
+ type: "uint256"
8852
+ },
8853
+ {
8854
+ internalType: "address",
8855
+ name: "sender",
8856
+ type: "address"
8857
+ }
8858
+ ],
8859
+ name: "checkForRootHash",
8860
+ outputs: [
8861
+ {
8862
+ internalType: "bool",
8863
+ name: "",
8864
+ type: "bool"
8865
+ }
8866
+ ],
8867
+ stateMutability: "view",
8868
+ type: "function"
8869
+ },
8870
+ {
8871
+ inputs: [
8872
+ {
8873
+ internalType: "uint256",
8874
+ name: "leaf",
8875
+ type: "uint256"
8876
+ }
8877
+ ],
8878
+ name: "getAccessTokenRootHash",
8879
+ outputs: [
8880
+ {
8881
+ internalType: "uint256",
8882
+ name: "newRoot",
8883
+ type: "uint256"
8884
+ }
8885
+ ],
8886
+ stateMutability: "view",
8887
+ type: "function"
8888
+ },
8889
+ {
8890
+ inputs: [
8891
+ {
8892
+ internalType: "uint256",
8893
+ name: "accessKey",
8894
+ type: "uint256"
8895
+ }
8896
+ ],
8897
+ name: "hasToken",
8898
+ outputs: [
8899
+ {
8900
+ internalType: "bool",
8901
+ name: "",
8902
+ type: "bool"
8903
+ }
8904
+ ],
8905
+ stateMutability: "view",
8906
+ type: "function"
8907
+ },
8908
+ {
8909
+ inputs: [],
8910
+ name: "hinkal",
8911
+ outputs: [
8912
+ {
8913
+ internalType: "address",
8914
+ name: "",
8915
+ type: "address"
8916
+ }
8917
+ ],
8918
+ stateMutability: "view",
8919
+ type: "function"
8920
+ },
8921
+ {
8922
+ inputs: [],
8923
+ name: "levels",
8924
+ outputs: [
8925
+ {
8926
+ internalType: "uint128",
8927
+ name: "",
8928
+ type: "uint128"
8929
+ }
8930
+ ],
8931
+ stateMutability: "view",
8932
+ type: "function"
8933
+ },
8934
+ {
8935
+ inputs: [
8936
+ {
8937
+ components: [
8938
+ {
8939
+ components: [
8940
+ {
8941
+ internalType: "string",
8942
+ name: "destinationChain",
8943
+ type: "string"
8944
+ },
8945
+ {
8946
+ internalType: "string",
8947
+ name: "destinationAddress",
8948
+ type: "string"
8949
+ },
8950
+ {
8951
+ internalType: "uint256",
8952
+ name: "messageFee",
8953
+ type: "uint256"
8954
+ }
8955
+ ],
8956
+ internalType: "struct AxelarChainInfo[]",
8957
+ name: "chains",
8958
+ type: "tuple[]"
8959
+ },
8960
+ {
8961
+ internalType: "uint256",
8962
+ name: "totalMessageFees",
8963
+ type: "uint256"
8964
+ }
8965
+ ],
8966
+ internalType: "struct AxelarCapsule",
8967
+ name: "capsule",
8968
+ type: "tuple"
8969
+ },
8970
+ {
8971
+ internalType: "uint256",
8972
+ name: "accessKey",
8973
+ type: "uint256"
8974
+ }
8975
+ ],
8976
+ name: "migrateAccessToken",
8977
+ outputs: [],
8978
+ stateMutability: "payable",
8979
+ type: "function"
8980
+ },
8981
+ {
8982
+ inputs: [],
8983
+ name: "minIndex",
8984
+ outputs: [
8985
+ {
8986
+ internalType: "uint256",
8987
+ name: "",
8988
+ type: "uint256"
8989
+ }
8990
+ ],
8991
+ stateMutability: "view",
8992
+ type: "function"
8993
+ },
8994
+ {
8995
+ inputs: [
8996
+ {
8997
+ internalType: "address",
8998
+ name: "",
8999
+ type: "address"
9000
+ },
9001
+ {
9002
+ internalType: "address",
9003
+ name: "",
9004
+ type: "address"
9005
+ },
9006
+ {
9007
+ internalType: "uint256",
9008
+ name: "",
9009
+ type: "uint256"
9010
+ },
9011
+ {
9012
+ internalType: "bytes",
9013
+ name: "",
9014
+ type: "bytes"
9015
+ }
9016
+ ],
9017
+ name: "onERC721Received",
9018
+ outputs: [
9019
+ {
9020
+ internalType: "bytes4",
9021
+ name: "",
9022
+ type: "bytes4"
9023
+ }
9024
+ ],
9025
+ stateMutability: "pure",
9026
+ type: "function"
9027
+ },
9028
+ {
9029
+ inputs: [],
9030
+ name: "owner",
9031
+ outputs: [
9032
+ {
9033
+ internalType: "address",
9034
+ name: "",
9035
+ type: "address"
9036
+ }
9037
+ ],
9038
+ stateMutability: "view",
9039
+ type: "function"
9040
+ },
9041
+ {
9042
+ inputs: [],
9043
+ name: "pendingOwner",
9044
+ outputs: [
9045
+ {
9046
+ internalType: "address",
9047
+ name: "",
9048
+ type: "address"
9049
+ }
9050
+ ],
9051
+ stateMutability: "view",
9052
+ type: "function"
9053
+ },
9054
+ {
9055
+ inputs: [
9056
+ {
9057
+ internalType: "address",
9058
+ name: "sender",
9059
+ type: "address"
9060
+ }
9061
+ ],
9062
+ name: "registerCheck",
9063
+ outputs: [],
9064
+ stateMutability: "view",
9065
+ type: "function"
9066
+ },
9067
+ {
9068
+ inputs: [
9069
+ {
9070
+ internalType: "address",
9071
+ name: "_address",
9072
+ type: "address"
9073
+ }
9074
+ ],
9075
+ name: "removeAddressFromBlacklist",
9076
+ outputs: [],
9077
+ stateMutability: "nonpayable",
9078
+ type: "function"
9079
+ },
9080
+ {
9081
+ inputs: [],
9082
+ name: "renounceOwnership",
9083
+ outputs: [],
9084
+ stateMutability: "view",
9085
+ type: "function"
9086
+ },
9087
+ {
9088
+ inputs: [
9089
+ {
9090
+ internalType: "address",
9091
+ name: "_accessToken",
9092
+ type: "address"
9093
+ }
9094
+ ],
9095
+ name: "setAccessToken",
9096
+ outputs: [],
9097
+ stateMutability: "nonpayable",
9098
+ type: "function"
9099
+ },
9100
+ {
9101
+ inputs: [
9102
+ {
9103
+ internalType: "address",
9104
+ name: "_gasService",
9105
+ type: "address"
9106
+ }
9107
+ ],
9108
+ name: "setAxelarGasService",
9109
+ outputs: [],
9110
+ stateMutability: "nonpayable",
9111
+ type: "function"
9112
+ },
9113
+ {
9114
+ inputs: [
9115
+ {
9116
+ components: [
9117
+ {
9118
+ internalType: "string",
9119
+ name: "sourceChain",
9120
+ type: "string"
9121
+ },
9122
+ {
9123
+ internalType: "address",
9124
+ name: "sourceAddress",
9125
+ type: "address"
9126
+ }
9127
+ ],
9128
+ internalType: "struct ICrossChainAccessToken.CrossChainAccessTokenRegistryUpdate[]",
9129
+ name: "updates",
9130
+ type: "tuple[]"
9131
+ }
9132
+ ],
9133
+ name: "setCrossChainAccessTokenRegistry",
9134
+ outputs: [],
9135
+ stateMutability: "nonpayable",
9136
+ type: "function"
9137
+ },
9138
+ {
9139
+ inputs: [
9140
+ {
9141
+ internalType: "uint256",
9142
+ name: "_mintingFee",
9143
+ type: "uint256"
9144
+ }
9145
+ ],
9146
+ name: "setMintingFee",
9147
+ outputs: [],
9148
+ stateMutability: "nonpayable",
9149
+ type: "function"
9150
+ },
9151
+ {
9152
+ inputs: [
9153
+ {
9154
+ internalType: "address",
9155
+ name: "newOwner",
9156
+ type: "address"
9157
+ }
9158
+ ],
9159
+ name: "transferOwnership",
9160
+ outputs: [],
9161
+ stateMutability: "nonpayable",
9162
+ type: "function"
9163
+ },
9164
+ {
9165
+ inputs: [
9166
+ {
9167
+ internalType: "uint256",
9168
+ name: "",
9169
+ type: "uint256"
9170
+ }
9171
+ ],
9172
+ name: "usedNonces",
9173
+ outputs: [
9174
+ {
9175
+ internalType: "bool",
9176
+ name: "",
9177
+ type: "bool"
9178
+ }
9179
+ ],
9180
+ stateMutability: "view",
9181
+ type: "function"
9182
+ },
9183
+ {
9184
+ inputs: [],
9185
+ name: "withdraw",
9186
+ outputs: [],
9187
+ stateMutability: "payable",
9188
+ type: "function"
9189
+ },
9190
+ {
9191
+ stateMutability: "payable",
9192
+ type: "receive"
9193
+ }
9194
+ ], _ = {
8364
9195
  hinkalAddress: e,
8365
9196
  hinkalABI: t,
8366
9197
  hinkalHelperAddress: n,
@@ -8382,45 +9213,49 @@ const e = "0x41658B0DaF59Bb2FbB2D9A5249207011d2B364De", t = [
8382
9213
  wrappedStakedConvexLpABI: A,
8383
9214
  BeefyExternalActionABI: k,
8384
9215
  BeefyStakeExternalActionABI: M,
8385
- WrappedStakedBeefyLpABI: v,
8386
- pendleExternalActionABI: h,
9216
+ WrappedStakedBeefyLpABI: h,
9217
+ pendleExternalActionABI: v,
8387
9218
  volatileTokenActionInstanceAddress: w,
8388
9219
  VolatileTokenActionABI: x,
8389
- hinkalWrapperAddress: H,
8390
- HinkalWrapperABI: g,
9220
+ hinkalWrapperAddress: g,
9221
+ HinkalWrapperABI: H,
8391
9222
  volatileVaultInstanceAddress: C,
8392
9223
  VolatileVaultABI: S,
8393
- emporiumAddress: I,
8394
- hinkalWalletFactoryAddress: O
9224
+ emporiumAddress: O,
9225
+ hinkalWalletFactoryAddress: I,
9226
+ crossChainAccessTokenManagerAddress: R,
9227
+ crossChainAccessTokenManagerABI: D
8395
9228
  };
8396
9229
  export {
8397
9230
  k as BeefyExternalActionABI,
8398
9231
  M as BeefyStakeExternalActionABI,
8399
- g as HinkalWrapperABI,
9232
+ H as HinkalWrapperABI,
8400
9233
  x as VolatileTokenActionABI,
8401
9234
  S as VolatileVaultABI,
8402
- v as WrappedStakedBeefyLpABI,
9235
+ h as WrappedStakedBeefyLpABI,
8403
9236
  u as beefyExternalActionInstanceAddress,
8404
9237
  d as beefyStakeExternalActionInstanceAddress,
8405
9238
  f as convexExternalActionABI,
8406
9239
  s as crossChainAccessTokenABI,
8407
9240
  i as crossChainAccessTokenAddress,
9241
+ D as crossChainAccessTokenManagerABI,
9242
+ R as crossChainAccessTokenManagerAddress,
8408
9243
  o as curveExternalActionABI,
8409
9244
  T as curveExternalActionDynamicABI,
8410
9245
  m as curveExternalActionDynamicInstanceAddress,
8411
9246
  l as curveExternalActionInstanceAddress,
8412
9247
  c as curveStakeExternalActionInstanceAddress,
8413
- R as default,
8414
- I as emporiumAddress,
9248
+ _ as default,
9249
+ O as emporiumAddress,
8415
9250
  t as hinkalABI,
8416
9251
  e as hinkalAddress,
8417
9252
  a as hinkalHelperABI,
8418
9253
  n as hinkalHelperAddress,
8419
- O as hinkalWalletFactoryAddress,
8420
- H as hinkalWrapperAddress,
9254
+ I as hinkalWalletFactoryAddress,
9255
+ g as hinkalWrapperAddress,
8421
9256
  r as odosExternalActionInstanceAddress,
8422
9257
  y as oneInchExternalActionInstanceAddress,
8423
- h as pendleExternalActionABI,
9258
+ v as pendleExternalActionABI,
8424
9259
  p as uniswapExternalActionAddress,
8425
9260
  w as volatileTokenActionInstanceAddress,
8426
9261
  C as volatileVaultInstanceAddress,