@qidao/sdk 5.2.5 → 5.2.9

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,4 +1,4 @@
1
- export type PLATFORM = 'Beefy' | 'Yearn' | 'Curve' | 'AaveV2' | 'AaveV3' | 'Balancer' | 'Lido' | 'Arrakis' | 'QuickSwap' | 'Gains' | 'GotchiVault' | 'Stader' | 'StakeDAO' | 'Tetu' | 'Spookyswap' | 'Convex';
1
+ export type PLATFORM = 'Beefy' | 'Yearn' | 'Curve' | 'AaveV2' | 'AaveV3' | 'Balancer' | 'Lido' | 'Arrakis' | 'QuickSwap' | 'Gains' | 'GotchiVault' | 'Stader' | 'StakeDAO' | 'Tetu' | 'Spookyswap' | 'Convex' | 'Coinbase' | 'Optimism' | 'Arbitrum';
2
2
  export declare const ProtocolInfo: {
3
3
  [k in PLATFORM]: {
4
4
  description: string;
@@ -17724,9 +17724,9 @@ declare const MAINNET_COLLATERALS: ({
17724
17724
  version: 2;
17725
17725
  snapshotName: "cbEth (Eth)";
17726
17726
  underlyingIds: "coinbase-wrapped-staked-eth"[];
17727
+ platform: "Coinbase"[];
17727
17728
  addedAt: number;
17728
17729
  deprecated?: undefined;
17729
- platform?: undefined;
17730
17730
  } | {
17731
17731
  shortName: "steth";
17732
17732
  vaultAddress: string;
@@ -20938,9 +20938,9 @@ declare const MAINNET_COLLATERALS: ({
20938
20938
  version: 2;
20939
20939
  snapshotName: "LDO (Eth)";
20940
20940
  underlyingIds: "lido-dao-token"[];
20941
+ platform: "Lido"[];
20941
20942
  addedAt: number;
20942
20943
  deprecated?: undefined;
20943
- platform?: undefined;
20944
20944
  })[];
20945
20945
  declare const FANTOM_COLLATERALS: ({
20946
20946
  shortName: "ftm";
@@ -22146,9 +22146,9 @@ declare const FANTOM_COLLATERALS: ({
22146
22146
  snapshotName: "WFTM (Fantom)";
22147
22147
  underlyingIds: "fantom"[];
22148
22148
  addedAt: number;
22149
+ deprecated: true;
22149
22150
  fallbackUnderlyingAddress?: undefined;
22150
22151
  platform?: undefined;
22151
- deprecated?: undefined;
22152
22152
  } | {
22153
22153
  shortName: "yvwftm";
22154
22154
  vaultAddress: string;
@@ -23350,8 +23350,8 @@ declare const FANTOM_COLLATERALS: ({
23350
23350
  underlyingIds: ("yearn-finance" | "fantom")[];
23351
23351
  platform: "Yearn"[];
23352
23352
  addedAt: number;
23353
+ deprecated: true;
23353
23354
  native?: undefined;
23354
- deprecated?: undefined;
23355
23355
  } | {
23356
23356
  shortName: "yvwbtc";
23357
23357
  vaultAddress: string;
@@ -24540,9 +24540,9 @@ declare const FANTOM_COLLATERALS: ({
24540
24540
  underlyingIds: "wrapped-bitcoinwbtc"[];
24541
24541
  platform: "Yearn"[];
24542
24542
  addedAt: number;
24543
+ deprecated: true;
24543
24544
  native?: undefined;
24544
24545
  subgraph?: undefined;
24545
- deprecated?: undefined;
24546
24546
  } | {
24547
24547
  shortName: "yvyfi";
24548
24548
  vaultAddress: string;
@@ -25719,9 +25719,9 @@ declare const FANTOM_COLLATERALS: ({
25719
25719
  underlyingIds: "yearn-finance"[];
25720
25720
  platform: "Yearn"[];
25721
25721
  addedAt: number;
25722
+ deprecated: true;
25722
25723
  native?: undefined;
25723
25724
  subgraph?: undefined;
25724
- deprecated?: undefined;
25725
25725
  } | {
25726
25726
  shortName: "yveth";
25727
25727
  vaultAddress: string;
@@ -26898,9 +26898,9 @@ declare const FANTOM_COLLATERALS: ({
26898
26898
  underlyingIds: ("yearn-finance" | "weth")[];
26899
26899
  platform: "Yearn"[];
26900
26900
  addedAt: number;
26901
+ deprecated: true;
26901
26902
  native?: undefined;
26902
26903
  subgraph?: undefined;
26903
- deprecated?: undefined;
26904
26904
  } | {
26905
26905
  shortName: "yvwdai";
26906
26906
  vaultAddress: string;
@@ -28101,9 +28101,9 @@ declare const FANTOM_COLLATERALS: ({
28101
28101
  underlyingIds: ("yearn-finance" | "daidai")[];
28102
28102
  platform: "Yearn"[];
28103
28103
  addedAt: number;
28104
+ deprecated: true;
28104
28105
  native?: undefined;
28105
28106
  snapshotName?: undefined;
28106
- deprecated?: undefined;
28107
28107
  } | {
28108
28108
  shortName: "ftmweth";
28109
28109
  vaultAddress: string;
@@ -29303,10 +29303,10 @@ declare const FANTOM_COLLATERALS: ({
29303
29303
  snapshotName: "WETH (Fantom)";
29304
29304
  underlyingIds: "weth"[];
29305
29305
  addedAt: number;
29306
+ deprecated: true;
29306
29307
  native?: undefined;
29307
29308
  fallbackUnderlyingAddress?: undefined;
29308
29309
  platform?: undefined;
29309
- deprecated?: undefined;
29310
29310
  } | {
29311
29311
  shortName: "aave";
29312
29312
  vaultAddress: string;
@@ -30505,11 +30505,11 @@ declare const FANTOM_COLLATERALS: ({
30505
30505
  snapshotName: "AAVE (Fantom)";
30506
30506
  underlyingIds: "aave"[];
30507
30507
  addedAt: number;
30508
+ deprecated: true;
30508
30509
  native?: undefined;
30509
30510
  subgraph?: undefined;
30510
30511
  fallbackUnderlyingAddress?: undefined;
30511
30512
  platform?: undefined;
30512
- deprecated?: undefined;
30513
30513
  } | {
30514
30514
  shortName: "sushi";
30515
30515
  vaultAddress: string;
@@ -31708,11 +31708,11 @@ declare const FANTOM_COLLATERALS: ({
31708
31708
  snapshotName: "SUSHI (Fantom)";
31709
31709
  underlyingIds: "sushiswap"[];
31710
31710
  addedAt: number;
31711
+ deprecated: true;
31711
31712
  native?: undefined;
31712
31713
  subgraph?: undefined;
31713
31714
  fallbackUnderlyingAddress?: undefined;
31714
31715
  platform?: undefined;
31715
- deprecated?: undefined;
31716
31716
  } | {
31717
31717
  shortName: "link";
31718
31718
  vaultAddress: string;
@@ -32911,11 +32911,11 @@ declare const FANTOM_COLLATERALS: ({
32911
32911
  snapshotName: "LINK (Fantom)";
32912
32912
  underlyingIds: "chainlink"[];
32913
32913
  addedAt: number;
32914
+ deprecated: true;
32914
32915
  native?: undefined;
32915
32916
  subgraph?: undefined;
32916
32917
  fallbackUnderlyingAddress?: undefined;
32917
32918
  platform?: undefined;
32918
- deprecated?: undefined;
32919
32919
  } | {
32920
32920
  shortName: "btc";
32921
32921
  vaultAddress: string;
@@ -34102,11 +34102,11 @@ declare const FANTOM_COLLATERALS: ({
34102
34102
  snapshotName: "WBTC (Fantom)";
34103
34103
  underlyingIds: "wrapped-bitcoinwbtc"[];
34104
34104
  addedAt: number;
34105
+ deprecated: true;
34105
34106
  native?: undefined;
34106
34107
  subgraph?: undefined;
34107
34108
  fallbackUnderlyingAddress?: undefined;
34108
34109
  platform?: undefined;
34109
- deprecated?: undefined;
34110
34110
  } | {
34111
34111
  shortName: "beefy-scream-wbtc";
34112
34112
  vaultAddress: string;
@@ -43728,9 +43728,9 @@ declare const FANTOM_COLLATERALS: ({
43728
43728
  underlyingIds: "beefy-finance"[];
43729
43729
  platform: "Beefy"[];
43730
43730
  addedAt: number;
43731
+ deprecated: true;
43731
43732
  native?: undefined;
43732
43733
  subgraph?: undefined;
43733
- deprecated?: undefined;
43734
43734
  } | {
43735
43735
  shortName: "xboo";
43736
43736
  vaultAddress: string;
@@ -45337,13 +45337,14 @@ declare const FANTOM_COLLATERALS: ({
45337
45337
  underlyingIds: "spookyswap"[];
45338
45338
  platform: "Spookyswap"[];
45339
45339
  addedAt: number;
45340
+ deprecated: true;
45340
45341
  native?: undefined;
45341
45342
  subgraph?: undefined;
45342
- deprecated?: undefined;
45343
45343
  })[];
45344
45344
  declare const AVALANCHE_COLLATERALS: ({
45345
45345
  shortName: "beefy-aave-avax";
45346
45346
  vaultAddress: string;
45347
+ deprecated: true;
45347
45348
  chainId: ChainId.AVALANCHE;
45348
45349
  token: Token;
45349
45350
  minimumCDR: number;
@@ -47727,6 +47728,7 @@ declare const AVALANCHE_COLLATERALS: ({
47727
47728
  underlyingIds: ("daidai" | "stake-dao-crv" | "tether" | "usd-coin")[];
47728
47729
  platform: ("Curve" | "StakeDAO")[];
47729
47730
  addedAt: number;
47731
+ deprecated?: undefined;
47730
47732
  fallbackUnderlyingAddress?: undefined;
47731
47733
  snapshotName?: undefined;
47732
47734
  } | {
@@ -48915,6 +48917,7 @@ declare const AVALANCHE_COLLATERALS: ({
48915
48917
  snapshotName: "WBTC (Avalanche)";
48916
48918
  underlyingIds: "wrapped-bitcoinwbtc"[];
48917
48919
  addedAt: number;
48920
+ deprecated?: undefined;
48918
48921
  fallbackUnderlyingAddress?: undefined;
48919
48922
  platform?: undefined;
48920
48923
  } | {
@@ -50091,6 +50094,7 @@ declare const AVALANCHE_COLLATERALS: ({
50091
50094
  snapshotName: "WETH (Avalanche)";
50092
50095
  underlyingIds: "weth"[];
50093
50096
  addedAt: number;
50097
+ deprecated?: undefined;
50094
50098
  fallbackUnderlyingAddress?: undefined;
50095
50099
  platform?: undefined;
50096
50100
  } | {
@@ -51267,6 +51271,7 @@ declare const AVALANCHE_COLLATERALS: ({
51267
51271
  snapshotName: "WAVAX (Avalanche)";
51268
51272
  underlyingIds: "avalanche"[];
51269
51273
  addedAt: number;
51274
+ deprecated?: undefined;
51270
51275
  fallbackUnderlyingAddress?: undefined;
51271
51276
  platform?: undefined;
51272
51277
  })[];
@@ -61266,9 +61271,9 @@ declare const ARBITRUM_COLLATERALS: ({
61266
61271
  version: 2;
61267
61272
  snapshotName: "Arb (Arbitrum)";
61268
61273
  underlyingIds: "arbitrum"[];
61274
+ platform: "Arbitrum"[];
61269
61275
  addedAt: number;
61270
61276
  deprecated?: undefined;
61271
- platform?: undefined;
61272
61277
  })[];
61273
61278
  declare const OPTIMISM_COLLATERALS: ({
61274
61279
  shortName: "weth";
@@ -62444,8 +62449,8 @@ declare const OPTIMISM_COLLATERALS: ({
62444
62449
  snapshotName: "WETH (Optimism)";
62445
62450
  underlyingIds: "weth"[];
62446
62451
  addedAt: number;
62447
- fallbackUnderlyingAddress?: undefined;
62448
62452
  platform?: undefined;
62453
+ fallbackUnderlyingAddress?: undefined;
62449
62454
  } | {
62450
62455
  shortName: "wbtc";
62451
62456
  vaultAddress: string;
@@ -63632,8 +63637,8 @@ declare const OPTIMISM_COLLATERALS: ({
63632
63637
  snapshotName: "WBTC (Optimism)";
63633
63638
  underlyingIds: "wrapped-bitcoinwbtc"[];
63634
63639
  addedAt: number;
63635
- fallbackUnderlyingAddress?: undefined;
63636
63640
  platform?: undefined;
63641
+ fallbackUnderlyingAddress?: undefined;
63637
63642
  } | {
63638
63643
  shortName: "op";
63639
63644
  vaultAddress: string;
@@ -65237,9 +65242,9 @@ declare const OPTIMISM_COLLATERALS: ({
65237
65242
  version: 2;
65238
65243
  snapshotName: "OP (Optimism)";
65239
65244
  underlyingIds: "optimism"[];
65245
+ platform: "Optimism"[];
65240
65246
  addedAt: number;
65241
65247
  fallbackUnderlyingAddress?: undefined;
65242
- platform?: undefined;
65243
65248
  } | {
65244
65249
  shortName: "beefy-aave-dai";
65245
65250
  vaultAddress: string;
@@ -76480,8 +76485,8 @@ declare const OPTIMISM_COLLATERALS: ({
76480
76485
  underlyingIds: "kyber-network-crystal"[];
76481
76486
  addedAt: number;
76482
76487
  snapshotName?: undefined;
76483
- fallbackUnderlyingAddress?: undefined;
76484
76488
  platform?: undefined;
76489
+ fallbackUnderlyingAddress?: undefined;
76485
76490
  })[];
76486
76491
  declare const MOONRIVER_COLLATERALS: ({
76487
76492
  shortName: "eth";
@@ -80082,11 +80087,11 @@ declare const MOONRIVER_COLLATERALS: ({
80082
80087
  token: Token;
80083
80088
  minimumCDR: number;
80084
80089
  frontend: FRONTEND.MAI;
80090
+ deprecated: true;
80085
80091
  version: 1;
80086
80092
  snapshotName: "MOVR (Moonriver)";
80087
80093
  underlyingIds: "moonriver"[];
80088
80094
  addedAt: number;
80089
- deprecated?: undefined;
80090
80095
  } | {
80091
80096
  shortName: "moo-solar-movr-usdc";
80092
80097
  vaultAddress: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.2.5",
4
+ "version": "5.2.9",
5
5
  "description": "🛠 An SDK for building applications on top of QiDao Protocol.",
6
6
  "main": "./dist/index.js",
7
7
  "umd:main": "dist/index.umd.js",
@@ -55,10 +55,10 @@
55
55
  "@types/lodash": "^4.14.185",
56
56
  "ethers": "5.7.0",
57
57
  "isomorphic-fetch":" ^3.0.0",
58
- "microbundle": "0.15.1",
58
+ "microbundle": "^0.15.1",
59
59
  "p-queue": "^7.3.0",
60
60
  "typechain": "8.1.0",
61
- "typescript": "4.9.5"
61
+ "typescript": "^5.1.6"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">= 16"