@paraswap/dex-lib 4.7.12 → 4.7.13-from-amount-pos.1

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/build/abi/PendleRouterStatic.json +19 -0
  2. package/build/abi/{MStableAsset.json → apex-defi/ApexDefiFactory.abi.json} +992 -788
  3. package/build/abi/{BProtocol.json → apex-defi/ApexDefiRouter.abi.json} +539 -574
  4. package/build/abi/apex-defi/ApexDefiToken.abi.json +229 -0
  5. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +92 -0
  6. package/build/abi/{OneInchLp.json → apex-defi/ApexDefiWrapperFactory.abi.json} +577 -774
  7. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
  8. package/build/abi/pendle/pendle-deployer.abi.json +520 -0
  9. package/build/abi/pendle/pendle-oracle.abi.json +413 -0
  10. package/build/abi/ring-v2/few-wrapped-token.json +587 -0
  11. package/build/abi/ring-v2/ring-v2-factory.json +125 -0
  12. package/build/abi/ring-v2/ring-v2-pool.json +461 -0
  13. package/build/abi/ring-v2/ring-v2-router.json +332 -0
  14. package/build/abi/stabull/stabull-curve.json +738 -0
  15. package/build/abi/stabull/stabull-router.json +76 -0
  16. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +26 -0
  17. package/build/abi/uniswap-v4/hooks/SpotHook.json +54 -0
  18. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +45 -0
  19. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
  20. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
  21. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +29 -0
  22. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +153 -0
  23. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +1 -0
  24. package/build/dex/{usual-bond/usual-bond.d.ts → aave-pt-to-underlying/aave-pt-to-underlying.d.ts} +23 -18
  25. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +323 -0
  26. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
  27. package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
  28. package/build/dex/aave-pt-to-underlying/config.js +24 -0
  29. package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
  30. package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
  31. package/build/dex/aave-pt-to-underlying/constants.js +6 -0
  32. package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
  33. package/build/dex/aave-pt-to-underlying/types.d.ts +24 -0
  34. package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
  35. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
  36. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
  37. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
  38. package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
  39. package/build/dex/aave-pt-to-usdc/config.js +47 -0
  40. package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
  41. package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
  42. package/build/dex/aave-pt-to-usdc/constants.js +6 -0
  43. package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
  44. package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
  45. package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
  46. package/build/dex/apex-defi/apex-defi-factory.d.ts +26 -0
  47. package/build/dex/apex-defi/apex-defi-factory.js +53 -0
  48. package/build/dex/apex-defi/apex-defi-factory.js.map +1 -0
  49. package/build/dex/apex-defi/apex-defi-pool.d.ts +55 -0
  50. package/build/dex/apex-defi/apex-defi-pool.js +247 -0
  51. package/build/dex/apex-defi/apex-defi-pool.js.map +1 -0
  52. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +57 -0
  53. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +250 -0
  54. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +1 -0
  55. package/build/dex/apex-defi/apex-defi.d.ts +97 -0
  56. package/build/dex/apex-defi/apex-defi.js +1021 -0
  57. package/build/dex/apex-defi/apex-defi.js.map +1 -0
  58. package/build/dex/apex-defi/config.d.ts +4 -0
  59. package/build/dex/apex-defi/config.js +138 -0
  60. package/build/dex/apex-defi/config.js.map +1 -0
  61. package/build/dex/apex-defi/types.d.ts +32 -0
  62. package/build/dex/apex-defi/types.js +3 -0
  63. package/build/dex/{usual-bond → apex-defi}/types.js.map +1 -1
  64. package/build/dex/apex-defi/utils.d.ts +46 -0
  65. package/build/dex/apex-defi/utils.js +133 -0
  66. package/build/dex/apex-defi/utils.js.map +1 -0
  67. package/build/dex/maker-psm/maker-psm-event-pool.d.ts +43 -0
  68. package/build/dex/maker-psm/maker-psm-event-pool.js +132 -0
  69. package/build/dex/maker-psm/maker-psm-event-pool.js.map +1 -0
  70. package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
  71. package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
  72. package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
  73. package/build/dex/{usual-bond → stabull}/config.d.ts +1 -1
  74. package/build/dex/stabull/config.js +177 -0
  75. package/build/dex/stabull/config.js.map +1 -0
  76. package/build/dex/{se-vlr/se-vlr-pool.d.ts → stabull/stabull-pool.d.ts} +13 -6
  77. package/build/dex/stabull/stabull-pool.js +113 -0
  78. package/build/dex/stabull/stabull-pool.js.map +1 -0
  79. package/build/dex/stabull/stabull.d.ts +55 -0
  80. package/build/dex/stabull/stabull.js +286 -0
  81. package/build/dex/stabull/stabull.js.map +1 -0
  82. package/build/dex/stabull/types.d.ts +21 -0
  83. package/build/dex/stabull/types.js +3 -0
  84. package/build/dex/stabull/types.js.map +1 -0
  85. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
  86. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
  87. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
  88. package/build/dex/uniswap-v4/contract-math/Position.d.ts +6 -0
  89. package/build/dex/uniswap-v4/contract-math/Position.js +29 -0
  90. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  91. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
  92. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
  93. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
  94. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  95. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
  96. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
  97. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
  98. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
  99. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
  100. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  101. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
  102. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
  103. package/build/dex/uniswap-v4/hooks/index.d.ts +1 -0
  104. package/build/dex/uniswap-v4/hooks/index.js +9 -0
  105. package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
  106. package/build/dex/uniswap-v4/hooks/spot.d.ts +15 -0
  107. package/build/dex/uniswap-v4/hooks/spot.js +109 -0
  108. package/build/dex/uniswap-v4/hooks/spot.js.map +1 -0
  109. package/build/dex/uniswap-v4/hooks/template.d.ts +150 -0
  110. package/build/dex/uniswap-v4/hooks/template.js +104 -0
  111. package/build/dex/uniswap-v4/hooks/template.js.map +1 -0
  112. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
  113. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
  114. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
  115. package/build/dex/usual/usual-usdc-usdc.d.ts +17 -0
  116. package/build/dex/usual/usual-usdc-usdc.js +59 -0
  117. package/build/dex/usual/usual-usdc-usdc.js.map +1 -0
  118. package/build/dex/{se-vlr → yo}/config.d.ts +1 -1
  119. package/build/dex/yo/config.js +21 -0
  120. package/build/dex/yo/config.js.map +1 -0
  121. package/build/dex/yo/types.d.ts +13 -0
  122. package/build/dex/yo/types.js +3 -0
  123. package/build/dex/{se-vlr → yo}/types.js.map +1 -1
  124. package/build/dex/yo/yo-pool.d.ts +13 -0
  125. package/build/dex/yo/yo-pool.js +26 -0
  126. package/build/dex/yo/yo-pool.js.map +1 -0
  127. package/build/dex/yo/yo.d.ts +39 -0
  128. package/build/dex/yo/yo.js +248 -0
  129. package/build/dex/yo/yo.js.map +1 -0
  130. package/build/executor/Executor01BytecodeBuilder.js +9 -3
  131. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  132. package/build/executor/Executor02BytecodeBuilder.js +9 -3
  133. package/build/executor/Executor02BytecodeBuilder.js.map +1 -1
  134. package/build/implementations/api-paraswap-sdk.d.ts +25 -0
  135. package/build/implementations/api-paraswap-sdk.js +102 -0
  136. package/build/implementations/api-paraswap-sdk.js.map +1 -0
  137. package/package.json +1 -1
  138. package/build/abi/Jarvis.json +0 -1172
  139. package/build/abi/Onebit.json +0 -736
  140. package/build/abi/Shell.json +0 -1294
  141. package/build/abi/TraderJoeV2Router.json +0 -50
  142. package/build/abi/wUSDM.json +0 -757
  143. package/build/abi/zrx.v2.json +0 -1967
  144. package/build/abi/zrx.v3.json +0 -3454
  145. package/build/abi/zrx.v4.json +0 -2193
  146. package/build/dex/OneInchLp.d.ts +0 -24
  147. package/build/dex/OneInchLp.js +0 -43
  148. package/build/dex/OneInchLp.js.map +0 -1
  149. package/build/dex/bProtocol/bProtocol.d.ts +0 -15
  150. package/build/dex/bProtocol/bProtocol.js +0 -56
  151. package/build/dex/bProtocol/bProtocol.js.map +0 -1
  152. package/build/dex/bProtocol/types.d.ts +0 -11
  153. package/build/dex/bProtocol/types.js +0 -8
  154. package/build/dex/bProtocol/types.js.map +0 -1
  155. package/build/dex/jarvis.d.ts +0 -56
  156. package/build/dex/jarvis.js +0 -163
  157. package/build/dex/jarvis.js.map +0 -1
  158. package/build/dex/mStable.d.ts +0 -44
  159. package/build/dex/mStable.js +0 -75
  160. package/build/dex/mStable.js.map +0 -1
  161. package/build/dex/onebit/onebit.d.ts +0 -16
  162. package/build/dex/onebit/onebit.js +0 -61
  163. package/build/dex/onebit/onebit.js.map +0 -1
  164. package/build/dex/onebit/types.d.ts +0 -14
  165. package/build/dex/onebit/types.js +0 -8
  166. package/build/dex/onebit/types.js.map +0 -1
  167. package/build/dex/se-vlr/config.js +0 -24
  168. package/build/dex/se-vlr/config.js.map +0 -1
  169. package/build/dex/se-vlr/se-vlr-pool.js +0 -70
  170. package/build/dex/se-vlr/se-vlr-pool.js.map +0 -1
  171. package/build/dex/se-vlr/se-vlr.d.ts +0 -35
  172. package/build/dex/se-vlr/se-vlr.js +0 -131
  173. package/build/dex/se-vlr/se-vlr.js.map +0 -1
  174. package/build/dex/se-vlr/types.d.ts +0 -6
  175. package/build/dex/shell.d.ts +0 -25
  176. package/build/dex/shell.js +0 -41
  177. package/build/dex/shell.js.map +0 -1
  178. package/build/dex/trader-joe-v2.d.ts +0 -40
  179. package/build/dex/trader-joe-v2.js +0 -74
  180. package/build/dex/trader-joe-v2.js.map +0 -1
  181. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +0 -94
  182. package/build/dex/uniswap-v3/uniswap-v3-new.js +0 -923
  183. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +0 -1
  184. package/build/dex/usual-bond/config.js +0 -13
  185. package/build/dex/usual-bond/config.js.map +0 -1
  186. package/build/dex/usual-bond/types.d.ts +0 -7
  187. package/build/dex/usual-bond/usual-bond.js +0 -176
  188. package/build/dex/usual-bond/usual-bond.js.map +0 -1
  189. package/build/dex/wusdm/config.d.ts +0 -3
  190. package/build/dex/wusdm/config.js +0 -43
  191. package/build/dex/wusdm/config.js.map +0 -1
  192. package/build/dex/wusdm/constants.d.ts +0 -2
  193. package/build/dex/wusdm/constants.js +0 -6
  194. package/build/dex/wusdm/constants.js.map +0 -1
  195. package/build/dex/wusdm/types.d.ts +0 -18
  196. package/build/dex/wusdm/types.js +0 -11
  197. package/build/dex/wusdm/types.js.map +0 -1
  198. package/build/dex/wusdm/wusdm-pool.d.ts +0 -21
  199. package/build/dex/wusdm/wusdm-pool.js +0 -74
  200. package/build/dex/wusdm/wusdm-pool.js.map +0 -1
  201. package/build/dex/wusdm/wusdm.d.ts +0 -46
  202. package/build/dex/wusdm/wusdm.js +0 -243
  203. package/build/dex/wusdm/wusdm.js.map +0 -1
  204. package/build/dex/zerox/config.d.ts +0 -2
  205. package/build/dex/zerox/config.js +0 -33
  206. package/build/dex/zerox/config.js.map +0 -1
  207. package/build/dex/zerox/index.d.ts +0 -22
  208. package/build/dex/zerox/index.js +0 -225
  209. package/build/dex/zerox/index.js.map +0 -1
  210. package/build/dex/zerox/order.d.ts +0 -88
  211. package/build/dex/zerox/order.js +0 -53
  212. package/build/dex/zerox/order.js.map +0 -1
  213. package/build/dex/zerox/types.d.ts +0 -73
  214. package/build/dex/zerox/types.js +0 -21
  215. package/build/dex/zerox/types.js.map +0 -1
  216. /package/build/dex/{se-vlr → aave-pt-to-underlying}/types.js +0 -0
  217. /package/build/dex/{usual-bond → aave-pt-to-usdc}/types.js +0 -0
@@ -0,0 +1,738 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "string", "name": "_name", "type": "string" },
5
+ { "internalType": "string", "name": "_symbol", "type": "string" },
6
+ { "internalType": "address[]", "name": "_assets", "type": "address[]" },
7
+ {
8
+ "internalType": "uint256[]",
9
+ "name": "_assetWeights",
10
+ "type": "uint256[]"
11
+ },
12
+ { "internalType": "address", "name": "_factory", "type": "address" }
13
+ ],
14
+ "stateMutability": "nonpayable",
15
+ "type": "constructor"
16
+ },
17
+ {
18
+ "anonymous": false,
19
+ "inputs": [
20
+ {
21
+ "indexed": true,
22
+ "internalType": "address",
23
+ "name": "_owner",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "indexed": true,
28
+ "internalType": "address",
29
+ "name": "spender",
30
+ "type": "address"
31
+ },
32
+ {
33
+ "indexed": false,
34
+ "internalType": "uint256",
35
+ "name": "value",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "Approval",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "anonymous": false,
44
+ "inputs": [
45
+ {
46
+ "indexed": true,
47
+ "internalType": "address",
48
+ "name": "numeraire",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "indexed": true,
53
+ "internalType": "address",
54
+ "name": "reserve",
55
+ "type": "address"
56
+ },
57
+ {
58
+ "indexed": false,
59
+ "internalType": "uint256",
60
+ "name": "weight",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "AssetIncluded",
65
+ "type": "event"
66
+ },
67
+ {
68
+ "anonymous": false,
69
+ "inputs": [
70
+ {
71
+ "indexed": true,
72
+ "internalType": "address",
73
+ "name": "derivative",
74
+ "type": "address"
75
+ },
76
+ {
77
+ "indexed": true,
78
+ "internalType": "address",
79
+ "name": "numeraire",
80
+ "type": "address"
81
+ },
82
+ {
83
+ "indexed": true,
84
+ "internalType": "address",
85
+ "name": "reserve",
86
+ "type": "address"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "address",
91
+ "name": "assimilator",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "AssimilatorIncluded",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": false,
103
+ "internalType": "bool",
104
+ "name": "isEmergency",
105
+ "type": "bool"
106
+ }
107
+ ],
108
+ "name": "EmergencyAlarm",
109
+ "type": "event"
110
+ },
111
+ {
112
+ "anonymous": false,
113
+ "inputs": [
114
+ {
115
+ "indexed": true,
116
+ "internalType": "address",
117
+ "name": "from",
118
+ "type": "address"
119
+ },
120
+ {
121
+ "indexed": true,
122
+ "internalType": "address",
123
+ "name": "to",
124
+ "type": "address"
125
+ },
126
+ {
127
+ "indexed": false,
128
+ "internalType": "uint256",
129
+ "name": "value0",
130
+ "type": "uint256"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "uint256",
135
+ "name": "value1",
136
+ "type": "uint256"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "uint256",
141
+ "name": "paid0",
142
+ "type": "uint256"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "uint256",
147
+ "name": "paid1",
148
+ "type": "uint256"
149
+ }
150
+ ],
151
+ "name": "Flash",
152
+ "type": "event"
153
+ },
154
+ {
155
+ "anonymous": false,
156
+ "inputs": [
157
+ {
158
+ "indexed": false,
159
+ "internalType": "bool",
160
+ "name": "isFrozen",
161
+ "type": "bool"
162
+ }
163
+ ],
164
+ "name": "FrozenSet",
165
+ "type": "event"
166
+ },
167
+ {
168
+ "anonymous": false,
169
+ "inputs": [
170
+ {
171
+ "indexed": true,
172
+ "internalType": "address",
173
+ "name": "previousOwner",
174
+ "type": "address"
175
+ },
176
+ {
177
+ "indexed": true,
178
+ "internalType": "address",
179
+ "name": "newOwner",
180
+ "type": "address"
181
+ }
182
+ ],
183
+ "name": "OwnershipTransfered",
184
+ "type": "event"
185
+ },
186
+ {
187
+ "anonymous": false,
188
+ "inputs": [
189
+ {
190
+ "indexed": false,
191
+ "internalType": "uint256",
192
+ "name": "alpha",
193
+ "type": "uint256"
194
+ },
195
+ {
196
+ "indexed": false,
197
+ "internalType": "uint256",
198
+ "name": "beta",
199
+ "type": "uint256"
200
+ },
201
+ {
202
+ "indexed": false,
203
+ "internalType": "uint256",
204
+ "name": "delta",
205
+ "type": "uint256"
206
+ },
207
+ {
208
+ "indexed": false,
209
+ "internalType": "uint256",
210
+ "name": "epsilon",
211
+ "type": "uint256"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "uint256",
216
+ "name": "lambda",
217
+ "type": "uint256"
218
+ }
219
+ ],
220
+ "name": "ParametersSet",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": true,
228
+ "internalType": "address",
229
+ "name": "token",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": true,
234
+ "internalType": "address",
235
+ "name": "redeemer",
236
+ "type": "address"
237
+ },
238
+ {
239
+ "indexed": false,
240
+ "internalType": "uint256",
241
+ "name": "value",
242
+ "type": "uint256"
243
+ }
244
+ ],
245
+ "name": "PartitionRedeemed",
246
+ "type": "event"
247
+ },
248
+ {
249
+ "anonymous": false,
250
+ "inputs": [
251
+ {
252
+ "indexed": true,
253
+ "internalType": "address",
254
+ "name": "trader",
255
+ "type": "address"
256
+ },
257
+ {
258
+ "indexed": true,
259
+ "internalType": "address",
260
+ "name": "origin",
261
+ "type": "address"
262
+ },
263
+ {
264
+ "indexed": true,
265
+ "internalType": "address",
266
+ "name": "target",
267
+ "type": "address"
268
+ },
269
+ {
270
+ "indexed": false,
271
+ "internalType": "uint256",
272
+ "name": "originAmount",
273
+ "type": "uint256"
274
+ },
275
+ {
276
+ "indexed": false,
277
+ "internalType": "uint256",
278
+ "name": "targetAmount",
279
+ "type": "uint256"
280
+ },
281
+ {
282
+ "indexed": false,
283
+ "internalType": "int128",
284
+ "name": "rawProtocolFee",
285
+ "type": "int128"
286
+ }
287
+ ],
288
+ "name": "Trade",
289
+ "type": "event"
290
+ },
291
+ {
292
+ "anonymous": false,
293
+ "inputs": [
294
+ {
295
+ "indexed": true,
296
+ "internalType": "address",
297
+ "name": "from",
298
+ "type": "address"
299
+ },
300
+ {
301
+ "indexed": true,
302
+ "internalType": "address",
303
+ "name": "to",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "indexed": false,
308
+ "internalType": "uint256",
309
+ "name": "value",
310
+ "type": "uint256"
311
+ }
312
+ ],
313
+ "name": "Transfer",
314
+ "type": "event"
315
+ },
316
+ {
317
+ "inputs": [
318
+ { "internalType": "address", "name": "_owner", "type": "address" },
319
+ { "internalType": "address", "name": "_spender", "type": "address" }
320
+ ],
321
+ "name": "allowance",
322
+ "outputs": [
323
+ { "internalType": "uint256", "name": "allowance_", "type": "uint256" }
324
+ ],
325
+ "stateMutability": "view",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "inputs": [
330
+ { "internalType": "address", "name": "_spender", "type": "address" },
331
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" }
332
+ ],
333
+ "name": "approve",
334
+ "outputs": [{ "internalType": "bool", "name": "success_", "type": "bool" }],
335
+ "stateMutability": "nonpayable",
336
+ "type": "function"
337
+ },
338
+ {
339
+ "inputs": [
340
+ { "internalType": "address", "name": "_derivative", "type": "address" }
341
+ ],
342
+ "name": "assimilator",
343
+ "outputs": [
344
+ { "internalType": "address", "name": "assimilator_", "type": "address" }
345
+ ],
346
+ "stateMutability": "view",
347
+ "type": "function"
348
+ },
349
+ {
350
+ "inputs": [
351
+ { "internalType": "address", "name": "_account", "type": "address" }
352
+ ],
353
+ "name": "balanceOf",
354
+ "outputs": [
355
+ { "internalType": "uint256", "name": "balance_", "type": "uint256" }
356
+ ],
357
+ "stateMutability": "view",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "curve",
363
+ "outputs": [
364
+ { "internalType": "int128", "name": "alpha", "type": "int128" },
365
+ { "internalType": "int128", "name": "beta", "type": "int128" },
366
+ { "internalType": "int128", "name": "delta", "type": "int128" },
367
+ { "internalType": "int128", "name": "epsilon", "type": "int128" },
368
+ { "internalType": "int128", "name": "lambda", "type": "int128" },
369
+ { "internalType": "uint256", "name": "totalSupply", "type": "uint256" }
370
+ ],
371
+ "stateMutability": "view",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "decimals",
377
+ "outputs": [{ "internalType": "uint8", "name": "", "type": "uint8" }],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ { "internalType": "uint256", "name": "_deposit", "type": "uint256" },
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "_minQuoteAmount",
387
+ "type": "uint256"
388
+ },
389
+ {
390
+ "internalType": "uint256",
391
+ "name": "_minBaseAmount",
392
+ "type": "uint256"
393
+ },
394
+ {
395
+ "internalType": "uint256",
396
+ "name": "_maxQuoteAmount",
397
+ "type": "uint256"
398
+ },
399
+ {
400
+ "internalType": "uint256",
401
+ "name": "_maxBaseAmount",
402
+ "type": "uint256"
403
+ },
404
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
405
+ ],
406
+ "name": "deposit",
407
+ "outputs": [
408
+ { "internalType": "uint256", "name": "", "type": "uint256" },
409
+ { "internalType": "uint256[]", "name": "", "type": "uint256[]" }
410
+ ],
411
+ "stateMutability": "nonpayable",
412
+ "type": "function"
413
+ },
414
+ {
415
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
416
+ "name": "derivatives",
417
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
418
+ "stateMutability": "view",
419
+ "type": "function"
420
+ },
421
+ {
422
+ "inputs": [],
423
+ "name": "emergency",
424
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
425
+ "stateMutability": "view",
426
+ "type": "function"
427
+ },
428
+ {
429
+ "inputs": [
430
+ { "internalType": "uint256", "name": "_curvesToBurn", "type": "uint256" },
431
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
432
+ ],
433
+ "name": "emergencyWithdraw",
434
+ "outputs": [
435
+ {
436
+ "internalType": "uint256[]",
437
+ "name": "withdrawals_",
438
+ "type": "uint256[]"
439
+ }
440
+ ],
441
+ "stateMutability": "nonpayable",
442
+ "type": "function"
443
+ },
444
+ {
445
+ "inputs": [
446
+ { "internalType": "address", "name": "_derivative", "type": "address" }
447
+ ],
448
+ "name": "excludeDerivative",
449
+ "outputs": [],
450
+ "stateMutability": "nonpayable",
451
+ "type": "function"
452
+ },
453
+ {
454
+ "inputs": [
455
+ { "internalType": "address", "name": "recipient", "type": "address" },
456
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
457
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" },
458
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
459
+ ],
460
+ "name": "flash",
461
+ "outputs": [],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [],
467
+ "name": "frozen",
468
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
469
+ "stateMutability": "view",
470
+ "type": "function"
471
+ },
472
+ {
473
+ "inputs": [],
474
+ "name": "liquidity",
475
+ "outputs": [
476
+ { "internalType": "uint256", "name": "total_", "type": "uint256" },
477
+ {
478
+ "internalType": "uint256[]",
479
+ "name": "individual_",
480
+ "type": "uint256[]"
481
+ }
482
+ ],
483
+ "stateMutability": "view",
484
+ "type": "function"
485
+ },
486
+ {
487
+ "inputs": [],
488
+ "name": "name",
489
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
490
+ "stateMutability": "view",
491
+ "type": "function"
492
+ },
493
+ {
494
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
495
+ "name": "numeraires",
496
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
497
+ "stateMutability": "view",
498
+ "type": "function"
499
+ },
500
+ {
501
+ "inputs": [
502
+ { "internalType": "address", "name": "_origin", "type": "address" },
503
+ { "internalType": "address", "name": "_target", "type": "address" },
504
+ { "internalType": "uint256", "name": "_originAmount", "type": "uint256" },
505
+ {
506
+ "internalType": "uint256",
507
+ "name": "_minTargetAmount",
508
+ "type": "uint256"
509
+ },
510
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
511
+ ],
512
+ "name": "originSwap",
513
+ "outputs": [
514
+ { "internalType": "uint256", "name": "targetAmount_", "type": "uint256" }
515
+ ],
516
+ "stateMutability": "nonpayable",
517
+ "type": "function"
518
+ },
519
+ {
520
+ "inputs": [],
521
+ "name": "owner",
522
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
523
+ "stateMutability": "view",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
528
+ "name": "reserves",
529
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [
535
+ { "internalType": "address", "name": "_baseCurrency", "type": "address" },
536
+ { "internalType": "address", "name": "_baseAssim", "type": "address" },
537
+ {
538
+ "internalType": "address",
539
+ "name": "_quoteCurrency",
540
+ "type": "address"
541
+ },
542
+ { "internalType": "address", "name": "_quoteAssim", "type": "address" }
543
+ ],
544
+ "name": "setAssimilator",
545
+ "outputs": [],
546
+ "stateMutability": "nonpayable",
547
+ "type": "function"
548
+ },
549
+ {
550
+ "inputs": [
551
+ { "internalType": "bool", "name": "_emergency", "type": "bool" }
552
+ ],
553
+ "name": "setEmergency",
554
+ "outputs": [],
555
+ "stateMutability": "nonpayable",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [
560
+ {
561
+ "internalType": "bool",
562
+ "name": "_toFreezeOrNotToFreeze",
563
+ "type": "bool"
564
+ }
565
+ ],
566
+ "name": "setFrozen",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ { "internalType": "uint256", "name": "_alpha", "type": "uint256" },
574
+ { "internalType": "uint256", "name": "_beta", "type": "uint256" },
575
+ { "internalType": "uint256", "name": "_feeAtHalt", "type": "uint256" },
576
+ { "internalType": "uint256", "name": "_epsilon", "type": "uint256" },
577
+ { "internalType": "uint256", "name": "_lambda", "type": "uint256" }
578
+ ],
579
+ "name": "setParams",
580
+ "outputs": [],
581
+ "stateMutability": "nonpayable",
582
+ "type": "function"
583
+ },
584
+ {
585
+ "inputs": [
586
+ { "internalType": "bytes4", "name": "_interface", "type": "bytes4" }
587
+ ],
588
+ "name": "supportsInterface",
589
+ "outputs": [
590
+ { "internalType": "bool", "name": "supports_", "type": "bool" }
591
+ ],
592
+ "stateMutability": "pure",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [],
597
+ "name": "symbol",
598
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
599
+ "stateMutability": "view",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ { "internalType": "address", "name": "_origin", "type": "address" },
605
+ { "internalType": "address", "name": "_target", "type": "address" },
606
+ {
607
+ "internalType": "uint256",
608
+ "name": "_maxOriginAmount",
609
+ "type": "uint256"
610
+ },
611
+ { "internalType": "uint256", "name": "_targetAmount", "type": "uint256" },
612
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
613
+ ],
614
+ "name": "targetSwap",
615
+ "outputs": [
616
+ { "internalType": "uint256", "name": "originAmount_", "type": "uint256" }
617
+ ],
618
+ "stateMutability": "nonpayable",
619
+ "type": "function"
620
+ },
621
+ {
622
+ "inputs": [],
623
+ "name": "totalSupply",
624
+ "outputs": [
625
+ { "internalType": "uint256", "name": "totalSupply_", "type": "uint256" }
626
+ ],
627
+ "stateMutability": "view",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ { "internalType": "address", "name": "_recipient", "type": "address" },
633
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" }
634
+ ],
635
+ "name": "transfer",
636
+ "outputs": [{ "internalType": "bool", "name": "success_", "type": "bool" }],
637
+ "stateMutability": "nonpayable",
638
+ "type": "function"
639
+ },
640
+ {
641
+ "inputs": [
642
+ { "internalType": "address", "name": "_sender", "type": "address" },
643
+ { "internalType": "address", "name": "_recipient", "type": "address" },
644
+ { "internalType": "uint256", "name": "_amount", "type": "uint256" }
645
+ ],
646
+ "name": "transferFrom",
647
+ "outputs": [{ "internalType": "bool", "name": "success_", "type": "bool" }],
648
+ "stateMutability": "nonpayable",
649
+ "type": "function"
650
+ },
651
+ {
652
+ "inputs": [
653
+ { "internalType": "address", "name": "_newOwner", "type": "address" }
654
+ ],
655
+ "name": "transferOwnership",
656
+ "outputs": [],
657
+ "stateMutability": "nonpayable",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "inputs": [],
662
+ "name": "viewCurve",
663
+ "outputs": [
664
+ { "internalType": "uint256", "name": "alpha_", "type": "uint256" },
665
+ { "internalType": "uint256", "name": "beta_", "type": "uint256" },
666
+ { "internalType": "uint256", "name": "delta_", "type": "uint256" },
667
+ { "internalType": "uint256", "name": "epsilon_", "type": "uint256" },
668
+ { "internalType": "uint256", "name": "lambda_", "type": "uint256" }
669
+ ],
670
+ "stateMutability": "view",
671
+ "type": "function"
672
+ },
673
+ {
674
+ "inputs": [
675
+ { "internalType": "uint256", "name": "_deposit", "type": "uint256" }
676
+ ],
677
+ "name": "viewDeposit",
678
+ "outputs": [
679
+ { "internalType": "uint256", "name": "", "type": "uint256" },
680
+ { "internalType": "uint256[]", "name": "", "type": "uint256[]" }
681
+ ],
682
+ "stateMutability": "view",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [
687
+ { "internalType": "address", "name": "_origin", "type": "address" },
688
+ { "internalType": "address", "name": "_target", "type": "address" },
689
+ { "internalType": "uint256", "name": "_originAmount", "type": "uint256" }
690
+ ],
691
+ "name": "viewOriginSwap",
692
+ "outputs": [
693
+ { "internalType": "uint256", "name": "targetAmount_", "type": "uint256" }
694
+ ],
695
+ "stateMutability": "view",
696
+ "type": "function"
697
+ },
698
+ {
699
+ "inputs": [
700
+ { "internalType": "address", "name": "_origin", "type": "address" },
701
+ { "internalType": "address", "name": "_target", "type": "address" },
702
+ { "internalType": "uint256", "name": "_targetAmount", "type": "uint256" }
703
+ ],
704
+ "name": "viewTargetSwap",
705
+ "outputs": [
706
+ { "internalType": "uint256", "name": "originAmount_", "type": "uint256" }
707
+ ],
708
+ "stateMutability": "view",
709
+ "type": "function"
710
+ },
711
+ {
712
+ "inputs": [
713
+ { "internalType": "uint256", "name": "_curvesToBurn", "type": "uint256" }
714
+ ],
715
+ "name": "viewWithdraw",
716
+ "outputs": [
717
+ { "internalType": "uint256[]", "name": "", "type": "uint256[]" }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ { "internalType": "uint256", "name": "_curvesToBurn", "type": "uint256" },
725
+ { "internalType": "uint256", "name": "_deadline", "type": "uint256" }
726
+ ],
727
+ "name": "withdraw",
728
+ "outputs": [
729
+ {
730
+ "internalType": "uint256[]",
731
+ "name": "withdrawals_",
732
+ "type": "uint256[]"
733
+ }
734
+ ],
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ }
738
+ ]