@qidao/sdk 5.1.14 → 5.1.16
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/vaultInfo.d.ts +7 -6
- package/package.json +3 -1
package/dist/src/vaultInfo.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Provider } from '@ethersproject/providers';
|
|
2
2
|
import { Signer } from 'ethers';
|
|
3
|
-
import { CrosschainNativeQiStablecoin, CrosschainQiStablecoin, CrosschainQiStablecoinSlim, CrosschainQiStablecoinSlimV2, CrosschainQiStablecoinV2, CrosschainQiStablecoinwbtc, Erc20QiStablecoincamwbtc, Erc20QiStablecoinwbtc, Erc20Stablecoin, StableQiVault } from './contracts';
|
|
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
|
-
import ERC20_STABLECOIN from './abis/toGenerate/erc20Stablecoin.json';
|
|
6
|
-
import STABLE_QI_VAULT from './abis/toGenerate/stableQiVault.json';
|
|
7
5
|
import { ChainId } from './constants';
|
|
8
|
-
export declare type VaultContractAbi = typeof ERC20_STABLECOIN | typeof STABLE_QI_VAULT;
|
|
9
6
|
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';
|
|
7
|
+
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;
|
|
10
8
|
export interface COLLATERAL {
|
|
11
9
|
aaveId?: string;
|
|
12
10
|
connect(address: string, signerOrProvider: Signer | Provider): Erc20Stablecoin | Erc20QiStablecoinwbtc | Erc20QiStablecoincamwbtc | StableQiVault | CrosschainQiStablecoin | CrosschainNativeQiStablecoin | CrosschainQiStablecoinV2 | CrosschainQiStablecoinSlim | CrosschainQiStablecoinSlimV2 | CrosschainQiStablecoinwbtc;
|
|
@@ -20,11 +18,14 @@ export interface COLLATERAL {
|
|
|
20
18
|
token: Token;
|
|
21
19
|
vaultAddress: string;
|
|
22
20
|
shortName: VaultShortName;
|
|
23
|
-
}
|
|
24
|
-
export interface COLLATERAL_V2 extends COLLATERAL {
|
|
25
21
|
contractAbi: VaultContractAbi;
|
|
22
|
+
version: 1;
|
|
23
|
+
}
|
|
24
|
+
export interface COLLATERAL_V2 extends Omit<COLLATERAL, 'version'> {
|
|
25
|
+
version: 2;
|
|
26
26
|
}
|
|
27
27
|
export declare function isV2QiVault(collateral: COLLATERAL | COLLATERAL_V2): collateral is COLLATERAL_V2;
|
|
28
28
|
export declare const COLLATERALS: {
|
|
29
29
|
[chainId in ChainId]?: (COLLATERAL | COLLATERAL_V2)[];
|
|
30
30
|
};
|
|
31
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qidao/sdk",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.16",
|
|
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",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"big.js": "5.2.2",
|
|
29
29
|
"decimal.js-light": "2.5.1",
|
|
30
30
|
"jsbi": "3.2.5",
|
|
31
|
+
"lodash": "^4.17.21",
|
|
31
32
|
"tiny-invariant": "1.2.0",
|
|
32
33
|
"tiny-warning": "1.0.3",
|
|
33
34
|
"toformat": "2.0.0"
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
"@typechain/ethers-v5": "10.1.0",
|
|
50
51
|
"@types/big.js": "4.0.5",
|
|
51
52
|
"@types/jest": "28.1.6",
|
|
53
|
+
"@types/lodash": "^4.14.185",
|
|
52
54
|
"ethers": "5.7.0",
|
|
53
55
|
"microbundle": "0.15.1",
|
|
54
56
|
"typechain": "8.1.0",
|