aftermath-ts-sdk 4.0.0-dev.449f8e6 → 4.0.0-dev.f4d4bd4

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
@@ -2599,7 +2599,7 @@ interface PerpetualsVaultMetatada {
2599
2599
  * Network-specific protocol limits shared by all Perpetuals vaults.
2600
2600
  *
2601
2601
  * These values come from the current on-chain vaults configuration rather
2602
- * than SDK constants. Fetch them with `Perpetuals.getVaultsConfig`.
2602
+ * than SDK constants. Fetch them with `Perpetuals.getVaultsConfig`.
2603
2603
  */
2604
2604
  interface PerpetualsVaultsConfig {
2605
2605
  /** ID of the on-chain vaults configuration object. */
@@ -5968,149 +5968,6 @@ type ApiPerpetualsVaultPreviewOwnerWithdrawPerformanceFeesResponse = {
5968
5968
  /** Coin type used to pay or receive the performance fees. */
5969
5969
  feeCoinType: CoinType;
5970
5970
  };
5971
- /**
5972
- * Request body for calculating rewards and rebates for perpetuals accounts.
5973
- *
5974
- * This corresponds to `POST /api/perpetuals/rebates/rewards`.
5975
- *
5976
- * Given maker and taker reward pools and a list of accounts, computes
5977
- * per-account reward allocations and fee-tier rebates.
5978
- * When `accountIds` is omitted or empty, all eligible accounts are included.
5979
- *
5980
- * **Note:** All data returned is for the current epoch only.
5981
- */
5982
- interface ApiPerpetualsCurrentRebateRewardsBody {
5983
- /** Optional account filter. Omit or pass an empty array for all eligible accounts. */
5984
- accountIds?: PerpetualsAccountId[];
5985
- /** Total maker reward pool to distribute among eligible market makers. */
5986
- totalMakerRewards: number;
5987
- /** Total taker reward pool to distribute among eligible takers. */
5988
- totalTakerRewards: number;
5989
- /** Coefficients used to compute Q-scores and taker shares. */
5990
- calculationVariables: PerpetualsCalculationVariables;
5991
- }
5992
- /**
5993
- * Coefficients used when computing Q-scores and taker shares for the rebate
5994
- * rewards calculation. Each is a weighting exponent applied to a corresponding
5995
- * per-account metric.
5996
- */
5997
- interface PerpetualsCalculationVariables {
5998
- /** Exponent applied to the raw Q-score component. */
5999
- qScoreCoefficient: number;
6000
- /** Exponent applied to the uptime component. */
6001
- uptimeCoefficient: number;
6002
- /** Exponent applied to the maker volume component. */
6003
- mmVolumeCoefficient: number;
6004
- /** Exponent applied to the taker volume component. */
6005
- takerVolumeCoefficient: number;
6006
- /** Exponent applied to the taker open-interest component. */
6007
- takerOiCoefficient: number;
6008
- }
6009
- /**
6010
- * Maker reward and rebate breakdown for a single account.
6011
- */
6012
- interface PerpetualsMakerData {
6013
- /** Normalized Q-score: raw cross-market sum averaged over snapshot count. */
6014
- qScore: number;
6015
- /** Final score: `qScore^coeff * uptime^coeff * volume^coeff`. */
6016
- qScoreFinal: number;
6017
- /** Share of total `qScoreFinal` across all eligible accounts (between 0 and 1). */
6018
- qScoreFinalShare: number;
6019
- /** Cross-market uptime count (number of snapshots with qualifying orders). */
6020
- uptime: number;
6021
- /** Q-score-based rewards from the maker reward pool. */
6022
- rewards: number;
6023
- /** Cross-market maker volume in USD. */
6024
- volume: number;
6025
- /** Share of total maker volume across all eligible accounts (between 0 and 1). */
6026
- volumeShare: number;
6027
- /** Volume-share tier rebate: `tierRate * volume`. */
6028
- volumeRebate: number;
6029
- /** Total maker fees paid across all markets. */
6030
- feesPaid: number;
6031
- /** Fee tier rebate: `max(0, feesPaid - discountedFees)`. */
6032
- feeRebate: number;
6033
- }
6034
- /**
6035
- * Taker reward and rebate breakdown for a single account.
6036
- */
6037
- interface PerpetualsTakerData {
6038
- /** Volume-share-based rewards from the taker reward pool. */
6039
- rewards: number;
6040
- /** Cross-market taker volume in USD. */
6041
- volume: number;
6042
- /** Share of total taker volume across all eligible accounts (between 0 and 1). */
6043
- volumeShare: number;
6044
- /** Total taker fees paid across all markets. */
6045
- feesPaid: number;
6046
- /** Fee tier rebate: `max(0, feesPaid - discountedFees)`. */
6047
- feeRebate: number;
6048
- }
6049
- /**
6050
- * Combined reward and rebate data for a single account.
6051
- */
6052
- interface PerpetualsRewardData {
6053
- /** Account receiving this reward and rebate breakdown. */
6054
- accountId: PerpetualsAccountId;
6055
- /** Maker-side reward and rebate metrics. */
6056
- maker: PerpetualsMakerData;
6057
- /** Taker-side reward and rebate metrics. */
6058
- taker: PerpetualsTakerData;
6059
- }
6060
- /**
6061
- * Response body for the rewards and rebates calculation.
6062
- */
6063
- interface ApiPerpetualsCurrentRebateRewardsResponse {
6064
- /** Sum of all final quality scores across eligible makers. */
6065
- totalQScoreFinal: number;
6066
- /** Total estimated gas cost for order management across all accounts (decimal SUI). */
6067
- totalEstimatedGasCost: number;
6068
- /** Per-account reward and rebate breakdown. */
6069
- rewards: PerpetualsRewardData[];
6070
- }
6071
- /**
6072
- * Request body for generating a CSV-formatted rebate report.
6073
- *
6074
- * This corresponds to `POST /api/perpetuals/rebates/create-csv-rebates`.
6075
- *
6076
- * Produces a CSV string containing per-account rebate and reward data.
6077
- * When `accountIds` is omitted or empty, all eligible accounts are included.
6078
- */
6079
- interface ApiPerpetualsCreateCsvRebatesBody extends ApiPerpetualsCurrentRebateRewardsBody {
6080
- /**
6081
- * When true, aggregate rewards by owner address instead of per-account.
6082
- * Defaults to false when omitted.
6083
- */
6084
- aggregated?: boolean;
6085
- }
6086
- /**
6087
- * Response body for the CSV rebate report.
6088
- */
6089
- interface ApiPerpetualsCreateCsvRebatesResponse {
6090
- /** The CSV-formatted rebate data as a string. */
6091
- csv: string;
6092
- }
6093
- /**
6094
- * Request body for generating a referral rebate CSV report.
6095
- *
6096
- * This corresponds to `POST /api/perpetuals/rebates/create-referral-csv-rebates`.
6097
- *
6098
- * Calculates referrer commissions and referee discounts based on trading
6099
- * fees within the specified epoch.
6100
- */
6101
- interface ApiPerpetualsCreateReferralCsvRebatesBody {
6102
- /** Epoch start timestamp in milliseconds. */
6103
- epochStartTimestampMs: Timestamp;
6104
- /** Epoch end timestamp in milliseconds. */
6105
- epochEndTimestampMs: Timestamp;
6106
- }
6107
- /**
6108
- * Response body for the referral rebate CSV report.
6109
- */
6110
- interface ApiPerpetualsCreateReferralCsvRebatesResponse {
6111
- /** The CSV-formatted referral rebate data as a string. */
6112
- csv: string;
6113
- }
6114
5971
  /**
6115
5972
  * SDK-level inputs for placing a market order from a client.
6116
5973
  *
@@ -6323,6 +6180,17 @@ interface PerpetualsWsUpdatesOraclePayload {
6323
6180
  basePrice: number;
6324
6181
  /** Current collateral price, in USD. */
6325
6182
  collateralPrice: number;
6183
+ /**
6184
+ * Current mark price — what positions are marked against for PnL and
6185
+ * liquidation, as opposed to the raw index price.
6186
+ */
6187
+ markPrice: number;
6188
+ /**
6189
+ * Raw orderbook mid price, or `null` when either side of the book is empty.
6190
+ * Nullable where `markPrice` is not: mark falls back to the index price
6191
+ * upstream, whereas a raw mid has none.
6192
+ */
6193
+ bookPrice: number | null;
6326
6194
  }
6327
6195
  /**
6328
6196
  * Websocket payload for market orders stream.
@@ -8055,6 +7923,103 @@ interface ApiRewardsClaimRequestTxResponse {
8055
7923
  /** Base64-serialized full transaction bytes or `TransactionKind` bytes. */
8056
7924
  txKind: SerializedTransaction;
8057
7925
  }
7926
+ /**
7927
+ * Request body for computing the rewards distribution across perpetuals
7928
+ * accounts.
7929
+ *
7930
+ * This corresponds to `POST /api/rewards/distribution`, which replaces the
7931
+ * removed `POST /api/perpetuals/rebates/rewards`.
7932
+ *
7933
+ * Given maker and taker reward pools and a list of accounts, computes
7934
+ * per-account reward allocations and fee-tier rebates. When `accountIds` is
7935
+ * omitted or empty, all eligible accounts are included.
7936
+ *
7937
+ * **Note:** All data returned is for the current epoch only.
7938
+ */
7939
+ interface ApiRewardsDistributionBody {
7940
+ /**
7941
+ * Optional account filter. Omit or pass an empty array for all eligible
7942
+ * accounts. `Caller` serializes each id to the API's `"123n"` wire format
7943
+ * and parses the response back, so pass real bigints here.
7944
+ */
7945
+ accountIds?: PerpetualsAccountId[];
7946
+ /** Total maker reward pool to distribute among eligible market makers. */
7947
+ totalMakerRewards: number;
7948
+ /** Total taker reward pool to distribute among eligible takers. */
7949
+ totalTakerRewards: number;
7950
+ /** Coefficients used to compute Q-scores and taker shares. */
7951
+ calculationVariables: RewardsDistributionCalculationVariables;
7952
+ }
7953
+ /**
7954
+ * Coefficients used when computing Q-scores and taker shares. Each is a
7955
+ * weighting exponent applied to a corresponding per-account metric.
7956
+ */
7957
+ interface RewardsDistributionCalculationVariables {
7958
+ /** Exponent applied to the raw Q-score component. */
7959
+ qScoreCoefficient: number;
7960
+ /** Exponent applied to the uptime component. */
7961
+ uptimeCoefficient: number;
7962
+ /** Exponent applied to the maker volume component. */
7963
+ mmVolumeCoefficient: number;
7964
+ /** Exponent applied to the taker volume component. */
7965
+ takerVolumeCoefficient: number;
7966
+ /** Exponent applied to the taker open-interest component. */
7967
+ takerOiCoefficient: number;
7968
+ }
7969
+ /** Maker reward and rebate breakdown for a single account. */
7970
+ interface RewardsDistributionMakerData {
7971
+ /** Normalized Q-score: raw cross-market sum averaged over snapshot count. */
7972
+ qScore: number;
7973
+ /** Final score: `qScore^coeff * uptime^coeff * volume^coeff`. */
7974
+ qScoreFinal: number;
7975
+ /** Share of total `qScoreFinal` across all eligible accounts. */
7976
+ qScoreFinalShare: Percentage;
7977
+ /** Cross-market uptime count (number of snapshots with qualifying orders). */
7978
+ uptime: number;
7979
+ /** Q-score-based rewards from the maker reward pool. */
7980
+ rewards: number;
7981
+ /** Cross-market maker volume in USD. */
7982
+ volume: number;
7983
+ /** Share of total maker volume across all eligible accounts. */
7984
+ volumeShare: Percentage;
7985
+ /** Volume-share tier rebate: `tierRate * volume`. */
7986
+ volumeRebate: number;
7987
+ /** Total maker fees paid across all markets. */
7988
+ feesPaid: number;
7989
+ /** Fee tier rebate: `max(0, feesPaid - discountedFees)`. */
7990
+ feeRebate: number;
7991
+ }
7992
+ /** Taker reward and rebate breakdown for a single account. */
7993
+ interface RewardsDistributionTakerData {
7994
+ /** Volume-share-based rewards from the taker reward pool. */
7995
+ rewards: number;
7996
+ /** Cross-market taker volume in USD. */
7997
+ volume: number;
7998
+ /** Share of total taker volume across all eligible accounts. */
7999
+ volumeShare: Percentage;
8000
+ /** Total taker fees paid across all markets. */
8001
+ feesPaid: number;
8002
+ /** Fee tier rebate: `max(0, feesPaid - discountedFees)`. */
8003
+ feeRebate: number;
8004
+ }
8005
+ /** Combined reward and rebate data for a single account. */
8006
+ interface RewardsDistributionAccountData {
8007
+ /** Account receiving this reward and rebate breakdown. */
8008
+ accountId: PerpetualsAccountId;
8009
+ /** Maker-side reward and rebate metrics. */
8010
+ maker: RewardsDistributionMakerData;
8011
+ /** Taker-side reward and rebate metrics. */
8012
+ taker: RewardsDistributionTakerData;
8013
+ }
8014
+ /** Response body for the rewards distribution calculation. */
8015
+ interface ApiRewardsDistributionResponse {
8016
+ /** Sum of all final quality scores across eligible makers. */
8017
+ totalQScoreFinal: number;
8018
+ /** Total estimated gas cost for order management across all accounts (decimal SUI). */
8019
+ totalEstimatedGasCost: number;
8020
+ /** Per-account reward and rebate breakdown. */
8021
+ rewards: RewardsDistributionAccountData[];
8022
+ }
8058
8023
 
8059
8024
  /**
8060
8025
  * Normalized validator configuration returned by the staking API.
@@ -14286,52 +14251,6 @@ declare class Perpetuals extends Caller {
14286
14251
  })): Promise<Omit<ApiTransactionResponse, "txKind"> & {
14287
14252
  tx: Transaction;
14288
14253
  }>;
14289
- /**
14290
- * Calculate rewards and rebates for one or more perpetuals accounts.
14291
- *
14292
- * Computes per-account maker and taker reward allocations, fee-tier rebates,
14293
- * and volume-based metrics. When `accountIds` is omitted or empty, all eligible
14294
- * accounts are included.
14295
- *
14296
- * **Note:** All data returned is for the current epoch only.
14297
- *
14298
- * @param inputs.totalMakerRewards - Total maker reward pool to distribute.
14299
- * @param inputs.totalTakerRewards - Total taker reward pool to distribute.
14300
- * @param inputs.accountIds - Optional list of account IDs.
14301
- * @returns `ApiPerpetualsCurrentRebateRewardsResponse` with per-account reward and rebate data.
14302
- *
14303
- * @example
14304
- * ```ts
14305
- * const { totalQScoreFinal, rewards } = await perps.getCurrentRebateRewards({
14306
- * totalMakerRewards: 10000,
14307
- * totalTakerRewards: 5000,
14308
- * });
14309
- * ```
14310
- */
14311
- getCurrentRebateRewards(inputs: ApiPerpetualsCurrentRebateRewardsBody): Promise<ApiPerpetualsCurrentRebateRewardsResponse>;
14312
- /**
14313
- * Generate a CSV-formatted rebate report for perpetuals market makers.
14314
- *
14315
- * Computes per-account reward allocations and fee-tier rebate adjustments,
14316
- * returning the result as a CSV string. When `aggregated` is true, the CSV
14317
- * groups rewards by owner address instead of per-account.
14318
- *
14319
- * **Note:** All data returned is for the current epoch only.
14320
- *
14321
- * @param inputs - {@link ApiPerpetualsCreateCsvRebatesBody}.
14322
- * @returns `ApiPerpetualsCreateCsvRebatesResponse` containing the CSV string.
14323
- */
14324
- getCsvRebates(inputs: ApiPerpetualsCreateCsvRebatesBody): Promise<ApiPerpetualsCreateCsvRebatesResponse>;
14325
- /**
14326
- * Generate a CSV-formatted referral rebate report.
14327
- *
14328
- * Calculates referrer commissions and referee discounts based on trading
14329
- * fees within the specified epoch, returning the result as a CSV string.
14330
- *
14331
- * @param inputs - {@link ApiPerpetualsCreateReferralCsvRebatesBody}.
14332
- * @returns `ApiPerpetualsCreateReferralCsvRebatesResponse` containing the CSV string.
14333
- */
14334
- getReferralCsvRebates(inputs: ApiPerpetualsCreateReferralCsvRebatesBody): Promise<ApiPerpetualsCreateReferralCsvRebatesResponse>;
14335
14254
  /**
14336
14255
  * Build a transaction to create an integrator configuration.
14337
14256
  *
@@ -17212,6 +17131,30 @@ declare class Rewards extends Caller {
17212
17131
  * @returns The total points across all reward epochs and domains.
17213
17132
  * @throws `AftermathTransportError` when the API request or response fails.
17214
17133
  */
17134
+ /**
17135
+ * Computes the distribution of the maker and taker reward pools across
17136
+ * perpetuals accounts.
17137
+ *
17138
+ * Returns per-account maker and taker reward allocations, fee-tier rebates
17139
+ * and volume metrics. When `accountIds` is omitted or empty the API includes
17140
+ * every eligible account, so pass an explicit list to scope the result.
17141
+ *
17142
+ * **Note:** All data returned is for the current epoch only.
17143
+ *
17144
+ * @param inputs - {@link ApiRewardsDistributionBody}.
17145
+ * @returns Per-account reward and rebate breakdown for the current epoch.
17146
+ * @throws `AftermathTransportError` when the API request or response fails.
17147
+ *
17148
+ * @example
17149
+ * ```ts
17150
+ * const { totalQScoreFinal, rewards } = await rewards.getDistribution({
17151
+ * totalMakerRewards: 10000,
17152
+ * totalTakerRewards: 5000,
17153
+ * calculationVariables: { ... },
17154
+ * });
17155
+ * ```
17156
+ */
17157
+ getDistribution(inputs: ApiRewardsDistributionBody): Promise<ApiRewardsDistributionResponse>;
17215
17158
  getPoints(inputs: ApiRewardsGetPointsBody): Promise<ApiRewardsGetPointsResponse>;
17216
17159
  /**
17217
17160
  * Fetches one page of the wallet's reward history.
@@ -25723,4 +25666,4 @@ declare class Aftermath extends Caller {
25723
25666
  static casting: typeof Casting;
25724
25667
  }
25725
25668
 
25726
- 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 ApiPerpetualsCurrentRebateRewardsBody, type ApiPerpetualsCurrentRebateRewardsResponse, 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 ApiRewardsExpectedRewardsBody, type ApiRewardsExpectedRewardsResponse, 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 PerpetualsCalculationVariables, type PerpetualsCandleResolution, type PerpetualsCapType, type PerpetualsClientOrderId, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, type PerpetualsIntegratorVaultData, type PerpetualsMakerData, 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 PerpetualsRewardData, type PerpetualsServerInjectedTxFields, type PerpetualsSponsorConfig, type PerpetualsStopOrderData, PerpetualsStopOrderTriggerPriceType, PerpetualsStopOrderType, type PerpetualsTakerData, 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 RewardsExpectedCalculationVariables, type RewardsExpectedDomainTokens, type RewardsExpectedEpochInfo, type RewardsExpectedTotals, 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 };
25669
+ 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 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 ApiRewardsExpectedRewardsBody, type ApiRewardsExpectedRewardsResponse, 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 RewardsExpectedCalculationVariables, type RewardsExpectedDomainTokens, type RewardsExpectedEpochInfo, type RewardsExpectedTotals, 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 };
package/dist/index.js CHANGED
@@ -15381,58 +15381,6 @@ var init_perpetuals = __esm({
15381
15381
  // =========================================================================
15382
15382
  // Rebates
15383
15383
  // =========================================================================
15384
- /**
15385
- * Calculate rewards and rebates for one or more perpetuals accounts.
15386
- *
15387
- * Computes per-account maker and taker reward allocations, fee-tier rebates,
15388
- * and volume-based metrics. When `accountIds` is omitted or empty, all eligible
15389
- * accounts are included.
15390
- *
15391
- * **Note:** All data returned is for the current epoch only.
15392
- *
15393
- * @param inputs.totalMakerRewards - Total maker reward pool to distribute.
15394
- * @param inputs.totalTakerRewards - Total taker reward pool to distribute.
15395
- * @param inputs.accountIds - Optional list of account IDs.
15396
- * @returns `ApiPerpetualsCurrentRebateRewardsResponse` with per-account reward and rebate data.
15397
- *
15398
- * @example
15399
- * ```ts
15400
- * const { totalQScoreFinal, rewards } = await perps.getCurrentRebateRewards({
15401
- * totalMakerRewards: 10000,
15402
- * totalTakerRewards: 5000,
15403
- * });
15404
- * ```
15405
- */
15406
- async getCurrentRebateRewards(inputs) {
15407
- return this.fetchApi("rebates/rewards", inputs);
15408
- }
15409
- /**
15410
- * Generate a CSV-formatted rebate report for perpetuals market makers.
15411
- *
15412
- * Computes per-account reward allocations and fee-tier rebate adjustments,
15413
- * returning the result as a CSV string. When `aggregated` is true, the CSV
15414
- * groups rewards by owner address instead of per-account.
15415
- *
15416
- * **Note:** All data returned is for the current epoch only.
15417
- *
15418
- * @param inputs - {@link ApiPerpetualsCreateCsvRebatesBody}.
15419
- * @returns `ApiPerpetualsCreateCsvRebatesResponse` containing the CSV string.
15420
- */
15421
- async getCsvRebates(inputs) {
15422
- return this.fetchApi("rebates/create-csv-rebates", inputs);
15423
- }
15424
- /**
15425
- * Generate a CSV-formatted referral rebate report.
15426
- *
15427
- * Calculates referrer commissions and referee discounts based on trading
15428
- * fees within the specified epoch, returning the result as a CSV string.
15429
- *
15430
- * @param inputs - {@link ApiPerpetualsCreateReferralCsvRebatesBody}.
15431
- * @returns `ApiPerpetualsCreateReferralCsvRebatesResponse` containing the CSV string.
15432
- */
15433
- async getReferralCsvRebates(inputs) {
15434
- return this.fetchApi("rebates/create-referral-csv-rebates", inputs);
15435
- }
15436
15384
  // =========================================================================
15437
15385
  // Builder Codes Transactions
15438
15386
  // =========================================================================
@@ -18589,6 +18537,32 @@ var init_rewards = __esm({
18589
18537
  * @returns The total points across all reward epochs and domains.
18590
18538
  * @throws `AftermathTransportError` when the API request or response fails.
18591
18539
  */
18540
+ /**
18541
+ * Computes the distribution of the maker and taker reward pools across
18542
+ * perpetuals accounts.
18543
+ *
18544
+ * Returns per-account maker and taker reward allocations, fee-tier rebates
18545
+ * and volume metrics. When `accountIds` is omitted or empty the API includes
18546
+ * every eligible account, so pass an explicit list to scope the result.
18547
+ *
18548
+ * **Note:** All data returned is for the current epoch only.
18549
+ *
18550
+ * @param inputs - {@link ApiRewardsDistributionBody}.
18551
+ * @returns Per-account reward and rebate breakdown for the current epoch.
18552
+ * @throws `AftermathTransportError` when the API request or response fails.
18553
+ *
18554
+ * @example
18555
+ * ```ts
18556
+ * const { totalQScoreFinal, rewards } = await rewards.getDistribution({
18557
+ * totalMakerRewards: 10000,
18558
+ * totalTakerRewards: 5000,
18559
+ * calculationVariables: { ... },
18560
+ * });
18561
+ * ```
18562
+ */
18563
+ async getDistribution(inputs) {
18564
+ return this.fetchApi("distribution", inputs);
18565
+ }
18592
18566
  async getPoints(inputs) {
18593
18567
  return this.fetchApi(
18594
18568
  "points",