@scallop-io/sui-scallop-sdk 2.3.0-lst-x-oracle-alpha.1 → 2.3.0-lst-x-oracle-alpha.3
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/{address-Bp_gAUMw.d.ts → address-CW2IpaLn.d.ts} +3 -3
- package/dist/chunk-E3URAUAC.js +25 -0
- package/dist/chunk-YA77R5GT.mjs +5 -0
- package/dist/constants/index.d.mts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +21 -21
- package/dist/constants/index.mjs +2 -2
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -0
- package/dist/models/index.d.mts +3 -3
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +2 -2
- package/dist/models/index.mjs +2 -2
- package/dist/{scallopUtils-Cxm9zldY.d.ts → scallopUtils-BZLZd2z8.d.ts} +796 -796
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +31 -16
- package/src/constants/testAddress.ts +6 -6
- package/src/index.ts +3 -0
- package/src/models/index.ts +2 -1
- package/src/models/interface.ts +6 -6
- package/src/models/scallopBuilder.ts +1 -1
- package/dist/chunk-4GSK5DO7.js +0 -25
- package/dist/chunk-B4M6FI47.mjs +0 -5
package/dist/types/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aq as BalanceSheet, B as BaseScallopTxBlock, ar as BorrowDynamic, as as BorrowFee, a5 as BorrowIncentiveAccountKey, ae as BorrowIncentiveAccounts, ak as BorrowIncentiveAccountsQueryInterface, y as BorrowIncentiveIds, z as BorrowIncentiveNormalMethods, a8 as BorrowIncentivePool, a7 as BorrowIncentivePoolPoints, a6 as BorrowIncentivePools, aj as BorrowIncentivePoolsQueryInterface, A as BorrowIncentiveQuickMethods, E as BorrowIncentiveTxBlock, ad as CalculatedBorrowIncentivePoolPointData, aD as CalculatedMarketCollateralData, aA as CalculatedMarketPoolData, aY as CalculatedSpoolData, b0 as CalculatedSpoolRewardPoolData, an as CoinAmounts, bb as CoinPrices, a4 as CoinWrappedType, av as CollateralStat, C as CoreIds, m as CoreNormalMethods, n as CoreQuickMethods, p as CoreTxBlock, F as GenerateBorrowIncentiveNormalMethod, H as GenerateBorrowIncentiveQuickMethod, G as GenerateCoreNormalMethod, q as GenerateCoreQuickMethod, U as GenerateLoyaltyProgramNormalMethod, W as GenerateLoyaltyProgramQuickMethod, a0 as GenerateSCoinNormalMethod, a1 as GenerateSCoinQuickMethod, w as GenerateSpoolNormalMethod, x as GenerateSpoolQuickMethod, L as GenerateVeScaNormalMethod, M as GenerateVeScaQuickMethod, at as InterestModel, aM as Lending, aK as Lendings, aI as LoyaltyProgramInfo, O as LoyaltyProgramNormalMethods, P as LoyaltyProgramQuickMethods, T as LoyaltyProgramTxBlock, aE as Market, ao as MarketCoinAmounts, ax as MarketCollateral, am as MarketCollaterals, aw as MarketPool, al as MarketPools, aG as MarketQueryInterface, N as NestedResult, aF as Obligation, aN as ObligationAccount, aL as ObligationAccounts, aR as ObligationBorrowIncentive, aQ as ObligationBorrowIncentiveReward, aO as ObligationCollateral, aP as ObligationDebt, aH as ObligationQueryInterface, ba as OptionalKeys, ag as OriginBorrowIncentiveAccountData, af as OriginBorrowIncentiveAccountPoolData, aa as OriginBorrowIncentivePoolData, a9 as OriginBorrowIncentivePoolPointData, aB as OriginMarketCollateralData, ay as OriginMarketPoolData, aV as OriginSpoolData, a_ as OriginSpoolRewardPoolData, ai as ParsedBorrowIncentiveAccountData, ah as ParsedBorrowIncentiveAccountPoolData, ac as ParsedBorrowIncentivePoolData, ab as ParsedBorrowIncentivePoolPointData, aC as ParsedMarketCollateralData, az as ParsedMarketPoolData, aX as ParsedSpoolData, a$ as ParsedSpoolRewardPoolData, a2 as PoolAddress, Q as QuickMethodReturnType, au as RiskModel, ap as SCoinAmounts, $ as SCoinTxBlock, k as ScallopTxBlock, l as SelectCoinReturnType, aU as Spool, aW as SpoolData, r as SpoolIds, s as SpoolNormalMethods, t as SpoolQuickMethods, aZ as SpoolRewardPool, v as SpoolTxBlock, aT as Spools, b4 as StakeAccount, b3 as StakeAccounts, b5 as StakePool, b1 as StakePools, b6 as StakeRewardPool, b2 as StakeRewardPools, D as SuiTxBlockWithBorrowIncentiveNormalMethods, o as SuiTxBlockWithCoreNormalMethods, R as SuiTxBlockWithLoyaltyProgramNormalMethods, i as SuiTxBlockWithSCoin, _ as SuiTxBlockWithSCoinNormalMethods, j as SuiTxBlockWithSpool, u as SuiTxBlockWithSpoolNormalMethods, J as SuiTxBlockWithVeScaNormalMethods, aS as TotalValueLocked, aJ as VeScaLoyaltyProgramInfo, V as VeScaNormalMethods, I as VeScaQuickMethods, b8 as VeScaTreasuryFields, b9 as VeScaTreasuryInfo, K as VeScaTxBlock, b7 as Vesca, a3 as Whitelist, Y as sCoinNormalMethods, X as sCoinPkgIds, Z as sCoinQuickMethods } from '../scallopUtils-BZLZd2z8.js';
|
|
2
2
|
export { Q as QueryKeys } from '../queryKeys-AaZqDYle.js';
|
|
3
|
-
export {
|
|
3
|
+
export { l as AddressStringPath, A as AddressesInterface, B as BasePackage, k as OracleLst, j as OracleLstConfig, O as OracleLstPackage, h as PackageName, i as SupportOracleLst, d as SupportOracleType, g as SupportedOracleSuiLst, f as xOracleListType, x as xOracleRuleType, e as xOracleRules } from '../address-CW2IpaLn.js';
|
|
4
4
|
import '@tanstack/query-core';
|
|
5
5
|
import '@scallop-io/sui-kit';
|
|
6
6
|
import 'axios';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aq as BalanceSheet, B as BaseScallopTxBlock, ar as BorrowDynamic, as as BorrowFee, a5 as BorrowIncentiveAccountKey, ae as BorrowIncentiveAccounts, ak as BorrowIncentiveAccountsQueryInterface, y as BorrowIncentiveIds, z as BorrowIncentiveNormalMethods, a8 as BorrowIncentivePool, a7 as BorrowIncentivePoolPoints, a6 as BorrowIncentivePools, aj as BorrowIncentivePoolsQueryInterface, A as BorrowIncentiveQuickMethods, E as BorrowIncentiveTxBlock, ad as CalculatedBorrowIncentivePoolPointData, aD as CalculatedMarketCollateralData, aA as CalculatedMarketPoolData, aY as CalculatedSpoolData, b0 as CalculatedSpoolRewardPoolData, an as CoinAmounts, bb as CoinPrices, a4 as CoinWrappedType, av as CollateralStat, C as CoreIds, m as CoreNormalMethods, n as CoreQuickMethods, p as CoreTxBlock, F as GenerateBorrowIncentiveNormalMethod, H as GenerateBorrowIncentiveQuickMethod, G as GenerateCoreNormalMethod, q as GenerateCoreQuickMethod, U as GenerateLoyaltyProgramNormalMethod, W as GenerateLoyaltyProgramQuickMethod, a0 as GenerateSCoinNormalMethod, a1 as GenerateSCoinQuickMethod, w as GenerateSpoolNormalMethod, x as GenerateSpoolQuickMethod, L as GenerateVeScaNormalMethod, M as GenerateVeScaQuickMethod, at as InterestModel, aM as Lending, aK as Lendings, aI as LoyaltyProgramInfo, O as LoyaltyProgramNormalMethods, P as LoyaltyProgramQuickMethods, T as LoyaltyProgramTxBlock, aE as Market, ao as MarketCoinAmounts, ax as MarketCollateral, am as MarketCollaterals, aw as MarketPool, al as MarketPools, aG as MarketQueryInterface, N as NestedResult, aF as Obligation, aN as ObligationAccount, aL as ObligationAccounts, aR as ObligationBorrowIncentive, aQ as ObligationBorrowIncentiveReward, aO as ObligationCollateral, aP as ObligationDebt, aH as ObligationQueryInterface, ba as OptionalKeys, ag as OriginBorrowIncentiveAccountData, af as OriginBorrowIncentiveAccountPoolData, aa as OriginBorrowIncentivePoolData, a9 as OriginBorrowIncentivePoolPointData, aB as OriginMarketCollateralData, ay as OriginMarketPoolData, aV as OriginSpoolData, a_ as OriginSpoolRewardPoolData, ai as ParsedBorrowIncentiveAccountData, ah as ParsedBorrowIncentiveAccountPoolData, ac as ParsedBorrowIncentivePoolData, ab as ParsedBorrowIncentivePoolPointData, aC as ParsedMarketCollateralData, az as ParsedMarketPoolData, aX as ParsedSpoolData, a$ as ParsedSpoolRewardPoolData, a2 as PoolAddress, Q as QuickMethodReturnType, au as RiskModel, ap as SCoinAmounts, $ as SCoinTxBlock, k as ScallopTxBlock, l as SelectCoinReturnType, aU as Spool, aW as SpoolData, r as SpoolIds, s as SpoolNormalMethods, t as SpoolQuickMethods, aZ as SpoolRewardPool, v as SpoolTxBlock, aT as Spools, b4 as StakeAccount, b3 as StakeAccounts, b5 as StakePool, b1 as StakePools, b6 as StakeRewardPool, b2 as StakeRewardPools, D as SuiTxBlockWithBorrowIncentiveNormalMethods, o as SuiTxBlockWithCoreNormalMethods, R as SuiTxBlockWithLoyaltyProgramNormalMethods, i as SuiTxBlockWithSCoin, _ as SuiTxBlockWithSCoinNormalMethods, j as SuiTxBlockWithSpool, u as SuiTxBlockWithSpoolNormalMethods, J as SuiTxBlockWithVeScaNormalMethods, aS as TotalValueLocked, aJ as VeScaLoyaltyProgramInfo, V as VeScaNormalMethods, I as VeScaQuickMethods, b8 as VeScaTreasuryFields, b9 as VeScaTreasuryInfo, K as VeScaTxBlock, b7 as Vesca, a3 as Whitelist, Y as sCoinNormalMethods, X as sCoinPkgIds, Z as sCoinQuickMethods } from '../scallopUtils-BZLZd2z8.js';
|
|
2
2
|
export { Q as QueryKeys } from '../queryKeys-AaZqDYle.js';
|
|
3
|
-
export {
|
|
3
|
+
export { l as AddressStringPath, A as AddressesInterface, B as BasePackage, k as OracleLst, j as OracleLstConfig, O as OracleLstPackage, h as PackageName, i as SupportOracleLst, d as SupportOracleType, g as SupportedOracleSuiLst, f as xOracleListType, x as xOracleRuleType, e as xOracleRules } from '../address-CW2IpaLn.js';
|
|
4
4
|
import '@tanstack/query-core';
|
|
5
5
|
import '@scallop-io/sui-kit';
|
|
6
6
|
import 'axios';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scallop-io/sui-scallop-sdk",
|
|
3
|
-
"version": "2.3.0-lst-x-oracle-alpha.
|
|
3
|
+
"version": "2.3.0-lst-x-oracle-alpha.3",
|
|
4
4
|
"description": "Typescript sdk for interacting with Scallop contract on SUI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sui",
|
|
@@ -22,27 +22,42 @@
|
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18.15.0"
|
|
24
24
|
},
|
|
25
|
-
"main": "./dist/
|
|
26
|
-
"module": "./dist/
|
|
27
|
-
"types": "./dist/
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"module": "./dist/index.mjs",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"import": "./dist/index.mjs",
|
|
31
|
+
"require": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./constants": {
|
|
35
|
+
"import": "./dist/constants/index.mjs",
|
|
36
|
+
"require": "./dist/constants/index.js",
|
|
37
|
+
"types": "./dist/constants/index.d.ts"
|
|
38
|
+
},
|
|
29
39
|
"./models": {
|
|
30
|
-
"source": "./src/models/index.ts",
|
|
31
40
|
"import": "./dist/models/index.mjs",
|
|
32
41
|
"require": "./dist/models/index.js",
|
|
33
|
-
"
|
|
42
|
+
"types": "./dist/models/index.d.ts"
|
|
34
43
|
},
|
|
35
44
|
"./types": {
|
|
36
|
-
"source": "./src/types/index.ts",
|
|
37
45
|
"import": "./dist/types/index.mjs",
|
|
38
46
|
"require": "./dist/types/index.js",
|
|
39
|
-
"
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
47
|
+
"types": "./dist/types/index.d.ts"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"typesVersions": {
|
|
51
|
+
"*": {
|
|
52
|
+
"constants": [
|
|
53
|
+
"dist/constants/index.d.ts"
|
|
54
|
+
],
|
|
55
|
+
"models": [
|
|
56
|
+
"dist/models/index.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"types": [
|
|
59
|
+
"dist/types/index.d.ts"
|
|
60
|
+
]
|
|
46
61
|
}
|
|
47
62
|
},
|
|
48
63
|
"files": [
|
|
@@ -158,8 +173,8 @@
|
|
|
158
173
|
"scripts": {
|
|
159
174
|
"clean": "rm -rf tsconfig.tsbuildinfo ./dist",
|
|
160
175
|
"build": "pnpm run build:tsup",
|
|
161
|
-
"build:tsup": "tsup
|
|
162
|
-
"watch:tsup": "tsup ./src/
|
|
176
|
+
"build:tsup": "tsup src/index.ts src/constants/index.ts src/models/index.ts src/types/index.ts --format esm,cjs --clean --splitting --minify --treeshake --dts",
|
|
177
|
+
"watch:tsup": "tsup ./src/index.ts --format esm,cjs --clean --splitting --watch",
|
|
163
178
|
"watch:types": "tsc --watch",
|
|
164
179
|
"watch": "pnpm run clean & pnpm run watch:types & pnpm run watch:tsup",
|
|
165
180
|
"test": "pnpm test:typecheck && pnpm test:unit",
|
|
@@ -411,11 +411,11 @@ export const TEST_ADDRESSES: AddressesInterface = {
|
|
|
411
411
|
},
|
|
412
412
|
safsui: {
|
|
413
413
|
coinType:
|
|
414
|
-
'
|
|
414
|
+
'0xe66ae8fd59e37f78e355dafb130b7c167ca4ec8792a424031a1a1eac96244ada::scallop_af_sui::SCALLOP_AF_SUI',
|
|
415
415
|
treasury:
|
|
416
|
-
'
|
|
416
|
+
'0xc57357a64593aa54bc23d7936129119b86876a200107481578f304762217061a',
|
|
417
417
|
metaData:
|
|
418
|
-
'
|
|
418
|
+
'0x42179b69f82ea26e3763345ee0fb1cea8b1bd355168b3241ceb727ec82bb0688',
|
|
419
419
|
symbol: 'safSUI',
|
|
420
420
|
},
|
|
421
421
|
susdc: {
|
|
@@ -817,11 +817,11 @@ export const POOL_ADDRESSES = {
|
|
|
817
817
|
spoolReward:
|
|
818
818
|
'0x89255a2f86ed7fbfef35ab8b7be48cc7667015975be2685dd9a55a9a64baf76e',
|
|
819
819
|
sCoinType:
|
|
820
|
-
'
|
|
820
|
+
'0xe66ae8fd59e37f78e355dafb130b7c167ca4ec8792a424031a1a1eac96244ada::scallop_af_sui::SCALLOP_AF_SUI',
|
|
821
821
|
sCoinTreasury:
|
|
822
|
-
'
|
|
822
|
+
'0xc57357a64593aa54bc23d7936129119b86876a200107481578f304762217061a',
|
|
823
823
|
sCoinMetadataId:
|
|
824
|
-
'
|
|
824
|
+
'0x42179b69f82ea26e3763345ee0fb1cea8b1bd355168b3241ceb727ec82bb0688',
|
|
825
825
|
sCoinSymbol: 'safSUI',
|
|
826
826
|
sCoinName: 'safsui',
|
|
827
827
|
coinMetadataId:
|
package/src/index.ts
ADDED
package/src/models/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// export type * from './interface';
|
|
1
2
|
export { default as Scallop } from './scallop';
|
|
2
3
|
export { default as ScallopClient } from './scallopClient';
|
|
3
4
|
export { default as ScallopBuilder } from './scallopBuilder';
|
|
@@ -6,6 +7,6 @@ export { default as ScallopAxios } from './scallopAxios';
|
|
|
6
7
|
export { default as ScallopConstants } from './scallopConstants';
|
|
7
8
|
export { default as ScallopIndexer } from './scallopIndexer';
|
|
8
9
|
export { default as ScallopQuery } from './scallopQuery';
|
|
9
|
-
export { default as ScallopQueryClient } from '
|
|
10
|
+
export { default as ScallopQueryClient } from './scallopQueryClient';
|
|
10
11
|
export { default as ScallopUtils } from './scallopUtils';
|
|
11
12
|
export { default as ScallopSuiKit } from './scallopSuiKit';
|
package/src/models/interface.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import ScallopAddress from './scallopAddress';
|
|
2
|
-
import ScallopBuilder from './scallopBuilder';
|
|
3
|
-
import ScallopConstants from './scallopConstants';
|
|
4
|
-
import ScallopQuery from './scallopQuery';
|
|
5
|
-
import ScallopSuiKit from './scallopSuiKit';
|
|
6
|
-
import ScallopUtils from './scallopUtils';
|
|
1
|
+
import type { default as ScallopAddress } from './scallopAddress';
|
|
2
|
+
import type { default as ScallopBuilder } from './scallopBuilder';
|
|
3
|
+
import type { default as ScallopConstants } from './scallopConstants';
|
|
4
|
+
import type { default as ScallopQuery } from './scallopQuery';
|
|
5
|
+
import type { default as ScallopSuiKit } from './scallopSuiKit';
|
|
6
|
+
import type { default as ScallopUtils } from './scallopUtils';
|
|
7
7
|
|
|
8
8
|
interface ScallopBaseInterface {
|
|
9
9
|
scallopSuiKit: ScallopSuiKit;
|
|
@@ -12,8 +12,8 @@ import type {
|
|
|
12
12
|
SuiTxArg,
|
|
13
13
|
SuiVecTxArg,
|
|
14
14
|
} from '@scallop-io/sui-kit';
|
|
15
|
+
import type { ScallopTxBlock, SelectCoinReturnType } from 'src/types';
|
|
15
16
|
import { ScallopBuilderInterface } from './interface';
|
|
16
|
-
import { ScallopTxBlock, SelectCoinReturnType } from 'src/types/builder';
|
|
17
17
|
|
|
18
18
|
export type ScallopBuilderParams = {
|
|
19
19
|
query?: ScallopQuery;
|
package/dist/chunk-4GSK5DO7.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var client = require('@mysten/sui/client');
|
|
4
|
-
|
|
5
|
-
var s=86400,r=1460,a=126144e3,o=1e10,c=1e9;var i=["supra","switchboard","pyth"],p=["primary","secondary"],y=["pyth"],d=["afsui"],u={usdc:{primary:["pyth"],secondary:[]},sbeth:{primary:["pyth"],secondary:[]},sbusdt:{primary:["pyth"],secondary:[]},sbwbtc:{primary:["pyth"],secondary:[]},weth:{primary:["pyth"],secondary:[]},wbtc:{primary:["pyth"],secondary:[]},wusdc:{primary:["pyth"],secondary:[]},wusdt:{primary:["pyth"],secondary:[]},sui:{primary:["pyth"],secondary:[]},wapt:{primary:["pyth"],secondary:[]},wsol:{primary:["pyth"],secondary:[]},cetus:{primary:["pyth"],secondary:[]},afsui:{primary:["pyth"],secondary:[]},hasui:{primary:["pyth"],secondary:[]},vsui:{primary:["pyth"],secondary:[]},sca:{primary:["pyth"],secondary:[]},fud:{primary:["pyth"],secondary:[]},deep:{primary:["pyth"],secondary:[]},fdusd:{primary:["pyth"],secondary:[]},blub:{primary:["pyth"],secondary:[]},musd:{primary:["pyth"],secondary:[]},ns:{primary:["pyth"],secondary:[]},usdy:{primary:["pyth"],secondary:[]}};var l=!1,_=!1,O="0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA",h="0xc63072e7f5f4983a2efaf5bdba1480d5e7d74d57948e1c7cc436f8e22cbeb410";var A={api:{getAddresses:e=>["api","getAddresses",e],getWhiteList:()=>["api","getWhiteList"],getPoolAddresses:()=>["api","getPoolAddresses"],getMarket:()=>["api","getMarket"],getSpools:()=>["api","getSpools"],getBorrowIncentivePool:()=>["api","getBorrowIncentivePools"],getTotalValueLocked:()=>["api","getTotalValueLocked"]},rpc:{getInspectTxn:e=>["rpc","getInspectTxn",e],getObject:e=>["rpc","getObject",e],getObjects:e=>["rpc","getObjects",e],getOwnedObjects:e=>["rpc","getOwnedObjects",{...e,filter:JSON.stringify(e?.filter??void 0)}],getDynamicFields:e=>["rpc","getDynamicFields",e],getDynamicFieldObject:e=>["rpc","getDynamicFieldObject",e],getTotalVeScaTreasuryAmount:e=>["rpc","getTotalVeScaTreasuryAmount",{...e,refreshArgs:e?.refreshArgs?JSON.stringify(e?.refreshArgs):void 0,vescaAmountArgs:e?.vescaAmountArgs?JSON.stringify(e?.vescaAmountArgs):void 0}],getAllCoinBalances:e=>["rpc","getAllCoinBalances",e],getNormalizedMoveFunction:e=>["rpc","getNormalizedMoveCall",e]},oracle:{getPythLatestPriceFeeds:()=>["oracle","getPythPriceIds"]}};var R="https://sui.apis.scallop.io",T="https://sdk.api.scallop.io";var C={defaultOptions:{queries:{staleTime:5e3,gcTime:5e3}}};var L=[client.getFullnodeUrl("mainnet"),"https://sui-mainnet.public.blastapi.io","https://sui-mainnet-ca-2.cosmostation.io","https://sui-mainnet-eu-4.cosmostation.io","https://sui-mainnet-endpoint.blockvision.org","https://sui-rpc.publicnode.com","https://sui-mainnet-rpc.allthatnode.com","https://mainnet.suiet.app","https://mainnet.sui.rpcpool.com","https://sui1mainnet-rpc.chainode.tech","https://fullnode.mainnet.apis.scallop.io","https://sui-mainnet-us-2.cosmostation.io"];
|
|
6
|
-
|
|
7
|
-
exports.a = s;
|
|
8
|
-
exports.b = r;
|
|
9
|
-
exports.c = a;
|
|
10
|
-
exports.d = o;
|
|
11
|
-
exports.e = c;
|
|
12
|
-
exports.f = i;
|
|
13
|
-
exports.g = p;
|
|
14
|
-
exports.h = y;
|
|
15
|
-
exports.i = d;
|
|
16
|
-
exports.j = u;
|
|
17
|
-
exports.k = l;
|
|
18
|
-
exports.l = _;
|
|
19
|
-
exports.m = O;
|
|
20
|
-
exports.n = h;
|
|
21
|
-
exports.o = A;
|
|
22
|
-
exports.p = R;
|
|
23
|
-
exports.q = T;
|
|
24
|
-
exports.r = C;
|
|
25
|
-
exports.s = L;
|
package/dist/chunk-B4M6FI47.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { getFullnodeUrl } from '@mysten/sui/client';
|
|
2
|
-
|
|
3
|
-
var s=86400,r=1460,a=126144e3,o=1e10,c=1e9;var i=["supra","switchboard","pyth"],p=["primary","secondary"],y=["pyth"],d=["afsui"],u={usdc:{primary:["pyth"],secondary:[]},sbeth:{primary:["pyth"],secondary:[]},sbusdt:{primary:["pyth"],secondary:[]},sbwbtc:{primary:["pyth"],secondary:[]},weth:{primary:["pyth"],secondary:[]},wbtc:{primary:["pyth"],secondary:[]},wusdc:{primary:["pyth"],secondary:[]},wusdt:{primary:["pyth"],secondary:[]},sui:{primary:["pyth"],secondary:[]},wapt:{primary:["pyth"],secondary:[]},wsol:{primary:["pyth"],secondary:[]},cetus:{primary:["pyth"],secondary:[]},afsui:{primary:["pyth"],secondary:[]},hasui:{primary:["pyth"],secondary:[]},vsui:{primary:["pyth"],secondary:[]},sca:{primary:["pyth"],secondary:[]},fud:{primary:["pyth"],secondary:[]},deep:{primary:["pyth"],secondary:[]},fdusd:{primary:["pyth"],secondary:[]},blub:{primary:["pyth"],secondary:[]},musd:{primary:["pyth"],secondary:[]},ns:{primary:["pyth"],secondary:[]},usdy:{primary:["pyth"],secondary:[]}};var l=!1,_=!1,O="0x7016aae72cfc67f2fadf55769c0a7dd54291a583b63051a5ed71081cce836ac6::sca::SCA",h="0xc63072e7f5f4983a2efaf5bdba1480d5e7d74d57948e1c7cc436f8e22cbeb410";var A={api:{getAddresses:e=>["api","getAddresses",e],getWhiteList:()=>["api","getWhiteList"],getPoolAddresses:()=>["api","getPoolAddresses"],getMarket:()=>["api","getMarket"],getSpools:()=>["api","getSpools"],getBorrowIncentivePool:()=>["api","getBorrowIncentivePools"],getTotalValueLocked:()=>["api","getTotalValueLocked"]},rpc:{getInspectTxn:e=>["rpc","getInspectTxn",e],getObject:e=>["rpc","getObject",e],getObjects:e=>["rpc","getObjects",e],getOwnedObjects:e=>["rpc","getOwnedObjects",{...e,filter:JSON.stringify(e?.filter??void 0)}],getDynamicFields:e=>["rpc","getDynamicFields",e],getDynamicFieldObject:e=>["rpc","getDynamicFieldObject",e],getTotalVeScaTreasuryAmount:e=>["rpc","getTotalVeScaTreasuryAmount",{...e,refreshArgs:e?.refreshArgs?JSON.stringify(e?.refreshArgs):void 0,vescaAmountArgs:e?.vescaAmountArgs?JSON.stringify(e?.vescaAmountArgs):void 0}],getAllCoinBalances:e=>["rpc","getAllCoinBalances",e],getNormalizedMoveFunction:e=>["rpc","getNormalizedMoveCall",e]},oracle:{getPythLatestPriceFeeds:()=>["oracle","getPythPriceIds"]}};var R="https://sui.apis.scallop.io",T="https://sdk.api.scallop.io";var C={defaultOptions:{queries:{staleTime:5e3,gcTime:5e3}}};var L=[getFullnodeUrl("mainnet"),"https://sui-mainnet.public.blastapi.io","https://sui-mainnet-ca-2.cosmostation.io","https://sui-mainnet-eu-4.cosmostation.io","https://sui-mainnet-endpoint.blockvision.org","https://sui-rpc.publicnode.com","https://sui-mainnet-rpc.allthatnode.com","https://mainnet.suiet.app","https://mainnet.sui.rpcpool.com","https://sui1mainnet-rpc.chainode.tech","https://fullnode.mainnet.apis.scallop.io","https://sui-mainnet-us-2.cosmostation.io"];
|
|
4
|
-
|
|
5
|
-
export { s as a, r as b, a as c, o as d, c as e, i as f, p as g, y as h, d as i, u as j, l as k, _ as l, O as m, h as n, A as o, R as p, T as q, C as r, L as s };
|