@paraswap/dex-lib 4.7.20-native-insert-amount.4 → 4.7.20-native-insert-amount.5
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.
- package/build/abi/PendleRouterStatic.json +19 -0
- package/build/abi/apex-defi/ApexDefiFactory.abi.json +1749 -0
- package/build/abi/apex-defi/ApexDefiRouter.abi.json +1120 -0
- package/build/abi/apex-defi/ApexDefiToken.abi.json +229 -0
- package/build/abi/apex-defi/ApexDefiWrapper.abi.json +92 -0
- package/build/abi/apex-defi/ApexDefiWrapperFactory.abi.json +1107 -0
- package/build/abi/pangolin-v3/PangolinV3StateMulticall.abi.json +796 -0
- package/build/abi/pendle/pendle-deployer.abi.json +520 -0
- package/build/abi/pendle/pendle-oracle.abi.json +413 -0
- package/build/abi/ring-v2/few-wrapped-token.json +587 -0
- package/build/abi/ring-v2/ring-v2-factory.json +125 -0
- package/build/abi/ring-v2/ring-v2-pool.json +461 -0
- package/build/abi/ring-v2/ring-v2-router.json +332 -0
- package/build/abi/stabull/stabull-curve.json +738 -0
- package/build/abi/stabull/stabull-router.json +76 -0
- package/build/abi/uniswap-v4/hooks/SpotDynamicFeeManager.json +26 -0
- package/build/abi/uniswap-v4/hooks/SpotHook.json +54 -0
- package/build/abi/uniswap-v4/hooks/SpotPolicyManager.json +45 -0
- package/build/abi/uniswap-v4/hooks/cabalcoin-hook.abi.json +682 -0
- package/build/abi/uniswap-v4/hooks/fee-hook.abi.json +1335 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.d.ts +29 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js +153 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying-factory.js.map +1 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.d.ts +40 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js +323 -0
- package/build/dex/aave-pt-to-underlying/aave-pt-to-underlying.js.map +1 -0
- package/build/dex/aave-pt-to-underlying/config.d.ts +3 -0
- package/build/dex/aave-pt-to-underlying/config.js +24 -0
- package/build/dex/aave-pt-to-underlying/config.js.map +1 -0
- package/build/dex/aave-pt-to-underlying/constants.d.ts +2 -0
- package/build/dex/aave-pt-to-underlying/constants.js +6 -0
- package/build/dex/aave-pt-to-underlying/constants.js.map +1 -0
- package/build/dex/aave-pt-to-underlying/types.d.ts +24 -0
- package/build/dex/aave-pt-to-underlying/types.js +3 -0
- package/build/dex/aave-pt-to-underlying/types.js.map +1 -0
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.d.ts +39 -0
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js +244 -0
- package/build/dex/aave-pt-to-usdc/aave-pt-to-usdc.js.map +1 -0
- package/build/dex/aave-pt-to-usdc/config.d.ts +3 -0
- package/build/dex/aave-pt-to-usdc/config.js +47 -0
- package/build/dex/aave-pt-to-usdc/config.js.map +1 -0
- package/build/dex/aave-pt-to-usdc/constants.d.ts +2 -0
- package/build/dex/aave-pt-to-usdc/constants.js +6 -0
- package/build/dex/aave-pt-to-usdc/constants.js.map +1 -0
- package/build/dex/aave-pt-to-usdc/types.d.ts +22 -0
- package/build/dex/aave-pt-to-usdc/types.js +3 -0
- package/build/dex/aave-pt-to-usdc/types.js.map +1 -0
- package/build/dex/apex-defi/apex-defi-factory.d.ts +26 -0
- package/build/dex/apex-defi/apex-defi-factory.js +53 -0
- package/build/dex/apex-defi/apex-defi-factory.js.map +1 -0
- package/build/dex/apex-defi/apex-defi-pool.d.ts +55 -0
- package/build/dex/apex-defi/apex-defi-pool.js +247 -0
- package/build/dex/apex-defi/apex-defi-pool.js.map +1 -0
- package/build/dex/apex-defi/apex-defi-wrapper-factory.d.ts +57 -0
- package/build/dex/apex-defi/apex-defi-wrapper-factory.js +250 -0
- package/build/dex/apex-defi/apex-defi-wrapper-factory.js.map +1 -0
- package/build/dex/apex-defi/apex-defi.d.ts +97 -0
- package/build/dex/apex-defi/apex-defi.js +1021 -0
- package/build/dex/apex-defi/apex-defi.js.map +1 -0
- package/build/dex/apex-defi/config.d.ts +4 -0
- package/build/dex/apex-defi/config.js +138 -0
- package/build/dex/apex-defi/config.js.map +1 -0
- package/build/dex/apex-defi/types.d.ts +32 -0
- package/build/dex/apex-defi/types.js +3 -0
- package/build/dex/apex-defi/types.js.map +1 -0
- package/build/dex/apex-defi/utils.d.ts +46 -0
- package/build/dex/apex-defi/utils.js +133 -0
- package/build/dex/apex-defi/utils.js.map +1 -0
- package/build/dex/idle-dao/idle-dao.d.ts +0 -1
- package/build/dex/idle-dao/idle-dao.js +11 -23
- package/build/dex/idle-dao/idle-dao.js.map +1 -1
- package/build/dex/maker-psm/maker-psm.d.ts +41 -4
- package/build/dex/maker-psm/maker-psm.js +143 -40
- package/build/dex/maker-psm/maker-psm.js.map +1 -1
- package/build/dex/miro-migrator/miro-migrator-state.d.ts +27 -0
- package/build/dex/miro-migrator/miro-migrator-state.js +89 -0
- package/build/dex/miro-migrator/miro-migrator-state.js.map +1 -0
- package/build/dex/native/native.js +6 -16
- package/build/dex/native/native.js.map +1 -1
- package/build/dex/stabull/config.d.ts +3 -0
- package/build/dex/stabull/config.js +177 -0
- package/build/dex/stabull/config.js.map +1 -0
- package/build/dex/stabull/stabull-pool.d.ts +46 -0
- package/build/dex/stabull/stabull-pool.js +113 -0
- package/build/dex/stabull/stabull-pool.js.map +1 -0
- package/build/dex/stabull/stabull.d.ts +55 -0
- package/build/dex/stabull/stabull.js +286 -0
- package/build/dex/stabull/stabull.js.map +1 -0
- package/build/dex/stabull/types.d.ts +21 -0
- package/build/dex/stabull/types.js +3 -0
- package/build/dex/stabull/types.js.map +1 -0
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.d.ts +4 -0
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js +56 -0
- package/build/dex/uniswap-v3/forks/pangolin-v3/utils.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/arena.d.ts +6 -0
- package/build/dex/uniswap-v4/hooks/arena.js +10 -0
- package/build/dex/uniswap-v4/hooks/arena.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.d.ts +0 -0
- package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js +2 -0
- package/build/dex/uniswap-v4/hooks/base-fee/base-fee-hook.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.d.ts +7 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js +28 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/cabalcoin-hook-pool.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.d.ts +0 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js +2 -0
- package/build/dex/uniswap-v4/hooks/cabalcoin-hook/types.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.d.ts +7 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js +28 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/fee-hook-pool.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/types.d.ts +0 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/types.js +2 -0
- package/build/dex/uniswap-v4/hooks/fee-hook/types.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/index.d.ts +1 -0
- package/build/dex/uniswap-v4/hooks/index.js +18 -0
- package/build/dex/uniswap-v4/hooks/index.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/spot.d.ts +15 -0
- package/build/dex/uniswap-v4/hooks/spot.js +109 -0
- package/build/dex/uniswap-v4/hooks/spot.js.map +1 -0
- package/build/dex/uniswap-v4/hooks/template.d.ts +150 -0
- package/build/dex/uniswap-v4/hooks/template.js +104 -0
- package/build/dex/uniswap-v4/hooks/template.js.map +1 -0
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.d.ts +26 -0
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.js +75 -0
- package/build/dex/usdc-transmuter/usdc-transmuter-pool.js.map +1 -0
- package/build/dex/usual/usual-usdc-usdc.d.ts +17 -0
- package/build/dex/usual/usual-usdc-usdc.js +59 -0
- package/build/dex/usual/usual-usdc-usdc.js.map +1 -0
- package/build/dex/yo/config.d.ts +3 -0
- package/build/dex/yo/config.js +21 -0
- package/build/dex/yo/config.js.map +1 -0
- package/build/dex/yo/types.d.ts +13 -0
- package/build/dex/yo/types.js +3 -0
- package/build/dex/yo/types.js.map +1 -0
- package/build/dex/yo/yo-pool.d.ts +13 -0
- package/build/dex/yo/yo-pool.js +26 -0
- package/build/dex/yo/yo-pool.js.map +1 -0
- package/build/dex/yo/yo.d.ts +39 -0
- package/build/dex/yo/yo.js +248 -0
- package/build/dex/yo/yo.js.map +1 -0
- package/build/implementations/api-paraswap-sdk.d.ts +25 -0
- package/build/implementations/api-paraswap-sdk.js +102 -0
- package/build/implementations/api-paraswap-sdk.js.map +1 -0
- package/package.json +1 -1
- package/build/executor/Executor02BytecodeBuilderMultiRoute.d.ts +0 -101
- package/build/executor/Executor02BytecodeBuilderMultiRoute.js +0 -878
- package/build/executor/Executor02BytecodeBuilderMultiRoute.js.map +0 -1
|
@@ -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
|
+
]
|