@qidao/sdk 5.3.29 → 5.3.32-beta.5

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.
@@ -2,13 +2,13 @@ import { Provider } from '@ethersproject/providers';
2
2
  import { Signer } from 'ethers';
3
3
  import { crosschainNativeQiStablecoin, crosschainQiStablecoin, crosschainQiStablecoinSlim, crosschainQiStablecoinSlimV2, crosschainQiStablecoinV2, crosschainQiStablecoinwbtc, erc20QiStablecoincamwbtc, erc20QiStablecoinwbtc, erc20Stablecoin, qiStablecoin, stableQiVault } from './abis';
4
4
  import { ChainId, TOKEN_DESCRIPTIONS } from './constants';
5
- import { CrosschainNativeQiStablecoin, CrosschainNativeQiStablecoin__factory, CrosschainQiStablecoin, CrosschainQiStablecoin__factory, CrosschainQiStablecoinSlim, CrosschainQiStablecoinSlim__factory, CrosschainQiStablecoinSlimV2, CrosschainQiStablecoinSlimV2__factory, CrosschainQiStablecoinV2, CrosschainQiStablecoinV2__factory, CrosschainQiStablecoinwbtc, CrosschainQiStablecoinwbtc__factory, Erc20QiStablecoincamwbtc, Erc20QiStablecoincamwbtc__factory, Erc20QiStablecoinwbtc, Erc20QiStablecoinwbtc__factory, Erc20Stablecoin, Erc20Stablecoin__factory, GraceQiVault, GraceQiVault__factory, StableQiVault, StableQiVault__factory } from './contracts';
5
+ import { CrosschainNativeQiStablecoin, CrosschainNativeQiStablecoin__factory, CrosschainQiStablecoin, CrosschainQiStablecoin__factory, CrosschainQiStablecoinSlim, CrosschainQiStablecoinSlim__factory, CrosschainQiStablecoinSlimV2, CrosschainQiStablecoinSlimV2__factory, CrosschainQiStablecoinV2, CrosschainQiStablecoinV2__factory, CrosschainQiStablecoinwbtc, CrosschainQiStablecoinwbtc__factory, Erc20QiStablecoincamwbtc, Erc20QiStablecoincamwbtc__factory, Erc20QiStablecoinwbtc, Erc20QiStablecoinwbtc__factory, Erc20Stablecoin, Erc20Stablecoin__factory, GraceQiVault, GraceQiVault__factory, GraceQiVaultOld, GraceQiVaultOld__factory, StableQiVault, StableQiVault__factory } from './contracts';
6
6
  import { QiStablecoin__factory } from './contracts/factories/QiStablecoin__factory';
7
7
  import { QiStablecoin } from './contracts/QiStablecoin';
8
8
  import { Token } from './entities';
9
- import { PLATFORM } from "./ProtocolInfo";
10
- 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)' | 'WETH (ZKEVM)' | 'WMATIC (ZKEVM)' | 'cbEth (Base)' | 'WETH (Base)' | 'Savings DAI (Gnosis Chain)' | 'Wrapped Staked ETH (Linea)' | 'Wrapped Staked ETH (Base)' | 'WBTC (Linea)' | 'Staked Frax Ether (Fraxtal)' | 'Aero (Base)' | 'MetaPool ETH (Linea)' | 'ezETH (Base)' | 'VeAero (Base)' | 'cbBTC (Base)';
11
- 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' | 'sdai' | 'sfrxETH' | 'aero' | 'mpETH' | 'ezeth' | 'dai' | 'usdc' | 'veaero' | 'cbbtc';
9
+ import { PLATFORM } from './ProtocolInfo';
10
+ 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)' | 'USDC (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)' | 'WETH (ZKEVM)' | 'WMATIC (ZKEVM)' | 'cbEth (Base)' | 'WETH (Base)' | 'Savings DAI (Gnosis Chain)' | 'Wrapped Staked ETH (Linea)' | 'Wrapped Staked ETH (Base)' | 'WBTC (Linea)' | 'Staked Frax Ether (Fraxtal)' | 'Aero (Base)' | 'MetaPool ETH (Linea)' | 'ezETH (Base)' | 'VeAero (Base)' | 'cbBTC (Base)' | 'LBTC (Base)';
11
+ 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' | 'sdai' | 'sfrxETH' | 'aero' | 'mpETH' | 'ezeth' | 'dai' | 'usdc' | 'veaero' | 'veaero-old' | 'veaero-outdated-claim' | 'veaero-outdated-ownership' | 'veaero-no-fund-rescue' | 'cbbtc' | 'lbtc';
12
12
  export type RawVaultContractAbiV1 = typeof qiStablecoin | typeof erc20Stablecoin | typeof erc20QiStablecoinwbtc | typeof erc20QiStablecoincamwbtc | typeof crosschainQiStablecoin | typeof crosschainNativeQiStablecoin | typeof crosschainQiStablecoinV2 | typeof crosschainQiStablecoinSlim | typeof crosschainQiStablecoinSlimV2 | typeof crosschainQiStablecoinwbtc;
13
13
  export type VaultContractDiscriminatorV1 = 'QiStablecoin' | 'Erc20Stablecoin' | 'Erc20QiStablecoinwbtc' | 'Erc20QiStablecoincamwbtc' | 'CrosschainQiStablecoin' | 'CrosschainNativeQiStablecoin' | 'CrosschainQiStablecoinV2' | 'CrosschainQiStablecoinSlim' | 'CrosschainQiStablecoinSlimV2' | 'CrosschainQiStablecoinwbtc';
14
14
  export type VaultContractDiscriminatorV2 = 'StableQiVault' | 'GraceQiVault';
@@ -46,7 +46,7 @@ export interface GAUGE_VALID_COLLATERAL extends COLLATERAL {
46
46
  }
47
47
  export interface COLLATERAL_V2 extends Omit<COLLATERAL, 'version' | 'connect' | 'contractAbi' | 'rawAbi' | 'discriminator'> {
48
48
  version: 2;
49
- connect(address: string, signerOrProvider: Signer | Provider): StableQiVault | GraceQiVault;
49
+ connect(address: string, signerOrProvider: Signer | Provider): StableQiVault | GraceQiVault | GraceQiVaultOld;
50
50
  discriminator: VaultContractDiscriminatorV2;
51
51
  }
52
52
  export interface GAUGE_VALID_COLLATERAL_V2 extends COLLATERAL_V2 {
@@ -2714,6 +2714,66 @@ declare const BASE_COLLATERALS: ({
2714
2714
  platform: "Aerodrome"[];
2715
2715
  addedAt: number;
2716
2716
  deprecated: false;
2717
+ } | {
2718
+ shortName: "veaero-no-fund-rescue";
2719
+ vaultAddress: string;
2720
+ chainId: ChainId.BASE;
2721
+ token: Token;
2722
+ connect: typeof GraceQiVault__factory.connect;
2723
+ discriminator: "GraceQiVault";
2724
+ minimumCDR: number;
2725
+ frontend: FRONTEND.MAI;
2726
+ version: 2;
2727
+ snapshotName: "VeAero (Base)";
2728
+ underlyingIds: "aerodrome-finance"[];
2729
+ platform: "Aerodrome"[];
2730
+ addedAt: number;
2731
+ deprecated: false;
2732
+ } | {
2733
+ shortName: "veaero-outdated-ownership";
2734
+ vaultAddress: string;
2735
+ chainId: ChainId.BASE;
2736
+ token: Token;
2737
+ connect: typeof GraceQiVault__factory.connect;
2738
+ discriminator: "GraceQiVault";
2739
+ minimumCDR: number;
2740
+ frontend: FRONTEND.MAI;
2741
+ version: 2;
2742
+ snapshotName: "VeAero (Base)";
2743
+ underlyingIds: "aerodrome-finance"[];
2744
+ platform: "Aerodrome"[];
2745
+ addedAt: number;
2746
+ deprecated: false;
2747
+ } | {
2748
+ shortName: "veaero-outdated-claim";
2749
+ vaultAddress: string;
2750
+ chainId: ChainId.BASE;
2751
+ token: Token;
2752
+ connect: typeof GraceQiVaultOld__factory.connect;
2753
+ discriminator: "GraceQiVault";
2754
+ minimumCDR: number;
2755
+ frontend: FRONTEND.MAI;
2756
+ version: 2;
2757
+ snapshotName: "VeAero (Base)";
2758
+ underlyingIds: "aerodrome-finance"[];
2759
+ platform: "Aerodrome"[];
2760
+ addedAt: number;
2761
+ deprecated: false;
2762
+ } | {
2763
+ shortName: "veaero-old";
2764
+ vaultAddress: string;
2765
+ chainId: ChainId.BASE;
2766
+ token: Token;
2767
+ connect: typeof GraceQiVaultOld__factory.connect;
2768
+ discriminator: "GraceQiVault";
2769
+ minimumCDR: number;
2770
+ frontend: FRONTEND.MAI;
2771
+ version: 2;
2772
+ snapshotName: "VeAero (Base)";
2773
+ underlyingIds: "aerodrome-finance"[];
2774
+ platform: "Aerodrome"[];
2775
+ addedAt: number;
2776
+ deprecated: false;
2717
2777
  } | {
2718
2778
  shortName: "cbbtc";
2719
2779
  vaultAddress: string;
@@ -2729,6 +2789,21 @@ declare const BASE_COLLATERALS: ({
2729
2789
  addedAt: number;
2730
2790
  deprecated: false;
2731
2791
  platform?: undefined;
2792
+ } | {
2793
+ shortName: "lbtc";
2794
+ vaultAddress: string;
2795
+ chainId: ChainId.BASE;
2796
+ token: Token;
2797
+ connect: typeof StableQiVault__factory.connect;
2798
+ discriminator: "StableQiVault";
2799
+ minimumCDR: number;
2800
+ frontend: FRONTEND.MAI;
2801
+ version: 2;
2802
+ snapshotName: "LBTC (Base)";
2803
+ underlyingIds: never[];
2804
+ addedAt: number;
2805
+ deprecated: false;
2806
+ platform?: undefined;
2732
2807
  })[];
2733
2808
  declare const LINEA_COLLATERALS: ({
2734
2809
  shortName: "wsteth";
@@ -2923,5 +2998,19 @@ export declare const PSM: {
2923
2998
  readonly connect: () => never;
2924
2999
  readonly underlyingIds: readonly ["beefy-finance", "compound"];
2925
3000
  }];
3001
+ readonly 1088: readonly [{
3002
+ readonly chainId: ChainId.METIS;
3003
+ readonly vaultAddress: "0x7A802AAB2185480DfE16d936462FD3BeCcEECB00";
3004
+ readonly token: Token;
3005
+ readonly addedAt: 1750640400;
3006
+ readonly deprecated: false;
3007
+ readonly discriminator: "StableQiVault";
3008
+ readonly frontend: FRONTEND.MAI;
3009
+ readonly minimumCDR: 200;
3010
+ readonly shortName: "usdc";
3011
+ readonly version: 2;
3012
+ readonly connect: () => never;
3013
+ readonly underlyingIds: readonly [];
3014
+ }];
2926
3015
  };
2927
3016
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.3.29",
4
+ "version": "5.3.32-beta.5",
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",
@@ -20,7 +20,7 @@
20
20
  "repository": "https://github.com/royalaid/sushiswap-sdk",
21
21
  "keywords": [],
22
22
  "scripts": {
23
- "checkTokens": "node src/scripts/validateCoinGeckoFallbackTokens.mjs",
23
+ "checkTokens": "bun run src/scripts/validateCoinGeckoFallbackTokens.ts",
24
24
  "fetchTokenDescriptions": "node src/scripts/fetchTokenDescriptions.mjs",
25
25
  "build": "typechain --discriminate-types --target ethers-v5 --out-dir src/contracts \"src/abis/toGenerate/**/*.json\" && microbundle",
26
26
  "prepack": "typechain --discriminate-types --target ethers-v5 --out-dir src/contracts \"src/abis/toGenerate/**/*.json\" && microbundle",