@qidao/sdk 5.3.2 → 5.3.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.
@@ -12,6 +12,7 @@ export declare const MAINNET_ZAPPER = "0x5AA5079A8037f9D050D838AEFCe10bA7B8b8b00
12
12
  export declare const BASE_THREE_STEP_ZAPPER = "0x70dD6dEf31E7285EcA5d2341FD9136A786c29422";
13
13
  export declare const XDAI_THREE_STEP_ZAPPER = "0xb9e1b02e3a3a58b2c48e5ea3d830007e9d6d2e0b";
14
14
  export declare const LINEA_THREE_STEP_ZAPPER = "0xD7Acff6De10A71710C05132eB771e96630Ae132b";
15
+ export declare const SCROLL_THREE_STEP_ZAPPER = "0xD7Acff6De10A71710C05132eB771e96630Ae132b";
15
16
  export declare enum ChainId {
16
17
  MAINNET = 1,
17
18
  GÖRLI = 5,
@@ -49,7 +50,8 @@ export declare enum ChainId {
49
50
  DOGECHAIN = 2000,
50
51
  ZKEVM = 1101,
51
52
  BASE = 8453,
52
- LINEA = 59144
53
+ LINEA = 59144,
54
+ SCROLL = 534352
53
55
  }
54
56
  export declare enum TradeType {
55
57
  EXACT_INPUT = 0,
@@ -317,8 +319,10 @@ export declare const ZKEVM_WETH_ADDRESS = "0x4F9A0e7FD2Bf6067db6994CF12E4495Df93
317
319
  export declare const ZKEVM_WMATIC_ADDRESS = "0xa2036f0538221a77A3937F1379699f44945018d0";
318
320
  export declare const BASE_WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
319
321
  export declare const BASE_CBETH_ADDRESS = "0x2Ae3F1Ec7F1F5012CFEab0185bfc7aa3cf0DEc22";
322
+ export declare const BASE_WSTETH_ADDRESS = "0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452";
320
323
  export declare const XDAI_SDAI_ADDRESS = "0xaf204776c7245bF4147c2612BF6e5972Ee483701";
321
324
  export declare const LINEA_WSTETH_ADDRESS = "0xB5beDd42000b71FddE22D3eE8a79Bd49A568fC8F";
325
+ export declare const LINEA_WBTC_ADDRESS = "0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4";
322
326
  export declare const CAMWMATIC_VAULT_ADDRESS = "0x88d84a85A87ED12B8f098e8953B322fF789fCD1a";
323
327
  export declare const CAMWETH_VAULT_ADDRESS = "0x11A33631a5B5349AF3F165d2B7901A4d67e561ad";
324
328
  export declare const CAMAAVE_VAULT_ADDRESS = "0x578375c3af7d61586c2C3A7BA87d2eEd640EFA40";
@@ -365,5 +369,7 @@ export declare const ZKEVM_WETH_VAULT_ADDRESS = "0xdb1103a8F51823f5a2439c52C0692
365
369
  export declare const ZKEVM_WMATIC_VAULT_ADDRESS = "0x8AB01c5Ee3422099156ab151eecB83c095626599";
366
370
  export declare const BASE_WETH_VAULT_ADDRESS = "0x8D6CeBD76f18E1558D4DB88138e2DeFB3909fAD6";
367
371
  export declare const BASE_CBETH_VAULT_ADDRESS = "0x7333fd58d8D73a8e5FC1a16C8037ADa4f580FA2B";
372
+ export declare const BASE_WSTETH_VAULT_ADDRESS = "0x654a31Ba7D714cfCab19b17D0066171c1A292349";
368
373
  export declare const XDAI_SDAI_VAULT_ADDRESS = "0x79AFAD49e968E7bEA7a23933E294a94E33E60158";
369
374
  export declare const LINEA_WSTETH_VAULT_ADDRESS = "0x759D0e8623C5028ED4D447dB25Bbe789FD07A43D";
375
+ export declare const LINEA_WBTC_VAULT_ADDRESS = "0x8AB01c5Ee3422099156ab151eecB83c095626599";
@@ -70,6 +70,7 @@ export declare class Currency {
70
70
  1101: Currency;
71
71
  8453: Currency;
72
72
  59144: Currency;
73
+ 534352: Currency;
73
74
  };
74
75
  /**
75
76
  * Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`.
@@ -62,4 +62,5 @@ export declare const WNATIVE: {
62
62
  1101: Token;
63
63
  8453: Token;
64
64
  59144: Token;
65
+ 534352: Token;
65
66
  };
@@ -7,7 +7,7 @@ import { QiStablecoin } from './contracts/QiStablecoin';
7
7
  import { Token } from './entities';
8
8
  import { ChainId, TOKEN_DESCRIPTIONS } from './constants';
9
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)';
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)';
11
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';
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';
@@ -2565,8 +2565,23 @@ declare const BASE_COLLATERALS: ({
2565
2565
  platform: "Coinbase"[];
2566
2566
  addedAt: number;
2567
2567
  deprecated: false;
2568
+ } | {
2569
+ shortName: "wsteth";
2570
+ vaultAddress: string;
2571
+ chainId: ChainId.BASE;
2572
+ token: Token;
2573
+ connect: typeof StableQiVault__factory.connect;
2574
+ discriminator: "StableQiVault";
2575
+ minimumCDR: number;
2576
+ frontend: FRONTEND.MAI;
2577
+ version: 2;
2578
+ snapshotName: "Wrapped Staked ETH (Base)";
2579
+ underlyingIds: "coinbase-wrapped-staked-eth"[];
2580
+ platform: "Lido"[];
2581
+ addedAt: number;
2582
+ deprecated: false;
2568
2583
  })[];
2569
- declare const LINEA_COLLATERALS: {
2584
+ declare const LINEA_COLLATERALS: ({
2570
2585
  shortName: "wsteth";
2571
2586
  vaultAddress: string;
2572
2587
  chainId: ChainId.LINEA;
@@ -2581,7 +2596,23 @@ declare const LINEA_COLLATERALS: {
2581
2596
  platform: "Lido"[];
2582
2597
  addedAt: number;
2583
2598
  deprecated: false;
2584
- }[];
2599
+ } | {
2600
+ shortName: "wbtc";
2601
+ vaultAddress: string;
2602
+ chainId: ChainId.LINEA;
2603
+ token: Token;
2604
+ connect: typeof StableQiVault__factory.connect;
2605
+ discriminator: "StableQiVault";
2606
+ minimumCDR: number;
2607
+ frontend: FRONTEND.MAI;
2608
+ version: 2;
2609
+ snapshotName: "WBTC (Linea)";
2610
+ underlyingIds: "wrapped-bitcoinwbtc"[];
2611
+ addedAt: number;
2612
+ deprecated: false;
2613
+ platform?: undefined;
2614
+ })[];
2615
+ declare const SCROLL_COLLATERALS: never[];
2585
2616
  declare const EMPTY_COLLATERALS: never[];
2586
2617
  export declare const COLLATERALS: {
2587
2618
  [ChainId.MAINNET]: typeof MAINNET_COLLATERALS;
@@ -2622,5 +2653,6 @@ export declare const COLLATERALS: {
2622
2653
  [ChainId.ZKEVM]: typeof EMPTY_COLLATERALS;
2623
2654
  [ChainId.BASE]: typeof BASE_COLLATERALS;
2624
2655
  [ChainId.LINEA]: typeof LINEA_COLLATERALS;
2656
+ [ChainId.SCROLL]: typeof SCROLL_COLLATERALS;
2625
2657
  };
2626
2658
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.3.2",
4
+ "version": "5.3.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",
@@ -54,7 +54,7 @@
54
54
  "@types/jest": "28.1.6",
55
55
  "@types/lodash": "^4.14.185",
56
56
  "ethers": "5.7.0",
57
- "isomorphic-fetch":" ^3.0.0",
57
+ "isomorphic-fetch": " ^3.0.0",
58
58
  "microbundle": "^0.15.1",
59
59
  "p-queue": "^7.3.0",
60
60
  "typechain": "8.1.0",