@paraswap/dex-lib 3.11.9 → 3.11.10-stader.0

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 (252) hide show
  1. package/.idea/aws.xml +17 -0
  2. package/.idea/codeStyles/Project.xml +19 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/misc.xml +6 -0
  5. package/.idea/modules.xml +8 -0
  6. package/.idea/paraswap-dex-lib.iml +9 -0
  7. package/.idea/prettier.xml +7 -0
  8. package/.idea/vcs.xml +6 -0
  9. package/build/abi/SSPM.json +829 -0
  10. package/build/abi/StaderOracle.json +2170 -0
  11. package/build/abi/{inception/inception-ineth-pool.json → cables/CablesMainnetRFQ.json} +511 -490
  12. package/build/abi/integral/factory.json +333 -0
  13. package/build/abi/integral/oracle.json +501 -0
  14. package/build/abi/integral/pool.json +1041 -0
  15. package/build/abi/{wombat/pool.json → integral/relayer.json} +720 -473
  16. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  17. package/build/dex/aave-v1/aave-v1.js +0 -23
  18. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  19. package/build/dex/cables/cables.d.ts +59 -0
  20. package/build/dex/cables/cables.js +614 -0
  21. package/build/dex/cables/cables.js.map +1 -0
  22. package/build/dex/cables/config.d.ts +4 -0
  23. package/build/dex/cables/config.js +15 -0
  24. package/build/dex/cables/config.js.map +1 -0
  25. package/build/dex/cables/constants.d.ts +20 -0
  26. package/build/dex/cables/constants.js +24 -0
  27. package/build/dex/cables/constants.js.map +1 -0
  28. package/build/dex/cables/rate-fetcher.d.ts +34 -0
  29. package/build/dex/cables/rate-fetcher.js +106 -0
  30. package/build/dex/cables/rate-fetcher.js.map +1 -0
  31. package/build/dex/cables/types.d.ts +113 -0
  32. package/build/dex/cables/types.js +19 -0
  33. package/build/dex/cables/types.js.map +1 -0
  34. package/build/dex/cables/validators.d.ts +5 -0
  35. package/build/dex/cables/validators.js +49 -0
  36. package/build/dex/cables/validators.js.map +1 -0
  37. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  38. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  39. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  40. package/build/dex/index.js +2 -0
  41. package/build/dex/index.js.map +1 -1
  42. package/build/dex/integral/config.d.ts +4 -0
  43. package/build/dex/integral/config.js +20 -0
  44. package/build/dex/integral/config.js.map +1 -0
  45. package/build/dex/integral/context.d.ts +40 -0
  46. package/build/dex/integral/context.js +158 -0
  47. package/build/dex/integral/context.js.map +1 -0
  48. package/build/dex/integral/integral-factory.d.ts +24 -0
  49. package/build/dex/integral/integral-factory.js +95 -0
  50. package/build/dex/integral/integral-factory.js.map +1 -0
  51. package/build/dex/integral/integral-pool.d.ts +50 -0
  52. package/build/dex/integral/integral-pool.js +149 -0
  53. package/build/dex/integral/integral-pool.js.map +1 -0
  54. package/build/dex/integral/integral-pricing.d.ts +18 -0
  55. package/build/dex/integral/integral-pricing.js +114 -0
  56. package/build/dex/integral/integral-pricing.js.map +1 -0
  57. package/build/dex/integral/integral-relayer.d.ts +42 -0
  58. package/build/dex/integral/integral-relayer.js +192 -0
  59. package/build/dex/integral/integral-relayer.js.map +1 -0
  60. package/build/dex/integral/integral-token.d.ts +27 -0
  61. package/build/dex/integral/integral-token.js +59 -0
  62. package/build/dex/integral/integral-token.js.map +1 -0
  63. package/build/dex/integral/integral.d.ts +41 -0
  64. package/build/dex/integral/integral.js +376 -0
  65. package/build/dex/integral/integral.js.map +1 -0
  66. package/build/dex/integral/types.d.ts +85 -0
  67. package/build/dex/integral/types.js +9 -0
  68. package/build/dex/integral/types.js.map +1 -0
  69. package/build/dex/integral/utils-e2e.d.ts +9 -0
  70. package/build/dex/integral/utils-e2e.js +131 -0
  71. package/build/dex/integral/utils-e2e.js.map +1 -0
  72. package/build/dex/integral/utils.d.ts +17 -0
  73. package/build/dex/integral/utils.js +94 -0
  74. package/build/dex/integral/utils.js.map +1 -0
  75. package/build/dex/jarvis.d.ts +1 -2
  76. package/build/dex/jarvis.js +0 -58
  77. package/build/dex/jarvis.js.map +1 -1
  78. package/build/dex/platypus/platypus.d.ts +1 -2
  79. package/build/dex/platypus/platypus.js +0 -45
  80. package/build/dex/platypus/platypus.js.map +1 -1
  81. package/build/dex/stable-pool.js +8 -1
  82. package/build/dex/stable-pool.js.map +1 -1
  83. package/build/dex/{usual-m-usd0 → stader}/config.d.ts +1 -1
  84. package/build/dex/stader/config.js +14 -0
  85. package/build/dex/stader/config.js.map +1 -0
  86. package/build/dex/stader/stader-pool.d.ts +18 -0
  87. package/build/dex/stader/stader-pool.js +47 -0
  88. package/build/dex/stader/stader-pool.js.map +1 -0
  89. package/build/dex/stader/stader.d.ts +42 -0
  90. package/build/dex/stader/stader.js +171 -0
  91. package/build/dex/stader/stader.js.map +1 -0
  92. package/build/dex/stader/types.d.ts +13 -0
  93. package/build/dex/stader/types.js +8 -0
  94. package/build/dex/stader/types.js.map +1 -0
  95. package/build/dex/stader/utils.d.ts +4 -0
  96. package/build/dex/stader/utils.js +24 -0
  97. package/build/dex/stader/utils.js.map +1 -0
  98. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  99. package/build/dex/swaap-v1/swaap-v1.js +0 -14
  100. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  101. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  102. package/build/dex/{balancer-v3 → trader-joe-v2.1}/optimizer.js +16 -17
  103. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  104. package/build/dex/zerox/index.d.ts +26 -4
  105. package/build/dex/zerox/index.js +42 -50
  106. package/build/dex/zerox/index.js.map +1 -1
  107. package/build/dex/zerox/types.d.ts +0 -29
  108. package/build/dex/zerox/types.js +1 -8
  109. package/build/dex/zerox/types.js.map +1 -1
  110. package/package.json +1 -1
  111. package/src/abi/SSPM.json +829 -0
  112. package/src/abi/StaderOracle.json +2170 -0
  113. package/src/dex/index.ts +2 -0
  114. package/src/dex/stader/config.ts +13 -0
  115. package/src/dex/stader/stader-e2e.test.ts +74 -0
  116. package/src/dex/stader/stader-events.test.ts +64 -0
  117. package/src/dex/stader/stader-integration.test.ts +240 -0
  118. package/src/dex/stader/stader-pool.ts +68 -0
  119. package/src/dex/stader/stader.ts +240 -0
  120. package/src/dex/stader/types.ts +16 -0
  121. package/src/dex/stader/utils.ts +34 -0
  122. package/tests/constants-e2e.ts +5 -0
  123. package/.vscode/launch.json +0 -53
  124. package/.vscode/settings.json +0 -2
  125. package/.vscode/tasks.json +0 -15
  126. package/build/abi/balancer-v3/batch-router.json +0 -989
  127. package/build/abi/balancer-v3/router.json +0 -1792
  128. package/build/abi/balancer-v3/vault-extension.json +0 -2834
  129. package/build/abi/inception/inception-ratio-feed.json +0 -329
  130. package/build/abi/inception/inception-vault.json +0 -991
  131. package/build/abi/permit2.json +0 -581
  132. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  133. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  134. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  135. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  136. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  137. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  138. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  139. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  140. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  141. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  142. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  143. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  144. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  145. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  146. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  147. package/build/dex/balancer-v3/balancer-v3-pool.d.ts +0 -80
  148. package/build/dex/balancer-v3/balancer-v3-pool.js +0 -461
  149. package/build/dex/balancer-v3/balancer-v3-pool.js.map +0 -1
  150. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  151. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  152. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  153. package/build/dex/balancer-v3/balancer-v3.d.ts +0 -57
  154. package/build/dex/balancer-v3/balancer-v3.js +0 -383
  155. package/build/dex/balancer-v3/balancer-v3.js.map +0 -1
  156. package/build/dex/balancer-v3/config.d.ts +0 -8
  157. package/build/dex/balancer-v3/config.js +0 -24
  158. package/build/dex/balancer-v3/config.js.map +0 -1
  159. package/build/dex/balancer-v3/getGasCost.d.ts +0 -2
  160. package/build/dex/balancer-v3/getGasCost.js +0 -41
  161. package/build/dex/balancer-v3/getGasCost.js.map +0 -1
  162. package/build/dex/balancer-v3/getOnChainState.d.ts +0 -10
  163. package/build/dex/balancer-v3/getOnChainState.js +0 -164
  164. package/build/dex/balancer-v3/getOnChainState.js.map +0 -1
  165. package/build/dex/balancer-v3/getPoolsApi.d.ts +0 -2
  166. package/build/dex/balancer-v3/getPoolsApi.js +0 -81
  167. package/build/dex/balancer-v3/getPoolsApi.js.map +0 -1
  168. package/build/dex/balancer-v3/getTopPoolsApi.d.ts +0 -13
  169. package/build/dex/balancer-v3/getTopPoolsApi.js +0 -62
  170. package/build/dex/balancer-v3/getTopPoolsApi.js.map +0 -1
  171. package/build/dex/balancer-v3/optimizer.d.ts +0 -2
  172. package/build/dex/balancer-v3/optimizer.js.map +0 -1
  173. package/build/dex/balancer-v3/stablePool.d.ts +0 -7
  174. package/build/dex/balancer-v3/stablePool.js +0 -73
  175. package/build/dex/balancer-v3/stablePool.js.map +0 -1
  176. package/build/dex/balancer-v3/types.d.ts +0 -62
  177. package/build/dex/balancer-v3/types.js +0 -3
  178. package/build/dex/balancer-v3/types.js.map +0 -1
  179. package/build/dex/balancer-v3/weightedPool.d.ts +0 -1
  180. package/build/dex/balancer-v3/weightedPool.js +0 -6
  181. package/build/dex/balancer-v3/weightedPool.js.map +0 -1
  182. package/build/dex/inception/config.d.ts +0 -4
  183. package/build/dex/inception/config.js +0 -109
  184. package/build/dex/inception/config.js.map +0 -1
  185. package/build/dex/inception/inception-event-pool.d.ts +0 -16
  186. package/build/dex/inception/inception-event-pool.js +0 -49
  187. package/build/dex/inception/inception-event-pool.js.map +0 -1
  188. package/build/dex/inception/inception.d.ts +0 -43
  189. package/build/dex/inception/inception.js +0 -180
  190. package/build/dex/inception/inception.js.map +0 -1
  191. package/build/dex/inception/tokens.d.ts +0 -9
  192. package/build/dex/inception/tokens.js +0 -28
  193. package/build/dex/inception/tokens.js.map +0 -1
  194. package/build/dex/inception/types.d.ts +0 -22
  195. package/build/dex/inception/types.js +0 -3
  196. package/build/dex/inception/types.js.map +0 -1
  197. package/build/dex/inception/utils.d.ts +0 -7
  198. package/build/dex/inception/utils.js +0 -58
  199. package/build/dex/inception/utils.js.map +0 -1
  200. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  201. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  202. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  203. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  204. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  205. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  206. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  207. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  208. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  209. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  210. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  211. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  212. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  213. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  214. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  215. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  216. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  217. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  218. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  219. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  220. package/build/dex/usual/types.d.ts +0 -13
  221. package/build/dex/usual/types.js +0 -3
  222. package/build/dex/usual/types.js.map +0 -1
  223. package/build/dex/usual/usual-bond.d.ts +0 -18
  224. package/build/dex/usual/usual-bond.js +0 -52
  225. package/build/dex/usual/usual-bond.js.map +0 -1
  226. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  227. package/build/dex/usual/usual-m-smart-m.js +0 -50
  228. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  229. package/build/dex/usual/usual-m-usd0.d.ts +0 -17
  230. package/build/dex/usual/usual-m-usd0.js +0 -51
  231. package/build/dex/usual/usual-m-usd0.js.map +0 -1
  232. package/build/dex/usual/usual.d.ts +0 -27
  233. package/build/dex/usual/usual.js +0 -125
  234. package/build/dex/usual/usual.js.map +0 -1
  235. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  236. package/build/dex/usual-m-smart-m/config.js +0 -13
  237. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  238. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  239. package/build/dex/usual-m-smart-m/types.js +0 -3
  240. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  241. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  242. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  243. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  244. package/build/dex/usual-m-usd0/config.js +0 -14
  245. package/build/dex/usual-m-usd0/config.js.map +0 -1
  246. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  247. package/build/dex/usual-m-usd0/types.js +0 -3
  248. package/build/dex/usual-m-usd0/types.js.map +0 -1
  249. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  250. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  251. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  252. package/src/dex/balancer-v3/balancer-v3-sepolia-pools.ts +0 -404
@@ -1,581 +0,0 @@
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
- ]
@@ -1,52 +0,0 @@
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
- ]