@qidao/sdk 5.1.3 → 5.1.4

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.
@@ -24,7 +24,7 @@ export declare class Token extends Currency {
24
24
  * Compares two currencies for equality
25
25
  */
26
26
  export declare function currencyEquals(currencyA: Currency, currencyB: Currency): boolean;
27
- export declare const WETH: {
27
+ export declare const WNATIVE: {
28
28
  1: Token;
29
29
  3: Token;
30
30
  4: Token;
@@ -6,6 +6,7 @@ import ERC20_STABLECOIN from './abis/toGenerate/erc20Stablecoin.json';
6
6
  import STABLE_QI_VAULT from './abis/toGenerate/stableQiVault.json';
7
7
  import { ChainId } from "./constants";
8
8
  export declare type VaultContractAbi = typeof ERC20_STABLECOIN | typeof STABLE_QI_VAULT;
9
+ export declare type VaultShortName = 'aave' | 'avax' | 'avaxweth' | 'avaxwbtc' | 'bal' | 'bal-old' | 'beefy-aave-avax' | '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' | 'yvwdai' | 'yvwftm' | 'yvwbtc' | 'yvyfi' | 'celsius' | 'sand' | 'wmatic' | 'xboo' | 'dodo' | 'xxdai' | 'xxlink' | 'op' | 'metis';
9
10
  export default interface COLLATERAL {
10
11
  aaveId?: string;
11
12
  connect(address: string, signerOrProvider: Signer | Provider): Erc20Stablecoin | Erc20QiStablecoinwbtc | Erc20QiStablecoincamwbtc | StableQiVault | CrosschainQiStablecoin | CrosschainNativeQiStablecoin | CrosschainQiStablecoinV2 | CrosschainQiStablecoinSlim | CrosschainQiStablecoinSlimV2 | CrosschainQiStablecoinwbtc;
@@ -17,6 +18,7 @@ export default interface COLLATERAL {
17
18
  subgraph?: string;
18
19
  token: Token;
19
20
  vaultAddress: string;
21
+ shortName: VaultShortName;
20
22
  }
21
23
  export interface COLLATERAL_V2 extends COLLATERAL {
22
24
  contractAbi: VaultContractAbi;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.1.3",
4
+ "version": "5.1.4",
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",
@@ -27,7 +27,6 @@
27
27
  "dependencies": {
28
28
  "big.js": "5.2.2",
29
29
  "decimal.js-light": "2.5.1",
30
- "ethers": "5.6.9",
31
30
  "jsbi": "3.2.5",
32
31
  "tiny-invariant": "1.2.0",
33
32
  "tiny-warning": "1.0.3",
@@ -38,7 +37,8 @@
38
37
  "@ethersproject/contracts": "5.6.2",
39
38
  "@ethersproject/networks": "5.6.4",
40
39
  "@ethersproject/providers": "5.6.8",
41
- "@ethersproject/solidity": "5.6.1"
40
+ "@ethersproject/solidity": "5.6.1",
41
+ "ethers": "5.6.9"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@ethersproject/address": "5.6.1",
@@ -49,6 +49,7 @@
49
49
  "@typechain/ethers-v5": "10.1.0",
50
50
  "@types/big.js": "4.0.5",
51
51
  "@types/jest": "28.1.6",
52
+ "ethers": "5.6.9",
52
53
  "microbundle": "0.15.1",
53
54
  "typechain": "8.1.0",
54
55
  "typescript": "4.7.4"