@qidao/sdk 5.1.26 → 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.
- 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 +26 -0
- package/dist/src/constants.d.ts +18 -0
- package/dist/src/zapInfo.d.ts +18 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -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";
|
|
@@ -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
|
+
};
|