@defisaver/sdk 1.0.65 → 1.0.66-dev-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
- package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
- package/esm/src/actions/basic/LimitSellAction.js +63 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
- package/esm/src/actions/{llamalend/LlamaLendSelfLiquidateAction.js → basic/RemoveTokenApprovalAction.js} +19 -15
- package/esm/src/actions/basic/index.d.ts +3 -0
- package/esm/src/actions/basic/index.js +3 -0
- package/esm/src/actions/checkers/index.d.ts +0 -1
- package/esm/src/actions/checkers/index.js +0 -1
- package/esm/src/actions/index.d.ts +1 -2
- package/esm/src/actions/index.js +1 -2
- package/esm/src/actions/maker/MakerGiveAction.d.ts +1 -2
- package/esm/src/actions/maker/MakerGiveAction.js +2 -3
- package/esm/src/addresses.d.ts +3 -27
- package/esm/src/addresses.js +3 -13
- package/esm/src/index.d.ts +12 -108
- package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +1 -1
- package/esm/src/triggers/index.js +1 -1
- package/esm/src/utils/index.d.ts +1 -2
- package/esm/src/utils/index.js +1 -2
- package/package.json +1 -1
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/WrapEthAction.ts +4 -3
- package/src/actions/basic/index.ts +3 -0
- package/src/actions/index.ts +0 -2
- package/src/actions/maker/MakerGiveAction.ts +2 -3
- package/src/addresses.ts +3 -11
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/src/utils/index.ts +0 -2
- package/umd/index.js +631 -821
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.d.ts +0 -20
- package/esm/src/actions/checkers/MorphoBlueRatioCheckAction.js +0 -32
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendBorrowAction.js +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendCreateAction.js +0 -44
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.d.ts +0 -22
- package/esm/src/actions/llamalend/LlamaLendPaybackAction.js +0 -43
- package/esm/src/actions/llamalend/LlamaLendSelfLiquidateAction.d.ts +0 -19
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.d.ts +0 -20
- package/esm/src/actions/llamalend/LlamaLendSupplyAction.js +0 -40
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.d.ts +0 -15
- package/esm/src/actions/llamalend/LlamaLendWithdrawAction.js +0 -22
- package/esm/src/actions/llamalend/index.d.ts +0 -6
- package/esm/src/actions/llamalend/index.js +0 -6
- package/esm/src/triggers/MorphoBlueRatioTrigger.d.ts +0 -10
- package/esm/src/triggers/MorphoBlueRatioTrigger.js +0 -12
- package/esm/src/utils/llamalend-utils.d.ts +0 -10
- package/esm/src/utils/llamalend-utils.js +0 -10
- package/src/actions/llamalend/LlamaLendBorrowAction.ts +0 -34
- package/src/actions/llamalend/LlamaLendCreateAction.ts +0 -49
- package/src/actions/llamalend/LlamaLendPaybackAction.ts +0 -48
- package/src/actions/llamalend/LlamaLendSelfLiquidateAction.ts +0 -41
- package/src/actions/llamalend/LlamaLendSupplyAction.ts +0 -44
- package/src/actions/llamalend/LlamaLendWithdrawAction.ts +0 -34
- package/src/actions/llamalend/index.ts +0 -6
- package/src/utils/llamalend-utils.ts +0 -11
|
@@ -12,12 +12,11 @@ export class MakerGiveAction extends Action {
|
|
|
12
12
|
/**
|
|
13
13
|
* @param vaultId
|
|
14
14
|
* @param newOwner
|
|
15
|
-
* @param createProxy
|
|
16
15
|
* @param mcdManager
|
|
17
16
|
*/
|
|
18
|
-
constructor(vaultId:uint256, newOwner:EthAddress,
|
|
17
|
+
constructor(vaultId:uint256, newOwner:EthAddress, mcdManager:EthAddress = getAddr('McdCdpManager')) {
|
|
19
18
|
requireAddress(newOwner);
|
|
20
|
-
super('McdGive', getAddr('McdGive'), ['uint256', 'address', '
|
|
19
|
+
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'address'], [vaultId, newOwner, mcdManager]);
|
|
21
20
|
|
|
22
21
|
this.mappableArgs = [
|
|
23
22
|
this.args[0],
|
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: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
28
28
|
|
|
29
29
|
// maker
|
|
30
30
|
McdGenerate: '0xCb50a91C0f12f439b8bf11E9474B9c1ED62Bf7a3',
|
|
@@ -122,7 +122,7 @@ export const actionAddresses = {
|
|
|
122
122
|
FLMaker: '0x672DE08e36A1698fD5e9E34045F81558dB4c1AFE',
|
|
123
123
|
FLBalancer: '0x540a83E36E5E6Aa916A6c591934d800e17115048',
|
|
124
124
|
FLSpark: '0xe9Fe5a0f5e4B370Ae60d837da58744666D5C06F7',
|
|
125
|
-
FLAction: '
|
|
125
|
+
FLAction: '0x2b10B000292745099Deb15304A247c0816bd8b73',
|
|
126
126
|
FLUniV3: '0x9CAdAC8Be718572F82B672b950c53F0b58483A35',
|
|
127
127
|
FLGho: '0xbb67b81dD080a406227A38965d0393f396ddECBc',
|
|
128
128
|
FLMorphoBlue: '0x6206C96EAc5EAC546861438A9f953B6BEa50EBAB',
|
|
@@ -257,14 +257,6 @@ export const actionAddresses = {
|
|
|
257
257
|
MorphoBluePayback: '0x9f437E5F705E02d77adC2e72C34926978776b085',
|
|
258
258
|
MorphoBlueSetAuth: '0xf30935e20c6357c7bcecd5e58ad6de26d54b9f64',
|
|
259
259
|
MorphoBlueSetAuthWithSig: '0xE2d5fCDBf73BAd24A0FCAf6B2733933A98021808',
|
|
260
|
-
|
|
261
|
-
// llamalend
|
|
262
|
-
LlamaLendCreate: '0x4349be191ea63173eD98b7fC1b0DeC1ef9Bc6c11',
|
|
263
|
-
LlamaLendSupply: '0x1900eF943bD1b038c58d9F35C3825F119F9BB730',
|
|
264
|
-
LlamaLendBorrow: '0xCF693585C47049F3eACc2285E7Fe4e80123b2520',
|
|
265
|
-
LlamaLendWithdraw: '0x2593Da3c4110C531541424e9e847cd7905894C52',
|
|
266
|
-
LlamaLendPayback: '0x5b506b7a0117dbcd086632575da599bb603eb602',
|
|
267
|
-
LlamaLendSelfLiquidate: '0xe4944e0e46177300fa4c351ef72b95b9655e8394',
|
|
268
260
|
},
|
|
269
261
|
[NETWORKS.optimism.chainId]: {
|
|
270
262
|
DFSSell: '0xC6c601fcAa870efd26C624F8c65fbc54cBe533b1',
|
|
@@ -400,7 +392,7 @@ export const actionAddresses = {
|
|
|
400
392
|
|
|
401
393
|
export const otherAddresses = {
|
|
402
394
|
[NETWORKS.ethereum.chainId]: {
|
|
403
|
-
RecipeExecutor: '
|
|
395
|
+
RecipeExecutor: '0x10B748Dc504C2515Bb6A9e23CB2F686090b6c584',
|
|
404
396
|
DFSRegistry: '0x287778F121F134C66212FB16c9b53eC991D32f5b',
|
|
405
397
|
DFSProxyRegistry: '0x29474FdaC7142f9aB7773B8e38264FA15E3805ed',
|
|
406
398
|
ProxyRegistry: '0x4678f0a6958e4D2Bc4F1BAF7Bc52E8F3564f3fE4',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { getAddr } from '../addresses';
|
|
3
|
+
import { uint256, uint8 } from '../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* @category Triggers
|
|
9
|
+
*/
|
|
10
|
+
export class OffchainPriceTrigger extends Action {
|
|
11
|
+
constructor(limitPrice:uint256, limitType: uint8) {
|
|
12
|
+
super('OffchainPriceTrigger', getAddr('OffchainPriceTrigger'), ['uint256', 'uint8'], [limitPrice, limitType]);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/src/triggers/index.ts
CHANGED
package/src/utils/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ import mstableAssetPairs from './mstableAssetPairs';
|
|
|
6
6
|
import * as curveUtils from './curve-utils';
|
|
7
7
|
import * as curveusdUtils from './curveusd-utils';
|
|
8
8
|
import * as basicUtils from './basic-utils';
|
|
9
|
-
import * as llamaLenUtils from './llamalend-utils';
|
|
10
9
|
|
|
11
10
|
export {
|
|
12
11
|
zeroExExchange,
|
|
@@ -17,5 +16,4 @@ export {
|
|
|
17
16
|
curveUtils,
|
|
18
17
|
curveusdUtils,
|
|
19
18
|
basicUtils,
|
|
20
|
-
llamaLenUtils,
|
|
21
19
|
};
|