@minswap/noodles-sdk 0.0.65-beta.1 → 0.0.65
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/832.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +73 -60
- package/dist/index.js +1 -1
- package/dist/pay.cjs +1 -1
- package/dist/pay.d.ts +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Coin } from '@flowx-finance/sdk';
|
|
2
2
|
import type { Coin as Coin_2 } from '@flowx-finance/sdk/src/core';
|
|
3
|
-
import type { CoinStruct } from '@mysten/sui/jsonRpc';
|
|
4
|
-
import type { DevInspectResults } from '@mysten/sui/jsonRpc';
|
|
5
3
|
import { GetRoutesResult } from '@flowx-finance/sdk';
|
|
6
4
|
import type { MemezPumpSDK } from '@interest-protocol/memez-fun-sdk';
|
|
7
|
-
import type { MoveStruct } from '@mysten/sui/jsonRpc';
|
|
8
5
|
import { Path } from '@cetusprotocol/aggregator-sdk';
|
|
9
6
|
import type { PreSwapLpChangeParams } from '@cetusprotocol/aggregator-sdk';
|
|
10
7
|
import { Protocol } from '@flowx-finance/sdk';
|
|
@@ -14,6 +11,8 @@ import type { Route } from '@flowx-finance/sdk/src/universal-router/entities';
|
|
|
14
11
|
import type { RouterCompleteTradeRoute } from 'aftermath-ts-sdk';
|
|
15
12
|
import { RouterDataV3 } from '@cetusprotocol/aggregator-sdk';
|
|
16
13
|
import { SourceDex } from '@bluefin-exchange/bluefin7k-aggregator-sdk';
|
|
14
|
+
import type { SuiClientTypes } from '@mysten/sui/client';
|
|
15
|
+
import { SuiGrpcClient } from '@mysten/sui/grpc';
|
|
17
16
|
import { SuiJsonRpcClient } from '@mysten/sui/jsonRpc';
|
|
18
17
|
import { SuiPriceServiceConnection } from '@pythnetwork/pyth-sui-js';
|
|
19
18
|
import { SuiPythClient } from '@pythnetwork/pyth-sui-js';
|
|
@@ -23,24 +22,12 @@ import { TransactionObjectArgument } from '@mysten/sui/transactions';
|
|
|
23
22
|
import { TransactionResult } from '@mysten/sui/transactions';
|
|
24
23
|
import type { TxSorSwap } from '@bluefin-exchange/bluefin7k-aggregator-sdk';
|
|
25
24
|
|
|
26
|
-
/**
|
|
27
|
-
* Adapter to make SuiJsonRpcClient v1.38 compatible with libraries expecting v1.34
|
|
28
|
-
* This works around TypeScript type incompatibilities between versions
|
|
29
|
-
*/
|
|
30
|
-
export declare function adaptSuiClient(client: SuiJsonRpcClient): SuiJsonRpcClient;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Adapter to make Transaction v1.38 compatible with libraries expecting v1.34
|
|
34
|
-
* This works around TypeScript type incompatibilities between versions
|
|
35
|
-
*/
|
|
36
|
-
export declare function adaptTransaction(transaction: Transaction): Transaction;
|
|
37
|
-
|
|
38
25
|
export declare function addGasFee(params: {
|
|
39
26
|
inheritTx?: Transaction;
|
|
40
27
|
sender: string;
|
|
41
28
|
feeAmount: bigint;
|
|
42
29
|
suiInputAmount?: bigint;
|
|
43
|
-
}, suiClient:
|
|
30
|
+
}, suiClient: SuiGrpcClient): Promise<Transaction>;
|
|
44
31
|
|
|
45
32
|
/**
|
|
46
33
|
* Parameters for adding a new subscription plan (admin only).
|
|
@@ -441,8 +428,8 @@ export declare namespace BlastFunConstants {
|
|
|
441
428
|
* @deprecated Use `BlastFunSDKCalculation` instead.
|
|
442
429
|
*/
|
|
443
430
|
export declare namespace BlastFunCustomCalculation {
|
|
444
|
-
export function getCurveAmountAfterBuy(params: GetCurveAmountAfterBuyParams, suiClient:
|
|
445
|
-
export function getSuiAmountAfterSell(params: GetSuiAmountAfterSellParams, suiClient:
|
|
431
|
+
export function getCurveAmountAfterBuy(params: GetCurveAmountAfterBuyParams, suiClient: SuiGrpcClient): Promise<bigint>;
|
|
432
|
+
export function getSuiAmountAfterSell(params: GetSuiAmountAfterSellParams, suiClient: SuiGrpcClient): Promise<bigint>;
|
|
446
433
|
}
|
|
447
434
|
|
|
448
435
|
/**
|
|
@@ -450,8 +437,8 @@ export declare namespace BlastFunCustomCalculation {
|
|
|
450
437
|
*/
|
|
451
438
|
export declare namespace BlastFunCustomTransaction {
|
|
452
439
|
export function getAllowedVersions(_tx?: Transaction): Promise<TransactionResult>;
|
|
453
|
-
export function buildBuyTx(params: BuildSwapTxParams, suiClient:
|
|
454
|
-
export function buildSellTx(params: BuildSwapTxParams, suiClient:
|
|
440
|
+
export function buildBuyTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
441
|
+
export function buildSellTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
455
442
|
}
|
|
456
443
|
|
|
457
444
|
export declare namespace BlastFunPackage {
|
|
@@ -461,7 +448,7 @@ export declare namespace BlastFunPackage {
|
|
|
461
448
|
public_key: number[];
|
|
462
449
|
ipx_meme_coin_treasury: string;
|
|
463
450
|
};
|
|
464
|
-
export function isSniperProtectedMemezFun(suiClient:
|
|
451
|
+
export function isSniperProtectedMemezFun(suiClient: SuiGrpcClient, poolId: string): Promise<boolean>;
|
|
465
452
|
}
|
|
466
453
|
export namespace MemezDistributor {
|
|
467
454
|
export type Recipient = {
|
|
@@ -508,7 +495,7 @@ export declare namespace BlastFunPackage {
|
|
|
508
495
|
export type PumpState = {
|
|
509
496
|
constant_product: MoveObjectStruct<MemezConstantProduct.MemezConstantProduct>;
|
|
510
497
|
};
|
|
511
|
-
export function getPumpState(suiClient:
|
|
498
|
+
export function getPumpState(suiClient: SuiGrpcClient, memezFun: MemezFun.MemezFun): Promise<PumpState>;
|
|
512
499
|
export function pump(pumpState: PumpState, quoteAmount: bigint): bigint;
|
|
513
500
|
export function dump(pumpState: PumpState, memeAmount: bigint): bigint;
|
|
514
501
|
}
|
|
@@ -520,16 +507,16 @@ export declare namespace BlastFunSDKCalculation {
|
|
|
520
507
|
}
|
|
521
508
|
|
|
522
509
|
export declare namespace BlastFunSDKTransaction {
|
|
523
|
-
export function buildBuyTx(params: BuildSwapTxParams, suiClient:
|
|
524
|
-
export function buildSellTx(params: BuildSwapTxParams, suiClient:
|
|
525
|
-
export function getBuyTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient:
|
|
526
|
-
export function getSellTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient:
|
|
510
|
+
export function buildBuyTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
511
|
+
export function buildSellTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
512
|
+
export function getBuyTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient: SuiGrpcClient): Promise<Uint8Array>;
|
|
513
|
+
export function getSellTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient: SuiGrpcClient): Promise<Uint8Array>;
|
|
527
514
|
}
|
|
528
515
|
|
|
529
516
|
export declare class Bluefin7kClient implements QuoteClient {
|
|
530
517
|
private readonly options;
|
|
531
518
|
readonly kind = SourceAggregatorRoute.SEVENK;
|
|
532
|
-
constructor(options: Bluefin7kClientOptions, client:
|
|
519
|
+
constructor(options: Bluefin7kClientOptions, client: SuiGrpcClient);
|
|
533
520
|
quote(quoteOptions: MetaQuoteOptions): Promise<MetaQuote>;
|
|
534
521
|
}
|
|
535
522
|
|
|
@@ -826,6 +813,13 @@ export declare function checkIsSui(type: string): type is "0x2::sui::SUI" | "0x0
|
|
|
826
813
|
|
|
827
814
|
export declare const CLOCK_OBJECT_ID = "0x0000000000000000000000000000000000000000000000000000000000000006";
|
|
828
815
|
|
|
816
|
+
declare type CoinStruct = {
|
|
817
|
+
coinObjectId: string;
|
|
818
|
+
version: string;
|
|
819
|
+
digest: string;
|
|
820
|
+
balance: string;
|
|
821
|
+
};
|
|
822
|
+
|
|
829
823
|
export declare interface CommonTxParams {
|
|
830
824
|
/** User address */
|
|
831
825
|
accountAddress: string;
|
|
@@ -871,11 +865,6 @@ export declare interface CommonTxParams {
|
|
|
871
865
|
/** Configuration object ID for boosting settings */
|
|
872
866
|
export declare const CONFIG_ID = "0x8b1a8ac6e34688cd8f8f8e5fefa9d5fb9e1ff74d2f132f8e208ae5ac9cc530bb";
|
|
873
867
|
|
|
874
|
-
/**
|
|
875
|
-
* Alternative: Create a proxy that ensures compatibility
|
|
876
|
-
*/
|
|
877
|
-
export declare function createCompatibleSuiClient(client: SuiJsonRpcClient): LegacySuiClient;
|
|
878
|
-
|
|
879
868
|
export declare class CurveModule implements IModule {
|
|
880
869
|
readonly sdk: NoodlesSdk;
|
|
881
870
|
constructor(sdk: NoodlesSdk);
|
|
@@ -906,7 +895,7 @@ export declare type DraftTransaction = {
|
|
|
906
895
|
|
|
907
896
|
export declare class DraftTransferTx {
|
|
908
897
|
private readonly suiClient;
|
|
909
|
-
constructor(suiClient:
|
|
898
|
+
constructor(suiClient: SuiGrpcClient);
|
|
910
899
|
/**
|
|
911
900
|
* Validates private key against expected sender address
|
|
912
901
|
* @private
|
|
@@ -1078,7 +1067,7 @@ export declare class FlowXAggregator {
|
|
|
1078
1067
|
* @param config - Aggregator configuration including fee settings and optional API key
|
|
1079
1068
|
* @param suiClient - Sui client for blockchain interactions
|
|
1080
1069
|
*/
|
|
1081
|
-
constructor(config: FlowXAggregatorConfig, suiClient:
|
|
1070
|
+
constructor(config: FlowXAggregatorConfig, suiClient: SuiGrpcClient);
|
|
1082
1071
|
/**
|
|
1083
1072
|
* Creates a commission configuration for FlowX trades
|
|
1084
1073
|
* @param coinInType - Type/address of the input coin for commission calculation
|
|
@@ -1233,7 +1222,7 @@ export declare namespace FullsailClmm {
|
|
|
1233
1222
|
|
|
1234
1223
|
export declare function getAmountAfterFee(amount: bigint | string, fee?: string | number): bigint;
|
|
1235
1224
|
|
|
1236
|
-
export declare const getCoinObjectIdsByAmount: (suiClient:
|
|
1225
|
+
export declare const getCoinObjectIdsByAmount: (suiClient: SuiGrpcClient, address: string, amount: string, coinType: string) => Promise<{
|
|
1237
1226
|
objectIds: string[];
|
|
1238
1227
|
objectCoins: CoinStruct[];
|
|
1239
1228
|
balance: string;
|
|
@@ -1290,13 +1279,17 @@ export declare const getExpectedReturn: (returnAmount: string, slippageBps: numb
|
|
|
1290
1279
|
expectedAmount: string;
|
|
1291
1280
|
};
|
|
1292
1281
|
|
|
1282
|
+
export declare function getGrpcFullnodeUrl(network: SuiNetwork): string;
|
|
1283
|
+
|
|
1284
|
+
export declare function getJsonRpcFullnodeUrl(network: SuiNetwork): string;
|
|
1285
|
+
|
|
1293
1286
|
export declare function getMemezPumpSDK(): Promise<MemezPumpSDK>;
|
|
1294
1287
|
|
|
1295
|
-
export declare function getMoveObject(suiClient:
|
|
1288
|
+
export declare function getMoveObject(suiClient: SuiGrpcClient, objectId: string): Promise<MoveObject>;
|
|
1296
1289
|
|
|
1297
|
-
export declare function getMoveObjectContent(suiClient:
|
|
1290
|
+
export declare function getMoveObjectContent(suiClient: SuiGrpcClient, objectId: string): Promise<MoveStruct>;
|
|
1298
1291
|
|
|
1299
|
-
export declare function getNeededGasFee(suiClient:
|
|
1292
|
+
export declare function getNeededGasFee(suiClient: SuiGrpcClient, tx: Transaction, sender: string, bufferPercent: number): Promise<bigint>;
|
|
1300
1293
|
|
|
1301
1294
|
declare type GetSplitCoinForTx = {
|
|
1302
1295
|
account: string;
|
|
@@ -1308,7 +1301,7 @@ declare type GetSplitCoinForTx = {
|
|
|
1308
1301
|
isSponsored?: boolean;
|
|
1309
1302
|
};
|
|
1310
1303
|
|
|
1311
|
-
export declare function getSplitCoinForTx(params: GetSplitCoinForTx, suiClient:
|
|
1304
|
+
export declare function getSplitCoinForTx(params: GetSplitCoinForTx, suiClient: SuiGrpcClient): Promise<{
|
|
1312
1305
|
tx: Transaction;
|
|
1313
1306
|
coinData: TransactionResult;
|
|
1314
1307
|
}>;
|
|
@@ -1536,6 +1529,8 @@ declare type GetTransactionRequest_5 = {
|
|
|
1536
1529
|
tradeFee?: TradeFeeOptions;
|
|
1537
1530
|
};
|
|
1538
1531
|
|
|
1532
|
+
export declare function getTransactionResultDigest(result: SuiClientTypes.TransactionResult): string;
|
|
1533
|
+
|
|
1539
1534
|
export declare namespace HaedalLsdWal {
|
|
1540
1535
|
const VALIDATOR_ID = "0x7b3ba6de2ae58283f60d5b8dc04bb9e90e4796b3b2e0dea75569f491275242e7";
|
|
1541
1536
|
}
|
|
@@ -1554,8 +1549,6 @@ export declare namespace KriyaClmm {
|
|
|
1554
1549
|
const VERSION_OBJ_ID = "0xf5145a7ac345ca8736cf8c76047d00d6d378f30e81be6f6eb557184d9de93c78";
|
|
1555
1550
|
}
|
|
1556
1551
|
|
|
1557
|
-
declare type LegacySuiClient = SuiJsonRpcClient;
|
|
1558
|
-
|
|
1559
1552
|
export declare namespace MagmaAlmm {
|
|
1560
1553
|
const FACTORY_OBJ_ID = "0xedb456e93e423dd75a8ddebedd9974bb661195043027e32ce01649d6ccee74cf";
|
|
1561
1554
|
const GLOBAL_CONFIG_OBJ_ID = "0x4c4e1402401f72c7d8533d0ed8d5f8949da363c7a3319ccef261ffe153d32f8a";
|
|
@@ -1618,7 +1611,7 @@ export declare type MetaAgErrorDetailsMap = {
|
|
|
1618
1611
|
provider: SourceAggregatorRoute;
|
|
1619
1612
|
};
|
|
1620
1613
|
[MetaAgErrorCode.SIMULATION_FAILED]: {
|
|
1621
|
-
error:
|
|
1614
|
+
error: unknown;
|
|
1622
1615
|
};
|
|
1623
1616
|
};
|
|
1624
1617
|
|
|
@@ -1654,10 +1647,11 @@ export declare type MetaAggregatorBasePath = {
|
|
|
1654
1647
|
export declare type MetaAggregatorPath = MetaAggregatorBasePath & ExtendAggregatorSwapParam;
|
|
1655
1648
|
|
|
1656
1649
|
export declare class MetaClient {
|
|
1657
|
-
client:
|
|
1650
|
+
client: SuiGrpcClient;
|
|
1651
|
+
jsonRpcClient: SuiJsonRpcClient;
|
|
1658
1652
|
private providers;
|
|
1659
1653
|
private readonly options;
|
|
1660
|
-
constructor(options
|
|
1654
|
+
constructor(options: MetaClientOptions);
|
|
1661
1655
|
private getQuoteClient;
|
|
1662
1656
|
private getQuoteByClient;
|
|
1663
1657
|
/**
|
|
@@ -1670,14 +1664,13 @@ export declare class MetaClient {
|
|
|
1670
1664
|
}
|
|
1671
1665
|
|
|
1672
1666
|
export declare interface MetaClientOptions {
|
|
1667
|
+
clients: SuiClients;
|
|
1673
1668
|
/**If not specified, all providers will be used */
|
|
1674
1669
|
providers?: {
|
|
1675
1670
|
[SourceAggregatorRoute.SEVENK]?: Bluefin7kClientOptions;
|
|
1676
1671
|
[SourceAggregatorRoute.FLOWX]?: FlowxClientOptions;
|
|
1677
1672
|
[SourceAggregatorRoute.CETUS]?: CetusClientOptions;
|
|
1678
1673
|
};
|
|
1679
|
-
/**Mainnet Json Rpc url, if not specified, the default mainnet url will be used */
|
|
1680
|
-
fullnodeUrl?: string;
|
|
1681
1674
|
/**Hermes Api url, if not specified, the default hermes api url will be used */
|
|
1682
1675
|
hermesApi?: string[];
|
|
1683
1676
|
/**Address to receive commission, if not specified, the commission will not be used */
|
|
@@ -1770,12 +1763,12 @@ export declare namespace MomentumClmm {
|
|
|
1770
1763
|
}
|
|
1771
1764
|
|
|
1772
1765
|
export declare namespace MoonbagsCalculation {
|
|
1773
|
-
export function getCurveAmountAfterBuy(params: GetCurveAmountAfterBuyParams, suiClient:
|
|
1774
|
-
export function getSuiAmountAfterSell(params: GetSuiAmountAfterSellParams, suiClient:
|
|
1766
|
+
export function getCurveAmountAfterBuy(params: GetCurveAmountAfterBuyParams, suiClient: SuiGrpcClient): Promise<bigint>;
|
|
1767
|
+
export function getSuiAmountAfterSell(params: GetSuiAmountAfterSellParams, suiClient: SuiGrpcClient): Promise<bigint>;
|
|
1775
1768
|
export function getUsedSuiForTx(params: {
|
|
1776
1769
|
suiAmount: bigint;
|
|
1777
1770
|
frontendFee?: number | string;
|
|
1778
|
-
}, suiClient:
|
|
1771
|
+
}, suiClient: SuiGrpcClient): Promise<bigint>;
|
|
1779
1772
|
}
|
|
1780
1773
|
|
|
1781
1774
|
export declare namespace MoonbagsConstants {
|
|
@@ -1814,7 +1807,7 @@ export declare namespace MoonbagsPackage {
|
|
|
1814
1807
|
name: number[];
|
|
1815
1808
|
value: string;
|
|
1816
1809
|
};
|
|
1817
|
-
export function getDynamicVirtualTokenReserves(suiClient:
|
|
1810
|
+
export function getDynamicVirtualTokenReserves(suiClient: SuiGrpcClient, poolId: string): Promise<bigint | undefined>;
|
|
1818
1811
|
export function buyExactInReturnsWithLock(params: {
|
|
1819
1812
|
inputAmount: bigint;
|
|
1820
1813
|
amountIn: bigint;
|
|
@@ -1837,10 +1830,10 @@ export declare namespace MoonbagsPackage {
|
|
|
1837
1830
|
}
|
|
1838
1831
|
|
|
1839
1832
|
export declare namespace MoonbagsTransaction {
|
|
1840
|
-
export function buildBuyTx(params: BuildSwapTxParams, suiClient:
|
|
1841
|
-
export function buildSellTx(params: BuildSwapTxParams, suiClient:
|
|
1842
|
-
export function getBuyTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient:
|
|
1843
|
-
export function getSellTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient:
|
|
1833
|
+
export function buildBuyTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
1834
|
+
export function buildSellTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
1835
|
+
export function getBuyTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient: SuiGrpcClient): Promise<Uint8Array>;
|
|
1836
|
+
export function getSellTransaction({ coinInAmount, coinInType, coinOutType, poolId, slippage, walletAddress, tradeFee, }: GetCurveTradeTransactionRequest, suiClient: SuiGrpcClient): Promise<Uint8Array>;
|
|
1844
1837
|
}
|
|
1845
1838
|
|
|
1846
1839
|
export declare type MoveEnumObjectStruct<Content, Variant extends string = string> = MoveObjectStruct<Content> & {
|
|
@@ -1863,6 +1856,8 @@ export declare namespace Movepump {
|
|
|
1863
1856
|
const CONFIGURATION_OBJ_ID = "0xd746495d04a6119987c2b9334c5fefd7d8cff52a8a02a3ea4e3995b9a041ace4";
|
|
1864
1857
|
}
|
|
1865
1858
|
|
|
1859
|
+
declare type MoveStruct = Record<string, unknown>;
|
|
1860
|
+
|
|
1866
1861
|
export declare const NATIVE_USDC_TOKEN_TYPE = "0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC";
|
|
1867
1862
|
|
|
1868
1863
|
declare enum Network {
|
|
@@ -1876,19 +1871,21 @@ export declare class NoodlesPaySdk {
|
|
|
1876
1871
|
private _suiClient;
|
|
1877
1872
|
readonly boostingModule: BoostingModule;
|
|
1878
1873
|
readonly subscriptionModule: SubscriptionModule;
|
|
1879
|
-
constructor(network?: Network, env?: Environment);
|
|
1880
|
-
get suiClient():
|
|
1874
|
+
constructor(client: SuiGrpcClient, network?: Network, env?: Environment);
|
|
1875
|
+
get suiClient(): SuiGrpcClient;
|
|
1881
1876
|
}
|
|
1882
1877
|
|
|
1883
1878
|
export declare class NoodlesSdk {
|
|
1884
1879
|
readonly network: Network;
|
|
1885
1880
|
readonly env: Environment;
|
|
1886
1881
|
readonly options: SdkOptions;
|
|
1887
|
-
private
|
|
1882
|
+
private _suiGrpcClient;
|
|
1883
|
+
private _suiJsonRpcClient;
|
|
1888
1884
|
readonly aggregatorModule: AggregatorModule;
|
|
1889
1885
|
readonly curveModule: CurveModule;
|
|
1890
1886
|
constructor(options: SdkOptions, network?: Network, env?: Environment);
|
|
1891
|
-
get suiClient():
|
|
1887
|
+
get suiClient(): SuiGrpcClient;
|
|
1888
|
+
get suiJsonRpcClient(): SuiJsonRpcClient;
|
|
1892
1889
|
}
|
|
1893
1890
|
|
|
1894
1891
|
export declare function normalizeTokenType(type: string): string;
|
|
@@ -2014,6 +2011,7 @@ export declare namespace Scallop {
|
|
|
2014
2011
|
}
|
|
2015
2012
|
|
|
2016
2013
|
export declare type SdkOptions = {
|
|
2014
|
+
clients: SuiClients;
|
|
2017
2015
|
tradeFee: TradeFeeOptions;
|
|
2018
2016
|
/** Optional API key for Astros aggregator access */
|
|
2019
2017
|
astrosApiKey?: string;
|
|
@@ -2072,7 +2070,7 @@ export declare class SevenKAggregator {
|
|
|
2072
2070
|
* @param config - Aggregator configuration including fee settings and optional API key
|
|
2073
2071
|
* @param suiClient - Sui client for blockchain interactions
|
|
2074
2072
|
*/
|
|
2075
|
-
constructor(config: SevenKAggregatorConfig, suiClient:
|
|
2073
|
+
constructor(config: SevenKAggregatorConfig, suiClient: SuiGrpcClient);
|
|
2076
2074
|
/**
|
|
2077
2075
|
* Finds the optimal trade route for swapping tokens using 7K Protocol
|
|
2078
2076
|
* @param params - Trade route parameters
|
|
@@ -2141,7 +2139,7 @@ declare type SourceClientBaseOptions = {
|
|
|
2141
2139
|
disabled?: boolean;
|
|
2142
2140
|
};
|
|
2143
2141
|
|
|
2144
|
-
export declare function splitSuiCoinAfterFeeFromBuyTx(params: BuildSwapTxParams, suiClient:
|
|
2142
|
+
export declare function splitSuiCoinAfterFeeFromBuyTx(params: BuildSwapTxParams, suiClient: SuiGrpcClient): Promise<BuildTxResult>;
|
|
2145
2143
|
|
|
2146
2144
|
export declare function splitSuiCoinAfterFeeFromSellTx(tx: Transaction, params: BuildSwapTxParams, suiCoin: TransactionObjectArgument): Promise<BuildTxResult>;
|
|
2147
2145
|
|
|
@@ -2356,6 +2354,21 @@ export declare const SUI_METADATA_OBJECT_ID = "0x9258181f5ceac8dbffb7030890243ca
|
|
|
2356
2354
|
|
|
2357
2355
|
export declare const SUI_TYPE = "0x2::sui::SUI";
|
|
2358
2356
|
|
|
2357
|
+
export declare type SuiClient = SuiGrpcClient;
|
|
2358
|
+
|
|
2359
|
+
export declare type SuiClients = {
|
|
2360
|
+
grpc: SuiGrpcClient;
|
|
2361
|
+
jsonRpc: SuiJsonRpcClient;
|
|
2362
|
+
};
|
|
2363
|
+
|
|
2364
|
+
export { SuiGrpcClient }
|
|
2365
|
+
|
|
2366
|
+
export declare type SuiJsonRpc = SuiJsonRpcClient;
|
|
2367
|
+
|
|
2368
|
+
export { SuiJsonRpcClient }
|
|
2369
|
+
|
|
2370
|
+
export declare type SuiNetwork = SuiClientTypes.Network;
|
|
2371
|
+
|
|
2359
2372
|
export declare enum SupportedAggregator {
|
|
2360
2373
|
ASTROS = "ASTROS",
|
|
2361
2374
|
AFTERMATH = "AFTERMATH",
|