@defisaver/sdk 1.3.18-aave-v4-dev → 1.3.18-aave-v4-2-dev
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/aavev4/AaveV4DelegateBorrowWithSigAction.d.ts +14 -0
- package/esm/src/actions/aavev4/AaveV4DelegateBorrowWithSigAction.js +19 -0
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.d.ts +14 -0
- package/esm/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.js +19 -0
- package/esm/src/actions/aavev4/AaveV4RefreshPremiumAction.d.ts +15 -0
- package/esm/src/actions/aavev4/AaveV4RefreshPremiumAction.js +22 -0
- package/esm/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.d.ts +18 -0
- package/esm/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.js +20 -0
- package/esm/src/actions/aavev4/index.d.ts +4 -0
- package/esm/src/actions/aavev4/index.js +4 -0
- package/esm/src/addresses.d.ts +24 -0
- package/esm/src/addresses.js +9 -5
- package/esm/src/index.d.ts +96 -0
- package/package.json +1 -1
- package/src/actions/aavev4/AaveV4DelegateBorrowWithSigAction.ts +29 -0
- package/src/actions/aavev4/AaveV4DelegateWithdrawWithSigAction.ts +29 -0
- package/src/actions/aavev4/AaveV4RefreshPremiumAction.ts +33 -0
- package/src/actions/aavev4/AaveV4SetUserManagersWithSigAction.ts +34 -0
- package/src/actions/aavev4/index.ts +5 -1
- package/src/addresses.ts +9 -5
- package/umd/index.js +220 -90
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { bytes } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4DelegateBorrowWithSigAction -Approves a spender to borrow from the specified reserve using an EIP712-typed intent.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV4DelegateBorrowWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param permit EIP712-typed intent.
|
|
11
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
12
|
+
*/
|
|
13
|
+
constructor(permit: Array<any>, signature: bytes);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4DelegateBorrowWithSigAction -Approves a spender to borrow from the specified reserve using an EIP712-typed intent.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV4DelegateBorrowWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param permit EIP712-typed intent.
|
|
11
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
12
|
+
*/
|
|
13
|
+
constructor(permit, signature) {
|
|
14
|
+
super('AaveV4DelegateBorrowWithSig', getAddr('AaveV4DelegateBorrowWithSig'), [
|
|
15
|
+
['address', 'uint256', 'address', 'address', 'uint256', 'uint256', 'uint256'],
|
|
16
|
+
'bytes',
|
|
17
|
+
], [permit, signature]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { bytes } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4DelegateWithdrawWithSigAction - Approves a spender to withdraw from the specified reserve using an EIP712-typed intent.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV4DelegateWithdrawWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param permit EIP712-typed intent.
|
|
11
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
12
|
+
*/
|
|
13
|
+
constructor(permit: Array<any>, signature: bytes);
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4DelegateWithdrawWithSigAction - Approves a spender to withdraw from the specified reserve using an EIP712-typed intent.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV4DelegateWithdrawWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param permit EIP712-typed intent.
|
|
11
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
12
|
+
*/
|
|
13
|
+
constructor(permit, signature) {
|
|
14
|
+
super('AaveV4DelegateWithdrawWithSig', getAddr('AaveV4DelegateWithdrawWithSig'), [
|
|
15
|
+
['address', 'uint256', 'address', 'address', 'uint256', 'uint256', 'uint256'],
|
|
16
|
+
'bytes',
|
|
17
|
+
], [permit, signature]);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4RefreshPremiumAction - Refresh the risk premium for user's position
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4RefreshPremium
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV4RefreshPremiumAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param spoke Address of the spoke.
|
|
11
|
+
* @param onBehalf Address to refresh the config on behalf of. Defaults to the user's wallet if not provided.
|
|
12
|
+
* @param refreshDynamicReserveConfig Whether to also refresh the dynamic reserve config for all collateral reserves.
|
|
13
|
+
*/
|
|
14
|
+
constructor(spoke: EthAddress, onBehalf: EthAddress, refreshDynamicReserveConfig: boolean);
|
|
15
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4RefreshPremiumAction - Refresh the risk premium for user's position
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4RefreshPremium
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV4RefreshPremiumAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param spoke Address of the spoke.
|
|
11
|
+
* @param onBehalf Address to refresh the config on behalf of. Defaults to the user's wallet if not provided.
|
|
12
|
+
* @param refreshDynamicReserveConfig Whether to also refresh the dynamic reserve config for all collateral reserves.
|
|
13
|
+
*/
|
|
14
|
+
constructor(spoke, onBehalf, refreshDynamicReserveConfig) {
|
|
15
|
+
super('AaveV4RefreshPremium', getAddr('AaveV4RefreshPremium'), ['address', 'address', 'bool'], [spoke, onBehalf, refreshDynamicReserveConfig]);
|
|
16
|
+
this.mappableArgs = [
|
|
17
|
+
this.args[0],
|
|
18
|
+
this.args[1],
|
|
19
|
+
this.args[2],
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, bytes, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4SetUserManagersWithSigAction - Sets user position managers with EIP712-typed signature.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export declare class AaveV4SetUserManagersWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param spoke Address of the spoke.
|
|
11
|
+
* @param onBehalf The address of the user on whose behalf position manager can act.
|
|
12
|
+
* @param nonce The nonce for the signature.
|
|
13
|
+
* @param deadline The deadline for the signature.
|
|
14
|
+
* @param signature The signature bytes.
|
|
15
|
+
* @param updates The array of position manager updates.
|
|
16
|
+
*/
|
|
17
|
+
constructor(spoke: EthAddress, onBehalf: EthAddress, nonce: uint256, deadline: uint256, signature: bytes, updates: Array<[EthAddress, boolean]>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* AaveV4SetUserManagersWithSigAction - Sets user position managers with EIP712-typed signature.
|
|
5
|
+
*
|
|
6
|
+
* @category AaveV4
|
|
7
|
+
*/
|
|
8
|
+
export class AaveV4SetUserManagersWithSigAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param spoke Address of the spoke.
|
|
11
|
+
* @param onBehalf The address of the user on whose behalf position manager can act.
|
|
12
|
+
* @param nonce The nonce for the signature.
|
|
13
|
+
* @param deadline The deadline for the signature.
|
|
14
|
+
* @param signature The signature bytes.
|
|
15
|
+
* @param updates The array of position manager updates.
|
|
16
|
+
*/
|
|
17
|
+
constructor(spoke, onBehalf, nonce, deadline, signature, updates) {
|
|
18
|
+
super('AaveV4SetUserManagersWithSig', getAddr('AaveV4SetUserManagersWithSig'), ['address', 'address', 'uint256', 'uint256', 'bytes', 'tuple(address,bool)[]'], [spoke, onBehalf, nonce, deadline, signature, updates]);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -4,3 +4,7 @@ export * from './AaveV4BorrowAction';
|
|
|
4
4
|
export * from './AaveV4PaybackAction';
|
|
5
5
|
export * from './AaveV4CollateralSwitchAction';
|
|
6
6
|
export * from './AaveV4StoreRatioAction';
|
|
7
|
+
export * from './AaveV4RefreshPremiumAction';
|
|
8
|
+
export * from './AaveV4DelegateBorrowWithSigAction';
|
|
9
|
+
export * from './AaveV4DelegateWithdrawWithSigAction';
|
|
10
|
+
export * from './AaveV4SetUserManagersWithSigAction';
|
|
@@ -4,3 +4,7 @@ export * from './AaveV4BorrowAction';
|
|
|
4
4
|
export * from './AaveV4PaybackAction';
|
|
5
5
|
export * from './AaveV4CollateralSwitchAction';
|
|
6
6
|
export * from './AaveV4StoreRatioAction';
|
|
7
|
+
export * from './AaveV4RefreshPremiumAction';
|
|
8
|
+
export * from './AaveV4DelegateBorrowWithSigAction';
|
|
9
|
+
export * from './AaveV4DelegateWithdrawWithSigAction';
|
|
10
|
+
export * from './AaveV4SetUserManagersWithSigAction';
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -282,6 +282,10 @@ export declare const actionAddresses: {
|
|
|
282
282
|
AaveV4Borrow: string;
|
|
283
283
|
AaveV4Payback: string;
|
|
284
284
|
AaveV4CollateralSwitch: string;
|
|
285
|
+
AaveV4RefreshPremium: string;
|
|
286
|
+
AaveV4SetUserManagersWithSig: string;
|
|
287
|
+
AaveV4DelegateWithdrawWithSig: string;
|
|
288
|
+
AaveV4DelegateBorrowWithSig: string;
|
|
285
289
|
AaveV3DelegateCredit?: undefined;
|
|
286
290
|
AaveV3RatioTrigger?: undefined;
|
|
287
291
|
GasFeeTakerL2?: undefined;
|
|
@@ -573,6 +577,10 @@ export declare const actionAddresses: {
|
|
|
573
577
|
AaveV4Borrow?: undefined;
|
|
574
578
|
AaveV4Payback?: undefined;
|
|
575
579
|
AaveV4CollateralSwitch?: undefined;
|
|
580
|
+
AaveV4RefreshPremium?: undefined;
|
|
581
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
582
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
583
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
576
584
|
MorphoBlueView?: undefined;
|
|
577
585
|
} | {
|
|
578
586
|
DFSSell: string;
|
|
@@ -859,6 +867,10 @@ export declare const actionAddresses: {
|
|
|
859
867
|
AaveV4Borrow?: undefined;
|
|
860
868
|
AaveV4Payback?: undefined;
|
|
861
869
|
AaveV4CollateralSwitch?: undefined;
|
|
870
|
+
AaveV4RefreshPremium?: undefined;
|
|
871
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
872
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
873
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
862
874
|
AaveV3DelegateCredit?: undefined;
|
|
863
875
|
AaveV3RatioTrigger?: undefined;
|
|
864
876
|
} | {
|
|
@@ -1145,6 +1157,10 @@ export declare const actionAddresses: {
|
|
|
1145
1157
|
AaveV4Borrow?: undefined;
|
|
1146
1158
|
AaveV4Payback?: undefined;
|
|
1147
1159
|
AaveV4CollateralSwitch?: undefined;
|
|
1160
|
+
AaveV4RefreshPremium?: undefined;
|
|
1161
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1162
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1163
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1148
1164
|
AaveV3DelegateCredit?: undefined;
|
|
1149
1165
|
AaveV3RatioTrigger?: undefined;
|
|
1150
1166
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1431,6 +1447,10 @@ export declare const actionAddresses: {
|
|
|
1431
1447
|
AaveV4Borrow?: undefined;
|
|
1432
1448
|
AaveV4Payback?: undefined;
|
|
1433
1449
|
AaveV4CollateralSwitch?: undefined;
|
|
1450
|
+
AaveV4RefreshPremium?: undefined;
|
|
1451
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1452
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1453
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1434
1454
|
AaveV3RatioTrigger?: undefined;
|
|
1435
1455
|
GasFeeTakerL2?: undefined;
|
|
1436
1456
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1718,6 +1738,10 @@ export declare const actionAddresses: {
|
|
|
1718
1738
|
AaveV4Borrow?: undefined;
|
|
1719
1739
|
AaveV4Payback?: undefined;
|
|
1720
1740
|
AaveV4CollateralSwitch?: undefined;
|
|
1741
|
+
AaveV4RefreshPremium?: undefined;
|
|
1742
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1743
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1744
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1721
1745
|
AaveV3RatioTrigger?: undefined;
|
|
1722
1746
|
GasFeeTakerL2?: undefined;
|
|
1723
1747
|
AaveV3RatioCheck?: undefined;
|
package/esm/src/addresses.js
CHANGED
|
@@ -319,11 +319,15 @@ export const actionAddresses = {
|
|
|
319
319
|
SummerfiUnsub: '0x926405D69b77A514ED974901095AcFf9e5131366',
|
|
320
320
|
SummerfiUnsubV2: '0x5E805eD9B7581a9f1398F75833f9663a459F5E30',
|
|
321
321
|
// AaveV4
|
|
322
|
-
AaveV4Supply: '
|
|
323
|
-
AaveV4Withdraw: '
|
|
324
|
-
AaveV4Borrow: '
|
|
325
|
-
AaveV4Payback: '
|
|
326
|
-
AaveV4CollateralSwitch: '
|
|
322
|
+
AaveV4Supply: '0x270A0C7eBd1C0a98FdA613782b51419300AB6322',
|
|
323
|
+
AaveV4Withdraw: '0x561013c605A17f5dC5b738C8a3fF9c5F33DbC3d8',
|
|
324
|
+
AaveV4Borrow: '0xC6C627c63389D8bB7913b55CD62fa451703AD1E1',
|
|
325
|
+
AaveV4Payback: '0x6e31Dd331571209043c8CF997f86b4291F648537',
|
|
326
|
+
AaveV4CollateralSwitch: '0x26C39FE05466dBA72A98d095d019dC5e067F6b28',
|
|
327
|
+
AaveV4RefreshPremium: '0xb080DC160415Ffe1a4b80d75b0Be92EE38a0b426',
|
|
328
|
+
AaveV4SetUserManagersWithSig: '0xe3459a0fEBc8276c428951125A10f589ea195760',
|
|
329
|
+
AaveV4DelegateWithdrawWithSig: '0xDDCcE054Ea32dc857A2D7Cf87E55310Feb2DD86c',
|
|
330
|
+
AaveV4DelegateBorrowWithSig: '0xdDef60521E4cf82e971D1f1387ab0d5e226D0533',
|
|
327
331
|
},
|
|
328
332
|
[NETWORKS.optimism.chainId]: {
|
|
329
333
|
DFSSell: '0x9f234af5c10c136863a20865ba00b26951ab8269',
|
package/esm/src/index.d.ts
CHANGED
|
@@ -293,6 +293,10 @@ declare const actionAddressesAllChains: {
|
|
|
293
293
|
AaveV4Borrow: string;
|
|
294
294
|
AaveV4Payback: string;
|
|
295
295
|
AaveV4CollateralSwitch: string;
|
|
296
|
+
AaveV4RefreshPremium: string;
|
|
297
|
+
AaveV4SetUserManagersWithSig: string;
|
|
298
|
+
AaveV4DelegateWithdrawWithSig: string;
|
|
299
|
+
AaveV4DelegateBorrowWithSig: string;
|
|
296
300
|
AaveV3DelegateCredit?: undefined;
|
|
297
301
|
AaveV3RatioTrigger?: undefined;
|
|
298
302
|
GasFeeTakerL2?: undefined;
|
|
@@ -584,6 +588,10 @@ declare const actionAddressesAllChains: {
|
|
|
584
588
|
AaveV4Borrow?: undefined;
|
|
585
589
|
AaveV4Payback?: undefined;
|
|
586
590
|
AaveV4CollateralSwitch?: undefined;
|
|
591
|
+
AaveV4RefreshPremium?: undefined;
|
|
592
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
593
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
594
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
587
595
|
MorphoBlueView?: undefined;
|
|
588
596
|
} | {
|
|
589
597
|
DFSSell: string;
|
|
@@ -870,6 +878,10 @@ declare const actionAddressesAllChains: {
|
|
|
870
878
|
AaveV4Borrow?: undefined;
|
|
871
879
|
AaveV4Payback?: undefined;
|
|
872
880
|
AaveV4CollateralSwitch?: undefined;
|
|
881
|
+
AaveV4RefreshPremium?: undefined;
|
|
882
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
883
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
884
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
873
885
|
AaveV3DelegateCredit?: undefined;
|
|
874
886
|
AaveV3RatioTrigger?: undefined;
|
|
875
887
|
} | {
|
|
@@ -1156,6 +1168,10 @@ declare const actionAddressesAllChains: {
|
|
|
1156
1168
|
AaveV4Borrow?: undefined;
|
|
1157
1169
|
AaveV4Payback?: undefined;
|
|
1158
1170
|
AaveV4CollateralSwitch?: undefined;
|
|
1171
|
+
AaveV4RefreshPremium?: undefined;
|
|
1172
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1173
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1174
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1159
1175
|
AaveV3DelegateCredit?: undefined;
|
|
1160
1176
|
AaveV3RatioTrigger?: undefined;
|
|
1161
1177
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1442,6 +1458,10 @@ declare const actionAddressesAllChains: {
|
|
|
1442
1458
|
AaveV4Borrow?: undefined;
|
|
1443
1459
|
AaveV4Payback?: undefined;
|
|
1444
1460
|
AaveV4CollateralSwitch?: undefined;
|
|
1461
|
+
AaveV4RefreshPremium?: undefined;
|
|
1462
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1463
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1464
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1445
1465
|
AaveV3RatioTrigger?: undefined;
|
|
1446
1466
|
GasFeeTakerL2?: undefined;
|
|
1447
1467
|
AaveV3RatioCheck?: undefined;
|
|
@@ -1729,6 +1749,10 @@ declare const actionAddressesAllChains: {
|
|
|
1729
1749
|
AaveV4Borrow?: undefined;
|
|
1730
1750
|
AaveV4Payback?: undefined;
|
|
1731
1751
|
AaveV4CollateralSwitch?: undefined;
|
|
1752
|
+
AaveV4RefreshPremium?: undefined;
|
|
1753
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
1754
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
1755
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
1732
1756
|
AaveV3RatioTrigger?: undefined;
|
|
1733
1757
|
GasFeeTakerL2?: undefined;
|
|
1734
1758
|
AaveV3RatioCheck?: undefined;
|
|
@@ -2017,6 +2041,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2017
2041
|
AaveV4Borrow: string;
|
|
2018
2042
|
AaveV4Payback: string;
|
|
2019
2043
|
AaveV4CollateralSwitch: string;
|
|
2044
|
+
AaveV4RefreshPremium: string;
|
|
2045
|
+
AaveV4SetUserManagersWithSig: string;
|
|
2046
|
+
AaveV4DelegateWithdrawWithSig: string;
|
|
2047
|
+
AaveV4DelegateBorrowWithSig: string;
|
|
2020
2048
|
AaveV3DelegateCredit?: undefined;
|
|
2021
2049
|
AaveV3RatioTrigger?: undefined;
|
|
2022
2050
|
GasFeeTakerL2?: undefined;
|
|
@@ -2308,6 +2336,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2308
2336
|
AaveV4Borrow?: undefined;
|
|
2309
2337
|
AaveV4Payback?: undefined;
|
|
2310
2338
|
AaveV4CollateralSwitch?: undefined;
|
|
2339
|
+
AaveV4RefreshPremium?: undefined;
|
|
2340
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
2341
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2342
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2311
2343
|
MorphoBlueView?: undefined;
|
|
2312
2344
|
} | {
|
|
2313
2345
|
DFSSell: string;
|
|
@@ -2594,6 +2626,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2594
2626
|
AaveV4Borrow?: undefined;
|
|
2595
2627
|
AaveV4Payback?: undefined;
|
|
2596
2628
|
AaveV4CollateralSwitch?: undefined;
|
|
2629
|
+
AaveV4RefreshPremium?: undefined;
|
|
2630
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
2631
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2632
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2597
2633
|
AaveV3DelegateCredit?: undefined;
|
|
2598
2634
|
AaveV3RatioTrigger?: undefined;
|
|
2599
2635
|
} | {
|
|
@@ -2880,6 +2916,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
2880
2916
|
AaveV4Borrow?: undefined;
|
|
2881
2917
|
AaveV4Payback?: undefined;
|
|
2882
2918
|
AaveV4CollateralSwitch?: undefined;
|
|
2919
|
+
AaveV4RefreshPremium?: undefined;
|
|
2920
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
2921
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
2922
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
2883
2923
|
AaveV3DelegateCredit?: undefined;
|
|
2884
2924
|
AaveV3RatioTrigger?: undefined;
|
|
2885
2925
|
AaveV3RatioCheck?: undefined;
|
|
@@ -3166,6 +3206,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3166
3206
|
AaveV4Borrow?: undefined;
|
|
3167
3207
|
AaveV4Payback?: undefined;
|
|
3168
3208
|
AaveV4CollateralSwitch?: undefined;
|
|
3209
|
+
AaveV4RefreshPremium?: undefined;
|
|
3210
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
3211
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3212
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3169
3213
|
AaveV3RatioTrigger?: undefined;
|
|
3170
3214
|
GasFeeTakerL2?: undefined;
|
|
3171
3215
|
AaveV3RatioCheck?: undefined;
|
|
@@ -3453,6 +3497,10 @@ declare const actionAddresses: (chainId?: null) => {
|
|
|
3453
3497
|
AaveV4Borrow?: undefined;
|
|
3454
3498
|
AaveV4Payback?: undefined;
|
|
3455
3499
|
AaveV4CollateralSwitch?: undefined;
|
|
3500
|
+
AaveV4RefreshPremium?: undefined;
|
|
3501
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
3502
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
3503
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
3456
3504
|
AaveV3RatioTrigger?: undefined;
|
|
3457
3505
|
GasFeeTakerL2?: undefined;
|
|
3458
3506
|
AaveV3RatioCheck?: undefined;
|
|
@@ -3978,6 +4026,10 @@ declare const _default: {
|
|
|
3978
4026
|
AaveV4Borrow: string;
|
|
3979
4027
|
AaveV4Payback: string;
|
|
3980
4028
|
AaveV4CollateralSwitch: string;
|
|
4029
|
+
AaveV4RefreshPremium: string;
|
|
4030
|
+
AaveV4SetUserManagersWithSig: string;
|
|
4031
|
+
AaveV4DelegateWithdrawWithSig: string;
|
|
4032
|
+
AaveV4DelegateBorrowWithSig: string;
|
|
3981
4033
|
AaveV3DelegateCredit?: undefined;
|
|
3982
4034
|
AaveV3RatioTrigger?: undefined;
|
|
3983
4035
|
GasFeeTakerL2?: undefined;
|
|
@@ -4269,6 +4321,10 @@ declare const _default: {
|
|
|
4269
4321
|
AaveV4Borrow?: undefined;
|
|
4270
4322
|
AaveV4Payback?: undefined;
|
|
4271
4323
|
AaveV4CollateralSwitch?: undefined;
|
|
4324
|
+
AaveV4RefreshPremium?: undefined;
|
|
4325
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
4326
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4327
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4272
4328
|
MorphoBlueView?: undefined;
|
|
4273
4329
|
} | {
|
|
4274
4330
|
DFSSell: string;
|
|
@@ -4555,6 +4611,10 @@ declare const _default: {
|
|
|
4555
4611
|
AaveV4Borrow?: undefined;
|
|
4556
4612
|
AaveV4Payback?: undefined;
|
|
4557
4613
|
AaveV4CollateralSwitch?: undefined;
|
|
4614
|
+
AaveV4RefreshPremium?: undefined;
|
|
4615
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
4616
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4617
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4558
4618
|
AaveV3DelegateCredit?: undefined;
|
|
4559
4619
|
AaveV3RatioTrigger?: undefined;
|
|
4560
4620
|
} | {
|
|
@@ -4841,6 +4901,10 @@ declare const _default: {
|
|
|
4841
4901
|
AaveV4Borrow?: undefined;
|
|
4842
4902
|
AaveV4Payback?: undefined;
|
|
4843
4903
|
AaveV4CollateralSwitch?: undefined;
|
|
4904
|
+
AaveV4RefreshPremium?: undefined;
|
|
4905
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
4906
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
4907
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
4844
4908
|
AaveV3DelegateCredit?: undefined;
|
|
4845
4909
|
AaveV3RatioTrigger?: undefined;
|
|
4846
4910
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5127,6 +5191,10 @@ declare const _default: {
|
|
|
5127
5191
|
AaveV4Borrow?: undefined;
|
|
5128
5192
|
AaveV4Payback?: undefined;
|
|
5129
5193
|
AaveV4CollateralSwitch?: undefined;
|
|
5194
|
+
AaveV4RefreshPremium?: undefined;
|
|
5195
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
5196
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5197
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5130
5198
|
AaveV3RatioTrigger?: undefined;
|
|
5131
5199
|
GasFeeTakerL2?: undefined;
|
|
5132
5200
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5414,6 +5482,10 @@ declare const _default: {
|
|
|
5414
5482
|
AaveV4Borrow?: undefined;
|
|
5415
5483
|
AaveV4Payback?: undefined;
|
|
5416
5484
|
AaveV4CollateralSwitch?: undefined;
|
|
5485
|
+
AaveV4RefreshPremium?: undefined;
|
|
5486
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
5487
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
5488
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5417
5489
|
AaveV3RatioTrigger?: undefined;
|
|
5418
5490
|
GasFeeTakerL2?: undefined;
|
|
5419
5491
|
AaveV3RatioCheck?: undefined;
|
|
@@ -5702,6 +5774,10 @@ declare const _default: {
|
|
|
5702
5774
|
AaveV4Borrow: string;
|
|
5703
5775
|
AaveV4Payback: string;
|
|
5704
5776
|
AaveV4CollateralSwitch: string;
|
|
5777
|
+
AaveV4RefreshPremium: string;
|
|
5778
|
+
AaveV4SetUserManagersWithSig: string;
|
|
5779
|
+
AaveV4DelegateWithdrawWithSig: string;
|
|
5780
|
+
AaveV4DelegateBorrowWithSig: string;
|
|
5705
5781
|
AaveV3DelegateCredit?: undefined;
|
|
5706
5782
|
AaveV3RatioTrigger?: undefined;
|
|
5707
5783
|
GasFeeTakerL2?: undefined;
|
|
@@ -5993,6 +6069,10 @@ declare const _default: {
|
|
|
5993
6069
|
AaveV4Borrow?: undefined;
|
|
5994
6070
|
AaveV4Payback?: undefined;
|
|
5995
6071
|
AaveV4CollateralSwitch?: undefined;
|
|
6072
|
+
AaveV4RefreshPremium?: undefined;
|
|
6073
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
6074
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6075
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
5996
6076
|
MorphoBlueView?: undefined;
|
|
5997
6077
|
} | {
|
|
5998
6078
|
DFSSell: string;
|
|
@@ -6279,6 +6359,10 @@ declare const _default: {
|
|
|
6279
6359
|
AaveV4Borrow?: undefined;
|
|
6280
6360
|
AaveV4Payback?: undefined;
|
|
6281
6361
|
AaveV4CollateralSwitch?: undefined;
|
|
6362
|
+
AaveV4RefreshPremium?: undefined;
|
|
6363
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
6364
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6365
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6282
6366
|
AaveV3DelegateCredit?: undefined;
|
|
6283
6367
|
AaveV3RatioTrigger?: undefined;
|
|
6284
6368
|
} | {
|
|
@@ -6565,6 +6649,10 @@ declare const _default: {
|
|
|
6565
6649
|
AaveV4Borrow?: undefined;
|
|
6566
6650
|
AaveV4Payback?: undefined;
|
|
6567
6651
|
AaveV4CollateralSwitch?: undefined;
|
|
6652
|
+
AaveV4RefreshPremium?: undefined;
|
|
6653
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
6654
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6655
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6568
6656
|
AaveV3DelegateCredit?: undefined;
|
|
6569
6657
|
AaveV3RatioTrigger?: undefined;
|
|
6570
6658
|
AaveV3RatioCheck?: undefined;
|
|
@@ -6851,6 +6939,10 @@ declare const _default: {
|
|
|
6851
6939
|
AaveV4Borrow?: undefined;
|
|
6852
6940
|
AaveV4Payback?: undefined;
|
|
6853
6941
|
AaveV4CollateralSwitch?: undefined;
|
|
6942
|
+
AaveV4RefreshPremium?: undefined;
|
|
6943
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
6944
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
6945
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
6854
6946
|
AaveV3RatioTrigger?: undefined;
|
|
6855
6947
|
GasFeeTakerL2?: undefined;
|
|
6856
6948
|
AaveV3RatioCheck?: undefined;
|
|
@@ -7138,6 +7230,10 @@ declare const _default: {
|
|
|
7138
7230
|
AaveV4Borrow?: undefined;
|
|
7139
7231
|
AaveV4Payback?: undefined;
|
|
7140
7232
|
AaveV4CollateralSwitch?: undefined;
|
|
7233
|
+
AaveV4RefreshPremium?: undefined;
|
|
7234
|
+
AaveV4SetUserManagersWithSig?: undefined;
|
|
7235
|
+
AaveV4DelegateWithdrawWithSig?: undefined;
|
|
7236
|
+
AaveV4DelegateBorrowWithSig?: undefined;
|
|
7141
7237
|
AaveV3RatioTrigger?: undefined;
|
|
7142
7238
|
GasFeeTakerL2?: undefined;
|
|
7143
7239
|
AaveV3RatioCheck?: undefined;
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { bytes } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4DelegateBorrowWithSigAction -Approves a spender to borrow from the specified reserve using an EIP712-typed intent.
|
|
7
|
+
*
|
|
8
|
+
* @category AaveV4
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4DelegateBorrowWithSigAction extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param permit EIP712-typed intent.
|
|
13
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
14
|
+
*/
|
|
15
|
+
constructor(
|
|
16
|
+
permit: Array<any>,
|
|
17
|
+
signature: bytes,
|
|
18
|
+
) {
|
|
19
|
+
super(
|
|
20
|
+
'AaveV4DelegateBorrowWithSig',
|
|
21
|
+
getAddr('AaveV4DelegateBorrowWithSig'),
|
|
22
|
+
[
|
|
23
|
+
['address', 'uint256', 'address', 'address', 'uint256', 'uint256', 'uint256'],
|
|
24
|
+
'bytes',
|
|
25
|
+
],
|
|
26
|
+
[permit, signature],
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { bytes } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4DelegateWithdrawWithSigAction - Approves a spender to withdraw from the specified reserve using an EIP712-typed intent.
|
|
7
|
+
*
|
|
8
|
+
* @category AaveV4
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4DelegateWithdrawWithSigAction extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param permit EIP712-typed intent.
|
|
13
|
+
* @param signature The EIP712-compliant signature bytes.
|
|
14
|
+
*/
|
|
15
|
+
constructor(
|
|
16
|
+
permit: Array<any>,
|
|
17
|
+
signature: bytes,
|
|
18
|
+
) {
|
|
19
|
+
super(
|
|
20
|
+
'AaveV4DelegateWithdrawWithSig',
|
|
21
|
+
getAddr('AaveV4DelegateWithdrawWithSig'),
|
|
22
|
+
[
|
|
23
|
+
['address', 'uint256', 'address', 'address', 'uint256', 'uint256', 'uint256'],
|
|
24
|
+
'bytes',
|
|
25
|
+
],
|
|
26
|
+
[permit, signature],
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { EthAddress } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4RefreshPremiumAction - Refresh the risk premium for user's position
|
|
7
|
+
*
|
|
8
|
+
* @category AaveV4RefreshPremium
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4RefreshPremiumAction extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param spoke Address of the spoke.
|
|
13
|
+
* @param onBehalf Address to refresh the config on behalf of. Defaults to the user's wallet if not provided.
|
|
14
|
+
* @param refreshDynamicReserveConfig Whether to also refresh the dynamic reserve config for all collateral reserves.
|
|
15
|
+
*/
|
|
16
|
+
constructor(
|
|
17
|
+
spoke: EthAddress,
|
|
18
|
+
onBehalf: EthAddress,
|
|
19
|
+
refreshDynamicReserveConfig: boolean,
|
|
20
|
+
) {
|
|
21
|
+
super(
|
|
22
|
+
'AaveV4RefreshPremium',
|
|
23
|
+
getAddr('AaveV4RefreshPremium'),
|
|
24
|
+
['address', 'address', 'bool'],
|
|
25
|
+
[spoke, onBehalf, refreshDynamicReserveConfig],
|
|
26
|
+
);
|
|
27
|
+
this.mappableArgs = [
|
|
28
|
+
this.args[0],
|
|
29
|
+
this.args[1],
|
|
30
|
+
this.args[2],
|
|
31
|
+
];
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { EthAddress, bytes, uint256 } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* AaveV4SetUserManagersWithSigAction - Sets user position managers with EIP712-typed signature.
|
|
7
|
+
*
|
|
8
|
+
* @category AaveV4
|
|
9
|
+
*/
|
|
10
|
+
export class AaveV4SetUserManagersWithSigAction extends Action {
|
|
11
|
+
/**
|
|
12
|
+
* @param spoke Address of the spoke.
|
|
13
|
+
* @param onBehalf The address of the user on whose behalf position manager can act.
|
|
14
|
+
* @param nonce The nonce for the signature.
|
|
15
|
+
* @param deadline The deadline for the signature.
|
|
16
|
+
* @param signature The signature bytes.
|
|
17
|
+
* @param updates The array of position manager updates.
|
|
18
|
+
*/
|
|
19
|
+
constructor(
|
|
20
|
+
spoke: EthAddress,
|
|
21
|
+
onBehalf: EthAddress,
|
|
22
|
+
nonce: uint256,
|
|
23
|
+
deadline: uint256,
|
|
24
|
+
signature: bytes,
|
|
25
|
+
updates: Array<[EthAddress, boolean]>,
|
|
26
|
+
) {
|
|
27
|
+
super(
|
|
28
|
+
'AaveV4SetUserManagersWithSig',
|
|
29
|
+
getAddr('AaveV4SetUserManagersWithSig'),
|
|
30
|
+
['address', 'address', 'uint256', 'uint256', 'bytes', 'tuple(address,bool)[]'],
|
|
31
|
+
[spoke, onBehalf, nonce, deadline, signature, updates],
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -3,4 +3,8 @@ export * from './AaveV4WithdrawAction';
|
|
|
3
3
|
export * from './AaveV4BorrowAction';
|
|
4
4
|
export * from './AaveV4PaybackAction';
|
|
5
5
|
export * from './AaveV4CollateralSwitchAction';
|
|
6
|
-
export * from './AaveV4StoreRatioAction';
|
|
6
|
+
export * from './AaveV4StoreRatioAction';
|
|
7
|
+
export * from './AaveV4RefreshPremiumAction';
|
|
8
|
+
export * from './AaveV4DelegateBorrowWithSigAction';
|
|
9
|
+
export * from './AaveV4DelegateWithdrawWithSigAction';
|
|
10
|
+
export * from './AaveV4SetUserManagersWithSigAction';
|