aftermath-ts-sdk 2.0.0-temp.0 → 2.0.0-temp.2
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 +85 -44
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1483,6 +1483,13 @@ interface ApiNftAmmWithdrawBody {
|
|
|
1483
1483
|
referrer?: SuiAddress;
|
|
1484
1484
|
}
|
|
1485
1485
|
|
|
1486
|
+
/**
|
|
1487
|
+
* Semantic capability type for composed-flow transfers.
|
|
1488
|
+
*
|
|
1489
|
+
* Used by `getTransferCapTx` (Method 2) to specify which kind of capability
|
|
1490
|
+
* is being transferred without exposing Move type tags.
|
|
1491
|
+
*/
|
|
1492
|
+
type PerpetualsCapType = "accountAdmin" | "accountAgent" | "vaultAdmin" | "vaultAgent";
|
|
1486
1493
|
/**
|
|
1487
1494
|
* Configuration for gas pool sponsorship on perpetuals transactions.
|
|
1488
1495
|
*
|
|
@@ -1494,12 +1501,39 @@ interface PerpetualsSponsorConfig {
|
|
|
1494
1501
|
walletAddress: SuiAddress;
|
|
1495
1502
|
}
|
|
1496
1503
|
/**
|
|
1497
|
-
*
|
|
1504
|
+
* Configuration for gas pool sponsorship on perpetuals transactions.
|
|
1498
1505
|
*
|
|
1499
|
-
*
|
|
1500
|
-
*
|
|
1506
|
+
* When provided, the transaction will include a gas pool sponsor rebate step
|
|
1507
|
+
* that debits the specified wallet's gas pool.
|
|
1501
1508
|
*/
|
|
1502
|
-
|
|
1509
|
+
interface PerpetualsSponsorConfig {
|
|
1510
|
+
/** Wallet address to use for gas pool sponsorship. */
|
|
1511
|
+
walletAddress: SuiAddress;
|
|
1512
|
+
}
|
|
1513
|
+
/**
|
|
1514
|
+
* PTB argument references returned by deferred `create_account` for use
|
|
1515
|
+
* in downstream composed endpoints (share-account, grant-agent-wallet, etc.).
|
|
1516
|
+
*/
|
|
1517
|
+
interface DeferredAccountArgs {
|
|
1518
|
+
/** Argument reference for the created Account object. */
|
|
1519
|
+
accountArg: TransactionObjectArgument;
|
|
1520
|
+
/** Argument reference for the AccountSharePolicy. */
|
|
1521
|
+
sharePolicyArg: TransactionObjectArgument;
|
|
1522
|
+
/** Argument reference for the AccountCap<ADMIN>. */
|
|
1523
|
+
adminCapArg: TransactionObjectArgument;
|
|
1524
|
+
/** Collateral type for the account. */
|
|
1525
|
+
collateralCoinType: CoinType;
|
|
1526
|
+
}
|
|
1527
|
+
/**
|
|
1528
|
+
* PTB argument reference + semantic capability type for composed-flow
|
|
1529
|
+
* party transfers.
|
|
1530
|
+
*/
|
|
1531
|
+
interface ComposedTransferArgs {
|
|
1532
|
+
/** PTB argument reference for the object to transfer. */
|
|
1533
|
+
objectArg: TransactionObjectArgument;
|
|
1534
|
+
/** Semantic capability type being transferred. */
|
|
1535
|
+
capType: PerpetualsCapType;
|
|
1536
|
+
}
|
|
1503
1537
|
/**
|
|
1504
1538
|
* Unique identifier for a perpetuals market, represented as a Sui object ID
|
|
1505
1539
|
* (i.e. the `ClearingHouse` object on-chain).
|
|
@@ -2402,8 +2436,10 @@ interface PerpetualsAccountMarginHistoryData {
|
|
|
2402
2436
|
takerFeesUsd: number;
|
|
2403
2437
|
/** Maker fees in USD at that time. */
|
|
2404
2438
|
makerFeesUsd: number;
|
|
2405
|
-
/**
|
|
2406
|
-
|
|
2439
|
+
/** Liquidated fees in USD at that time. */
|
|
2440
|
+
liquidatedFeesUsd: number;
|
|
2441
|
+
/** Liquidator fees in USD at that time. */
|
|
2442
|
+
liquidatorFeesUsd: number;
|
|
2407
2443
|
}
|
|
2408
2444
|
/**
|
|
2409
2445
|
* Individual order affecting an account.
|
|
@@ -3523,15 +3559,15 @@ interface ApiPerpetualsCreateAccountBody {
|
|
|
3523
3559
|
* Response from the create-account endpoint.
|
|
3524
3560
|
*
|
|
3525
3561
|
* When `deferShare` is false (default), returns `txKind` and optionally `sponsorSignature`.
|
|
3526
|
-
* When `deferShare` is true, additionally returns argument references
|
|
3562
|
+
* When `deferShare` is true, additionally returns `deferred` with argument references
|
|
3563
|
+
* for PTB composition.
|
|
3527
3564
|
*/
|
|
3528
3565
|
interface ApiPerpetualsCreateAccountResponse {
|
|
3529
3566
|
txKind: SerializedTransaction;
|
|
3530
3567
|
sponsorSignature?: string;
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
collateralCoinType?: CoinType;
|
|
3568
|
+
/** Deferred account argument references for downstream composition
|
|
3569
|
+
* (only set when `deferShare = true`). */
|
|
3570
|
+
deferred?: DeferredAccountArgs;
|
|
3535
3571
|
}
|
|
3536
3572
|
/**
|
|
3537
3573
|
* Request body for depositing collateral into a perpetuals account.
|
|
@@ -3621,7 +3657,7 @@ type ApiPerpetualsDeallocateCollateralBody = {
|
|
|
3621
3657
|
*/
|
|
3622
3658
|
interface SdkPerpetualsPlaceStopOrdersInputs {
|
|
3623
3659
|
/** Stop orders to place (without objectId, which is created on-chain). */
|
|
3624
|
-
stopOrders: Omit<PerpetualsStopOrderData, "objectId">[];
|
|
3660
|
+
stopOrders: Omit<PerpetualsStopOrderData, "objectId" | "orderState">[];
|
|
3625
3661
|
/** Optional transaction to embed the call in. */
|
|
3626
3662
|
tx?: Transaction;
|
|
3627
3663
|
/** Optional gas coin for sponsored or custom gas usage. */
|
|
@@ -3636,7 +3672,7 @@ interface SdkPerpetualsPlaceStopOrdersInputs {
|
|
|
3636
3672
|
*/
|
|
3637
3673
|
type ApiPerpetualsPlaceStopOrdersBody = {
|
|
3638
3674
|
walletAddress: SuiAddress;
|
|
3639
|
-
stopOrders: Omit<PerpetualsStopOrderData, "objectId">[];
|
|
3675
|
+
stopOrders: Omit<PerpetualsStopOrderData, "objectId" | "orderState">[];
|
|
3640
3676
|
gasCoinArg?: TransactionObjectArgument;
|
|
3641
3677
|
isSponsoredTx?: boolean;
|
|
3642
3678
|
sponsor?: PerpetualsSponsorConfig;
|
|
@@ -3911,14 +3947,12 @@ type ApiPerpetualsCancelOrdersBody = {
|
|
|
3911
3947
|
} | {
|
|
3912
3948
|
vaultId: ObjectId;
|
|
3913
3949
|
});
|
|
3914
|
-
type ApiPerpetualsCancelStopOrdersMethod = "Executor" | "User";
|
|
3915
3950
|
/**
|
|
3916
3951
|
* API request body for canceling stop orders identified by object IDs.
|
|
3917
3952
|
*/
|
|
3918
3953
|
type ApiPerpetualsCancelStopOrdersBody = {
|
|
3919
3954
|
walletAddress: SuiAddress;
|
|
3920
3955
|
stopOrderIds: ObjectId[];
|
|
3921
|
-
cancelMethod?: ApiPerpetualsCancelStopOrdersMethod;
|
|
3922
3956
|
txKind?: SerializedTransaction;
|
|
3923
3957
|
sponsor?: PerpetualsSponsorConfig;
|
|
3924
3958
|
} & ({
|
|
@@ -4095,13 +4129,18 @@ interface ApiPerpetualsMarketsPricesResponse {
|
|
|
4095
4129
|
* The resulting on-chain transaction must be signed by the **account admin** wallet.
|
|
4096
4130
|
* After execution, `recipientAddress` receives assistant-level permissions for `accountId`
|
|
4097
4131
|
* (trading actions are allowed, but **withdrawing collateral** and managing other agent wallets are not).
|
|
4132
|
+
*
|
|
4133
|
+
* ### Methods
|
|
4134
|
+
* - **Method 1 (existing account)**: Provide `accountId`.
|
|
4135
|
+
* - **Method 2 (composed flow)**: Provide `deferred` with argument references
|
|
4136
|
+
* from a deferred `getCreateAccountTx` call.
|
|
4098
4137
|
*/
|
|
4099
4138
|
type ApiPerpetualsGrantAgentWalletTxBody = {
|
|
4100
4139
|
recipientAddress: SuiAddress;
|
|
4140
|
+
/** Perpetuals account ID (Method 1). */
|
|
4101
4141
|
accountId?: PerpetualsAccountId;
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
collateralCoinType?: CoinType;
|
|
4142
|
+
/** Composed PTB args from deferred create-account (Method 2). */
|
|
4143
|
+
deferred?: DeferredAccountArgs;
|
|
4105
4144
|
txKind?: SerializedTransaction;
|
|
4106
4145
|
};
|
|
4107
4146
|
/**
|
|
@@ -4131,17 +4170,11 @@ type ApiPerpetualsTransferCapTxBody = {
|
|
|
4131
4170
|
*/
|
|
4132
4171
|
capObjectId?: ObjectId;
|
|
4133
4172
|
/**
|
|
4134
|
-
* PTB argument
|
|
4173
|
+
* Composed PTB argument + capability type from a deferred flow.
|
|
4135
4174
|
*
|
|
4136
4175
|
* Required for Method 2 (composed flow); omit for Method 1.
|
|
4137
4176
|
*/
|
|
4138
|
-
|
|
4139
|
-
/**
|
|
4140
|
-
* Semantic capability type. Required for Method 2 (composed flow); omit for Method 1.
|
|
4141
|
-
*
|
|
4142
|
-
* Accepted values: `"accountAdmin"`, `"accountAgent"`, `"vaultAdmin"`, `"vaultAgent"`.
|
|
4143
|
-
*/
|
|
4144
|
-
capType?: PerpetualsCapType;
|
|
4177
|
+
composed?: ComposedTransferArgs;
|
|
4145
4178
|
/**
|
|
4146
4179
|
* Optional serialized (base64) Sui `TransactionKind` to extend.
|
|
4147
4180
|
*
|
|
@@ -4156,15 +4189,19 @@ type ApiPerpetualsTransferCapTxBody = {
|
|
|
4156
4189
|
* This finalizes the account creation flow by consuming the `AccountSharePolicy`
|
|
4157
4190
|
* and sharing the `Account` object.
|
|
4158
4191
|
*
|
|
4192
|
+
* The deferred account fields (`accountArg`, `sharePolicyArg`, `adminCapArg`,
|
|
4193
|
+
* `collateralCoinType`) are sent as top-level fields (matching the API's flattened layout).
|
|
4194
|
+
*
|
|
4159
4195
|
* ### Example flow
|
|
4160
|
-
* 1. `create-account` with `deferShare=true` → returns `
|
|
4161
|
-
* 2. `grant-agent-wallet` with `
|
|
4162
|
-
* 3. `transfer-cap` with `
|
|
4163
|
-
* 4. `share` with
|
|
4196
|
+
* 1. `create-account` with `deferShare=true` → returns `deferred` with argument references
|
|
4197
|
+
* 2. `grant-agent-wallet` with `deferred` → mints assistant cap
|
|
4198
|
+
* 3. `transfer-cap` with `composed` → transfers admin cap to primary wallet
|
|
4199
|
+
* 4. `share` with deferred fields → finalizes account sharing
|
|
4164
4200
|
*/
|
|
4165
4201
|
interface ApiPerpetualsShareAccountBody {
|
|
4166
4202
|
accountArg: TransactionObjectArgument;
|
|
4167
4203
|
sharePolicyArg: TransactionObjectArgument;
|
|
4204
|
+
adminCapArg: TransactionObjectArgument;
|
|
4168
4205
|
collateralCoinType: CoinType;
|
|
4169
4206
|
txKind?: SerializedTransaction;
|
|
4170
4207
|
sponsor?: PerpetualsSponsorConfig;
|
|
@@ -4888,6 +4925,8 @@ interface ApiGasPoolCreateResponse {
|
|
|
4888
4925
|
}
|
|
4889
4926
|
interface ApiGasPoolDepositBody {
|
|
4890
4927
|
walletAddress: SuiAddress;
|
|
4928
|
+
/** Whether to build the transaction for sponsored gas. Defaults to false. */
|
|
4929
|
+
isSponsoredTx?: boolean;
|
|
4891
4930
|
/** Coin type of the deposit token. Defaults to SUI if omitted.
|
|
4892
4931
|
* When set to a non-SUI type, the endpoint swaps to SUI before depositing. */
|
|
4893
4932
|
coinType?: CoinType;
|
|
@@ -9611,7 +9650,6 @@ declare class PerpetualsAccount extends Caller {
|
|
|
9611
9650
|
getCancelStopOrdersTx(inputs: {
|
|
9612
9651
|
tx?: Transaction;
|
|
9613
9652
|
sponsor?: PerpetualsSponsorConfig;
|
|
9614
|
-
cancelMethod?: ApiPerpetualsCancelStopOrdersMethod;
|
|
9615
9653
|
stopOrderIds: ObjectId[];
|
|
9616
9654
|
}): Promise<Omit<ApiTransactionResponse, "txKind"> & {
|
|
9617
9655
|
tx: Transaction;
|
|
@@ -10941,13 +10979,12 @@ declare class Perpetuals extends Caller {
|
|
|
10941
10979
|
*
|
|
10942
10980
|
* Supports two methods:
|
|
10943
10981
|
* - **Method 1**: Provide `capObjectId` to transfer an existing on-chain object.
|
|
10944
|
-
* - **Method 2**: Provide `
|
|
10982
|
+
* - **Method 2**: Provide `composed` with the PTB argument and capability type
|
|
10945
10983
|
* from a deferred PTB composition (e.g., from `getCreateAccountTx` with `deferShare=true`).
|
|
10946
10984
|
*
|
|
10947
10985
|
* @param inputs.recipientAddress - Recipient wallet address that should receive the cap.
|
|
10948
10986
|
* @param inputs.capObjectId - Object ID of the capability to transfer (Method 1).
|
|
10949
|
-
* @param inputs.
|
|
10950
|
-
* @param inputs.capType - Object type tag for the capability (Method 2).
|
|
10987
|
+
* @param inputs.composed - Composed PTB argument + capability type (Method 2).
|
|
10951
10988
|
* @param inputs.tx - Optional transaction to extend.
|
|
10952
10989
|
*
|
|
10953
10990
|
* @returns Transaction response containing a `tx`.
|
|
@@ -10960,15 +10997,16 @@ declare class Perpetuals extends Caller {
|
|
|
10960
10997
|
/**
|
|
10961
10998
|
* Build a `create-account` transaction for Aftermath Perpetuals.
|
|
10962
10999
|
*
|
|
10963
|
-
* When `deferShare` is `true`, the response includes `
|
|
10964
|
-
* `adminCapArg`, and `collateralCoinType` so you
|
|
10965
|
-
* (grant-agent-wallet, transfer-cap) before calling
|
|
11000
|
+
* When `deferShare` is `true`, the response includes a `deferred` object with
|
|
11001
|
+
* `accountArg`, `sharePolicyArg`, `adminCapArg`, and `collateralCoinType` so you
|
|
11002
|
+
* can compose additional commands (grant-agent-wallet, transfer-cap) before calling
|
|
11003
|
+
* {@link getShareAccountTx} to finalize.
|
|
10966
11004
|
*
|
|
10967
11005
|
* @param inputs.walletAddress - Wallet address that will own the new account.
|
|
10968
11006
|
* @param inputs.collateralCoinType - Collateral coin type used by the account.
|
|
10969
|
-
* @param inputs.deferShare - When true, returns args without sharing yet.
|
|
11007
|
+
* @param inputs.deferShare - When true, returns `deferred` args without sharing yet.
|
|
10970
11008
|
* @param inputs.tx - Optional {@link Transaction} to extend.
|
|
10971
|
-
* @returns `tx` plus optional `
|
|
11009
|
+
* @returns `tx` plus optional `deferred` containing argument references when deferred.
|
|
10972
11010
|
*/
|
|
10973
11011
|
getCreateAccountTx(inputs: Omit<ApiPerpetualsCreateAccountBody, "txKind"> & {
|
|
10974
11012
|
tx?: Transaction;
|
|
@@ -10980,14 +11018,12 @@ declare class Perpetuals extends Caller {
|
|
|
10980
11018
|
*
|
|
10981
11019
|
* Supports two methods:
|
|
10982
11020
|
* - **Method 1 (existing account)**: Provide `accountId` to look up an existing shared account.
|
|
10983
|
-
* - **Method 2 (composed flow)**: Provide `
|
|
11021
|
+
* - **Method 2 (composed flow)**: Provide `deferred` with the argument references
|
|
10984
11022
|
* from a deferred `getCreateAccountTx` call.
|
|
10985
11023
|
*
|
|
10986
11024
|
* @param inputs.recipientAddress - Wallet address to receive agent permissions.
|
|
10987
11025
|
* @param inputs.accountId - Perpetuals account ID (Method 1).
|
|
10988
|
-
* @param inputs.
|
|
10989
|
-
* @param inputs.adminCapArg - Admin cap argument from deferred create (Method 2).
|
|
10990
|
-
* @param inputs.collateralCoinType - Collateral type for the account (Method 2).
|
|
11026
|
+
* @param inputs.deferred - Deferred account args from `getCreateAccountTx` (Method 2).
|
|
10991
11027
|
* @param inputs.tx - Optional transaction to extend.
|
|
10992
11028
|
*
|
|
10993
11029
|
* @returns Transaction response containing a `tx`.
|
|
@@ -11004,8 +11040,12 @@ declare class Perpetuals extends Caller {
|
|
|
11004
11040
|
* and sharing the `Account` object. Call this after composing additional commands
|
|
11005
11041
|
* (grant-agent-wallet, transfer-cap) with the args returned by {@link getCreateAccountTx}.
|
|
11006
11042
|
*
|
|
11043
|
+
* Pass the deferred fields (`accountArg`, `sharePolicyArg`, `adminCapArg`,
|
|
11044
|
+
* `collateralCoinType`) from the `deferred` object returned by `getCreateAccountTx`.
|
|
11045
|
+
*
|
|
11007
11046
|
* @param inputs.accountArg - Account argument from deferred create.
|
|
11008
11047
|
* @param inputs.sharePolicyArg - Share policy argument from deferred create.
|
|
11048
|
+
* @param inputs.adminCapArg - Admin cap argument from deferred create.
|
|
11009
11049
|
* @param inputs.collateralCoinType - Collateral type for the account.
|
|
11010
11050
|
* @param inputs.sponsor - Optional sponsorship config.
|
|
11011
11051
|
* @param inputs.tx - Optional transaction to extend.
|
|
@@ -12228,6 +12268,7 @@ declare class GasPools extends Caller {
|
|
|
12228
12268
|
* is swapped into SUI via the Aftermath router before depositing.
|
|
12229
12269
|
*
|
|
12230
12270
|
* @param inputs.walletAddress - Wallet address submitting the deposit.
|
|
12271
|
+
* @param inputs.isSponsoredTx - Whether to build the transaction for sponsored gas. Defaults to false.
|
|
12231
12272
|
* @param inputs.coinType - Coin type to deposit. Defaults to SUI.
|
|
12232
12273
|
* @param inputs.amount - Amount to deposit (required when sourcing from wallet or for non-SUI).
|
|
12233
12274
|
* @param inputs.coinArg - PTB coin argument to use as input (if omitted, sourced from wallet).
|
|
@@ -17638,4 +17679,4 @@ declare class Aftermath extends Caller {
|
|
|
17638
17679
|
static casting: typeof Casting;
|
|
17639
17680
|
}
|
|
17640
17681
|
|
|
17641
|
-
export { type AfSuiRouterPoolObject, Aftermath, AftermathApi, 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 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 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 ApiPerpetualsCancelStopOrdersMethod, type ApiPerpetualsCreateAccountBody, type ApiPerpetualsCreateAccountResponse, type ApiPerpetualsCreateVaultBody, type ApiPerpetualsCreateVaultCapBody, type ApiPerpetualsCurrentRebateRewardsBody, type ApiPerpetualsCurrentRebateRewardsResponse, type ApiPerpetualsDeallocateCollateralBody, type ApiPerpetualsDepositCollateralBody, type ApiPerpetualsEditStopOrdersBody, type ApiPerpetualsExecutionPriceBody, type ApiPerpetualsExecutionPriceResponse, type ApiPerpetualsGrantAgentWalletTxBody, type ApiPerpetualsHistoricalDataWithCursorBody, type ApiPerpetualsHistoricalDataWithCursorResponse, type ApiPerpetualsLimitOrderBody, type ApiPerpetualsMarketCandleHistoryBody, type ApiPerpetualsMarketCandleHistoryResponse, 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 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 ApiPerpetualsVaultCancelWithdrawRequestTxBody, type ApiPerpetualsVaultCreateWithdrawRequestTxBody, type ApiPerpetualsVaultDepositTxBody, 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 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 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 ApiRewardsGetClaimableBody, type ApiRewardsGetClaimableResponse, type ApiRewardsGetHistoryBody, type ApiRewardsGetHistoryResponse, type ApiRewardsGetPointsBody, type ApiRewardsGetPointsResponse, type ApiRouterAddTransactionForCompleteTradeRouteBody, type ApiRouterAddTransactionForCompleteTradeRouteResponse, 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 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 ConfigAddresses, type CreatedAccountEvent, type CreatedDaoFeePoolEvent, type CreatedStopOrderTicketEvent, type DaoFeePoolObject, type DaoFeePoolOwnerCapObject, type DaoFeePoolsAddresses, type DcaAddresses, type DeallocatedCollateralEvent, type DecimalsScalar, type DeletedStopOrderTicketEvent, type DepositedCollateralEvent, type DynamicFieldObjectsWithCursor, type DynamicFieldsInputs, type DynamicFieldsWithCursor, type DynamicGasAddresses, type EditedStopOrderTicketDetailsEvent, type EditedStopOrderTicketExecutorEvent, type EpochWasChangedEvent, type Event$1 as Event, type EventsInputs, type EventsWithCursor, type ExecutedStopOrderTicketEvent, type ExternalFee, type FarmEvent, type FarmOwnerOrOneTimeAdminCap, 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, 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 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 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 PerpetualsCapType, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, type PerpetualsIntegratorVaultData, type PerpetualsMakerData, PerpetualsMarket, type PerpetualsMarket24hrStats, type PerpetualsMarketCandleDataPoint, type PerpetualsMarketData, type PerpetualsMarketId, 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 PerpetualsSponsorConfig, type PerpetualsStopOrderData, PerpetualsStopOrderType, type PerpetualsTakerData, type PerpetualsTopOfOrderbook, type PerpetualsTopOfOrderbookDataPoint, type PerpetualsTwapEvent, PerpetualsVault, type PerpetualsVaultCap, type PerpetualsVaultLpCoin, type PerpetualsVaultMetatada, type PerpetualsVaultObject, type PerpetualsVaultWithdrawRequest, type PerpetualsVaultsAddresses, type PerpetualsWsCandleResponseMessage, 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 PoolGraphDataTimeframe, type PoolGraphDataTimeframeKey, type PoolLpInfo, type PoolName, type PoolObject, type PoolStats, 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 RewardsHistoryEntry, 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 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 Timestamp, type TransactionDigest, type TransactionsWithCursor, type TransferredDeallocatedCollateralEvent, 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 ValidatorConfigObject, type ValidatorOperationCapObject, type WithdrewCollateralEvent, 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 };
|
|
17682
|
+
export { type AfSuiRouterPoolObject, Aftermath, AftermathApi, 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 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 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 ApiPerpetualsCreateAccountBody, type ApiPerpetualsCreateAccountResponse, type ApiPerpetualsCreateVaultBody, type ApiPerpetualsCreateVaultCapBody, type ApiPerpetualsCurrentRebateRewardsBody, type ApiPerpetualsCurrentRebateRewardsResponse, type ApiPerpetualsDeallocateCollateralBody, type ApiPerpetualsDepositCollateralBody, type ApiPerpetualsEditStopOrdersBody, type ApiPerpetualsExecutionPriceBody, type ApiPerpetualsExecutionPriceResponse, type ApiPerpetualsGrantAgentWalletTxBody, type ApiPerpetualsHistoricalDataWithCursorBody, type ApiPerpetualsHistoricalDataWithCursorResponse, type ApiPerpetualsLimitOrderBody, type ApiPerpetualsMarketCandleHistoryBody, type ApiPerpetualsMarketCandleHistoryResponse, 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 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 ApiPerpetualsVaultCancelWithdrawRequestTxBody, type ApiPerpetualsVaultCreateWithdrawRequestTxBody, type ApiPerpetualsVaultDepositTxBody, 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 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 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 ApiRewardsGetClaimableBody, type ApiRewardsGetClaimableResponse, type ApiRewardsGetHistoryBody, type ApiRewardsGetHistoryResponse, type ApiRewardsGetPointsBody, type ApiRewardsGetPointsResponse, type ApiRouterAddTransactionForCompleteTradeRouteBody, type ApiRouterAddTransactionForCompleteTradeRouteResponse, 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 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 EpochWasChangedEvent, type Event$1 as Event, type EventsInputs, type EventsWithCursor, type ExecutedStopOrderTicketEvent, type ExternalFee, type FarmEvent, type FarmOwnerOrOneTimeAdminCap, 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, 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 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 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 PerpetualsCapType, type PerpetualsExecutionInfo, type PerpetualsFilledOrderData, type PerpetualsIntegratorVaultData, type PerpetualsMakerData, PerpetualsMarket, type PerpetualsMarket24hrStats, type PerpetualsMarketCandleDataPoint, type PerpetualsMarketData, type PerpetualsMarketId, 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 PerpetualsSponsorConfig, type PerpetualsStopOrderData, PerpetualsStopOrderType, type PerpetualsTakerData, type PerpetualsTopOfOrderbook, type PerpetualsTopOfOrderbookDataPoint, type PerpetualsTwapEvent, PerpetualsVault, type PerpetualsVaultCap, type PerpetualsVaultLpCoin, type PerpetualsVaultMetatada, type PerpetualsVaultObject, type PerpetualsVaultWithdrawRequest, type PerpetualsVaultsAddresses, type PerpetualsWsCandleResponseMessage, 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 PoolGraphDataTimeframe, type PoolGraphDataTimeframeKey, type PoolLpInfo, type PoolName, type PoolObject, type PoolStats, 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 RewardsHistoryEntry, 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 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 Timestamp, type TransactionDigest, type TransactionsWithCursor, type TransferredDeallocatedCollateralEvent, 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 ValidatorConfigObject, type ValidatorOperationCapObject, type WithdrewCollateralEvent, 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
|
@@ -4287,7 +4287,10 @@ var init_caller = __esm({
|
|
|
4287
4287
|
throw new Error(`HTTP ${status} ${response.statusText}: ${body}`);
|
|
4288
4288
|
}
|
|
4289
4289
|
const text = await response.text();
|
|
4290
|
-
const output = disableBigIntJsonParsing ? JSON.parse(
|
|
4290
|
+
const output = disableBigIntJsonParsing ? JSON.parse(
|
|
4291
|
+
text,
|
|
4292
|
+
(_key, value) => value === null ? void 0 : value
|
|
4293
|
+
) : Helpers.parseJsonWithBigint(text);
|
|
4291
4294
|
return output ?? void 0;
|
|
4292
4295
|
}
|
|
4293
4296
|
// =========================================================================
|
|
@@ -9742,12 +9745,11 @@ var init_perpetualsAccount = __esm({
|
|
|
9742
9745
|
* @returns Transaction response containing `tx`.
|
|
9743
9746
|
*/
|
|
9744
9747
|
async getCancelStopOrdersTx(inputs) {
|
|
9745
|
-
const { tx,
|
|
9748
|
+
const { tx, ...otherInputs } = inputs;
|
|
9746
9749
|
return this.fetchApiTxObject(
|
|
9747
9750
|
`${this.vaultId ? "vault" : "account"}/transactions/cancel-stop-orders`,
|
|
9748
9751
|
{
|
|
9749
9752
|
...otherInputs,
|
|
9750
|
-
cancelMethod: cancelMethod ?? "User",
|
|
9751
9753
|
txKind: await this.Provider?.Transactions().fetchBase64TxKindFromTx(
|
|
9752
9754
|
{ tx }
|
|
9753
9755
|
),
|
|
@@ -12017,13 +12019,12 @@ var init_perpetuals = __esm({
|
|
|
12017
12019
|
*
|
|
12018
12020
|
* Supports two methods:
|
|
12019
12021
|
* - **Method 1**: Provide `capObjectId` to transfer an existing on-chain object.
|
|
12020
|
-
* - **Method 2**: Provide `
|
|
12022
|
+
* - **Method 2**: Provide `composed` with the PTB argument and capability type
|
|
12021
12023
|
* from a deferred PTB composition (e.g., from `getCreateAccountTx` with `deferShare=true`).
|
|
12022
12024
|
*
|
|
12023
12025
|
* @param inputs.recipientAddress - Recipient wallet address that should receive the cap.
|
|
12024
12026
|
* @param inputs.capObjectId - Object ID of the capability to transfer (Method 1).
|
|
12025
|
-
* @param inputs.
|
|
12026
|
-
* @param inputs.capType - Object type tag for the capability (Method 2).
|
|
12027
|
+
* @param inputs.composed - Composed PTB argument + capability type (Method 2).
|
|
12027
12028
|
* @param inputs.tx - Optional transaction to extend.
|
|
12028
12029
|
*
|
|
12029
12030
|
* @returns Transaction response containing a `tx`.
|
|
@@ -12049,15 +12050,16 @@ var init_perpetuals = __esm({
|
|
|
12049
12050
|
/**
|
|
12050
12051
|
* Build a `create-account` transaction for Aftermath Perpetuals.
|
|
12051
12052
|
*
|
|
12052
|
-
* When `deferShare` is `true`, the response includes `
|
|
12053
|
-
* `adminCapArg`, and `collateralCoinType` so you
|
|
12054
|
-
* (grant-agent-wallet, transfer-cap) before calling
|
|
12053
|
+
* When `deferShare` is `true`, the response includes a `deferred` object with
|
|
12054
|
+
* `accountArg`, `sharePolicyArg`, `adminCapArg`, and `collateralCoinType` so you
|
|
12055
|
+
* can compose additional commands (grant-agent-wallet, transfer-cap) before calling
|
|
12056
|
+
* {@link getShareAccountTx} to finalize.
|
|
12055
12057
|
*
|
|
12056
12058
|
* @param inputs.walletAddress - Wallet address that will own the new account.
|
|
12057
12059
|
* @param inputs.collateralCoinType - Collateral coin type used by the account.
|
|
12058
|
-
* @param inputs.deferShare - When true, returns args without sharing yet.
|
|
12060
|
+
* @param inputs.deferShare - When true, returns `deferred` args without sharing yet.
|
|
12059
12061
|
* @param inputs.tx - Optional {@link Transaction} to extend.
|
|
12060
|
-
* @returns `tx` plus optional `
|
|
12062
|
+
* @returns `tx` plus optional `deferred` containing argument references when deferred.
|
|
12061
12063
|
*/
|
|
12062
12064
|
async getCreateAccountTx(inputs) {
|
|
12063
12065
|
const { tx, ...otherInputs } = inputs;
|
|
@@ -12080,14 +12082,12 @@ var init_perpetuals = __esm({
|
|
|
12080
12082
|
*
|
|
12081
12083
|
* Supports two methods:
|
|
12082
12084
|
* - **Method 1 (existing account)**: Provide `accountId` to look up an existing shared account.
|
|
12083
|
-
* - **Method 2 (composed flow)**: Provide `
|
|
12085
|
+
* - **Method 2 (composed flow)**: Provide `deferred` with the argument references
|
|
12084
12086
|
* from a deferred `getCreateAccountTx` call.
|
|
12085
12087
|
*
|
|
12086
12088
|
* @param inputs.recipientAddress - Wallet address to receive agent permissions.
|
|
12087
12089
|
* @param inputs.accountId - Perpetuals account ID (Method 1).
|
|
12088
|
-
* @param inputs.
|
|
12089
|
-
* @param inputs.adminCapArg - Admin cap argument from deferred create (Method 2).
|
|
12090
|
-
* @param inputs.collateralCoinType - Collateral type for the account (Method 2).
|
|
12090
|
+
* @param inputs.deferred - Deferred account args from `getCreateAccountTx` (Method 2).
|
|
12091
12091
|
* @param inputs.tx - Optional transaction to extend.
|
|
12092
12092
|
*
|
|
12093
12093
|
* @returns Transaction response containing a `tx`.
|
|
@@ -12117,8 +12117,12 @@ var init_perpetuals = __esm({
|
|
|
12117
12117
|
* and sharing the `Account` object. Call this after composing additional commands
|
|
12118
12118
|
* (grant-agent-wallet, transfer-cap) with the args returned by {@link getCreateAccountTx}.
|
|
12119
12119
|
*
|
|
12120
|
+
* Pass the deferred fields (`accountArg`, `sharePolicyArg`, `adminCapArg`,
|
|
12121
|
+
* `collateralCoinType`) from the `deferred` object returned by `getCreateAccountTx`.
|
|
12122
|
+
*
|
|
12120
12123
|
* @param inputs.accountArg - Account argument from deferred create.
|
|
12121
12124
|
* @param inputs.sharePolicyArg - Share policy argument from deferred create.
|
|
12125
|
+
* @param inputs.adminCapArg - Admin cap argument from deferred create.
|
|
12122
12126
|
* @param inputs.collateralCoinType - Collateral type for the account.
|
|
12123
12127
|
* @param inputs.sponsor - Optional sponsorship config.
|
|
12124
12128
|
* @param inputs.tx - Optional transaction to extend.
|
|
@@ -13644,6 +13648,7 @@ var init_gasPools = __esm({
|
|
|
13644
13648
|
* is swapped into SUI via the Aftermath router before depositing.
|
|
13645
13649
|
*
|
|
13646
13650
|
* @param inputs.walletAddress - Wallet address submitting the deposit.
|
|
13651
|
+
* @param inputs.isSponsoredTx - Whether to build the transaction for sponsored gas. Defaults to false.
|
|
13647
13652
|
* @param inputs.coinType - Coin type to deposit. Defaults to SUI.
|
|
13648
13653
|
* @param inputs.amount - Amount to deposit (required when sourcing from wallet or for non-SUI).
|
|
13649
13654
|
* @param inputs.coinArg - PTB coin argument to use as input (if omitted, sourced from wallet).
|