@paraswap/dex-lib 3.11.8-stader.3 → 3.11.8

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 (269) hide show
  1. package/.vscode/launch.json +53 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/abi/balancer-v3/batch-router.json +989 -0
  5. package/build/abi/balancer-v3/router.json +1792 -0
  6. package/build/abi/balancer-v3/vault-extension.json +2834 -0
  7. package/build/abi/{cables/CablesMainnetRFQ.json → inception/inception-ineth-pool.json} +489 -510
  8. package/build/abi/inception/inception-ratio-feed.json +329 -0
  9. package/build/abi/inception/inception-vault.json +991 -0
  10. package/build/abi/permit2.json +581 -0
  11. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +52 -0
  12. package/build/abi/usual-m-smart-m/usualM.abi.json +483 -0
  13. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +681 -0
  14. package/build/abi/{integral/relayer.json → wombat/pool.json} +474 -721
  15. package/build/dex/aave-v1/aave-v1.d.ts +2 -1
  16. package/build/dex/aave-v1/aave-v1.js +23 -0
  17. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  18. package/build/dex/aave-v2/tokens-avalanche.json +44 -0
  19. package/build/dex/aave-v2/tokens-mainnet.json +188 -0
  20. package/build/dex/aave-v2/tokens-polygon.json +44 -0
  21. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +729 -0
  22. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +732 -0
  23. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +1 -0
  24. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +1406 -0
  25. package/build/dex/balancer-v3/abi/balancerRouter.js +1175 -0
  26. package/build/dex/balancer-v3/abi/balancerRouter.js.map +1 -0
  27. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +2081 -0
  28. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +1851 -0
  29. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +1 -0
  30. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +80 -0
  31. package/build/dex/balancer-v3/balancer-v3-pool.js +461 -0
  32. package/build/dex/balancer-v3/balancer-v3-pool.js.map +1 -0
  33. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +34 -0
  34. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +406 -0
  35. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +1 -0
  36. package/build/dex/balancer-v3/balancer-v3.d.ts +57 -0
  37. package/build/dex/balancer-v3/balancer-v3.js +383 -0
  38. package/build/dex/balancer-v3/balancer-v3.js.map +1 -0
  39. package/build/dex/balancer-v3/config.d.ts +8 -0
  40. package/build/dex/balancer-v3/config.js +24 -0
  41. package/build/dex/balancer-v3/config.js.map +1 -0
  42. package/build/dex/balancer-v3/getGasCost.d.ts +2 -0
  43. package/build/dex/balancer-v3/getGasCost.js +41 -0
  44. package/build/dex/balancer-v3/getGasCost.js.map +1 -0
  45. package/build/dex/balancer-v3/getOnChainState.d.ts +10 -0
  46. package/build/dex/balancer-v3/getOnChainState.js +164 -0
  47. package/build/dex/balancer-v3/getOnChainState.js.map +1 -0
  48. package/build/dex/balancer-v3/getPoolsApi.d.ts +2 -0
  49. package/build/dex/balancer-v3/getPoolsApi.js +81 -0
  50. package/build/dex/balancer-v3/getPoolsApi.js.map +1 -0
  51. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +13 -0
  52. package/build/dex/balancer-v3/getTopPoolsApi.js +62 -0
  53. package/build/dex/balancer-v3/getTopPoolsApi.js.map +1 -0
  54. package/build/dex/balancer-v3/optimizer.d.ts +2 -0
  55. package/build/dex/{trader-joe-v2.1 → balancer-v3}/optimizer.js +17 -16
  56. package/build/dex/balancer-v3/optimizer.js.map +1 -0
  57. package/build/dex/balancer-v3/stablePool.d.ts +7 -0
  58. package/build/dex/balancer-v3/stablePool.js +73 -0
  59. package/build/dex/balancer-v3/stablePool.js.map +1 -0
  60. package/build/dex/balancer-v3/types.d.ts +62 -0
  61. package/build/dex/balancer-v3/types.js +3 -0
  62. package/build/dex/balancer-v3/types.js.map +1 -0
  63. package/build/dex/balancer-v3/weightedPool.d.ts +1 -0
  64. package/build/dex/balancer-v3/weightedPool.js +6 -0
  65. package/build/dex/balancer-v3/weightedPool.js.map +1 -0
  66. package/build/dex/bebop/constants.d.ts +1 -1
  67. package/build/dex/bebop/constants.js +1 -1
  68. package/build/dex/inception/config.d.ts +4 -0
  69. package/build/dex/inception/config.js +109 -0
  70. package/build/dex/inception/config.js.map +1 -0
  71. package/build/dex/inception/inception-event-pool.d.ts +16 -0
  72. package/build/dex/inception/inception-event-pool.js +49 -0
  73. package/build/dex/inception/inception-event-pool.js.map +1 -0
  74. package/build/dex/inception/inception.d.ts +43 -0
  75. package/build/dex/inception/inception.js +180 -0
  76. package/build/dex/inception/inception.js.map +1 -0
  77. package/build/dex/inception/tokens.d.ts +9 -0
  78. package/build/dex/inception/tokens.js +28 -0
  79. package/build/dex/inception/tokens.js.map +1 -0
  80. package/build/dex/inception/types.d.ts +22 -0
  81. package/build/dex/inception/types.js +3 -0
  82. package/build/dex/inception/types.js.map +1 -0
  83. package/build/dex/inception/utils.d.ts +7 -0
  84. package/build/dex/inception/utils.js +58 -0
  85. package/build/dex/inception/utils.js.map +1 -0
  86. package/build/dex/index.js +0 -2
  87. package/build/dex/index.js.map +1 -1
  88. package/build/dex/jarvis.d.ts +2 -1
  89. package/build/dex/jarvis.js +58 -0
  90. package/build/dex/jarvis.js.map +1 -1
  91. package/build/dex/maker-psm/scripts/gem.abi.json +136 -0
  92. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  93. package/build/dex/maker-psm/scripts/validate-state.js +185 -0
  94. package/build/dex/maker-psm/scripts/validate-state.js.map +1 -0
  95. package/build/dex/maker-psm/scripts/vat.abi.json +243 -0
  96. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.d.ts +1 -0
  97. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js +20 -0
  98. package/build/dex/pancakeswap-v3/pancakeswap-v3-pool.js.map +1 -1
  99. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +4 -0
  100. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  101. package/build/dex/platypus/platypus.d.ts +2 -1
  102. package/build/dex/platypus/platypus.js +45 -0
  103. package/build/dex/platypus/platypus.js.map +1 -1
  104. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +1 -0
  105. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +53 -0
  106. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +1 -0
  107. package/build/dex/stable-pool.js +1 -8
  108. package/build/dex/stable-pool.js.map +1 -1
  109. package/build/dex/swaap-v1/swaap-v1.d.ts +2 -1
  110. package/build/dex/swaap-v1/swaap-v1.js +14 -0
  111. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  112. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +17 -0
  113. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +64 -0
  114. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +1 -0
  115. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +17 -0
  116. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +79 -0
  117. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +1 -0
  118. package/build/dex/uniswap-v3/uniswap-v3-pool.d.ts +1 -0
  119. package/build/dex/uniswap-v3/uniswap-v3-pool.js +20 -0
  120. package/build/dex/uniswap-v3/uniswap-v3-pool.js.map +1 -1
  121. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +4 -0
  122. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +43 -0
  123. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +1 -0
  124. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +1 -0
  125. package/build/dex/uniswap-v3/uniswap-v3-worker.js +10 -0
  126. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +1 -0
  127. package/build/dex/uniswap-v3/uniswap-v3.js +5 -0
  128. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  129. package/build/dex/usual/types.d.ts +13 -0
  130. package/build/dex/usual/types.js +3 -0
  131. package/build/dex/usual/types.js.map +1 -0
  132. package/build/dex/usual/usual-bond.d.ts +18 -0
  133. package/build/dex/usual/usual-bond.js +52 -0
  134. package/build/dex/usual/usual-bond.js.map +1 -0
  135. package/build/dex/usual/usual-m-smart-m.d.ts +17 -0
  136. package/build/dex/usual/usual-m-smart-m.js +50 -0
  137. package/build/dex/usual/usual-m-smart-m.js.map +1 -0
  138. package/build/dex/usual/usual-m-usd0.d.ts +17 -0
  139. package/build/dex/usual/usual-m-usd0.js +51 -0
  140. package/build/dex/usual/usual-m-usd0.js.map +1 -0
  141. package/build/dex/usual/usual.d.ts +27 -0
  142. package/build/dex/usual/usual.js +125 -0
  143. package/build/dex/usual/usual.js.map +1 -0
  144. package/build/dex/usual-m-smart-m/config.d.ts +3 -0
  145. package/build/dex/usual-m-smart-m/config.js +13 -0
  146. package/build/dex/usual-m-smart-m/config.js.map +1 -0
  147. package/build/dex/usual-m-smart-m/types.d.ts +7 -0
  148. package/build/dex/usual-m-smart-m/types.js +3 -0
  149. package/build/dex/usual-m-smart-m/types.js.map +1 -0
  150. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +35 -0
  151. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +161 -0
  152. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +1 -0
  153. package/build/dex/{stader → usual-m-usd0}/config.d.ts +1 -1
  154. package/build/dex/usual-m-usd0/config.js +14 -0
  155. package/build/dex/usual-m-usd0/config.js.map +1 -0
  156. package/build/dex/usual-m-usd0/types.d.ts +8 -0
  157. package/build/dex/usual-m-usd0/types.js +3 -0
  158. package/build/dex/usual-m-usd0/types.js.map +1 -0
  159. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +35 -0
  160. package/build/dex/usual-m-usd0/usual-m-usd0.js +159 -0
  161. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +1 -0
  162. package/build/dex/zerox/index.d.ts +4 -26
  163. package/build/dex/zerox/index.js +50 -42
  164. package/build/dex/zerox/index.js.map +1 -1
  165. package/build/dex/zerox/types.d.ts +29 -0
  166. package/build/dex/zerox/types.js +8 -1
  167. package/build/dex/zerox/types.js.map +1 -1
  168. package/package.json +1 -1
  169. package/src/dex/balancer-v3/balancer-v3-sepolia-pools.ts +404 -0
  170. package/src/dex/bebop/constants.ts +1 -1
  171. package/src/dex/index.ts +0 -2
  172. package/src/dex/pancakeswap-v3/pancakeswap-v3-pool.ts +30 -0
  173. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +10 -0
  174. package/src/dex/uniswap-v3/uniswap-v3-pool.ts +30 -0
  175. package/src/dex/uniswap-v3/uniswap-v3.ts +11 -0
  176. package/tests/constants-e2e.ts +0 -5
  177. package/.idea/aws.xml +0 -17
  178. package/.idea/codeStyles/Project.xml +0 -19
  179. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  180. package/.idea/misc.xml +0 -6
  181. package/.idea/modules.xml +0 -8
  182. package/.idea/paraswap-dex-lib.iml +0 -9
  183. package/.idea/prettier.xml +0 -7
  184. package/.idea/vcs.xml +0 -6
  185. package/build/abi/SSPM.json +0 -829
  186. package/build/abi/StaderOracle.json +0 -2170
  187. package/build/abi/integral/factory.json +0 -333
  188. package/build/abi/integral/oracle.json +0 -501
  189. package/build/abi/integral/pool.json +0 -1041
  190. package/build/dex/cables/cables.d.ts +0 -59
  191. package/build/dex/cables/cables.js +0 -614
  192. package/build/dex/cables/cables.js.map +0 -1
  193. package/build/dex/cables/config.d.ts +0 -4
  194. package/build/dex/cables/config.js +0 -15
  195. package/build/dex/cables/config.js.map +0 -1
  196. package/build/dex/cables/constants.d.ts +0 -20
  197. package/build/dex/cables/constants.js +0 -24
  198. package/build/dex/cables/constants.js.map +0 -1
  199. package/build/dex/cables/rate-fetcher.d.ts +0 -34
  200. package/build/dex/cables/rate-fetcher.js +0 -106
  201. package/build/dex/cables/rate-fetcher.js.map +0 -1
  202. package/build/dex/cables/types.d.ts +0 -113
  203. package/build/dex/cables/types.js +0 -19
  204. package/build/dex/cables/types.js.map +0 -1
  205. package/build/dex/cables/validators.d.ts +0 -5
  206. package/build/dex/cables/validators.js +0 -49
  207. package/build/dex/cables/validators.js.map +0 -1
  208. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +0 -49
  209. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +0 -104
  210. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +0 -1
  211. package/build/dex/integral/config.d.ts +0 -4
  212. package/build/dex/integral/config.js +0 -20
  213. package/build/dex/integral/config.js.map +0 -1
  214. package/build/dex/integral/context.d.ts +0 -40
  215. package/build/dex/integral/context.js +0 -158
  216. package/build/dex/integral/context.js.map +0 -1
  217. package/build/dex/integral/integral-factory.d.ts +0 -24
  218. package/build/dex/integral/integral-factory.js +0 -95
  219. package/build/dex/integral/integral-factory.js.map +0 -1
  220. package/build/dex/integral/integral-pool.d.ts +0 -50
  221. package/build/dex/integral/integral-pool.js +0 -149
  222. package/build/dex/integral/integral-pool.js.map +0 -1
  223. package/build/dex/integral/integral-pricing.d.ts +0 -18
  224. package/build/dex/integral/integral-pricing.js +0 -114
  225. package/build/dex/integral/integral-pricing.js.map +0 -1
  226. package/build/dex/integral/integral-relayer.d.ts +0 -42
  227. package/build/dex/integral/integral-relayer.js +0 -192
  228. package/build/dex/integral/integral-relayer.js.map +0 -1
  229. package/build/dex/integral/integral-token.d.ts +0 -27
  230. package/build/dex/integral/integral-token.js +0 -59
  231. package/build/dex/integral/integral-token.js.map +0 -1
  232. package/build/dex/integral/integral.d.ts +0 -41
  233. package/build/dex/integral/integral.js +0 -376
  234. package/build/dex/integral/integral.js.map +0 -1
  235. package/build/dex/integral/types.d.ts +0 -85
  236. package/build/dex/integral/types.js +0 -9
  237. package/build/dex/integral/types.js.map +0 -1
  238. package/build/dex/integral/utils-e2e.d.ts +0 -9
  239. package/build/dex/integral/utils-e2e.js +0 -131
  240. package/build/dex/integral/utils-e2e.js.map +0 -1
  241. package/build/dex/integral/utils.d.ts +0 -17
  242. package/build/dex/integral/utils.js +0 -94
  243. package/build/dex/integral/utils.js.map +0 -1
  244. package/build/dex/stader/config.js +0 -14
  245. package/build/dex/stader/config.js.map +0 -1
  246. package/build/dex/stader/stader-pool.d.ts +0 -18
  247. package/build/dex/stader/stader-pool.js +0 -47
  248. package/build/dex/stader/stader-pool.js.map +0 -1
  249. package/build/dex/stader/stader.d.ts +0 -42
  250. package/build/dex/stader/stader.js +0 -141
  251. package/build/dex/stader/stader.js.map +0 -1
  252. package/build/dex/stader/types.d.ts +0 -13
  253. package/build/dex/stader/types.js +0 -8
  254. package/build/dex/stader/types.js.map +0 -1
  255. package/build/dex/stader/utils.d.ts +0 -4
  256. package/build/dex/stader/utils.js +0 -24
  257. package/build/dex/stader/utils.js.map +0 -1
  258. package/build/dex/trader-joe-v2.1/optimizer.d.ts +0 -2
  259. package/build/dex/trader-joe-v2.1/optimizer.js.map +0 -1
  260. package/src/abi/SSPM.json +0 -829
  261. package/src/abi/StaderOracle.json +0 -2170
  262. package/src/dex/stader/config.ts +0 -13
  263. package/src/dex/stader/stader-e2e.test.ts +0 -74
  264. package/src/dex/stader/stader-events.test.ts +0 -64
  265. package/src/dex/stader/stader-integration.test.ts +0 -210
  266. package/src/dex/stader/stader-pool.ts +0 -68
  267. package/src/dex/stader/stader.ts +0 -208
  268. package/src/dex/stader/types.ts +0 -16
  269. package/src/dex/stader/utils.ts +0 -34
@@ -0,0 +1,581 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
5
+ ],
6
+ "name": "AllowanceExpired",
7
+ "type": "error"
8
+ },
9
+ { "inputs": [], "name": "ExcessiveInvalidation", "type": "error" },
10
+ {
11
+ "inputs": [
12
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
13
+ ],
14
+ "name": "InsufficientAllowance",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [
19
+ { "internalType": "uint256", "name": "maxAmount", "type": "uint256" }
20
+ ],
21
+ "name": "InvalidAmount",
22
+ "type": "error"
23
+ },
24
+ { "inputs": [], "name": "InvalidContractSignature", "type": "error" },
25
+ { "inputs": [], "name": "InvalidNonce", "type": "error" },
26
+ { "inputs": [], "name": "InvalidSignature", "type": "error" },
27
+ { "inputs": [], "name": "InvalidSignatureLength", "type": "error" },
28
+ { "inputs": [], "name": "InvalidSigner", "type": "error" },
29
+ { "inputs": [], "name": "LengthMismatch", "type": "error" },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "uint256",
34
+ "name": "signatureDeadline",
35
+ "type": "uint256"
36
+ }
37
+ ],
38
+ "name": "SignatureExpired",
39
+ "type": "error"
40
+ },
41
+ {
42
+ "anonymous": false,
43
+ "inputs": [
44
+ {
45
+ "indexed": true,
46
+ "internalType": "address",
47
+ "name": "owner",
48
+ "type": "address"
49
+ },
50
+ {
51
+ "indexed": true,
52
+ "internalType": "address",
53
+ "name": "token",
54
+ "type": "address"
55
+ },
56
+ {
57
+ "indexed": true,
58
+ "internalType": "address",
59
+ "name": "spender",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "indexed": false,
64
+ "internalType": "uint160",
65
+ "name": "amount",
66
+ "type": "uint160"
67
+ },
68
+ {
69
+ "indexed": false,
70
+ "internalType": "uint48",
71
+ "name": "expiration",
72
+ "type": "uint48"
73
+ }
74
+ ],
75
+ "name": "Approval",
76
+ "type": "event"
77
+ },
78
+ {
79
+ "anonymous": false,
80
+ "inputs": [
81
+ {
82
+ "indexed": true,
83
+ "internalType": "address",
84
+ "name": "owner",
85
+ "type": "address"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "address",
90
+ "name": "token",
91
+ "type": "address"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "address",
96
+ "name": "spender",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "name": "Lockdown",
101
+ "type": "event"
102
+ },
103
+ {
104
+ "anonymous": false,
105
+ "inputs": [
106
+ {
107
+ "indexed": true,
108
+ "internalType": "address",
109
+ "name": "owner",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "indexed": true,
114
+ "internalType": "address",
115
+ "name": "token",
116
+ "type": "address"
117
+ },
118
+ {
119
+ "indexed": true,
120
+ "internalType": "address",
121
+ "name": "spender",
122
+ "type": "address"
123
+ },
124
+ {
125
+ "indexed": false,
126
+ "internalType": "uint48",
127
+ "name": "newNonce",
128
+ "type": "uint48"
129
+ },
130
+ {
131
+ "indexed": false,
132
+ "internalType": "uint48",
133
+ "name": "oldNonce",
134
+ "type": "uint48"
135
+ }
136
+ ],
137
+ "name": "NonceInvalidation",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": true,
145
+ "internalType": "address",
146
+ "name": "owner",
147
+ "type": "address"
148
+ },
149
+ {
150
+ "indexed": true,
151
+ "internalType": "address",
152
+ "name": "token",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": true,
157
+ "internalType": "address",
158
+ "name": "spender",
159
+ "type": "address"
160
+ },
161
+ {
162
+ "indexed": false,
163
+ "internalType": "uint160",
164
+ "name": "amount",
165
+ "type": "uint160"
166
+ },
167
+ {
168
+ "indexed": false,
169
+ "internalType": "uint48",
170
+ "name": "expiration",
171
+ "type": "uint48"
172
+ },
173
+ {
174
+ "indexed": false,
175
+ "internalType": "uint48",
176
+ "name": "nonce",
177
+ "type": "uint48"
178
+ }
179
+ ],
180
+ "name": "Permit",
181
+ "type": "event"
182
+ },
183
+ {
184
+ "anonymous": false,
185
+ "inputs": [
186
+ {
187
+ "indexed": true,
188
+ "internalType": "address",
189
+ "name": "owner",
190
+ "type": "address"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "internalType": "uint256",
195
+ "name": "word",
196
+ "type": "uint256"
197
+ },
198
+ {
199
+ "indexed": false,
200
+ "internalType": "uint256",
201
+ "name": "mask",
202
+ "type": "uint256"
203
+ }
204
+ ],
205
+ "name": "UnorderedNonceInvalidation",
206
+ "type": "event"
207
+ },
208
+ {
209
+ "inputs": [],
210
+ "name": "DOMAIN_SEPARATOR",
211
+ "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
212
+ "stateMutability": "view",
213
+ "type": "function"
214
+ },
215
+ {
216
+ "inputs": [
217
+ { "internalType": "address", "name": "", "type": "address" },
218
+ { "internalType": "address", "name": "", "type": "address" },
219
+ { "internalType": "address", "name": "", "type": "address" }
220
+ ],
221
+ "name": "allowance",
222
+ "outputs": [
223
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
224
+ { "internalType": "uint48", "name": "expiration", "type": "uint48" },
225
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
226
+ ],
227
+ "stateMutability": "view",
228
+ "type": "function"
229
+ },
230
+ {
231
+ "inputs": [
232
+ { "internalType": "address", "name": "token", "type": "address" },
233
+ { "internalType": "address", "name": "spender", "type": "address" },
234
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
235
+ { "internalType": "uint48", "name": "expiration", "type": "uint48" }
236
+ ],
237
+ "name": "approve",
238
+ "outputs": [],
239
+ "stateMutability": "nonpayable",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [
244
+ { "internalType": "address", "name": "token", "type": "address" },
245
+ { "internalType": "address", "name": "spender", "type": "address" },
246
+ { "internalType": "uint48", "name": "newNonce", "type": "uint48" }
247
+ ],
248
+ "name": "invalidateNonces",
249
+ "outputs": [],
250
+ "stateMutability": "nonpayable",
251
+ "type": "function"
252
+ },
253
+ {
254
+ "inputs": [
255
+ { "internalType": "uint256", "name": "wordPos", "type": "uint256" },
256
+ { "internalType": "uint256", "name": "mask", "type": "uint256" }
257
+ ],
258
+ "name": "invalidateUnorderedNonces",
259
+ "outputs": [],
260
+ "stateMutability": "nonpayable",
261
+ "type": "function"
262
+ },
263
+ {
264
+ "inputs": [
265
+ {
266
+ "components": [
267
+ { "internalType": "address", "name": "token", "type": "address" },
268
+ { "internalType": "address", "name": "spender", "type": "address" }
269
+ ],
270
+ "internalType": "struct IAllowanceTransfer.TokenSpenderPair[]",
271
+ "name": "approvals",
272
+ "type": "tuple[]"
273
+ }
274
+ ],
275
+ "name": "lockdown",
276
+ "outputs": [],
277
+ "stateMutability": "nonpayable",
278
+ "type": "function"
279
+ },
280
+ {
281
+ "inputs": [
282
+ { "internalType": "address", "name": "", "type": "address" },
283
+ { "internalType": "uint256", "name": "", "type": "uint256" }
284
+ ],
285
+ "name": "nonceBitmap",
286
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
287
+ "stateMutability": "view",
288
+ "type": "function"
289
+ },
290
+ {
291
+ "inputs": [
292
+ { "internalType": "address", "name": "owner", "type": "address" },
293
+ {
294
+ "components": [
295
+ {
296
+ "components": [
297
+ { "internalType": "address", "name": "token", "type": "address" },
298
+ {
299
+ "internalType": "uint160",
300
+ "name": "amount",
301
+ "type": "uint160"
302
+ },
303
+ {
304
+ "internalType": "uint48",
305
+ "name": "expiration",
306
+ "type": "uint48"
307
+ },
308
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
309
+ ],
310
+ "internalType": "struct IAllowanceTransfer.PermitDetails[]",
311
+ "name": "details",
312
+ "type": "tuple[]"
313
+ },
314
+ { "internalType": "address", "name": "spender", "type": "address" },
315
+ {
316
+ "internalType": "uint256",
317
+ "name": "sigDeadline",
318
+ "type": "uint256"
319
+ }
320
+ ],
321
+ "internalType": "struct IAllowanceTransfer.PermitBatch",
322
+ "name": "permitBatch",
323
+ "type": "tuple"
324
+ },
325
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
326
+ ],
327
+ "name": "permit",
328
+ "outputs": [],
329
+ "stateMutability": "nonpayable",
330
+ "type": "function"
331
+ },
332
+ {
333
+ "inputs": [
334
+ { "internalType": "address", "name": "owner", "type": "address" },
335
+ {
336
+ "components": [
337
+ {
338
+ "components": [
339
+ { "internalType": "address", "name": "token", "type": "address" },
340
+ {
341
+ "internalType": "uint160",
342
+ "name": "amount",
343
+ "type": "uint160"
344
+ },
345
+ {
346
+ "internalType": "uint48",
347
+ "name": "expiration",
348
+ "type": "uint48"
349
+ },
350
+ { "internalType": "uint48", "name": "nonce", "type": "uint48" }
351
+ ],
352
+ "internalType": "struct IAllowanceTransfer.PermitDetails",
353
+ "name": "details",
354
+ "type": "tuple"
355
+ },
356
+ { "internalType": "address", "name": "spender", "type": "address" },
357
+ {
358
+ "internalType": "uint256",
359
+ "name": "sigDeadline",
360
+ "type": "uint256"
361
+ }
362
+ ],
363
+ "internalType": "struct IAllowanceTransfer.PermitSingle",
364
+ "name": "permitSingle",
365
+ "type": "tuple"
366
+ },
367
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
368
+ ],
369
+ "name": "permit",
370
+ "outputs": [],
371
+ "stateMutability": "nonpayable",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [
376
+ {
377
+ "components": [
378
+ {
379
+ "components": [
380
+ { "internalType": "address", "name": "token", "type": "address" },
381
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
382
+ ],
383
+ "internalType": "struct ISignatureTransfer.TokenPermissions",
384
+ "name": "permitted",
385
+ "type": "tuple"
386
+ },
387
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
388
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
389
+ ],
390
+ "internalType": "struct ISignatureTransfer.PermitTransferFrom",
391
+ "name": "permit",
392
+ "type": "tuple"
393
+ },
394
+ {
395
+ "components": [
396
+ { "internalType": "address", "name": "to", "type": "address" },
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "requestedAmount",
400
+ "type": "uint256"
401
+ }
402
+ ],
403
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
404
+ "name": "transferDetails",
405
+ "type": "tuple"
406
+ },
407
+ { "internalType": "address", "name": "owner", "type": "address" },
408
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
409
+ ],
410
+ "name": "permitTransferFrom",
411
+ "outputs": [],
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "components": [
419
+ {
420
+ "components": [
421
+ { "internalType": "address", "name": "token", "type": "address" },
422
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
423
+ ],
424
+ "internalType": "struct ISignatureTransfer.TokenPermissions[]",
425
+ "name": "permitted",
426
+ "type": "tuple[]"
427
+ },
428
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
429
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
430
+ ],
431
+ "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
432
+ "name": "permit",
433
+ "type": "tuple"
434
+ },
435
+ {
436
+ "components": [
437
+ { "internalType": "address", "name": "to", "type": "address" },
438
+ {
439
+ "internalType": "uint256",
440
+ "name": "requestedAmount",
441
+ "type": "uint256"
442
+ }
443
+ ],
444
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
445
+ "name": "transferDetails",
446
+ "type": "tuple[]"
447
+ },
448
+ { "internalType": "address", "name": "owner", "type": "address" },
449
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
450
+ ],
451
+ "name": "permitTransferFrom",
452
+ "outputs": [],
453
+ "stateMutability": "nonpayable",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [
458
+ {
459
+ "components": [
460
+ {
461
+ "components": [
462
+ { "internalType": "address", "name": "token", "type": "address" },
463
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
464
+ ],
465
+ "internalType": "struct ISignatureTransfer.TokenPermissions",
466
+ "name": "permitted",
467
+ "type": "tuple"
468
+ },
469
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
470
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
471
+ ],
472
+ "internalType": "struct ISignatureTransfer.PermitTransferFrom",
473
+ "name": "permit",
474
+ "type": "tuple"
475
+ },
476
+ {
477
+ "components": [
478
+ { "internalType": "address", "name": "to", "type": "address" },
479
+ {
480
+ "internalType": "uint256",
481
+ "name": "requestedAmount",
482
+ "type": "uint256"
483
+ }
484
+ ],
485
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails",
486
+ "name": "transferDetails",
487
+ "type": "tuple"
488
+ },
489
+ { "internalType": "address", "name": "owner", "type": "address" },
490
+ { "internalType": "bytes32", "name": "witness", "type": "bytes32" },
491
+ {
492
+ "internalType": "string",
493
+ "name": "witnessTypeString",
494
+ "type": "string"
495
+ },
496
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
497
+ ],
498
+ "name": "permitWitnessTransferFrom",
499
+ "outputs": [],
500
+ "stateMutability": "nonpayable",
501
+ "type": "function"
502
+ },
503
+ {
504
+ "inputs": [
505
+ {
506
+ "components": [
507
+ {
508
+ "components": [
509
+ { "internalType": "address", "name": "token", "type": "address" },
510
+ { "internalType": "uint256", "name": "amount", "type": "uint256" }
511
+ ],
512
+ "internalType": "struct ISignatureTransfer.TokenPermissions[]",
513
+ "name": "permitted",
514
+ "type": "tuple[]"
515
+ },
516
+ { "internalType": "uint256", "name": "nonce", "type": "uint256" },
517
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
518
+ ],
519
+ "internalType": "struct ISignatureTransfer.PermitBatchTransferFrom",
520
+ "name": "permit",
521
+ "type": "tuple"
522
+ },
523
+ {
524
+ "components": [
525
+ { "internalType": "address", "name": "to", "type": "address" },
526
+ {
527
+ "internalType": "uint256",
528
+ "name": "requestedAmount",
529
+ "type": "uint256"
530
+ }
531
+ ],
532
+ "internalType": "struct ISignatureTransfer.SignatureTransferDetails[]",
533
+ "name": "transferDetails",
534
+ "type": "tuple[]"
535
+ },
536
+ { "internalType": "address", "name": "owner", "type": "address" },
537
+ { "internalType": "bytes32", "name": "witness", "type": "bytes32" },
538
+ {
539
+ "internalType": "string",
540
+ "name": "witnessTypeString",
541
+ "type": "string"
542
+ },
543
+ { "internalType": "bytes", "name": "signature", "type": "bytes" }
544
+ ],
545
+ "name": "permitWitnessTransferFrom",
546
+ "outputs": [],
547
+ "stateMutability": "nonpayable",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "components": [
554
+ { "internalType": "address", "name": "from", "type": "address" },
555
+ { "internalType": "address", "name": "to", "type": "address" },
556
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
557
+ { "internalType": "address", "name": "token", "type": "address" }
558
+ ],
559
+ "internalType": "struct IAllowanceTransfer.AllowanceTransferDetails[]",
560
+ "name": "transferDetails",
561
+ "type": "tuple[]"
562
+ }
563
+ ],
564
+ "name": "transferFrom",
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ { "internalType": "address", "name": "from", "type": "address" },
572
+ { "internalType": "address", "name": "to", "type": "address" },
573
+ { "internalType": "uint160", "name": "amount", "type": "uint160" },
574
+ { "internalType": "address", "name": "token", "type": "address" }
575
+ ],
576
+ "name": "transferFrom",
577
+ "outputs": [],
578
+ "stateMutability": "nonpayable",
579
+ "type": "function"
580
+ }
581
+ ]
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "components": [
6
+ { "internalType": "bytes", "name": "path", "type": "bytes" },
7
+ { "internalType": "address", "name": "recipient", "type": "address" },
8
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" },
9
+ {
10
+ "internalType": "uint256",
11
+ "name": "amountOutMinimum",
12
+ "type": "uint256"
13
+ }
14
+ ],
15
+ "internalType": "struct ISwapRouter.ExactInputParams",
16
+ "name": "params",
17
+ "type": "tuple"
18
+ }
19
+ ],
20
+ "name": "exactInput",
21
+ "outputs": [
22
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" }
23
+ ],
24
+ "stateMutability": "payable",
25
+ "type": "function"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "components": [
31
+ { "internalType": "bytes", "name": "path", "type": "bytes" },
32
+ { "internalType": "address", "name": "recipient", "type": "address" },
33
+ { "internalType": "uint256", "name": "amountOut", "type": "uint256" },
34
+ {
35
+ "internalType": "uint256",
36
+ "name": "amountInMaximum",
37
+ "type": "uint256"
38
+ }
39
+ ],
40
+ "internalType": "struct ISwapRouter.ExactOutputParams",
41
+ "name": "params",
42
+ "type": "tuple"
43
+ }
44
+ ],
45
+ "name": "exactOutput",
46
+ "outputs": [
47
+ { "internalType": "uint256", "name": "amountIn", "type": "uint256" }
48
+ ],
49
+ "stateMutability": "payable",
50
+ "type": "function"
51
+ }
52
+ ]