@cetusprotocol/aggregator-sdk 0.0.0-experimental-20250721190846 → 0.0.0-experimental-20250723103308
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +22 -227
- package/dist/index.d.ts +22 -227
- package/dist/index.js +403 -244
- package/dist/index.mjs +402 -215
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -52,34 +52,27 @@ interface PreSwapLpChangeParams {
|
|
|
52
52
|
deltaLiquidity: number;
|
|
53
53
|
}
|
|
54
54
|
type ExtendedDetails = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
aftermath_pool_flatness?: number;
|
|
56
|
+
aftermath_lp_supply_type?: string;
|
|
57
|
+
turbos_fee_type?: string;
|
|
58
58
|
afterSqrtPrice?: string;
|
|
59
59
|
deepbookv3DeepFee?: number;
|
|
60
60
|
scallopScoinTreasury?: string;
|
|
61
61
|
scallop_scoin_treasury?: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
metastablePriceSeed?: string;
|
|
77
|
-
metastableETHPriceSeed?: string;
|
|
78
|
-
metastableWhitelistedAppId?: string;
|
|
79
|
-
metastableCreateCapPkgId?: string;
|
|
80
|
-
metastableCreateCapModule?: string;
|
|
81
|
-
metastableCreateCapAllTypeParams?: boolean;
|
|
82
|
-
metastableRegistryId?: string;
|
|
62
|
+
haedal_pmm_base_price_seed?: string;
|
|
63
|
+
haedal_pmm_quote_price_seed?: string;
|
|
64
|
+
steamm_bank_a?: string;
|
|
65
|
+
steamm_bank_b?: string;
|
|
66
|
+
steamm_lending_market?: string;
|
|
67
|
+
steamm_lending_market_type?: string;
|
|
68
|
+
steamm_b_coin_a_type?: string;
|
|
69
|
+
steamm_b_coin_b_type?: string;
|
|
70
|
+
steamm_lp_token?: string;
|
|
71
|
+
steamm_oracle_registry_id?: string;
|
|
72
|
+
steamm_oracle_pyth_price_seed_a?: string;
|
|
73
|
+
steamm_oracle_pyth_price_seed_b?: string;
|
|
74
|
+
steamm_oracle_index_a?: number;
|
|
75
|
+
steamm_oracle_index_b?: number;
|
|
83
76
|
metastable_price_seed?: string;
|
|
84
77
|
metastable_eth_price_seed?: string;
|
|
85
78
|
metastable_whitelisted_app_id?: string;
|
|
@@ -87,19 +80,10 @@ type ExtendedDetails = {
|
|
|
87
80
|
metastable_create_cap_module?: string;
|
|
88
81
|
metastable_create_cap_all_type_params?: boolean;
|
|
89
82
|
metastable_registry_id?: string;
|
|
90
|
-
obricCoinAPriceSeed?: string;
|
|
91
|
-
obricCoinBPriceSeed?: string;
|
|
92
|
-
obricCoinAPriceId?: string;
|
|
93
|
-
obricCoinBPriceId?: string;
|
|
94
83
|
obric_coin_a_price_seed?: string;
|
|
95
84
|
obric_coin_b_price_seed?: string;
|
|
96
85
|
obric_coin_a_price_id?: string;
|
|
97
86
|
obric_coin_b_price_id?: string;
|
|
98
|
-
sevenkCoinAPriceSeed?: string;
|
|
99
|
-
sevenkCoinBPriceSeed?: string;
|
|
100
|
-
sevenkCoinAOracleId?: string;
|
|
101
|
-
sevenkCoinBOracleId?: string;
|
|
102
|
-
sevenkLPCapType?: string;
|
|
103
87
|
sevenk_coin_a_price_seed?: string;
|
|
104
88
|
sevenk_coin_b_price_seed?: string;
|
|
105
89
|
sevenk_oracle_config_a?: string;
|
|
@@ -483,201 +467,11 @@ declare class AggregatorClientV3 extends AggregatorClient {
|
|
|
483
467
|
routerSwap(params: BuildRouterSwapParamsV2$1): Promise<TransactionObjectArgument>;
|
|
484
468
|
fastRouterSwap(params: BuildFastRouterSwapParamsV2$1): Promise<void>;
|
|
485
469
|
fixableRouterSwap(params: BuildRouterSwapParamsV2$1): Promise<TransactionObjectArgument>;
|
|
470
|
+
swapInPools(params: SwapInPoolsParams): Promise<SwapInPoolsResult | null>;
|
|
471
|
+
private swapInPoolsV3;
|
|
486
472
|
}
|
|
487
473
|
|
|
488
|
-
declare
|
|
489
|
-
private stakedSuiVault;
|
|
490
|
-
private safe;
|
|
491
|
-
private referVault;
|
|
492
|
-
private validator;
|
|
493
|
-
constructor(env: Env);
|
|
494
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
declare class Aftermath implements Dex {
|
|
498
|
-
private slippage;
|
|
499
|
-
private poolRegistry;
|
|
500
|
-
private protocolFeeVault;
|
|
501
|
-
private treasury;
|
|
502
|
-
private insuranceFund;
|
|
503
|
-
private referrealVault;
|
|
504
|
-
constructor(env: Env);
|
|
505
|
-
amountLimit(exportAmountOut: string): string;
|
|
506
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare class Alphafi implements Dex {
|
|
510
|
-
private sui_system_state;
|
|
511
|
-
constructor(env: Env);
|
|
512
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
declare class Bluefin implements Dex {
|
|
516
|
-
private globalConfig;
|
|
517
|
-
constructor(env: Env);
|
|
518
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
declare class Bluemove implements Dex {
|
|
522
|
-
private dexInfo;
|
|
523
|
-
constructor(env: Env);
|
|
524
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
type CetusFlashSwapResult = {
|
|
528
|
-
targetCoin: TransactionObjectArgument;
|
|
529
|
-
flashReceipt: TransactionObjectArgument;
|
|
530
|
-
payAmount: TransactionArgument;
|
|
531
|
-
};
|
|
532
|
-
declare class Cetus implements Dex {
|
|
533
|
-
private globalConfig;
|
|
534
|
-
private partner;
|
|
535
|
-
constructor(env: Env, partner?: string);
|
|
536
|
-
flash_swap(client: AggregatorClient, txb: Transaction, path: Path, amount_arg: TransactionArgument, by_amount_in: boolean, packages?: Map<string, string>): CetusFlashSwapResult;
|
|
537
|
-
repay_flash_swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, receipt: TransactionArgument, packages?: Map<string, string>): TransactionObjectArgument;
|
|
538
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
type GetOrCreateAccountCapResult$1 = {
|
|
542
|
-
accountCap: TransactionObjectArgument;
|
|
543
|
-
isCreate: boolean;
|
|
544
|
-
};
|
|
545
|
-
declare class DeepbookV2 implements Dex {
|
|
546
|
-
constructor(env: Env);
|
|
547
|
-
getAccountCap(client: SuiClient, owner: string): Promise<string | null>;
|
|
548
|
-
getOrCreateAccountCap(txb: Transaction, client: SuiClient, owner: string): Promise<GetOrCreateAccountCapResult$1>;
|
|
549
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
declare class DeepbookV3 implements Dex {
|
|
553
|
-
private deepbookV3Config;
|
|
554
|
-
constructor(env: Env);
|
|
555
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>, deepbookv3DeepFee?: TransactionObjectArgument): Promise<TransactionObjectArgument>;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
declare class FlowxV2 implements Dex {
|
|
559
|
-
private container;
|
|
560
|
-
constructor(env: Env);
|
|
561
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
declare class FlowxV3 implements Dex {
|
|
565
|
-
private versioned;
|
|
566
|
-
private poolRegistry;
|
|
567
|
-
constructor(env: Env);
|
|
568
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
declare class Haedal implements Dex {
|
|
572
|
-
constructor(env: Env);
|
|
573
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
declare class HaedalPmm implements Dex {
|
|
577
|
-
private pythPriceIDs;
|
|
578
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
579
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
declare class HaWAL implements Dex {
|
|
583
|
-
private staking;
|
|
584
|
-
private validator;
|
|
585
|
-
constructor(env: Env);
|
|
586
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
declare class KriyaV2 implements Dex {
|
|
590
|
-
constructor(env: Env);
|
|
591
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
declare class KriyaV3 implements Dex {
|
|
595
|
-
private version;
|
|
596
|
-
constructor(env: Env);
|
|
597
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
declare class Magma implements Dex {
|
|
601
|
-
private globalConfig;
|
|
602
|
-
constructor(env: Env);
|
|
603
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
declare class Metastable implements Dex {
|
|
607
|
-
private pythPriceIDs;
|
|
608
|
-
private versionID;
|
|
609
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
610
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
declare class Momentum implements Dex {
|
|
614
|
-
private version;
|
|
615
|
-
constructor(env: Env);
|
|
616
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
declare class Obric implements Dex {
|
|
620
|
-
private pythPriceIDs;
|
|
621
|
-
private pythStateObjectId;
|
|
622
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
623
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
declare class Scallop implements Dex {
|
|
627
|
-
private version;
|
|
628
|
-
private market;
|
|
629
|
-
constructor(env: Env);
|
|
630
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
declare class Sevenk implements Dex {
|
|
634
|
-
private pythPriceIDs;
|
|
635
|
-
private oraclePublishedAt;
|
|
636
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
637
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
declare class SteammCPMM implements Dex {
|
|
641
|
-
constructor(env: Env);
|
|
642
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
declare class SteammOmm implements Dex {
|
|
646
|
-
private pythPriceIDs;
|
|
647
|
-
private oraclePackageId;
|
|
648
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
649
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
declare class SteammOmmV2 implements Dex {
|
|
653
|
-
private pythPriceIDs;
|
|
654
|
-
private oraclePackageId;
|
|
655
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
656
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
declare class Suilend implements Dex {
|
|
660
|
-
private sui_system_state;
|
|
661
|
-
constructor(env: Env);
|
|
662
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
declare class Turbos implements Dex {
|
|
666
|
-
private versioned;
|
|
667
|
-
constructor(env: Env);
|
|
668
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
declare class Volo implements Dex {
|
|
672
|
-
private stakePool;
|
|
673
|
-
private metadata;
|
|
674
|
-
constructor(env: Env);
|
|
675
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
declare const AGGREGATOR_V2 = "aggregator_v2";
|
|
679
|
-
declare const AGGREGATOR_V2_EXTEND = "aggregator_v2_extend";
|
|
680
|
-
declare const AGGREGATOR_V2_EXTEND2 = "aggregator_v2_extend2";
|
|
474
|
+
declare function swapInPools(client: SuiClient, params: SwapInPoolsParams, sender: string, env: Env): Promise<SwapInPoolsResult>;
|
|
681
475
|
|
|
682
476
|
/**
|
|
683
477
|
* Generate a downgraded UUID6 format identifier
|
|
@@ -865,6 +659,7 @@ declare const SuiZeroCoinFn = "0x2::coin::zero";
|
|
|
865
659
|
declare const DEEPBOOK_PACKAGE_ID = "0x000000000000000000000000000000000000000000000000000000000000dee9";
|
|
866
660
|
declare const DEEPBOOK_PUBLISHED_AT = "0x000000000000000000000000000000000000000000000000000000000000dee9";
|
|
867
661
|
declare const CETUS_PUBLISHED_AT = "0x70968826ad1b4ba895753f634b0aea68d0672908ca1075a2abdf0fc9e0b2fc6a";
|
|
662
|
+
declare const CETUS_V3_PUBLISHED_AT = "0xb85d33ef69a8308f7b1ae341e48bd8817476c144f14344d3ce612c16480d16f2";
|
|
868
663
|
declare const MAINNET_CETUS_GLOBAL_CONFIG_ID = "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f";
|
|
869
664
|
declare const TESTNET_CETUS_GLOBAL_CONFIG_ID = "0x6f4149091a5aea0e818e7243a13adcfb403842d670b9a2089de058512620687a";
|
|
870
665
|
declare const MAINNET_FLOWX_AMM_CONTAINER_ID = "0xb65dcbf63fd3ad5d0ebfbf334780dc9f785eff38a4459e37ab08fa79576ee511";
|
|
@@ -1174,4 +969,4 @@ declare class CoinUtils {
|
|
|
1174
969
|
static calculateTotalBalance(coins: CoinAsset[]): bigint;
|
|
1175
970
|
}
|
|
1176
971
|
|
|
1177
|
-
export { AFSUI, AFTERMATH, AFTERMATH_AMM, AFTERMATH_MODULE, AGGREGATOR,
|
|
972
|
+
export { AFSUI, AFTERMATH, AFTERMATH_AMM, AFTERMATH_MODULE, AGGREGATOR, AGGREGATOR_V3_CONFIG, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, AggregatorClientV3, AggregatorConfig, AggregatorError, type AggregatorErrorCode, type AggregatorResponse, AggregatorServerErrorCode, BLUEFIN, BLUEMOVE, type BigNumber, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams$1 as BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CETUS_DEX, CETUS_MODULE, CETUS_PUBLISHED_AT, CETUS_V3_PUBLISHED_AT, CHECK_COINS_THRESHOLD_FUNC, CLIENT_CONFIG, CLOCK_ADDRESS, type CoinAsset, CoinInfoAddress, CoinStoreAddress, CoinUtils, type ComparisonResult, ConfigErrorCode, DEEPBOOKV2, DEEPBOOKV3, DEEPBOOK_CLOB_V2_MODULE, DEEPBOOK_CUSTODIAN_V2_MODULE, DEEPBOOK_DEX, DEEPBOOK_MODULE, DEEPBOOK_PACKAGE_ID, DEEPBOOK_PUBLISHED_AT, DEEPBOOK_V3_DEEP_FEE_TYPES, DEFAULT_AGG_V2_ENDPOINT, DEFAULT_AGG_V3_ENDPOINT, DEFAULT_GAS_BUDGET_FOR_MERGE, DEFAULT_GAS_BUDGET_FOR_SPLIT, DEFAULT_GAS_BUDGET_FOR_STAKE, DEFAULT_GAS_BUDGET_FOR_TRANSFER, DEFAULT_GAS_BUDGET_FOR_TRANSFER_SUI, DEFAULT_NFT_TRANSFER_GAS_FEE, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, FLOWX_AMM, FLOWX_AMM_MODULE, type FindRouterParams, FlashSwapA2BFunc, FlashSwapB2AFunc, FlashSwapFunc, FlashSwapWithPartnerA2BFunc, FlashSwapWithPartnerB2AFunc, FlashSwapWithPartnerFunc, type FlattenedPath, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, type GasMetrics, type GetOrCreateAccountCapResult, HAEDAL, HAEDALPMM, HAWAL, INTEGRATE, JOIN_FUNC, KRIYA, KRIYAV3, KRIYA_DEX, KRIYA_MODULE, MAGMA, MAINNET_AFTERMATH_INSURANCE_FUND_ID, MAINNET_AFTERMATH_PROTOCOL_FEE_VAULT_ID, MAINNET_AFTERMATH_REFERRAL_VAULT_ID, MAINNET_AFTERMATH_REGISTRY_ID, MAINNET_AFTERMATH_TREASURY_ID, MAINNET_CETUS_GLOBAL_CONFIG_ID, MAINNET_FLOWX_AMM_CONTAINER_ID, METASTABLE, MOMENTUM, type NFT, OBRIC, ONE, PACKAGE_NAMES, PAY_MODULE, POOL_MODULT, PUBLISHED_ADDRESSES, PYTH_CONFIG, type Package, type Path, type PathV2, type PreSwapLpChangeParams, type ProcessedRouterData, type PythConfig, REPAY_FLASH_SWAP_A2B_FUNC, REPAY_FLASH_SWAP_B2A_FUNC, REPAY_FLASH_SWAP_WITH_PARTNER_A2B_FUNC, REPAY_FLASH_SWAP_WITH_PARTNER_B2A_FUNC, RepayFalshSwapFunc, RepayFlashSwapWithPartnerFunc, type Router, type RouterData, type RouterDataV2, type RouterError, type RouterV2, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, SUI_SYSTEM_STATE_OBJECT_ID, SWAP_A2B_FUNC, SWAP_B2A_FUNC, type SuiAddress, type SuiBasicTypes, type SuiInputTypes, type SuiObjectIdType, type SuiResource, type SuiStructTag, type SuiTxArg, SuiZeroCoinFn, type SwapGasAnalysis, type SwapInPoolsParams$1 as SwapInPoolsParams, type SwapInPoolsResult$1 as SwapInPoolsResult, TEN_POW_NINE, TESTNET_AFTERMATH_INSURANCE_FUND_ID, TESTNET_AFTERMATH_PROTOCOL_FEE_VAULT_ID, TESTNET_AFTERMATH_REFERRAL_VAULT_ID, TESTNET_AFTERMATH_REGISTRY_ID, TESTNET_AFTERMATH_TREASURY_ID, TESTNET_CETUS_GLOBAL_CONFIG_ID, TESTNET_FLOWX_AMM_CONTAINER_ID, TRANSFER_ACCOUNT_CAP, TRANSFER_OR_DESTORY_COIN_FUNC, TURBOS, TURBOS_DEX, TURBOS_MODULE, TURBOS_VERSIONED, TWO, TransactionErrorCode, TypesErrorCode, U128, U64_MAX, U64_MAX_BN, UTILS_MODULE, VOLO, ZERO, buildInputCoin, calculateGasEfficiency, calculatePriceImpact, checkInvalidSuiAddress, compareCoins, compareGasMetrics, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, exportToCSV, exportToJSON, extractAddressFromType, extractGasMetrics, extractStructTagFromType, extractTimestampFromDowngradeUuid6, fixSuiObjectId, formatGasMetrics, generateDowngradeUuid6, generateSimpleDowngradeUuid6, getAggregatorServerErrorMessage, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getDeepbookV3Config, getDefaultSuiInputType, getOrCreateAccountCap, getRouterResult, isSortedSymbols, isValidDowngradeUuid6, mintZeroCoin, normalizeCoinType, parseAftermathFeeType, parseTurbosPoolFeeType, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams, sortAndFlattenRoutes, swapInPools };
|
package/dist/index.d.ts
CHANGED
|
@@ -52,34 +52,27 @@ interface PreSwapLpChangeParams {
|
|
|
52
52
|
deltaLiquidity: number;
|
|
53
53
|
}
|
|
54
54
|
type ExtendedDetails = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
aftermath_pool_flatness?: number;
|
|
56
|
+
aftermath_lp_supply_type?: string;
|
|
57
|
+
turbos_fee_type?: string;
|
|
58
58
|
afterSqrtPrice?: string;
|
|
59
59
|
deepbookv3DeepFee?: number;
|
|
60
60
|
scallopScoinTreasury?: string;
|
|
61
61
|
scallop_scoin_treasury?: string;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
metastablePriceSeed?: string;
|
|
77
|
-
metastableETHPriceSeed?: string;
|
|
78
|
-
metastableWhitelistedAppId?: string;
|
|
79
|
-
metastableCreateCapPkgId?: string;
|
|
80
|
-
metastableCreateCapModule?: string;
|
|
81
|
-
metastableCreateCapAllTypeParams?: boolean;
|
|
82
|
-
metastableRegistryId?: string;
|
|
62
|
+
haedal_pmm_base_price_seed?: string;
|
|
63
|
+
haedal_pmm_quote_price_seed?: string;
|
|
64
|
+
steamm_bank_a?: string;
|
|
65
|
+
steamm_bank_b?: string;
|
|
66
|
+
steamm_lending_market?: string;
|
|
67
|
+
steamm_lending_market_type?: string;
|
|
68
|
+
steamm_b_coin_a_type?: string;
|
|
69
|
+
steamm_b_coin_b_type?: string;
|
|
70
|
+
steamm_lp_token?: string;
|
|
71
|
+
steamm_oracle_registry_id?: string;
|
|
72
|
+
steamm_oracle_pyth_price_seed_a?: string;
|
|
73
|
+
steamm_oracle_pyth_price_seed_b?: string;
|
|
74
|
+
steamm_oracle_index_a?: number;
|
|
75
|
+
steamm_oracle_index_b?: number;
|
|
83
76
|
metastable_price_seed?: string;
|
|
84
77
|
metastable_eth_price_seed?: string;
|
|
85
78
|
metastable_whitelisted_app_id?: string;
|
|
@@ -87,19 +80,10 @@ type ExtendedDetails = {
|
|
|
87
80
|
metastable_create_cap_module?: string;
|
|
88
81
|
metastable_create_cap_all_type_params?: boolean;
|
|
89
82
|
metastable_registry_id?: string;
|
|
90
|
-
obricCoinAPriceSeed?: string;
|
|
91
|
-
obricCoinBPriceSeed?: string;
|
|
92
|
-
obricCoinAPriceId?: string;
|
|
93
|
-
obricCoinBPriceId?: string;
|
|
94
83
|
obric_coin_a_price_seed?: string;
|
|
95
84
|
obric_coin_b_price_seed?: string;
|
|
96
85
|
obric_coin_a_price_id?: string;
|
|
97
86
|
obric_coin_b_price_id?: string;
|
|
98
|
-
sevenkCoinAPriceSeed?: string;
|
|
99
|
-
sevenkCoinBPriceSeed?: string;
|
|
100
|
-
sevenkCoinAOracleId?: string;
|
|
101
|
-
sevenkCoinBOracleId?: string;
|
|
102
|
-
sevenkLPCapType?: string;
|
|
103
87
|
sevenk_coin_a_price_seed?: string;
|
|
104
88
|
sevenk_coin_b_price_seed?: string;
|
|
105
89
|
sevenk_oracle_config_a?: string;
|
|
@@ -483,201 +467,11 @@ declare class AggregatorClientV3 extends AggregatorClient {
|
|
|
483
467
|
routerSwap(params: BuildRouterSwapParamsV2$1): Promise<TransactionObjectArgument>;
|
|
484
468
|
fastRouterSwap(params: BuildFastRouterSwapParamsV2$1): Promise<void>;
|
|
485
469
|
fixableRouterSwap(params: BuildRouterSwapParamsV2$1): Promise<TransactionObjectArgument>;
|
|
470
|
+
swapInPools(params: SwapInPoolsParams): Promise<SwapInPoolsResult | null>;
|
|
471
|
+
private swapInPoolsV3;
|
|
486
472
|
}
|
|
487
473
|
|
|
488
|
-
declare
|
|
489
|
-
private stakedSuiVault;
|
|
490
|
-
private safe;
|
|
491
|
-
private referVault;
|
|
492
|
-
private validator;
|
|
493
|
-
constructor(env: Env);
|
|
494
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
declare class Aftermath implements Dex {
|
|
498
|
-
private slippage;
|
|
499
|
-
private poolRegistry;
|
|
500
|
-
private protocolFeeVault;
|
|
501
|
-
private treasury;
|
|
502
|
-
private insuranceFund;
|
|
503
|
-
private referrealVault;
|
|
504
|
-
constructor(env: Env);
|
|
505
|
-
amountLimit(exportAmountOut: string): string;
|
|
506
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare class Alphafi implements Dex {
|
|
510
|
-
private sui_system_state;
|
|
511
|
-
constructor(env: Env);
|
|
512
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
declare class Bluefin implements Dex {
|
|
516
|
-
private globalConfig;
|
|
517
|
-
constructor(env: Env);
|
|
518
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
declare class Bluemove implements Dex {
|
|
522
|
-
private dexInfo;
|
|
523
|
-
constructor(env: Env);
|
|
524
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
type CetusFlashSwapResult = {
|
|
528
|
-
targetCoin: TransactionObjectArgument;
|
|
529
|
-
flashReceipt: TransactionObjectArgument;
|
|
530
|
-
payAmount: TransactionArgument;
|
|
531
|
-
};
|
|
532
|
-
declare class Cetus implements Dex {
|
|
533
|
-
private globalConfig;
|
|
534
|
-
private partner;
|
|
535
|
-
constructor(env: Env, partner?: string);
|
|
536
|
-
flash_swap(client: AggregatorClient, txb: Transaction, path: Path, amount_arg: TransactionArgument, by_amount_in: boolean, packages?: Map<string, string>): CetusFlashSwapResult;
|
|
537
|
-
repay_flash_swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, receipt: TransactionArgument, packages?: Map<string, string>): TransactionObjectArgument;
|
|
538
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
type GetOrCreateAccountCapResult$1 = {
|
|
542
|
-
accountCap: TransactionObjectArgument;
|
|
543
|
-
isCreate: boolean;
|
|
544
|
-
};
|
|
545
|
-
declare class DeepbookV2 implements Dex {
|
|
546
|
-
constructor(env: Env);
|
|
547
|
-
getAccountCap(client: SuiClient, owner: string): Promise<string | null>;
|
|
548
|
-
getOrCreateAccountCap(txb: Transaction, client: SuiClient, owner: string): Promise<GetOrCreateAccountCapResult$1>;
|
|
549
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
declare class DeepbookV3 implements Dex {
|
|
553
|
-
private deepbookV3Config;
|
|
554
|
-
constructor(env: Env);
|
|
555
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>, deepbookv3DeepFee?: TransactionObjectArgument): Promise<TransactionObjectArgument>;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
declare class FlowxV2 implements Dex {
|
|
559
|
-
private container;
|
|
560
|
-
constructor(env: Env);
|
|
561
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
declare class FlowxV3 implements Dex {
|
|
565
|
-
private versioned;
|
|
566
|
-
private poolRegistry;
|
|
567
|
-
constructor(env: Env);
|
|
568
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
declare class Haedal implements Dex {
|
|
572
|
-
constructor(env: Env);
|
|
573
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
declare class HaedalPmm implements Dex {
|
|
577
|
-
private pythPriceIDs;
|
|
578
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
579
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
declare class HaWAL implements Dex {
|
|
583
|
-
private staking;
|
|
584
|
-
private validator;
|
|
585
|
-
constructor(env: Env);
|
|
586
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
declare class KriyaV2 implements Dex {
|
|
590
|
-
constructor(env: Env);
|
|
591
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
declare class KriyaV3 implements Dex {
|
|
595
|
-
private version;
|
|
596
|
-
constructor(env: Env);
|
|
597
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
declare class Magma implements Dex {
|
|
601
|
-
private globalConfig;
|
|
602
|
-
constructor(env: Env);
|
|
603
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
declare class Metastable implements Dex {
|
|
607
|
-
private pythPriceIDs;
|
|
608
|
-
private versionID;
|
|
609
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
610
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
declare class Momentum implements Dex {
|
|
614
|
-
private version;
|
|
615
|
-
constructor(env: Env);
|
|
616
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
declare class Obric implements Dex {
|
|
620
|
-
private pythPriceIDs;
|
|
621
|
-
private pythStateObjectId;
|
|
622
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
623
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
declare class Scallop implements Dex {
|
|
627
|
-
private version;
|
|
628
|
-
private market;
|
|
629
|
-
constructor(env: Env);
|
|
630
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
declare class Sevenk implements Dex {
|
|
634
|
-
private pythPriceIDs;
|
|
635
|
-
private oraclePublishedAt;
|
|
636
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
637
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
declare class SteammCPMM implements Dex {
|
|
641
|
-
constructor(env: Env);
|
|
642
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
declare class SteammOmm implements Dex {
|
|
646
|
-
private pythPriceIDs;
|
|
647
|
-
private oraclePackageId;
|
|
648
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
649
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
declare class SteammOmmV2 implements Dex {
|
|
653
|
-
private pythPriceIDs;
|
|
654
|
-
private oraclePackageId;
|
|
655
|
-
constructor(env: Env, pythPriceIDs: Map<string, string>);
|
|
656
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
declare class Suilend implements Dex {
|
|
660
|
-
private sui_system_state;
|
|
661
|
-
constructor(env: Env);
|
|
662
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
declare class Turbos implements Dex {
|
|
666
|
-
private versioned;
|
|
667
|
-
constructor(env: Env);
|
|
668
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
declare class Volo implements Dex {
|
|
672
|
-
private stakePool;
|
|
673
|
-
private metadata;
|
|
674
|
-
constructor(env: Env);
|
|
675
|
-
swap(client: AggregatorClient, txb: Transaction, path: Path, inputCoin: TransactionObjectArgument, packages?: Map<string, string>): Promise<TransactionObjectArgument>;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
declare const AGGREGATOR_V2 = "aggregator_v2";
|
|
679
|
-
declare const AGGREGATOR_V2_EXTEND = "aggregator_v2_extend";
|
|
680
|
-
declare const AGGREGATOR_V2_EXTEND2 = "aggregator_v2_extend2";
|
|
474
|
+
declare function swapInPools(client: SuiClient, params: SwapInPoolsParams, sender: string, env: Env): Promise<SwapInPoolsResult>;
|
|
681
475
|
|
|
682
476
|
/**
|
|
683
477
|
* Generate a downgraded UUID6 format identifier
|
|
@@ -865,6 +659,7 @@ declare const SuiZeroCoinFn = "0x2::coin::zero";
|
|
|
865
659
|
declare const DEEPBOOK_PACKAGE_ID = "0x000000000000000000000000000000000000000000000000000000000000dee9";
|
|
866
660
|
declare const DEEPBOOK_PUBLISHED_AT = "0x000000000000000000000000000000000000000000000000000000000000dee9";
|
|
867
661
|
declare const CETUS_PUBLISHED_AT = "0x70968826ad1b4ba895753f634b0aea68d0672908ca1075a2abdf0fc9e0b2fc6a";
|
|
662
|
+
declare const CETUS_V3_PUBLISHED_AT = "0xb85d33ef69a8308f7b1ae341e48bd8817476c144f14344d3ce612c16480d16f2";
|
|
868
663
|
declare const MAINNET_CETUS_GLOBAL_CONFIG_ID = "0xdaa46292632c3c4d8f31f23ea0f9b36a28ff3677e9684980e4438403a67a3d8f";
|
|
869
664
|
declare const TESTNET_CETUS_GLOBAL_CONFIG_ID = "0x6f4149091a5aea0e818e7243a13adcfb403842d670b9a2089de058512620687a";
|
|
870
665
|
declare const MAINNET_FLOWX_AMM_CONTAINER_ID = "0xb65dcbf63fd3ad5d0ebfbf334780dc9f785eff38a4459e37ab08fa79576ee511";
|
|
@@ -1174,4 +969,4 @@ declare class CoinUtils {
|
|
|
1174
969
|
static calculateTotalBalance(coins: CoinAsset[]): bigint;
|
|
1175
970
|
}
|
|
1176
971
|
|
|
1177
|
-
export { AFSUI, AFTERMATH, AFTERMATH_AMM, AFTERMATH_MODULE, AGGREGATOR,
|
|
972
|
+
export { AFSUI, AFTERMATH, AFTERMATH_AMM, AFTERMATH_MODULE, AGGREGATOR, AGGREGATOR_V3_CONFIG, ALL_DEXES, ALPHAFI, AggregatorClient, type AggregatorClientParams, AggregatorClientV3, AggregatorConfig, AggregatorError, type AggregatorErrorCode, type AggregatorResponse, AggregatorServerErrorCode, BLUEFIN, BLUEMOVE, type BigNumber, type BuildCoinResult, type BuildFastRouterSwapParams, type BuildFastRouterSwapParamsV2, type BuildRouterSwapParams$1 as BuildRouterSwapParams, type BuildRouterSwapParamsV2, CETUS, CETUS_DEX, CETUS_MODULE, CETUS_PUBLISHED_AT, CETUS_V3_PUBLISHED_AT, CHECK_COINS_THRESHOLD_FUNC, CLIENT_CONFIG, CLOCK_ADDRESS, type CoinAsset, CoinInfoAddress, CoinStoreAddress, CoinUtils, type ComparisonResult, ConfigErrorCode, DEEPBOOKV2, DEEPBOOKV3, DEEPBOOK_CLOB_V2_MODULE, DEEPBOOK_CUSTODIAN_V2_MODULE, DEEPBOOK_DEX, DEEPBOOK_MODULE, DEEPBOOK_PACKAGE_ID, DEEPBOOK_PUBLISHED_AT, DEEPBOOK_V3_DEEP_FEE_TYPES, DEFAULT_AGG_V2_ENDPOINT, DEFAULT_AGG_V3_ENDPOINT, DEFAULT_GAS_BUDGET_FOR_MERGE, DEFAULT_GAS_BUDGET_FOR_SPLIT, DEFAULT_GAS_BUDGET_FOR_STAKE, DEFAULT_GAS_BUDGET_FOR_TRANSFER, DEFAULT_GAS_BUDGET_FOR_TRANSFER_SUI, DEFAULT_NFT_TRANSFER_GAS_FEE, type DeepbookV3Config, type DeepbookV3ConfigResponse, type Dex, Env, type ExtendedDetails, FLOWXV2, FLOWXV3, FLOWX_AMM, FLOWX_AMM_MODULE, type FindRouterParams, FlashSwapA2BFunc, FlashSwapB2AFunc, FlashSwapFunc, FlashSwapWithPartnerA2BFunc, FlashSwapWithPartnerB2AFunc, FlashSwapWithPartnerFunc, type FlattenedPath, GAS_SYMBOL, GAS_TYPE_ARG, GAS_TYPE_ARG_LONG, type GasMetrics, type GetOrCreateAccountCapResult, HAEDAL, HAEDALPMM, HAWAL, INTEGRATE, JOIN_FUNC, KRIYA, KRIYAV3, KRIYA_DEX, KRIYA_MODULE, MAGMA, MAINNET_AFTERMATH_INSURANCE_FUND_ID, MAINNET_AFTERMATH_PROTOCOL_FEE_VAULT_ID, MAINNET_AFTERMATH_REFERRAL_VAULT_ID, MAINNET_AFTERMATH_REGISTRY_ID, MAINNET_AFTERMATH_TREASURY_ID, MAINNET_CETUS_GLOBAL_CONFIG_ID, MAINNET_FLOWX_AMM_CONTAINER_ID, METASTABLE, MOMENTUM, type NFT, OBRIC, ONE, PACKAGE_NAMES, PAY_MODULE, POOL_MODULT, PUBLISHED_ADDRESSES, PYTH_CONFIG, type Package, type Path, type PathV2, type PreSwapLpChangeParams, type ProcessedRouterData, type PythConfig, REPAY_FLASH_SWAP_A2B_FUNC, REPAY_FLASH_SWAP_B2A_FUNC, REPAY_FLASH_SWAP_WITH_PARTNER_A2B_FUNC, REPAY_FLASH_SWAP_WITH_PARTNER_B2A_FUNC, RepayFalshSwapFunc, RepayFlashSwapWithPartnerFunc, type Router, type RouterData, type RouterDataV2, type RouterError, type RouterV2, SCALLOP, SEVENK, SPRINGSUI, STEAMM, STEAMM_OMM, STEAMM_OMM_V2, SUILEND, SUI_SYSTEM_STATE_OBJECT_ID, SWAP_A2B_FUNC, SWAP_B2A_FUNC, type SuiAddress, type SuiBasicTypes, type SuiInputTypes, type SuiObjectIdType, type SuiResource, type SuiStructTag, type SuiTxArg, SuiZeroCoinFn, type SwapGasAnalysis, type SwapInPoolsParams$1 as SwapInPoolsParams, type SwapInPoolsResult$1 as SwapInPoolsResult, TEN_POW_NINE, TESTNET_AFTERMATH_INSURANCE_FUND_ID, TESTNET_AFTERMATH_PROTOCOL_FEE_VAULT_ID, TESTNET_AFTERMATH_REFERRAL_VAULT_ID, TESTNET_AFTERMATH_REGISTRY_ID, TESTNET_AFTERMATH_TREASURY_ID, TESTNET_CETUS_GLOBAL_CONFIG_ID, TESTNET_FLOWX_AMM_CONTAINER_ID, TRANSFER_ACCOUNT_CAP, TRANSFER_OR_DESTORY_COIN_FUNC, TURBOS, TURBOS_DEX, TURBOS_MODULE, TURBOS_VERSIONED, TWO, TransactionErrorCode, TypesErrorCode, U128, U64_MAX, U64_MAX_BN, UTILS_MODULE, VOLO, ZERO, buildInputCoin, calculateGasEfficiency, calculatePriceImpact, checkInvalidSuiAddress, compareCoins, compareGasMetrics, completionCoin, composeType, createTarget, dealWithFastRouterSwapParamsForMsafe, exportToCSV, exportToJSON, extractAddressFromType, extractGasMetrics, extractStructTagFromType, extractTimestampFromDowngradeUuid6, fixSuiObjectId, formatGasMetrics, generateDowngradeUuid6, generateSimpleDowngradeUuid6, getAggregatorServerErrorMessage, getAggregatorV2Extend2PublishedAt, getAggregatorV2ExtendPublishedAt, getAggregatorV2PublishedAt, getDeepbookV3Config, getDefaultSuiInputType, getOrCreateAccountCap, getRouterResult, isSortedSymbols, isValidDowngradeUuid6, mintZeroCoin, normalizeCoinType, parseAftermathFeeType, parseTurbosPoolFeeType, patchFixSuiObjectId, printTransaction, processEndpoint, restituteMsafeFastRouterSwapParams, sortAndFlattenRoutes, swapInPools };
|