@defisaver/sdk 1.3.15-dev-dev → 1.3.15-unsub-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/summerfi/SummerfiUnsubAction.d.ts +11 -0
- package/esm/src/actions/summerfi/SummerfiUnsubAction.js +16 -0
- package/esm/src/actions/summerfi/SummerfiUnsubV2Action.d.ts +13 -0
- package/esm/src/actions/summerfi/SummerfiUnsubV2Action.js +20 -0
- package/esm/src/actions/summerfi/index.d.ts +2 -0
- package/esm/src/actions/summerfi/index.js +2 -0
- package/package.json +1 -1
- package/src/actions/summerfi/SummerfiUnsubAction.ts +25 -0
- package/src/actions/summerfi/SummerfiUnsubV2Action.ts +31 -0
- package/src/actions/summerfi/index.ts +2 -0
- package/umd/index.js +304 -246
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* @category Summerfi
|
|
5
|
+
*/
|
|
6
|
+
export declare class SummerfiUnsubAction extends Action {
|
|
7
|
+
/**
|
|
8
|
+
* @param cdpIds Array of CDP IDs to remove approval for
|
|
9
|
+
*/
|
|
10
|
+
constructor(cdpIds: uint256[]);
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* @category Summerfi
|
|
5
|
+
*/
|
|
6
|
+
export class SummerfiUnsubAction extends Action {
|
|
7
|
+
/**
|
|
8
|
+
* @param cdpIds Array of CDP IDs to remove approval for
|
|
9
|
+
*/
|
|
10
|
+
constructor(cdpIds) {
|
|
11
|
+
super('SummerfiUnsub', getAddr('SummerfiUnsub'), ['uint256[]'], [cdpIds]);
|
|
12
|
+
this.mappableArgs = [
|
|
13
|
+
this.args[0],
|
|
14
|
+
];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* @category Summerfi
|
|
5
|
+
*/
|
|
6
|
+
export declare class SummerfiUnsubV2Action extends Action {
|
|
7
|
+
/**
|
|
8
|
+
* @param triggerIds Array of trigger ID arrays to remove
|
|
9
|
+
* @param triggerData Array of trigger data arrays (must match triggerIds length)
|
|
10
|
+
* @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
|
|
11
|
+
*/
|
|
12
|
+
constructor(triggerIds: uint256[][], triggerData: string[][], removeAllowance: boolean[]);
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* @category Summerfi
|
|
5
|
+
*/
|
|
6
|
+
export class SummerfiUnsubV2Action extends Action {
|
|
7
|
+
/**
|
|
8
|
+
* @param triggerIds Array of trigger ID arrays to remove
|
|
9
|
+
* @param triggerData Array of trigger data arrays (must match triggerIds length)
|
|
10
|
+
* @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
|
|
11
|
+
*/
|
|
12
|
+
constructor(triggerIds, triggerData, removeAllowance) {
|
|
13
|
+
super('SummerfiUnsubV2', getAddr('SummerfiUnsubV2'), ['uint256[][]', 'bytes[][]', 'bool[]'], [triggerIds, triggerData, removeAllowance]);
|
|
14
|
+
this.mappableArgs = [
|
|
15
|
+
this.args[0],
|
|
16
|
+
this.args[1],
|
|
17
|
+
this.args[2],
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { uint256 } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @category Summerfi
|
|
7
|
+
*/
|
|
8
|
+
export class SummerfiUnsubAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param cdpIds Array of CDP IDs to remove approval for
|
|
11
|
+
*/
|
|
12
|
+
constructor(
|
|
13
|
+
cdpIds: uint256[],
|
|
14
|
+
) {
|
|
15
|
+
super(
|
|
16
|
+
'SummerfiUnsub',
|
|
17
|
+
getAddr('SummerfiUnsub'),
|
|
18
|
+
['uint256[]'],
|
|
19
|
+
[cdpIds],
|
|
20
|
+
);
|
|
21
|
+
this.mappableArgs = [
|
|
22
|
+
this.args[0],
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
import { uint256 } from '../../types';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @category Summerfi
|
|
7
|
+
*/
|
|
8
|
+
export class SummerfiUnsubV2Action extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param triggerIds Array of trigger ID arrays to remove
|
|
11
|
+
* @param triggerData Array of trigger data arrays (must match triggerIds length)
|
|
12
|
+
* @param removeAllowance Array of booleans indicating whether to remove allowance for each trigger group
|
|
13
|
+
*/
|
|
14
|
+
constructor(
|
|
15
|
+
triggerIds: uint256[][],
|
|
16
|
+
triggerData: string[][],
|
|
17
|
+
removeAllowance: boolean[],
|
|
18
|
+
) {
|
|
19
|
+
super(
|
|
20
|
+
'SummerfiUnsubV2',
|
|
21
|
+
getAddr('SummerfiUnsubV2'),
|
|
22
|
+
['uint256[][]', 'bytes[][]', 'bool[]'],
|
|
23
|
+
[triggerIds, triggerData, removeAllowance],
|
|
24
|
+
);
|
|
25
|
+
this.mappableArgs = [
|
|
26
|
+
this.args[0],
|
|
27
|
+
this.args[1],
|
|
28
|
+
this.args[2],
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
}
|