@dodoex/api 3.4.0 → 3.5.0-stable.2
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/dist/dodoDppProxy-BKNRxXMu.js +1 -0
- package/dist/dodoDppProxy-CHazHHoy.cjs +1 -0
- package/dist/dodoDspProxy-Dyvby5gX.cjs +1 -0
- package/dist/dodoDspProxy-l0sNRNKZ.js +1 -0
- package/dist/dodoProxyV2-C5kUV7RN.js +1 -0
- package/dist/dodoProxyV2-Di9reD2w.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/services/SwapWidgetApi.d.ts +212 -2
- package/package.json +3 -3
- package/dist/dodoDppProxy-A7PPYsqp.js +0 -1
- package/dist/dodoDppProxy-evCBC-32.cjs +0 -1
- package/dist/dodoDspProxy-Bp3cG2Me.cjs +0 -1
- package/dist/dodoDspProxy-CU7OAvJG.js +0 -1
- package/dist/dodoProxyV2-9ED9HqK5.js +0 -1
- package/dist/dodoProxyV2-C4O1SzS4.cjs +0 -1
- package/dist/types/helper/ContractRequests/abi/ABIs/dodoDspProxy.d.ts +0 -3
|
@@ -90,7 +90,112 @@ export declare class SwapWidgetApi {
|
|
|
90
90
|
}>;
|
|
91
91
|
convertConfigToSwapWidgetProps(configTokenList: ConfigTokenList): {
|
|
92
92
|
tokenList: TokenList;
|
|
93
|
-
theme:
|
|
93
|
+
theme: {
|
|
94
|
+
palette?: {
|
|
95
|
+
primary?: {
|
|
96
|
+
light?: string | undefined;
|
|
97
|
+
main?: string | undefined;
|
|
98
|
+
dark?: string | undefined;
|
|
99
|
+
contrastText?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
secondary?: {
|
|
102
|
+
light?: string | undefined;
|
|
103
|
+
main?: string | undefined;
|
|
104
|
+
dark?: string | undefined;
|
|
105
|
+
contrastText?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
error?: {
|
|
108
|
+
light?: string | undefined;
|
|
109
|
+
main?: string | undefined;
|
|
110
|
+
dark?: string | undefined;
|
|
111
|
+
contrastText?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
warning?: {
|
|
114
|
+
light?: string | undefined;
|
|
115
|
+
main?: string | undefined;
|
|
116
|
+
dark?: string | undefined;
|
|
117
|
+
contrastText?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
success?: {
|
|
120
|
+
light?: string | undefined;
|
|
121
|
+
main?: string | undefined;
|
|
122
|
+
dark?: string | undefined;
|
|
123
|
+
contrastText?: string | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
purple?: {
|
|
126
|
+
light?: string | undefined;
|
|
127
|
+
main?: string | undefined;
|
|
128
|
+
dark?: string | undefined;
|
|
129
|
+
contrastText?: string | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
mode?: "light" | "dark" | undefined;
|
|
132
|
+
text?: {
|
|
133
|
+
primary?: string | undefined;
|
|
134
|
+
secondary?: string | undefined;
|
|
135
|
+
disabled?: string | undefined;
|
|
136
|
+
placeholder?: string | undefined;
|
|
137
|
+
link?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
border?: {
|
|
140
|
+
main?: string | undefined;
|
|
141
|
+
disabled?: string | undefined;
|
|
142
|
+
light?: string | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
hover?: {
|
|
145
|
+
default?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
background?: {
|
|
148
|
+
default?: string | undefined;
|
|
149
|
+
paper?: string | undefined;
|
|
150
|
+
paperContrast?: string | undefined;
|
|
151
|
+
paperDarkContrast?: string | undefined;
|
|
152
|
+
backdrop?: string | undefined;
|
|
153
|
+
input?: string | undefined;
|
|
154
|
+
cardInput?: string | undefined;
|
|
155
|
+
skeleton?: string | undefined;
|
|
156
|
+
tag?: string | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
tabActive?: {
|
|
159
|
+
light?: string | undefined;
|
|
160
|
+
main?: string | undefined;
|
|
161
|
+
dark?: string | undefined;
|
|
162
|
+
contrastText?: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
getContrastText?: {} | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
shape?: {
|
|
167
|
+
borderRadius?: string | number | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
breakpoints?: {
|
|
170
|
+
step?: number | undefined;
|
|
171
|
+
unit?: string | undefined;
|
|
172
|
+
keys?: ("mobile" | "tablet" | "laptop" | "desktop" | "largeDesktop" | undefined)[] | undefined;
|
|
173
|
+
values?: {
|
|
174
|
+
mobile?: number | undefined;
|
|
175
|
+
tablet?: number | undefined;
|
|
176
|
+
laptop?: number | undefined;
|
|
177
|
+
desktop?: number | undefined;
|
|
178
|
+
largeDesktop?: number | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
up?: {} | undefined;
|
|
181
|
+
down?: {} | undefined;
|
|
182
|
+
between?: {} | undefined;
|
|
183
|
+
only?: {} | undefined;
|
|
184
|
+
not?: {} | undefined;
|
|
185
|
+
} | undefined;
|
|
186
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
187
|
+
mixins?: {} | undefined;
|
|
188
|
+
shadows?: {} | undefined;
|
|
189
|
+
spacing?: number | readonly (string | number)[] | {} | {} | {} | undefined;
|
|
190
|
+
transitions?: {} | undefined;
|
|
191
|
+
components?: {
|
|
192
|
+
[x: string]: any;
|
|
193
|
+
} | undefined;
|
|
194
|
+
typography?: {} | undefined;
|
|
195
|
+
zIndex?: {
|
|
196
|
+
[x: string]: number | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
} | undefined;
|
|
94
199
|
rebateAddress: string | null;
|
|
95
200
|
rebateRatio: number | null;
|
|
96
201
|
swapSlippage: number | null | undefined;
|
|
@@ -107,7 +212,112 @@ export declare class SwapWidgetApi {
|
|
|
107
212
|
getConfigSwapWidgetProps(projectId: string, apikey: string): Promise<{
|
|
108
213
|
swapWidgetProps: {
|
|
109
214
|
tokenList: TokenList;
|
|
110
|
-
theme:
|
|
215
|
+
theme: {
|
|
216
|
+
palette?: {
|
|
217
|
+
primary?: {
|
|
218
|
+
light?: string | undefined;
|
|
219
|
+
main?: string | undefined;
|
|
220
|
+
dark?: string | undefined;
|
|
221
|
+
contrastText?: string | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
secondary?: {
|
|
224
|
+
light?: string | undefined;
|
|
225
|
+
main?: string | undefined;
|
|
226
|
+
dark?: string | undefined;
|
|
227
|
+
contrastText?: string | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
error?: {
|
|
230
|
+
light?: string | undefined;
|
|
231
|
+
main?: string | undefined;
|
|
232
|
+
dark?: string | undefined;
|
|
233
|
+
contrastText?: string | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
warning?: {
|
|
236
|
+
light?: string | undefined;
|
|
237
|
+
main?: string | undefined;
|
|
238
|
+
dark?: string | undefined;
|
|
239
|
+
contrastText?: string | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
success?: {
|
|
242
|
+
light?: string | undefined;
|
|
243
|
+
main?: string | undefined;
|
|
244
|
+
dark?: string | undefined;
|
|
245
|
+
contrastText?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
purple?: {
|
|
248
|
+
light?: string | undefined;
|
|
249
|
+
main?: string | undefined;
|
|
250
|
+
dark?: string | undefined;
|
|
251
|
+
contrastText?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
mode?: "light" | "dark" | undefined;
|
|
254
|
+
text?: {
|
|
255
|
+
primary?: string | undefined;
|
|
256
|
+
secondary?: string | undefined;
|
|
257
|
+
disabled?: string | undefined;
|
|
258
|
+
placeholder?: string | undefined;
|
|
259
|
+
link?: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
border?: {
|
|
262
|
+
main?: string | undefined;
|
|
263
|
+
disabled?: string | undefined;
|
|
264
|
+
light?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
hover?: {
|
|
267
|
+
default?: string | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
background?: {
|
|
270
|
+
default?: string | undefined;
|
|
271
|
+
paper?: string | undefined;
|
|
272
|
+
paperContrast?: string | undefined;
|
|
273
|
+
paperDarkContrast?: string | undefined;
|
|
274
|
+
backdrop?: string | undefined;
|
|
275
|
+
input?: string | undefined;
|
|
276
|
+
cardInput?: string | undefined;
|
|
277
|
+
skeleton?: string | undefined;
|
|
278
|
+
tag?: string | undefined;
|
|
279
|
+
} | undefined;
|
|
280
|
+
tabActive?: {
|
|
281
|
+
light?: string | undefined;
|
|
282
|
+
main?: string | undefined;
|
|
283
|
+
dark?: string | undefined;
|
|
284
|
+
contrastText?: string | undefined;
|
|
285
|
+
} | undefined;
|
|
286
|
+
getContrastText?: {} | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
shape?: {
|
|
289
|
+
borderRadius?: string | number | undefined;
|
|
290
|
+
} | undefined;
|
|
291
|
+
breakpoints?: {
|
|
292
|
+
step?: number | undefined;
|
|
293
|
+
unit?: string | undefined;
|
|
294
|
+
keys?: ("mobile" | "tablet" | "laptop" | "desktop" | "largeDesktop" | undefined)[] | undefined;
|
|
295
|
+
values?: {
|
|
296
|
+
mobile?: number | undefined;
|
|
297
|
+
tablet?: number | undefined;
|
|
298
|
+
laptop?: number | undefined;
|
|
299
|
+
desktop?: number | undefined;
|
|
300
|
+
largeDesktop?: number | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
up?: {} | undefined;
|
|
303
|
+
down?: {} | undefined;
|
|
304
|
+
between?: {} | undefined;
|
|
305
|
+
only?: {} | undefined;
|
|
306
|
+
not?: {} | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
direction?: "ltr" | "rtl" | undefined;
|
|
309
|
+
mixins?: {} | undefined;
|
|
310
|
+
shadows?: {} | undefined;
|
|
311
|
+
spacing?: number | readonly (string | number)[] | {} | {} | {} | undefined;
|
|
312
|
+
transitions?: {} | undefined;
|
|
313
|
+
components?: {
|
|
314
|
+
[x: string]: any;
|
|
315
|
+
} | undefined;
|
|
316
|
+
typography?: {} | undefined;
|
|
317
|
+
zIndex?: {
|
|
318
|
+
[x: string]: number | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
} | undefined;
|
|
111
321
|
rebateAddress: string | null;
|
|
112
322
|
rebateRatio: number | null;
|
|
113
323
|
swapSlippage: number | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-stable.2",
|
|
4
4
|
"description": "DODO API Kit",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"release": "semantic-release",
|
|
22
22
|
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
23
23
|
"release.npm-publish": "npm publish --access public",
|
|
24
|
-
"release.npm-publish-beta": "npm publish --tag beta"
|
|
24
|
+
"release.npm-publish-beta": "yarn run build && npm publish --tag beta"
|
|
25
25
|
},
|
|
26
26
|
"author": "",
|
|
27
27
|
"publishConfig": {
|
|
@@ -103,4 +103,4 @@
|
|
|
103
103
|
"ts-jest": "^29.0.1",
|
|
104
104
|
"typescript": "^5.6.3"
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[{inputs:[{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"},{internalType:"address",name:"dppFactory",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DPP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTwap",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOPrivatePool",outputs:[{internalType:"address",name:"newPrivatePool",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"dppAddress",type:"address"},{internalType:"uint256[]",name:"paramList",type:"uint256[]"},{internalType:"uint256[]",name:"amountList",type:"uint256[]"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"minBaseReserve",type:"uint256"},{internalType:"uint256",name:"minQuoteReserve",type:"uint256"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"resetDODOPrivatePool",outputs:[],stateMutability:"payable",type:"function"}];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.default=[{inputs:[{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"},{internalType:"address",name:"dppFactory",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DPP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTwap",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOPrivatePool",outputs:[{internalType:"address",name:"newPrivatePool",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"dppAddress",type:"address"},{internalType:"uint256[]",name:"paramList",type:"uint256[]"},{internalType:"uint256[]",name:"amountList",type:"uint256[]"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"minBaseReserve",type:"uint256"},{internalType:"uint256",name:"minQuoteReserve",type:"uint256"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"resetDODOPrivatePool",outputs:[],stateMutability:"payable",type:"function"}];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.default=[{inputs:[{internalType:"address",name:"dspFactory",type:"address"},{internalType:"address",name:"gspFactory",type:"address"},{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DSP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_GSP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dspAddress",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"baseMinAmount",type:"uint256"},{internalType:"uint256",name:"quoteMinAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addDSPLiquidity",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"baseAdjustedInAmount",type:"uint256"},{internalType:"uint256",name:"quoteAdjustedInAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"admin",type:"address"},{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"mtFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"uint256",name:"priceLimit",type:"uint256"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOGasSavingPair",outputs:[{internalType:"address",name:"newGasSavingPair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTWAP",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOStablePair",outputs:[{internalType:"address",name:"newDODOStablePair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[{inputs:[{internalType:"address",name:"dspFactory",type:"address"},{internalType:"address",name:"gspFactory",type:"address"},{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DSP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_GSP_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dspAddress",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"baseMinAmount",type:"uint256"},{internalType:"uint256",name:"quoteMinAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addDSPLiquidity",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"baseAdjustedInAmount",type:"uint256"},{internalType:"uint256",name:"quoteAdjustedInAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"admin",type:"address"},{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"mtFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"uint256",name:"priceLimit",type:"uint256"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOGasSavingPair",outputs:[{internalType:"address",name:"newGasSavingPair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTWAP",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOStablePair",outputs:[{internalType:"address",name:"newDODOStablePair",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=[{inputs:[{internalType:"address",name:"dvmFactory",type:"address"},{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"},{internalType:"address",name:"dodoSellHelper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"fromToken",type:"address"},{indexed:!1,internalType:"address",name:"toToken",type:"address"},{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"fromAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"returnAmount",type:"uint256"}],name:"OrderHistory",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferPrepared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DODO_SELL_HELPER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DVM_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_NEW_OWNER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_OWNER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"initOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isWhiteListed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"contractAddr",type:"address"}],name:"addWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"contractAddr",type:"address"}],name:"removeWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTWAP",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOVendingMachine",outputs:[{internalType:"address",name:"newVendingMachine",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"dvmAddress",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"baseMinAmount",type:"uint256"},{internalType:"uint256",name:"quoteMinAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addDVMLiquidity",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"baseAdjustedInAmount",type:"uint256"},{internalType:"uint256",name:"quoteAdjustedInAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2ETHToToken",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2TokenToETH",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2TokenToToken",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"address",name:"approveTarget",type:"address"},{internalType:"address",name:"swapTarget",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"bytes",name:"callDataConcat",type:"bytes"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"externalSwap",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV1",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"cpAddress",type:"address"},{internalType:"uint256",name:"quoteAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"bid",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pair",type:"address"},{internalType:"uint256",name:"baseAmount",type:"uint256"},{internalType:"uint256",name:"quoteAmount",type:"uint256"},{internalType:"uint256",name:"baseMinShares",type:"uint256"},{internalType:"uint256",name:"quoteMinShares",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addLiquidityToV1",outputs:[{internalType:"uint256",name:"baseShares",type:"uint256"},{internalType:"uint256",name:"quoteShares",type:"uint256"}],stateMutability:"payable",type:"function"}];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.default=[{inputs:[{internalType:"address",name:"dvmFactory",type:"address"},{internalType:"address payable",name:"weth",type:"address"},{internalType:"address",name:"dodoApproveProxy",type:"address"},{internalType:"address",name:"dodoSellHelper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"fromToken",type:"address"},{indexed:!1,internalType:"address",name:"toToken",type:"address"},{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"fromAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"returnAmount",type:"uint256"}],name:"OrderHistory",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferPrepared",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"_DODO_APPROVE_PROXY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DODO_SELL_HELPER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_DVM_FACTORY_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_NEW_OWNER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_OWNER_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"_WETH_",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"initOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isWhiteListed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"contractAddr",type:"address"}],name:"addWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"contractAddr",type:"address"}],name:"removeWhiteList",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"baseToken",type:"address"},{internalType:"address",name:"quoteToken",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"lpFeeRate",type:"uint256"},{internalType:"uint256",name:"i",type:"uint256"},{internalType:"uint256",name:"k",type:"uint256"},{internalType:"bool",name:"isOpenTWAP",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"createDODOVendingMachine",outputs:[{internalType:"address",name:"newVendingMachine",type:"address"},{internalType:"uint256",name:"shares",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"dvmAddress",type:"address"},{internalType:"uint256",name:"baseInAmount",type:"uint256"},{internalType:"uint256",name:"quoteInAmount",type:"uint256"},{internalType:"uint256",name:"baseMinAmount",type:"uint256"},{internalType:"uint256",name:"quoteMinAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addDVMLiquidity",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"baseAdjustedInAmount",type:"uint256"},{internalType:"uint256",name:"quoteAdjustedInAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2ETHToToken",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2TokenToETH",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV2TokenToToken",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"address",name:"approveTarget",type:"address"},{internalType:"address",name:"swapTarget",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"bytes",name:"callDataConcat",type:"bytes"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"externalSwap",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"fromToken",type:"address"},{internalType:"address",name:"toToken",type:"address"},{internalType:"uint256",name:"fromTokenAmount",type:"uint256"},{internalType:"uint256",name:"minReturnAmount",type:"uint256"},{internalType:"address[]",name:"dodoPairs",type:"address[]"},{internalType:"uint256",name:"directions",type:"uint256"},{internalType:"bool",name:"",type:"bool"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"dodoSwapV1",outputs:[{internalType:"uint256",name:"returnAmount",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"cpAddress",type:"address"},{internalType:"uint256",name:"quoteAmount",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"bid",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pair",type:"address"},{internalType:"uint256",name:"baseAmount",type:"uint256"},{internalType:"uint256",name:"quoteAmount",type:"uint256"},{internalType:"uint256",name:"baseMinShares",type:"uint256"},{internalType:"uint256",name:"quoteMinShares",type:"uint256"},{internalType:"uint8",name:"flag",type:"uint8"},{internalType:"uint256",name:"deadLine",type:"uint256"}],name:"addLiquidityToV1",outputs:[{internalType:"uint256",name:"baseShares",type:"uint256"},{internalType:"uint256",name:"quoteShares",type:"uint256"}],stateMutability:"payable",type:"function"}];
|