@dhedge/trading-widget 3.5.6 → 3.5.7

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.
@@ -1,6 +1,10 @@
1
- import type { Address, ChainId } from '../types';
2
- export declare const FLATMONEY_LEVERAGED_ASSET_MAP: Record<ChainId, Address>;
3
- export declare const FLATMONEY_COLLATERAL_ADDRESS_MAP: Record<ChainId, Address>;
4
- export declare const FLATMONEY_COLLATERAL_SYMBOL_MAP: Record<ChainId, string>;
5
- export declare const FLATMONEY_UNIT_SYMBOL_MAP: Record<ChainId, string>;
6
- export declare const FLATMONEY_UNIT_ADDRESS_MAP: Record<ChainId, Address>;
1
+ export declare const FLAT_MONEY_LEVERAGED_ASSET_ADDRESSES: string[];
2
+ export declare const FLAT_MONEY_COLLATERAL_MAP: {
3
+ [x: string]: {
4
+ symbol: string;
5
+ decimals: number;
6
+ address: string;
7
+ };
8
+ };
9
+ export declare const FLAT_MONEY_V1_UNIT_ADDRESS = "0xb95fb324b8a2faf8ec4f76e3df46c718402736e2";
10
+ export declare const FLAT_MONEY_UNIT_ADDRESSES: string[];
@@ -1,2 +1,3 @@
1
1
  export declare const PYTH_API_LINK = "https://hermes.pyth.network";
2
2
  export declare const FLAT_MONEY_UNIT_LINK = "https://flat.money/flatcoin";
3
+ export declare const FLAT_MONEY_V1_UNIT_LINK = "https://v1.flat.money/flatcoin";
@@ -1,4 +1,9 @@
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 getFlatMonetUnitSymbol: (chainId: number) => string;
4
+ export declare const getFlatMoneyCollateralByLeverageAddress: (address: string) => {
5
+ symbol: string;
6
+ decimals: number;
7
+ address: string;
8
+ };
9
+ export declare const getFlatMoneyLinkByUnitAddress: (address: string) => "https://flat.money/flatcoin" | "https://v1.flat.money/flatcoin";