@qidao/sdk 5.3.11 → 5.3.15
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/ZapMeta.d.ts +1 -1
- package/dist/src/constants.d.ts +4 -1
- package/dist/src/entities/currency.d.ts +2 -0
- package/dist/src/entities/token.d.ts +1 -0
- package/dist/src/vaultInfo.d.ts +17 -1
- package/dist/src/zapInfo.d.ts +1 -1
- package/package.json +1 -1
package/dist/src/ZapMeta.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface ScalingInfo {
|
|
|
8
8
|
priceScalingFactor?: ScalingDetails;
|
|
9
9
|
liquidationScalingFactor?: ScalingDetails;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export interface ZapMeta {
|
|
12
12
|
vaultType: 'YEARN' | 'BEEFY';
|
|
13
13
|
underlying: Token;
|
|
14
14
|
underlyingPriceSourceAddress: string;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -51,7 +51,8 @@ export declare enum ChainId {
|
|
|
51
51
|
ZKEVM = 1101,
|
|
52
52
|
BASE = 8453,
|
|
53
53
|
LINEA = 59144,
|
|
54
|
-
SCROLL = 534352
|
|
54
|
+
SCROLL = 534352,
|
|
55
|
+
FRAXTAL = 252
|
|
55
56
|
}
|
|
56
57
|
export declare enum TradeType {
|
|
57
58
|
EXACT_INPUT = 0,
|
|
@@ -324,6 +325,7 @@ export declare const XDAI_SDAI_ADDRESS = "0xaf204776c7245bF4147c2612BF6e5972Ee48
|
|
|
324
325
|
export declare const LINEA_WSTETH_ADDRESS = "0xB5beDd42000b71FddE22D3eE8a79Bd49A568fC8F";
|
|
325
326
|
export declare const LINEA_WBTC_ADDRESS = "0x3aAB2285ddcDdaD8edf438C1bAB47e1a9D05a9b4";
|
|
326
327
|
export declare const LINEA_WETH_ADDRESS = "0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f";
|
|
328
|
+
export declare const FRAXTAL_SFRXETH_ADDRESS = "0xFC00000000000000000000000000000000000005";
|
|
327
329
|
export declare const CAMWMATIC_VAULT_ADDRESS = "0x88d84a85A87ED12B8f098e8953B322fF789fCD1a";
|
|
328
330
|
export declare const CAMWETH_VAULT_ADDRESS = "0x11A33631a5B5349AF3F165d2B7901A4d67e561ad";
|
|
329
331
|
export declare const CAMAAVE_VAULT_ADDRESS = "0x578375c3af7d61586c2C3A7BA87d2eEd640EFA40";
|
|
@@ -375,3 +377,4 @@ export declare const XDAI_SDAI_VAULT_ADDRESS = "0x79AFAD49e968E7bEA7a23933E294a9
|
|
|
375
377
|
export declare const LINEA_WSTETH_VAULT_ADDRESS = "0x759D0e8623C5028ED4D447dB25Bbe789FD07A43D";
|
|
376
378
|
export declare const LINEA_WBTC_VAULT_ADDRESS = "0x8AB01c5Ee3422099156ab151eecB83c095626599";
|
|
377
379
|
export declare const LINEA_WETH_VAULT_ADDRESS = "0x7f9Dd991e8fD0cBb52CB8Eb35DD35c474a9a7a70";
|
|
380
|
+
export declare const FRAXTAL_SFRXETH_VAULT_ADDRESS = "0xbf1aeA8670D2528E08334083616dD9C5F3B087aE";
|
|
@@ -32,6 +32,7 @@ export declare class Currency {
|
|
|
32
32
|
static readonly CUBE: Currency;
|
|
33
33
|
static readonly CANTO: Currency;
|
|
34
34
|
static readonly WWDOGE: Currency;
|
|
35
|
+
static readonly FRXETH: Currency;
|
|
35
36
|
static readonly NATIVE: {
|
|
36
37
|
1: Currency;
|
|
37
38
|
5: Currency;
|
|
@@ -71,6 +72,7 @@ export declare class Currency {
|
|
|
71
72
|
8453: Currency;
|
|
72
73
|
59144: Currency;
|
|
73
74
|
534352: Currency;
|
|
75
|
+
252: Currency;
|
|
74
76
|
};
|
|
75
77
|
/**
|
|
76
78
|
* Constructs an instance of the base class `Currency`. The only instance of the base class `Currency` is `Currency.ETHER`.
|
package/dist/src/vaultInfo.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { Token } from './entities';
|
|
|
8
8
|
import { ChainId, TOKEN_DESCRIPTIONS } from './constants';
|
|
9
9
|
import { PLATFORM } from "./ProtocolInfo";
|
|
10
10
|
export type SnapshotCanonicalChoiceName = 'Wrapped MATIC (Polygon)' | 'WETH (Polygon)' | 'WBTC (Polygon)' | 'AAVE (Polygon)' | 'LINK (Polygon)' | 'xxLINK (Polygon)' | 'KNC (Polygon)' | 'CRV (Polygon)' | 'BAL (Polygon)' | 'GHST (Polygon)' | 'vGHST (Polygon)' | 'Frax Share (Polygon)' | 'SAND (Polygon)' | 'Compounding Aave MATIC (Polygon)' | 'Compounding Aave ETH (Polygon)' | 'Compounding Aave AAVE (Polygon)' | 'Compounding Aave WBTC (Polygon)' | 'WETH (Fantom)' | 'WFTM (Fantom)' | 'LINK (Fantom)' | 'WBTC (Fantom)' | 'SUSHI (Fantom)' | 'AAVE (Fantom)' | 'mooBIFI (Fantom)' | 'xBOO (Fantom)' | 'Yearn vault WFTM (Fantom)' | 'Yearn vault BTC (Fantom)' | 'Yearn vault ETH (Fantom)' | 'Yearn vault YFI (Fantom)' | 'WBTC (Avalanche)' | 'WETH (Avalanche)' | 'WAVAX (Avalanche)' | 'Beefy Aave AVAX (Avalanche)' | 'MOVR (Moonriver)' | 'WETH (Gnosis Chain)' | 'GNO (Gnosis Chain)' | 'WETH (Arbitrum)' | 'WBTC (Arbitrum)' | 'WETH (Optimism)' | 'WBTC (Optimism)' | 'OP (Optimism)' | 'Beefy Aave ETH (Optimism)' | 'Beefy Aave BTC (Optimism)' | 'CAKE (BNB)' | 'BNB (BNB)' | 'DODO (BNB)' | 'METIS (Metis)' | 'WETH (Metis)' | 'WBTC (Metis)' | 'm.WBTC (Metis)' | 'Yearn WETH (Ethereum)' | 'Yearn LINK (Ethereum)' | 'WBTC (Ethereum)' | 'WETH (Ethereum)' | 'StakeDAO Curve ETH/stETH (Eth)' | 'Yearn Curve ETH/stETH (Ethereum)' | 'MAI DAI Arrakis Polygon' | 'Wrapped Staked ETH (Optimism)' | 'Yearn vault ETH (Optimism)' | 'Beefy stETH Curve (Optimism)' | 'Beefy stETH Curve (Arbitrum)' | 'StakeDAO Curve ETH/stETH Perf (Eth)' | 'Beefy stETH Convex Perf (Eth)' | 'Curve (Eth)' | 'Arb (Arbitrum)' | 'WETH-I (Polygon)' | 'WBTC-I (Polygon)' | 'cbEth (Eth)' | 'stEth (Eth)' | 'LDO (Eth)' | 'WETH (ZKEVM)' | 'WMATIC (ZKEVM)' | 'cbEth (Base)' | 'WETH (Base)' | 'Savings DAI (Gnosis Chain)' | 'Wrapped Staked ETH (Linea)' | 'Wrapped Staked ETH (Base)' | 'WBTC (Linea)';
|
|
11
|
-
export 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' | 'mwbtc' | 'knc' | 'xSMVT' | 'GLMVT' | 'LSMMVT' | 'STMMVT' | 'maidai' | 'yvweth' | 'wsteth' | 'beefy-eth-steth-crv' | 'stmatic' | 'gdai' | 'maticx' | 'yvcurve-steth-f-perf' | 'stake-dao-crv-eth-steth-perf' | 'beefy-eth-steth-crv-perf' | 'arb' | 'weth-i' | 'wbtc-i' | 'cbeth' | 'steth' | 'ldo' | 'sdai';
|
|
11
|
+
export 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' | 'mwbtc' | 'knc' | 'xSMVT' | 'GLMVT' | 'LSMMVT' | 'STMMVT' | 'maidai' | 'yvweth' | 'wsteth' | 'beefy-eth-steth-crv' | 'stmatic' | 'gdai' | 'maticx' | 'yvcurve-steth-f-perf' | 'stake-dao-crv-eth-steth-perf' | 'beefy-eth-steth-crv-perf' | 'arb' | 'weth-i' | 'wbtc-i' | 'cbeth' | 'steth' | 'ldo' | 'sdai' | 'sfrxETH';
|
|
12
12
|
export type RawVaultContractAbiV1 = typeof qiStablecoin | typeof erc20Stablecoin | typeof erc20QiStablecoinwbtc | typeof erc20QiStablecoincamwbtc | typeof crosschainQiStablecoin | typeof crosschainNativeQiStablecoin | typeof crosschainQiStablecoinV2 | typeof crosschainQiStablecoinSlim | typeof crosschainQiStablecoinSlimV2 | typeof crosschainQiStablecoinwbtc;
|
|
13
13
|
export type VaultContractDiscriminatorV1 = 'QiStablecoin' | 'Erc20Stablecoin' | 'Erc20QiStablecoinwbtc' | 'Erc20QiStablecoincamwbtc' | 'CrosschainQiStablecoin' | 'CrosschainNativeQiStablecoin' | 'CrosschainQiStablecoinV2' | 'CrosschainQiStablecoinSlim' | 'CrosschainQiStablecoinSlimV2' | 'CrosschainQiStablecoinwbtc';
|
|
14
14
|
export type VaultContractDiscriminatorV2 = 'StableQiVault';
|
|
@@ -2677,6 +2677,21 @@ declare const LINEA_COLLATERALS: ({
|
|
|
2677
2677
|
platform?: undefined;
|
|
2678
2678
|
})[];
|
|
2679
2679
|
declare const SCROLL_COLLATERALS: never[];
|
|
2680
|
+
declare const FRAXTAL_COLLATERALS: {
|
|
2681
|
+
shortName: "sfrxETH";
|
|
2682
|
+
vaultAddress: string;
|
|
2683
|
+
chainId: ChainId.FRAXTAL;
|
|
2684
|
+
token: Token;
|
|
2685
|
+
connect: typeof StableQiVault__factory.connect;
|
|
2686
|
+
discriminator: "StableQiVault";
|
|
2687
|
+
minimumCDR: number;
|
|
2688
|
+
frontend: FRONTEND.MAI;
|
|
2689
|
+
version: 2;
|
|
2690
|
+
snapshotName: "Wrapped Staked ETH (Linea)";
|
|
2691
|
+
underlyingIds: "lido-staked-ether"[];
|
|
2692
|
+
addedAt: number;
|
|
2693
|
+
deprecated: false;
|
|
2694
|
+
}[];
|
|
2680
2695
|
declare const EMPTY_COLLATERALS: never[];
|
|
2681
2696
|
export declare const COLLATERALS: {
|
|
2682
2697
|
[ChainId.MAINNET]: typeof MAINNET_COLLATERALS;
|
|
@@ -2718,5 +2733,6 @@ export declare const COLLATERALS: {
|
|
|
2718
2733
|
[ChainId.BASE]: typeof BASE_COLLATERALS;
|
|
2719
2734
|
[ChainId.LINEA]: typeof LINEA_COLLATERALS;
|
|
2720
2735
|
[ChainId.SCROLL]: typeof SCROLL_COLLATERALS;
|
|
2736
|
+
[ChainId.FRAXTAL]: typeof FRAXTAL_COLLATERALS;
|
|
2721
2737
|
};
|
|
2722
2738
|
export {};
|
package/dist/src/zapInfo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BigNumber, CallOverrides, Signer } from 'ethers';
|
|
2
2
|
import { ChainId } from './constants';
|
|
3
|
-
import ZapMeta,
|
|
3
|
+
import { ZapMeta, CamMeta, QiZapGainsMeta, QiZapMeta, QiZapThreeStepMeta } from './ZapMeta';
|
|
4
4
|
export declare function beefyZapToVault(signer: Signer, zapperAddress: string, assetAddress: string, mooAssetAddress: string, mooAssetVaultAddress: string, amount: BigNumber, vaultIndex: BigNumber, overrides?: CallOverrides): Promise<any>;
|
|
5
5
|
export declare function beefyZapFromVault(signer: Signer, zapperAddress: string, assetAddress: string, mooAssetAddress: string, mooAssetVaultAddress: string, amount: BigNumber, vaultIndex: BigNumber, overrides?: CallOverrides): Promise<any>;
|
|
6
6
|
export declare const ZAP_META: {
|