@qidao/sdk 5.1.5 → 5.1.10
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 +0 -18
- package/dist/src/index.d.ts +1 -0
- package/dist/src/tokens.d.ts +19 -0
- package/dist/src/vaultInfo.d.ts +2 -2
- package/package.json +13 -13
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import JSBI from 'jsbi';
|
|
2
|
-
import { Token } from "./entities";
|
|
3
2
|
export declare type BigintIsh = JSBI | bigint | string;
|
|
4
3
|
export declare const FTM_ZAPPER_ADDRESS = "0xE2379CB4c4627E5e9dF459Ce08c2342C696C4c1f";
|
|
5
4
|
export declare const AVAX_ZAPPER_ADDRESS = "0x1d0a9E2c445EB8f99767eF289832637921e6F6a5";
|
|
@@ -71,20 +70,3 @@ export declare const SOLIDITY_TYPE_MAXIMA: {
|
|
|
71
70
|
export declare const MULTICALL_NETWORKS: {
|
|
72
71
|
[chainId in ChainId]: string;
|
|
73
72
|
};
|
|
74
|
-
declare type ChainTokenMap = {
|
|
75
|
-
readonly [chainId in ChainId]?: Token;
|
|
76
|
-
};
|
|
77
|
-
export declare const QI: {
|
|
78
|
-
readonly [chainId in ChainId]?: Token;
|
|
79
|
-
};
|
|
80
|
-
export declare const LDO: {
|
|
81
|
-
readonly [chainId in ChainId]?: Token;
|
|
82
|
-
};
|
|
83
|
-
export declare const METIS: {
|
|
84
|
-
readonly [chainId in ChainId]?: Token;
|
|
85
|
-
};
|
|
86
|
-
export declare const SD: {
|
|
87
|
-
readonly [chainId in ChainId]?: Token;
|
|
88
|
-
};
|
|
89
|
-
export declare const MAI: ChainTokenMap;
|
|
90
|
-
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -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,8 +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 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
|
|
9
|
+
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' | 'yvwdai' | 'yvwftm' | 'yvwbtc' | 'yvyfi' | 'celsius' | 'sand' | 'wmatic' | 'xboo' | 'dodo' | 'xxdai' | 'xxlink' | 'op' | 'metis';
|
|
10
|
+
export interface COLLATERAL {
|
|
11
11
|
aaveId?: string;
|
|
12
12
|
connect(address: string, signerOrProvider: Signer | Provider): Erc20Stablecoin | Erc20QiStablecoinwbtc | Erc20QiStablecoincamwbtc | StableQiVault | CrosschainQiStablecoin | CrosschainNativeQiStablecoin | CrosschainQiStablecoinV2 | CrosschainQiStablecoinSlim | CrosschainQiStablecoinSlimV2 | CrosschainQiStablecoinwbtc;
|
|
13
13
|
chainId: ChainId;
|
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.10",
|
|
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",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"toformat": "2.0.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ethersproject/address": "5.
|
|
37
|
-
"@ethersproject/contracts": "5.
|
|
38
|
-
"@ethersproject/networks": "5.
|
|
39
|
-
"@ethersproject/providers": "5.
|
|
40
|
-
"@ethersproject/solidity": "5.
|
|
41
|
-
"ethers": "5.
|
|
36
|
+
"@ethersproject/address": "5.7.0",
|
|
37
|
+
"@ethersproject/contracts": "5.7.0",
|
|
38
|
+
"@ethersproject/networks": "5.7.0",
|
|
39
|
+
"@ethersproject/providers": "5.7.0",
|
|
40
|
+
"@ethersproject/solidity": "5.7.0",
|
|
41
|
+
"ethers": "5.7.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ethersproject/address": "5.
|
|
45
|
-
"@ethersproject/contracts": "5.
|
|
46
|
-
"@ethersproject/networks": "5.
|
|
47
|
-
"@ethersproject/providers": "5.
|
|
48
|
-
"@ethersproject/solidity": "5.
|
|
44
|
+
"@ethersproject/address": "5.7.0",
|
|
45
|
+
"@ethersproject/contracts": "5.7.0",
|
|
46
|
+
"@ethersproject/networks": "5.7.0",
|
|
47
|
+
"@ethersproject/providers": "5.7.0",
|
|
48
|
+
"@ethersproject/solidity": "5.7.0",
|
|
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.
|
|
52
|
+
"ethers": "5.7.0",
|
|
53
53
|
"microbundle": "0.15.1",
|
|
54
54
|
"typechain": "8.1.0",
|
|
55
55
|
"typescript": "4.7.4"
|