@scallop-io/sui-scallop-sdk 2.1.8 → 2.1.9
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 +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +28 -28
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/models/scallopAddress.ts +27 -16
- package/src/models/scallopConstants.ts +35 -22
- package/src/models/scallopSuiKit.ts +7 -1
- package/src/utils/util.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -148,7 +148,9 @@ declare class ScallopAxios extends ScallopQueryClient {
|
|
|
148
148
|
|
|
149
149
|
type ScallopAddressParams = {
|
|
150
150
|
addressId?: string;
|
|
151
|
-
|
|
151
|
+
urls?: {
|
|
152
|
+
addresses?: string[];
|
|
153
|
+
};
|
|
152
154
|
auth?: string;
|
|
153
155
|
network?: NetworkType;
|
|
154
156
|
forceAddressesInterface?: Partial<Record<NetworkType, AddressesInterface>>;
|
|
@@ -247,9 +249,10 @@ declare class ScallopAddress {
|
|
|
247
249
|
}): Promise<{
|
|
248
250
|
[k: string]: AddressesInterface;
|
|
249
251
|
}>;
|
|
250
|
-
protected readApi<T>({ url, queryKey, }: {
|
|
252
|
+
protected readApi<T>({ url, queryKey, config, }: {
|
|
251
253
|
url: string;
|
|
252
254
|
queryKey: QueryKey;
|
|
255
|
+
config?: AxiosRequestConfig;
|
|
253
256
|
}): Promise<T>;
|
|
254
257
|
/**
|
|
255
258
|
* Read and synchronizes all addresses from the API into instance.
|
|
@@ -312,8 +315,10 @@ type SCoinRawName = string;
|
|
|
312
315
|
*/
|
|
313
316
|
type SCoinName = string;
|
|
314
317
|
type ScallopConstantsParams = {
|
|
315
|
-
|
|
316
|
-
|
|
318
|
+
urls?: {
|
|
319
|
+
poolAddresses?: string[];
|
|
320
|
+
whitelist?: string[];
|
|
321
|
+
};
|
|
317
322
|
forcePoolAddressInterface?: Record<string, PoolAddress>;
|
|
318
323
|
forceWhitelistInterface?: Whitelist | Record<string, any>;
|
|
319
324
|
defaultValues?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -148,7 +148,9 @@ declare class ScallopAxios extends ScallopQueryClient {
|
|
|
148
148
|
|
|
149
149
|
type ScallopAddressParams = {
|
|
150
150
|
addressId?: string;
|
|
151
|
-
|
|
151
|
+
urls?: {
|
|
152
|
+
addresses?: string[];
|
|
153
|
+
};
|
|
152
154
|
auth?: string;
|
|
153
155
|
network?: NetworkType;
|
|
154
156
|
forceAddressesInterface?: Partial<Record<NetworkType, AddressesInterface>>;
|
|
@@ -247,9 +249,10 @@ declare class ScallopAddress {
|
|
|
247
249
|
}): Promise<{
|
|
248
250
|
[k: string]: AddressesInterface;
|
|
249
251
|
}>;
|
|
250
|
-
protected readApi<T>({ url, queryKey, }: {
|
|
252
|
+
protected readApi<T>({ url, queryKey, config, }: {
|
|
251
253
|
url: string;
|
|
252
254
|
queryKey: QueryKey;
|
|
255
|
+
config?: AxiosRequestConfig;
|
|
253
256
|
}): Promise<T>;
|
|
254
257
|
/**
|
|
255
258
|
* Read and synchronizes all addresses from the API into instance.
|
|
@@ -312,8 +315,10 @@ type SCoinRawName = string;
|
|
|
312
315
|
*/
|
|
313
316
|
type SCoinName = string;
|
|
314
317
|
type ScallopConstantsParams = {
|
|
315
|
-
|
|
316
|
-
|
|
318
|
+
urls?: {
|
|
319
|
+
poolAddresses?: string[];
|
|
320
|
+
whitelist?: string[];
|
|
321
|
+
};
|
|
317
322
|
forcePoolAddressInterface?: Record<string, PoolAddress>;
|
|
318
323
|
forceWhitelistInterface?: Whitelist | Record<string, any>;
|
|
319
324
|
defaultValues?: {
|