@paraswap/dex-lib 4.0.3-Cables.0 → 4.0.3

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