@qidao/sdk 5.2.0 → 5.2.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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/ProtocolInfo.d.ts +7 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/vaultInfo.d.ts +10 -10
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type PLATFORM = 'Beefy' | 'Yearn' | 'Curve' | 'AaveV2' | 'AaveV3' | 'Balancer' | 'Lido' | 'Arrakis' | 'QuickSwap' | 'Gains' | 'GotchiVault' | 'Stader' | 'StakeDAO' | 'Tetu' | 'Spookyswap' | 'Convex';
|
|
2
|
+
export declare const ProtocolInfo: {
|
|
3
|
+
[k in PLATFORM]: {
|
|
4
|
+
description: string;
|
|
5
|
+
logo: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/vaultInfo.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { QiStablecoin__factory } from './contracts/factories/QiStablecoin__facto
|
|
|
5
5
|
import { QiStablecoin } from './contracts/QiStablecoin';
|
|
6
6
|
import { Token } from './entities';
|
|
7
7
|
import { ChainId, TOKEN_DESCRIPTIONS } from './constants';
|
|
8
|
+
import { PLATFORM } from "./ProtocolInfo";
|
|
8
9
|
export type SnapshotCanonicalChoiceName = 'Wrapped MATIC (Polygon)' | 'WETH (Polygon)' | 'WBTC (Polygon)' | 'AAVE (Polygon)' | 'LINK (Polygon)' | 'xxLINK (Polygon)' | 'KNC (Polygon)' | 'CRV (Polygon)' | 'BAL (Polygon)' | 'GHST (Polygon)' | 'vGHST (Polygon)' | 'Frax Share (Polygon)' | 'SAND (Polygon)' | 'Compounding Aave MATIC (Polygon)' | 'Compounding Aave ETH (Polygon)' | 'Compounding Aave AAVE (Polygon)' | 'Compounding Aave WBTC (Polygon)' | 'WETH (Fantom)' | 'WFTM (Fantom)' | 'LINK (Fantom)' | 'WBTC (Fantom)' | 'SUSHI (Fantom)' | 'AAVE (Fantom)' | 'mooBIFI (Fantom)' | 'xBOO (Fantom)' | 'Yearn vault WFTM (Fantom)' | 'Yearn vault BTC (Fantom)' | 'Yearn vault ETH (Fantom)' | 'Yearn vault YFI (Fantom)' | 'WBTC (Avalanche)' | 'WETH (Avalanche)' | 'WAVAX (Avalanche)' | 'Beefy Aave AVAX (Avalanche)' | 'MOVR (Moonriver)' | 'WETH (Gnosis Chain)' | 'GNO (Gnosis Chain)' | 'WETH (Arbitrum)' | 'WBTC (Arbitrum)' | 'WETH (Optimism)' | 'WBTC (Optimism)' | 'OP (Optimism)' | 'Beefy Aave ETH (Optimism)' | 'Beefy Aave BTC (Optimism)' | 'CAKE (BNB)' | 'BNB (BNB)' | 'DODO (BNB)' | 'METIS (Metis)' | 'WETH (Metis)' | 'WBTC (Metis)' | 'm.WBTC (Metis)' | 'Yearn WETH (Ethereum)' | 'Yearn LINK (Ethereum)' | 'WBTC (Ethereum)' | 'WETH (Ethereum)' | 'StakeDAO Curve ETH/stETH (Eth)' | 'Yearn Curve ETH/stETH (Ethereum)' | 'MAI DAI Arrakis Polygon' | 'Wrapped Staked ETH (Optimism)' | 'Yearn vault ETH (Optimism)' | 'Beefy stETH Curve (Optimism)' | 'Beefy stETH Curve (Arbitrum)' | 'StakeDAO Curve ETH/stETH Perf (Eth)' | 'Beefy stETH Convex Perf (Eth)' | 'Curve (Eth)' | 'Arb (Arbitrum)' | 'WETH-I (Polygon)' | 'WBTC-I (Polygon)' | 'cbEth (Eth)' | 'stEth (Eth)' | 'LDO (Eth)';
|
|
9
10
|
export type VaultShortName = 'aave' | 'avax' | 'avaxweth' | 'avaxwbtc' | 'bal' | 'bal-old' | 'beefy-aave-avax' | 'beefy-aave-dai' | 'beefy-aave-weth' | 'beefy-aave-wbtc' | 'beefy-bifi' | 'beefy-scream-dai' | 'beefy-scream-eth' | 'beefy-scream-ftm' | 'beefy-scream-link' | 'beefy-scream-wbtc' | 'beefy-spooky-btc-ftm' | 'beefy-spooky-eth-ftm' | 'btc' | 'btc_old' | 'cake' | 'camaave' | 'camdai' | 'camwbtc' | 'camweth' | 'camwmatic' | 'crv' | 'cxada' | 'cxdoge' | 'cxeth' | 'dquick' | 'dquick-old' | 'eth' | 'ftm' | 'ftmweth' | 'fxs' | 'ghst' | 'gno' | 'link' | 'matic' | 'moo-solar-eth-usdc' | 'moo-solar-movr-usdc' | 'movr' | 'one' | 'sdam3crv' | 'sdav3crv' | 'sushi' | 'vghst' | 'wbtc' | 'wbnb' | 'weth' | 'weth-old' | 'yveth' | 'yvlink' | 'yvcrv-eth-steth' | 'yvwdai' | 'yvwftm' | 'yvwbtc' | 'yvyfi' | 'celsius' | 'sand' | 'stake-dao-crv-eth-steth' | 'wmatic' | 'xboo' | 'dodo' | 'xxdai' | 'xxlink' | 'op' | 'metis' | 'mwbtc' | 'knc' | 'xSMVT' | 'GLMVT' | 'LSMMVT' | 'STMMVT' | 'maidai' | 'yvweth' | 'wsteth' | 'beefy-eth-steth-crv' | 'stmatic' | 'gdai' | 'maticx' | 'yvcurve-steth-f-perf' | 'stake-dao-crv-eth-steth-perf' | 'beefy-eth-steth-crv-perf' | 'arb' | 'weth-i' | 'wbtc-i' | 'cbeth' | 'steth' | 'ldo';
|
|
10
11
|
export type VaultContractAbiV1 = typeof QiStablecoin__factory.abi | typeof Erc20Stablecoin__factory.abi | typeof Erc20QiStablecoinwbtc__factory.abi | typeof Erc20QiStablecoincamwbtc__factory.abi | typeof CrosschainQiStablecoin__factory.abi | typeof CrosschainNativeQiStablecoin__factory.abi | typeof CrosschainQiStablecoinV2__factory.abi | typeof CrosschainQiStablecoinSlim__factory.abi | typeof CrosschainQiStablecoinSlimV2__factory.abi | typeof CrosschainQiStablecoinwbtc__factory.abi;
|
|
@@ -15,7 +16,6 @@ export declare enum FRONTEND {
|
|
|
15
16
|
MANHATTAN = 1,
|
|
16
17
|
STELLASWAP = 2
|
|
17
18
|
}
|
|
18
|
-
export type PLATFORM = 'Beefy' | 'Yearn' | 'Curve' | 'AaveV2' | 'AaveV3' | 'Balancer' | 'Lido' | 'Arrakis' | 'QuickSwap' | 'Gains' | 'GotchiVault' | 'Stader' | 'StakeDAO' | 'Tetu' | 'Spookyswap' | 'Convex';
|
|
19
19
|
export interface COLLATERAL {
|
|
20
20
|
aaveId?: string;
|
|
21
21
|
connect(address: string, signerOrProvider: Signer | Provider): QiStablecoin | Erc20Stablecoin | Erc20QiStablecoinwbtc | Erc20QiStablecoincamwbtc | CrosschainQiStablecoin | CrosschainNativeQiStablecoin | CrosschainQiStablecoinV2 | CrosschainQiStablecoinSlim | CrosschainQiStablecoinSlimV2 | CrosschainQiStablecoinwbtc;
|
|
@@ -6475,7 +6475,7 @@ declare const MAINNET_COLLATERALS: ({
|
|
|
6475
6475
|
frontend: FRONTEND.MAI;
|
|
6476
6476
|
version: 2;
|
|
6477
6477
|
snapshotName: "Yearn Curve ETH/stETH (Ethereum)";
|
|
6478
|
-
underlyingIds: ("weth" | "lido-staked-ether"
|
|
6478
|
+
underlyingIds: ("yearn-finance" | "weth" | "lido-staked-ether")[];
|
|
6479
6479
|
platform: ("Yearn" | "Curve")[];
|
|
6480
6480
|
addedAt: number;
|
|
6481
6481
|
} | {
|
|
@@ -8081,7 +8081,7 @@ declare const MAINNET_COLLATERALS: ({
|
|
|
8081
8081
|
frontend: FRONTEND.MAI;
|
|
8082
8082
|
version: 2;
|
|
8083
8083
|
snapshotName: "Yearn WETH (Ethereum)";
|
|
8084
|
-
underlyingIds: ("
|
|
8084
|
+
underlyingIds: ("yearn-finance" | "weth")[];
|
|
8085
8085
|
platform: "Yearn"[];
|
|
8086
8086
|
addedAt: number;
|
|
8087
8087
|
deprecated?: undefined;
|
|
@@ -11295,7 +11295,7 @@ declare const MAINNET_COLLATERALS: ({
|
|
|
11295
11295
|
frontend: FRONTEND.MAI;
|
|
11296
11296
|
version: 2;
|
|
11297
11297
|
snapshotName: "Yearn Curve ETH/stETH (Ethereum)";
|
|
11298
|
-
underlyingIds: ("weth" | "lido-staked-ether"
|
|
11298
|
+
underlyingIds: ("yearn-finance" | "weth" | "lido-staked-ether")[];
|
|
11299
11299
|
platform: ("Yearn" | "Curve")[];
|
|
11300
11300
|
addedAt: number;
|
|
11301
11301
|
deprecated?: undefined;
|
|
@@ -14510,7 +14510,7 @@ declare const MAINNET_COLLATERALS: ({
|
|
|
14510
14510
|
version: 2;
|
|
14511
14511
|
snapshotName: "Beefy stETH Convex Perf (Eth)";
|
|
14512
14512
|
underlyingIds: ("weth" | "lido-staked-ether")[];
|
|
14513
|
-
platform: ("
|
|
14513
|
+
platform: ("Beefy" | "Lido" | "Convex")[];
|
|
14514
14514
|
addedAt: number;
|
|
14515
14515
|
deprecated?: undefined;
|
|
14516
14516
|
} | {
|
|
@@ -26895,7 +26895,7 @@ declare const FANTOM_COLLATERALS: ({
|
|
|
26895
26895
|
frontend: FRONTEND.MAI;
|
|
26896
26896
|
version: 1;
|
|
26897
26897
|
snapshotName: "Yearn vault ETH (Fantom)";
|
|
26898
|
-
underlyingIds: ("
|
|
26898
|
+
underlyingIds: ("yearn-finance" | "weth")[];
|
|
26899
26899
|
platform: "Yearn"[];
|
|
26900
26900
|
addedAt: number;
|
|
26901
26901
|
native?: undefined;
|
|
@@ -56443,7 +56443,7 @@ declare const ARBITRUM_COLLATERALS: ({
|
|
|
56443
56443
|
}];
|
|
56444
56444
|
version: 2;
|
|
56445
56445
|
fallbackUnderlyingAddress: string;
|
|
56446
|
-
underlyingIds: ("
|
|
56446
|
+
underlyingIds: ("gns" | "daidai")[];
|
|
56447
56447
|
platform: "Gains"[];
|
|
56448
56448
|
addedAt: number;
|
|
56449
56449
|
deprecated?: undefined;
|
|
@@ -59659,7 +59659,7 @@ declare const ARBITRUM_COLLATERALS: ({
|
|
|
59659
59659
|
version: 2;
|
|
59660
59660
|
snapshotName: "Beefy stETH Curve (Arbitrum)";
|
|
59661
59661
|
underlyingIds: ("weth" | "lido-staked-ether")[];
|
|
59662
|
-
platform: ("
|
|
59662
|
+
platform: ("Beefy" | "Curve" | "Lido")[];
|
|
59663
59663
|
addedAt: number;
|
|
59664
59664
|
deprecated?: undefined;
|
|
59665
59665
|
} | {
|
|
@@ -74874,7 +74874,7 @@ declare const OPTIMISM_COLLATERALS: ({
|
|
|
74874
74874
|
version: 2;
|
|
74875
74875
|
snapshotName: "Beefy stETH Curve (Optimism)";
|
|
74876
74876
|
underlyingIds: ("weth" | "lido-staked-ether")[];
|
|
74877
|
-
platform: ("
|
|
74877
|
+
platform: ("Beefy" | "Curve" | "Lido")[];
|
|
74878
74878
|
addedAt: number;
|
|
74879
74879
|
} | {
|
|
74880
74880
|
shortName: "knc";
|
|
@@ -137399,7 +137399,7 @@ declare const MATIC_COLLATERALS: ({
|
|
|
137399
137399
|
}];
|
|
137400
137400
|
version: 2;
|
|
137401
137401
|
fallbackUnderlyingAddress: string;
|
|
137402
|
-
underlyingIds: ("
|
|
137402
|
+
underlyingIds: ("gns" | "daidai")[];
|
|
137403
137403
|
platform: "Gains"[];
|
|
137404
137404
|
addedAt: number;
|
|
137405
137405
|
subgraph?: undefined;
|