@defisaver/sdk 1.1.2 → 1.1.3

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,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
  *
@@ -248,6 +248,13 @@ export declare const actionAddresses: {
248
248
  UniSupplyV3: string;
249
249
  UniWithdrawV3: string;
250
250
  UniCreatePoolV3: string;
251
+ CompV3Allow: string;
252
+ CompV3Borrow: string;
253
+ CompV3Claim: string;
254
+ CompV3Payback: string;
255
+ CompV3Supply: string;
256
+ CompV3Transfer: string;
257
+ CompV3Withdraw: string;
251
258
  AutomationV2Unsub?: undefined;
252
259
  UpdateSub?: undefined;
253
260
  TransferNFT?: undefined;
@@ -379,13 +386,6 @@ export declare const actionAddresses: {
379
386
  CBChickenOut?: undefined;
380
387
  CBCreateRebondSub?: undefined;
381
388
  FetchBondId?: undefined;
382
- CompV3Allow?: undefined;
383
- CompV3Borrow?: undefined;
384
- CompV3Claim?: undefined;
385
- CompV3Payback?: undefined;
386
- CompV3Supply?: undefined;
387
- CompV3Transfer?: undefined;
388
- CompV3Withdraw?: undefined;
389
389
  CurveUsdBorrow?: undefined;
390
390
  CurveUsdCreate?: undefined;
391
391
  CurveUsdPayback?: undefined;
@@ -280,6 +280,14 @@ export const actionAddresses = {
280
280
  UniSupplyV3: '0x533aDec68Eed581F4a7F202493Eaf4Df77b89EC0',
281
281
  UniWithdrawV3: '0xE920235ED2d52EcF6157BBAFedfB5bbbcF7c5825',
282
282
  UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
283
+ // CompV3
284
+ CompV3Allow: '0xec4937686022c6b83f0d914dde7a465b1108227e',
285
+ CompV3Borrow: '0x2cc1ec3c2b8734b4e57c0415a7641bbaba1d8c21',
286
+ CompV3Claim: '0xAD36437D50DB3C6c225564A4081acb354b55a5D6',
287
+ CompV3Payback: '0xdd15d90f92a4973b4c979e58b9e1eebbb4d1cc26',
288
+ CompV3Supply: '0xf4c3D99c43E1DB968CF92770DaE6d377697b0B81',
289
+ CompV3Transfer: '0x3e5af71709a9e591c5b25422a4419164bb5aba4b',
290
+ CompV3Withdraw: '0x744ad24e92d092e0788d429f5178286672288782',
283
291
  },
284
292
  [NETWORKS.arbitrum.chainId]: {
285
293
  DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',
@@ -259,6 +259,13 @@ declare const actionAddressesAllChains: {
259
259
  UniSupplyV3: string;
260
260
  UniWithdrawV3: string;
261
261
  UniCreatePoolV3: string;
262
+ CompV3Allow: string;
263
+ CompV3Borrow: string;
264
+ CompV3Claim: string;
265
+ CompV3Payback: string;
266
+ CompV3Supply: string;
267
+ CompV3Transfer: string;
268
+ CompV3Withdraw: string;
262
269
  AutomationV2Unsub?: undefined;
263
270
  UpdateSub?: undefined;
264
271
  TransferNFT?: undefined;
@@ -390,13 +397,6 @@ declare const actionAddressesAllChains: {
390
397
  CBChickenOut?: undefined;
391
398
  CBCreateRebondSub?: undefined;
392
399
  FetchBondId?: undefined;
393
- CompV3Allow?: undefined;
394
- CompV3Borrow?: undefined;
395
- CompV3Claim?: undefined;
396
- CompV3Payback?: undefined;
397
- CompV3Supply?: undefined;
398
- CompV3Transfer?: undefined;
399
- CompV3Withdraw?: undefined;
400
400
  CurveUsdBorrow?: undefined;
401
401
  CurveUsdCreate?: undefined;
402
402
  CurveUsdPayback?: undefined;
@@ -1101,6 +1101,13 @@ declare const actionAddresses: (chainId?: null) => {
1101
1101
  UniSupplyV3: string;
1102
1102
  UniWithdrawV3: string;
1103
1103
  UniCreatePoolV3: string;
1104
+ CompV3Allow: string;
1105
+ CompV3Borrow: string;
1106
+ CompV3Claim: string;
1107
+ CompV3Payback: string;
1108
+ CompV3Supply: string;
1109
+ CompV3Transfer: string;
1110
+ CompV3Withdraw: string;
1104
1111
  AutomationV2Unsub?: undefined;
1105
1112
  UpdateSub?: undefined;
1106
1113
  TransferNFT?: undefined;
@@ -1232,13 +1239,6 @@ declare const actionAddresses: (chainId?: null) => {
1232
1239
  CBChickenOut?: undefined;
1233
1240
  CBCreateRebondSub?: undefined;
1234
1241
  FetchBondId?: undefined;
1235
- CompV3Allow?: undefined;
1236
- CompV3Borrow?: undefined;
1237
- CompV3Claim?: undefined;
1238
- CompV3Payback?: undefined;
1239
- CompV3Supply?: undefined;
1240
- CompV3Transfer?: undefined;
1241
- CompV3Withdraw?: undefined;
1242
1242
  CurveUsdBorrow?: undefined;
1243
1243
  CurveUsdCreate?: undefined;
1244
1244
  CurveUsdPayback?: undefined;
@@ -2086,6 +2086,13 @@ declare const _default: {
2086
2086
  UniSupplyV3: string;
2087
2087
  UniWithdrawV3: string;
2088
2088
  UniCreatePoolV3: string;
2089
+ CompV3Allow: string;
2090
+ CompV3Borrow: string;
2091
+ CompV3Claim: string;
2092
+ CompV3Payback: string;
2093
+ CompV3Supply: string;
2094
+ CompV3Transfer: string;
2095
+ CompV3Withdraw: string;
2089
2096
  AutomationV2Unsub?: undefined;
2090
2097
  UpdateSub?: undefined;
2091
2098
  TransferNFT?: undefined;
@@ -2217,13 +2224,6 @@ declare const _default: {
2217
2224
  CBChickenOut?: undefined;
2218
2225
  CBCreateRebondSub?: undefined;
2219
2226
  FetchBondId?: undefined;
2220
- CompV3Allow?: undefined;
2221
- CompV3Borrow?: undefined;
2222
- CompV3Claim?: undefined;
2223
- CompV3Payback?: undefined;
2224
- CompV3Supply?: undefined;
2225
- CompV3Transfer?: undefined;
2226
- CompV3Withdraw?: undefined;
2227
2227
  CurveUsdBorrow?: undefined;
2228
2228
  CurveUsdCreate?: undefined;
2229
2229
  CurveUsdPayback?: undefined;
@@ -2928,6 +2928,13 @@ declare const _default: {
2928
2928
  UniSupplyV3: string;
2929
2929
  UniWithdrawV3: string;
2930
2930
  UniCreatePoolV3: string;
2931
+ CompV3Allow: string;
2932
+ CompV3Borrow: string;
2933
+ CompV3Claim: string;
2934
+ CompV3Payback: string;
2935
+ CompV3Supply: string;
2936
+ CompV3Transfer: string;
2937
+ CompV3Withdraw: string;
2931
2938
  AutomationV2Unsub?: undefined;
2932
2939
  UpdateSub?: undefined;
2933
2940
  TransferNFT?: undefined;
@@ -3059,13 +3066,6 @@ declare const _default: {
3059
3066
  CBChickenOut?: undefined;
3060
3067
  CBCreateRebondSub?: undefined;
3061
3068
  FetchBondId?: undefined;
3062
- CompV3Allow?: undefined;
3063
- CompV3Borrow?: undefined;
3064
- CompV3Claim?: undefined;
3065
- CompV3Payback?: undefined;
3066
- CompV3Supply?: undefined;
3067
- CompV3Transfer?: undefined;
3068
- CompV3Withdraw?: undefined;
3069
3069
  CurveUsdBorrow?: undefined;
3070
3070
  CurveUsdCreate?: undefined;
3071
3071
  CurveUsdPayback?: undefined;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "./umd/index.js",
6
6
  "module": "./esm/src/index.js",
@@ -31,10 +31,10 @@
31
31
  "web3-utils": "^1.8.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@babel/core": "^7.12.10",
35
- "@babel/eslint-parser": "^7.12.17",
36
- "@babel/preset-env": "^7.12.11",
37
- "@babel/preset-typescript": "^7.12.7",
34
+ "@babel/core": "^7.24.4",
35
+ "@babel/eslint-parser": "^7.24.1",
36
+ "@babel/preset-env": "^7.24.4",
37
+ "@babel/preset-typescript": "^7.24.1",
38
38
  "@types/node": "^18.11.8",
39
39
  "@types/web3": "^1.2.2",
40
40
  "@typescript-eslint/eslint-plugin": "^5.42.0",
@@ -42,20 +42,14 @@
42
42
  "babel-loader": "^8.2.2",
43
43
  "chai": "^4.2.0",
44
44
  "dotenv": "^10.0.0",
45
- "eslint": "8.22.0",
46
- "eslint-config-airbnb": "^18.0.2",
47
- "eslint-config-airbnb-typescript": "^17.0.0",
48
- "eslint-import-resolver-typescript": "^3.5.1",
49
- "eslint-plugin-import": "^2.22.0",
50
- "eslint-plugin-jsx-a11y": "^6.6.1",
51
- "eslint-plugin-react": "^7.31.11",
45
+ "eslint": "^8.57.0",
52
46
  "jsdoc-to-markdown": "^6.0.1",
53
- "mocha": "^8.2.1",
47
+ "mocha": "^8.4.0",
54
48
  "ts-node": "^10.9.1",
55
49
  "typedoc": "^0.23.20",
56
50
  "typedoc-plugin-markdown": "^3.13.6",
57
51
  "typescript": "^4.8.4",
58
- "webpack": "^5.13.0",
52
+ "webpack": "^5.91.0",
59
53
  "webpack-cli": "^4.10.0"
60
54
  }
61
55
  }
package/src/addresses.ts CHANGED
@@ -324,6 +324,16 @@ export const actionAddresses = {
324
324
  UniSupplyV3: '0x533aDec68Eed581F4a7F202493Eaf4Df77b89EC0',
325
325
  UniWithdrawV3: '0xE920235ED2d52EcF6157BBAFedfB5bbbcF7c5825',
326
326
  UniCreatePoolV3: '0xAF45d1380d89dB7260DC2684158c5dfA4E147d3e',
327
+
328
+ // CompV3
329
+ CompV3Allow: '0xec4937686022c6b83f0d914dde7a465b1108227e',
330
+ CompV3Borrow: '0x2cc1ec3c2b8734b4e57c0415a7641bbaba1d8c21',
331
+ CompV3Claim: '0xAD36437D50DB3C6c225564A4081acb354b55a5D6',
332
+ CompV3Payback: '0xdd15d90f92a4973b4c979e58b9e1eebbb4d1cc26',
333
+ CompV3Supply: '0xf4c3D99c43E1DB968CF92770DaE6d377697b0B81',
334
+ CompV3Transfer: '0x3e5af71709a9e591c5b25422a4419164bb5aba4b',
335
+ CompV3Withdraw: '0x744ad24e92d092e0788d429f5178286672288782',
336
+
327
337
  },
328
338
  [NETWORKS.arbitrum.chainId]: {
329
339
  DFSSell: '0xF940aE73cb01c81e657916D14e5699c73a22566c',