@scallop-io/sui-scallop-sdk 0.46.40 → 0.46.42
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/builders/loyaltyProgramBuilder.d.ts +1 -1
- package/dist/builders/sCoinBuilder.d.ts +4 -0
- package/dist/constants/common.d.ts +3 -1
- package/dist/constants/enum.d.ts +12 -10
- package/dist/index.js +660 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +658 -92
- package/dist/index.mjs.map +1 -1
- package/dist/models/scallopBuilder.d.ts +16 -1
- package/dist/models/scallopClient.d.ts +5 -0
- package/dist/models/scallopQuery.d.ts +21 -2
- package/dist/models/scallopUtils.d.ts +32 -2
- package/dist/queries/portfolioQuery.d.ts +1 -1
- package/dist/queries/sCoinQuery.d.ts +27 -0
- package/dist/test.d.ts +1 -0
- package/dist/types/address.d.ts +8 -1
- package/dist/types/builder/core.d.ts +12 -4
- package/dist/types/builder/index.d.ts +6 -1
- package/dist/types/builder/sCoin.d.ts +37 -0
- package/dist/types/builder/spool.d.ts +2 -1
- package/dist/types/constant/common.d.ts +3 -2
- package/dist/types/constant/enum.d.ts +13 -1
- package/dist/types/query/core.d.ts +2 -1
- package/dist/types/query/index.d.ts +1 -0
- package/dist/types/query/portfolio.d.ts +1 -0
- package/dist/types/query/sCoin.d.ts +1 -0
- package/package.json +3 -3
- package/src/builders/coreBuilder.ts +72 -17
- package/src/builders/index.ts +5 -1
- package/src/builders/loyaltyProgramBuilder.ts +1 -1
- package/src/builders/referralBuilder.ts +1 -1
- package/src/builders/sCoinBuilder.ts +119 -0
- package/src/builders/spoolBuilder.ts +1 -1
- package/src/builders/vescaBuilder.ts +3 -3
- package/src/constants/common.ts +19 -5
- package/src/constants/enum.ts +98 -20
- package/src/constants/testAddress.ts +115 -21
- package/src/models/scallopAddress.ts +44 -3
- package/src/models/scallopBuilder.ts +43 -7
- package/src/models/scallopCache.ts +32 -4
- package/src/models/scallopClient.ts +121 -0
- package/src/models/scallopQuery.ts +46 -0
- package/src/models/scallopUtils.ts +56 -2
- package/src/queries/coreQuery.ts +10 -4
- package/src/queries/portfolioQuery.ts +26 -4
- package/src/queries/sCoinQuery.ts +94 -0
- package/src/queries/vescaQuery.ts +0 -1
- package/src/test.ts +19 -0
- package/src/types/address.ts +13 -0
- package/src/types/builder/core.ts +19 -4
- package/src/types/builder/index.ts +11 -3
- package/src/types/builder/sCoin.ts +61 -0
- package/src/types/builder/spool.ts +2 -0
- package/src/types/constant/common.ts +4 -1
- package/src/types/constant/enum.ts +17 -0
- package/src/types/query/core.ts +3 -0
- package/src/types/query/index.ts +1 -0
- package/src/types/query/portfolio.ts +1 -0
- package/src/types/query/sCoin.ts +1 -0
- package/src/utils/builder.ts +1 -1
- package/src/utils/util.ts +13 -17
|
@@ -3,7 +3,7 @@ import { SuiTxBlock as SuiKitTxBlock } from '@scallop-io/sui-kit';
|
|
|
3
3
|
import { ScallopBuilder } from 'src/models';
|
|
4
4
|
import { LoyaltyProgramTxBlock, ScallopTxBlock } from 'src/types';
|
|
5
5
|
/**
|
|
6
|
-
* Create an enhanced transaction block instance for interaction with
|
|
6
|
+
* Create an enhanced transaction block instance for interaction with loyalty program modules of the Scallop contract.
|
|
7
7
|
*
|
|
8
8
|
* @param builder - Scallop builder instance.
|
|
9
9
|
* @param initTxBlock - Scallop txBlock, txBlock created by SuiKit, or original transaction block.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TransactionBlock, SuiTxBlock as SuiKitTxBlock } from '@scallop-io/sui-kit';
|
|
2
|
+
import { ScallopBuilder } from 'src/models';
|
|
3
|
+
import { SCoinTxBlock, ScallopTxBlock } from 'src/types';
|
|
4
|
+
export declare const newSCoinTxBlock: (builder: ScallopBuilder, initTxBlock?: ScallopTxBlock | SuiKitTxBlock | TransactionBlock) => SCoinTxBlock;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const API_BASE_URL = "https://sui.
|
|
1
|
+
export declare const API_BASE_URL = "https://sui.apis.scallop.io";
|
|
2
2
|
export declare const SDK_API_BASE_URL = "https://sdk.api.scallop.io";
|
|
3
3
|
export declare const IS_VE_SCA_TEST = false;
|
|
4
|
+
export declare const USE_TEST_ADDRESS = false;
|
|
4
5
|
export declare const ADDRESSES_ID: "65fb07c39c845425d71d7b18" | "664dfe22898c36c159e28bc8";
|
|
5
6
|
export declare const PROTOCOL_OBJECT_ID: "0xc9f859f98ca352a11b97a038c4b4162bee437b8df8caa047990fe9cb03d4f778" | "0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf";
|
|
6
7
|
export declare const BORROW_FEE_PROTOCOL_ID: "0xc9f859f98ca352a11b97a038c4b4162bee437b8df8caa047990fe9cb03d4f778" | "0xc38f849e81cfe46d4e4320f508ea7dda42934a329d5a6571bb4c3cb6ea63f5da";
|
|
@@ -9,6 +10,7 @@ export declare const OLD_BORROW_INCENTIVE_PROTOCOL_ID: "0xc63072e7f5f4983a2efaf5
|
|
|
9
10
|
export declare const SUPPORT_POOLS: readonly ["eth", "btc", "usdc", "usdt", "sui", "apt", "sol", "cetus", "afsui", "hasui", "vsui", "sca"];
|
|
10
11
|
export declare const SUPPORT_COLLATERALS: readonly ["eth", "btc", "usdc", "usdt", "sui", "apt", "sol", "cetus", "afsui", "hasui", "vsui", "sca"];
|
|
11
12
|
export declare const SUPPORT_SPOOLS: readonly ["seth", "ssui", "susdc", "susdt", "scetus", "safsui", "shasui", "svsui"];
|
|
13
|
+
export declare const SUPPORT_SCOIN: readonly ["ssui", "susdc", "susdt", "safsui", "shasui", "svsui", "seth", "ssca", "scetus"];
|
|
12
14
|
export declare const SUPPORT_SPOOLS_REWARDS: readonly ["sui"];
|
|
13
15
|
export declare const SUPPORT_BORROW_INCENTIVE_POOLS: readonly ["sui", "usdc", "usdt", "afsui", "hasui", "vsui", "eth", "sca"];
|
|
14
16
|
export declare const SUPPORT_BORROW_INCENTIVE_REWARDS: readonly ["sui", "sca"];
|
package/dist/constants/enum.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const coinDecimals: SupportCoinDecimals;
|
|
3
|
-
export declare const assetCoins: AssetCoins;
|
|
4
|
-
export declare const marketCoins: MarketCoins;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
1
|
+
import type * as types from '../types';
|
|
2
|
+
export declare const coinDecimals: types.SupportCoinDecimals;
|
|
3
|
+
export declare const assetCoins: types.AssetCoins;
|
|
4
|
+
export declare const marketCoins: types.MarketCoins;
|
|
5
|
+
export declare const sCoins: types.SCoins;
|
|
6
|
+
export declare const stakeMarketCoins: types.StakeMarketCoins;
|
|
7
|
+
export declare const spoolRewardCoins: types.StakeRewardCoins;
|
|
8
|
+
export declare const borrowIncentiveRewardCoins: types.BorrowIncentiveRewardCoins;
|
|
9
|
+
export declare const coinIds: types.AssetCoinIds;
|
|
10
|
+
export declare const wormholeCoinIds: types.WormholeCoinIds;
|
|
11
|
+
export declare const voloCoinIds: types.VoloCoinIds;
|
|
12
|
+
export declare const sCoinIds: types.SCoinIds;
|