@defisaver/positions-sdk 0.0.64 → 0.0.65

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.
@@ -1126,6 +1126,9 @@ export namespace cUSDCv3 {
1126
1126
  "1": {
1127
1127
  address: string;
1128
1128
  };
1129
+ "10": {
1130
+ address: string;
1131
+ };
1129
1132
  "8453": {
1130
1133
  address: string;
1131
1134
  };
@@ -1495,6 +1498,9 @@ export namespace CompV3View {
1495
1498
  };
1496
1499
  };
1497
1500
  };
1501
+ "10": {
1502
+ address: string;
1503
+ };
1498
1504
  "8453": {
1499
1505
  address: string;
1500
1506
  };
@@ -1688,6 +1694,9 @@ export namespace CompV3BulkerL2 {
1688
1694
  })[];
1689
1695
  export { abi_20 as abi };
1690
1696
  let networks_20: {
1697
+ "10": {
1698
+ address: string;
1699
+ };
1691
1700
  "8453": {
1692
1701
  address: string;
1693
1702
  };
@@ -246,6 +246,9 @@ module.exports = {
246
246
  "1": {
247
247
  "address": "0xc3d688B66703497DAA19211EEdff47f25384cdc3"
248
248
  },
249
+ "10": {
250
+ "address": "0x2e44e174f7D53F0212823acC11C01A11d58c5bCB"
251
+ },
249
252
  "8453": {
250
253
  "address": "0xb125E6687d4313864e53df431d5425969c15Eb2F"
251
254
  },
@@ -294,6 +297,9 @@ module.exports = {
294
297
  }
295
298
  }
296
299
  },
300
+ "10": {
301
+ "address": "0x969d845618596787DBc64687Ee90b16931BBBCBC"
302
+ },
297
303
  "8453": {
298
304
  "address": "0x22591183c0eb7B2Fe07F6F44fd360d1117D07b4f"
299
305
  },
@@ -321,6 +327,9 @@ module.exports = {
321
327
  "CompV3BulkerL2": {
322
328
  "abi": [{ "inputs": [{ "internalType": "address", "name": "admin_", "type": "address" }, { "internalType": "address payable", "name": "wrappedNativeToken_", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "FailedToSendNativeToken", "type": "error" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [], "name": "InvalidArgument", "type": "error" }, { "inputs": [], "name": "TransferInFailed", "type": "error" }, { "inputs": [], "name": "TransferOutFailed", "type": "error" }, { "inputs": [], "name": "Unauthorized", "type": "error" }, { "inputs": [], "name": "UnhandledAction", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldAdmin", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "AdminTransferred", "type": "event" }, { "inputs": [], "name": "ACTION_CLAIM_REWARD", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_SUPPLY_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_SUPPLY_NATIVE_TOKEN", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_TRANSFER_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_WITHDRAW_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_WITHDRAW_NATIVE_TOKEN", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "admin", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32[]", "name": "actions", "type": "bytes32[]" }, { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "invoke", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "recipient", "type": "address" }], "name": "sweepNativeToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "address", "name": "asset", "type": "address" }], "name": "sweepToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "transferAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "wrappedNativeToken", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "stateMutability": "payable", "type": "receive" }],
323
329
  "networks": {
330
+ "10": {
331
+ "address": "0xcb3643CC8294B23171272845473dEc49739d4Ba3"
332
+ },
324
333
  "8453": {
325
334
  "address": "0x78D0677032A35c63D142a48A2037048871212a8C"
326
335
  },
@@ -36,10 +36,11 @@ const BULKER_OPTIONS = {
36
36
  [types_1.CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
37
37
  },
38
38
  [common_1.NetworkNumber.Opt]: {
39
+ [types_1.CompoundVersions.CompoundV3USDC]: STANDARD_BULKER_OPTIONS,
40
+ // Non-existing markets, keeping it because of typescript
39
41
  [types_1.CompoundVersions.CompoundV3ETH]: EMPTY_BULKER_OPTIONS,
40
42
  [types_1.CompoundVersions.CompoundV3USDbC]: EMPTY_BULKER_OPTIONS,
41
43
  [types_1.CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
42
- [types_1.CompoundVersions.CompoundV3USDC]: EMPTY_BULKER_OPTIONS,
43
44
  [types_1.CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
44
45
  },
45
46
  };
@@ -59,7 +60,7 @@ exports.COMPOUND_V2 = {
59
60
  // icon: SvgAdapter(protocolIcons.compound),
60
61
  };
61
62
  const COMPOUND_V3_USDC = (networkId) => ({
62
- chainIds: [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Base],
63
+ chainIds: [common_1.NetworkNumber.Eth, common_1.NetworkNumber.Arb, common_1.NetworkNumber.Base, common_1.NetworkNumber.Opt],
63
64
  label: 'Compound V3 - USDC',
64
65
  shortLabel: 'v3',
65
66
  value: types_1.CompoundVersions.CompoundV3USDC,
@@ -2,9 +2,10 @@ export declare const compoundV2CollateralAssets: import("@defisaver/tokens/esm/t
2
2
  export declare const v3USDCCollAssetsEth: string[];
3
3
  export declare const v3USDCCollAssetsArb: string[];
4
4
  export declare const v3USDCCollAssetsBase: string[];
5
+ export declare const v3USDCCollAssetsOpt: string[];
5
6
  export declare const v3USDCCollAssets: {
6
7
  readonly 1: string[];
7
- readonly 10: readonly [];
8
+ readonly 10: string[];
8
9
  readonly 42161: string[];
9
10
  readonly 8453: string[];
10
11
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.v3USDbCCollAssets = exports.v3USDbCCollAssetsBase = exports.v3ETHCollAssets = exports.v3ETHCollAssetsBase = exports.v3ETHCollAssetsEth = exports.v3USDCeCollAssets = exports.v3USDCeCollAssetsArb = exports.v3USDCCollAssets = exports.v3USDCCollAssetsBase = exports.v3USDCCollAssetsArb = exports.v3USDCCollAssetsEth = exports.compoundV2CollateralAssets = void 0;
3
+ exports.v3USDbCCollAssets = exports.v3USDbCCollAssetsBase = exports.v3ETHCollAssets = exports.v3ETHCollAssetsBase = exports.v3ETHCollAssetsEth = exports.v3USDCeCollAssets = exports.v3USDCeCollAssetsArb = exports.v3USDCCollAssets = exports.v3USDCCollAssetsOpt = exports.v3USDCCollAssetsBase = exports.v3USDCCollAssetsArb = exports.v3USDCCollAssetsEth = exports.compoundV2CollateralAssets = void 0;
4
4
  const tokens_1 = require("@defisaver/tokens");
5
5
  const common_1 = require("../../types/common");
6
6
  exports.compoundV2CollateralAssets = [
@@ -10,10 +10,11 @@ exports.compoundV2CollateralAssets = [
10
10
  exports.v3USDCCollAssetsEth = ['ETH', 'COMP', 'WBTC', 'UNI', 'LINK'];
11
11
  exports.v3USDCCollAssetsArb = ['ARB', 'ETH', 'GMX', 'WBTC'];
12
12
  exports.v3USDCCollAssetsBase = ['ETH', 'cbETH'];
13
+ exports.v3USDCCollAssetsOpt = ['ETH', 'OP', 'WBTC'];
13
14
  // @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
14
15
  exports.v3USDCCollAssets = {
15
16
  [common_1.NetworkNumber.Eth]: exports.v3USDCCollAssetsEth,
16
- [common_1.NetworkNumber.Opt]: [],
17
+ [common_1.NetworkNumber.Opt]: exports.v3USDCCollAssetsOpt,
17
18
  [common_1.NetworkNumber.Arb]: exports.v3USDCCollAssetsArb,
18
19
  [common_1.NetworkNumber.Base]: exports.v3USDCCollAssetsBase,
19
20
  };
@@ -1126,6 +1126,9 @@ export namespace cUSDCv3 {
1126
1126
  "1": {
1127
1127
  address: string;
1128
1128
  };
1129
+ "10": {
1130
+ address: string;
1131
+ };
1129
1132
  "8453": {
1130
1133
  address: string;
1131
1134
  };
@@ -1495,6 +1498,9 @@ export namespace CompV3View {
1495
1498
  };
1496
1499
  };
1497
1500
  };
1501
+ "10": {
1502
+ address: string;
1503
+ };
1498
1504
  "8453": {
1499
1505
  address: string;
1500
1506
  };
@@ -1688,6 +1694,9 @@ export namespace CompV3BulkerL2 {
1688
1694
  })[];
1689
1695
  export { abi_20 as abi };
1690
1696
  let networks_20: {
1697
+ "10": {
1698
+ address: string;
1699
+ };
1691
1700
  "8453": {
1692
1701
  address: string;
1693
1702
  };
@@ -245,6 +245,9 @@ module.exports = {
245
245
  "1": {
246
246
  "address": "0xc3d688B66703497DAA19211EEdff47f25384cdc3"
247
247
  },
248
+ "10": {
249
+ "address": "0x2e44e174f7D53F0212823acC11C01A11d58c5bCB"
250
+ },
248
251
  "8453": {
249
252
  "address": "0xb125E6687d4313864e53df431d5425969c15Eb2F"
250
253
  },
@@ -293,6 +296,9 @@ module.exports = {
293
296
  }
294
297
  }
295
298
  },
299
+ "10": {
300
+ "address": "0x969d845618596787DBc64687Ee90b16931BBBCBC"
301
+ },
296
302
  "8453": {
297
303
  "address": "0x22591183c0eb7B2Fe07F6F44fd360d1117D07b4f"
298
304
  },
@@ -320,6 +326,9 @@ module.exports = {
320
326
  "CompV3BulkerL2": {
321
327
  "abi": [{ "inputs": [{ "internalType": "address", "name": "admin_", "type": "address" }, { "internalType": "address payable", "name": "wrappedNativeToken_", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "FailedToSendNativeToken", "type": "error" }, { "inputs": [], "name": "InvalidAddress", "type": "error" }, { "inputs": [], "name": "InvalidArgument", "type": "error" }, { "inputs": [], "name": "TransferInFailed", "type": "error" }, { "inputs": [], "name": "TransferOutFailed", "type": "error" }, { "inputs": [], "name": "Unauthorized", "type": "error" }, { "inputs": [], "name": "UnhandledAction", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldAdmin", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "AdminTransferred", "type": "event" }, { "inputs": [], "name": "ACTION_CLAIM_REWARD", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_SUPPLY_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_SUPPLY_NATIVE_TOKEN", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_TRANSFER_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_WITHDRAW_ASSET", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ACTION_WITHDRAW_NATIVE_TOKEN", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "admin", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32[]", "name": "actions", "type": "bytes32[]" }, { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "invoke", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "recipient", "type": "address" }], "name": "sweepNativeToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "recipient", "type": "address" }, { "internalType": "address", "name": "asset", "type": "address" }], "name": "sweepToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newAdmin", "type": "address" }], "name": "transferAdmin", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "wrappedNativeToken", "outputs": [{ "internalType": "address payable", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "stateMutability": "payable", "type": "receive" }],
322
328
  "networks": {
329
+ "10": {
330
+ "address": "0xcb3643CC8294B23171272845473dEc49739d4Ba3"
331
+ },
323
332
  "8453": {
324
333
  "address": "0x78D0677032A35c63D142a48A2037048871212a8C"
325
334
  },
@@ -33,10 +33,11 @@ const BULKER_OPTIONS = {
33
33
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
34
34
  },
35
35
  [NetworkNumber.Opt]: {
36
+ [CompoundVersions.CompoundV3USDC]: STANDARD_BULKER_OPTIONS,
37
+ // Non-existing markets, keeping it because of typescript
36
38
  [CompoundVersions.CompoundV3ETH]: EMPTY_BULKER_OPTIONS,
37
39
  [CompoundVersions.CompoundV3USDbC]: EMPTY_BULKER_OPTIONS,
38
40
  [CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
39
- [CompoundVersions.CompoundV3USDC]: EMPTY_BULKER_OPTIONS,
40
41
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
41
42
  },
42
43
  };
@@ -56,7 +57,7 @@ export const COMPOUND_V2 = {
56
57
  // icon: SvgAdapter(protocolIcons.compound),
57
58
  };
58
59
  export const COMPOUND_V3_USDC = (networkId) => ({
59
- chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Base],
60
+ chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Base, NetworkNumber.Opt],
60
61
  label: 'Compound V3 - USDC',
61
62
  shortLabel: 'v3',
62
63
  value: CompoundVersions.CompoundV3USDC,
@@ -2,9 +2,10 @@ export declare const compoundV2CollateralAssets: import("@defisaver/tokens/esm/t
2
2
  export declare const v3USDCCollAssetsEth: string[];
3
3
  export declare const v3USDCCollAssetsArb: string[];
4
4
  export declare const v3USDCCollAssetsBase: string[];
5
+ export declare const v3USDCCollAssetsOpt: string[];
5
6
  export declare const v3USDCCollAssets: {
6
7
  readonly 1: string[];
7
- readonly 10: readonly [];
8
+ readonly 10: string[];
8
9
  readonly 42161: string[];
9
10
  readonly 8453: string[];
10
11
  };
@@ -7,10 +7,11 @@ export const compoundV2CollateralAssets = [
7
7
  export const v3USDCCollAssetsEth = ['ETH', 'COMP', 'WBTC', 'UNI', 'LINK'];
8
8
  export const v3USDCCollAssetsArb = ['ARB', 'ETH', 'GMX', 'WBTC'];
9
9
  export const v3USDCCollAssetsBase = ['ETH', 'cbETH'];
10
+ export const v3USDCCollAssetsOpt = ['ETH', 'OP', 'WBTC'];
10
11
  // @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
11
12
  export const v3USDCCollAssets = {
12
13
  [NetworkNumber.Eth]: v3USDCCollAssetsEth,
13
- [NetworkNumber.Opt]: [],
14
+ [NetworkNumber.Opt]: v3USDCCollAssetsOpt,
14
15
  [NetworkNumber.Arb]: v3USDCCollAssetsArb,
15
16
  [NetworkNumber.Base]: v3USDCCollAssetsBase,
16
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -245,6 +245,9 @@ module.exports = {
245
245
  "1": {
246
246
  "address": "0xc3d688B66703497DAA19211EEdff47f25384cdc3"
247
247
  },
248
+ "10": {
249
+ "address": "0x2e44e174f7D53F0212823acC11C01A11d58c5bCB"
250
+ },
248
251
  "8453": {
249
252
  "address": "0xb125E6687d4313864e53df431d5425969c15Eb2F"
250
253
  },
@@ -293,6 +296,9 @@ module.exports = {
293
296
  }
294
297
  }
295
298
  },
299
+ "10": {
300
+ "address": "0x969d845618596787DBc64687Ee90b16931BBBCBC"
301
+ },
296
302
  "8453": {
297
303
  "address": "0x22591183c0eb7B2Fe07F6F44fd360d1117D07b4f"
298
304
  },
@@ -320,6 +326,9 @@ module.exports = {
320
326
  "CompV3BulkerL2": {
321
327
  "abi": [{"inputs":[{"internalType":"address","name":"admin_","type":"address"},{"internalType":"address payable","name":"wrappedNativeToken_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"FailedToSendNativeToken","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidArgument","type":"error"},{"inputs":[],"name":"TransferInFailed","type":"error"},{"inputs":[],"name":"TransferOutFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnhandledAction","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminTransferred","type":"event"},{"inputs":[],"name":"ACTION_CLAIM_REWARD","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACTION_SUPPLY_ASSET","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACTION_SUPPLY_NATIVE_TOKEN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACTION_TRANSFER_ASSET","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACTION_WITHDRAW_ASSET","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ACTION_WITHDRAW_NATIVE_TOKEN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"actions","type":"bytes32[]"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"invoke","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"asset","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedNativeToken","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}],
322
328
  "networks": {
329
+ "10": {
330
+ "address": "0xcb3643CC8294B23171272845473dEc49739d4Ba3"
331
+ },
323
332
  "8453": {
324
333
  "address": "0x78D0677032A35c63D142a48A2037048871212a8C"
325
334
  },
@@ -44,11 +44,12 @@ const BULKER_OPTIONS: Record<NetworkNumber, Record<CompoundVersions, CompoundBul
44
44
  [CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
45
45
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
46
46
  },
47
- [NetworkNumber.Opt]: { // Non-existing markets, keeping it because of typescript
47
+ [NetworkNumber.Opt]: {
48
+ [CompoundVersions.CompoundV3USDC]: STANDARD_BULKER_OPTIONS,
49
+ // Non-existing markets, keeping it because of typescript
48
50
  [CompoundVersions.CompoundV3ETH]: EMPTY_BULKER_OPTIONS,
49
51
  [CompoundVersions.CompoundV3USDbC]: EMPTY_BULKER_OPTIONS,
50
52
  [CompoundVersions.CompoundV2]: EMPTY_BULKER_OPTIONS,
51
- [CompoundVersions.CompoundV3USDC]: EMPTY_BULKER_OPTIONS,
52
53
  [CompoundVersions.CompoundV3USDCe]: EMPTY_BULKER_OPTIONS,
53
54
  },
54
55
  };
@@ -70,7 +71,7 @@ export const COMPOUND_V2: CompoundMarketData = {
70
71
  };
71
72
 
72
73
  export const COMPOUND_V3_USDC = (networkId: NetworkNumber): CompoundMarketData => ({
73
- chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Base],
74
+ chainIds: [NetworkNumber.Eth, NetworkNumber.Arb, NetworkNumber.Base, NetworkNumber.Opt],
74
75
  label: 'Compound V3 - USDC',
75
76
  shortLabel: 'v3',
76
77
  value: CompoundVersions.CompoundV3USDC,
@@ -9,11 +9,12 @@ export const compoundV2CollateralAssets = [
9
9
  export const v3USDCCollAssetsEth = ['ETH', 'COMP', 'WBTC', 'UNI', 'LINK'];
10
10
  export const v3USDCCollAssetsArb = ['ARB', 'ETH', 'GMX', 'WBTC'];
11
11
  export const v3USDCCollAssetsBase = ['ETH', 'cbETH'];
12
+ export const v3USDCCollAssetsOpt = ['ETH', 'OP', 'WBTC'];
12
13
 
13
14
  // @dev Keep assets in array, do not assign directly, so we can parse it and edit it programmatically with `scripts/updateMarkets`
14
15
  export const v3USDCCollAssets = {
15
16
  [NetworkNumber.Eth]: v3USDCCollAssetsEth,
16
- [NetworkNumber.Opt]: [],
17
+ [NetworkNumber.Opt]: v3USDCCollAssetsOpt,
17
18
  [NetworkNumber.Arb]: v3USDCCollAssetsArb,
18
19
  [NetworkNumber.Base]: v3USDCCollAssetsBase,
19
20
  } as const;
package/yarn-error.log ADDED
@@ -0,0 +1,64 @@
1
+ Arguments:
2
+ /Users/stefan/.nvm/versions/node/v14.19.0/bin/node /usr/local/Cellar/yarn/1.22.19/libexec/bin/yarn.js
3
+
4
+ PATH:
5
+ /Users/stefan/.nvm/versions/node/v14.19.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Users/stefan/WebstormProjects/defisaver-positions-sdk/node_modules/.bin:/usr/local/go
6
+
7
+ Yarn version:
8
+ 1.22.19
9
+
10
+ Node version:
11
+ 14.19.0
12
+
13
+ Platform:
14
+ darwin x64
15
+
16
+ Trace:
17
+ Error: incorrect data check
18
+ at Zlib.zlibOnError [as onerror] (zlib.js:187:17)
19
+
20
+ npm manifest:
21
+ {
22
+ "name": "defisaver-positions-sdk",
23
+ "version": "0.0.1",
24
+ "description": "",
25
+ "main": "./cjs/index.js",
26
+ "module": "./esm/src/index.js",
27
+ "types": "./esm/src/index.d.ts",
28
+ "scripts": {
29
+ "build:esm": "rm -rf esm && tsc -p tsconfig.json",
30
+ "build:cjs": "rm -rf cjs && tsc -p tsconfig.cjs.json",
31
+ "build": "npm run build:cjs && npm run build:esm",
32
+ "dev": "tsc -p tsconfig.cjs.json --watch",
33
+ "lint": "eslint src/ --fix",
34
+ "generate-contracts": "node scripts/generateContracts.js",
35
+ "test": "mocha tests/*",
36
+ "build-test": "npm run build && mocha tests/*"
37
+ },
38
+ "keywords": [],
39
+ "author": "",
40
+ "license": "ISC",
41
+ "dependencies": {
42
+ "@defisaver/tokens": "^1.4.56",
43
+ "decimal.js": "^10.4.3"
44
+ },
45
+ "devDependencies": {
46
+ "@defisaver/eslint-config": "^1.0.1",
47
+ "chai": "^4.3.8",
48
+ "dotenv": "^16.3.1",
49
+ "eslint": "^8.49.0",
50
+ "mocha": "^10.2.0",
51
+ "typechain": "^8.3.1",
52
+ "typechain-target-web3-v1-3mihai3": "^6.0.2",
53
+ "typescript": "^5.2.2"
54
+ },
55
+ "peerDependencies": {
56
+ "web3": "^1.10.2"
57
+ }
58
+ }
59
+
60
+ yarn manifest:
61
+ No manifest
62
+
63
+ Lockfile:
64
+ No lockfile