@dhedge/trading-widget 4.0.0 → 4.0.1
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/flat-money.d.ts +13 -7
- package/core-kit/utils/flat-money.d.ts +1 -5
- package/index.cjs +10 -10
- package/index.js +2431 -2425
- package/package.json +1 -1
|
@@ -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";
|