@pear-protocol/symmio-client 0.3.17 → 0.3.18

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/index.d.mts CHANGED
@@ -230,10 +230,6 @@ type DepositAndAllocateParams = {
230
230
  account: Address;
231
231
  amount: bigint;
232
232
  };
233
- type WithdrawParams = {
234
- account: Address;
235
- amount: bigint;
236
- };
237
233
  type AllocateParams = {
238
234
  amount: bigint;
239
235
  };
@@ -246,6 +242,111 @@ type InternalTransferParams = {
246
242
  amount: bigint;
247
243
  };
248
244
 
245
+ /**
246
+ * v0.8.5 WithdrawFacet types.
247
+ *
248
+ * The single-step `withdrawFromAccount` flow on MultiAccount has been
249
+ * replaced by an initiate -> cooldown -> finalize lifecycle on the Symmio
250
+ * Diamond, with optional Express (instant) and Virtual (cross-chain)
251
+ * provider routing per part.
252
+ */
253
+ declare enum WithdrawStatus {
254
+ PENDING = 0,
255
+ PROVIDER_ACCEPTED = 1,
256
+ PROVIDER_REJECTED = 2,
257
+ COMPLETED = 3,
258
+ CANCEL_REQUESTED = 4,
259
+ CANCELLED = 5,
260
+ SUSPENDED = 6
261
+ }
262
+ /**
263
+ * One destination of a (possibly split) withdraw request.
264
+ *
265
+ * `chainId` is `int256` on-chain — non-EVM destinations may use negative IDs.
266
+ * `receiver` is raw bytes; for EVM destinations pass the 20-byte address as
267
+ * hex (e.g. via `viem.toHex(address)` or `padHex(address, { size: 20 })`).
268
+ *
269
+ * Provider semantics:
270
+ * - both zero → Classic: standard cooldown, same chain
271
+ * - only `expressProvider` → Pure Express: instant same chain
272
+ * - only `virtualProvider` → Pure Virtual: standard cooldown, cross-chain
273
+ * - both set (different) → Virtual Express: instant cross-chain
274
+ *
275
+ * A single provider address must NOT be set as both express and virtual.
276
+ */
277
+ type WithdrawReceiverPart = {
278
+ id: bigint;
279
+ amount: bigint;
280
+ chainId: bigint;
281
+ receiver: Hex;
282
+ virtualProvider: Address;
283
+ expressProvider: Address;
284
+ };
285
+ /**
286
+ * FE-facing choice between the two same-chain withdraw paths exposed by v0.8.5:
287
+ *
288
+ * - `STANDARD`: 12-hour cooldown, no provider required.
289
+ * - `INSTANT` : ~20-second express path; requires a registered express
290
+ * provider address. If express liquidity is unavailable the
291
+ * contract will fall back to the standard cooldown.
292
+ */
293
+ declare enum WithdrawSpeed {
294
+ STANDARD = "standard",
295
+ INSTANT = "instant"
296
+ }
297
+ /**
298
+ * Discriminated input for `buildWithdrawPart`. The FE picks `STANDARD` or
299
+ * `INSTANT`; the latter must carry the express provider address it wants to
300
+ * route through.
301
+ */
302
+ type WithdrawOption = {
303
+ speed: WithdrawSpeed.STANDARD;
304
+ } | {
305
+ speed: WithdrawSpeed.INSTANT;
306
+ expressProvider: Address;
307
+ };
308
+ type InitiateWithdrawParams = {
309
+ parts: WithdrawReceiverPart[];
310
+ /**
311
+ * Whitelisted-user shortened-cooldown flag. Independent from the express
312
+ * (instant) path — callers who are not on the speed-up whitelist should
313
+ * leave this `false`.
314
+ */
315
+ speedUp: boolean;
316
+ /** Opaque payload forwarded to provider callbacks. Use `0x` if unused. */
317
+ providerData: Hex;
318
+ };
319
+ type FinalizeWithdrawParams = {
320
+ /** The user (sub-account) whose request is being finalized. */
321
+ user: Address;
322
+ requestId: bigint;
323
+ };
324
+ type RequestCancelWithdrawParams = {
325
+ requestId: bigint;
326
+ };
327
+ /**
328
+ * Lifecycle states for the orchestrated `useSymmInstantWithdraw` hook.
329
+ * The FE just renders on `status`.
330
+ */
331
+ declare enum InstantWithdrawStatus {
332
+ IDLE = "idle",
333
+ /** Initiate tx submitted, waiting for it to mine. */
334
+ INITIATING = "initiating",
335
+ /** Initiate mined, waiting for the express provider to accept. */
336
+ AWAITING_PROVIDER = "awaitingProvider",
337
+ /** Provider accepted, waiting for `cooldownEndTime`. */
338
+ AWAITING_COOLDOWN = "awaitingCooldown",
339
+ /** Finalize tx submitted, waiting for it to mine. */
340
+ FINALIZING = "finalizing",
341
+ COMPLETED = "completed",
342
+ FAILED = "failed"
343
+ }
344
+ type InstantWithdrawTxHashes = {
345
+ initiate?: Hex;
346
+ finalize?: Hex;
347
+ };
348
+ declare const ZERO_ADDRESS: Address;
349
+
249
350
  type Market = {
250
351
  id: number;
251
352
  name: string;
@@ -18823,6 +18924,331 @@ declare const SymmioDiamondABI: readonly [{
18823
18924
  readonly type: "function";
18824
18925
  }];
18825
18926
 
18927
+ /**
18928
+ * Symmio v0.8.5 WithdrawFacet ABI.
18929
+ *
18930
+ * Replaces the single-step `withdrawFromAccount` flow on MultiAccount with
18931
+ * a multi-provider, multi-chain initiate -> cooldown -> finalize lifecycle
18932
+ * on the Symmio Core Diamond. Supports cancellation, admin force-cancel,
18933
+ * speed-up, and Express / Virtual provider routing.
18934
+ */
18935
+ declare const WithdrawFacetABI: readonly [{
18936
+ readonly type: "function";
18937
+ readonly name: "initiateWithdraw";
18938
+ readonly stateMutability: "nonpayable";
18939
+ readonly inputs: readonly [{
18940
+ readonly name: "parts";
18941
+ readonly type: "tuple[]";
18942
+ readonly internalType: "struct WithdrawReceiverPart[]";
18943
+ readonly components: readonly [{
18944
+ readonly name: "id";
18945
+ readonly type: "uint256";
18946
+ readonly internalType: "uint256";
18947
+ }, {
18948
+ readonly name: "amount";
18949
+ readonly type: "uint256";
18950
+ readonly internalType: "uint256";
18951
+ }, {
18952
+ readonly name: "chainId";
18953
+ readonly type: "int256";
18954
+ readonly internalType: "int256";
18955
+ }, {
18956
+ readonly name: "receiver";
18957
+ readonly type: "bytes";
18958
+ readonly internalType: "bytes";
18959
+ }, {
18960
+ readonly name: "virtualProvider";
18961
+ readonly type: "address";
18962
+ readonly internalType: "address";
18963
+ }, {
18964
+ readonly name: "expressProvider";
18965
+ readonly type: "address";
18966
+ readonly internalType: "address";
18967
+ }];
18968
+ }, {
18969
+ readonly name: "speedUp";
18970
+ readonly type: "bool";
18971
+ readonly internalType: "bool";
18972
+ }, {
18973
+ readonly name: "data";
18974
+ readonly type: "bytes";
18975
+ readonly internalType: "bytes";
18976
+ }];
18977
+ readonly outputs: readonly [{
18978
+ readonly name: "requestId";
18979
+ readonly type: "uint256";
18980
+ readonly internalType: "uint256";
18981
+ }, {
18982
+ readonly name: "cooldownEndTime";
18983
+ readonly type: "uint256";
18984
+ readonly internalType: "uint256";
18985
+ }];
18986
+ }, {
18987
+ readonly type: "function";
18988
+ readonly name: "finalizeWithdrawRequest";
18989
+ readonly stateMutability: "nonpayable";
18990
+ readonly inputs: readonly [{
18991
+ readonly name: "user";
18992
+ readonly type: "address";
18993
+ readonly internalType: "address";
18994
+ }, {
18995
+ readonly name: "requestId";
18996
+ readonly type: "uint256";
18997
+ readonly internalType: "uint256";
18998
+ }];
18999
+ readonly outputs: readonly [];
19000
+ }, {
19001
+ readonly type: "function";
19002
+ readonly name: "requestCancelWithdraw";
19003
+ readonly stateMutability: "nonpayable";
19004
+ readonly inputs: readonly [{
19005
+ readonly name: "requestId";
19006
+ readonly type: "uint256";
19007
+ readonly internalType: "uint256";
19008
+ }];
19009
+ readonly outputs: readonly [];
19010
+ }, {
19011
+ readonly type: "function";
19012
+ readonly name: "getWithdrawableTime";
19013
+ readonly stateMutability: "view";
19014
+ readonly inputs: readonly [{
19015
+ readonly name: "user";
19016
+ readonly type: "address";
19017
+ readonly internalType: "address";
19018
+ }];
19019
+ readonly outputs: readonly [{
19020
+ readonly name: "";
19021
+ readonly type: "uint256";
19022
+ readonly internalType: "uint256";
19023
+ }];
19024
+ }, {
19025
+ readonly type: "function";
19026
+ readonly name: "getLastWithdrawRequestId";
19027
+ readonly stateMutability: "view";
19028
+ readonly inputs: readonly [{
19029
+ readonly name: "user";
19030
+ readonly type: "address";
19031
+ readonly internalType: "address";
19032
+ }];
19033
+ readonly outputs: readonly [{
19034
+ readonly name: "";
19035
+ readonly type: "uint256";
19036
+ readonly internalType: "uint256";
19037
+ }];
19038
+ }, {
19039
+ readonly type: "function";
19040
+ readonly name: "isSpeedUpEligible";
19041
+ readonly stateMutability: "view";
19042
+ readonly inputs: readonly [{
19043
+ readonly name: "user";
19044
+ readonly type: "address";
19045
+ readonly internalType: "address";
19046
+ }];
19047
+ readonly outputs: readonly [{
19048
+ readonly name: "";
19049
+ readonly type: "bool";
19050
+ readonly internalType: "bool";
19051
+ }];
19052
+ }, {
19053
+ readonly type: "function";
19054
+ readonly name: "isExpressProviderRegistered";
19055
+ readonly stateMutability: "view";
19056
+ readonly inputs: readonly [{
19057
+ readonly name: "provider";
19058
+ readonly type: "address";
19059
+ readonly internalType: "address";
19060
+ }];
19061
+ readonly outputs: readonly [{
19062
+ readonly name: "";
19063
+ readonly type: "bool";
19064
+ readonly internalType: "bool";
19065
+ }];
19066
+ }, {
19067
+ readonly type: "function";
19068
+ readonly name: "isVirtualProviderRegistered";
19069
+ readonly stateMutability: "view";
19070
+ readonly inputs: readonly [{
19071
+ readonly name: "provider";
19072
+ readonly type: "address";
19073
+ readonly internalType: "address";
19074
+ }];
19075
+ readonly outputs: readonly [{
19076
+ readonly name: "";
19077
+ readonly type: "bool";
19078
+ readonly internalType: "bool";
19079
+ }];
19080
+ }, {
19081
+ readonly type: "event";
19082
+ readonly name: "WithdrawInitiated";
19083
+ readonly anonymous: false;
19084
+ readonly inputs: readonly [{
19085
+ readonly name: "requestId";
19086
+ readonly type: "uint256";
19087
+ readonly indexed: true;
19088
+ readonly internalType: "uint256";
19089
+ }, {
19090
+ readonly name: "user";
19091
+ readonly type: "address";
19092
+ readonly indexed: true;
19093
+ readonly internalType: "address";
19094
+ }, {
19095
+ readonly name: "parts";
19096
+ readonly type: "tuple[]";
19097
+ readonly indexed: false;
19098
+ readonly internalType: "struct WithdrawReceiverPart[]";
19099
+ readonly components: readonly [{
19100
+ readonly name: "id";
19101
+ readonly type: "uint256";
19102
+ readonly internalType: "uint256";
19103
+ }, {
19104
+ readonly name: "amount";
19105
+ readonly type: "uint256";
19106
+ readonly internalType: "uint256";
19107
+ }, {
19108
+ readonly name: "chainId";
19109
+ readonly type: "int256";
19110
+ readonly internalType: "int256";
19111
+ }, {
19112
+ readonly name: "receiver";
19113
+ readonly type: "bytes";
19114
+ readonly internalType: "bytes";
19115
+ }, {
19116
+ readonly name: "virtualProvider";
19117
+ readonly type: "address";
19118
+ readonly internalType: "address";
19119
+ }, {
19120
+ readonly name: "expressProvider";
19121
+ readonly type: "address";
19122
+ readonly internalType: "address";
19123
+ }];
19124
+ }, {
19125
+ readonly name: "speedUp";
19126
+ readonly type: "bool";
19127
+ readonly indexed: false;
19128
+ readonly internalType: "bool";
19129
+ }, {
19130
+ readonly name: "providerData";
19131
+ readonly type: "bytes";
19132
+ readonly indexed: false;
19133
+ readonly internalType: "bytes";
19134
+ }, {
19135
+ readonly name: "cooldownEndTime";
19136
+ readonly type: "uint256";
19137
+ readonly indexed: false;
19138
+ readonly internalType: "uint256";
19139
+ }];
19140
+ }, {
19141
+ readonly type: "event";
19142
+ readonly name: "WithdrawAccepted";
19143
+ readonly anonymous: false;
19144
+ readonly inputs: readonly [{
19145
+ readonly name: "requestId";
19146
+ readonly type: "uint256";
19147
+ readonly indexed: true;
19148
+ readonly internalType: "uint256";
19149
+ }, {
19150
+ readonly name: "user";
19151
+ readonly type: "address";
19152
+ readonly indexed: true;
19153
+ readonly internalType: "address";
19154
+ }];
19155
+ }, {
19156
+ readonly type: "event";
19157
+ readonly name: "WithdrawFinalized";
19158
+ readonly anonymous: false;
19159
+ readonly inputs: readonly [{
19160
+ readonly name: "requestId";
19161
+ readonly type: "uint256";
19162
+ readonly indexed: true;
19163
+ readonly internalType: "uint256";
19164
+ }, {
19165
+ readonly name: "user";
19166
+ readonly type: "address";
19167
+ readonly indexed: true;
19168
+ readonly internalType: "address";
19169
+ }];
19170
+ }, {
19171
+ readonly type: "event";
19172
+ readonly name: "WithdrawCancelRequested";
19173
+ readonly anonymous: false;
19174
+ readonly inputs: readonly [{
19175
+ readonly name: "requestId";
19176
+ readonly type: "uint256";
19177
+ readonly indexed: true;
19178
+ readonly internalType: "uint256";
19179
+ }, {
19180
+ readonly name: "user";
19181
+ readonly type: "address";
19182
+ readonly indexed: true;
19183
+ readonly internalType: "address";
19184
+ }];
19185
+ }, {
19186
+ readonly type: "event";
19187
+ readonly name: "WithdrawCancelled";
19188
+ readonly anonymous: false;
19189
+ readonly inputs: readonly [{
19190
+ readonly name: "requestId";
19191
+ readonly type: "uint256";
19192
+ readonly indexed: true;
19193
+ readonly internalType: "uint256";
19194
+ }, {
19195
+ readonly name: "user";
19196
+ readonly type: "address";
19197
+ readonly indexed: true;
19198
+ readonly internalType: "address";
19199
+ }];
19200
+ }, {
19201
+ readonly type: "event";
19202
+ readonly name: "WithdrawRejected";
19203
+ readonly anonymous: false;
19204
+ readonly inputs: readonly [{
19205
+ readonly name: "requestId";
19206
+ readonly type: "uint256";
19207
+ readonly indexed: false;
19208
+ readonly internalType: "uint256";
19209
+ }, {
19210
+ readonly name: "user";
19211
+ readonly type: "address";
19212
+ readonly indexed: false;
19213
+ readonly internalType: "address";
19214
+ }];
19215
+ }, {
19216
+ readonly type: "event";
19217
+ readonly name: "WithdrawSuspended";
19218
+ readonly anonymous: false;
19219
+ readonly inputs: readonly [{
19220
+ readonly name: "requestId";
19221
+ readonly type: "uint256";
19222
+ readonly indexed: false;
19223
+ readonly internalType: "uint256";
19224
+ }, {
19225
+ readonly name: "user";
19226
+ readonly type: "address";
19227
+ readonly indexed: false;
19228
+ readonly internalType: "address";
19229
+ }];
19230
+ }, {
19231
+ readonly type: "event";
19232
+ readonly name: "WithdrawSpeedUpAccepted";
19233
+ readonly anonymous: false;
19234
+ readonly inputs: readonly [{
19235
+ readonly name: "requestId";
19236
+ readonly type: "uint256";
19237
+ readonly indexed: false;
19238
+ readonly internalType: "uint256";
19239
+ }, {
19240
+ readonly name: "user";
19241
+ readonly type: "address";
19242
+ readonly indexed: false;
19243
+ readonly internalType: "address";
19244
+ }, {
19245
+ readonly name: "newCooldown";
19246
+ readonly type: "uint256";
19247
+ readonly indexed: false;
19248
+ readonly internalType: "uint256";
19249
+ }];
19250
+ }];
19251
+
18826
19252
  /**
18827
19253
  * ClearingHouse ABI (v0.8.5)
18828
19254
  *
@@ -19436,19 +19862,58 @@ declare namespace deposit$1 {
19436
19862
  }
19437
19863
 
19438
19864
  /**
19439
- * Prepares a withdrawal from an account.
19440
- * Calls `withdrawFromAccount` on the MultiAccount contract.
19865
+ * Builds a single classic same-chain withdraw part — the v0.8.5 equivalent
19866
+ * of the legacy `withdrawFromAccount(account, amount)` flow. Subject to the
19867
+ * standard 12-hour cooldown.
19868
+ */
19869
+ declare function buildClassicWithdrawPart(amount: bigint, chainId: bigint, receiver: Hex, partId?: bigint): WithdrawReceiverPart;
19870
+ /**
19871
+ * Builds a single express same-chain withdraw part — the ~20-second instant
19872
+ * path. Requires a registered express provider; if express liquidity is
19873
+ * unavailable the contract falls back to the standard cooldown.
19874
+ */
19875
+ declare function buildExpressWithdrawPart(amount: bigint, chainId: bigint, receiver: Hex, expressProvider: Address, partId?: bigint): WithdrawReceiverPart;
19876
+ /**
19877
+ * Unified builder: the FE picks `WithdrawSpeed.STANDARD` (12h cooldown) or
19878
+ * `WithdrawSpeed.INSTANT` (express, ~20s) and the right `WithdrawReceiverPart`
19879
+ * shape comes back. Use this when the FE wants to expose a "standard vs
19880
+ * instant" toggle without owning the provider-address layout itself.
19881
+ */
19882
+ declare function buildWithdrawPart(amount: bigint, chainId: bigint, receiver: Hex, option: WithdrawOption, partId?: bigint): WithdrawReceiverPart;
19883
+ /**
19884
+ * Prepares an `initiateWithdraw` call. Debits the sub-account immediately
19885
+ * and starts the cooldown. Cooldown end time is returned by the contract
19886
+ * via the `WithdrawInitiated` event (and the function's return values).
19887
+ */
19888
+ declare function prepareInitiateWithdraw(multiAccount: Address, account: Address, subAccount: Address, params: InitiateWithdrawParams): PreparedTransaction;
19889
+ /**
19890
+ * Prepares a `finalizeWithdrawRequest` call. Callable by anyone once the
19891
+ * cooldown has elapsed; executes the actual transfers.
19441
19892
  */
19442
- declare function prepareWithdraw(multiAccount: Address, account: Address, params: WithdrawParams): PreparedTransaction;
19893
+ declare function prepareFinalizeWithdraw(multiAccount: Address, account: Address, subAccount: Address, params: FinalizeWithdrawParams): PreparedTransaction;
19443
19894
  /**
19444
- * Withdraws collateral from an account.
19895
+ * Prepares a `requestCancelWithdraw` call. For classic / pure-virtual
19896
+ * outside the blackout window this cancels immediately; once a provider
19897
+ * has accepted (Express / Virtual Express, or pure-virtual inside the
19898
+ * blackout) the request transitions to `CANCEL_REQUESTED` and awaits
19899
+ * provider approval.
19445
19900
  */
19446
- declare function withdraw(walletClient: WalletClient, publicClient: PublicClient, multiAccount: Address, params: WithdrawParams): Promise<Hex>;
19901
+ declare function prepareRequestCancelWithdraw(multiAccount: Address, account: Address, subAccount: Address, params: RequestCancelWithdrawParams): PreparedTransaction;
19902
+ declare function initiateWithdraw(walletClient: WalletClient, publicClient: PublicClient, multiAccount: Address, subAccount: Address, params: InitiateWithdrawParams): Promise<Hex>;
19903
+ declare function finalizeWithdraw(walletClient: WalletClient, publicClient: PublicClient, multiAccount: Address, subAccount: Address, params: FinalizeWithdrawParams): Promise<Hex>;
19904
+ declare function requestCancelWithdraw(walletClient: WalletClient, publicClient: PublicClient, multiAccount: Address, subAccount: Address, params: RequestCancelWithdrawParams): Promise<Hex>;
19447
19905
 
19448
- declare const withdraw$1_prepareWithdraw: typeof prepareWithdraw;
19449
- declare const withdraw$1_withdraw: typeof withdraw;
19450
- declare namespace withdraw$1 {
19451
- export { withdraw$1_prepareWithdraw as prepareWithdraw, withdraw$1_withdraw as withdraw };
19906
+ declare const withdraw_buildClassicWithdrawPart: typeof buildClassicWithdrawPart;
19907
+ declare const withdraw_buildExpressWithdrawPart: typeof buildExpressWithdrawPart;
19908
+ declare const withdraw_buildWithdrawPart: typeof buildWithdrawPart;
19909
+ declare const withdraw_finalizeWithdraw: typeof finalizeWithdraw;
19910
+ declare const withdraw_initiateWithdraw: typeof initiateWithdraw;
19911
+ declare const withdraw_prepareFinalizeWithdraw: typeof prepareFinalizeWithdraw;
19912
+ declare const withdraw_prepareInitiateWithdraw: typeof prepareInitiateWithdraw;
19913
+ declare const withdraw_prepareRequestCancelWithdraw: typeof prepareRequestCancelWithdraw;
19914
+ declare const withdraw_requestCancelWithdraw: typeof requestCancelWithdraw;
19915
+ declare namespace withdraw {
19916
+ export { withdraw_buildClassicWithdrawPart as buildClassicWithdrawPart, withdraw_buildExpressWithdrawPart as buildExpressWithdrawPart, withdraw_buildWithdrawPart as buildWithdrawPart, withdraw_finalizeWithdraw as finalizeWithdraw, withdraw_initiateWithdraw as initiateWithdraw, withdraw_prepareFinalizeWithdraw as prepareFinalizeWithdraw, withdraw_prepareInitiateWithdraw as prepareInitiateWithdraw, withdraw_prepareRequestCancelWithdraw as prepareRequestCancelWithdraw, withdraw_requestCancelWithdraw as requestCancelWithdraw };
19452
19917
  }
19453
19918
 
19454
19919
  /**
@@ -19937,4 +20402,4 @@ interface SymmUpnlWebSocketMessage {
19937
20402
  }
19938
20403
  declare function normalizeSymmUpnlWebSocketMessage(raw: unknown): SymmUpnlWebSocketMessage | undefined;
19939
20404
 
19940
- export { type ADLAssurance, ALL_TRADING_SELECTORS, type Account, type AccountBalance, type AccumulatedFundingRate, type AddAccountParams, type AffiliateFeeConfig, AffiliateFeeLevel, type AggregatedPosition, type AllocateParams, ApprovalState, CHAIN_NAMES, CLEARING_HOUSE_ADDRESS, CLOSE_QUOTE_SELECTOR, COLLATERAL_ADDRESS, COLLATERAL_DECIMALS, type CancelQuoteParams, type ChainId, ClearingHouseABI, type ClearingHouseLiquidation, ClearingHouseLiquidationStatus, type ClosePositionParams, type CreateSiweMessageParams, DEFAULT_PARTY_B_ADDRESS, DEFAULT_PRECISION, type DeallocateParams, type DepositAndAllocateParams, type DepositParams, ERC20ABI, FALLBACK_CHAIN_ID, type InstantAuthToken, type InstantCloseParams, type InstantCloseResponse, InstantCloseStatus, type InstantErrorResponse, type InstantLoginParams, type InstantOpenParams, type InstantOpenResponse, type InsuranceVaultConfig, type InternalTransferParams, LIMIT_ORDER_DEADLINE, LiquidationStatus, MARKET_ORDER_DEADLINE, MARKET_PRICE_COEFFICIENT, MAX_LEVERAGE, MULTI_ACCOUNT_ADDRESS, MUON_APP_NAME, MUON_BASE_URLS, type Market, MultiAccountABI, type MuonBatchParams, type MuonBatchSig, MuonClient, type MuonClientConfig, type MuonDeallocateParams, type MuonQuoteParams, type MuonSingleUpnlAndPriceSig, type MuonSingleUpnlSig, type MuonSingleUpnlWithPendingBalanceSig, MuonVerifierABI, OrderType, PositionType, type PreparedTransaction, type Quote, QuoteStatus, type RegisterAffiliateParams, SEND_QUOTE_WITH_AFFILIATE_SELECTOR, SIGNATURE_STORE_ADDRESS, STANDARD_WITHDRAW_COOLDOWN, SYMMIO_DIAMOND_ADDRESS, type SchnorrSign, type SendQuoteParams, type SetAffiliateFeeParams, SignatureStoreABI, type SiweMessageResult, SoftLiquidationLevel, type SoftLiquidationThreshold, SupportedChainId, type SymbolCategory, type SymbolType, type SymmAccountBalanceInfoLike, type SymmAccountDataLike, type SymmAccountNumericValue, type SymmAccountOverview, type SymmAccountOverviewInput, type SymmDepositWithdrawalTotals, type SymmMarkPrices, type SymmPnlAssetLegLike, type SymmPnlNumericValue, type SymmPnlPositionLike, type SymmPositionPnlResult, type SymmUpnlWebSocketMessage, SymmioDiamondABI, type SymmioSDKConfig, SymmioSDKError, type TransactionConfig, type TransactionReceipt, type TransactionResult, V3_CHAIN_IDS, type WithdrawParams, account as accountActions, admin as adminActions, allocate$1 as allocateActions, applySlippage, approval as approvalActions, calculateGasMargin, cancel as cancelActions, close as closeActions, computeSymmAccountOverview, computeSymmAccountOverviewFromData, computeSymmNetDeposited, computeSymmPositionUpnl, computeSymmPositionsUpnl, delegation as delegationActions, deposit$1 as depositActions, encodeCall, formatPrice, fromWei, getAddress, getSymmAccountBalanceInfo, getSymmAccountData, instant as instantActions, normalizeSymmUpnlWebSocketMessage, signature as signatureActions, stats as statsActions, toWei, trade as tradeActions, validateAddress, validateAmount, validateChainId, validateDeadline, validateQuantity, withdraw$1 as withdrawActions, wrapInProxyCall };
20405
+ export { type ADLAssurance, ALL_TRADING_SELECTORS, type Account, type AccountBalance, type AccumulatedFundingRate, type AddAccountParams, type AffiliateFeeConfig, AffiliateFeeLevel, type AggregatedPosition, type AllocateParams, ApprovalState, CHAIN_NAMES, CLEARING_HOUSE_ADDRESS, CLOSE_QUOTE_SELECTOR, COLLATERAL_ADDRESS, COLLATERAL_DECIMALS, type CancelQuoteParams, type ChainId, ClearingHouseABI, type ClearingHouseLiquidation, ClearingHouseLiquidationStatus, type ClosePositionParams, type CreateSiweMessageParams, DEFAULT_PARTY_B_ADDRESS, DEFAULT_PRECISION, type DeallocateParams, type DepositAndAllocateParams, type DepositParams, ERC20ABI, FALLBACK_CHAIN_ID, type FinalizeWithdrawParams, type InitiateWithdrawParams, type InstantAuthToken, type InstantCloseParams, type InstantCloseResponse, InstantCloseStatus, type InstantErrorResponse, type InstantLoginParams, type InstantOpenParams, type InstantOpenResponse, InstantWithdrawStatus, type InstantWithdrawTxHashes, type InsuranceVaultConfig, type InternalTransferParams, LIMIT_ORDER_DEADLINE, LiquidationStatus, MARKET_ORDER_DEADLINE, MARKET_PRICE_COEFFICIENT, MAX_LEVERAGE, MULTI_ACCOUNT_ADDRESS, MUON_APP_NAME, MUON_BASE_URLS, type Market, MultiAccountABI, type MuonBatchParams, type MuonBatchSig, MuonClient, type MuonClientConfig, type MuonDeallocateParams, type MuonQuoteParams, type MuonSingleUpnlAndPriceSig, type MuonSingleUpnlSig, type MuonSingleUpnlWithPendingBalanceSig, MuonVerifierABI, OrderType, PositionType, type PreparedTransaction, type Quote, QuoteStatus, type RegisterAffiliateParams, type RequestCancelWithdrawParams, SEND_QUOTE_WITH_AFFILIATE_SELECTOR, SIGNATURE_STORE_ADDRESS, STANDARD_WITHDRAW_COOLDOWN, SYMMIO_DIAMOND_ADDRESS, type SchnorrSign, type SendQuoteParams, type SetAffiliateFeeParams, SignatureStoreABI, type SiweMessageResult, SoftLiquidationLevel, type SoftLiquidationThreshold, SupportedChainId, type SymbolCategory, type SymbolType, type SymmAccountBalanceInfoLike, type SymmAccountDataLike, type SymmAccountNumericValue, type SymmAccountOverview, type SymmAccountOverviewInput, type SymmDepositWithdrawalTotals, type SymmMarkPrices, type SymmPnlAssetLegLike, type SymmPnlNumericValue, type SymmPnlPositionLike, type SymmPositionPnlResult, type SymmUpnlWebSocketMessage, SymmioDiamondABI, type SymmioSDKConfig, SymmioSDKError, type TransactionConfig, type TransactionReceipt, type TransactionResult, V3_CHAIN_IDS, WithdrawFacetABI, type WithdrawOption, type WithdrawReceiverPart, WithdrawSpeed, WithdrawStatus, ZERO_ADDRESS, account as accountActions, admin as adminActions, allocate$1 as allocateActions, applySlippage, approval as approvalActions, calculateGasMargin, cancel as cancelActions, close as closeActions, computeSymmAccountOverview, computeSymmAccountOverviewFromData, computeSymmNetDeposited, computeSymmPositionUpnl, computeSymmPositionsUpnl, delegation as delegationActions, deposit$1 as depositActions, encodeCall, formatPrice, fromWei, getAddress, getSymmAccountBalanceInfo, getSymmAccountData, instant as instantActions, normalizeSymmUpnlWebSocketMessage, signature as signatureActions, stats as statsActions, toWei, trade as tradeActions, validateAddress, validateAmount, validateChainId, validateDeadline, validateQuantity, withdraw as withdrawActions, wrapInProxyCall };