@qidao/sdk 5.1.23 → 5.1.26

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.
@@ -3,6 +3,7 @@ import { Signer } from 'ethers';
3
3
  import { CrosschainNativeQiStablecoin, CrosschainQiStablecoin, CrosschainQiStablecoinSlim, CrosschainQiStablecoinSlimV2, CrosschainQiStablecoinSlimV2__factory, CrosschainQiStablecoinV2, CrosschainQiStablecoinSlim__factory, CrosschainQiStablecoinV2__factory, CrosschainQiStablecoinwbtc, CrosschainQiStablecoin__factory, Erc20QiStablecoincamwbtc, Erc20QiStablecoinwbtc, Erc20Stablecoin, StableQiVault, StableQiVault__factory, CrosschainNativeQiStablecoin__factory, CrosschainQiStablecoinwbtc__factory, Erc20Stablecoin__factory, Erc20QiStablecoinwbtc__factory, Erc20QiStablecoincamwbtc__factory } from './contracts';
4
4
  import { Token } from './entities';
5
5
  import { ChainId } from './constants';
6
+ export declare 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)' | 'Yearn WETH (Ethereum)' | 'Yearn LINK (Ethereum)' | 'WBTC (Ethereum)' | 'WETH (Ethereum)' | 'StakeDAO Curve ETH/stETH (Eth)' | 'Yearn Curve ETH/stETH (Ethereum)';
6
7
  export declare 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' | 'knc' | 'xSMVT' | 'GLMVT' | 'LSMMVT' | 'STMMVT';
7
8
  declare type VaultContractAbi = typeof Erc20Stablecoin__factory.abi | typeof Erc20QiStablecoinwbtc__factory.abi | typeof Erc20QiStablecoincamwbtc__factory.abi | typeof StableQiVault__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;
8
9
  export declare enum FRONTEND {
@@ -27,11 +28,18 @@ export interface COLLATERAL {
27
28
  frontend: FRONTEND;
28
29
  version: 1;
29
30
  }
31
+ export interface GAUGE_VALID_COLLATERAL extends COLLATERAL {
32
+ snapshotName: SnapshotCanonicalChoiceName;
33
+ }
30
34
  export interface COLLATERAL_V2 extends Omit<COLLATERAL, 'version'> {
31
35
  version: 2;
32
36
  }
33
- export declare function isV2QiVault(collateral: COLLATERAL | COLLATERAL_V2): collateral is COLLATERAL_V2;
37
+ export interface GAUGE_VALID_COLLATERAL_V2 extends COLLATERAL_V2 {
38
+ snapshotName: SnapshotCanonicalChoiceName;
39
+ }
40
+ export declare function isV2QiVault(collateral: COLLATERAL | COLLATERAL_V2 | GAUGE_VALID_COLLATERAL | GAUGE_VALID_COLLATERAL_V2): collateral is COLLATERAL_V2 | GAUGE_VALID_COLLATERAL_V2;
41
+ export declare function isGaugeValid(collateral: COLLATERAL | COLLATERAL_V2 | GAUGE_VALID_COLLATERAL | GAUGE_VALID_COLLATERAL_V2): collateral is GAUGE_VALID_COLLATERAL | GAUGE_VALID_COLLATERAL_V2;
34
42
  export declare const COLLATERALS: {
35
- [chainId in ChainId]?: (COLLATERAL | COLLATERAL_V2)[];
43
+ [chainId in ChainId]?: (COLLATERAL | GAUGE_VALID_COLLATERAL | COLLATERAL_V2 | GAUGE_VALID_COLLATERAL_V2)[];
36
44
  };
37
45
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.1.23",
4
+ "version": "5.1.26",
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",