@dhedge/trading-widget 4.0.0 → 4.0.2
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/core-kit/const/contracts/mainnet.d.ts +1 -0
- package/core-kit/const/flat-money.d.ts +13 -7
- package/core-kit/utils/flat-money.d.ts +1 -5
- package/index.cjs +10 -10
- package/index.d.ts +1 -1
- package/index.js +3022 -3012
- package/package.json +1 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const FACTORY_ADDRESS_MAINNET = "0x96D33bCF84DdE326014248E2896F79bbb9c13D6d";
|
|
2
2
|
export declare const EASY_SWAPPER_V2_ADDRESS_MAINNET = "0xbDd84294bC8299861A2121F749A25EFEb7168a32";
|
|
3
|
+
export declare const AAVE_LENDING_POOL_V3_ADDRESS_MAINNET = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2";
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
decimals: number;
|
|
6
|
-
address: `0x${string}`;
|
|
7
|
-
};
|
|
1
|
+
declare const FLATMONEY_LEVERAGED_ASSET_MAP: {
|
|
2
|
+
readonly RETH_BASE: "0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768";
|
|
3
|
+
readonly WBTC_OPTIMISM: "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879";
|
|
4
|
+
readonly WBTC_ARBITRUM: "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6";
|
|
8
5
|
};
|
|
6
|
+
type FlatMoneyLeveragedAssetAddress = (typeof FLATMONEY_LEVERAGED_ASSET_MAP)[keyof typeof FLATMONEY_LEVERAGED_ASSET_MAP];
|
|
7
|
+
type FlatMoneyCollateral = {
|
|
8
|
+
symbol: string;
|
|
9
|
+
decimals: number;
|
|
10
|
+
address: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES: ("0xdb0cd65dcc7fe07003ce1201f91e1f966fa95768" | "0x6d857e9d24a7566bb72a3fb0847a3e0e4e1c2879" | "0xb1353d51991e79fefd4bfdba2a03e9f0232814a6")[];
|
|
13
|
+
export declare const FLAT_MONEY_COLLATERAL_MAP: Record<FlatMoneyLeveragedAssetAddress, FlatMoneyCollateral>;
|
|
9
14
|
export declare const FLAT_MONEY_V1_UNIT_ADDRESS = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2";
|
|
10
15
|
export declare const FLAT_MONEY_UNIT_ADDRESSES: string[];
|
|
16
|
+
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
export declare const isFmpAirdropVaultAddress: (address: Address) => boolean;
|
|
3
3
|
export declare const isFlatMoneyLeveragedAsset: (address: Address) => boolean;
|
|
4
|
-
export declare const getFlatMoneyCollateralByLeverageAddress: (address: string) =>
|
|
5
|
-
symbol: string;
|
|
6
|
-
decimals: number;
|
|
7
|
-
address: `0x${string}`;
|
|
8
|
-
};
|
|
4
|
+
export declare const getFlatMoneyCollateralByLeverageAddress: (address: string) => any;
|
|
9
5
|
export declare const getFlatMoneyLinkByUnitAddress: (address: string) => "https://flat.money/flatcoin" | "https://v1.flat.money/flatcoin";
|