@defisaver/sdk 1.2.10-dev → 1.2.11

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.
@@ -1,9 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { EthAddress, uint256, uint32 } from '../../types';
3
- /**
4
- *
5
- * @category CurveUsd
6
- */
7
- export declare class CurveUsdLevCreateTransientAction extends Action {
8
- constructor(controllerAddress: EthAddress, from: EthAddress, collateralAmount: uint256, nBands: uint256, exchangeOrder: Array<any>, gasUsed: uint32);
9
- }
@@ -1,33 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { requireAddress } from '../../utils/general';
3
- import { getAddr } from '../../addresses';
4
- /**
5
- *
6
- * @category CurveUsd
7
- */
8
- export class CurveUsdLevCreateTransientAction extends Action {
9
- constructor(controllerAddress, from, collateralAmount, nBands, exchangeOrder, gasUsed) {
10
- requireAddress(from);
11
- super('CurveUsdLevCreateTransient', getAddr('CurveUsdLevCreateTransient'), [
12
- 'address',
13
- 'address',
14
- 'uint256',
15
- 'uint256',
16
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
17
- 'uint32',
18
- ], [
19
- controllerAddress,
20
- from,
21
- collateralAmount,
22
- nBands,
23
- exchangeOrder,
24
- gasUsed,
25
- ]);
26
- this.mappableArgs = [
27
- this.args[0],
28
- this.args[1],
29
- this.args[2],
30
- this.args[3],
31
- ];
32
- }
33
- }
@@ -1,9 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { EthAddress, uint32 } from '../../types';
3
- /**
4
- *
5
- * @category CurveUsd
6
- */
7
- export declare class CurveUsdRepayTransientAction extends Action {
8
- constructor(controllerAddress: EthAddress, to: EthAddress, exchangeOrder: Array<any>, gasUsed: uint32);
9
- }
@@ -1,25 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { getAddr } from '../../addresses';
3
- /**
4
- *
5
- * @category CurveUsd
6
- */
7
- export class CurveUsdRepayTransientAction extends Action {
8
- constructor(controllerAddress, to, exchangeOrder, gasUsed) {
9
- super('CurveUsdRepayTransient', getAddr('CurveUsdRepayTransient'), [
10
- 'address',
11
- 'address',
12
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
13
- 'uint32',
14
- ], [
15
- controllerAddress,
16
- to,
17
- exchangeOrder,
18
- gasUsed,
19
- ]);
20
- this.mappableArgs = [
21
- this.args[0],
22
- this.args[1],
23
- ];
24
- }
25
- }
@@ -1,9 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { EthAddress, uint256, uint32 } from '../../types';
3
- /**
4
- *
5
- * @category CurveUsd
6
- */
7
- export declare class CurveUsdSelfLiquidateWithCollTransientAction extends Action {
8
- constructor(controllerAddress: EthAddress, percentage: uint256, minCrvUsdExpected: uint256, to: EthAddress, exchangeOrder: Array<any>, sellAllCollateral: boolean, gasUsed: uint32);
9
- }
@@ -1,35 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { requireAddress } from '../../utils/general';
3
- import { getAddr } from '../../addresses';
4
- /**
5
- *
6
- * @category CurveUsd
7
- */
8
- export class CurveUsdSelfLiquidateWithCollTransientAction extends Action {
9
- constructor(controllerAddress, percentage, minCrvUsdExpected, to, exchangeOrder, sellAllCollateral, gasUsed) {
10
- requireAddress(to);
11
- super('CurveUsdSelfLiquidateWithCollTransient', getAddr('CurveUsdSelfLiquidateWithCollTransient'), [
12
- 'address',
13
- 'uint256',
14
- 'uint256',
15
- 'address',
16
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
17
- 'bool',
18
- 'uint32',
19
- ], [
20
- controllerAddress,
21
- percentage,
22
- minCrvUsdExpected,
23
- to,
24
- exchangeOrder,
25
- sellAllCollateral,
26
- gasUsed,
27
- ]);
28
- this.mappableArgs = [
29
- this.args[0],
30
- this.args[1],
31
- this.args[2],
32
- this.args[3],
33
- ];
34
- }
35
- }
@@ -1,52 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { requireAddress } from '../../utils/general';
3
- import { getAddr } from '../../addresses';
4
- import {
5
- EthAddress,
6
- uint256,
7
- uint32,
8
- } from '../../types';
9
-
10
- /**
11
- *
12
- * @category CurveUsd
13
- */
14
- export class CurveUsdLevCreateTransientAction extends Action {
15
- constructor(
16
- controllerAddress: EthAddress,
17
- from: EthAddress,
18
- collateralAmount: uint256,
19
- nBands: uint256,
20
- exchangeOrder: Array<any>,
21
- gasUsed: uint32,
22
- ) {
23
- requireAddress(from);
24
- super(
25
- 'CurveUsdLevCreateTransient',
26
- getAddr('CurveUsdLevCreateTransient'),
27
- [
28
- 'address',
29
- 'address',
30
- 'uint256',
31
- 'uint256',
32
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
33
- 'uint32',
34
- ],
35
- [
36
- controllerAddress,
37
- from,
38
- collateralAmount,
39
- nBands,
40
- exchangeOrder,
41
- gasUsed,
42
- ],
43
- );
44
-
45
- this.mappableArgs = [
46
- this.args[0],
47
- this.args[1],
48
- this.args[2],
49
- this.args[3],
50
- ];
51
- }
52
- }
@@ -1,36 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { getAddr } from '../../addresses';
3
- import {
4
- EthAddress,
5
- uint32,
6
- } from '../../types';
7
-
8
- /**
9
- *
10
- * @category CurveUsd
11
- */
12
- export class CurveUsdRepayTransientAction extends Action {
13
- constructor(controllerAddress: EthAddress, to: EthAddress, exchangeOrder: Array<any>, gasUsed: uint32) {
14
- super(
15
- 'CurveUsdRepayTransient',
16
- getAddr('CurveUsdRepayTransient'),
17
- [
18
- 'address',
19
- 'address',
20
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
21
- 'uint32',
22
- ],
23
- [
24
- controllerAddress,
25
- to,
26
- exchangeOrder,
27
- gasUsed,
28
- ],
29
- );
30
-
31
- this.mappableArgs = [
32
- this.args[0],
33
- this.args[1],
34
- ];
35
- }
36
- }
@@ -1,55 +0,0 @@
1
- import { Action } from '../../Action';
2
- import { requireAddress } from '../../utils/general';
3
- import { getAddr } from '../../addresses';
4
- import {
5
- EthAddress,
6
- uint256,
7
- uint32,
8
- } from '../../types';
9
-
10
- /**
11
- *
12
- * @category CurveUsd
13
- */
14
- export class CurveUsdSelfLiquidateWithCollTransientAction extends Action {
15
- constructor(
16
- controllerAddress: EthAddress,
17
- percentage: uint256,
18
- minCrvUsdExpected: uint256,
19
- to: EthAddress,
20
- exchangeOrder: Array<any>,
21
- sellAllCollateral: boolean,
22
- gasUsed: uint32,
23
- ) {
24
- requireAddress(to);
25
- super(
26
- 'CurveUsdSelfLiquidateWithCollTransient',
27
- getAddr('CurveUsdSelfLiquidateWithCollTransient'),
28
- [
29
- 'address',
30
- 'uint256',
31
- 'uint256',
32
- 'address',
33
- ['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
34
- 'bool',
35
- 'uint32',
36
- ],
37
- [
38
- controllerAddress,
39
- percentage,
40
- minCrvUsdExpected,
41
- to,
42
- exchangeOrder,
43
- sellAllCollateral,
44
- gasUsed,
45
- ],
46
- );
47
-
48
- this.mappableArgs = [
49
- this.args[0],
50
- this.args[1],
51
- this.args[2],
52
- this.args[3],
53
- ];
54
- }
55
- }