@paraswap/dex-lib 4.0.3 → 4.0.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 (214) 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/integral/factory.json +333 -0
  10. package/build/abi/integral/oracle.json +501 -0
  11. package/build/abi/{inception/inception-ineth-pool.json → integral/pool.json} +522 -543
  12. package/build/abi/{wombat/pool.json → integral/relayer.json} +720 -473
  13. package/build/dex/aave-v1/aave-v1.d.ts +1 -2
  14. package/build/dex/aave-v1/aave-v1.js +0 -23
  15. package/build/dex/aave-v1/aave-v1.js.map +1 -1
  16. package/build/dex/bebop/bebop.js +1 -1
  17. package/build/dex/bebop/bebop.js.map +1 -1
  18. package/build/dex/cables/cables.d.ts +4 -2
  19. package/build/dex/cables/cables.js +90 -155
  20. package/build/dex/cables/cables.js.map +1 -1
  21. package/build/dex/cables/constants.d.ts +0 -1
  22. package/build/dex/cables/constants.js +2 -3
  23. package/build/dex/cables/constants.js.map +1 -1
  24. package/build/dex/cables/rate-fetcher.js +26 -10
  25. package/build/dex/cables/rate-fetcher.js.map +1 -1
  26. package/build/dex/cables/types.d.ts +15 -28
  27. package/build/dex/cables/types.js +2 -13
  28. package/build/dex/cables/types.js.map +1 -1
  29. package/build/dex/dexalot/dexalot.js.map +1 -1
  30. package/build/dex/fluid-dex/fluid-dex-generate-pool.d.ts +49 -0
  31. package/build/dex/fluid-dex/fluid-dex-generate-pool.js +104 -0
  32. package/build/dex/fluid-dex/fluid-dex-generate-pool.js.map +1 -0
  33. package/build/dex/index.js +2 -0
  34. package/build/dex/index.js.map +1 -1
  35. package/build/dex/integral/config.d.ts +4 -0
  36. package/build/dex/integral/config.js +20 -0
  37. package/build/dex/integral/config.js.map +1 -0
  38. package/build/dex/integral/context.d.ts +40 -0
  39. package/build/dex/integral/context.js +158 -0
  40. package/build/dex/integral/context.js.map +1 -0
  41. package/build/dex/integral/integral-factory.d.ts +24 -0
  42. package/build/dex/integral/integral-factory.js +95 -0
  43. package/build/dex/integral/integral-factory.js.map +1 -0
  44. package/build/dex/integral/integral-pool.d.ts +50 -0
  45. package/build/dex/integral/integral-pool.js +149 -0
  46. package/build/dex/integral/integral-pool.js.map +1 -0
  47. package/build/dex/integral/integral-pricing.d.ts +18 -0
  48. package/build/dex/integral/integral-pricing.js +114 -0
  49. package/build/dex/integral/integral-pricing.js.map +1 -0
  50. package/build/dex/integral/integral-relayer.d.ts +42 -0
  51. package/build/dex/integral/integral-relayer.js +192 -0
  52. package/build/dex/integral/integral-relayer.js.map +1 -0
  53. package/build/dex/integral/integral-token.d.ts +27 -0
  54. package/build/dex/integral/integral-token.js +59 -0
  55. package/build/dex/integral/integral-token.js.map +1 -0
  56. package/build/dex/integral/integral.d.ts +41 -0
  57. package/build/dex/integral/integral.js +376 -0
  58. package/build/dex/integral/integral.js.map +1 -0
  59. package/build/dex/integral/types.d.ts +85 -0
  60. package/build/dex/integral/types.js +9 -0
  61. package/build/dex/integral/types.js.map +1 -0
  62. package/build/dex/integral/utils-e2e.d.ts +9 -0
  63. package/build/dex/integral/utils-e2e.js +131 -0
  64. package/build/dex/integral/utils-e2e.js.map +1 -0
  65. package/build/dex/integral/utils.d.ts +17 -0
  66. package/build/dex/integral/utils.js +94 -0
  67. package/build/dex/integral/utils.js.map +1 -0
  68. package/build/dex/jarvis.d.ts +1 -2
  69. package/build/dex/jarvis.js +0 -58
  70. package/build/dex/jarvis.js.map +1 -1
  71. package/build/dex/platypus/platypus.d.ts +1 -2
  72. package/build/dex/platypus/platypus.js +0 -45
  73. package/build/dex/platypus/platypus.js.map +1 -1
  74. package/build/dex/stable-pool.js +8 -1
  75. package/build/dex/stable-pool.js.map +1 -1
  76. package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
  77. package/build/dex/swaap-v1/swaap-v1.js +0 -14
  78. package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
  79. package/build/dex/trader-joe-v2.1/optimizer.d.ts +2 -0
  80. package/build/dex/trader-joe-v2.1/optimizer.js +47 -0
  81. package/build/dex/trader-joe-v2.1/optimizer.js.map +1 -0
  82. package/build/dex/zerox/index.d.ts +26 -4
  83. package/build/dex/zerox/index.js +42 -50
  84. package/build/dex/zerox/index.js.map +1 -1
  85. package/build/dex/zerox/types.d.ts +0 -29
  86. package/build/dex/zerox/types.js +1 -8
  87. package/build/dex/zerox/types.js.map +1 -1
  88. package/build/executor/Executor01BytecodeBuilder.js +11 -6
  89. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  90. package/build/executor/Executor02BytecodeBuilder.js +11 -6
  91. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  92. package/build/executor/Executor03BytecodeBuilder.js +11 -6
  93. package/build/executor/Executor03BytecodeBuilder.js.map +1 -1
  94. package/build/types.d.ts +1 -0
  95. package/package.json +1 -1
  96. package/src/abi/cables/CablesMainnetRFQ.json +1083 -0
  97. package/src/dex/bebop/bebop.ts +1 -1
  98. package/src/dex/cables/cables-e2e.test.ts +207 -0
  99. package/src/dex/cables/cables-integration.test.ts +391 -0
  100. package/src/dex/cables/cables.ts +823 -0
  101. package/src/dex/cables/config.ts +13 -0
  102. package/src/dex/cables/constants.ts +33 -0
  103. package/src/dex/cables/rate-fetcher.ts +212 -0
  104. package/src/dex/cables/types.ts +113 -0
  105. package/src/dex/cables/validators.test.ts +151 -0
  106. package/src/dex/cables/validators.ts +61 -0
  107. package/src/dex/dexalot/dexalot.ts +1 -0
  108. package/src/dex/index.ts +2 -0
  109. package/src/executor/Executor01BytecodeBuilder.ts +15 -11
  110. package/src/executor/Executor02BytecodeBuilder.ts +13 -9
  111. package/src/executor/Executor03BytecodeBuilder.ts +16 -9
  112. package/src/types.ts +1 -0
  113. package/tests/constants-e2e.ts +2 -2
  114. package/.vscode/launch.json +0 -53
  115. package/.vscode/settings.json +0 -2
  116. package/.vscode/tasks.json +0 -15
  117. package/build/abi/inception/inception-ratio-feed.json +0 -329
  118. package/build/abi/inception/inception-vault.json +0 -991
  119. package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
  120. package/build/abi/usual-m-smart-m/usualM.abi.json +0 -483
  121. package/build/abi/usual-m-usd0/usualCollateralDao.abi.json +0 -681
  122. package/build/abi/usual-m-wrapped-m/usualM.abi.json +0 -509
  123. package/build/dex/aave-v2/tokens-avalanche.json +0 -44
  124. package/build/dex/aave-v2/tokens-mainnet.json +0 -188
  125. package/build/dex/aave-v2/tokens-polygon.json +0 -44
  126. package/build/dex/balancer-v3/abi/balancerBatchRouter.d.ts +0 -729
  127. package/build/dex/balancer-v3/abi/balancerBatchRouter.js +0 -732
  128. package/build/dex/balancer-v3/abi/balancerBatchRouter.js.map +0 -1
  129. package/build/dex/balancer-v3/abi/balancerRouter.d.ts +0 -1406
  130. package/build/dex/balancer-v3/abi/balancerRouter.js +0 -1175
  131. package/build/dex/balancer-v3/abi/balancerRouter.js.map +0 -1
  132. package/build/dex/balancer-v3/abi/vaultExtension.V3.d.ts +0 -2081
  133. package/build/dex/balancer-v3/abi/vaultExtension.V3.js +0 -1851
  134. package/build/dex/balancer-v3/abi/vaultExtension.V3.js.map +0 -1
  135. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.d.ts +0 -34
  136. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js +0 -406
  137. package/build/dex/balancer-v3/balancer-v3-sepolia-pools.js.map +0 -1
  138. package/build/dex/inception/config.d.ts +0 -4
  139. package/build/dex/inception/config.js +0 -109
  140. package/build/dex/inception/config.js.map +0 -1
  141. package/build/dex/inception/inception-event-pool.d.ts +0 -16
  142. package/build/dex/inception/inception-event-pool.js +0 -49
  143. package/build/dex/inception/inception-event-pool.js.map +0 -1
  144. package/build/dex/inception/inception.d.ts +0 -43
  145. package/build/dex/inception/inception.js +0 -180
  146. package/build/dex/inception/inception.js.map +0 -1
  147. package/build/dex/inception/tokens.d.ts +0 -9
  148. package/build/dex/inception/tokens.js +0 -28
  149. package/build/dex/inception/tokens.js.map +0 -1
  150. package/build/dex/inception/types.d.ts +0 -22
  151. package/build/dex/inception/types.js +0 -3
  152. package/build/dex/inception/types.js.map +0 -1
  153. package/build/dex/inception/utils.d.ts +0 -7
  154. package/build/dex/inception/utils.js +0 -58
  155. package/build/dex/inception/utils.js.map +0 -1
  156. package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
  157. package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
  158. package/build/dex/maker-psm/scripts/validate-state.js +0 -185
  159. package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
  160. package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
  161. package/build/dex/solidly-v3/scripts/check-event-pool-event.d.ts +0 -1
  162. package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
  163. package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
  164. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
  165. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
  166. package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
  167. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
  168. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
  169. package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
  170. package/build/dex/uniswap-v3/uniswap-v3-pricing.d.ts +0 -4
  171. package/build/dex/uniswap-v3/uniswap-v3-pricing.js +0 -43
  172. package/build/dex/uniswap-v3/uniswap-v3-pricing.js.map +0 -1
  173. package/build/dex/uniswap-v3/uniswap-v3-worker.d.ts +0 -1
  174. package/build/dex/uniswap-v3/uniswap-v3-worker.js +0 -10
  175. package/build/dex/uniswap-v3/uniswap-v3-worker.js.map +0 -1
  176. package/build/dex/usual/types.d.ts +0 -13
  177. package/build/dex/usual/types.js +0 -3
  178. package/build/dex/usual/types.js.map +0 -1
  179. package/build/dex/usual/usual-bond.d.ts +0 -18
  180. package/build/dex/usual/usual-bond.js +0 -52
  181. package/build/dex/usual/usual-bond.js.map +0 -1
  182. package/build/dex/usual/usual-m-smart-m.d.ts +0 -17
  183. package/build/dex/usual/usual-m-smart-m.js +0 -50
  184. package/build/dex/usual/usual-m-smart-m.js.map +0 -1
  185. package/build/dex/usual/usual-m-usd0.d.ts +0 -17
  186. package/build/dex/usual/usual-m-usd0.js +0 -51
  187. package/build/dex/usual/usual-m-usd0.js.map +0 -1
  188. package/build/dex/usual/usual-m-wrapped-m.d.ts +0 -17
  189. package/build/dex/usual/usual-m-wrapped-m.js +0 -50
  190. package/build/dex/usual/usual-m-wrapped-m.js.map +0 -1
  191. package/build/dex/usual/usual.d.ts +0 -27
  192. package/build/dex/usual/usual.js +0 -125
  193. package/build/dex/usual/usual.js.map +0 -1
  194. package/build/dex/usual-m-smart-m/config.d.ts +0 -3
  195. package/build/dex/usual-m-smart-m/config.js +0 -13
  196. package/build/dex/usual-m-smart-m/config.js.map +0 -1
  197. package/build/dex/usual-m-smart-m/types.d.ts +0 -7
  198. package/build/dex/usual-m-smart-m/types.js +0 -3
  199. package/build/dex/usual-m-smart-m/types.js.map +0 -1
  200. package/build/dex/usual-m-smart-m/usual-m-smart-m.d.ts +0 -35
  201. package/build/dex/usual-m-smart-m/usual-m-smart-m.js +0 -161
  202. package/build/dex/usual-m-smart-m/usual-m-smart-m.js.map +0 -1
  203. package/build/dex/usual-m-usd0/config.d.ts +0 -3
  204. package/build/dex/usual-m-usd0/config.js +0 -14
  205. package/build/dex/usual-m-usd0/config.js.map +0 -1
  206. package/build/dex/usual-m-usd0/types.d.ts +0 -8
  207. package/build/dex/usual-m-usd0/types.js +0 -3
  208. package/build/dex/usual-m-usd0/types.js.map +0 -1
  209. package/build/dex/usual-m-usd0/usual-m-usd0.d.ts +0 -35
  210. package/build/dex/usual-m-usd0/usual-m-usd0.js +0 -159
  211. package/build/dex/usual-m-usd0/usual-m-usd0.js.map +0 -1
  212. package/build/lib/pub-sub.d.ts +0 -35
  213. package/build/lib/pub-sub.js +0 -106
  214. package/build/lib/pub-sub.js.map +0 -1
@@ -1,681 +0,0 @@
1
- [
2
- { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" },
3
- {
4
- "inputs": [
5
- { "internalType": "address", "name": "target", "type": "address" }
6
- ],
7
- "name": "AddressEmptyCode",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- { "internalType": "address", "name": "account", "type": "address" }
13
- ],
14
- "name": "AddressInsufficientBalance",
15
- "type": "error"
16
- },
17
- { "inputs": [], "name": "AmountIsZero", "type": "error" },
18
- { "inputs": [], "name": "AmountTooBig", "type": "error" },
19
- { "inputs": [], "name": "AmountTooLow", "type": "error" },
20
- { "inputs": [], "name": "ApprovalFailed", "type": "error" },
21
- { "inputs": [], "name": "CBRIsNull", "type": "error" },
22
- { "inputs": [], "name": "CBRIsTooHigh", "type": "error" },
23
- { "inputs": [], "name": "EnforcedPause", "type": "error" },
24
- { "inputs": [], "name": "ExpectedPause", "type": "error" },
25
- {
26
- "inputs": [
27
- { "internalType": "uint256", "name": "deadline", "type": "uint256" }
28
- ],
29
- "name": "ExpiredSignature",
30
- "type": "error"
31
- },
32
- { "inputs": [], "name": "FailedInnerCall", "type": "error" },
33
- {
34
- "inputs": [
35
- { "internalType": "address", "name": "account", "type": "address" },
36
- { "internalType": "uint256", "name": "currentNonce", "type": "uint256" }
37
- ],
38
- "name": "InvalidAccountNonce",
39
- "type": "error"
40
- },
41
- {
42
- "inputs": [
43
- {
44
- "internalType": "uint256",
45
- "name": "approvalDeadline",
46
- "type": "uint256"
47
- },
48
- { "internalType": "uint256", "name": "intentDeadline", "type": "uint256" }
49
- ],
50
- "name": "InvalidDeadline",
51
- "type": "error"
52
- },
53
- { "inputs": [], "name": "InvalidInitialization", "type": "error" },
54
- {
55
- "inputs": [
56
- { "internalType": "address", "name": "account", "type": "address" },
57
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
58
- ],
59
- "name": "InvalidOrderAmount",
60
- "type": "error"
61
- },
62
- {
63
- "inputs": [
64
- { "internalType": "address", "name": "owner", "type": "address" }
65
- ],
66
- "name": "InvalidSigner",
67
- "type": "error"
68
- },
69
- { "inputs": [], "name": "InvalidToken", "type": "error" },
70
- { "inputs": [], "name": "MathOverflowedMulDiv", "type": "error" },
71
- { "inputs": [], "name": "NoOrdersIdsProvided", "type": "error" },
72
- { "inputs": [], "name": "NotAuthorized", "type": "error" },
73
- { "inputs": [], "name": "NotInitializing", "type": "error" },
74
- { "inputs": [], "name": "NullContract", "type": "error" },
75
- { "inputs": [], "name": "RedeemFeeTooBig", "type": "error" },
76
- { "inputs": [], "name": "RedeemMustBePaused", "type": "error" },
77
- { "inputs": [], "name": "RedeemMustNotBePaused", "type": "error" },
78
- { "inputs": [], "name": "ReentrancyGuardReentrantCall", "type": "error" },
79
- {
80
- "inputs": [
81
- { "internalType": "address", "name": "token", "type": "address" }
82
- ],
83
- "name": "SafeERC20FailedOperation",
84
- "type": "error"
85
- },
86
- { "inputs": [], "name": "SameValue", "type": "error" },
87
- { "inputs": [], "name": "SwapMustBePaused", "type": "error" },
88
- { "inputs": [], "name": "SwapMustNotBePaused", "type": "error" },
89
- {
90
- "anonymous": false,
91
- "inputs": [
92
- {
93
- "indexed": false,
94
- "internalType": "uint256",
95
- "name": "cbrCoef",
96
- "type": "uint256"
97
- }
98
- ],
99
- "name": "CBRActivated",
100
- "type": "event"
101
- },
102
- {
103
- "anonymous": false,
104
- "inputs": [],
105
- "name": "CBRDeactivated",
106
- "type": "event"
107
- },
108
- {
109
- "anonymous": false,
110
- "inputs": [],
111
- "name": "EIP712DomainChanged",
112
- "type": "event"
113
- },
114
- {
115
- "anonymous": false,
116
- "inputs": [
117
- {
118
- "indexed": false,
119
- "internalType": "uint64",
120
- "name": "version",
121
- "type": "uint64"
122
- }
123
- ],
124
- "name": "Initialized",
125
- "type": "event"
126
- },
127
- {
128
- "anonymous": false,
129
- "inputs": [
130
- {
131
- "indexed": true,
132
- "internalType": "address",
133
- "name": "owner",
134
- "type": "address"
135
- },
136
- {
137
- "indexed": true,
138
- "internalType": "uint256",
139
- "name": "nonce",
140
- "type": "uint256"
141
- },
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "tokenSwapped",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": false,
150
- "internalType": "uint256",
151
- "name": "totalAmountInTokenDecimals",
152
- "type": "uint256"
153
- }
154
- ],
155
- "name": "IntentConsumed",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "indexed": true,
163
- "internalType": "address",
164
- "name": "owner",
165
- "type": "address"
166
- },
167
- {
168
- "indexed": true,
169
- "internalType": "uint256",
170
- "name": "nonce",
171
- "type": "uint256"
172
- },
173
- {
174
- "indexed": true,
175
- "internalType": "address",
176
- "name": "tokenSwapped",
177
- "type": "address"
178
- },
179
- {
180
- "indexed": false,
181
- "internalType": "uint256",
182
- "name": "amountInTokenDecimals",
183
- "type": "uint256"
184
- },
185
- {
186
- "indexed": false,
187
- "internalType": "uint256",
188
- "name": "amountInUSD",
189
- "type": "uint256"
190
- }
191
- ],
192
- "name": "IntentMatched",
193
- "type": "event"
194
- },
195
- {
196
- "anonymous": false,
197
- "inputs": [
198
- {
199
- "indexed": true,
200
- "internalType": "address",
201
- "name": "signer",
202
- "type": "address"
203
- },
204
- {
205
- "indexed": true,
206
- "internalType": "uint256",
207
- "name": "nonceInvalidated",
208
- "type": "uint256"
209
- }
210
- ],
211
- "name": "NonceInvalidated",
212
- "type": "event"
213
- },
214
- {
215
- "anonymous": false,
216
- "inputs": [
217
- {
218
- "indexed": false,
219
- "internalType": "uint256",
220
- "name": "newThreshold",
221
- "type": "uint256"
222
- }
223
- ],
224
- "name": "NonceThresholdSet",
225
- "type": "event"
226
- },
227
- {
228
- "anonymous": false,
229
- "inputs": [
230
- {
231
- "indexed": false,
232
- "internalType": "address",
233
- "name": "account",
234
- "type": "address"
235
- }
236
- ],
237
- "name": "Paused",
238
- "type": "event"
239
- },
240
- {
241
- "anonymous": false,
242
- "inputs": [
243
- {
244
- "indexed": true,
245
- "internalType": "address",
246
- "name": "redeemer",
247
- "type": "address"
248
- },
249
- {
250
- "indexed": true,
251
- "internalType": "address",
252
- "name": "rwaToken",
253
- "type": "address"
254
- },
255
- {
256
- "indexed": false,
257
- "internalType": "uint256",
258
- "name": "amountRedeemed",
259
- "type": "uint256"
260
- },
261
- {
262
- "indexed": false,
263
- "internalType": "uint256",
264
- "name": "returnedRwaAmount",
265
- "type": "uint256"
266
- },
267
- {
268
- "indexed": false,
269
- "internalType": "uint256",
270
- "name": "stableFeeAmount",
271
- "type": "uint256"
272
- }
273
- ],
274
- "name": "Redeem",
275
- "type": "event"
276
- },
277
- {
278
- "anonymous": false,
279
- "inputs": [
280
- {
281
- "indexed": false,
282
- "internalType": "uint256",
283
- "name": "redeemFee",
284
- "type": "uint256"
285
- }
286
- ],
287
- "name": "RedeemFeeUpdated",
288
- "type": "event"
289
- },
290
- { "anonymous": false, "inputs": [], "name": "RedeemPaused", "type": "event" },
291
- {
292
- "anonymous": false,
293
- "inputs": [],
294
- "name": "RedeemUnPaused",
295
- "type": "event"
296
- },
297
- {
298
- "anonymous": false,
299
- "inputs": [
300
- {
301
- "indexed": true,
302
- "internalType": "address",
303
- "name": "owner",
304
- "type": "address"
305
- },
306
- {
307
- "indexed": true,
308
- "internalType": "address",
309
- "name": "tokenSwapped",
310
- "type": "address"
311
- },
312
- {
313
- "indexed": false,
314
- "internalType": "uint256",
315
- "name": "amount",
316
- "type": "uint256"
317
- },
318
- {
319
- "indexed": false,
320
- "internalType": "uint256",
321
- "name": "amountInUSD",
322
- "type": "uint256"
323
- }
324
- ],
325
- "name": "Swap",
326
- "type": "event"
327
- },
328
- { "anonymous": false, "inputs": [], "name": "SwapPaused", "type": "event" },
329
- { "anonymous": false, "inputs": [], "name": "SwapUnPaused", "type": "event" },
330
- {
331
- "anonymous": false,
332
- "inputs": [
333
- {
334
- "indexed": false,
335
- "internalType": "address",
336
- "name": "account",
337
- "type": "address"
338
- }
339
- ],
340
- "name": "Unpaused",
341
- "type": "event"
342
- },
343
- {
344
- "inputs": [],
345
- "name": "DOMAIN_SEPARATOR",
346
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
347
- "stateMutability": "view",
348
- "type": "function"
349
- },
350
- {
351
- "inputs": [],
352
- "name": "DaoCollateralStorageV0Location",
353
- "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
354
- "stateMutability": "view",
355
- "type": "function"
356
- },
357
- {
358
- "inputs": [
359
- { "internalType": "uint256", "name": "coefficient", "type": "uint256" }
360
- ],
361
- "name": "activateCBR",
362
- "outputs": [],
363
- "stateMutability": "nonpayable",
364
- "type": "function"
365
- },
366
- {
367
- "inputs": [],
368
- "name": "cbrCoef",
369
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
370
- "stateMutability": "view",
371
- "type": "function"
372
- },
373
- {
374
- "inputs": [],
375
- "name": "deactivateCBR",
376
- "outputs": [],
377
- "stateMutability": "nonpayable",
378
- "type": "function"
379
- },
380
- {
381
- "inputs": [],
382
- "name": "eip712Domain",
383
- "outputs": [
384
- { "internalType": "bytes1", "name": "fields", "type": "bytes1" },
385
- { "internalType": "string", "name": "name", "type": "string" },
386
- { "internalType": "string", "name": "version", "type": "string" },
387
- { "internalType": "uint256", "name": "chainId", "type": "uint256" },
388
- {
389
- "internalType": "address",
390
- "name": "verifyingContract",
391
- "type": "address"
392
- },
393
- { "internalType": "bytes32", "name": "salt", "type": "bytes32" },
394
- { "internalType": "uint256[]", "name": "extensions", "type": "uint256[]" }
395
- ],
396
- "stateMutability": "view",
397
- "type": "function"
398
- },
399
- {
400
- "inputs": [
401
- {
402
- "internalType": "address",
403
- "name": "_registryContract",
404
- "type": "address"
405
- },
406
- { "internalType": "uint256", "name": "_redeemFee", "type": "uint256" }
407
- ],
408
- "name": "initialize",
409
- "outputs": [],
410
- "stateMutability": "nonpayable",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [
415
- {
416
- "internalType": "address",
417
- "name": "_registryContract",
418
- "type": "address"
419
- }
420
- ],
421
- "name": "initializeV1",
422
- "outputs": [],
423
- "stateMutability": "nonpayable",
424
- "type": "function"
425
- },
426
- {
427
- "inputs": [],
428
- "name": "invalidateNonce",
429
- "outputs": [],
430
- "stateMutability": "nonpayable",
431
- "type": "function"
432
- },
433
- {
434
- "inputs": [
435
- { "internalType": "uint256", "name": "newNonce", "type": "uint256" }
436
- ],
437
- "name": "invalidateUpToNonce",
438
- "outputs": [],
439
- "stateMutability": "nonpayable",
440
- "type": "function"
441
- },
442
- {
443
- "inputs": [],
444
- "name": "isCBROn",
445
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
446
- "stateMutability": "view",
447
- "type": "function"
448
- },
449
- {
450
- "inputs": [],
451
- "name": "isRedeemPaused",
452
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
453
- "stateMutability": "view",
454
- "type": "function"
455
- },
456
- {
457
- "inputs": [],
458
- "name": "isSwapPaused",
459
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
460
- "stateMutability": "view",
461
- "type": "function"
462
- },
463
- {
464
- "inputs": [],
465
- "name": "nonceThreshold",
466
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
467
- "stateMutability": "view",
468
- "type": "function"
469
- },
470
- {
471
- "inputs": [
472
- { "internalType": "address", "name": "owner", "type": "address" }
473
- ],
474
- "name": "nonces",
475
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
476
- "stateMutability": "view",
477
- "type": "function"
478
- },
479
- {
480
- "inputs": [
481
- { "internalType": "address", "name": "owner", "type": "address" }
482
- ],
483
- "name": "orderAmountTakenCurrentNonce",
484
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
485
- "stateMutability": "view",
486
- "type": "function"
487
- },
488
- {
489
- "inputs": [],
490
- "name": "pause",
491
- "outputs": [],
492
- "stateMutability": "nonpayable",
493
- "type": "function"
494
- },
495
- {
496
- "inputs": [],
497
- "name": "pauseRedeem",
498
- "outputs": [],
499
- "stateMutability": "nonpayable",
500
- "type": "function"
501
- },
502
- {
503
- "inputs": [],
504
- "name": "pauseSwap",
505
- "outputs": [],
506
- "stateMutability": "nonpayable",
507
- "type": "function"
508
- },
509
- {
510
- "inputs": [],
511
- "name": "paused",
512
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
513
- "stateMutability": "view",
514
- "type": "function"
515
- },
516
- {
517
- "inputs": [
518
- { "internalType": "address", "name": "rwaToken", "type": "address" },
519
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
520
- { "internalType": "uint256", "name": "minAmountOut", "type": "uint256" }
521
- ],
522
- "name": "redeem",
523
- "outputs": [],
524
- "stateMutability": "nonpayable",
525
- "type": "function"
526
- },
527
- {
528
- "inputs": [
529
- { "internalType": "address", "name": "rwaToken", "type": "address" },
530
- { "internalType": "uint256", "name": "amount", "type": "uint256" }
531
- ],
532
- "name": "redeemDao",
533
- "outputs": [],
534
- "stateMutability": "nonpayable",
535
- "type": "function"
536
- },
537
- {
538
- "inputs": [],
539
- "name": "redeemFee",
540
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
541
- "stateMutability": "view",
542
- "type": "function"
543
- },
544
- {
545
- "inputs": [
546
- { "internalType": "uint256", "name": "threshold", "type": "uint256" }
547
- ],
548
- "name": "setNonceThreshold",
549
- "outputs": [],
550
- "stateMutability": "nonpayable",
551
- "type": "function"
552
- },
553
- {
554
- "inputs": [
555
- { "internalType": "uint256", "name": "_redeemFee", "type": "uint256" }
556
- ],
557
- "name": "setRedeemFee",
558
- "outputs": [],
559
- "stateMutability": "nonpayable",
560
- "type": "function"
561
- },
562
- {
563
- "inputs": [
564
- { "internalType": "address", "name": "rwaToken", "type": "address" },
565
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
566
- { "internalType": "uint256", "name": "minAmountOut", "type": "uint256" }
567
- ],
568
- "name": "swap",
569
- "outputs": [],
570
- "stateMutability": "nonpayable",
571
- "type": "function"
572
- },
573
- {
574
- "inputs": [
575
- { "internalType": "address", "name": "rwaToken", "type": "address" },
576
- {
577
- "internalType": "uint256",
578
- "name": "amountInTokenDecimals",
579
- "type": "uint256"
580
- },
581
- { "internalType": "bool", "name": "partialMatching", "type": "bool" },
582
- {
583
- "internalType": "uint256[]",
584
- "name": "orderIdsToTake",
585
- "type": "uint256[]"
586
- },
587
- {
588
- "components": [
589
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
590
- { "internalType": "uint8", "name": "v", "type": "uint8" },
591
- { "internalType": "bytes32", "name": "r", "type": "bytes32" },
592
- { "internalType": "bytes32", "name": "s", "type": "bytes32" }
593
- ],
594
- "internalType": "struct Approval",
595
- "name": "approval",
596
- "type": "tuple"
597
- }
598
- ],
599
- "name": "swapRWAtoStbc",
600
- "outputs": [],
601
- "stateMutability": "nonpayable",
602
- "type": "function"
603
- },
604
- {
605
- "inputs": [
606
- {
607
- "internalType": "uint256[]",
608
- "name": "orderIdsToTake",
609
- "type": "uint256[]"
610
- },
611
- {
612
- "components": [
613
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
614
- { "internalType": "uint8", "name": "v", "type": "uint8" },
615
- { "internalType": "bytes32", "name": "r", "type": "bytes32" },
616
- { "internalType": "bytes32", "name": "s", "type": "bytes32" }
617
- ],
618
- "internalType": "struct Approval",
619
- "name": "approval",
620
- "type": "tuple"
621
- },
622
- {
623
- "components": [
624
- { "internalType": "address", "name": "recipient", "type": "address" },
625
- { "internalType": "address", "name": "rwaToken", "type": "address" },
626
- {
627
- "internalType": "uint256",
628
- "name": "amountInTokenDecimals",
629
- "type": "uint256"
630
- },
631
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
632
- { "internalType": "bytes", "name": "signature", "type": "bytes" }
633
- ],
634
- "internalType": "struct Intent",
635
- "name": "intent",
636
- "type": "tuple"
637
- },
638
- { "internalType": "bool", "name": "partialMatching", "type": "bool" }
639
- ],
640
- "name": "swapRWAtoStbcIntent",
641
- "outputs": [],
642
- "stateMutability": "nonpayable",
643
- "type": "function"
644
- },
645
- {
646
- "inputs": [
647
- { "internalType": "address", "name": "rwaToken", "type": "address" },
648
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
649
- { "internalType": "uint256", "name": "minAmountOut", "type": "uint256" },
650
- { "internalType": "uint256", "name": "deadline", "type": "uint256" },
651
- { "internalType": "uint8", "name": "v", "type": "uint8" },
652
- { "internalType": "bytes32", "name": "r", "type": "bytes32" },
653
- { "internalType": "bytes32", "name": "s", "type": "bytes32" }
654
- ],
655
- "name": "swapWithPermit",
656
- "outputs": [],
657
- "stateMutability": "nonpayable",
658
- "type": "function"
659
- },
660
- {
661
- "inputs": [],
662
- "name": "unpause",
663
- "outputs": [],
664
- "stateMutability": "nonpayable",
665
- "type": "function"
666
- },
667
- {
668
- "inputs": [],
669
- "name": "unpauseRedeem",
670
- "outputs": [],
671
- "stateMutability": "nonpayable",
672
- "type": "function"
673
- },
674
- {
675
- "inputs": [],
676
- "name": "unpauseSwap",
677
- "outputs": [],
678
- "stateMutability": "nonpayable",
679
- "type": "function"
680
- }
681
- ]