@qidao/sdk 5.1.2 → 5.1.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.
- 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/{src/constants.d.ts → constants.d.ts} +21 -0
- package/dist/src/{src/contracts → contracts}/CrosschainNativeQiStablecoin.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/CrosschainQiStablecoin.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/CrosschainQiStablecoinSlim.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/CrosschainQiStablecoinSlimV2.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/CrosschainQiStablecoinV2.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/CrosschainQiStablecoinwbtc.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/Erc20QiStablecoincamwbtc.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/Erc20QiStablecoinwbtc.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/Erc20Stablecoin.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/StableQiVault.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/common.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainNativeQiStablecoin__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinSlimV2__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinSlim__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinV2__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoin__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinwbtc__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/Erc20QiStablecoincamwbtc__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/Erc20QiStablecoinwbtc__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/Erc20Stablecoin__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/StableQiVault__factory.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/factories/index.d.ts +0 -0
- package/dist/src/{src/contracts → contracts}/index.d.ts +0 -0
- package/dist/src/{src/entities → entities}/currency.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/currencyAmount.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/fraction.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/index.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/percent.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/price.d.ts +0 -0
- package/dist/src/{src/entities → entities}/fractions/tokenAmount.d.ts +0 -0
- package/dist/src/{src/entities → entities}/index.d.ts +0 -0
- package/dist/src/{src/entities → entities}/token.d.ts +1 -1
- package/dist/src/{src/errors.d.ts → errors.d.ts} +0 -0
- package/dist/src/{src/index.d.ts → index.d.ts} +1 -1
- package/dist/src/{src/utils.d.ts → utils.d.ts} +0 -0
- package/dist/src/{src/vaultInfo.d.ts → vaultInfo.d.ts} +2 -0
- package/dist/{src/test → test}/fraction.test.d.ts +0 -0
- package/dist/{src/test → test}/token.test.d.ts +0 -0
- package/package.json +6 -4
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import JSBI from 'jsbi';
|
|
2
|
+
import { Token } from "./entities";
|
|
2
3
|
export declare type BigintIsh = JSBI | bigint | string;
|
|
3
4
|
export declare const FTM_ZAPPER_ADDRESS = "0xE2379CB4c4627E5e9dF459Ce08c2342C696C4c1f";
|
|
4
5
|
export declare const AVAX_ZAPPER_ADDRESS = "0x1d0a9E2c445EB8f99767eF289832637921e6F6a5";
|
|
@@ -67,3 +68,23 @@ export declare const SOLIDITY_TYPE_MAXIMA: {
|
|
|
67
68
|
uint8: JSBI;
|
|
68
69
|
uint256: JSBI;
|
|
69
70
|
};
|
|
71
|
+
export declare const MULTICALL_NETWORKS: {
|
|
72
|
+
[chainId in ChainId]: string;
|
|
73
|
+
};
|
|
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 {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/CrosschainNativeQiStablecoin__factory.d.ts
RENAMED
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinSlimV2__factory.d.ts
RENAMED
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinSlim__factory.d.ts
RENAMED
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinV2__factory.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/CrosschainQiStablecoinwbtc__factory.d.ts
RENAMED
|
File without changes
|
package/dist/src/{src/contracts → contracts}/factories/Erc20QiStablecoincamwbtc__factory.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
File without changes
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qidao/sdk",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.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",
|
|
8
8
|
"source": "./src/index.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
"require": "./dist/index.js",
|
|
11
|
-
"default": "./dist/index.modern.js"
|
|
11
|
+
"default": "./dist/index.modern.js",
|
|
12
|
+
"types": "./dist/src/index.d.ts"
|
|
12
13
|
},
|
|
13
14
|
"module": "./dist/index.module.js",
|
|
14
15
|
"unpkg": "./dist/index.umd.js",
|
|
@@ -26,7 +27,6 @@
|
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"big.js": "5.2.2",
|
|
28
29
|
"decimal.js-light": "2.5.1",
|
|
29
|
-
"ethers": "5.6.9",
|
|
30
30
|
"jsbi": "3.2.5",
|
|
31
31
|
"tiny-invariant": "1.2.0",
|
|
32
32
|
"tiny-warning": "1.0.3",
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
"@ethersproject/contracts": "5.6.2",
|
|
38
38
|
"@ethersproject/networks": "5.6.4",
|
|
39
39
|
"@ethersproject/providers": "5.6.8",
|
|
40
|
-
"@ethersproject/solidity": "5.6.1"
|
|
40
|
+
"@ethersproject/solidity": "5.6.1",
|
|
41
|
+
"ethers": "5.6.9"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@ethersproject/address": "5.6.1",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"@typechain/ethers-v5": "10.1.0",
|
|
49
50
|
"@types/big.js": "4.0.5",
|
|
50
51
|
"@types/jest": "28.1.6",
|
|
52
|
+
"ethers": "5.6.9",
|
|
51
53
|
"microbundle": "0.15.1",
|
|
52
54
|
"typechain": "8.1.0",
|
|
53
55
|
"typescript": "4.7.4"
|