@qidao/sdk 5.1.3 → 5.1.6
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/constants.d.ts +3 -0
- package/dist/src/entities/token.d.ts +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/tokens.d.ts +19 -0
- package/dist/src/vaultInfo.d.ts +3 -1
- package/package.json +4 -3
package/dist/src/constants.d.ts
CHANGED
|
@@ -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
|
|
27
|
+
export declare const WNATIVE: {
|
|
28
28
|
1: Token;
|
|
29
29
|
3: Token;
|
|
30
30
|
4: Token;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import JSBI from 'jsbi';
|
|
2
2
|
export { JSBI };
|
|
3
|
-
export
|
|
3
|
+
export * from './constants';
|
|
4
4
|
export * from './errors';
|
|
5
5
|
export * from './entities';
|
|
6
6
|
export * from './vaultInfo';
|
|
7
7
|
export * from './contracts';
|
|
8
|
+
export * from './tokens';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChainId } from "./constants";
|
|
2
|
+
import { Token } from "./entities";
|
|
3
|
+
declare type ChainTokenMap = {
|
|
4
|
+
readonly [chainId in ChainId]?: Token;
|
|
5
|
+
};
|
|
6
|
+
export declare const LDO: {
|
|
7
|
+
readonly [chainId in ChainId]?: Token;
|
|
8
|
+
};
|
|
9
|
+
export declare const METIS: {
|
|
10
|
+
readonly [chainId in ChainId]?: Token;
|
|
11
|
+
};
|
|
12
|
+
export declare const SD: {
|
|
13
|
+
readonly [chainId in ChainId]?: Token;
|
|
14
|
+
};
|
|
15
|
+
export declare const QI: {
|
|
16
|
+
readonly [chainId in ChainId]?: Token;
|
|
17
|
+
};
|
|
18
|
+
export declare const MAI: ChainTokenMap;
|
|
19
|
+
export {};
|
package/dist/src/vaultInfo.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ 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
|
|
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';
|
|
10
|
+
export interface COLLATERAL {
|
|
10
11
|
aaveId?: string;
|
|
11
12
|
connect(address: string, signerOrProvider: Signer | Provider): Erc20Stablecoin | Erc20QiStablecoinwbtc | Erc20QiStablecoincamwbtc | StableQiVault | CrosschainQiStablecoin | CrosschainNativeQiStablecoin | CrosschainQiStablecoinV2 | CrosschainQiStablecoinSlim | CrosschainQiStablecoinSlimV2 | CrosschainQiStablecoinwbtc;
|
|
12
13
|
chainId: ChainId;
|
|
@@ -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.
|
|
4
|
+
"version": "5.1.6",
|
|
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"
|