@defisaver/sdk 1.0.54 → 1.0.56
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/esm/src/actions/curveusd/CurveUsdLevCreateAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdLevCreateAction.js +2 -2
- package/esm/src/actions/curveusd/CurveUsdRepayAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdRepayAction.js +2 -2
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.d.ts +2 -2
- package/esm/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.js +2 -2
- package/esm/src/addresses.js +4 -4
- package/package.json +1 -1
- package/src/actions/curveusd/CurveUsdLevCreateAction.ts +4 -4
- package/src/actions/curveusd/CurveUsdRepayAction.ts +4 -4
- package/src/actions/curveusd/CurveUsdSelfLiquidateWithCollAction.ts +4 -4
- package/src/addresses.ts +4 -4
- package/umd/index.js +10 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes, uint24 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdLevCreateAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, collateralAmount: uint256, debtAmount: uint256, minAmount: uint256, nBands: uint256, from: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider:
|
|
8
|
+
constructor(controllerAddress: EthAddress, collateralAmount: uint256, debtAmount: uint256, minAmount: uint256, nBands: uint256, from: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint24);
|
|
9
9
|
}
|
|
@@ -6,9 +6,9 @@ import { getAddr } from '../../addresses';
|
|
|
6
6
|
* @category CurveUsd
|
|
7
7
|
*/
|
|
8
8
|
export class CurveUsdLevCreateAction extends Action {
|
|
9
|
-
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider
|
|
9
|
+
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider) {
|
|
10
10
|
requireAddress(from);
|
|
11
|
-
super('CurveUsdLevCreate', getAddr('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
11
|
+
super('CurveUsdLevCreate', getAddr('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider]);
|
|
12
12
|
this.mappableArgs = [
|
|
13
13
|
...this.args,
|
|
14
14
|
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes, uint24 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdRepayAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, collAmount: uint256, to: EthAddress, minAmount: uint256, additionData: bytes, gasUsed: uint32, dfsFeeDivider:
|
|
8
|
+
constructor(controllerAddress: EthAddress, collAmount: uint256, to: EthAddress, minAmount: uint256, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint24);
|
|
9
9
|
}
|
|
@@ -5,8 +5,8 @@ import { getAddr } from '../../addresses';
|
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export class CurveUsdRepayAction extends Action {
|
|
8
|
-
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider
|
|
9
|
-
super('CurveUsdRepay', getAddr('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', '
|
|
8
|
+
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider) {
|
|
9
|
+
super('CurveUsdRepay', getAddr('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint24'], [controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider]);
|
|
10
10
|
this.mappableArgs = [
|
|
11
11
|
...this.args,
|
|
12
12
|
];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Action } from '../../Action';
|
|
2
|
-
import { EthAddress, uint256, uint32, bytes } from '../../types';
|
|
2
|
+
import { EthAddress, uint256, uint32, bytes, uint24 } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @category CurveUsd
|
|
6
6
|
*/
|
|
7
7
|
export declare class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
8
|
-
constructor(controllerAddress: EthAddress, percentage: uint256, minCrvUsdExpected: uint256, swapAmount: uint256, minAmount: uint256, to: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider:
|
|
8
|
+
constructor(controllerAddress: EthAddress, percentage: uint256, minCrvUsdExpected: uint256, swapAmount: uint256, minAmount: uint256, to: EthAddress, additionData: bytes, gasUsed: uint32, dfsFeeDivider: uint24);
|
|
9
9
|
}
|
|
@@ -6,9 +6,9 @@ import { getAddr } from '../../addresses';
|
|
|
6
6
|
* @category CurveUsd
|
|
7
7
|
*/
|
|
8
8
|
export class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
9
|
-
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider
|
|
9
|
+
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider) {
|
|
10
10
|
requireAddress(to);
|
|
11
|
-
super('CurveUsdSelfLiquidateWithColl', getAddr('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
11
|
+
super('CurveUsdSelfLiquidateWithColl', getAddr('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider]);
|
|
12
12
|
this.mappableArgs = [
|
|
13
13
|
...this.args,
|
|
14
14
|
];
|
package/esm/src/addresses.js
CHANGED
|
@@ -194,11 +194,11 @@ export const actionAddresses = {
|
|
|
194
194
|
CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
|
|
195
195
|
CurveUsdAdjust: '0x6f69A7d0B1BE7602381d9cCE6B29F05B9D0b85e6',
|
|
196
196
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
197
|
-
CurveUsdLevCreate: '
|
|
198
|
-
CurveUsdRepay: '
|
|
199
|
-
CurveUsdSwapper: '
|
|
197
|
+
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
198
|
+
CurveUsdRepay: '0xd12785e4834C1421fC7B64ca57d64E886e39b80F',
|
|
199
|
+
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
200
200
|
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
201
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
201
|
+
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
202
202
|
},
|
|
203
203
|
[NETWORKS.optimism.chainId]: {
|
|
204
204
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
uint256,
|
|
7
7
|
uint32,
|
|
8
8
|
bytes,
|
|
9
|
+
uint24,
|
|
9
10
|
} from '../../types';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -22,15 +23,14 @@ export class CurveUsdLevCreateAction extends Action {
|
|
|
22
23
|
from: EthAddress,
|
|
23
24
|
additionData: bytes,
|
|
24
25
|
gasUsed: uint32,
|
|
25
|
-
dfsFeeDivider:
|
|
26
|
-
useSteth: Boolean,
|
|
26
|
+
dfsFeeDivider: uint24,
|
|
27
27
|
) {
|
|
28
28
|
requireAddress(from);
|
|
29
29
|
super(
|
|
30
30
|
'CurveUsdLevCreate',
|
|
31
31
|
getAddr('CurveUsdLevCreate'),
|
|
32
|
-
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
33
|
-
[controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider
|
|
32
|
+
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'],
|
|
33
|
+
[controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider],
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
this.mappableArgs = [
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
uint256,
|
|
6
6
|
uint32,
|
|
7
7
|
bytes,
|
|
8
|
+
uint24,
|
|
8
9
|
} from '../../types';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -19,14 +20,13 @@ export class CurveUsdRepayAction extends Action {
|
|
|
19
20
|
minAmount: uint256,
|
|
20
21
|
additionData: bytes,
|
|
21
22
|
gasUsed: uint32,
|
|
22
|
-
dfsFeeDivider:
|
|
23
|
-
useSteth: Boolean,
|
|
23
|
+
dfsFeeDivider: uint24,
|
|
24
24
|
) {
|
|
25
25
|
super(
|
|
26
26
|
'CurveUsdRepay',
|
|
27
27
|
getAddr('CurveUsdRepay'),
|
|
28
|
-
['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', '
|
|
29
|
-
[controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider
|
|
28
|
+
['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint24'],
|
|
29
|
+
[controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider],
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
this.mappableArgs = [
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
uint256,
|
|
7
7
|
uint32,
|
|
8
8
|
bytes,
|
|
9
|
+
uint24,
|
|
9
10
|
} from '../../types';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -22,15 +23,14 @@ export class CurveUsdSelfLiquidateWithCollAction extends Action {
|
|
|
22
23
|
to: EthAddress,
|
|
23
24
|
additionData: bytes,
|
|
24
25
|
gasUsed: uint32,
|
|
25
|
-
dfsFeeDivider:
|
|
26
|
-
useSteth: Boolean,
|
|
26
|
+
dfsFeeDivider: uint24,
|
|
27
27
|
) {
|
|
28
28
|
requireAddress(to);
|
|
29
29
|
super(
|
|
30
30
|
'CurveUsdSelfLiquidateWithColl',
|
|
31
31
|
getAddr('CurveUsdSelfLiquidateWithColl'),
|
|
32
|
-
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
33
|
-
[controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider
|
|
32
|
+
['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'],
|
|
33
|
+
[controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider],
|
|
34
34
|
);
|
|
35
35
|
|
|
36
36
|
this.mappableArgs = [
|
package/src/addresses.ts
CHANGED
|
@@ -228,11 +228,11 @@ export const actionAddresses = {
|
|
|
228
228
|
CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
|
|
229
229
|
CurveUsdAdjust: '0x6f69A7d0B1BE7602381d9cCE6B29F05B9D0b85e6',
|
|
230
230
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
231
|
-
CurveUsdLevCreate: '
|
|
232
|
-
CurveUsdRepay: '
|
|
233
|
-
CurveUsdSwapper: '
|
|
231
|
+
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
232
|
+
CurveUsdRepay: '0xd12785e4834C1421fC7B64ca57d64E886e39b80F',
|
|
233
|
+
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
234
234
|
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
235
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
235
|
+
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF',
|
|
236
236
|
},
|
|
237
237
|
[NETWORKS.optimism.chainId]: {
|
|
238
238
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
package/umd/index.js
CHANGED
|
@@ -1450,11 +1450,11 @@ var actionAddresses = {
|
|
|
1450
1450
|
CurveUsdSupply: '0xa55B3CE5ae7E59002f53b2153ABe326823ccCDE2',
|
|
1451
1451
|
CurveUsdAdjust: '0x6f69A7d0B1BE7602381d9cCE6B29F05B9D0b85e6',
|
|
1452
1452
|
CurveUsdWithdraw: '0x54B8D984fc79B000D7B6F6E0f52CD054E965120f',
|
|
1453
|
-
CurveUsdLevCreate: '
|
|
1454
|
-
CurveUsdRepay: '
|
|
1455
|
-
CurveUsdSwapper: '
|
|
1453
|
+
CurveUsdLevCreate: '0xcbd9aFc2b7532b9eeB3A7EC4ea8Bb4320795d9Ad',
|
|
1454
|
+
CurveUsdRepay: '0xd12785e4834C1421fC7B64ca57d64E886e39b80F',
|
|
1455
|
+
CurveUsdSwapper: '0xFA8c594b903651F97b27aCADEa83b720cfD7F80b',
|
|
1456
1456
|
CurveUsdSelfLiquidate: '0xd90d8a4955DfE9D4f45F7f60595313B0925ee1da',
|
|
1457
|
-
CurveUsdSelfLiquidateWithColl: '
|
|
1457
|
+
CurveUsdSelfLiquidateWithColl: '0x7cE305FC2A18c6820a533AD418dC0A549aFeDcAF'
|
|
1458
1458
|
},
|
|
1459
1459
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1460
1460
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -10199,8 +10199,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10199
10199
|
* @category CurveUsd
|
|
10200
10200
|
*/
|
|
10201
10201
|
class CurveUsdRepayAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
10202
|
-
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider
|
|
10203
|
-
super('CurveUsdRepay', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', '
|
|
10202
|
+
constructor(controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider) {
|
|
10203
|
+
super('CurveUsdRepay', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('CurveUsdRepay'), ['address', 'uint256', 'address', 'uint256', 'bytes', 'uint32', 'uint24'], [controllerAddress, collAmount, to, minAmount, additionData, gasUsed, dfsFeeDivider]);
|
|
10204
10204
|
this.mappableArgs = [...this.args];
|
|
10205
10205
|
}
|
|
10206
10206
|
}
|
|
@@ -10267,9 +10267,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10267
10267
|
* @category CurveUsd
|
|
10268
10268
|
*/
|
|
10269
10269
|
class CurveUsdLevCreateAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
10270
|
-
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider
|
|
10270
|
+
constructor(controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider) {
|
|
10271
10271
|
(0,_utils_general__WEBPACK_IMPORTED_MODULE_1__.requireAddress)(from);
|
|
10272
|
-
super('CurveUsdLevCreate', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
10272
|
+
super('CurveUsdLevCreate', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdLevCreate'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'], [controllerAddress, collateralAmount, debtAmount, minAmount, nBands, from, additionData, gasUsed, dfsFeeDivider]);
|
|
10273
10273
|
this.mappableArgs = [...this.args];
|
|
10274
10274
|
}
|
|
10275
10275
|
}
|
|
@@ -10293,9 +10293,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10293
10293
|
* @category CurveUsd
|
|
10294
10294
|
*/
|
|
10295
10295
|
class CurveUsdSelfLiquidateWithCollAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
10296
|
-
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider
|
|
10296
|
+
constructor(controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider) {
|
|
10297
10297
|
(0,_utils_general__WEBPACK_IMPORTED_MODULE_1__.requireAddress)(to);
|
|
10298
|
-
super('CurveUsdSelfLiquidateWithColl', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', '
|
|
10298
|
+
super('CurveUsdSelfLiquidateWithColl', (0,_addresses__WEBPACK_IMPORTED_MODULE_2__.getAddr)('CurveUsdSelfLiquidateWithColl'), ['address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'bytes', 'uint32', 'uint24'], [controllerAddress, percentage, minCrvUsdExpected, swapAmount, minAmount, to, additionData, gasUsed, dfsFeeDivider]);
|
|
10299
10299
|
this.mappableArgs = [...this.args];
|
|
10300
10300
|
}
|
|
10301
10301
|
}
|