@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.
@@ -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
+ }
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.3.15-dev-dev",
3
+ "version": "1.3.15-unsub-dev",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -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
+ }
@@ -1 +1,3 @@
1
1
  export * from './SFApproveTokensAction';
2
+ export * from './SummerfiUnsubAction';
3
+ export * from './SummerfiUnsubV2Action';