@defisaver/sdk 1.0.67-dev-6 → 1.0.69-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/Action.d.ts +2 -2
- package/esm/src/actions/maker/MakerGiveAction.d.ts +2 -1
- package/esm/src/actions/maker/MakerGiveAction.js +3 -2
- package/esm/src/types.d.ts +20 -20
- package/package.json +1 -1
- package/src/actions/maker/MakerGiveAction.ts +4 -3
- package/umd/index.js +710 -698
- package/yarn-error.log +0 -3976
package/esm/src/Action.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccessListItem, EthAddress } from './types';
|
|
2
|
-
type ParamTypes = Array<string | Array<any>>;
|
|
3
|
-
type Args = Array<any>;
|
|
2
|
+
declare type ParamTypes = Array<string | Array<any>>;
|
|
3
|
+
declare type Args = Array<any>;
|
|
4
4
|
/**
|
|
5
5
|
* Single action that can be executed directly, or combined into a set (ie. supply a vault)
|
|
6
6
|
*
|
|
@@ -9,7 +9,8 @@ export declare class MakerGiveAction extends Action {
|
|
|
9
9
|
/**
|
|
10
10
|
* @param vaultId
|
|
11
11
|
* @param newOwner
|
|
12
|
+
* @param createProxy
|
|
12
13
|
* @param mcdManager
|
|
13
14
|
*/
|
|
14
|
-
constructor(vaultId: uint256, newOwner: EthAddress, mcdManager?: EthAddress);
|
|
15
|
+
constructor(vaultId: uint256, newOwner: EthAddress, createProxy: boolean, mcdManager?: EthAddress);
|
|
15
16
|
}
|
|
@@ -10,11 +10,12 @@ export class MakerGiveAction extends Action {
|
|
|
10
10
|
/**
|
|
11
11
|
* @param vaultId
|
|
12
12
|
* @param newOwner
|
|
13
|
+
* @param createProxy
|
|
13
14
|
* @param mcdManager
|
|
14
15
|
*/
|
|
15
|
-
constructor(vaultId, newOwner, mcdManager = getAddr('McdCdpManager')) {
|
|
16
|
+
constructor(vaultId, newOwner, createProxy, mcdManager = getAddr('McdCdpManager')) {
|
|
16
17
|
requireAddress(newOwner);
|
|
17
|
-
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'address'], [vaultId, newOwner, mcdManager]);
|
|
18
|
+
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'bool', 'address'], [vaultId, newOwner, createProxy, mcdManager]);
|
|
18
19
|
this.mappableArgs = [
|
|
19
20
|
this.args[0],
|
|
20
21
|
this.args[1],
|
package/esm/src/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
type AccessListItem = {
|
|
1
|
+
declare type AccessListItem = {
|
|
2
2
|
address: EthAddress;
|
|
3
3
|
storageKeys: Array<any>;
|
|
4
4
|
};
|
|
5
|
-
type AccessList = Array<Array<any>>;
|
|
6
|
-
type AccessLists = {
|
|
5
|
+
declare type AccessList = Array<Array<any>>;
|
|
6
|
+
declare type AccessLists = {
|
|
7
7
|
[key: string]: AccessList;
|
|
8
8
|
};
|
|
9
|
-
type Config = {
|
|
9
|
+
declare type Config = {
|
|
10
10
|
chainId: number;
|
|
11
11
|
testingMode: boolean;
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
};
|
|
14
|
-
type Network = {
|
|
14
|
+
declare type Network = {
|
|
15
15
|
chainId: number;
|
|
16
16
|
chainName: string;
|
|
17
17
|
blockExplorerUrls: Array<string>;
|
|
@@ -23,24 +23,24 @@ type Network = {
|
|
|
23
23
|
symbol: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
type Networks = {
|
|
26
|
+
declare type Networks = {
|
|
27
27
|
ethereum: Network;
|
|
28
28
|
optimism: Network;
|
|
29
29
|
arbitrum: Network;
|
|
30
30
|
base: Network;
|
|
31
31
|
};
|
|
32
|
-
type EthAddress = string;
|
|
33
|
-
type bytes32 = string;
|
|
34
|
-
type bytes = string | Array<any>;
|
|
35
|
-
type uint256 = string;
|
|
36
|
-
type uint32 = string;
|
|
37
|
-
type uint160 = string;
|
|
38
|
-
type uint128 = string;
|
|
39
|
-
type uint80 = string;
|
|
40
|
-
type uint64 = string;
|
|
41
|
-
type uint24 = string;
|
|
42
|
-
type uint16 = string;
|
|
43
|
-
type uint8 = string;
|
|
44
|
-
type int256 = string;
|
|
45
|
-
type int24 = string;
|
|
32
|
+
declare type EthAddress = string;
|
|
33
|
+
declare type bytes32 = string;
|
|
34
|
+
declare type bytes = string | Array<any>;
|
|
35
|
+
declare type uint256 = string;
|
|
36
|
+
declare type uint32 = string;
|
|
37
|
+
declare type uint160 = string;
|
|
38
|
+
declare type uint128 = string;
|
|
39
|
+
declare type uint80 = string;
|
|
40
|
+
declare type uint64 = string;
|
|
41
|
+
declare type uint24 = string;
|
|
42
|
+
declare type uint16 = string;
|
|
43
|
+
declare type uint8 = string;
|
|
44
|
+
declare type int256 = string;
|
|
45
|
+
declare type int24 = string;
|
|
46
46
|
export { AccessList, AccessListItem, AccessLists, Config, Network, Networks, EthAddress, bytes32, bytes, uint256, uint160, uint32, uint128, uint80, uint64, uint24, uint16, uint8, int256, int24, };
|
package/package.json
CHANGED
|
@@ -12,11 +12,12 @@ export class MakerGiveAction extends Action {
|
|
|
12
12
|
/**
|
|
13
13
|
* @param vaultId
|
|
14
14
|
* @param newOwner
|
|
15
|
+
* @param createProxy
|
|
15
16
|
* @param mcdManager
|
|
16
17
|
*/
|
|
17
|
-
constructor(vaultId:uint256, newOwner:EthAddress, mcdManager:EthAddress = getAddr('McdCdpManager')) {
|
|
18
|
+
constructor(vaultId:uint256, newOwner:EthAddress, createProxy:boolean, mcdManager:EthAddress = getAddr('McdCdpManager')) {
|
|
18
19
|
requireAddress(newOwner);
|
|
19
|
-
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'address'], [vaultId, newOwner, mcdManager]);
|
|
20
|
+
super('McdGive', getAddr('McdGive'), ['uint256', 'address', 'bool', 'address'], [vaultId, newOwner, createProxy, mcdManager]);
|
|
20
21
|
|
|
21
22
|
this.mappableArgs = [
|
|
22
23
|
this.args[0],
|
|
@@ -24,4 +25,4 @@ export class MakerGiveAction extends Action {
|
|
|
24
25
|
this.args[2],
|
|
25
26
|
];
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
|
+
}
|