aftermath-ts-sdk 5.1.1 → 6.0.0-dev.abf3dae

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.ts CHANGED
@@ -2208,8 +2208,8 @@ interface ApiRewardsDistributionResponse {
2208
2208
  interface PerpetualsSponsorConfig {
2209
2209
  /**
2210
2210
  * Wallet address to use for gas pool sponsorship. Must be the connected
2211
- * wallet: af-fe now verifies the sponsor and refuses a request naming any
2212
- * other address with error 2034 before it reaches the pool.
2211
+ * wallet: the API verifies the sponsor and refuses a request naming any
2212
+ * other address with error 2034 before it reaches the gas pool.
2213
2213
  */
2214
2214
  walletAddress: SuiAddress;
2215
2215
  /**
@@ -2734,10 +2734,14 @@ interface PerpetualsOrderData {
2734
2734
  /**
2735
2735
  * Optional integrator fee configuration for an order.
2736
2736
  *
2737
- * When provided, this allows an approved integrator to collect a fee on the taker
2738
- * volume generated by this order. The integrator must have been previously approved
2739
- * by the user via the create-integration endpoint, and the taker fee must not exceed
2740
- * the maximum fee approved by the user.
2737
+ * Integrators register once globally and are assigned a numeric `integratorId`.
2738
+ * A user then approves an integrator by creating an integrator config with a
2739
+ * `maxIntegratorFee` (see
2740
+ * {@link ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody}). Orders placed
2741
+ * on that user's behalf attach the integrator id and the fee to charge here.
2742
+ *
2743
+ * The fee is charged on the notional filled by the order and follows the order,
2744
+ * so it applies to both taker and maker fills.
2741
2745
  */
2742
2746
  interface PerpetualsBuilderCodeParamaters {
2743
2747
  /**
@@ -2748,11 +2752,11 @@ interface PerpetualsBuilderCodeParamaters {
2748
2752
  */
2749
2753
  integratorId: number;
2750
2754
  /**
2751
- * Integrator fee (as a decimal) to be charged on this order's taker volume.
2755
+ * Integrator fee (as a decimal) charged on the notional filled by this order.
2752
2756
  *
2753
2757
  * For example, 0.0005 represents a 0.05% fee. This value must not exceed
2754
- * the maximum integrator fee that the user approved for this integrator.
2755
- * The fee is only applied to taker volume (not maker volume).
2758
+ * the `maxIntegratorFee` that the user approved for this integrator. The fee
2759
+ * follows the order, so it is collected on taker and maker fills alike.
2756
2760
  */
2757
2761
  integratorFee: Percentage;
2758
2762
  }
@@ -3764,6 +3768,43 @@ interface ApiPerpetualsAccountPositionsBody {
3764
3768
  /** Optional market filter applied to each account's positions. */
3765
3769
  marketIds?: PerpetualsMarketId[];
3766
3770
  }
3771
+ /**
3772
+ * Request body for fetching daily realized PnL calendars for a set of accounts.
3773
+ */
3774
+ interface ApiPerpetualsAccountsPnlCalendarBody {
3775
+ /** 1 to 50 perpetuals account IDs. Duplicates are ignored. */
3776
+ accountIds: PerpetualsAccountId[];
3777
+ }
3778
+ /**
3779
+ * Realized results for a single UTC calendar day.
3780
+ */
3781
+ interface PerpetualsAccountPnlCalendarDay {
3782
+ /** Inclusive UTC day start in milliseconds since Unix epoch. */
3783
+ timestampMs: Timestamp;
3784
+ /** Realized trading PnL for the day in USD, before fees. */
3785
+ realizedPnlUsd: number;
3786
+ /** Realized funding for the day in USD, separate from trading PnL. */
3787
+ realizedFundingsUsd: number;
3788
+ }
3789
+ /**
3790
+ * Daily realized PnL calendar for one account.
3791
+ */
3792
+ interface PerpetualsAccountPnlCalendar {
3793
+ /** Perpetuals account ID. */
3794
+ accountId: PerpetualsAccountId;
3795
+ /**
3796
+ * Ascending daily results from account creation through today, including
3797
+ * zero days. Today is partial. Unknown accounts return an empty array.
3798
+ */
3799
+ pnlCalendar: PerpetualsAccountPnlCalendarDay[];
3800
+ }
3801
+ /**
3802
+ * Response payload for fetching daily realized PnL calendars.
3803
+ */
3804
+ interface ApiPerpetualsAccountsPnlCalendarResponse {
3805
+ /** One calendar per distinct requested account, in request order. */
3806
+ accounts: PerpetualsAccountPnlCalendar[];
3807
+ }
3767
3808
  /**
3768
3809
  * Response payload for fetching admin account caps by explicit account IDs.
3769
3810
  */
@@ -4249,9 +4290,10 @@ interface ApiPerpetualsMaxOrderSizeBody {
4249
4290
  * Optional integrator fee configuration for an order.
4250
4291
  *
4251
4292
  * If provided, the integrator specified in the configuration will receive a fee
4252
- * on the taker volume generated by this order. The integrator must have been
4293
+ * on the notional filled by this order. The fee follows the order, so it is
4294
+ * charged on both taker and maker fills. The integrator must have been
4253
4295
  * previously approved by the account owner, and the fee must not exceed the
4254
- * maximum fee the user approved for that integrator.
4296
+ * `maxIntegratorFee` the user approved for that integrator.
4255
4297
  */
4256
4298
  builderCode?: PerpetualsBuilderCodeParamaters;
4257
4299
  }
@@ -4288,6 +4330,107 @@ interface ApiPerpetualsStopOrderDatasResponse {
4288
4330
  /** Stop-order tickets returned for the requested account or vault. */
4289
4331
  stopOrderDatas: PerpetualsStopOrderData[];
4290
4332
  }
4333
+ /**
4334
+ * Inclusive mark-price comparison direction for TWAP price conditions.
4335
+ *
4336
+ * Wire values are snake_case enum labels from the perpetuals HTTP API:
4337
+ *
4338
+ * - `"above"` — activate or stop when mark price is greater than or equal to
4339
+ * the level
4340
+ * - `"below"` — activate or stop when mark price is less than or equal to
4341
+ * the level
4342
+ */
4343
+ type PerpetualsTwapPriceConditionDirection = "above" | "below";
4344
+ /**
4345
+ * Create-only price conditions for a new TWAP order.
4346
+ *
4347
+ * Directions are not sent — the perpetuals HTTP API derives them from the
4348
+ * mark price at creation. Omit unused keys; omit the object entirely when
4349
+ * both fields are empty (unconditional TWAP).
4350
+ *
4351
+ * Mark prices are human-readable numbers, matching stop-order trigger prices
4352
+ * and public perpetuals market prices.
4353
+ *
4354
+ * Each price must be finite and greater than zero. `NaN` and `Infinity`
4355
+ * serialize to JSON `null`, which the perpetuals HTTP API reads as "no
4356
+ * condition" — an unconditional TWAP rather than an error. Validate before
4357
+ * calling.
4358
+ */
4359
+ interface PerpetualsTwapCreatePriceConditions {
4360
+ /**
4361
+ * Mark price that delays first execution until the derived trigger
4362
+ * condition is met. Finite and greater than zero.
4363
+ */
4364
+ triggerMarkPrice?: number;
4365
+ /**
4366
+ * Mark price that requests cancellation of the unexecuted remainder after
4367
+ * activation. Finite and greater than zero.
4368
+ */
4369
+ stopMarkPrice?: number;
4370
+ }
4371
+ /**
4372
+ * A single normalized inclusive mark-price condition on a TWAP order response.
4373
+ */
4374
+ interface PerpetualsTwapPriceCondition {
4375
+ /** Comparison direction returned by the perpetuals HTTP API. */
4376
+ direction: PerpetualsTwapPriceConditionDirection;
4377
+ /**
4378
+ * Human-readable mark price level from the TWAP order response.
4379
+ */
4380
+ markPrice: number;
4381
+ }
4382
+ /**
4383
+ * Normalized executor-managed price conditions on a TWAP order response.
4384
+ *
4385
+ * Omitted for legacy / unconditional TWAPs. Conditions are evaluated
4386
+ * off-chain against market data, not by the Move contract.
4387
+ */
4388
+ interface PerpetualsTwapOrderPriceConditions {
4389
+ /** Trigger condition that delayed activation, when configured. */
4390
+ triggerCondition?: PerpetualsTwapPriceCondition;
4391
+ /** Stop condition that may cancel the unexecuted remainder, when configured. */
4392
+ stopCondition?: PerpetualsTwapPriceCondition;
4393
+ /**
4394
+ * Milliseconds since the Unix epoch when the trigger first activated.
4395
+ * Absent while still waiting for the trigger.
4396
+ */
4397
+ triggerActivatedAtMs?: Timestamp;
4398
+ }
4399
+ /**
4400
+ * Failed TWAP action reported on a TWAP order response from the perpetuals
4401
+ * HTTP API (`snake_case` wire labels).
4402
+ *
4403
+ * - `"execute"` — chunk execution attempt failed
4404
+ * - `"finalize"` — finalization attempt failed
4405
+ * - `"cancel"` — cancellation attempt failed
4406
+ */
4407
+ type PerpetualsTwapOrderAction = "execute" | "finalize" | "cancel";
4408
+ /**
4409
+ * Latest unresolved TWAP action error on a TWAP order response.
4410
+ *
4411
+ * Surfaced by the perpetuals HTTP API. JSON `null` is converted to
4412
+ * `undefined` by the SDK decode path (`Caller` / `Helpers.parseJsonWithBigint`),
4413
+ * so clients only see omit/undefined when no error is present.
4414
+ */
4415
+ interface PerpetualsTwapOrderLastError {
4416
+ /** Stable product-facing error code for localization. */
4417
+ code: string;
4418
+ /** Controlled user-facing fallback message from the perpetuals HTTP API. */
4419
+ message: string;
4420
+ /** Failed action that produced this error. */
4421
+ action: PerpetualsTwapOrderAction;
4422
+ /**
4423
+ * Whether the failure is considered retryable. Does not imply a retry is
4424
+ * currently running or change `orderState`.
4425
+ */
4426
+ retryable: boolean;
4427
+ /** Milliseconds since the Unix epoch when the error occurred. */
4428
+ occurredAtMs: Timestamp;
4429
+ /** Move module that emitted the abort, when this is a protocol error. */
4430
+ protocolModule?: string;
4431
+ /** Move abort code, when this is a protocol error. */
4432
+ protocolCode?: MoveErrorCode;
4433
+ }
4291
4434
  /**
4292
4435
  * Per-order TWAP (time-weighted-average-price) request payload.
4293
4436
  */
@@ -4325,6 +4468,13 @@ interface PerpetualsTwapOrderDetails {
4325
4468
  maxSlippageBps: Bps;
4326
4469
  /** Optional integrator fee configuration (friendly fractional fee). */
4327
4470
  builderCode?: PerpetualsBuilderCodeParamaters;
4471
+ /**
4472
+ * Create-only price conditions. Directions are not sent — the perpetuals
4473
+ * HTTP API derives them from mark price at creation. Omit unused keys;
4474
+ * omit the object for an unconditional TWAP. Cannot be edited after
4475
+ * creation (cancel and recreate).
4476
+ */
4477
+ priceConditions?: PerpetualsTwapCreatePriceConditions;
4328
4478
  }
4329
4479
  /**
4330
4480
  * Lifecycle state of a TWAP order.
@@ -4333,10 +4483,11 @@ type PerpetualsTwapOrderState = "unknown" | "invalid" | "pending" | "active" | "
4333
4483
  /**
4334
4484
  * Per-order TWAP details as returned by the read endpoint.
4335
4485
  *
4336
- * Same fields as {@link PerpetualsTwapOrderDetails} minus `builderCode`, which
4337
- * the read response does not include.
4486
+ * Same fields as {@link PerpetualsTwapOrderDetails} minus `builderCode` and
4487
+ * `priceConditions`, which the read response does not include. Normalized
4488
+ * price conditions are returned on {@link PerpetualsTwapOrderData} instead.
4338
4489
  */
4339
- type PerpetualsTwapOrderDetailsData = Omit<PerpetualsTwapOrderDetails, "builderCode">;
4490
+ type PerpetualsTwapOrderDetailsData = Omit<PerpetualsTwapOrderDetails, "builderCode" | "priceConditions">;
4340
4491
  /**
4341
4492
  * A TWAP order as surfaced to clients by the read endpoint.
4342
4493
  */
@@ -4351,6 +4502,12 @@ interface PerpetualsTwapOrderData {
4351
4502
  invalidReason?: string;
4352
4503
  /** Free-form status message about the order, if any. */
4353
4504
  statusMessage?: string;
4505
+ /**
4506
+ * Latest unresolved action error from the perpetuals HTTP API. JSON `null`
4507
+ * on the wire becomes `undefined` after SDK decode, so omit/undefined means
4508
+ * no current error.
4509
+ */
4510
+ lastError?: PerpetualsTwapOrderLastError;
4354
4511
  /** Order details. */
4355
4512
  details: PerpetualsTwapOrderDetailsData;
4356
4513
  /** Base-asset amount already executed (scaled base units). */
@@ -4359,13 +4516,26 @@ interface PerpetualsTwapOrderData {
4359
4516
  scheduledAmount: bigint;
4360
4517
  /** Timestamp (ms since epoch) of the most recent chunk execution. */
4361
4518
  lastExecutionTimestampMs: Timestamp;
4519
+ /**
4520
+ * Order creation time (ms since epoch). Prefer this over
4521
+ * `lastExecutionTimestampMs` for newest-first sorting.
4522
+ */
4523
+ orderCreationTimestampMs?: Timestamp;
4524
+ /**
4525
+ * Normalized trigger/stop conditions from the TWAP order response.
4526
+ * Omitted for unconditional / legacy TWAPs.
4527
+ */
4528
+ priceConditions?: PerpetualsTwapOrderPriceConditions;
4362
4529
  }
4363
4530
  /**
4364
4531
  * Edit to apply to an existing TWAP order. Any field left undefined is unchanged.
4532
+ *
4533
+ * `newDetails` omits create-only {@link PerpetualsTwapCreatePriceConditions};
4534
+ * price conditions cannot be changed after creation (cancel and recreate).
4365
4535
  */
4366
4536
  interface PerpetualsTwapOrderEdit {
4367
- /** Replacement order details (full set). */
4368
- newDetails?: PerpetualsTwapOrderDetails;
4537
+ /** Replacement order details (full set except create-only price conditions). */
4538
+ newDetails?: Omit<PerpetualsTwapOrderDetails, "priceConditions">;
4369
4539
  /** Replacement set of authorized executor addresses. */
4370
4540
  newExecutors?: string[];
4371
4541
  }
@@ -4582,8 +4752,9 @@ type ApiPerpetualsCreateVaultBody = {
4582
4752
  * Request payload for creating an integrator configuration approval transaction.
4583
4753
  *
4584
4754
  * This transaction allows a user to approve an integrator to receive fees on orders
4585
- * placed on their behalf. The user sets a maximum taker fee that the integrator
4586
- * can charge per order.
4755
+ * placed on their behalf. The user sets the `maxIntegratorFee` that the integrator
4756
+ * can charge per order; orders then attach a `builderCode` with the integrator id
4757
+ * and the fee to charge (see {@link PerpetualsBuilderCodeParamaters}).
4587
4758
  */
4588
4759
  interface ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody {
4589
4760
  /**
@@ -4643,77 +4814,11 @@ interface ApiPerpetualsBuilderCodesRemoveIntegratorConfigTxBody {
4643
4814
  /** Optional cached gas-pool sponsorship data. */
4644
4815
  sponsor?: PerpetualsSponsorConfig;
4645
4816
  }
4646
- /**
4647
- * Request payload for creating a transaction to initialize an integrator fee vault.
4648
- *
4649
- * Before an integrator can claim fees, they must first create a global vault.
4650
- * This is a one-time setup per integrator and applies across all markets. The
4651
- * integrator's identity (address) is taken from the transaction sender on-chain.
4652
- */
4653
- interface ApiPerpetualsBuilderCodesCreateIntegratorVaultTxBody {
4654
- /**
4655
- * Optional existing transaction kind (base64-encoded) to extend.
4656
- *
4657
- * If provided, the vault creation will be added to this transaction.
4658
- */
4659
- txKind?: SerializedTransaction;
4660
- /** Optional cached gas-pool sponsorship data. */
4661
- sponsor?: PerpetualsSponsorConfig;
4662
- }
4663
- /**
4664
- * Request payload for creating a transaction to claim accumulated integrator fees from a vault.
4665
- *
4666
- * Integrators earn fees on taker volume generated by orders they submit on behalf of users.
4667
- * These fees accumulate in a global vault per integrator and can be claimed at any time.
4668
- */
4669
- interface ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxBody {
4670
- /**
4671
- * Numeric integrator id (as assigned by the registry).
4672
- *
4673
- * Only the integrator who earned the fees can claim them. Integrator vaults
4674
- * are global across markets, so no clearing-house id is required.
4675
- */
4676
- integratorId: number;
4677
- /**
4678
- * Optional recipient address for the claimed fees.
4679
- *
4680
- * When provided, the transaction will include on-chain transfers of all
4681
- * claimed coins to this address. When omitted, the claimed coins are exposed
4682
- * as transaction arguments that can be used in subsequent commands.
4683
- */
4684
- recipientAddress?: SuiAddress;
4685
- /**
4686
- * Optional existing transaction kind (base64-encoded) to extend.
4687
- *
4688
- * If provided, the fee claim will be added to this transaction.
4689
- */
4690
- txKind?: SerializedTransaction;
4691
- }
4692
- /**
4693
- * Response payload for claim integrator vault fees transaction.
4694
- *
4695
- * Contains the transaction kind and optionally the coin output arguments when
4696
- * no recipient address was provided.
4697
- */
4698
- interface ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxResponse {
4699
- /**
4700
- * Base64-encoded Sui `TransactionKind` representing the claim (and
4701
- * optional transfer) transaction.
4702
- */
4703
- txKind: SerializedTransaction;
4704
- /**
4705
- * When `recipientAddress` is omitted, this contains readable arguments
4706
- * pointing to each claimed coin output (one per non-zero collateral balance
4707
- * held by the integrator's global vault), so callers can wire them into
4708
- * subsequent steps. Empty if the vault holds no balances.
4709
- */
4710
- coinOutArgs?: TransactionObjectArgument[];
4711
- }
4712
4817
  /**
4713
4818
  * Request payload for fetching integrator configuration for a specific account and integrator.
4714
4819
  *
4715
4820
  * This endpoint checks whether an integrator has been approved by an account to collect fees,
4716
- * and if so, returns the maximum taker fee the integrator is authorized to charge.
4821
+ * and if so, returns the `maxIntegratorFee` the integrator is authorized to charge.
4717
4822
  */
4718
4823
  interface ApiPerpetualsBuilderCodesIntegratorConfigBody {
4719
4824
  /**
@@ -4751,53 +4856,6 @@ interface ApiPerpetualsBuilderCodesIntegratorConfigResponse {
4751
4856
  */
4752
4857
  exists: boolean;
4753
4858
  }
4754
- /**
4755
- * Accumulated integrator vault fees for a single collateral coin type.
4756
- *
4757
- * Integrator vaults are global (one per integrator across all markets), so fees
4758
- * are grouped by collateral coin type rather than by market.
4759
- */
4760
- interface PerpetualsIntegratorVaultData {
4761
- /**
4762
- * The collateral coin type these fees are denominated in.
4763
- */
4764
- collateralCoinType: CoinType;
4765
- /**
4766
- * Total accumulated fees in the collateral currency that are available to claim.
4767
- */
4768
- fees: number;
4769
- /**
4770
- * Total accumulated fees converted to USD.
4771
- */
4772
- feesUsd: number;
4773
- }
4774
- /**
4775
- * Request payload for fetching integrator vault fees.
4776
- *
4777
- * This endpoint returns the accumulated fees an integrator has earned in their
4778
- * global vault, grouped by collateral coin type. Vaults are global per integrator
4779
- * (not per market), so a single request covers all markets.
4780
- */
4781
- interface ApiPerpetualsBuilderCodesIntegratorVaultsBody {
4782
- /**
4783
- * Numeric integrator id (as assigned by the registry) whose vault fees are
4784
- * being queried.
4785
- */
4786
- integratorId: number;
4787
- }
4788
- /**
4789
- * Response payload containing accumulated fees per collateral type for an integrator.
4790
- *
4791
- * Returns a vector of integrator vault data, one entry per collateral coin type
4792
- * with a non-zero balance in the integrator's global vault.
4793
- */
4794
- interface ApiPerpetualsBuilderCodesIntegratorVaultsResponse {
4795
- /**
4796
- * Vector of integrator vault data containing collateral coin types and their
4797
- * accumulated fees.
4798
- */
4799
- integratorVaults: PerpetualsIntegratorVaultData[];
4800
- }
4801
4859
  /**
4802
4860
  * Request body for creating a new perpetuals account for a given wallet
4803
4861
  * and collateral coin type.
@@ -5153,9 +5211,10 @@ type ApiPerpetualsMarketOrderBody = {
5153
5211
  * Optional integrator fee configuration for this order.
5154
5212
  *
5155
5213
  * If provided, the integrator specified in the configuration will receive a fee
5156
- * on the taker volume generated by this order. The integrator must have been
5214
+ * on the notional filled by this order. The fee follows the order, so it is
5215
+ * charged on both taker and maker fills. The integrator must have been
5157
5216
  * previously approved by the account owner, and the fee must not exceed the
5158
- * maximum fee the user approved for that integrator.
5217
+ * `maxIntegratorFee` the user approved for that integrator.
5159
5218
  */
5160
5219
  builderCode?: PerpetualsBuilderCodeParamaters;
5161
5220
  /** Optional serialized transaction kind if assembled by the API. */
@@ -5222,9 +5281,10 @@ type ApiPerpetualsLimitOrderBody = {
5222
5281
  * Optional integrator fee configuration for this order.
5223
5282
  *
5224
5283
  * If provided, the integrator specified in the configuration will receive a fee
5225
- * on the taker volume generated by this order. The integrator must have been
5284
+ * on the notional filled by this order. The fee follows the order, so it is
5285
+ * charged on both taker and maker fills. The integrator must have been
5226
5286
  * previously approved by the account owner, and the fee must not exceed the
5227
- * maximum fee the user approved for that integrator.
5287
+ * `maxIntegratorFee` the user approved for that integrator.
5228
5288
  */
5229
5289
  builderCode?: PerpetualsBuilderCodeParamaters;
5230
5290
  /**
@@ -5520,8 +5580,8 @@ interface ApiPerpetualsMarketsBody {
5520
5580
  marketIds: PerpetualsMarketId[];
5521
5581
  }
5522
5582
  /**
5523
- * Display metadata for a market: ticker symbols, label, artwork and
5524
- * category.
5583
+ * Display metadata for a market: ticker symbols, label, artwork, category
5584
+ * and tags.
5525
5585
  *
5526
5586
  * Presentation data only — none of it affects pricing, margin or execution.
5527
5587
  */
@@ -5532,13 +5592,58 @@ interface PerpetualsMarketMetadata {
5532
5592
  displayName?: string;
5533
5593
  /** Long-form blurb describing the market. Absent when unset. */
5534
5594
  description?: string;
5535
- /** Grouping label, e.g. `"Crypto"`, `"Commodities"`, `"Equities"`. */
5595
+ /**
5596
+ * The market's single top-level grouping, e.g. `"Crypto"` or `"TradFi"`.
5597
+ *
5598
+ * Always names one of the categories returned by
5599
+ * `Perpetuals.getMarketsCategories`. It is an opaque label resolved against
5600
+ * that response rather than a fixed set, so new categories appear without an
5601
+ * SDK release.
5602
+ */
5536
5603
  category: string;
5604
+ /**
5605
+ * Second-tier filter labels within `category`. A market may carry several,
5606
+ * and each one is declared under its own category by
5607
+ * `Perpetuals.getMarketsCategories`.
5608
+ *
5609
+ * Absent or empty means the market shows only under its category's
5610
+ * unfiltered view.
5611
+ */
5612
+ tags?: string[];
5537
5613
  /** Icon location for the market, e.g. `"/markets/btc.png"`. */
5538
5614
  image: string;
5539
5615
  /** Collateral asset ticker, e.g. `"USDC"`. */
5540
5616
  collateralSymbol: string;
5541
5617
  }
5618
+ /**
5619
+ * One top-level market grouping and the tags beneath it.
5620
+ *
5621
+ * Categories partition the markets — each market names exactly one — while
5622
+ * tags subdivide a category, and a market may carry any number of them.
5623
+ */
5624
+ interface PerpetualsMarketCategory {
5625
+ /** Category label, compared exactly against `PerpetualsMarketMetadata.category`. */
5626
+ name: string;
5627
+ /**
5628
+ * Tag labels in display order, compared exactly against
5629
+ * `PerpetualsMarketMetadata.tags`.
5630
+ */
5631
+ tags: string[];
5632
+ }
5633
+ /**
5634
+ * Response payload for `Perpetuals.getMarketsCategories`.
5635
+ */
5636
+ interface ApiPerpetualsMarketsCategoriesResponse {
5637
+ /**
5638
+ * Top-level market categories in display order, each carrying its tags in
5639
+ * display order.
5640
+ *
5641
+ * Empty while the backing static configuration is unavailable, in which case
5642
+ * callers should fall back to an unfiltered market list rather than render an
5643
+ * empty picker.
5644
+ */
5645
+ categories: PerpetualsMarketCategory[];
5646
+ }
5542
5647
  /**
5543
5648
  * Response payload for {@link ApiPerpetualsMarketsBody}.
5544
5649
  *
@@ -13927,6 +14032,26 @@ declare class Perpetuals extends Caller {
13927
14032
  * If `accountIds` is empty, this returns `{ accounts: [] }` without making an API call.
13928
14033
  */
13929
14034
  getAccountObjects(inputs: ApiPerpetualsAccountPositionsBody): Promise<ApiPerpetualsAccountPositionsResponse>;
14035
+ /**
14036
+ * Fetch daily realized PnL and funding for one or more accounts, bucketed
14037
+ * by UTC calendar day from account creation through today.
14038
+ *
14039
+ * @param inputs.accountIds - 1 to 50 account IDs to query.
14040
+ *
14041
+ * @returns `ApiPerpetualsAccountsPnlCalendarResponse` containing one
14042
+ * calendar per distinct account.
14043
+ *
14044
+ * @remarks
14045
+ * If `accountIds` is empty, this returns `{ accounts: [] }` without making an API call.
14046
+ *
14047
+ * @example
14048
+ * ```ts
14049
+ * const { accounts } = await perps.getAccountsPnlCalendar({
14050
+ * accountIds: [123n],
14051
+ * });
14052
+ * ```
14053
+ */
14054
+ getAccountsPnlCalendar(inputs: ApiPerpetualsAccountsPnlCalendarBody): Promise<ApiPerpetualsAccountsPnlCalendarResponse>;
13930
14055
  /**
13931
14056
  * Fetch all account caps (perpetuals accounts) owned by a wallet, optionally
13932
14057
  * filtered by collateral coin types.
@@ -14036,6 +14161,32 @@ declare class Perpetuals extends Caller {
14036
14161
  getMarkets24hrStats(inputs: {
14037
14162
  marketIds: PerpetualsMarketId[];
14038
14163
  }): Promise<ApiPerpetualsMarkets24hrStatsResponse>;
14164
+ /**
14165
+ * Fetch the category and tag labels that group markets in a picker UI.
14166
+ *
14167
+ * The response is the vocabulary behind `PerpetualsMarketMetadata.category`
14168
+ * and `PerpetualsMarketMetadata.tags`: every market names exactly one of
14169
+ * these categories, and each of its tags is declared under that category.
14170
+ * Both lists come back in display order.
14171
+ *
14172
+ * The labels are configuration rather than a fixed enum, so resolve a
14173
+ * market's metadata against this response instead of hard-coding them.
14174
+ *
14175
+ * @param abortSignal - Optional cancellation signal.
14176
+ * @returns `ApiPerpetualsMarketsCategoriesResponse` containing `categories`.
14177
+ *
14178
+ * @remarks
14179
+ * `categories` is empty when the backing static configuration is unavailable.
14180
+ * Treat that as "no grouping" and show every market rather than rendering an
14181
+ * empty picker.
14182
+ *
14183
+ * @example
14184
+ * ```ts
14185
+ * const { categories } = await perps.getMarketsCategories();
14186
+ * // [{ name: "Crypto", tags: ["Layer 1", "DeFi", ...] }, ...]
14187
+ * ```
14188
+ */
14189
+ getMarketsCategories(abortSignal?: AbortSignal): Promise<ApiPerpetualsMarketsCategoriesResponse>;
14039
14190
  /**
14040
14191
  * Fetch the latest prices for one or more markets.
14041
14192
  *
@@ -14289,7 +14440,7 @@ declare class Perpetuals extends Caller {
14289
14440
  * collect fees on orders placed on behalf of the user. Once revoked, the integrator
14290
14441
  * will no longer be able to submit orders with integrator fees for this account.
14291
14442
  * The user can re-approve the integrator at any time by calling
14292
- * `getCreateIntegratorConfigTx` again.
14443
+ * `getCreateBuilderCodeIntegratorConfigTx` again.
14293
14444
  *
14294
14445
  * The resulting transaction must be signed by the account owner and executed on-chain.
14295
14446
  *
@@ -14309,68 +14460,6 @@ declare class Perpetuals extends Caller {
14309
14460
  }): Promise<Omit<ApiTransactionResponse, "txKind"> & {
14310
14461
  tx: Transaction;
14311
14462
  }>;
14312
- /**
14313
- * Build a transaction to initialize an integrator's global fee vault.
14314
- *
14315
- * This endpoint creates a transaction that initializes the global vault where an
14316
- * integrator's fees accumulate across all markets. This is a one-time setup that
14317
- * must be performed before the integrator can claim fees. The integrator's identity
14318
- * is taken from the transaction sender on-chain.
14319
- *
14320
- * The resulting transaction must be signed by the integrator and executed on-chain.
14321
- *
14322
- * @param inputs - {@link ApiPerpetualsBuilderCodesCreateIntegratorVaultTxBody}.
14323
- * @returns `SdkTransactionResponse` with `tx`.
14324
- *
14325
- * @example
14326
- * ```ts
14327
- * const tx = await perps.getCreateBuilderCodeIntegratorVaultTx({});
14328
- * ```
14329
- */
14330
- getCreateBuilderCodeIntegratorVaultTx(inputs: Omit<ApiPerpetualsBuilderCodesCreateIntegratorVaultTxBody, "txKind"> & {
14331
- tx?: Transaction;
14332
- }): Promise<Omit<ApiTransactionResponse, "txKind"> & {
14333
- tx: Transaction;
14334
- }>;
14335
- /**
14336
- * Build a transaction to claim accumulated integrator fees from a vault.
14337
- *
14338
- * This endpoint creates a transaction that allows an integrator to claim the fees
14339
- * they have earned from orders placed on behalf of users. Fees accumulate in the
14340
- * integrator's global vault (across all markets) and can be claimed at any moment.
14341
- * The fees are proportional to the taker volume generated by the users' orders that
14342
- * the integrator submitted.
14343
- *
14344
- * If a `recipientAddress` is provided, the claimed fees will be automatically
14345
- * transferred to that address. Otherwise, the coin outputs are exposed as transaction
14346
- * arguments for further use in the transaction (one per non-zero collateral balance).
14347
- *
14348
- * The resulting transaction must be signed by the integrator and executed on-chain.
14349
- *
14350
- * @param inputs - {@link ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxBody}.
14351
- * @returns `ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxResponse` containing
14352
- * `txKind` and optionally `coinOutArgs`.
14353
- *
14354
- * @example
14355
- * ```ts
14356
- * // Claim with automatic transfer to recipient
14357
- * const response = await perps.getClaimBuilderCodeIntegratorVaultFeesTx({
14358
- * integratorId: 7,
14359
- * recipientAddress: "0x...",
14360
- * });
14361
- *
14362
- * // Claim with coin outputs for further use
14363
- * const response = await perps.getClaimBuilderCodeIntegratorVaultFeesTx({
14364
- * integratorId: 7,
14365
- * });
14366
- * // response.coinOutArgs can be used in subsequent transaction commands
14367
- * ```
14368
- */
14369
- getClaimBuilderCodeIntegratorVaultFeesTx(inputs: Omit<ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxBody, "txKind"> & {
14370
- tx?: Transaction;
14371
- }): Promise<Omit<ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxResponse, "txKind"> & {
14372
- tx: Transaction;
14373
- }>;
14374
14463
  /**
14375
14464
  * Fetch integrator configuration for a specific account and integrator.
14376
14465
  *
@@ -14400,39 +14489,6 @@ declare class Perpetuals extends Caller {
14400
14489
  * ```
14401
14490
  */
14402
14491
  getBuilderCodeIntegratorConfig(inputs: ApiPerpetualsBuilderCodesIntegratorConfigBody): Promise<ApiPerpetualsBuilderCodesIntegratorConfigResponse>;
14403
- /**
14404
- * Fetch accumulated integrator vault fees.
14405
- *
14406
- * This endpoint queries the total fees an integrator has earned and accumulated in
14407
- * their global vault, grouped by collateral coin type. Integrators earn fees
14408
- * proportional to the taker volume generated by orders they submit on behalf of
14409
- * users. These fees can be claimed at any time using
14410
- * {@link getClaimBuilderCodeIntegratorVaultFeesTx}.
14411
- *
14412
- * This information is useful for:
14413
- * - Displaying total claimable fees to integrators in dashboards
14414
- * - Monitoring fee accrual across collateral types
14415
- * - Determining whether fees are ready to be claimed
14416
- *
14417
- * @param inputs - {@link ApiPerpetualsBuilderCodesIntegratorVaultsBody}.
14418
- * @returns `ApiPerpetualsBuilderCodesIntegratorVaultsResponse` containing
14419
- * a vector of per-collateral vault data with accumulated fees.
14420
- *
14421
- * @example
14422
- * ```ts
14423
- * const vaultFees = await perps.getBuilderCodeIntegratorVaults({
14424
- * integratorId: 7,
14425
- * });
14426
- *
14427
- * for (const vault of vaultFees.integratorVaults) {
14428
- * console.log(`${vault.collateralCoinType}: ${vault.fees} collateral units claimable`);
14429
- * }
14430
- *
14431
- * const totalFeesUsd = vaultFees.integratorVaults.reduce((sum, vault) => sum + vault.feesUsd, 0);
14432
- * console.log(`Total claimable (USD): ${totalFeesUsd}`);
14433
- * ```
14434
- */
14435
- getBuilderCodeIntegratorVaults(inputs: ApiPerpetualsBuilderCodesIntegratorVaultsBody): Promise<ApiPerpetualsBuilderCodesIntegratorVaultsResponse>;
14436
14492
  /**
14437
14493
  * Determine the logical order side (Bid/Ask) from a signed base asset amount.
14438
14494
  *
@@ -14626,14 +14682,14 @@ declare class Perpetuals extends Caller {
14626
14682
  close: () => void;
14627
14683
  };
14628
14684
  /**
14629
- * Open a market-candles websocket stream for a single market/interval:
14630
- * `/perpetuals/ws/market-candles/{market_id}/{interval_ms}`.
14685
+ * Open a market-candles subscription for a single market/interval on
14686
+ * `/perpetuals/ws/updates`.
14631
14687
  *
14632
14688
  * The stream emits {@link PerpetualsWsCandleResponseMessage} messages,
14633
14689
  * typically containing the latest candle for the specified interval.
14634
14690
  *
14635
14691
  * @param args.marketId - Market ID to subscribe to.
14636
- * The input contains the candle interval in milliseconds.
14692
+ * @param args.interval - Timeframe label such as `"1m"` or `"1h"`.
14637
14693
  * @param args.onMessage - Handler for incoming candle updates.
14638
14694
  * @param args.onOpen - Optional hook called when the websocket opens.
14639
14695
  * @param args.onError - Optional hook called on websocket error.
@@ -14645,7 +14701,7 @@ declare class Perpetuals extends Caller {
14645
14701
  * ```ts
14646
14702
  * const stream = perps.openMarketCandlesWebsocketStream({
14647
14703
  * marketId: "0x...",
14648
- * intervalMs: 60_000,
14704
+ * interval: "1m",
14649
14705
  * onMessage: ({ lastCandle }) => console.log(lastCandle),
14650
14706
  * });
14651
14707
  * ```
@@ -25637,4 +25693,4 @@ declare class Aftermath extends Caller {
25637
25693
  static casting: typeof Casting;
25638
25694
  }
25639
25695
 
25640
- export { type AfSuiRouterPoolObject, Aftermath, type AftermathAbortSource, AftermathApi, type AftermathOptions, AftermathTransportError, type AftermathTransportErrorKind, type AllocatedCollateralEvent, type AmountInCoinAndUsd, type AnyObjectType, type ApiAccessoriesForSuiFrenBody, type ApiAddSuiFrenAccessoryBody, type ApiCreateAuthAccountBody, type ApiCreatePoolBody, type ApiDataWithCursorBody, type ApiDelegatedStakesBody, type ApiDynamicFieldsBody, type ApiDynamicGasBody, type ApiDynamicGasResponse, type ApiEventsBody, type ApiFarmsCreateStakingPoolBody, type ApiFarmsCreateStakingPoolBodyV1, type ApiFarmsDepositPrincipalBody, type ApiFarmsGrantOneTimeAdminCapBody, type ApiFarmsIncreaseStakingPoolRewardsEmissionsBody, type ApiFarmsInitializeStakingPoolRewardBody, type ApiFarmsLockBody, type ApiFarmsOwnedStakedPositionsBody, type ApiFarmsOwnedStakingPoolOneTimeAdminCapsBody, type ApiFarmsOwnedStakingPoolOwnerCapsBody, type ApiFarmsRenewLockBody, type ApiFarmsStakeBody, type ApiFarmsStakeBodyV1, type ApiFarmsSummaryBody, type ApiFarmsTopUpStakingPoolRewardsBody, type ApiFarmsUnlockBody, type ApiFarmsUnstakeBody, type ApiFaucetMintSuiFrenBody, type ApiFaucetRequestBody, type ApiGasPoolBody, type ApiGasPoolCreateBody, type ApiGasPoolCreateResponse, type ApiGasPoolDepositBody, type ApiGasPoolGrantBody, type ApiGasPoolResponse, type ApiGasPoolRevokeBody, type ApiGasPoolShareBody, type ApiGasPoolSponsorBody, type ApiGasPoolSponsorResponse, type ApiGasPoolWithdrawBody, type ApiGasPoolWithdrawResponse, type ApiGetAccessTokenBody, type ApiGetAccessTokenResponse, type ApiHarvestFarmsRewardsBody, type ApiHarvestSuiFrenFeesBody, type ApiIndexerEventsBody, type ApiIndexerUserEventsBody, type ApiMixSuiFrensBody, type ApiNftAmmBuyBody, type ApiNftAmmDepositBody, type ApiNftAmmSellBody, type ApiNftAmmWithdrawBody, type ApiOwnedStakedSuiFrensBody, type ApiOwnedSuiFrenAccessoriesBody, type ApiOwnedSuiFrensBody, type ApiPerpetualsAccountCollateralHistoryBody, type ApiPerpetualsAccountCollateralHistoryResponse, type ApiPerpetualsAccountMarginHistoryBody, type ApiPerpetualsAccountMarginHistoryResponse, type ApiPerpetualsAccountOrderHistoryBody, type ApiPerpetualsAccountOrderHistoryResponse, type ApiPerpetualsAccountPositionsBody, type ApiPerpetualsAccountPositionsResponse, type ApiPerpetualsAdminAccountCapsBody, type ApiPerpetualsAdminAccountCapsResponse, type ApiPerpetualsAllMarketsBody, type ApiPerpetualsAllMarketsResponse, type ApiPerpetualsAllocateCollateralBody, type ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxBody, type ApiPerpetualsBuilderCodesClaimIntegratorVaultFeesTxResponse, type ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody, type ApiPerpetualsBuilderCodesCreateIntegratorVaultTxBody, type ApiPerpetualsBuilderCodesIntegratorConfigBody, type ApiPerpetualsBuilderCodesIntegratorConfigResponse, type ApiPerpetualsBuilderCodesIntegratorVaultsBody, type ApiPerpetualsBuilderCodesIntegratorVaultsResponse, type ApiPerpetualsBuilderCodesRemoveIntegratorConfigTxBody, type ApiPerpetualsCancelAndPlaceOrdersBody, type ApiPerpetualsCancelOrdersBody, type ApiPerpetualsCancelStopOrdersBody, type ApiPerpetualsCancelTwapOrdersBody, type ApiPerpetualsCreateAccountBody, type ApiPerpetualsCreateAccountResponse, type ApiPerpetualsCreateCsvRebatesBody, type ApiPerpetualsCreateCsvRebatesResponse, type ApiPerpetualsCreateReferralCsvRebatesBody, type ApiPerpetualsCreateReferralCsvRebatesResponse, type ApiPerpetualsCreateTwapOrdersBody, type ApiPerpetualsCreateVaultBody, type ApiPerpetualsCreateVaultCapBody, type ApiPerpetualsDeallocateCollateralBody, type ApiPerpetualsDepositCollateralBody, type ApiPerpetualsEditStopOrdersBody, type ApiPerpetualsEditTwapOrdersBody, type ApiPerpetualsExecutionPriceBody, type ApiPerpetualsExecutionPriceResponse, type ApiPerpetualsGrantAgentWalletTxBody, type ApiPerpetualsHistoricalDataWithCursorBody, type ApiPerpetualsHistoricalDataWithCursorResponse, type ApiPerpetualsLimitOrderBody, type ApiPerpetualsMarketCandleHistoryBody, type ApiPerpetualsMarketCandleHistoryResponse, type ApiPerpetualsMarketFundingHistoryBody, type ApiPerpetualsMarketFundingHistoryResponse, type ApiPerpetualsMarketOrderBody, type ApiPerpetualsMarketOrderHistoryBody, type ApiPerpetualsMarketOrderHistoryResponse, type ApiPerpetualsMarkets24hrStatsResponse, type ApiPerpetualsMarketsBody, type ApiPerpetualsMarketsPricesBody, type ApiPerpetualsMarketsPricesResponse, type ApiPerpetualsMarketsResponse, type ApiPerpetualsMaxOrderSizeBody, type ApiPerpetualsOrderToPlace, type ApiPerpetualsOrderbooksBody, type ApiPerpetualsOrderbooksResponse, type ApiPerpetualsOwnedAccountCapsBody, type ApiPerpetualsOwnedAccountCapsResponse, type ApiPerpetualsOwnedVaultAssistantCapsBody, type ApiPerpetualsOwnedVaultAssistantCapsResponse, type ApiPerpetualsOwnedVaultCapsBody, type ApiPerpetualsOwnedVaultCapsResponse, type ApiPerpetualsPlaceSlTpOrdersBody, type ApiPerpetualsPlaceStopOrdersBody, type ApiPerpetualsPreviewCancelOrdersBody, type ApiPerpetualsPreviewCancelOrdersResponse, type ApiPerpetualsPreviewEditCollateralBody, type ApiPerpetualsPreviewEditCollateralResponse, type ApiPerpetualsPreviewPlaceLimitOrderBody, type ApiPerpetualsPreviewPlaceMarketOrderBody, type ApiPerpetualsPreviewPlaceOrderResponse, type ApiPerpetualsPreviewPlaceScaleOrderBody, type ApiPerpetualsPreviewSetLeverageBody, type ApiPerpetualsPreviewSetLeverageResponse, type ApiPerpetualsRevokeAgentWalletTxBody, type ApiPerpetualsScaleOrderBody, type ApiPerpetualsSetLeverageTxBody, type ApiPerpetualsShareAccountBody, type ApiPerpetualsStopOrderDatasBody, type ApiPerpetualsStopOrderDatasResponse, type ApiPerpetualsTransferCapTxBody, type ApiPerpetualsTransferCollateralBody, type ApiPerpetualsTwapOrderDatasBody, type ApiPerpetualsTwapOrderDatasResponse, type ApiPerpetualsVaultCancelWithdrawRequestTxBody, type ApiPerpetualsVaultCreateWithdrawRequestTxBody, type ApiPerpetualsVaultDepositTxBody, type ApiPerpetualsVaultGrantAgentWalletTxBody, type ApiPerpetualsVaultLpCoinPricesBody, type ApiPerpetualsVaultLpCoinPricesResponse, type ApiPerpetualsVaultOwnedLpCoinsBody, type ApiPerpetualsVaultOwnedLpCoinsResponse, type ApiPerpetualsVaultOwnedWithdrawRequestsBody, type ApiPerpetualsVaultOwnedWithdrawRequestsResponse, type ApiPerpetualsVaultOwnerProcessWithdrawRequestsTxBody, type ApiPerpetualsVaultOwnerUpdateForceWithdrawDelayTxBody, type ApiPerpetualsVaultOwnerUpdateLockPeriodTxBody, type ApiPerpetualsVaultOwnerUpdatePerformanceFeeTxBody, type ApiPerpetualsVaultOwnerWithdrawCollateralTxBody, type ApiPerpetualsVaultOwnerWithdrawCollateralTxResponse, type ApiPerpetualsVaultOwnerWithdrawLockedLiquidityTxBody, type ApiPerpetualsVaultOwnerWithdrawLockedLiquidityTxResponse, type ApiPerpetualsVaultOwnerWithdrawPerformanceFeesTxBody, type ApiPerpetualsVaultOwnerWithdrawPerformanceFeesTxResponse, type ApiPerpetualsVaultPauseVaultForForceWithdrawRequestTxBody, type ApiPerpetualsVaultPreviewCreateWithdrawRequestBody, type ApiPerpetualsVaultPreviewCreateWithdrawRequestResponse, type ApiPerpetualsVaultPreviewDepositBody, type ApiPerpetualsVaultPreviewDepositResponse, type ApiPerpetualsVaultPreviewOwnerProcessWithdrawRequestsBody, type ApiPerpetualsVaultPreviewOwnerProcessWithdrawRequestsResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawCollateralBody, type ApiPerpetualsVaultPreviewOwnerWithdrawCollateralResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawLockedLiquidityBody, type ApiPerpetualsVaultPreviewOwnerWithdrawLockedLiquidityResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawPerformanceFeesBody, type ApiPerpetualsVaultPreviewOwnerWithdrawPerformanceFeesResponse, type ApiPerpetualsVaultPreviewPauseVaultForForceWithdrawRequestBody, type ApiPerpetualsVaultPreviewPauseVaultForForceWithdrawRequestResponse, type ApiPerpetualsVaultPreviewProcessForceWithdrawRequestBody, type ApiPerpetualsVaultPreviewProcessForceWithdrawRequestResponse, type ApiPerpetualsVaultProcessForceWithdrawRequestTxBody, type ApiPerpetualsVaultProcessForceWithdrawRequestTxResponse, type ApiPerpetualsVaultRevokeAgentWalletTxBody, type ApiPerpetualsVaultUpdateWithdrawRequestSlippageTxBody, type ApiPerpetualsVaultsBody, type ApiPerpetualsVaultsResponse, type ApiPerpetualsVaultsWithdrawRequestsBody, type ApiPerpetualsVaultsWithdrawRequestsResponse, type ApiPerpetualsWithdrawCollateralBody, type ApiPerpetualsWithdrawCollateralResponse, type ApiPoolAllCoinWithdrawBody, type ApiPoolDepositBody, type ApiPoolObjectIdForLpCoinTypeBody, type ApiPoolSpotPriceBody, type ApiPoolTradeBody, type ApiPoolWithdrawBody, type ApiPoolsOwnedDaoFeePoolOwnerCapsBody, type ApiPoolsStatsBody, type ApiPoolsSummaryBody, type ApiPublishLpCoinBody, type ApiReferralsCreateReferralLinkBody, type ApiReferralsCreateReferralLinkResponse, type ApiReferralsGetLinkedRefCodeBody, type ApiReferralsGetLinkedRefCodeResponse, type ApiReferralsGetRefCodeBody, type ApiReferralsGetRefCodeResponse, type ApiReferralsGetRefereesBody, type ApiReferralsGetRefereesResponse, type ApiReferralsIsRefCodeTakenBody, type ApiReferralsIsRefCodeTakenResponse, type ApiReferralsSetReferrerBody, type ApiReferralsSetReferrerResponse, type ApiRemoveSuiFrenAccessoryBody, type ApiRewardsClaimRequestTxBody, type ApiRewardsClaimRequestTxResponse, type ApiRewardsDistributionBody, type ApiRewardsDistributionResponse, type ApiRewardsGetClaimableBody, type ApiRewardsGetClaimableResponse, type ApiRewardsGetHistoryBody, type ApiRewardsGetHistoryResponse, type ApiRewardsGetPointsBody, type ApiRewardsGetPointsResponse, type ApiRouterAddTransactionForCompleteTradeRouteBody, type ApiRouterAddTransactionForCompleteTradeRouteBodyDeprecated, type ApiRouterAddTransactionForCompleteTradeRouteResponse, type ApiRouterAddTransactionForCompleteTradeRouteResponseDeprecated, type ApiRouterCompleteTradeRouteBody, type ApiRouterDynamicGasBody, type ApiRouterPartialCompleteTradeRouteBody, type ApiRouterTradeEventsBody, type ApiRouterTransactionForCompleteTradeRouteBody, type ApiStakeBody, type ApiStakeStakedSuiBody, type ApiStakeSuiFrenBody, type ApiStakingEventsBody, type ApiStakingPositionsBody, type ApiTransactionResponse, type ApiTransactionsBody, type ApiUnstakeBody, type ApiUnstakeSuiFrenBody, type ApiUpdateValidatorFeeBody, type ApiValidatorOperationCapsBody, type Apr, type Apy, Auth, type Balance, type BigIntAsString, type Bps, type Byte, type CallerConfig, type CanceledOrderEvent, type CapyLabsAppObject, Casting, Coin, type CoinDecimal, type CoinGeckoChain, type CoinGeckoCoinApiId, type CoinGeckoCoinData, type CoinGeckoCoinSymbolData, type CoinGeckoHistoricalTradeData, type CoinGeckoTickerData, type CoinMetadaWithInfo, type CoinPriceInfo, type CoinSymbol, type CoinSymbolToCoinTypes, type CoinSymbolsToPriceInfo, type CoinType, type CoinWithAmount, type CoinWithAmountOrUndefined, type CoinsToBalance, type CoinsToBalanceOrUndefined, type CoinsToDecimals, type CoinsToPrice, type CoinsToPriceInfo, type CollateralEvent, type Color, type ComposedTransferArgs, type ConfigAddresses, type CreatedAccountEvent, type CreatedDaoFeePoolEvent, type CreatedStopOrderTicketEvent, type DaoFeePoolObject, type DaoFeePoolOwnerCapObject, type DaoFeePoolsAddresses, type DcaAddresses, type DeallocatedCollateralEvent, type DecimalsScalar, type DeferredAccountArgs, type DeletedStopOrderTicketEvent, type DepositedCollateralEvent, type DynamicFieldObjectsWithCursor, type DynamicFieldsInputs, type DynamicFieldsWithCursor, type DynamicGasAddresses, type EditedStopOrderTicketDetailsEvent, type EditedStopOrderTicketExecutorEvent, type EmptyObject, type EpochWasChangedEvent, type Event$1 as Event, type EventsInputs, type EventsWithCursor, type ExecutedStopOrderTicketEvent, type ExternalFee, type FarmEvent, type FarmOwnerOrOneTimeAdminCap, type FarmSummary, type FarmUserEvent, Farms, type FarmsAddedRewardEvent, type FarmsAddresses, type FarmsCreatedVaultEvent, type FarmsDepositedPrincipalEvent, type FarmsDestroyedStakedPositionEvent, type FarmsHarvestedRewardsEvent, type FarmsIncreasedEmissionsEvent, type FarmsInitializedRewardEvent, type FarmsJoinedEvent, type FarmsLockEnforcement, type FarmsLockedEvent, type FarmsMultiplier, type FarmsSplitEvent, type FarmsStakedEvent, FarmsStakedPosition, type FarmsStakedPositionObject, type FarmsStakedPositionRewardCoin, type FarmsStakedRelaxedEvent, FarmsStakingPool, type FarmsStakingPoolObject, type FarmsStakingPoolRewardCoin, type FarmsUnlockedEvent, type FarmsVersion, type FarmsWithdrewPrincipalEvent, Faucet, type FaucetAddCoinEvent, type FaucetAddresses, type FaucetMintCoinEvent, type FilePath, type FilledMakerOrderEventFields, type FilledMakerOrdersEvent, type FilledTakerOrderEvent, type FunctionName, type GasBudget, GasPools, GrpcCasting, type HarvestSuiFrenFeesEvent, Helpers, type IFixed, type IFixedAsBytes, type IFixedAsString, type IFixedAsStringBytes, type IdAsStringBytes, type IndexerDataWithCursorQueryParams, type IndexerEventsWithCursor, type KeyType, type KioskObject, type KioskOwnerCapObject, type LimitAddresses, type LiquidatedEvent, type LocalUrl, type MixSuiFrensEvent, type ModuleName, type MoveErrorCode, type MoveErrors, type MoveErrorsInterface, type Nft, NftAmm, type NftAmmAddresses, type NftAmmInterfaceGenericTypes, type NftAmmMarketObject, type NftDisplay, type NftDisplayOther, type NftDisplaySuggested, type NftInfo, type NftsAddresses, type NormalizedBalance, type NumberAsString, type Object$1 as Object, type ObjectDigest, type ObjectId, type ObjectVersion, type OrderbookFillReceiptEvent, type PackageId, type ParsedMoveError, type PartialFarmsStakedPositionObject, type PartialSuiFrenObject, type Percentage, Perpetuals, PerpetualsAccount, type PerpetualsAccountCap, type PerpetualsAccountCollateralChange, type PerpetualsAccountData, type PerpetualsAccountId, type PerpetualsAccountMarginHistoryData, type PerpetualsAccountMarginHistoryTimeframeKey, type PerpetualsAccountObject, type PerpetualsAccountOrderHistoryData, type PerpetualsAddresses, type PerpetualsBuilderCodeParamaters, type PerpetualsCandleResolution, type PerpetualsCapType, type PerpetualsClientOrderId, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, type PerpetualsIntegratorVaultData, PerpetualsMarket, type PerpetualsMarket24hrStats, type PerpetualsMarketCandleDataPoint, type PerpetualsMarketData, type PerpetualsMarketFundingHistoryPoint, type PerpetualsMarketId, type PerpetualsMarketMetadata, type PerpetualsMarketOrderHistoryData, type PerpetualsMarketParams, type PerpetualsMarketState, type PerpetualsOrderData, type PerpetualsOrderEvent, type PerpetualsOrderId, type PerpetualsOrderIdAsString, type PerpetualsOrderInfo, type PerpetualsOrderPrice, PerpetualsOrderSide, type PerpetualsOrderState, PerpetualsOrderType, type PerpetualsOrderbook, type PerpetualsOrderbookDeltas, type PerpetualsOrderbookItem, type PerpetualsPartialVaultCap, type PerpetualsPosition, type PerpetualsServerInjectedTxFields, type PerpetualsSponsorConfig, type PerpetualsStopOrderData, PerpetualsStopOrderTriggerPriceType, PerpetualsStopOrderType, type PerpetualsTopOfOrderbook, type PerpetualsTopOfOrderbookDataPoint, type PerpetualsTwapEvent, type PerpetualsTwapOrderData, type PerpetualsTwapOrderDetails, type PerpetualsTwapOrderDetailsData, type PerpetualsTwapOrderEdit, type PerpetualsTwapOrderState, PerpetualsVault, type PerpetualsVaultCap, type PerpetualsVaultLpCoin, type PerpetualsVaultMetatada, type PerpetualsVaultObject, type PerpetualsVaultWithdrawRequest, type PerpetualsVaultsAddresses, type PerpetualsVaultsConfig, type PerpetualsWsCandleResponseMessage, type PerpetualsWsUpdatesMarketCandlesPayload, type PerpetualsWsUpdatesMarketCandlesSubscriptionType, type PerpetualsWsUpdatesMarketOrdersPayload, type PerpetualsWsUpdatesMarketOrdersSubscriptionType, type PerpetualsWsUpdatesMarketSubscriptionType, type PerpetualsWsUpdatesOraclePayload, type PerpetualsWsUpdatesOracleSubscriptionType, type PerpetualsWsUpdatesOrderbookPayload, type PerpetualsWsUpdatesOrderbookSubscriptionType, type PerpetualsWsUpdatesResponseMessage, type PerpetualsWsUpdatesSubscriptionAction, type PerpetualsWsUpdatesSubscriptionMessage, type PerpetualsWsUpdatesSubscriptionType, type PerpetualsWsUpdatesTopOfOrderbookPayload, type PerpetualsWsUpdatesTopOfOrderbookSubscriptionType, type PerpetualsWsUpdatesUserCollateralChangesPayload, type PerpetualsWsUpdatesUserCollateralChangesSubscriptionType, type PerpetualsWsUpdatesUserOrdersPayload, type PerpetualsWsUpdatesUserOrdersSubscriptionType, type PerpetualsWsUpdatesUserPayload, type PerpetualsWsUpdatesUserSubscriptionType, Pool, type PoolCoin, type PoolCoins, type PoolCreationCoinInfo, type PoolCreationLpCoinMetadata, type PoolDataPoint, type PoolDepositEvent, type PoolDepositFee, type PoolFlatness, type PoolGraphDataTimeUnit, type PoolGraphDataTimeframe, type PoolGraphDataTimeframeKey, type PoolLpInfo, type PoolName, type PoolObject, type PoolStats, type PoolSummary, type PoolTradeEvent, type PoolTradeFee, type PoolWeight, type PoolWithdrawEvent, type PoolWithdrawFee, Pools, type PoolsAddresses, type PostedOrderEvent, type RateLimit, type ReceivedCollateralEvent, type ReducedOrderEvent, ReferralVault, type ReferralVaultAddresses, type ReferralsRefereeInfo, type RewardsClaimableReward, type RewardsDistributionAccountData, type RewardsDistributionCalculationVariables, type RewardsDistributionMakerData, type RewardsDistributionTakerData, type RewardsHistoryEntry, type RewardsHistoryEventType, type RewardsPaginationInfo, Router, type RouterAddresses, type RouterCompleteTradeRoute, type RouterCompleteTradeRouteWithFee, type RouterExternalFee, type RouterProtocolName, type RouterTradeCoin, type RouterTradeEvent, type RouterTradeInfo, type RouterTradePath, type RouterTradeRoute, type RpcEndpoint, type ScallopAddresses, type SdkPerpetualsCancelAndPlaceOrdersInputs, type SdkPerpetualsCancelOrdersPreviewInputs, type SdkPerpetualsCancelTwapOrdersInputs, type SdkPerpetualsCreateTwapOrdersInputs, type SdkPerpetualsEditTwapOrdersInputs, type SdkPerpetualsPlaceLimitOrderInputs, type SdkPerpetualsPlaceLimitOrderPreviewInputs, type SdkPerpetualsPlaceMarketOrderInputs, type SdkPerpetualsPlaceMarketOrderPreviewInputs, type SdkPerpetualsPlaceScaleOrderInputs, type SdkPerpetualsPlaceScaleOrderPreviewInputs, type SdkPerpetualsPlaceSlTpOrdersInputs, type SdkPerpetualsPlaceStopOrdersInputs, type SdkTransactionResponse, type SerializedTransaction, type ServiceCoinData, type ServiceCoinDataV2, type SetPositionInitialMarginRatioEvent, type SettledFundingEvent, type SharedCustodyAddresses, type SignMessageCallback, type Slippage, type StakeBalanceDynamicField, type StakeEvent, type StakePosition, type StakeSuiFrenEvent, type StakedEvent, StakedSuiFren, type StakedSuiFrenInfo, type StakedSuiFrenMetadataV1Object, type StakedSuiFrenPositionObject, type StakedSuiVaultStateObject, Staking, type StakingAddresses, type StakingApyDataPoint, type StakingApyTimeframeKey, type StakingPoolOneTimeAdminCapObject, type StakingPoolOwnerCapObject, type StakingPosition, type StringByte, Sui, type SuiAddress, type SuiCheckpoint, type SuiDelegatedStake, type SuiDelegatedStakeState, SuiFren, type SuiFrenAccessoryName, type SuiFrenAccessoryObject, type SuiFrenAccessoryType, type SuiFrenAttributes, type SuiFrenObject, type SuiFrenStats, type SuiFrenVaultStateV1Object, SuiFrens, type SuiFrensAddresses, SuiFrensSortOption, type SuiNetwork, type SuiObjectView, type Timestamp, type TransactionDigest, type TransactionsWithCursor, type TransferredDeallocatedCollateralEvent, type TranslatedMoveError, type TxBytes, type UniqueId, type UnstakeEvent, type UnstakePosition, type UnstakePositionState, type UnstakeRequestedEvent, type UnstakeSuiFrenEvent, type UnstakedEvent, type UpdatedFeeBpsEvent, type UpdatedFeeRecipientEvent, type UpdatedFundingEvent, type UpdatedMarketVersionEvent, type UpdatedPremiumTwapEvent, type UpdatedSpreadTwapEvent, type Url, type UserEventsInputs, type UserHistoryEventType, type ValidatorConfigObject, type ValidatorOperationCapObject, type ValueOf, type WithdrewCollateralEvent, isAftermathTransportError, isAllocatedCollateralEvent, isCanceledOrderEvent, isDeallocatedCollateralEvent, isDepositedCollateralEvent, isFarmsDepositedPrincipalEvent, isFarmsHarvestedRewardsEvent, isFarmsLockedEvent, isFarmsStakedEvent, isFarmsUnlockedEvent, isFarmsWithdrewPrincipalEvent, isFilledMakerOrdersEvent, isFilledTakerOrderEvent, isLiquidatedEvent, isPostedOrderEvent, isReducedOrderEvent, isSettledFundingEvent, isStakeEvent, isStakePosition, isSuiDelegatedStake, isUnstakeEvent, isUnstakePosition, isUpdatedFundingEvent, isUpdatedMarketVersion, isUpdatedPremiumTwapEvent, isUpdatedSpreadTwapEvent, isWithdrewCollateralEvent };
25696
+ export { type AfSuiRouterPoolObject, Aftermath, type AftermathAbortSource, AftermathApi, type AftermathOptions, AftermathTransportError, type AftermathTransportErrorKind, type AllocatedCollateralEvent, type AmountInCoinAndUsd, type AnyObjectType, type ApiAccessoriesForSuiFrenBody, type ApiAddSuiFrenAccessoryBody, type ApiCreateAuthAccountBody, type ApiCreatePoolBody, type ApiDataWithCursorBody, type ApiDelegatedStakesBody, type ApiDynamicFieldsBody, type ApiDynamicGasBody, type ApiDynamicGasResponse, type ApiEventsBody, type ApiFarmsCreateStakingPoolBody, type ApiFarmsCreateStakingPoolBodyV1, type ApiFarmsDepositPrincipalBody, type ApiFarmsGrantOneTimeAdminCapBody, type ApiFarmsIncreaseStakingPoolRewardsEmissionsBody, type ApiFarmsInitializeStakingPoolRewardBody, type ApiFarmsLockBody, type ApiFarmsOwnedStakedPositionsBody, type ApiFarmsOwnedStakingPoolOneTimeAdminCapsBody, type ApiFarmsOwnedStakingPoolOwnerCapsBody, type ApiFarmsRenewLockBody, type ApiFarmsStakeBody, type ApiFarmsStakeBodyV1, type ApiFarmsSummaryBody, type ApiFarmsTopUpStakingPoolRewardsBody, type ApiFarmsUnlockBody, type ApiFarmsUnstakeBody, type ApiFaucetMintSuiFrenBody, type ApiFaucetRequestBody, type ApiGasPoolBody, type ApiGasPoolCreateBody, type ApiGasPoolCreateResponse, type ApiGasPoolDepositBody, type ApiGasPoolGrantBody, type ApiGasPoolResponse, type ApiGasPoolRevokeBody, type ApiGasPoolShareBody, type ApiGasPoolSponsorBody, type ApiGasPoolSponsorResponse, type ApiGasPoolWithdrawBody, type ApiGasPoolWithdrawResponse, type ApiGetAccessTokenBody, type ApiGetAccessTokenResponse, type ApiHarvestFarmsRewardsBody, type ApiHarvestSuiFrenFeesBody, type ApiIndexerEventsBody, type ApiIndexerUserEventsBody, type ApiMixSuiFrensBody, type ApiNftAmmBuyBody, type ApiNftAmmDepositBody, type ApiNftAmmSellBody, type ApiNftAmmWithdrawBody, type ApiOwnedStakedSuiFrensBody, type ApiOwnedSuiFrenAccessoriesBody, type ApiOwnedSuiFrensBody, type ApiPerpetualsAccountCollateralHistoryBody, type ApiPerpetualsAccountCollateralHistoryResponse, type ApiPerpetualsAccountMarginHistoryBody, type ApiPerpetualsAccountMarginHistoryResponse, type ApiPerpetualsAccountOrderHistoryBody, type ApiPerpetualsAccountOrderHistoryResponse, type ApiPerpetualsAccountPositionsBody, type ApiPerpetualsAccountPositionsResponse, type ApiPerpetualsAccountsPnlCalendarBody, type ApiPerpetualsAccountsPnlCalendarResponse, type ApiPerpetualsAdminAccountCapsBody, type ApiPerpetualsAdminAccountCapsResponse, type ApiPerpetualsAllMarketsBody, type ApiPerpetualsAllMarketsResponse, type ApiPerpetualsAllocateCollateralBody, type ApiPerpetualsBuilderCodesCreateIntegratorConfigTxBody, type ApiPerpetualsBuilderCodesIntegratorConfigBody, type ApiPerpetualsBuilderCodesIntegratorConfigResponse, type ApiPerpetualsBuilderCodesRemoveIntegratorConfigTxBody, type ApiPerpetualsCancelAndPlaceOrdersBody, type ApiPerpetualsCancelOrdersBody, type ApiPerpetualsCancelStopOrdersBody, type ApiPerpetualsCancelTwapOrdersBody, type ApiPerpetualsCreateAccountBody, type ApiPerpetualsCreateAccountResponse, type ApiPerpetualsCreateCsvRebatesBody, type ApiPerpetualsCreateCsvRebatesResponse, type ApiPerpetualsCreateReferralCsvRebatesBody, type ApiPerpetualsCreateReferralCsvRebatesResponse, type ApiPerpetualsCreateTwapOrdersBody, type ApiPerpetualsCreateVaultBody, type ApiPerpetualsCreateVaultCapBody, type ApiPerpetualsDeallocateCollateralBody, type ApiPerpetualsDepositCollateralBody, type ApiPerpetualsEditStopOrdersBody, type ApiPerpetualsEditTwapOrdersBody, type ApiPerpetualsExecutionPriceBody, type ApiPerpetualsExecutionPriceResponse, type ApiPerpetualsGrantAgentWalletTxBody, type ApiPerpetualsHistoricalDataWithCursorBody, type ApiPerpetualsHistoricalDataWithCursorResponse, type ApiPerpetualsLimitOrderBody, type ApiPerpetualsMarketCandleHistoryBody, type ApiPerpetualsMarketCandleHistoryResponse, type ApiPerpetualsMarketFundingHistoryBody, type ApiPerpetualsMarketFundingHistoryResponse, type ApiPerpetualsMarketOrderBody, type ApiPerpetualsMarketOrderHistoryBody, type ApiPerpetualsMarketOrderHistoryResponse, type ApiPerpetualsMarkets24hrStatsResponse, type ApiPerpetualsMarketsBody, type ApiPerpetualsMarketsCategoriesResponse, type ApiPerpetualsMarketsPricesBody, type ApiPerpetualsMarketsPricesResponse, type ApiPerpetualsMarketsResponse, type ApiPerpetualsMaxOrderSizeBody, type ApiPerpetualsOrderToPlace, type ApiPerpetualsOrderbooksBody, type ApiPerpetualsOrderbooksResponse, type ApiPerpetualsOwnedAccountCapsBody, type ApiPerpetualsOwnedAccountCapsResponse, type ApiPerpetualsOwnedVaultAssistantCapsBody, type ApiPerpetualsOwnedVaultAssistantCapsResponse, type ApiPerpetualsOwnedVaultCapsBody, type ApiPerpetualsOwnedVaultCapsResponse, type ApiPerpetualsPlaceSlTpOrdersBody, type ApiPerpetualsPlaceStopOrdersBody, type ApiPerpetualsPreviewCancelOrdersBody, type ApiPerpetualsPreviewCancelOrdersResponse, type ApiPerpetualsPreviewEditCollateralBody, type ApiPerpetualsPreviewEditCollateralResponse, type ApiPerpetualsPreviewPlaceLimitOrderBody, type ApiPerpetualsPreviewPlaceMarketOrderBody, type ApiPerpetualsPreviewPlaceOrderResponse, type ApiPerpetualsPreviewPlaceScaleOrderBody, type ApiPerpetualsPreviewSetLeverageBody, type ApiPerpetualsPreviewSetLeverageResponse, type ApiPerpetualsRevokeAgentWalletTxBody, type ApiPerpetualsScaleOrderBody, type ApiPerpetualsSetLeverageTxBody, type ApiPerpetualsShareAccountBody, type ApiPerpetualsStopOrderDatasBody, type ApiPerpetualsStopOrderDatasResponse, type ApiPerpetualsTransferCapTxBody, type ApiPerpetualsTransferCollateralBody, type ApiPerpetualsTwapOrderDatasBody, type ApiPerpetualsTwapOrderDatasResponse, type ApiPerpetualsVaultCancelWithdrawRequestTxBody, type ApiPerpetualsVaultCreateWithdrawRequestTxBody, type ApiPerpetualsVaultDepositTxBody, type ApiPerpetualsVaultGrantAgentWalletTxBody, type ApiPerpetualsVaultLpCoinPricesBody, type ApiPerpetualsVaultLpCoinPricesResponse, type ApiPerpetualsVaultOwnedLpCoinsBody, type ApiPerpetualsVaultOwnedLpCoinsResponse, type ApiPerpetualsVaultOwnedWithdrawRequestsBody, type ApiPerpetualsVaultOwnedWithdrawRequestsResponse, type ApiPerpetualsVaultOwnerProcessWithdrawRequestsTxBody, type ApiPerpetualsVaultOwnerUpdateForceWithdrawDelayTxBody, type ApiPerpetualsVaultOwnerUpdateLockPeriodTxBody, type ApiPerpetualsVaultOwnerUpdatePerformanceFeeTxBody, type ApiPerpetualsVaultOwnerWithdrawCollateralTxBody, type ApiPerpetualsVaultOwnerWithdrawCollateralTxResponse, type ApiPerpetualsVaultOwnerWithdrawLockedLiquidityTxBody, type ApiPerpetualsVaultOwnerWithdrawLockedLiquidityTxResponse, type ApiPerpetualsVaultOwnerWithdrawPerformanceFeesTxBody, type ApiPerpetualsVaultOwnerWithdrawPerformanceFeesTxResponse, type ApiPerpetualsVaultPauseVaultForForceWithdrawRequestTxBody, type ApiPerpetualsVaultPreviewCreateWithdrawRequestBody, type ApiPerpetualsVaultPreviewCreateWithdrawRequestResponse, type ApiPerpetualsVaultPreviewDepositBody, type ApiPerpetualsVaultPreviewDepositResponse, type ApiPerpetualsVaultPreviewOwnerProcessWithdrawRequestsBody, type ApiPerpetualsVaultPreviewOwnerProcessWithdrawRequestsResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawCollateralBody, type ApiPerpetualsVaultPreviewOwnerWithdrawCollateralResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawLockedLiquidityBody, type ApiPerpetualsVaultPreviewOwnerWithdrawLockedLiquidityResponse, type ApiPerpetualsVaultPreviewOwnerWithdrawPerformanceFeesBody, type ApiPerpetualsVaultPreviewOwnerWithdrawPerformanceFeesResponse, type ApiPerpetualsVaultPreviewPauseVaultForForceWithdrawRequestBody, type ApiPerpetualsVaultPreviewPauseVaultForForceWithdrawRequestResponse, type ApiPerpetualsVaultPreviewProcessForceWithdrawRequestBody, type ApiPerpetualsVaultPreviewProcessForceWithdrawRequestResponse, type ApiPerpetualsVaultProcessForceWithdrawRequestTxBody, type ApiPerpetualsVaultProcessForceWithdrawRequestTxResponse, type ApiPerpetualsVaultRevokeAgentWalletTxBody, type ApiPerpetualsVaultUpdateWithdrawRequestSlippageTxBody, type ApiPerpetualsVaultsBody, type ApiPerpetualsVaultsResponse, type ApiPerpetualsVaultsWithdrawRequestsBody, type ApiPerpetualsVaultsWithdrawRequestsResponse, type ApiPerpetualsWithdrawCollateralBody, type ApiPerpetualsWithdrawCollateralResponse, type ApiPoolAllCoinWithdrawBody, type ApiPoolDepositBody, type ApiPoolObjectIdForLpCoinTypeBody, type ApiPoolSpotPriceBody, type ApiPoolTradeBody, type ApiPoolWithdrawBody, type ApiPoolsOwnedDaoFeePoolOwnerCapsBody, type ApiPoolsStatsBody, type ApiPoolsSummaryBody, type ApiPublishLpCoinBody, type ApiReferralsCreateReferralLinkBody, type ApiReferralsCreateReferralLinkResponse, type ApiReferralsGetLinkedRefCodeBody, type ApiReferralsGetLinkedRefCodeResponse, type ApiReferralsGetRefCodeBody, type ApiReferralsGetRefCodeResponse, type ApiReferralsGetRefereesBody, type ApiReferralsGetRefereesResponse, type ApiReferralsIsRefCodeTakenBody, type ApiReferralsIsRefCodeTakenResponse, type ApiReferralsSetReferrerBody, type ApiReferralsSetReferrerResponse, type ApiRemoveSuiFrenAccessoryBody, type ApiRewardsClaimRequestTxBody, type ApiRewardsClaimRequestTxResponse, type ApiRewardsDistributionBody, type ApiRewardsDistributionResponse, type ApiRewardsGetClaimableBody, type ApiRewardsGetClaimableResponse, type ApiRewardsGetHistoryBody, type ApiRewardsGetHistoryResponse, type ApiRewardsGetPointsBody, type ApiRewardsGetPointsResponse, type ApiRouterAddTransactionForCompleteTradeRouteBody, type ApiRouterAddTransactionForCompleteTradeRouteBodyDeprecated, type ApiRouterAddTransactionForCompleteTradeRouteResponse, type ApiRouterAddTransactionForCompleteTradeRouteResponseDeprecated, type ApiRouterCompleteTradeRouteBody, type ApiRouterDynamicGasBody, type ApiRouterPartialCompleteTradeRouteBody, type ApiRouterTradeEventsBody, type ApiRouterTransactionForCompleteTradeRouteBody, type ApiStakeBody, type ApiStakeStakedSuiBody, type ApiStakeSuiFrenBody, type ApiStakingEventsBody, type ApiStakingPositionsBody, type ApiTransactionResponse, type ApiTransactionsBody, type ApiUnstakeBody, type ApiUnstakeSuiFrenBody, type ApiUpdateValidatorFeeBody, type ApiValidatorOperationCapsBody, type Apr, type Apy, Auth, type Balance, type BigIntAsString, type Bps, type Byte, type CallerConfig, type CanceledOrderEvent, type CapyLabsAppObject, Casting, Coin, type CoinDecimal, type CoinGeckoChain, type CoinGeckoCoinApiId, type CoinGeckoCoinData, type CoinGeckoCoinSymbolData, type CoinGeckoHistoricalTradeData, type CoinGeckoTickerData, type CoinMetadaWithInfo, type CoinPriceInfo, type CoinSymbol, type CoinSymbolToCoinTypes, type CoinSymbolsToPriceInfo, type CoinType, type CoinWithAmount, type CoinWithAmountOrUndefined, type CoinsToBalance, type CoinsToBalanceOrUndefined, type CoinsToDecimals, type CoinsToPrice, type CoinsToPriceInfo, type CollateralEvent, type Color, type ComposedTransferArgs, type ConfigAddresses, type CreatedAccountEvent, type CreatedDaoFeePoolEvent, type CreatedStopOrderTicketEvent, type DaoFeePoolObject, type DaoFeePoolOwnerCapObject, type DaoFeePoolsAddresses, type DcaAddresses, type DeallocatedCollateralEvent, type DecimalsScalar, type DeferredAccountArgs, type DeletedStopOrderTicketEvent, type DepositedCollateralEvent, type DynamicFieldObjectsWithCursor, type DynamicFieldsInputs, type DynamicFieldsWithCursor, type DynamicGasAddresses, type EditedStopOrderTicketDetailsEvent, type EditedStopOrderTicketExecutorEvent, type EmptyObject, type EpochWasChangedEvent, type Event$1 as Event, type EventsInputs, type EventsWithCursor, type ExecutedStopOrderTicketEvent, type ExternalFee, type FarmEvent, type FarmOwnerOrOneTimeAdminCap, type FarmSummary, type FarmUserEvent, Farms, type FarmsAddedRewardEvent, type FarmsAddresses, type FarmsCreatedVaultEvent, type FarmsDepositedPrincipalEvent, type FarmsDestroyedStakedPositionEvent, type FarmsHarvestedRewardsEvent, type FarmsIncreasedEmissionsEvent, type FarmsInitializedRewardEvent, type FarmsJoinedEvent, type FarmsLockEnforcement, type FarmsLockedEvent, type FarmsMultiplier, type FarmsSplitEvent, type FarmsStakedEvent, FarmsStakedPosition, type FarmsStakedPositionObject, type FarmsStakedPositionRewardCoin, type FarmsStakedRelaxedEvent, FarmsStakingPool, type FarmsStakingPoolObject, type FarmsStakingPoolRewardCoin, type FarmsUnlockedEvent, type FarmsVersion, type FarmsWithdrewPrincipalEvent, Faucet, type FaucetAddCoinEvent, type FaucetAddresses, type FaucetMintCoinEvent, type FilePath, type FilledMakerOrderEventFields, type FilledMakerOrdersEvent, type FilledTakerOrderEvent, type FunctionName, type GasBudget, GasPools, GrpcCasting, type HarvestSuiFrenFeesEvent, Helpers, type IFixed, type IFixedAsBytes, type IFixedAsString, type IFixedAsStringBytes, type IdAsStringBytes, type IndexerDataWithCursorQueryParams, type IndexerEventsWithCursor, type KeyType, type KioskObject, type KioskOwnerCapObject, type LimitAddresses, type LiquidatedEvent, type LocalUrl, type MixSuiFrensEvent, type ModuleName, type MoveErrorCode, type MoveErrors, type MoveErrorsInterface, type Nft, NftAmm, type NftAmmAddresses, type NftAmmInterfaceGenericTypes, type NftAmmMarketObject, type NftDisplay, type NftDisplayOther, type NftDisplaySuggested, type NftInfo, type NftsAddresses, type NormalizedBalance, type NumberAsString, type Object$1 as Object, type ObjectDigest, type ObjectId, type ObjectVersion, type OrderbookFillReceiptEvent, type PackageId, type ParsedMoveError, type PartialFarmsStakedPositionObject, type PartialSuiFrenObject, type Percentage, Perpetuals, PerpetualsAccount, type PerpetualsAccountCap, type PerpetualsAccountCollateralChange, type PerpetualsAccountData, type PerpetualsAccountId, type PerpetualsAccountMarginHistoryData, type PerpetualsAccountMarginHistoryTimeframeKey, type PerpetualsAccountObject, type PerpetualsAccountOrderHistoryData, type PerpetualsAccountPnlCalendar, type PerpetualsAccountPnlCalendarDay, type PerpetualsAddresses, type PerpetualsBuilderCodeParamaters, type PerpetualsCandleResolution, type PerpetualsCapType, type PerpetualsClientOrderId, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, PerpetualsMarket, type PerpetualsMarket24hrStats, type PerpetualsMarketCandleDataPoint, type PerpetualsMarketCategory, type PerpetualsMarketData, type PerpetualsMarketFundingHistoryPoint, type PerpetualsMarketId, type PerpetualsMarketMetadata, type PerpetualsMarketOrderHistoryData, type PerpetualsMarketParams, type PerpetualsMarketState, type PerpetualsOrderData, type PerpetualsOrderEvent, type PerpetualsOrderId, type PerpetualsOrderIdAsString, type PerpetualsOrderInfo, type PerpetualsOrderPrice, PerpetualsOrderSide, type PerpetualsOrderState, PerpetualsOrderType, type PerpetualsOrderbook, type PerpetualsOrderbookDeltas, type PerpetualsOrderbookItem, type PerpetualsPartialVaultCap, type PerpetualsPosition, type PerpetualsServerInjectedTxFields, type PerpetualsSponsorConfig, type PerpetualsStopOrderData, PerpetualsStopOrderTriggerPriceType, PerpetualsStopOrderType, type PerpetualsTopOfOrderbook, type PerpetualsTopOfOrderbookDataPoint, type PerpetualsTwapCreatePriceConditions, type PerpetualsTwapEvent, type PerpetualsTwapOrderAction, type PerpetualsTwapOrderData, type PerpetualsTwapOrderDetails, type PerpetualsTwapOrderDetailsData, type PerpetualsTwapOrderEdit, type PerpetualsTwapOrderLastError, type PerpetualsTwapOrderPriceConditions, type PerpetualsTwapOrderState, type PerpetualsTwapPriceCondition, type PerpetualsTwapPriceConditionDirection, PerpetualsVault, type PerpetualsVaultCap, type PerpetualsVaultLpCoin, type PerpetualsVaultMetatada, type PerpetualsVaultObject, type PerpetualsVaultWithdrawRequest, type PerpetualsVaultsAddresses, type PerpetualsVaultsConfig, type PerpetualsWsCandleResponseMessage, type PerpetualsWsUpdatesMarketCandlesPayload, type PerpetualsWsUpdatesMarketCandlesSubscriptionType, type PerpetualsWsUpdatesMarketOrdersPayload, type PerpetualsWsUpdatesMarketOrdersSubscriptionType, type PerpetualsWsUpdatesMarketSubscriptionType, type PerpetualsWsUpdatesOraclePayload, type PerpetualsWsUpdatesOracleSubscriptionType, type PerpetualsWsUpdatesOrderbookPayload, type PerpetualsWsUpdatesOrderbookSubscriptionType, type PerpetualsWsUpdatesResponseMessage, type PerpetualsWsUpdatesSubscriptionAction, type PerpetualsWsUpdatesSubscriptionMessage, type PerpetualsWsUpdatesSubscriptionType, type PerpetualsWsUpdatesTopOfOrderbookPayload, type PerpetualsWsUpdatesTopOfOrderbookSubscriptionType, type PerpetualsWsUpdatesUserCollateralChangesPayload, type PerpetualsWsUpdatesUserCollateralChangesSubscriptionType, type PerpetualsWsUpdatesUserOrdersPayload, type PerpetualsWsUpdatesUserOrdersSubscriptionType, type PerpetualsWsUpdatesUserPayload, type PerpetualsWsUpdatesUserSubscriptionType, Pool, type PoolCoin, type PoolCoins, type PoolCreationCoinInfo, type PoolCreationLpCoinMetadata, type PoolDataPoint, type PoolDepositEvent, type PoolDepositFee, type PoolFlatness, type PoolGraphDataTimeUnit, type PoolGraphDataTimeframe, type PoolGraphDataTimeframeKey, type PoolLpInfo, type PoolName, type PoolObject, type PoolStats, type PoolSummary, type PoolTradeEvent, type PoolTradeFee, type PoolWeight, type PoolWithdrawEvent, type PoolWithdrawFee, Pools, type PoolsAddresses, type PostedOrderEvent, type RateLimit, type ReceivedCollateralEvent, type ReducedOrderEvent, ReferralVault, type ReferralVaultAddresses, type ReferralsRefereeInfo, type RewardsClaimableReward, type RewardsDistributionAccountData, type RewardsDistributionCalculationVariables, type RewardsDistributionMakerData, type RewardsDistributionTakerData, type RewardsHistoryEntry, type RewardsHistoryEventType, type RewardsPaginationInfo, Router, type RouterAddresses, type RouterCompleteTradeRoute, type RouterCompleteTradeRouteWithFee, type RouterExternalFee, type RouterProtocolName, type RouterTradeCoin, type RouterTradeEvent, type RouterTradeInfo, type RouterTradePath, type RouterTradeRoute, type RpcEndpoint, type ScallopAddresses, type SdkPerpetualsCancelAndPlaceOrdersInputs, type SdkPerpetualsCancelOrdersPreviewInputs, type SdkPerpetualsCancelTwapOrdersInputs, type SdkPerpetualsCreateTwapOrdersInputs, type SdkPerpetualsEditTwapOrdersInputs, type SdkPerpetualsPlaceLimitOrderInputs, type SdkPerpetualsPlaceLimitOrderPreviewInputs, type SdkPerpetualsPlaceMarketOrderInputs, type SdkPerpetualsPlaceMarketOrderPreviewInputs, type SdkPerpetualsPlaceScaleOrderInputs, type SdkPerpetualsPlaceScaleOrderPreviewInputs, type SdkPerpetualsPlaceSlTpOrdersInputs, type SdkPerpetualsPlaceStopOrdersInputs, type SdkTransactionResponse, type SerializedTransaction, type ServiceCoinData, type ServiceCoinDataV2, type SetPositionInitialMarginRatioEvent, type SettledFundingEvent, type SharedCustodyAddresses, type SignMessageCallback, type Slippage, type StakeBalanceDynamicField, type StakeEvent, type StakePosition, type StakeSuiFrenEvent, type StakedEvent, StakedSuiFren, type StakedSuiFrenInfo, type StakedSuiFrenMetadataV1Object, type StakedSuiFrenPositionObject, type StakedSuiVaultStateObject, Staking, type StakingAddresses, type StakingApyDataPoint, type StakingApyTimeframeKey, type StakingPoolOneTimeAdminCapObject, type StakingPoolOwnerCapObject, type StakingPosition, type StringByte, Sui, type SuiAddress, type SuiCheckpoint, type SuiDelegatedStake, type SuiDelegatedStakeState, SuiFren, type SuiFrenAccessoryName, type SuiFrenAccessoryObject, type SuiFrenAccessoryType, type SuiFrenAttributes, type SuiFrenObject, type SuiFrenStats, type SuiFrenVaultStateV1Object, SuiFrens, type SuiFrensAddresses, SuiFrensSortOption, type SuiNetwork, type SuiObjectView, type Timestamp, type TransactionDigest, type TransactionsWithCursor, type TransferredDeallocatedCollateralEvent, type TranslatedMoveError, type TxBytes, type UniqueId, type UnstakeEvent, type UnstakePosition, type UnstakePositionState, type UnstakeRequestedEvent, type UnstakeSuiFrenEvent, type UnstakedEvent, type UpdatedFeeBpsEvent, type UpdatedFeeRecipientEvent, type UpdatedFundingEvent, type UpdatedMarketVersionEvent, type UpdatedPremiumTwapEvent, type UpdatedSpreadTwapEvent, type Url, type UserEventsInputs, type UserHistoryEventType, type ValidatorConfigObject, type ValidatorOperationCapObject, type ValueOf, type WithdrewCollateralEvent, isAftermathTransportError, isAllocatedCollateralEvent, isCanceledOrderEvent, isDeallocatedCollateralEvent, isDepositedCollateralEvent, isFarmsDepositedPrincipalEvent, isFarmsHarvestedRewardsEvent, isFarmsLockedEvent, isFarmsStakedEvent, isFarmsUnlockedEvent, isFarmsWithdrewPrincipalEvent, isFilledMakerOrdersEvent, isFilledTakerOrderEvent, isLiquidatedEvent, isPostedOrderEvent, isReducedOrderEvent, isSettledFundingEvent, isStakeEvent, isStakePosition, isSuiDelegatedStake, isUnstakeEvent, isUnstakePosition, isUpdatedFundingEvent, isUpdatedMarketVersion, isUpdatedPremiumTwapEvent, isUpdatedSpreadTwapEvent, isWithdrewCollateralEvent };