@qidao/sdk 5.1.25 → 5.1.27

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.
@@ -0,0 +1,26 @@
1
+ import { BigNumber, Signer } from 'ethers';
2
+ import { Token } from "./entities";
3
+ export interface ScalingDetails {
4
+ scaleVia: 'mul' | 'div';
5
+ scalingFactor: number;
6
+ }
7
+ export interface ScalingInfo {
8
+ priceScalingFactor?: ScalingDetails;
9
+ liquidationScalingFactor?: ScalingDetails;
10
+ }
11
+ export default interface ZapMeta {
12
+ vaultType: 'YEARN' | 'BEEFY';
13
+ underlying: Token;
14
+ underlyingPriceSourceAddress: string;
15
+ zapperAddress: string;
16
+ zapInFunction: (amount: BigNumber, vaultIndex: BigNumber, signer: Signer) => any;
17
+ zapOutFunction: (amount: BigNumber, vaultIndex: BigNumber, signer: Signer) => any;
18
+ collateralScaling?: ScalingInfo;
19
+ underlyingScaling?: ScalingInfo;
20
+ }
21
+ export interface CamMeta {
22
+ underlying: Token;
23
+ underlyingPriceSourceAddress: string;
24
+ amTokenAddress: string;
25
+ camTokenAddress: string;
26
+ }
@@ -70,3 +70,21 @@ export declare const SOLIDITY_TYPE_MAXIMA: {
70
70
  export declare const MULTICALL_NETWORKS: {
71
71
  [chainId in ChainId]: string;
72
72
  };
73
+ export declare const WFTM_ADDRESS = "0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83";
74
+ export declare const CAMWMATIC_VAULT_ADDRESS = "0x88d84a85A87ED12B8f098e8953B322fF789fCD1a";
75
+ export declare const CAMWETH_VAULT_ADDRESS = "0x11A33631a5B5349AF3F165d2B7901A4d67e561ad";
76
+ export declare const CAMAAVE_VAULT_ADDRESS = "0x578375c3af7d61586c2C3A7BA87d2eEd640EFA40";
77
+ export declare const CAMWBTC_VAULT_ADDRESS = "0x7dDA5e1A389E0C1892CaF55940F5fcE6588a9ae0";
78
+ export declare const CAMDAI_VAULT_ADDRESS = "0xD2FE44055b5C874feE029119f70336447c8e8827";
79
+ export declare const YVWFTM_VAULT_ADDRESS = "0x7efB260662a6FA95c1CE1092c53Ca23733202798";
80
+ export declare const YVWBTC_VAULT_ADDRESS = "0x571F42886C31f9b769ad243e81D06D0D144BE7B4";
81
+ export declare const YVYFI_VAULT_ADDRESS = "0x6d6029557a06961aCC5F81e1ffF5A474C54e32Fd";
82
+ export declare const YVWETH_VAULT_ADDRESS = "0x7aE52477783c4E3e5c1476Bbb29A8D029c920676";
83
+ export declare const YVDAI_VAULT_ADDRESS = "0x682E473FcA490B0adFA7EfE94083C1E63f28F034";
84
+ export declare const MOO_SCREAM_WBTC_VAULT_ADDRESS = "0x5563Cc1ee23c4b17C861418cFF16641D46E12436";
85
+ export declare const MOO_SCREAM_DAI_VAULT_ADDRESS = "0xBf0ff8ac03f3E0DD7d8faA9b571ebA999a854146";
86
+ export declare const MOO_SCREAM_ETH_VAULT_ADDRESS = "0xC1c7eF18ABC94013F6c58C6CdF9e829A48075b4e";
87
+ export declare const MOO_SCREAM_WFTM_VAULT_ADDRESS = "0x3609A304c6A41d87E895b9c1fd18c02ba989Ba90";
88
+ export declare const MOO_SCREAM_LINK_VAULT_ADDRESS = "0x8e5e4D08485673770Ab372c05f95081BE0636Fa2";
89
+ export declare const MOO_BIFI_FTM_VAULT_ADDRESS = "0x75D4aB6843593C111Eeb02Ff07055009c836A1EF";
90
+ export declare const MOO_WAVAX_VAULT_ADDRESS = "0xfA19c1d104F4AEfb8d5564f02B3AdCa1b515da58";
@@ -3,7 +3,7 @@ import { Signer } from 'ethers';
3
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
5
  import { ChainId } from './constants';
6
- export declare type SnapshotCanonicalChoiceName = 'Wrapped MATIC (Polygon)' | 'WETH (Polygon)' | 'WBTC (Polygon)' | 'AAVE (Polygon)' | 'LINK (Polygon)' | 'xxLINK (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)' | '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)' | 'Yearn WETH (Ethereum)' | 'Yearn LINK (Ethereum)' | 'WBTC (Ethereum)' | 'WETH (Ethereum)' | 'StakeDAO Curve ETH/stETH (Eth)' | 'Yearn Curve ETH/stETH (Ethereum)';
6
+ export declare 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)' | 'Yearn WETH (Ethereum)' | 'Yearn LINK (Ethereum)' | 'WBTC (Ethereum)' | 'WETH (Ethereum)' | 'StakeDAO Curve ETH/stETH (Eth)' | 'Yearn Curve ETH/stETH (Ethereum)';
7
7
  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' | 'knc' | 'xSMVT' | 'GLMVT' | 'LSMMVT' | 'STMMVT';
8
8
  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;
9
9
  export declare enum FRONTEND {
@@ -0,0 +1,18 @@
1
+ import { BigNumber, Signer } from 'ethers';
2
+ import { ChainId } from './constants';
3
+ import ZapMeta, { CamMeta } from './ZapMeta';
4
+ export declare function beefyZapToVault(signer: Signer, zapperAddress: string, assetAddress: string, mooAssetAddress: string, mooAssetVaultAddress: string, amount: BigNumber, vaultIndex: BigNumber): Promise<any>;
5
+ export declare function beefyZapFromVault(signer: Signer, zapperAddress: string, assetAddress: string, mooAssetAddress: string, mooAssetVaultAddress: string, amount: BigNumber, vaultIndex: BigNumber): Promise<any>;
6
+ export declare const ZAP_META: {
7
+ [c in ChainId]?: {
8
+ [s in string]: ZapMeta;
9
+ };
10
+ };
11
+ export declare const CAMZAPPER_ADDRESS: {
12
+ [chainId in ChainId]?: string;
13
+ };
14
+ export declare const CAM_META: {
15
+ [c in ChainId]?: {
16
+ [s in string]: CamMeta;
17
+ };
18
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qidao/sdk",
3
3
  "license": "MIT",
4
- "version": "5.1.25",
4
+ "version": "5.1.27",
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",