opentool 0.14.0 → 0.15.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/dist/adapters/hyperliquid/browser.d.ts +2 -100
- package/dist/adapters/hyperliquid/browser.js +837 -4
- package/dist/adapters/hyperliquid/browser.js.map +1 -1
- package/dist/adapters/hyperliquid/index.d.ts +4 -184
- package/dist/adapters/hyperliquid/index.js +584 -38
- package/dist/adapters/hyperliquid/index.js.map +1 -1
- package/dist/adapters/polymarket/index.d.ts +1 -1
- package/dist/browser-DSwtpkyr.d.ts +701 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +584 -38
- package/dist/index.js.map +1 -1
- package/dist/{types-DKohXZes.d.ts → types-BaTmu0gS.d.ts} +1 -1
- package/dist/wallet/browser.d.ts +1 -1
- package/dist/wallet/index.d.ts +2 -2
- package/package.json +1 -1
- package/templates/base/package.json +1 -1
- package/dist/exchange-XC9MHmxJ.d.ts +0 -360
|
@@ -1,102 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { W as WalletFullContext } from '../../types-DKohXZes.js';
|
|
1
|
+
export { D as DEFAULT_HYPERLIQUID_MARKET_SLIPPAGE_BPS, a as DEFAULT_HYPERLIQUID_TPSL_MARKET_SLIPPAGE_BPS, H as HyperliquidAbstraction, b as HyperliquidAccountMode, c as HyperliquidApiError, a$ as HyperliquidApproveBuilderFeeOptions, b0 as HyperliquidApproveBuilderFeeResponse, d as HyperliquidApproximateLiquidationParams, g as HyperliquidBuilderApprovalError, h as HyperliquidBuilderFee, b1 as HyperliquidClearinghouseState, b2 as HyperliquidDepositResult, i as HyperliquidEnvironment, j as HyperliquidExchangeClient, k as HyperliquidExchangeResponse, l as HyperliquidGrouping, m as HyperliquidGuardError, o as HyperliquidInfoClient, p as HyperliquidMarketIdentityInput, r as HyperliquidOrderIntent, b3 as HyperliquidOrderOptions, b4 as HyperliquidOrderResponse, b5 as HyperliquidOrderStatus, s as HyperliquidParsedSymbol, t as HyperliquidParsedSymbolKind, v as HyperliquidPlaceOrderWithTpSlOptions, w as HyperliquidPlacePositionTpSlOptions, B as HyperliquidTermsError, E as HyperliquidTimeInForce, F as HyperliquidTpSlExecutionType, G as HyperliquidTpSlLegInput, I as HyperliquidTriggerOptions, J as HyperliquidTriggerType, b6 as HyperliquidWithdrawResult, M as MarketIdentity, b7 as approveHyperliquidBuilderFee, K as batchModifyHyperliquidOrders, L as buildHyperliquidMarketIdentity, N as buildHyperliquidProfileAssets, P as cancelAllHyperliquidOrders, Q as cancelHyperliquidOrders, R as cancelHyperliquidOrdersByCloid, S as cancelHyperliquidTwapOrder, T as computeHyperliquidMarketIocLimitPrice, b8 as createHyperliquidActionHash, U as createHyperliquidSubAccount, V as createMonotonicNonceFactory, b9 as depositToHyperliquidBridge, W as estimateHyperliquidLiquidationPrice, X as extractHyperliquidDex, $ as fetchHyperliquidAssetCtxs, ba as fetchHyperliquidClearinghouseState, a1 as fetchHyperliquidFrontendOpenOrders, a2 as fetchHyperliquidHistoricalOrders, a3 as fetchHyperliquidMeta, a4 as fetchHyperliquidMetaAndAssetCtxs, a5 as fetchHyperliquidOpenOrders, a6 as fetchHyperliquidOrderStatus, a8 as fetchHyperliquidPreTransferCheck, a9 as fetchHyperliquidSizeDecimals, ab as fetchHyperliquidSpotAssetCtxs, ac as fetchHyperliquidSpotClearinghouseState, ae as fetchHyperliquidSpotMeta, af as fetchHyperliquidSpotMetaAndAssetCtxs, ai as fetchHyperliquidTickSize, aj as fetchHyperliquidUserFills, ak as fetchHyperliquidUserFillsByTime, al as fetchHyperliquidUserRateLimit, am as formatHyperliquidMarketablePrice, ao as formatHyperliquidPrice, ap as formatHyperliquidSize, bb as getHyperliquidMaxBuilderFee, aq as isHyperliquidSpotSymbol, ar as modifyHyperliquidOrder, as as normalizeHyperliquidBaseSymbol, au as normalizeHyperliquidMetaSymbol, av as normalizeSpotTokenName, aw as parseHyperliquidSymbol, ax as parseSpotPairSymbol, bc as placeHyperliquidOrder, ay as placeHyperliquidOrderWithTpSl, az as placeHyperliquidPositionTpSl, aA as placeHyperliquidTwapOrder, aB as reserveHyperliquidRequestWeight, aC as resolveHyperliquidAbstractionFromMode, aE as resolveHyperliquidLeverageMode, aG as resolveHyperliquidOrderSymbol, aH as resolveHyperliquidPair, aI as resolveHyperliquidPerpSymbol, aJ as resolveHyperliquidProfileChain, aK as resolveHyperliquidSpotSymbol, aL as resolveHyperliquidSymbol, aM as resolveSpotMidCandidates, aN as resolveSpotTokenCandidates, aP as scheduleHyperliquidCancel, aQ as sendHyperliquidSpot, aR as setHyperliquidAccountAbstractionMode, aS as setHyperliquidDexAbstraction, aT as setHyperliquidPortfolioMargin, aU as transferHyperliquidSubAccount, aV as updateHyperliquidIsolatedMargin, aW as updateHyperliquidLeverage, bd as withdrawFromHyperliquid } from '../../browser-DSwtpkyr.js';
|
|
2
|
+
import '../../types-BaTmu0gS.js';
|
|
4
3
|
import 'viem';
|
|
5
4
|
import 'viem/accounts';
|
|
6
|
-
|
|
7
|
-
interface HyperliquidOrderOptions {
|
|
8
|
-
wallet: WalletFullContext;
|
|
9
|
-
orders: HyperliquidOrderIntent[];
|
|
10
|
-
grouping?: HyperliquidGrouping;
|
|
11
|
-
environment?: HyperliquidEnvironment;
|
|
12
|
-
vaultAddress?: `0x${string}`;
|
|
13
|
-
expiresAfter?: number;
|
|
14
|
-
nonce?: number;
|
|
15
|
-
nonceSource?: NonceSource;
|
|
16
|
-
}
|
|
17
|
-
type HyperliquidOrderStatus = {
|
|
18
|
-
resting: {
|
|
19
|
-
oid: number;
|
|
20
|
-
cloid?: `0x${string}`;
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
|
-
filled: {
|
|
24
|
-
totalSz: string;
|
|
25
|
-
avgPx: string;
|
|
26
|
-
oid: number;
|
|
27
|
-
cloid?: `0x${string}`;
|
|
28
|
-
};
|
|
29
|
-
} | {
|
|
30
|
-
error: string;
|
|
31
|
-
} | "waitingForFill" | "waitingForTrigger";
|
|
32
|
-
interface HyperliquidOrderResponse {
|
|
33
|
-
status: "ok";
|
|
34
|
-
response: {
|
|
35
|
-
type: "order";
|
|
36
|
-
data: {
|
|
37
|
-
statuses: HyperliquidOrderStatus[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
interface HyperliquidDepositResult {
|
|
42
|
-
txHash: `0x${string}`;
|
|
43
|
-
amount: number;
|
|
44
|
-
amountUnits: string;
|
|
45
|
-
environment: HyperliquidEnvironment;
|
|
46
|
-
bridgeAddress: `0x${string}`;
|
|
47
|
-
}
|
|
48
|
-
interface HyperliquidWithdrawResult {
|
|
49
|
-
amount: number;
|
|
50
|
-
destination: `0x${string}`;
|
|
51
|
-
environment: HyperliquidEnvironment;
|
|
52
|
-
nonce: number;
|
|
53
|
-
status: string;
|
|
54
|
-
}
|
|
55
|
-
interface HyperliquidClearinghouseState {
|
|
56
|
-
ok: boolean;
|
|
57
|
-
data: Record<string, unknown> | null;
|
|
58
|
-
}
|
|
59
|
-
interface HyperliquidApproveBuilderFeeOptions {
|
|
60
|
-
environment: HyperliquidEnvironment;
|
|
61
|
-
wallet: WalletFullContext;
|
|
62
|
-
nonce?: number;
|
|
63
|
-
nonceSource?: NonceSource;
|
|
64
|
-
signatureChainId?: string;
|
|
65
|
-
}
|
|
66
|
-
interface HyperliquidApproveBuilderFeeResponse {
|
|
67
|
-
status: string;
|
|
68
|
-
response?: unknown;
|
|
69
|
-
error?: string;
|
|
70
|
-
}
|
|
71
|
-
declare function placeHyperliquidOrder(options: HyperliquidOrderOptions): Promise<HyperliquidOrderResponse>;
|
|
72
|
-
declare function depositToHyperliquidBridge(options: {
|
|
73
|
-
environment: HyperliquidEnvironment;
|
|
74
|
-
amount: string;
|
|
75
|
-
wallet: WalletFullContext;
|
|
76
|
-
}): Promise<HyperliquidDepositResult>;
|
|
77
|
-
declare function withdrawFromHyperliquid(options: {
|
|
78
|
-
environment: HyperliquidEnvironment;
|
|
79
|
-
amount: string;
|
|
80
|
-
destination: `0x${string}`;
|
|
81
|
-
wallet: WalletFullContext;
|
|
82
|
-
nonce?: number;
|
|
83
|
-
nonceSource?: NonceSource;
|
|
84
|
-
}): Promise<HyperliquidWithdrawResult>;
|
|
85
|
-
declare function fetchHyperliquidClearinghouseState(params: {
|
|
86
|
-
environment: HyperliquidEnvironment;
|
|
87
|
-
walletAddress: `0x${string}`;
|
|
88
|
-
}): Promise<HyperliquidClearinghouseState>;
|
|
89
|
-
declare function approveHyperliquidBuilderFee(options: HyperliquidApproveBuilderFeeOptions): Promise<HyperliquidApproveBuilderFeeResponse>;
|
|
90
|
-
declare function getHyperliquidMaxBuilderFee(params: {
|
|
91
|
-
environment: HyperliquidEnvironment;
|
|
92
|
-
user: `0x${string}`;
|
|
93
|
-
}): Promise<unknown>;
|
|
94
|
-
declare function createHyperliquidActionHash(params: {
|
|
95
|
-
action: Record<string, unknown> | ExchangeOrderAction;
|
|
96
|
-
nonce: number;
|
|
97
|
-
isTestnet: boolean;
|
|
98
|
-
vaultAddress?: `0x${string}`;
|
|
99
|
-
expiresAfter?: number;
|
|
100
|
-
}): `0x${string}`;
|
|
101
|
-
|
|
102
|
-
export { type HyperliquidApproveBuilderFeeOptions, type HyperliquidApproveBuilderFeeResponse, type HyperliquidClearinghouseState, type HyperliquidDepositResult, HyperliquidEnvironment, HyperliquidGrouping, HyperliquidOrderIntent, type HyperliquidOrderOptions, type HyperliquidOrderResponse, type HyperliquidOrderStatus, type HyperliquidWithdrawResult, approveHyperliquidBuilderFee, createHyperliquidActionHash, depositToHyperliquidBridge, fetchHyperliquidClearinghouseState, getHyperliquidMaxBuilderFee, placeHyperliquidOrder, withdrawFromHyperliquid };
|