@scallop-io/scallop-swap-sdk 2.1.1 → 2.1.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.mts +17 -20
- package/dist/index.d.ts +17 -20
- package/package.json +1 -1
- package/src/types.ts +19 -6
package/dist/index.d.mts
CHANGED
|
@@ -167,35 +167,32 @@ type SwapSdkPoolStatusEvent<PoolType> = {
|
|
|
167
167
|
pool: PoolType;
|
|
168
168
|
enabled: boolean;
|
|
169
169
|
};
|
|
170
|
+
type AllSwapSdkPoolStatusEvent = {
|
|
171
|
+
name: string;
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
};
|
|
170
174
|
type SwapSdkEvents<PoolType> = {
|
|
171
175
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
172
|
-
allPoolStatusChanged:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
allPoolStatusChanged: AllSwapSdkPoolStatusEvent;
|
|
177
|
+
};
|
|
178
|
+
type SlippageChangedEvent = {
|
|
179
|
+
slippageInDecimal: number;
|
|
176
180
|
};
|
|
177
181
|
type AggregatorStatusEvent = {
|
|
178
182
|
name: string;
|
|
179
183
|
enabled: boolean;
|
|
180
184
|
};
|
|
185
|
+
type AggregatorEvent = {
|
|
186
|
+
name: string;
|
|
187
|
+
};
|
|
181
188
|
type AggregatorEvents<PoolType> = {
|
|
182
189
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
183
190
|
aggregatorStatusChanged: AggregatorStatusEvent;
|
|
184
|
-
aggregatorRemoved:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
};
|
|
190
|
-
aggregatorSlippageChanged: {
|
|
191
|
-
slippageInDecimal: number;
|
|
192
|
-
};
|
|
193
|
-
aggregatorFetchStart: {
|
|
194
|
-
name: string;
|
|
195
|
-
};
|
|
196
|
-
aggregatorFetchEnd: {
|
|
197
|
-
name: string;
|
|
198
|
-
};
|
|
191
|
+
aggregatorRemoved: AggregatorEvent;
|
|
192
|
+
aggregatorAdded: AggregatorEvent;
|
|
193
|
+
aggregatorSlippageChanged: SlippageChangedEvent;
|
|
194
|
+
aggregatorFetchStart: AggregatorEvent;
|
|
195
|
+
aggregatorFetchEnd: AggregatorEvent;
|
|
199
196
|
};
|
|
200
197
|
|
|
201
198
|
declare class TypedEventEmitter<Events extends Record<string, any>> extends EventEmitter {
|
|
@@ -459,4 +456,4 @@ declare const selectCoins: (client: SuiClient, coinType: string, amount: string,
|
|
|
459
456
|
declare const mergeWithExistingOrTransfer: (tx: Transaction, coin: TransactionObjectArgument, client: SuiClient, coinType: string, sender: string) => Promise<void>;
|
|
460
457
|
declare const transformProperCase: (provider: string) => string;
|
|
461
458
|
|
|
462
|
-
export { type FetchRouteSettings$2 as AftermathFetchRouteSettings, AftermathSwap, Aggregator, type AggregatorConstructorParams, type AggregatorEvents, type AggregatorStatusEvent, type FetchRouteSettings$3 as CetusFetchRouteSettings, CetusSwap, type Coin, CoinMetadataRegistry, type FetchRouteParams, type FetchRouteResult, type FetchRoutesOptions, type FetchRouteSettings as FlowXFetchRouteSettings, FlowXSwap, type FormattedRouteResult, type SdkName, type SdkRegistry, type SecretKeyOrMnemonicsOrWalletAddress, type SuiClientOrFullnodeUrl, type SwapBuildResult, type SwapCoinInfo, type SwapParams, type SwapPath, type SwapRoute, SwapSdkBase, type SwapSdkBaseInterface, type SwapSdkConstructorParams, type SwapSdkEvents, type SwapSdkPoolStatusEvent, TypedEventEmitter, type FetchRouteSettings$1 as _7kFetchRouteSettings, _7kSwap, isSuiType, mergeWithExistingOrTransfer, selectCoins, transformProperCase };
|
|
459
|
+
export { type FetchRouteSettings$2 as AftermathFetchRouteSettings, AftermathSwap, Aggregator, type AggregatorConstructorParams, type AggregatorEvent, type AggregatorEvents, type AggregatorStatusEvent, type AllSwapSdkPoolStatusEvent, type FetchRouteSettings$3 as CetusFetchRouteSettings, CetusSwap, type Coin, CoinMetadataRegistry, type FetchRouteParams, type FetchRouteResult, type FetchRoutesOptions, type FetchRouteSettings as FlowXFetchRouteSettings, FlowXSwap, type FormattedRouteResult, type SdkName, type SdkRegistry, type SecretKeyOrMnemonicsOrWalletAddress, type SlippageChangedEvent, type SuiClientOrFullnodeUrl, type SwapBuildResult, type SwapCoinInfo, type SwapParams, type SwapPath, type SwapRoute, SwapSdkBase, type SwapSdkBaseInterface, type SwapSdkConstructorParams, type SwapSdkEvents, type SwapSdkPoolStatusEvent, TypedEventEmitter, type FetchRouteSettings$1 as _7kFetchRouteSettings, _7kSwap, isSuiType, mergeWithExistingOrTransfer, selectCoins, transformProperCase };
|
package/dist/index.d.ts
CHANGED
|
@@ -167,35 +167,32 @@ type SwapSdkPoolStatusEvent<PoolType> = {
|
|
|
167
167
|
pool: PoolType;
|
|
168
168
|
enabled: boolean;
|
|
169
169
|
};
|
|
170
|
+
type AllSwapSdkPoolStatusEvent = {
|
|
171
|
+
name: string;
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
};
|
|
170
174
|
type SwapSdkEvents<PoolType> = {
|
|
171
175
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
172
|
-
allPoolStatusChanged:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
allPoolStatusChanged: AllSwapSdkPoolStatusEvent;
|
|
177
|
+
};
|
|
178
|
+
type SlippageChangedEvent = {
|
|
179
|
+
slippageInDecimal: number;
|
|
176
180
|
};
|
|
177
181
|
type AggregatorStatusEvent = {
|
|
178
182
|
name: string;
|
|
179
183
|
enabled: boolean;
|
|
180
184
|
};
|
|
185
|
+
type AggregatorEvent = {
|
|
186
|
+
name: string;
|
|
187
|
+
};
|
|
181
188
|
type AggregatorEvents<PoolType> = {
|
|
182
189
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
183
190
|
aggregatorStatusChanged: AggregatorStatusEvent;
|
|
184
|
-
aggregatorRemoved:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
};
|
|
190
|
-
aggregatorSlippageChanged: {
|
|
191
|
-
slippageInDecimal: number;
|
|
192
|
-
};
|
|
193
|
-
aggregatorFetchStart: {
|
|
194
|
-
name: string;
|
|
195
|
-
};
|
|
196
|
-
aggregatorFetchEnd: {
|
|
197
|
-
name: string;
|
|
198
|
-
};
|
|
191
|
+
aggregatorRemoved: AggregatorEvent;
|
|
192
|
+
aggregatorAdded: AggregatorEvent;
|
|
193
|
+
aggregatorSlippageChanged: SlippageChangedEvent;
|
|
194
|
+
aggregatorFetchStart: AggregatorEvent;
|
|
195
|
+
aggregatorFetchEnd: AggregatorEvent;
|
|
199
196
|
};
|
|
200
197
|
|
|
201
198
|
declare class TypedEventEmitter<Events extends Record<string, any>> extends EventEmitter {
|
|
@@ -459,4 +456,4 @@ declare const selectCoins: (client: SuiClient, coinType: string, amount: string,
|
|
|
459
456
|
declare const mergeWithExistingOrTransfer: (tx: Transaction, coin: TransactionObjectArgument, client: SuiClient, coinType: string, sender: string) => Promise<void>;
|
|
460
457
|
declare const transformProperCase: (provider: string) => string;
|
|
461
458
|
|
|
462
|
-
export { type FetchRouteSettings$2 as AftermathFetchRouteSettings, AftermathSwap, Aggregator, type AggregatorConstructorParams, type AggregatorEvents, type AggregatorStatusEvent, type FetchRouteSettings$3 as CetusFetchRouteSettings, CetusSwap, type Coin, CoinMetadataRegistry, type FetchRouteParams, type FetchRouteResult, type FetchRoutesOptions, type FetchRouteSettings as FlowXFetchRouteSettings, FlowXSwap, type FormattedRouteResult, type SdkName, type SdkRegistry, type SecretKeyOrMnemonicsOrWalletAddress, type SuiClientOrFullnodeUrl, type SwapBuildResult, type SwapCoinInfo, type SwapParams, type SwapPath, type SwapRoute, SwapSdkBase, type SwapSdkBaseInterface, type SwapSdkConstructorParams, type SwapSdkEvents, type SwapSdkPoolStatusEvent, TypedEventEmitter, type FetchRouteSettings$1 as _7kFetchRouteSettings, _7kSwap, isSuiType, mergeWithExistingOrTransfer, selectCoins, transformProperCase };
|
|
459
|
+
export { type FetchRouteSettings$2 as AftermathFetchRouteSettings, AftermathSwap, Aggregator, type AggregatorConstructorParams, type AggregatorEvent, type AggregatorEvents, type AggregatorStatusEvent, type AllSwapSdkPoolStatusEvent, type FetchRouteSettings$3 as CetusFetchRouteSettings, CetusSwap, type Coin, CoinMetadataRegistry, type FetchRouteParams, type FetchRouteResult, type FetchRoutesOptions, type FetchRouteSettings as FlowXFetchRouteSettings, FlowXSwap, type FormattedRouteResult, type SdkName, type SdkRegistry, type SecretKeyOrMnemonicsOrWalletAddress, type SlippageChangedEvent, type SuiClientOrFullnodeUrl, type SwapBuildResult, type SwapCoinInfo, type SwapParams, type SwapPath, type SwapRoute, SwapSdkBase, type SwapSdkBaseInterface, type SwapSdkConstructorParams, type SwapSdkEvents, type SwapSdkPoolStatusEvent, TypedEventEmitter, type FetchRouteSettings$1 as _7kFetchRouteSettings, _7kSwap, isSuiType, mergeWithExistingOrTransfer, selectCoins, transformProperCase };
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -4,9 +4,18 @@ export type SwapSdkPoolStatusEvent<PoolType> = {
|
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
+
export type AllSwapSdkPoolStatusEvent = {
|
|
8
|
+
name: string;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
export type SwapSdkEvents<PoolType> = {
|
|
8
13
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
9
|
-
allPoolStatusChanged:
|
|
14
|
+
allPoolStatusChanged: AllSwapSdkPoolStatusEvent;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type SlippageChangedEvent = {
|
|
18
|
+
slippageInDecimal: number;
|
|
10
19
|
};
|
|
11
20
|
|
|
12
21
|
export type AggregatorStatusEvent = {
|
|
@@ -14,12 +23,16 @@ export type AggregatorStatusEvent = {
|
|
|
14
23
|
enabled: boolean;
|
|
15
24
|
};
|
|
16
25
|
|
|
26
|
+
export type AggregatorEvent = {
|
|
27
|
+
name: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
17
30
|
export type AggregatorEvents<PoolType> = {
|
|
18
31
|
poolStatusChanged: SwapSdkPoolStatusEvent<PoolType>;
|
|
19
32
|
aggregatorStatusChanged: AggregatorStatusEvent;
|
|
20
|
-
aggregatorRemoved:
|
|
21
|
-
aggregatorAdded:
|
|
22
|
-
aggregatorSlippageChanged:
|
|
23
|
-
aggregatorFetchStart:
|
|
24
|
-
aggregatorFetchEnd:
|
|
33
|
+
aggregatorRemoved: AggregatorEvent;
|
|
34
|
+
aggregatorAdded: AggregatorEvent;
|
|
35
|
+
aggregatorSlippageChanged: SlippageChangedEvent;
|
|
36
|
+
aggregatorFetchStart: AggregatorEvent;
|
|
37
|
+
aggregatorFetchEnd: AggregatorEvent;
|
|
25
38
|
};
|