aftermath-ts-sdk 6.1.1 → 6.2.0-dev.e739f3e
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 +218 -2
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4271,6 +4271,137 @@ interface ApiPerpetualsMarketFundingHistoryResponse {
|
|
|
4271
4271
|
/** Funding points in the requested time range. */
|
|
4272
4272
|
history: PerpetualsMarketFundingHistoryPoint[];
|
|
4273
4273
|
}
|
|
4274
|
+
/**
|
|
4275
|
+
* Request payload for fetching daily account collateral flows.
|
|
4276
|
+
*/
|
|
4277
|
+
interface ApiPerpetualsCollateralFlowsBody {
|
|
4278
|
+
/**
|
|
4279
|
+
* Omit or empty for all collateral types. Explicit filters allow at most 50
|
|
4280
|
+
* distinct types after server-side normalization.
|
|
4281
|
+
*/
|
|
4282
|
+
collateralTypes?: CoinType[];
|
|
4283
|
+
/** Inclusive start in Unix milliseconds, rounded down to the UTC day. */
|
|
4284
|
+
fromTimestamp: Timestamp;
|
|
4285
|
+
/** Exclusive end in Unix milliseconds; must be greater than fromTimestamp. */
|
|
4286
|
+
toTimestamp: Timestamp;
|
|
4287
|
+
}
|
|
4288
|
+
/**
|
|
4289
|
+
* Daily deposits and withdrawals for one UTC day.
|
|
4290
|
+
*/
|
|
4291
|
+
interface PerpetualsCollateralDailyStatsRow {
|
|
4292
|
+
/** UTC day start in Unix milliseconds as bigint. */
|
|
4293
|
+
timestamp: bigint;
|
|
4294
|
+
/** Positive deposit total in USD, valued at each event's collateral oracle price. */
|
|
4295
|
+
depositsUsd: number;
|
|
4296
|
+
/** Positive withdrawal total in USD; allocations to/from positions are excluded. */
|
|
4297
|
+
withdrawalsUsd: number;
|
|
4298
|
+
/** All-time deposits in USD for this collateral type up to and including this UTC day. */
|
|
4299
|
+
cumulativeDepositsUsd: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* All-time withdrawals in USD for this collateral type up to and including this UTC day.
|
|
4302
|
+
* Net deposits = cumulativeDepositsUsd - cumulativeWithdrawalsUsd.
|
|
4303
|
+
*/
|
|
4304
|
+
cumulativeWithdrawalsUsd: number;
|
|
4305
|
+
}
|
|
4306
|
+
/**
|
|
4307
|
+
* Daily account deposits and withdrawals grouped for one collateral type.
|
|
4308
|
+
*/
|
|
4309
|
+
interface PerpetualsCollateralDailyStats {
|
|
4310
|
+
/** Fully qualified Move type of the collateral coin. */
|
|
4311
|
+
collateralType: CoinType;
|
|
4312
|
+
/** Daily deposits and withdrawals for this collateral type. */
|
|
4313
|
+
stats: PerpetualsCollateralDailyStatsRow[];
|
|
4314
|
+
}
|
|
4315
|
+
/**
|
|
4316
|
+
* Response payload for daily account collateral flows.
|
|
4317
|
+
*/
|
|
4318
|
+
interface ApiPerpetualsCollateralFlowsResponse {
|
|
4319
|
+
/**
|
|
4320
|
+
* Groups sorted by collateral type. Types without rows are omitted.
|
|
4321
|
+
* The current day is provisional.
|
|
4322
|
+
*/
|
|
4323
|
+
stats: PerpetualsCollateralDailyStats[];
|
|
4324
|
+
}
|
|
4325
|
+
/**
|
|
4326
|
+
* Request payload for fetching daily statistics for perpetuals markets.
|
|
4327
|
+
*/
|
|
4328
|
+
interface ApiPerpetualsMarketsDailyStatsBody {
|
|
4329
|
+
/**
|
|
4330
|
+
* Omit or leave empty for all markets. Explicit filters allow at most 50
|
|
4331
|
+
* distinct IDs after server-side canonicalization and deduplication.
|
|
4332
|
+
*/
|
|
4333
|
+
marketIds?: PerpetualsMarketId[];
|
|
4334
|
+
/** Inclusive start in Unix milliseconds, rounded down to the UTC day. */
|
|
4335
|
+
fromTimestamp: Timestamp;
|
|
4336
|
+
/** Exclusive end in Unix milliseconds; must be greater than fromTimestamp. */
|
|
4337
|
+
toTimestamp: Timestamp;
|
|
4338
|
+
}
|
|
4339
|
+
/**
|
|
4340
|
+
* Daily trading statistics, closing open interest, and funding for a perpetuals market.
|
|
4341
|
+
*/
|
|
4342
|
+
interface PerpetualsMarketDailyStatsRow {
|
|
4343
|
+
/** UTC day start in Unix milliseconds as bigint. */
|
|
4344
|
+
timestamp: bigint;
|
|
4345
|
+
/** Taker-side traded volume in USD. */
|
|
4346
|
+
volumeUsd: number;
|
|
4347
|
+
/** Number of taker trades as bigint; maker fills are not counted separately. */
|
|
4348
|
+
takerTrades: bigint;
|
|
4349
|
+
/** Liquidated notional in USD, excluding auto-deleveraging and duplicate liquidator records. */
|
|
4350
|
+
liquidatedNotionalUsd: number;
|
|
4351
|
+
/** Last one-sided open interest in base units, carried forward over inactive days. */
|
|
4352
|
+
openInterestBase: number;
|
|
4353
|
+
/**
|
|
4354
|
+
* Base open interest times the last daily orderbook close on or before this UTC day, in USD;
|
|
4355
|
+
* zero before the market's first candle.
|
|
4356
|
+
*/
|
|
4357
|
+
openInterestUsd: number;
|
|
4358
|
+
/** All-time taker volume in USD for this market up to and including this UTC day. */
|
|
4359
|
+
cumulativeVolumeUsd: number;
|
|
4360
|
+
/** All-time taker trade count as bigint for this market up to and including this UTC day. */
|
|
4361
|
+
cumulativeTakerTrades: bigint;
|
|
4362
|
+
/** All-time liquidated notional in USD for this market up to and including this UTC day. */
|
|
4363
|
+
cumulativeLiquidatedNotionalUsd: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* Mean hourly funding rate for this UTC day as a fraction (`0.0000125` = 0.00125% per hour):
|
|
4366
|
+
* the day's funding per base unit divided by its settlements and the last daily orderbook
|
|
4367
|
+
* close on or before the day. Positive means longs paid shorts. The wire sends `null` when
|
|
4368
|
+
* the day had no settlements or no price is known, which the SDK parses as `undefined`; also
|
|
4369
|
+
* absent from backends that predate daily funding.
|
|
4370
|
+
*/
|
|
4371
|
+
fundingRate?: number;
|
|
4372
|
+
/**
|
|
4373
|
+
* `fundingRate × 8760` as a fraction (`0.1095` = 10.95% APR). `undefined` whenever
|
|
4374
|
+
* `fundingRate` is.
|
|
4375
|
+
*/
|
|
4376
|
+
fundingRateAnnualized?: number;
|
|
4377
|
+
/**
|
|
4378
|
+
* Hourly funding settlements in this UTC day as bigint: `24n` on a full day, fewer on the
|
|
4379
|
+
* current or listing day, `0n` before listing. Absent from backends that predate daily funding.
|
|
4380
|
+
*/
|
|
4381
|
+
fundingSettlements?: bigint;
|
|
4382
|
+
/**
|
|
4383
|
+
* Sum of this UTC day's funding in USD per 1 unit of the base asset, the same unit as
|
|
4384
|
+
* funding history's `longFundingRate`. Positive means longs paid. Absent from backends that
|
|
4385
|
+
* predate daily funding.
|
|
4386
|
+
*/
|
|
4387
|
+
fundingUsdPerUnit?: number;
|
|
4388
|
+
}
|
|
4389
|
+
/**
|
|
4390
|
+
* Daily trading statistics and closing open interest grouped for one market.
|
|
4391
|
+
*/
|
|
4392
|
+
interface PerpetualsMarketDailyStats {
|
|
4393
|
+
/** Identifier of the perpetuals market. */
|
|
4394
|
+
marketId: PerpetualsMarketId;
|
|
4395
|
+
/** Daily trading statistics and closing open interest for this market. */
|
|
4396
|
+
stats: PerpetualsMarketDailyStatsRow[];
|
|
4397
|
+
}
|
|
4398
|
+
/**
|
|
4399
|
+
* Response payload for daily perpetuals market statistics.
|
|
4400
|
+
*/
|
|
4401
|
+
interface ApiPerpetualsMarketsDailyStatsResponse {
|
|
4402
|
+
/** Groups sorted by market ID. Markets with no rows are omitted. The current day is provisional. */
|
|
4403
|
+
stats: PerpetualsMarketDailyStats[];
|
|
4404
|
+
}
|
|
4274
4405
|
/**
|
|
4275
4406
|
* Request body for computing the maximum order size for an account in a
|
|
4276
4407
|
* given market.
|
|
@@ -4888,6 +5019,44 @@ interface ApiPerpetualsCreateAccountResponse {
|
|
|
4888
5019
|
* (only set when `deferShare = true`). */
|
|
4889
5020
|
deferred?: DeferredAccountArgs;
|
|
4890
5021
|
}
|
|
5022
|
+
/** Gas Credit funding included in an onboarding transaction. */
|
|
5023
|
+
interface ApiPerpetualsOnboardGasCredit {
|
|
5024
|
+
/** When `true`, create the wallet's Gas Credit pool in the same transaction. */
|
|
5025
|
+
createGasPool: boolean;
|
|
5026
|
+
/** Coin used to fund Gas Credit. Non-SUI coins are swapped to SUI. */
|
|
5027
|
+
coinType: CoinType;
|
|
5028
|
+
/** Amount of `coinType` to spend on Gas Credit. */
|
|
5029
|
+
amount: Balance;
|
|
5030
|
+
/** Slippage tolerance for the swap to SUI. */
|
|
5031
|
+
slippage: Slippage;
|
|
5032
|
+
}
|
|
5033
|
+
/** Agent Wallet granted on the new account during onboarding. */
|
|
5034
|
+
interface ApiPerpetualsOnboardAgentWallet {
|
|
5035
|
+
/** Address that receives the account's agent capability. */
|
|
5036
|
+
recipientAddress: SuiAddress;
|
|
5037
|
+
/** When `true`, also whitelist the agent on the wallet's Gas Credit pool. */
|
|
5038
|
+
whitelistOnGasPool: boolean;
|
|
5039
|
+
}
|
|
5040
|
+
/**
|
|
5041
|
+
* Request body for the onboard endpoint, which creates a perpetuals account and
|
|
5042
|
+
* deposits its first collateral in one transaction.
|
|
5043
|
+
*/
|
|
5044
|
+
interface ApiPerpetualsOnboardBody {
|
|
5045
|
+
/** Wallet that will own the new account. */
|
|
5046
|
+
walletAddress: SuiAddress;
|
|
5047
|
+
/** Collateral coin type for the new account. */
|
|
5048
|
+
collateralCoinType: CoinType;
|
|
5049
|
+
/** Collateral to deposit, in `collateralCoinType`. */
|
|
5050
|
+
depositAmount: Balance;
|
|
5051
|
+
/** Optional Gas Credit funding. */
|
|
5052
|
+
gasCredit?: ApiPerpetualsOnboardGasCredit;
|
|
5053
|
+
/** Optional Agent Wallet to grant on the new account. */
|
|
5054
|
+
agentWallet?: ApiPerpetualsOnboardAgentWallet;
|
|
5055
|
+
/** Whether the transaction will be sponsored. Defaults to `false`. */
|
|
5056
|
+
isSponsoredTx?: boolean;
|
|
5057
|
+
/** Optional serialized transaction kind to extend. */
|
|
5058
|
+
txKind?: SerializedTransaction;
|
|
5059
|
+
}
|
|
4891
5060
|
/**
|
|
4892
5061
|
* Request body for depositing collateral into a perpetuals account.
|
|
4893
5062
|
*
|
|
@@ -13800,7 +13969,8 @@ declare class PerpetualsOrderUtils {
|
|
|
13800
13969
|
* - Vault discovery (`getAllVaults`, `getVaults`, `getVault`)
|
|
13801
13970
|
* - Account & position data (`getAccount`, `getAccounts`, `getAccountObjects`)
|
|
13802
13971
|
* - Ownership queries (`getOwnedAccountCaps`, `getOwnedVaultCaps`)
|
|
13803
|
-
* - Historical data & stats (`getMarketCandleHistory`, `
|
|
13972
|
+
* - Historical data & stats (`getMarketCandleHistory`, `getMarketFundingHistory`,
|
|
13973
|
+
* `getMarkets24hrStats`, `getCollateralFlows`, `getMarketsDailyStats`)
|
|
13804
13974
|
* - Pricing helpers (`getPrices`, `getLpCoinPrices`)
|
|
13805
13975
|
* - Transaction builders (`getCreateAccountTx`, `getCreateVaultCapTx`, `getCreateVaultTx`)
|
|
13806
13976
|
* - Websocket feeds (`openUpdatesWebsocketStream`, `openMarketCandlesWebsocketStream`)
|
|
@@ -14149,6 +14319,38 @@ declare class Perpetuals extends Caller {
|
|
|
14149
14319
|
* funding history points.
|
|
14150
14320
|
*/
|
|
14151
14321
|
getMarketFundingHistory(inputs: ApiPerpetualsMarketFundingHistoryBody): Promise<ApiPerpetualsMarketFundingHistoryResponse>;
|
|
14322
|
+
/**
|
|
14323
|
+
* Fetch daily account deposits and withdrawals in USD per collateral type.
|
|
14324
|
+
*
|
|
14325
|
+
* Cumulative fields are all-time totals up to and including each UTC day,
|
|
14326
|
+
* independent of the requested time range.
|
|
14327
|
+
*
|
|
14328
|
+
* @param inputs - Time range in Unix milliseconds and optional collateral types.
|
|
14329
|
+
* The start is inclusive and rounded down to the UTC day; the end is exclusive
|
|
14330
|
+
* and must exceed the start.
|
|
14331
|
+
* @returns Nested daily statistics grouped by collateral type. Types without
|
|
14332
|
+
* rows are omitted, and the current day is provisional. Timestamps are parsed
|
|
14333
|
+
* as bigint.
|
|
14334
|
+
*/
|
|
14335
|
+
getCollateralFlows(inputs: ApiPerpetualsCollateralFlowsBody): Promise<ApiPerpetualsCollateralFlowsResponse>;
|
|
14336
|
+
/**
|
|
14337
|
+
* Fetch daily volume, taker trade counts, liquidations, open interest, and funding per market.
|
|
14338
|
+
*
|
|
14339
|
+
* Cumulative fields are all-time totals up to and including each UTC day,
|
|
14340
|
+
* independent of the requested time range. Funding fields give the day's mean
|
|
14341
|
+
* hourly rate as a fraction, its annualized value, the settlement count, and the
|
|
14342
|
+
* raw USD-per-base-unit sum; positive rates mean longs paid shorts.
|
|
14343
|
+
*
|
|
14344
|
+
* @param inputs - Time range in Unix milliseconds and optional market IDs.
|
|
14345
|
+
* The start is inclusive and rounded down to the UTC day; the end is exclusive
|
|
14346
|
+
* and must exceed the start. Omitted or empty IDs select all markets; explicit
|
|
14347
|
+
* filters allow at most 50 distinct IDs after server-side canonicalization.
|
|
14348
|
+
* @returns Nested daily statistics grouped by market ID. Markets without rows
|
|
14349
|
+
* are omitted, and the current day is provisional. Timestamps, taker trade
|
|
14350
|
+
* counts (including cumulativeTakerTrades), and fundingSettlements are parsed
|
|
14351
|
+
* as bigint.
|
|
14352
|
+
*/
|
|
14353
|
+
getMarketsDailyStats(inputs: ApiPerpetualsMarketsDailyStatsBody): Promise<ApiPerpetualsMarketsDailyStatsResponse>;
|
|
14152
14354
|
/**
|
|
14153
14355
|
* Fetch 24-hour volume and price change stats for multiple markets.
|
|
14154
14356
|
*
|
|
@@ -14251,6 +14453,20 @@ declare class Perpetuals extends Caller {
|
|
|
14251
14453
|
}): Promise<Omit<ApiPerpetualsCreateAccountResponse, "txKind"> & {
|
|
14252
14454
|
tx: Transaction;
|
|
14253
14455
|
}>;
|
|
14456
|
+
/**
|
|
14457
|
+
* Build the onboarding transaction for a new Aftermath Perpetuals account.
|
|
14458
|
+
*
|
|
14459
|
+
* Creates the account, deposits its first collateral and shares it, with optional
|
|
14460
|
+
* Gas Credit funding and an optional Agent Wallet, in one transaction.
|
|
14461
|
+
*
|
|
14462
|
+
* @param inputs - {@link ApiPerpetualsOnboardBody} fields, plus an optional `tx` to extend.
|
|
14463
|
+
* @returns Transaction response containing a `tx`.
|
|
14464
|
+
*/
|
|
14465
|
+
getOnboardTx(inputs: Omit<ApiPerpetualsOnboardBody, "txKind"> & {
|
|
14466
|
+
tx?: Transaction;
|
|
14467
|
+
}): Promise<Omit<ApiTransactionResponse, "txKind"> & {
|
|
14468
|
+
tx: Transaction;
|
|
14469
|
+
}>;
|
|
14254
14470
|
/**
|
|
14255
14471
|
* Build a transaction that grants an Agent Wallet permission on a Perpetuals account.
|
|
14256
14472
|
*
|
|
@@ -25693,4 +25909,4 @@ declare class Aftermath extends Caller {
|
|
|
25693
25909
|
static casting: typeof Casting;
|
|
25694
25910
|
}
|
|
25695
25911
|
|
|
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 };
|
|
25912
|
+
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 ApiPerpetualsCollateralFlowsBody, type ApiPerpetualsCollateralFlowsResponse, 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 ApiPerpetualsMarketsDailyStatsBody, type ApiPerpetualsMarketsDailyStatsResponse, type ApiPerpetualsMarketsPricesBody, type ApiPerpetualsMarketsPricesResponse, type ApiPerpetualsMarketsResponse, type ApiPerpetualsMaxOrderSizeBody, type ApiPerpetualsOnboardAgentWallet, type ApiPerpetualsOnboardBody, type ApiPerpetualsOnboardGasCredit, 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 PerpetualsCollateralDailyStats, type PerpetualsCollateralDailyStatsRow, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, PerpetualsMarket, type PerpetualsMarket24hrStats, type PerpetualsMarketCandleDataPoint, type PerpetualsMarketCategory, type PerpetualsMarketDailyStats, type PerpetualsMarketDailyStatsRow, 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 };
|
package/dist/index.js
CHANGED
|
@@ -15142,6 +15142,42 @@ var init_perpetuals = __esm({
|
|
|
15142
15142
|
getMarketFundingHistory(inputs) {
|
|
15143
15143
|
return this.fetchApi("market/funding-history", inputs);
|
|
15144
15144
|
}
|
|
15145
|
+
/**
|
|
15146
|
+
* Fetch daily account deposits and withdrawals in USD per collateral type.
|
|
15147
|
+
*
|
|
15148
|
+
* Cumulative fields are all-time totals up to and including each UTC day,
|
|
15149
|
+
* independent of the requested time range.
|
|
15150
|
+
*
|
|
15151
|
+
* @param inputs - Time range in Unix milliseconds and optional collateral types.
|
|
15152
|
+
* The start is inclusive and rounded down to the UTC day; the end is exclusive
|
|
15153
|
+
* and must exceed the start.
|
|
15154
|
+
* @returns Nested daily statistics grouped by collateral type. Types without
|
|
15155
|
+
* rows are omitted, and the current day is provisional. Timestamps are parsed
|
|
15156
|
+
* as bigint.
|
|
15157
|
+
*/
|
|
15158
|
+
getCollateralFlows(inputs) {
|
|
15159
|
+
return this.fetchApi("stats/daily-collateral-flows", inputs);
|
|
15160
|
+
}
|
|
15161
|
+
/**
|
|
15162
|
+
* Fetch daily volume, taker trade counts, liquidations, open interest, and funding per market.
|
|
15163
|
+
*
|
|
15164
|
+
* Cumulative fields are all-time totals up to and including each UTC day,
|
|
15165
|
+
* independent of the requested time range. Funding fields give the day's mean
|
|
15166
|
+
* hourly rate as a fraction, its annualized value, the settlement count, and the
|
|
15167
|
+
* raw USD-per-base-unit sum; positive rates mean longs paid shorts.
|
|
15168
|
+
*
|
|
15169
|
+
* @param inputs - Time range in Unix milliseconds and optional market IDs.
|
|
15170
|
+
* The start is inclusive and rounded down to the UTC day; the end is exclusive
|
|
15171
|
+
* and must exceed the start. Omitted or empty IDs select all markets; explicit
|
|
15172
|
+
* filters allow at most 50 distinct IDs after server-side canonicalization.
|
|
15173
|
+
* @returns Nested daily statistics grouped by market ID. Markets without rows
|
|
15174
|
+
* are omitted, and the current day is provisional. Timestamps, taker trade
|
|
15175
|
+
* counts (including cumulativeTakerTrades), and fundingSettlements are parsed
|
|
15176
|
+
* as bigint.
|
|
15177
|
+
*/
|
|
15178
|
+
getMarketsDailyStats(inputs) {
|
|
15179
|
+
return this.fetchApi("markets/daily-stats", inputs);
|
|
15180
|
+
}
|
|
15145
15181
|
/**
|
|
15146
15182
|
* Fetch 24-hour volume and price change stats for multiple markets.
|
|
15147
15183
|
*
|
|
@@ -15284,6 +15320,27 @@ var init_perpetuals = __esm({
|
|
|
15284
15320
|
}
|
|
15285
15321
|
);
|
|
15286
15322
|
}
|
|
15323
|
+
/**
|
|
15324
|
+
* Build the onboarding transaction for a new Aftermath Perpetuals account.
|
|
15325
|
+
*
|
|
15326
|
+
* Creates the account, deposits its first collateral and shares it, with optional
|
|
15327
|
+
* Gas Credit funding and an optional Agent Wallet, in one transaction.
|
|
15328
|
+
*
|
|
15329
|
+
* @param inputs - {@link ApiPerpetualsOnboardBody} fields, plus an optional `tx` to extend.
|
|
15330
|
+
* @returns Transaction response containing a `tx`.
|
|
15331
|
+
*/
|
|
15332
|
+
async getOnboardTx(inputs) {
|
|
15333
|
+
const { tx, ...otherInputs } = inputs;
|
|
15334
|
+
return this.fetchApiTxObject(
|
|
15335
|
+
"transactions/onboard",
|
|
15336
|
+
{
|
|
15337
|
+
...otherInputs,
|
|
15338
|
+
txKind: await this.api?.Transactions().fetchBase64TxKindFromTx({ tx })
|
|
15339
|
+
},
|
|
15340
|
+
void 0,
|
|
15341
|
+
{ txKind: true }
|
|
15342
|
+
);
|
|
15343
|
+
}
|
|
15287
15344
|
/**
|
|
15288
15345
|
* Build a transaction that grants an Agent Wallet permission on a Perpetuals account.
|
|
15289
15346
|
*
|