@scallop-io/sui-scallop-sdk 2.0.0-alpha.2 → 2.0.0-alpha.4
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 +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +14 -14
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/models/scallopCache.ts +2 -2
- package/src/models/scallopClient.ts +2 -6
- package/src/models/scallopConstants.ts +26 -22
- package/src/models/scallopUtils.ts +2 -2
- package/src/queries/borrowIncentiveQuery.ts +4 -2
- package/src/queries/poolAddressesQuery.ts +31 -11
- package/src/queries/portfolioQuery.ts +3 -12
- package/src/types/model.ts +1 -0
- package/src/utils/query.ts +3 -4
package/dist/index.d.mts
CHANGED
|
@@ -328,7 +328,6 @@ declare class ScallopConstants {
|
|
|
328
328
|
private _poolAddresses;
|
|
329
329
|
private _whitelist;
|
|
330
330
|
private _coinDecimals;
|
|
331
|
-
private _coinNameToCoinTypeMap;
|
|
332
331
|
private _coinNameToOldMarketCoinTypeMap;
|
|
333
332
|
private _scoinRawNameToSCoinNameMap;
|
|
334
333
|
private _scoinTypeToSCoinNameMap;
|
|
@@ -349,7 +348,6 @@ declare class ScallopConstants {
|
|
|
349
348
|
get coinDecimals(): Record<string, number | undefined>;
|
|
350
349
|
get coinTypes(): Record<string, string | undefined>;
|
|
351
350
|
get wormholeCoinTypeToCoinName(): Record<string, string | undefined>;
|
|
352
|
-
get coinNameToCoinTypeMap(): Record<string, string | undefined>;
|
|
353
351
|
get coinTypeToCoinNameMap(): Record<string, string | undefined>;
|
|
354
352
|
get coinNameToOldMarketCoinTypeMap(): Record<string, string | undefined>;
|
|
355
353
|
get sCoinRawNameToScoinNameMap(): Record<string, string | undefined>;
|
|
@@ -2969,6 +2967,7 @@ type ScallopIndexerParams = ScallopCacheParams & {
|
|
|
2969
2967
|
type ScallopAddressParams = ScallopCacheParams & {
|
|
2970
2968
|
addressApiUrl?: string;
|
|
2971
2969
|
addressId: string;
|
|
2970
|
+
whitelistId: string;
|
|
2972
2971
|
auth?: string;
|
|
2973
2972
|
network?: NetworkType;
|
|
2974
2973
|
forceAddressesInterface?: Partial<Record<NetworkType, AddressesInterface>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -328,7 +328,6 @@ declare class ScallopConstants {
|
|
|
328
328
|
private _poolAddresses;
|
|
329
329
|
private _whitelist;
|
|
330
330
|
private _coinDecimals;
|
|
331
|
-
private _coinNameToCoinTypeMap;
|
|
332
331
|
private _coinNameToOldMarketCoinTypeMap;
|
|
333
332
|
private _scoinRawNameToSCoinNameMap;
|
|
334
333
|
private _scoinTypeToSCoinNameMap;
|
|
@@ -349,7 +348,6 @@ declare class ScallopConstants {
|
|
|
349
348
|
get coinDecimals(): Record<string, number | undefined>;
|
|
350
349
|
get coinTypes(): Record<string, string | undefined>;
|
|
351
350
|
get wormholeCoinTypeToCoinName(): Record<string, string | undefined>;
|
|
352
|
-
get coinNameToCoinTypeMap(): Record<string, string | undefined>;
|
|
353
351
|
get coinTypeToCoinNameMap(): Record<string, string | undefined>;
|
|
354
352
|
get coinNameToOldMarketCoinTypeMap(): Record<string, string | undefined>;
|
|
355
353
|
get sCoinRawNameToScoinNameMap(): Record<string, string | undefined>;
|
|
@@ -2969,6 +2967,7 @@ type ScallopIndexerParams = ScallopCacheParams & {
|
|
|
2969
2967
|
type ScallopAddressParams = ScallopCacheParams & {
|
|
2970
2968
|
addressApiUrl?: string;
|
|
2971
2969
|
addressId: string;
|
|
2970
|
+
whitelistId: string;
|
|
2972
2971
|
auth?: string;
|
|
2973
2972
|
network?: NetworkType;
|
|
2974
2973
|
forceAddressesInterface?: Partial<Record<NetworkType, AddressesInterface>>;
|