@dhedge/trading-widget 6.2.2 → 6.3.0
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/utils/dytm.d.ts +6 -0
- package/core-kit/utils/hyperliquid.d.ts +2 -0
- package/{dytm-3a5llKkf.js → dytm-D5O16WMt.js} +284 -252
- package/dytm-wondvAJ2.cjs +1 -0
- package/index.cjs +1 -1
- package/index.js +2739 -2686
- package/package.json +1 -1
- package/utils.cjs +1 -1
- package/utils.js +60 -57
- package/dytm-BGpelTOE.cjs +0 -1
package/core-kit/utils/dytm.d.ts
CHANGED
|
@@ -36,6 +36,12 @@ export interface BuildDytmActionsParams {
|
|
|
36
36
|
quote: OndoPriceOracleQuote;
|
|
37
37
|
}
|
|
38
38
|
export declare const buildDytmActions: ({ collateral, dytmOffice, processor, gmToken, ondoGMSwap, usdc, gmAmount, amountOutMinimum, signature, quote, }: BuildDytmActionsParams) => DytmAction[];
|
|
39
|
+
export interface BuildDytmOutputAssetWithdrawActionParams {
|
|
40
|
+
collateral: DytmAssetData;
|
|
41
|
+
dytmOffice: Address;
|
|
42
|
+
processor: Address;
|
|
43
|
+
}
|
|
44
|
+
export declare const buildDytmOutputAssetWithdrawAction: ({ collateral, dytmOffice, processor, }: BuildDytmOutputAssetWithdrawActionParams) => DytmAction;
|
|
39
45
|
export interface BuildDytmRepayActionsParams {
|
|
40
46
|
accountId: bigint;
|
|
41
47
|
debtKey: bigint;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { Address } from 'viem';
|
|
2
2
|
export declare const isHyperliquidPerpsAsset: (address: Address) => boolean;
|
|
3
|
+
export declare const isHyperliquidSpotSystemAsset: (address: Address) => boolean;
|
|
4
|
+
export declare const isHyperliquidCorePositionAsset: (address: Address) => boolean;
|
|
3
5
|
export declare const getHyperliquidWithdrawAsset: () => import("@shared/types").TradingToken;
|