@cetusprotocol/dlmm-sdk 1.2.9 → 1.3.0
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 +5 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CoinPairType, TableHandle, IModule, PaginationArgs, DataPage, PageQuery
|
|
|
2
2
|
import { TransactionObjectArgument, Transaction } from '@mysten/sui/transactions';
|
|
3
3
|
import Decimal from 'decimal.js';
|
|
4
4
|
import * as _mysten_sui_bcs from '@mysten/sui/bcs';
|
|
5
|
-
import { SuiEvent
|
|
5
|
+
import { SuiEvent } from '@mysten/sui/jsonRpc';
|
|
6
6
|
import BN from 'bn.js';
|
|
7
7
|
|
|
8
8
|
type DlmmConfigs = {
|
|
@@ -448,11 +448,12 @@ declare class PoolModule implements IModule<CetusDlmmSDK> {
|
|
|
448
448
|
getBinInfoList(options: GetBinInfoOption[]): Promise<GetBinInfoResult[]>;
|
|
449
449
|
getTotalFeeRate(option: GetTotalFeeRateOption): Promise<FeeRate>;
|
|
450
450
|
getPoolBinInfo(option: GetPoolBinInfoOption): Promise<BinAmount[]>;
|
|
451
|
-
getPoolTransactionList({ pool_id, pagination_args, order, full_rpc_url, }: {
|
|
451
|
+
getPoolTransactionList({ pool_id, pagination_args, order, full_rpc_url, event_types, }: {
|
|
452
452
|
pool_id: string;
|
|
453
453
|
full_rpc_url?: string;
|
|
454
454
|
pagination_args: PageQuery;
|
|
455
455
|
order?: 'ascending' | 'descending' | null | undefined;
|
|
456
|
+
event_types?: string[];
|
|
456
457
|
}): Promise<DataPage<PoolTransactionInfo>>;
|
|
457
458
|
/**
|
|
458
459
|
* Get the bin info by range (TODO: need to optimize this method)
|
|
@@ -787,10 +788,10 @@ declare function parseBinInfoList(res: any): BinAmount[];
|
|
|
787
788
|
declare function parseBinInfo(fields: any): BinAmount;
|
|
788
789
|
declare function parsedDlmmPosFeeData(events: any[]): Record<string, PositionFee>;
|
|
789
790
|
declare function parsedDlmmPosRewardData(events: any[]): Record<string, PositionReward>;
|
|
790
|
-
declare function parsedSwapQuoteData(simulate_res:
|
|
791
|
+
declare function parsedSwapQuoteData(simulate_res: any, a2b: boolean): PreSwapQuote | undefined;
|
|
791
792
|
declare function parseStrategyType(strategy_type: StrategyType): number;
|
|
792
793
|
declare const poolFilterEvenTypes: string[];
|
|
793
|
-
declare function parsePoolTransactionInfo(rawData: any, txIndex: number, package_id: string, pool_id: string): PoolTransactionInfo[];
|
|
794
|
+
declare function parsePoolTransactionInfo(rawData: any, txIndex: number, package_id: string, pool_id: string, event_types?: string[]): PoolTransactionInfo[];
|
|
794
795
|
declare function generateRewardSchedule(baseTime: number, maxIntervals: number, timeInterval: number): number[];
|
|
795
796
|
declare function parseRewardPeriodEmission(periodEmissionList: RewardPeriodEmission[], startTimeInSeconds: number, endTimeInSeconds: number, durationSeconds: number): RewardPeriodEmissionFormat[];
|
|
796
797
|
declare function parseCurrentRewardPeriodEmission(periodEmissionList: RewardPeriodEmission[]): RewardPeriodEmission | undefined;
|