@paraswap/dex-lib 4.7.13-from-amount-pos.0 → 4.7.13-unified-pair-restriction.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 (244) hide show
  1. package/build/abi/{apex-defi/ApexDefiRouter.abi.json → BProtocol.json} +573 -538
  2. package/build/abi/Jarvis.json +1172 -0
  3. package/build/abi/{apex-defi/ApexDefiFactory.abi.json → MStableAsset.json} +781 -985
  4. package/build/abi/{apex-defi/ApexDefiWrapperFactory.abi.json → OneInchLp.json} +766 -569
  5. package/build/abi/Onebit.json +736 -0
  6. package/build/abi/Shell.json +1294 -0
  7. package/build/abi/TraderJoeV2Router.json +50 -0
  8. package/build/abi/wUSDM.json +757 -0
  9. package/build/abi/zrx.v2.json +1967 -0
  10. package/build/abi/zrx.v3.json +3454 -0
  11. package/build/abi/zrx.v4.json +2193 -0
  12. package/build/dex/OneInchLp.d.ts +24 -0
  13. package/build/dex/OneInchLp.js +43 -0
  14. package/build/dex/OneInchLp.js.map +1 -0
  15. package/build/dex/bProtocol/bProtocol.d.ts +15 -0
  16. package/build/dex/bProtocol/bProtocol.js +56 -0
  17. package/build/dex/bProtocol/bProtocol.js.map +1 -0
  18. package/build/dex/bProtocol/types.d.ts +11 -0
  19. package/build/dex/bProtocol/types.js +8 -0
  20. package/build/dex/bProtocol/types.js.map +1 -0
  21. package/build/dex/cables/cables.d.ts +1 -1
  22. package/build/dex/cables/cables.js +1 -1
  23. package/build/dex/cables/cables.js.map +1 -1
  24. package/build/dex/dexalot/dexalot.d.ts +0 -3
  25. package/build/dex/dexalot/dexalot.js +9 -17
  26. package/build/dex/dexalot/dexalot.js.map +1 -1
  27. package/build/dex/generic-rfq/generic-rfq.d.ts +1 -1
  28. package/build/dex/generic-rfq/generic-rfq.js +54 -44
  29. package/build/dex/generic-rfq/generic-rfq.js.map +1 -1
  30. package/build/dex/generic-rfq/types.d.ts +3 -0
  31. package/build/dex/generic-rfq/types.js +6 -0
  32. package/build/dex/generic-rfq/types.js.map +1 -1
  33. package/build/dex/hashflow/hashflow.js +2 -1
  34. package/build/dex/hashflow/hashflow.js.map +1 -1
  35. package/build/dex/idex.d.ts +6 -0
  36. package/build/dex/jarvis.d.ts +56 -0
  37. package/build/dex/jarvis.js +163 -0
  38. package/build/dex/jarvis.js.map +1 -0
  39. package/build/dex/limit-order-exchange.js +1 -0
  40. package/build/dex/limit-order-exchange.js.map +1 -1
  41. package/build/dex/mStable.d.ts +44 -0
  42. package/build/dex/mStable.js +75 -0
  43. package/build/dex/mStable.js.map +1 -0
  44. package/build/dex/onebit/onebit.d.ts +16 -0
  45. package/build/dex/onebit/onebit.js +61 -0
  46. package/build/dex/onebit/onebit.js.map +1 -0
  47. package/build/dex/onebit/types.d.ts +14 -0
  48. package/build/dex/onebit/types.js +8 -0
  49. package/build/dex/onebit/types.js.map +1 -0
  50. package/build/dex/{yo → se-vlr}/config.d.ts +1 -1
  51. package/build/dex/se-vlr/config.js +24 -0
  52. package/build/dex/se-vlr/config.js.map +1 -0
  53. package/build/dex/{stabull/stabull-pool.d.ts → se-vlr/se-vlr-pool.d.ts} +6 -13
  54. package/build/dex/se-vlr/se-vlr-pool.js +70 -0
  55. package/build/dex/se-vlr/se-vlr-pool.js.map +1 -0
  56. package/build/dex/se-vlr/se-vlr.d.ts +35 -0
  57. package/build/dex/se-vlr/se-vlr.js +131 -0
  58. package/build/dex/se-vlr/se-vlr.js.map +1 -0
  59. package/build/dex/se-vlr/types.d.ts +6 -0
  60. package/build/dex/{yo → se-vlr}/types.js.map +1 -1
  61. package/build/dex/shell.d.ts +25 -0
  62. package/build/dex/shell.js +41 -0
  63. package/build/dex/shell.js.map +1 -0
  64. package/build/dex/simple-exchange-with-restrictions.d.ts +10 -2
  65. package/build/dex/simple-exchange-with-restrictions.js +30 -1
  66. package/build/dex/simple-exchange-with-restrictions.js.map +1 -1
  67. package/build/dex/swaap-v2/swaap-v2.d.ts +1 -3
  68. package/build/dex/swaap-v2/swaap-v2.js +11 -24
  69. package/build/dex/swaap-v2/swaap-v2.js.map +1 -1
  70. package/build/dex/swaap-v2/utils.d.ts +1 -0
  71. package/build/dex/swaap-v2/utils.js +7 -1
  72. package/build/dex/swaap-v2/utils.js.map +1 -1
  73. package/build/dex/trader-joe-v2.d.ts +40 -0
  74. package/build/dex/trader-joe-v2.js +74 -0
  75. package/build/dex/trader-joe-v2.js.map +1 -0
  76. package/build/dex/uniswap-v3/uniswap-v3-new.d.ts +94 -0
  77. package/build/dex/uniswap-v3/uniswap-v3-new.js +923 -0
  78. package/build/dex/uniswap-v3/uniswap-v3-new.js.map +1 -0
  79. package/build/dex/uniswap-v4/contract-math/Position.d.ts +0 -6
  80. package/build/dex/uniswap-v4/contract-math/Position.js +0 -29
  81. package/build/dex/uniswap-v4/contract-math/Position.js.map +1 -1
  82. package/build/dex/{stabull → usual-bond}/config.d.ts +1 -1
  83. package/build/dex/usual-bond/config.js +13 -0
  84. package/build/dex/usual-bond/config.js.map +1 -0
  85. package/build/dex/usual-bond/types.d.ts +7 -0
  86. package/build/dex/{apex-defi → usual-bond}/types.js.map +1 -1
  87. package/build/dex/{aave-pt-to-underlying/aave-pt-to-underlying.d.ts → usual-bond/usual-bond.d.ts} +18 -23
  88. package/build/dex/usual-bond/usual-bond.js +176 -0
  89. package/build/dex/usual-bond/usual-bond.js.map +1 -0
  90. package/build/dex/wusdm/config.d.ts +3 -0
  91. package/build/dex/wusdm/config.js +43 -0
  92. package/build/dex/wusdm/config.js.map +1 -0
  93. package/build/dex/wusdm/constants.d.ts +2 -0
  94. package/build/dex/wusdm/constants.js +6 -0
  95. package/build/dex/wusdm/constants.js.map +1 -0
  96. package/build/dex/wusdm/types.d.ts +18 -0
  97. package/build/dex/wusdm/types.js +11 -0
  98. package/build/dex/wusdm/types.js.map +1 -0
  99. package/build/dex/wusdm/wusdm-pool.d.ts +21 -0
  100. package/build/dex/wusdm/wusdm-pool.js +74 -0
  101. package/build/dex/wusdm/wusdm-pool.js.map +1 -0
  102. package/build/dex/wusdm/wusdm.d.ts +46 -0
  103. package/build/dex/wusdm/wusdm.js +243 -0
  104. package/build/dex/wusdm/wusdm.js.map +1 -0
  105. package/build/dex/zerox/config.d.ts +2 -0
  106. package/build/dex/zerox/config.js +33 -0
  107. package/build/dex/zerox/config.js.map +1 -0
  108. package/build/dex/zerox/index.d.ts +22 -0
  109. package/build/dex/zerox/index.js +225 -0
  110. package/build/dex/zerox/index.js.map +1 -0
  111. package/build/dex/zerox/order.d.ts +88 -0
  112. package/build/dex/zerox/order.js +53 -0
  113. package/build/dex/zerox/order.js.map +1 -0
  114. package/build/dex/zerox/types.d.ts +73 -0
  115. package/build/dex/zerox/types.js +21 -0
  116. package/build/dex/zerox/types.js.map +1 -0
  117. package/build/executor/Executor01BytecodeBuilder.js +4 -10
  118. package/build/executor/Executor01BytecodeBuilder.js.map +1 -1
  119. package/build/pricing-helper.d.ts +2 -1
  120. package/build/pricing-helper.js +22 -3
  121. package/build/pricing-helper.js.map +1 -1
  122. package/package.json +1 -1
  123. package/build/abi/PendleRouterStatic.json +0 -19
  124. package/build/abi/apex-defi/ApexDefiToken.abi.json +0 -229
  125. package/build/abi/apex-defi/ApexDefiWrapper.abi.json +0 -92
  126. package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +0 -796
  127. package/build/abi/pendle/pendle-deployer.abi.json +0 -520
  128. package/build/abi/pendle/pendle-oracle.abi.json +0 -413
  129. package/build/abi/ring-v2/few-wrapped-token.json +0 -587
  130. package/build/abi/ring-v2/ring-v2-factory.json +0 -125
  131. package/build/abi/ring-v2/ring-v2-pool.json +0 -461
  132. package/build/abi/ring-v2/ring-v2-router.json +0 -332
  133. package/build/abi/stabull/stabull-curve.json +0 -738
  134. package/build/abi/stabull/stabull-router.json +0 -76
  135. package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +0 -26
  136. package/build/abi/uniswap-v4/hooks/SpotHook.json +0 -54
  137. package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +0 -45
  138. package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +0 -682
  139. package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +0 -1335
  140. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +0 -29
  141. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +0 -153
  142. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +0 -1
  143. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +0 -323
  144. package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +0 -1
  145. package/build/dex/aave-pt-to-underlying/config.d.ts +0 -3
  146. package/build/dex/aave-pt-to-underlying/config.js +0 -24
  147. package/build/dex/aave-pt-to-underlying/config.js.map +0 -1
  148. package/build/dex/aave-pt-to-underlying/constants.d.ts +0 -2
  149. package/build/dex/aave-pt-to-underlying/constants.js +0 -6
  150. package/build/dex/aave-pt-to-underlying/constants.js.map +0 -1
  151. package/build/dex/aave-pt-to-underlying/types.d.ts +0 -24
  152. package/build/dex/aave-pt-to-underlying/types.js.map +0 -1
  153. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +0 -39
  154. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +0 -244
  155. package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +0 -1
  156. package/build/dex/aave-pt-to-usdc/config.d.ts +0 -3
  157. package/build/dex/aave-pt-to-usdc/config.js +0 -47
  158. package/build/dex/aave-pt-to-usdc/config.js.map +0 -1
  159. package/build/dex/aave-pt-to-usdc/constants.d.ts +0 -2
  160. package/build/dex/aave-pt-to-usdc/constants.js +0 -6
  161. package/build/dex/aave-pt-to-usdc/constants.js.map +0 -1
  162. package/build/dex/aave-pt-to-usdc/types.d.ts +0 -22
  163. package/build/dex/aave-pt-to-usdc/types.js.map +0 -1
  164. package/build/dex/apex-defi/apex-defi-factory.d.ts +0 -26
  165. package/build/dex/apex-defi/apex-defi-factory.js +0 -53
  166. package/build/dex/apex-defi/apex-defi-factory.js.map +0 -1
  167. package/build/dex/apex-defi/apex-defi-pool.d.ts +0 -55
  168. package/build/dex/apex-defi/apex-defi-pool.js +0 -247
  169. package/build/dex/apex-defi/apex-defi-pool.js.map +0 -1
  170. package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +0 -57
  171. package/build/dex/apex-defi/apex-defi-wrapper-factory.js +0 -250
  172. package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +0 -1
  173. package/build/dex/apex-defi/apex-defi.d.ts +0 -97
  174. package/build/dex/apex-defi/apex-defi.js +0 -1021
  175. package/build/dex/apex-defi/apex-defi.js.map +0 -1
  176. package/build/dex/apex-defi/config.d.ts +0 -4
  177. package/build/dex/apex-defi/config.js +0 -138
  178. package/build/dex/apex-defi/config.js.map +0 -1
  179. package/build/dex/apex-defi/types.d.ts +0 -32
  180. package/build/dex/apex-defi/types.js +0 -3
  181. package/build/dex/apex-defi/utils.d.ts +0 -46
  182. package/build/dex/apex-defi/utils.js +0 -133
  183. package/build/dex/apex-defi/utils.js.map +0 -1
  184. package/build/dex/maker-psm/maker-psm-event-pool.d.ts +0 -43
  185. package/build/dex/maker-psm/maker-psm-event-pool.js +0 -132
  186. package/build/dex/maker-psm/maker-psm-event-pool.js.map +0 -1
  187. package/build/dex/miro-migrator/miro-migrator-state.d.ts +0 -27
  188. package/build/dex/miro-migrator/miro-migrator-state.js +0 -89
  189. package/build/dex/miro-migrator/miro-migrator-state.js.map +0 -1
  190. package/build/dex/stabull/config.js +0 -177
  191. package/build/dex/stabull/config.js.map +0 -1
  192. package/build/dex/stabull/stabull-pool.js +0 -113
  193. package/build/dex/stabull/stabull-pool.js.map +0 -1
  194. package/build/dex/stabull/stabull.d.ts +0 -55
  195. package/build/dex/stabull/stabull.js +0 -286
  196. package/build/dex/stabull/stabull.js.map +0 -1
  197. package/build/dex/stabull/types.d.ts +0 -21
  198. package/build/dex/stabull/types.js +0 -3
  199. package/build/dex/stabull/types.js.map +0 -1
  200. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +0 -4
  201. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +0 -56
  202. package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +0 -1
  203. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +0 -7
  204. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +0 -28
  205. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +0 -1
  206. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
  207. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +0 -2
  208. package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +0 -1
  209. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +0 -7
  210. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +0 -28
  211. package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +0 -1
  212. package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
  213. package/build/dex/uniswap-v4/hooks/fee-hook/types.js +0 -2
  214. package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +0 -1
  215. package/build/dex/uniswap-v4/hooks/index.d.ts +0 -1
  216. package/build/dex/uniswap-v4/hooks/index.js +0 -9
  217. package/build/dex/uniswap-v4/hooks/index.js.map +0 -1
  218. package/build/dex/uniswap-v4/hooks/spot.d.ts +0 -15
  219. package/build/dex/uniswap-v4/hooks/spot.js +0 -109
  220. package/build/dex/uniswap-v4/hooks/spot.js.map +0 -1
  221. package/build/dex/uniswap-v4/hooks/template.d.ts +0 -150
  222. package/build/dex/uniswap-v4/hooks/template.js +0 -104
  223. package/build/dex/uniswap-v4/hooks/template.js.map +0 -1
  224. package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +0 -26
  225. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +0 -75
  226. package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +0 -1
  227. package/build/dex/usual/usual-usdc-usdc.d.ts +0 -17
  228. package/build/dex/usual/usual-usdc-usdc.js +0 -59
  229. package/build/dex/usual/usual-usdc-usdc.js.map +0 -1
  230. package/build/dex/yo/config.js +0 -21
  231. package/build/dex/yo/config.js.map +0 -1
  232. package/build/dex/yo/types.d.ts +0 -13
  233. package/build/dex/yo/types.js +0 -3
  234. package/build/dex/yo/yo-pool.d.ts +0 -13
  235. package/build/dex/yo/yo-pool.js +0 -26
  236. package/build/dex/yo/yo-pool.js.map +0 -1
  237. package/build/dex/yo/yo.d.ts +0 -39
  238. package/build/dex/yo/yo.js +0 -248
  239. package/build/dex/yo/yo.js.map +0 -1
  240. package/build/implementations/api-paraswap-sdk.d.ts +0 -25
  241. package/build/implementations/api-paraswap-sdk.js +0 -102
  242. package/build/implementations/api-paraswap-sdk.js.map +0 -1
  243. /package/build/dex/{aave-pt-to-underlying → se-vlr}/types.js +0 -0
  244. /package/build/dex/{aave-pt-to-usdc → usual-bond}/types.js +0 -0
@@ -1,738 +0,0 @@
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
- ]