@defisaver/sdk 1.0.69-dev-1 → 1.1.0
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/basic/SellAction.js +1 -1
- package/esm/src/actions/flashloan/FLAction.js +1 -1
- package/esm/src/addresses.js +4 -4
- package/package.json +2 -2
- package/src/actions/basic/SellAction.ts +2 -2
- package/src/actions/flashloan/FLAction.ts +2 -2
- package/src/addresses.ts +4 -4
- package/umd/index.js +6 -6
|
@@ -27,7 +27,7 @@ export class SellAction extends ActionWithL2 {
|
|
|
27
27
|
*/
|
|
28
28
|
constructor(exchangeOrder, from, to, protocolFee = '0') {
|
|
29
29
|
requireAddress(to);
|
|
30
|
-
super('
|
|
30
|
+
super('DFSSell', getAddr('DFSSell'), [
|
|
31
31
|
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
32
32
|
'address',
|
|
33
33
|
'address',
|
|
@@ -13,7 +13,7 @@ import { getAddr } from '../../addresses';
|
|
|
13
13
|
*/
|
|
14
14
|
export class FLAction extends Action {
|
|
15
15
|
constructor(specificFLAction) {
|
|
16
|
-
super('
|
|
16
|
+
super('FLAction', getAddr('FLAction'), [], []);
|
|
17
17
|
_FLAction_instances.add(this);
|
|
18
18
|
this.paramTypes = ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'];
|
|
19
19
|
this.args = __classPrivateFieldGet(this, _FLAction_instances, "m", _FLAction_handleArgs).call(this, specificFLAction);
|
package/esm/src/addresses.js
CHANGED
|
@@ -21,7 +21,7 @@ export const actionAddresses = {
|
|
|
21
21
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
22
22
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
23
23
|
// exchange
|
|
24
|
-
DFSSell: '
|
|
24
|
+
DFSSell: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
25
25
|
DFSSellTEMP: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
26
26
|
// maker
|
|
27
27
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
@@ -233,7 +233,7 @@ export const actionAddresses = {
|
|
|
233
233
|
MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
|
|
234
234
|
},
|
|
235
235
|
[NETWORKS.optimism.chainId]: {
|
|
236
|
-
DFSSell: '
|
|
236
|
+
DFSSell: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
237
237
|
DFSSellTEMP: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
238
238
|
// basic
|
|
239
239
|
WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
|
|
@@ -276,7 +276,7 @@ export const actionAddresses = {
|
|
|
276
276
|
UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
|
|
277
277
|
},
|
|
278
278
|
[NETWORKS.arbitrum.chainId]: {
|
|
279
|
-
DFSSell: '
|
|
279
|
+
DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
280
280
|
DFSSellTEMP: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
281
281
|
// basic
|
|
282
282
|
WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
|
|
@@ -324,7 +324,7 @@ export const actionAddresses = {
|
|
|
324
324
|
},
|
|
325
325
|
[NETWORKS.base.chainId]: {
|
|
326
326
|
// Basic
|
|
327
|
-
DFSSell: '
|
|
327
|
+
DFSSell: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
328
328
|
DFSSellTEMP: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
329
329
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
330
330
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defisaver/sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./umd/index.js",
|
|
6
6
|
"module": "./esm/src/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@defisaver/eslint-config": "^1.0.0",
|
|
23
|
-
"@defisaver/tokens": "^1.5.
|
|
23
|
+
"@defisaver/tokens": "^1.5.9",
|
|
24
24
|
"@ethersproject/address": "^5.0.10",
|
|
25
25
|
"@ethersproject/solidity": "^5.0.9",
|
|
26
26
|
"@types/web3-eth-abi": "^1.2.2",
|
|
@@ -23,8 +23,8 @@ export class SellAction extends ActionWithL2 {
|
|
|
23
23
|
constructor(exchangeOrder:Array<any>, from:EthAddress, to:EthAddress, protocolFee = '0') {
|
|
24
24
|
requireAddress(to);
|
|
25
25
|
super(
|
|
26
|
-
'
|
|
27
|
-
getAddr('
|
|
26
|
+
'DFSSell',
|
|
27
|
+
getAddr('DFSSell'),
|
|
28
28
|
[
|
|
29
29
|
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
30
30
|
'address',
|
package/src/addresses.ts
CHANGED
|
@@ -24,7 +24,7 @@ export const actionAddresses = {
|
|
|
24
24
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
25
25
|
|
|
26
26
|
// exchange
|
|
27
|
-
DFSSell: '
|
|
27
|
+
DFSSell: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
28
28
|
DFSSellTEMP: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
29
29
|
|
|
30
30
|
// maker
|
|
@@ -271,7 +271,7 @@ export const actionAddresses = {
|
|
|
271
271
|
MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5',
|
|
272
272
|
},
|
|
273
273
|
[NETWORKS.optimism.chainId]: {
|
|
274
|
-
DFSSell: '
|
|
274
|
+
DFSSell: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
275
275
|
DFSSellTEMP: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
276
276
|
|
|
277
277
|
// basic
|
|
@@ -320,7 +320,7 @@ export const actionAddresses = {
|
|
|
320
320
|
UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
|
|
321
321
|
},
|
|
322
322
|
[NETWORKS.arbitrum.chainId]: {
|
|
323
|
-
DFSSell: '
|
|
323
|
+
DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
324
324
|
DFSSellTEMP: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
325
325
|
|
|
326
326
|
// basic
|
|
@@ -374,7 +374,7 @@ export const actionAddresses = {
|
|
|
374
374
|
},
|
|
375
375
|
[NETWORKS.base.chainId]: {
|
|
376
376
|
// Basic
|
|
377
|
-
DFSSell: '
|
|
377
|
+
DFSSell: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
378
378
|
DFSSellTEMP: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
379
379
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
380
380
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
package/umd/index.js
CHANGED
|
@@ -1271,7 +1271,7 @@ var actionAddresses = {
|
|
|
1271
1271
|
SDaiUnwrap: '0xe8Cb536BB96075241c4bd8f1831A8577562F2B32',
|
|
1272
1272
|
TokenizedVaultAdapter: '0x3944364Ce3a273D269707484F3a676fCa17E08b8',
|
|
1273
1273
|
// exchange
|
|
1274
|
-
DFSSell: '
|
|
1274
|
+
DFSSell: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
1275
1275
|
DFSSellTEMP: '0x8bfc99652358884AF965324e6A233014510F0CFc',
|
|
1276
1276
|
// maker
|
|
1277
1277
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
@@ -1484,7 +1484,7 @@ var actionAddresses = {
|
|
|
1484
1484
|
MerklClaim: '0xE88036F3F0D7e216D63726356cA2bC334e305fe5'
|
|
1485
1485
|
},
|
|
1486
1486
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.optimism.chainId]: {
|
|
1487
|
-
DFSSell: '
|
|
1487
|
+
DFSSell: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
1488
1488
|
DFSSellTEMP: '0x01f7DB086076a16Cebd940A95919Af088C0662FD',
|
|
1489
1489
|
// basic
|
|
1490
1490
|
WrapEth: '0x6D735db054AC4a1F10f96b99f8550E9eefbC2AC5',
|
|
@@ -1528,7 +1528,7 @@ var actionAddresses = {
|
|
|
1528
1528
|
UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e'
|
|
1529
1529
|
},
|
|
1530
1530
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.arbitrum.chainId]: {
|
|
1531
|
-
DFSSell: '
|
|
1531
|
+
DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
1532
1532
|
DFSSellTEMP: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
|
|
1533
1533
|
// basic
|
|
1534
1534
|
WrapEth: '0x35136b25bFA7CCC8f5b94E3181a16B61c06980F0',
|
|
@@ -1577,7 +1577,7 @@ var actionAddresses = {
|
|
|
1577
1577
|
},
|
|
1578
1578
|
[_config__WEBPACK_IMPORTED_MODULE_0__.NETWORKS.base.chainId]: {
|
|
1579
1579
|
// Basic
|
|
1580
|
-
DFSSell: '
|
|
1580
|
+
DFSSell: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
1581
1581
|
DFSSellTEMP: '0x76e5c4e10E36B2f7E8B7F8a570e8A485B86d0ac7',
|
|
1582
1582
|
WrapEth: '0x491cc4AFbE0081C3464DeF1114ba27BE114b2401',
|
|
1583
1583
|
UnwrapEth: '0xcF91546046F16B3c38b890CC508E280BEffa66b9',
|
|
@@ -3327,7 +3327,7 @@ class SellAction extends _ActionWithL2__WEBPACK_IMPORTED_MODULE_3__.ActionWithL2
|
|
|
3327
3327
|
constructor(exchangeOrder, from, to) {
|
|
3328
3328
|
var protocolFee = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '0';
|
|
3329
3329
|
(0,_utils_general__WEBPACK_IMPORTED_MODULE_4__.requireAddress)(to);
|
|
3330
|
-
super('
|
|
3330
|
+
super('DFSSell', (0,_addresses__WEBPACK_IMPORTED_MODULE_5__.getAddr)('DFSSell'), [['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']], 'address', 'address'], [exchangeOrder, from, to]);
|
|
3331
3331
|
_defineProperty(this, "protocolFee", void 0);
|
|
3332
3332
|
this.protocolFee = protocolFee;
|
|
3333
3333
|
this.mappableArgs = [this.args[0][0], this.args[0][1], this.args[0][2], this.args[1], this.args[2]];
|
|
@@ -5051,7 +5051,7 @@ class FLAction extends _Action__WEBPACK_IMPORTED_MODULE_0__.Action {
|
|
|
5051
5051
|
*/
|
|
5052
5052
|
|
|
5053
5053
|
constructor(_specificFLAction) {
|
|
5054
|
-
super('
|
|
5054
|
+
super('FLAction', (0,_addresses__WEBPACK_IMPORTED_MODULE_1__.getAddr)('FLAction'), [], []);
|
|
5055
5055
|
_classPrivateMethodInitSpec(this, _handleArgs);
|
|
5056
5056
|
this.paramTypes = ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'];
|
|
5057
5057
|
this.args = _classPrivateMethodGet(this, _handleArgs, _handleArgs2).call(this, _specificFLAction);
|