@scallop-io/sui-scallop-sdk 2.1.2-merge-split-ve-sca-alpha.1 → 2.1.3-merge-split-ve-sca-alpha.1
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 +179 -7
- package/dist/index.d.ts +179 -7
- package/dist/index.js +21 -19
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/src/builders/loyaltyProgramBuilder.ts +41 -8
- package/src/constants/testAddress.ts +410 -11
- package/src/models/scallopAddress.ts +6 -0
- package/src/models/scallopQuery.ts +11 -1
- package/src/models/scallopSuiKit.ts +3 -0
- package/src/queries/loyaltyProgramQuery.ts +82 -1
- package/src/types/address.ts +8 -0
- package/src/types/builder/loyaltyProgram.ts +2 -6
- package/src/types/query/loyaltyProgram.ts +6 -0
package/dist/index.d.mts
CHANGED
|
@@ -860,10 +860,16 @@ declare class ScallopQuery implements ScallopQueryInterface {
|
|
|
860
860
|
getBindedVeScaKey(obligationId: string): Promise<string | null>;
|
|
861
861
|
/**
|
|
862
862
|
* Get user's veSCA loyalty program informations
|
|
863
|
-
* @param
|
|
863
|
+
* @param veScaKey
|
|
864
864
|
* @returns Loyalty program information
|
|
865
865
|
*/
|
|
866
866
|
getLoyaltyProgramInfos(veScaKey?: string | SuiObjectData): Promise<LoyaltyProgramInfo | null>;
|
|
867
|
+
/**
|
|
868
|
+
* Get user's veSCA rewards informations from loyalty program
|
|
869
|
+
* @param veScaKey
|
|
870
|
+
* @returns Loyalty program information
|
|
871
|
+
*/
|
|
872
|
+
getVeScaLoyaltyProgramInfos(veScaKey?: string | SuiObjectData): Promise<VeScaLoyaltyProgramInfo | null>;
|
|
867
873
|
/**
|
|
868
874
|
* Get total supply of sCoin
|
|
869
875
|
* @param sCoinName - Supported sCoin name
|
|
@@ -1907,16 +1913,13 @@ type ReferralQuickMethods = {
|
|
|
1907
1913
|
type SuiTxBlockWithReferralNormalMethods = SuiTxBlock & ReferralNormalMethods;
|
|
1908
1914
|
type ReferralTxBlock = SuiTxBlockWithReferralNormalMethods & ReferralQuickMethods;
|
|
1909
1915
|
|
|
1910
|
-
type LoyaltyProgramIds = {
|
|
1911
|
-
loyaltyProgramPkgId: string;
|
|
1912
|
-
rewardPool: string;
|
|
1913
|
-
userRewardTableId: string;
|
|
1914
|
-
};
|
|
1915
1916
|
type LoyaltyProgramNormalMethods = {
|
|
1916
1917
|
claimLoyaltyRevenue: (veScaKey: SuiObjectArg) => TransactionResult$1;
|
|
1918
|
+
claimVeScaLoyaltyReward: (veScaKey: SuiObjectArg) => TransactionResult$1;
|
|
1917
1919
|
};
|
|
1918
1920
|
type LoyaltyProgramQuickMethods = {
|
|
1919
1921
|
claimLoyaltyRevenueQuick: (veScaKey?: SuiObjectArg) => Promise<void>;
|
|
1922
|
+
claimVeScaLoyaltyRewardQuick: (veScaKey?: SuiObjectArg) => Promise<void>;
|
|
1920
1923
|
};
|
|
1921
1924
|
type SuiTxBlockWithLoyaltyProgramNormalMethods = SuiTxBlock & LoyaltyProgramNormalMethods;
|
|
1922
1925
|
type LoyaltyProgramTxBlock = SuiTxBlockWithLoyaltyProgramNormalMethods & LoyaltyProgramQuickMethods;
|
|
@@ -2589,6 +2592,11 @@ type LoyaltyProgramInfo = {
|
|
|
2589
2592
|
totalPoolReward: number;
|
|
2590
2593
|
isClaimEnabled: boolean;
|
|
2591
2594
|
};
|
|
2595
|
+
type VeScaLoyaltyProgramInfo = {
|
|
2596
|
+
pendingVeScaReward: number;
|
|
2597
|
+
totalPoolReward: number;
|
|
2598
|
+
isClaimEnabled: boolean;
|
|
2599
|
+
};
|
|
2592
2600
|
|
|
2593
2601
|
type OptionalKeys$2<T> = {
|
|
2594
2602
|
[K in keyof T]?: T[K];
|
|
@@ -2976,10 +2984,18 @@ interface AddressesInterface {
|
|
|
2976
2984
|
};
|
|
2977
2985
|
loyaltyProgram: {
|
|
2978
2986
|
id: string;
|
|
2987
|
+
adminCap?: string;
|
|
2979
2988
|
object: string;
|
|
2980
2989
|
rewardPool: string;
|
|
2981
2990
|
userRewardTableId: string;
|
|
2982
2991
|
};
|
|
2992
|
+
veScaLoyaltyProgram: {
|
|
2993
|
+
id: string;
|
|
2994
|
+
adminCap?: string;
|
|
2995
|
+
object: string;
|
|
2996
|
+
veScaRewardPool: string;
|
|
2997
|
+
veScaRewardTableId: string;
|
|
2998
|
+
};
|
|
2983
2999
|
scoin: {
|
|
2984
3000
|
id: string;
|
|
2985
3001
|
coins: Partial<Record<string, {
|
|
@@ -3002,6 +3018,162 @@ type OptionalKeys<T> = {
|
|
|
3002
3018
|
type CoinPrices = OptionalKeys<Record<string, number>>;
|
|
3003
3019
|
|
|
3004
3020
|
declare const TEST_ADDRESSES: AddressesInterface;
|
|
3021
|
+
declare const WHITELIST: {
|
|
3022
|
+
lending: Set<string>;
|
|
3023
|
+
collateral: Set<string>;
|
|
3024
|
+
borrowing: Set<string>;
|
|
3025
|
+
packages: Set<string>;
|
|
3026
|
+
spool: Set<string>;
|
|
3027
|
+
scoin: Set<string>;
|
|
3028
|
+
suiBridge: Set<string>;
|
|
3029
|
+
wormhole: Set<string>;
|
|
3030
|
+
oracles: Set<string>;
|
|
3031
|
+
pythEndpoints: Set<string>;
|
|
3032
|
+
deprecated: Set<string>;
|
|
3033
|
+
borrowIncentiveRewards: Set<string>;
|
|
3034
|
+
rewardsAsPoint: Set<string>;
|
|
3035
|
+
emerging: Set<string>;
|
|
3036
|
+
};
|
|
3037
|
+
declare const POOL_ADDRESSES: {
|
|
3038
|
+
usdc: {
|
|
3039
|
+
coinName: string;
|
|
3040
|
+
symbol: string;
|
|
3041
|
+
lendingPoolAddress: string;
|
|
3042
|
+
collateralPoolAddress: string;
|
|
3043
|
+
borrowDynamic: string;
|
|
3044
|
+
interestModel: string;
|
|
3045
|
+
riskModel: string;
|
|
3046
|
+
borrowFeeKey: string;
|
|
3047
|
+
supplyLimitKey: string;
|
|
3048
|
+
borrowLimitKey: string;
|
|
3049
|
+
isolatedAssetKey: string;
|
|
3050
|
+
isIsolated: boolean;
|
|
3051
|
+
spool: string;
|
|
3052
|
+
spoolReward: string;
|
|
3053
|
+
sCoinType: string;
|
|
3054
|
+
sCoinTreasury: string;
|
|
3055
|
+
sCoinMetadataId: string;
|
|
3056
|
+
sCoinSymbol: string;
|
|
3057
|
+
sCoinName: string;
|
|
3058
|
+
coinMetadataId: string;
|
|
3059
|
+
coinType: string;
|
|
3060
|
+
spoolName: string;
|
|
3061
|
+
decimals: number;
|
|
3062
|
+
pythFeed: string;
|
|
3063
|
+
pythFeedObjectId: string;
|
|
3064
|
+
flashloanFeeObject: string;
|
|
3065
|
+
};
|
|
3066
|
+
sui: {
|
|
3067
|
+
coinName: string;
|
|
3068
|
+
symbol: string;
|
|
3069
|
+
lendingPoolAddress: string;
|
|
3070
|
+
collateralPoolAddress: string;
|
|
3071
|
+
borrowDynamic: string;
|
|
3072
|
+
interestModel: string;
|
|
3073
|
+
riskModel: string;
|
|
3074
|
+
borrowFeeKey: string;
|
|
3075
|
+
supplyLimitKey: string;
|
|
3076
|
+
borrowLimitKey: string;
|
|
3077
|
+
isolatedAssetKey: string;
|
|
3078
|
+
isIsolated: boolean;
|
|
3079
|
+
spool: string;
|
|
3080
|
+
spoolReward: string;
|
|
3081
|
+
sCoinType: string;
|
|
3082
|
+
sCoinTreasury: string;
|
|
3083
|
+
sCoinMetadataId: string;
|
|
3084
|
+
sCoinSymbol: string;
|
|
3085
|
+
sCoinName: string;
|
|
3086
|
+
coinMetadataId: string;
|
|
3087
|
+
coinType: string;
|
|
3088
|
+
spoolName: string;
|
|
3089
|
+
decimals: number;
|
|
3090
|
+
pythFeed: string;
|
|
3091
|
+
pythFeedObjectId: string;
|
|
3092
|
+
flashloanFeeObject: string;
|
|
3093
|
+
};
|
|
3094
|
+
sca: {
|
|
3095
|
+
coinName: string;
|
|
3096
|
+
symbol: string;
|
|
3097
|
+
lendingPoolAddress: string;
|
|
3098
|
+
collateralPoolAddress: string;
|
|
3099
|
+
borrowDynamic: string;
|
|
3100
|
+
interestModel: string;
|
|
3101
|
+
riskModel: string;
|
|
3102
|
+
borrowFeeKey: string;
|
|
3103
|
+
supplyLimitKey: string;
|
|
3104
|
+
borrowLimitKey: string;
|
|
3105
|
+
isolatedAssetKey: string;
|
|
3106
|
+
isIsolated: boolean;
|
|
3107
|
+
spool: string;
|
|
3108
|
+
spoolReward: string;
|
|
3109
|
+
sCoinType: string;
|
|
3110
|
+
sCoinTreasury: string;
|
|
3111
|
+
sCoinMetadataId: string;
|
|
3112
|
+
sCoinSymbol: string;
|
|
3113
|
+
sCoinName: string;
|
|
3114
|
+
coinMetadataId: string;
|
|
3115
|
+
coinType: string;
|
|
3116
|
+
spoolName: string;
|
|
3117
|
+
decimals: number;
|
|
3118
|
+
pythFeed: string;
|
|
3119
|
+
pythFeedObjectId: string;
|
|
3120
|
+
flashloanFeeObject: string;
|
|
3121
|
+
};
|
|
3122
|
+
fud: {
|
|
3123
|
+
coinName: string;
|
|
3124
|
+
symbol: string;
|
|
3125
|
+
lendingPoolAddress: string;
|
|
3126
|
+
collateralPoolAddress: string;
|
|
3127
|
+
borrowDynamic: string;
|
|
3128
|
+
interestModel: string;
|
|
3129
|
+
borrowFeeKey: string;
|
|
3130
|
+
supplyLimitKey: string;
|
|
3131
|
+
borrowLimitKey: string;
|
|
3132
|
+
isolatedAssetKey: string;
|
|
3133
|
+
isIsolated: boolean;
|
|
3134
|
+
spool: string;
|
|
3135
|
+
spoolReward: string;
|
|
3136
|
+
sCoinType: string;
|
|
3137
|
+
sCoinTreasury: string;
|
|
3138
|
+
sCoinMetadataId: string;
|
|
3139
|
+
sCoinSymbol: string;
|
|
3140
|
+
sCoinName: string;
|
|
3141
|
+
coinMetadataId: string;
|
|
3142
|
+
coinType: string;
|
|
3143
|
+
spoolName: string;
|
|
3144
|
+
decimals: number;
|
|
3145
|
+
pythFeed: string;
|
|
3146
|
+
pythFeedObjectId: string;
|
|
3147
|
+
flashloanFeeObject: string;
|
|
3148
|
+
};
|
|
3149
|
+
deep: {
|
|
3150
|
+
coinName: string;
|
|
3151
|
+
symbol: string;
|
|
3152
|
+
lendingPoolAddress: string;
|
|
3153
|
+
collateralPoolAddress: string;
|
|
3154
|
+
borrowDynamic: string;
|
|
3155
|
+
interestModel: string;
|
|
3156
|
+
borrowFeeKey: string;
|
|
3157
|
+
supplyLimitKey: string;
|
|
3158
|
+
borrowLimitKey: string;
|
|
3159
|
+
isolatedAssetKey: string;
|
|
3160
|
+
isIsolated: boolean;
|
|
3161
|
+
spool: string;
|
|
3162
|
+
spoolReward: string;
|
|
3163
|
+
sCoinType: string;
|
|
3164
|
+
sCoinTreasury: string;
|
|
3165
|
+
sCoinMetadataId: string;
|
|
3166
|
+
sCoinSymbol: string;
|
|
3167
|
+
sCoinName: string;
|
|
3168
|
+
coinMetadataId: string;
|
|
3169
|
+
coinType: string;
|
|
3170
|
+
spoolName: string;
|
|
3171
|
+
decimals: number;
|
|
3172
|
+
pythFeed: string;
|
|
3173
|
+
pythFeedObjectId: string;
|
|
3174
|
+
flashloanFeeObject: string;
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3005
3177
|
|
|
3006
3178
|
declare const UNLOCK_ROUND_DURATION: number;
|
|
3007
3179
|
declare const MAX_LOCK_ROUNDS: 1460;
|
|
@@ -3011,4 +3183,4 @@ declare const MIN_TOP_UP_AMOUNT: 1000000000;
|
|
|
3011
3183
|
|
|
3012
3184
|
declare const xOracleList: xOracleListType;
|
|
3013
3185
|
|
|
3014
|
-
export { API_BASE_URL, type AddressStringPath, type AddressesInterface, type AssetCoinIds, type AssetCoins, type BalanceSheet, type BaseScallopTxBlock, type BorrowDynamic, type BorrowFee, type BorrowIncentiveAccountKey, type BorrowIncentiveAccounts, type BorrowIncentiveAccountsQueryInterface, type BorrowIncentiveIds, type BorrowIncentiveNormalMethods, type BorrowIncentivePool, type BorrowIncentivePoolPoints, type BorrowIncentivePools, type BorrowIncentivePoolsQueryInterface, type BorrowIncentiveQuickMethods, type BorrowIncentiveRewardCoins, type BorrowIncentiveTxBlock, type CalculatedBorrowIncentivePoolPointData, type CalculatedMarketCollateralData, type CalculatedMarketPoolData, type CalculatedSpoolData, type CalculatedSpoolRewardPoolData, type CoinAmounts, type CoinPrices, type CoinWrappedType, type Coins, type CollateralStat, type CoreIds, type CoreNormalMethods, type CoreQuickMethods, type CoreTxBlock, DEFAULT_CACHE_OPTIONS, type GenerateBorrowIncentiveNormalMethod, type GenerateBorrowIncentiveQuickMethod, type GenerateCoreNormalMethod, type GenerateCoreQuickMethod, type GenerateLoyaltyProgramNormalMethod, type GenerateLoyaltyProgramQuickMethod, type GenerateSCoinNormalMethod, type GenerateSCoinQuickMethod, type GenerateSpoolNormalMethod, type GenerateSpoolQuickMethod, type GenerateVeScaNormalMethod, type GenerateVeScaQuickMethod, IS_VE_SCA_TEST, type InterestModel, type Lending, type Lendings, type
|
|
3186
|
+
export { API_BASE_URL, type AddressStringPath, type AddressesInterface, type AssetCoinIds, type AssetCoins, type BalanceSheet, type BaseScallopTxBlock, type BorrowDynamic, type BorrowFee, type BorrowIncentiveAccountKey, type BorrowIncentiveAccounts, type BorrowIncentiveAccountsQueryInterface, type BorrowIncentiveIds, type BorrowIncentiveNormalMethods, type BorrowIncentivePool, type BorrowIncentivePoolPoints, type BorrowIncentivePools, type BorrowIncentivePoolsQueryInterface, type BorrowIncentiveQuickMethods, type BorrowIncentiveRewardCoins, type BorrowIncentiveTxBlock, type CalculatedBorrowIncentivePoolPointData, type CalculatedMarketCollateralData, type CalculatedMarketPoolData, type CalculatedSpoolData, type CalculatedSpoolRewardPoolData, type CoinAmounts, type CoinPrices, type CoinWrappedType, type Coins, type CollateralStat, type CoreIds, type CoreNormalMethods, type CoreQuickMethods, type CoreTxBlock, DEFAULT_CACHE_OPTIONS, type GenerateBorrowIncentiveNormalMethod, type GenerateBorrowIncentiveQuickMethod, type GenerateCoreNormalMethod, type GenerateCoreQuickMethod, type GenerateLoyaltyProgramNormalMethod, type GenerateLoyaltyProgramQuickMethod, type GenerateSCoinNormalMethod, type GenerateSCoinQuickMethod, type GenerateSpoolNormalMethod, type GenerateSpoolQuickMethod, type GenerateVeScaNormalMethod, type GenerateVeScaQuickMethod, IS_VE_SCA_TEST, type InterestModel, type Lending, type Lendings, type LoyaltyProgramInfo, type LoyaltyProgramNormalMethods, type LoyaltyProgramQuickMethods, type LoyaltyProgramTxBlock, MAX_LOCK_DURATION, MAX_LOCK_ROUNDS, MIN_INITIAL_LOCK_AMOUNT, MIN_TOP_UP_AMOUNT, type Market, type MarketCoinAmounts, type MarketCoins, type MarketCollateral, type MarketCollaterals, type MarketPool, type MarketPools, type MarketQueryInterface, type NestedResult, OLD_BORROW_INCENTIVE_PROTOCOL_ID, type Obligation, type ObligationAccount, type ObligationAccounts, type ObligationBorrowIncentive, type ObligationBorrowIncentiveReward, type ObligationCollateral, type ObligationDebt, type ObligationQueryInterface, type OptionalKeys, type OriginBorrowIncentiveAccountData, type OriginBorrowIncentiveAccountPoolData, type OriginBorrowIncentivePoolData, type OriginBorrowIncentivePoolPointData, type OriginMarketCollateralData, type OriginMarketPoolData, type OriginSpoolData, type OriginSpoolRewardPoolData, POOL_ADDRESSES, type ParsedBorrowIncentiveAccountData, type ParsedBorrowIncentiveAccountPoolData, type ParsedBorrowIncentivePoolData, type ParsedBorrowIncentivePoolPointData, type ParsedMarketCollateralData, type ParsedMarketPoolData, type ParsedSpoolData, type ParsedSpoolRewardPoolData, type PoolAddress, type QuickMethodReturnType, RPC_PROVIDERS, type RiskModel, SCA_COIN_TYPE, type SCoinAmounts, type SCoinConverterTreasury, type SCoinIds, type SCoinTreasuryCaps, type SCoinTxBlock, type SCoins, SDK_API_BASE_URL, Scallop, ScallopAddress, ScallopBuilder, ScallopClient, ScallopConstants, ScallopIndexer, ScallopQuery, ScallopSuiKit, type ScallopTxBlock, ScallopUtils, type SelectCoinReturnType, type Spool, type SpoolData, type SpoolIds, type SpoolNormalMethods, type SpoolQuickMethods, type SpoolRewardPool, type SpoolTxBlock, type Spools, type StakeAccount, type StakeAccounts, type StakeMarketCoins, type StakePool, type StakePools, type StakeRewardCoins, type StakeRewardPool, type StakeRewardPools, type SuiBridgeCoins, type SuiBridgedCoinPackageIds, type SuiTxBlockWithBorrowIncentiveNormalMethods, type SuiTxBlockWithCoreNormalMethods, type SuiTxBlockWithLoyaltyProgramNormalMethods, type SuiTxBlockWithSCoin, type SuiTxBlockWithSCoinNormalMethods, type SuiTxBlockWithSpool, type SuiTxBlockWithSpoolNormalMethods, type SuiTxBlockWithVeScaNormalMethods, type SupportOracleType, TEST_ADDRESSES, type TotalValueLocked, UNLOCK_ROUND_DURATION, USE_TEST_ADDRESS, type VeScaLoyaltyProgramInfo, type VeScaNormalMethods, type VeScaQuickMethods, type VeScaTreasuryFields, type VeScaTreasuryInfo, type VeScaTxBlock, type Vesca, type VoloCoinIds, WHITELIST, type Whitelist, type WormholeCoinIds, _SUPPORT_ORACLES, queryKeys, type sCoinBalance, type sCoinNormalMethods, type sCoinPkgIds, type sCoinQuickMethods, xOracleList, type xOracleListType, type xOracleRuleType, type xOracleRules };
|
package/dist/index.d.ts
CHANGED
|
@@ -860,10 +860,16 @@ declare class ScallopQuery implements ScallopQueryInterface {
|
|
|
860
860
|
getBindedVeScaKey(obligationId: string): Promise<string | null>;
|
|
861
861
|
/**
|
|
862
862
|
* Get user's veSCA loyalty program informations
|
|
863
|
-
* @param
|
|
863
|
+
* @param veScaKey
|
|
864
864
|
* @returns Loyalty program information
|
|
865
865
|
*/
|
|
866
866
|
getLoyaltyProgramInfos(veScaKey?: string | SuiObjectData): Promise<LoyaltyProgramInfo | null>;
|
|
867
|
+
/**
|
|
868
|
+
* Get user's veSCA rewards informations from loyalty program
|
|
869
|
+
* @param veScaKey
|
|
870
|
+
* @returns Loyalty program information
|
|
871
|
+
*/
|
|
872
|
+
getVeScaLoyaltyProgramInfos(veScaKey?: string | SuiObjectData): Promise<VeScaLoyaltyProgramInfo | null>;
|
|
867
873
|
/**
|
|
868
874
|
* Get total supply of sCoin
|
|
869
875
|
* @param sCoinName - Supported sCoin name
|
|
@@ -1907,16 +1913,13 @@ type ReferralQuickMethods = {
|
|
|
1907
1913
|
type SuiTxBlockWithReferralNormalMethods = SuiTxBlock & ReferralNormalMethods;
|
|
1908
1914
|
type ReferralTxBlock = SuiTxBlockWithReferralNormalMethods & ReferralQuickMethods;
|
|
1909
1915
|
|
|
1910
|
-
type LoyaltyProgramIds = {
|
|
1911
|
-
loyaltyProgramPkgId: string;
|
|
1912
|
-
rewardPool: string;
|
|
1913
|
-
userRewardTableId: string;
|
|
1914
|
-
};
|
|
1915
1916
|
type LoyaltyProgramNormalMethods = {
|
|
1916
1917
|
claimLoyaltyRevenue: (veScaKey: SuiObjectArg) => TransactionResult$1;
|
|
1918
|
+
claimVeScaLoyaltyReward: (veScaKey: SuiObjectArg) => TransactionResult$1;
|
|
1917
1919
|
};
|
|
1918
1920
|
type LoyaltyProgramQuickMethods = {
|
|
1919
1921
|
claimLoyaltyRevenueQuick: (veScaKey?: SuiObjectArg) => Promise<void>;
|
|
1922
|
+
claimVeScaLoyaltyRewardQuick: (veScaKey?: SuiObjectArg) => Promise<void>;
|
|
1920
1923
|
};
|
|
1921
1924
|
type SuiTxBlockWithLoyaltyProgramNormalMethods = SuiTxBlock & LoyaltyProgramNormalMethods;
|
|
1922
1925
|
type LoyaltyProgramTxBlock = SuiTxBlockWithLoyaltyProgramNormalMethods & LoyaltyProgramQuickMethods;
|
|
@@ -2589,6 +2592,11 @@ type LoyaltyProgramInfo = {
|
|
|
2589
2592
|
totalPoolReward: number;
|
|
2590
2593
|
isClaimEnabled: boolean;
|
|
2591
2594
|
};
|
|
2595
|
+
type VeScaLoyaltyProgramInfo = {
|
|
2596
|
+
pendingVeScaReward: number;
|
|
2597
|
+
totalPoolReward: number;
|
|
2598
|
+
isClaimEnabled: boolean;
|
|
2599
|
+
};
|
|
2592
2600
|
|
|
2593
2601
|
type OptionalKeys$2<T> = {
|
|
2594
2602
|
[K in keyof T]?: T[K];
|
|
@@ -2976,10 +2984,18 @@ interface AddressesInterface {
|
|
|
2976
2984
|
};
|
|
2977
2985
|
loyaltyProgram: {
|
|
2978
2986
|
id: string;
|
|
2987
|
+
adminCap?: string;
|
|
2979
2988
|
object: string;
|
|
2980
2989
|
rewardPool: string;
|
|
2981
2990
|
userRewardTableId: string;
|
|
2982
2991
|
};
|
|
2992
|
+
veScaLoyaltyProgram: {
|
|
2993
|
+
id: string;
|
|
2994
|
+
adminCap?: string;
|
|
2995
|
+
object: string;
|
|
2996
|
+
veScaRewardPool: string;
|
|
2997
|
+
veScaRewardTableId: string;
|
|
2998
|
+
};
|
|
2983
2999
|
scoin: {
|
|
2984
3000
|
id: string;
|
|
2985
3001
|
coins: Partial<Record<string, {
|
|
@@ -3002,6 +3018,162 @@ type OptionalKeys<T> = {
|
|
|
3002
3018
|
type CoinPrices = OptionalKeys<Record<string, number>>;
|
|
3003
3019
|
|
|
3004
3020
|
declare const TEST_ADDRESSES: AddressesInterface;
|
|
3021
|
+
declare const WHITELIST: {
|
|
3022
|
+
lending: Set<string>;
|
|
3023
|
+
collateral: Set<string>;
|
|
3024
|
+
borrowing: Set<string>;
|
|
3025
|
+
packages: Set<string>;
|
|
3026
|
+
spool: Set<string>;
|
|
3027
|
+
scoin: Set<string>;
|
|
3028
|
+
suiBridge: Set<string>;
|
|
3029
|
+
wormhole: Set<string>;
|
|
3030
|
+
oracles: Set<string>;
|
|
3031
|
+
pythEndpoints: Set<string>;
|
|
3032
|
+
deprecated: Set<string>;
|
|
3033
|
+
borrowIncentiveRewards: Set<string>;
|
|
3034
|
+
rewardsAsPoint: Set<string>;
|
|
3035
|
+
emerging: Set<string>;
|
|
3036
|
+
};
|
|
3037
|
+
declare const POOL_ADDRESSES: {
|
|
3038
|
+
usdc: {
|
|
3039
|
+
coinName: string;
|
|
3040
|
+
symbol: string;
|
|
3041
|
+
lendingPoolAddress: string;
|
|
3042
|
+
collateralPoolAddress: string;
|
|
3043
|
+
borrowDynamic: string;
|
|
3044
|
+
interestModel: string;
|
|
3045
|
+
riskModel: string;
|
|
3046
|
+
borrowFeeKey: string;
|
|
3047
|
+
supplyLimitKey: string;
|
|
3048
|
+
borrowLimitKey: string;
|
|
3049
|
+
isolatedAssetKey: string;
|
|
3050
|
+
isIsolated: boolean;
|
|
3051
|
+
spool: string;
|
|
3052
|
+
spoolReward: string;
|
|
3053
|
+
sCoinType: string;
|
|
3054
|
+
sCoinTreasury: string;
|
|
3055
|
+
sCoinMetadataId: string;
|
|
3056
|
+
sCoinSymbol: string;
|
|
3057
|
+
sCoinName: string;
|
|
3058
|
+
coinMetadataId: string;
|
|
3059
|
+
coinType: string;
|
|
3060
|
+
spoolName: string;
|
|
3061
|
+
decimals: number;
|
|
3062
|
+
pythFeed: string;
|
|
3063
|
+
pythFeedObjectId: string;
|
|
3064
|
+
flashloanFeeObject: string;
|
|
3065
|
+
};
|
|
3066
|
+
sui: {
|
|
3067
|
+
coinName: string;
|
|
3068
|
+
symbol: string;
|
|
3069
|
+
lendingPoolAddress: string;
|
|
3070
|
+
collateralPoolAddress: string;
|
|
3071
|
+
borrowDynamic: string;
|
|
3072
|
+
interestModel: string;
|
|
3073
|
+
riskModel: string;
|
|
3074
|
+
borrowFeeKey: string;
|
|
3075
|
+
supplyLimitKey: string;
|
|
3076
|
+
borrowLimitKey: string;
|
|
3077
|
+
isolatedAssetKey: string;
|
|
3078
|
+
isIsolated: boolean;
|
|
3079
|
+
spool: string;
|
|
3080
|
+
spoolReward: string;
|
|
3081
|
+
sCoinType: string;
|
|
3082
|
+
sCoinTreasury: string;
|
|
3083
|
+
sCoinMetadataId: string;
|
|
3084
|
+
sCoinSymbol: string;
|
|
3085
|
+
sCoinName: string;
|
|
3086
|
+
coinMetadataId: string;
|
|
3087
|
+
coinType: string;
|
|
3088
|
+
spoolName: string;
|
|
3089
|
+
decimals: number;
|
|
3090
|
+
pythFeed: string;
|
|
3091
|
+
pythFeedObjectId: string;
|
|
3092
|
+
flashloanFeeObject: string;
|
|
3093
|
+
};
|
|
3094
|
+
sca: {
|
|
3095
|
+
coinName: string;
|
|
3096
|
+
symbol: string;
|
|
3097
|
+
lendingPoolAddress: string;
|
|
3098
|
+
collateralPoolAddress: string;
|
|
3099
|
+
borrowDynamic: string;
|
|
3100
|
+
interestModel: string;
|
|
3101
|
+
riskModel: string;
|
|
3102
|
+
borrowFeeKey: string;
|
|
3103
|
+
supplyLimitKey: string;
|
|
3104
|
+
borrowLimitKey: string;
|
|
3105
|
+
isolatedAssetKey: string;
|
|
3106
|
+
isIsolated: boolean;
|
|
3107
|
+
spool: string;
|
|
3108
|
+
spoolReward: string;
|
|
3109
|
+
sCoinType: string;
|
|
3110
|
+
sCoinTreasury: string;
|
|
3111
|
+
sCoinMetadataId: string;
|
|
3112
|
+
sCoinSymbol: string;
|
|
3113
|
+
sCoinName: string;
|
|
3114
|
+
coinMetadataId: string;
|
|
3115
|
+
coinType: string;
|
|
3116
|
+
spoolName: string;
|
|
3117
|
+
decimals: number;
|
|
3118
|
+
pythFeed: string;
|
|
3119
|
+
pythFeedObjectId: string;
|
|
3120
|
+
flashloanFeeObject: string;
|
|
3121
|
+
};
|
|
3122
|
+
fud: {
|
|
3123
|
+
coinName: string;
|
|
3124
|
+
symbol: string;
|
|
3125
|
+
lendingPoolAddress: string;
|
|
3126
|
+
collateralPoolAddress: string;
|
|
3127
|
+
borrowDynamic: string;
|
|
3128
|
+
interestModel: string;
|
|
3129
|
+
borrowFeeKey: string;
|
|
3130
|
+
supplyLimitKey: string;
|
|
3131
|
+
borrowLimitKey: string;
|
|
3132
|
+
isolatedAssetKey: string;
|
|
3133
|
+
isIsolated: boolean;
|
|
3134
|
+
spool: string;
|
|
3135
|
+
spoolReward: string;
|
|
3136
|
+
sCoinType: string;
|
|
3137
|
+
sCoinTreasury: string;
|
|
3138
|
+
sCoinMetadataId: string;
|
|
3139
|
+
sCoinSymbol: string;
|
|
3140
|
+
sCoinName: string;
|
|
3141
|
+
coinMetadataId: string;
|
|
3142
|
+
coinType: string;
|
|
3143
|
+
spoolName: string;
|
|
3144
|
+
decimals: number;
|
|
3145
|
+
pythFeed: string;
|
|
3146
|
+
pythFeedObjectId: string;
|
|
3147
|
+
flashloanFeeObject: string;
|
|
3148
|
+
};
|
|
3149
|
+
deep: {
|
|
3150
|
+
coinName: string;
|
|
3151
|
+
symbol: string;
|
|
3152
|
+
lendingPoolAddress: string;
|
|
3153
|
+
collateralPoolAddress: string;
|
|
3154
|
+
borrowDynamic: string;
|
|
3155
|
+
interestModel: string;
|
|
3156
|
+
borrowFeeKey: string;
|
|
3157
|
+
supplyLimitKey: string;
|
|
3158
|
+
borrowLimitKey: string;
|
|
3159
|
+
isolatedAssetKey: string;
|
|
3160
|
+
isIsolated: boolean;
|
|
3161
|
+
spool: string;
|
|
3162
|
+
spoolReward: string;
|
|
3163
|
+
sCoinType: string;
|
|
3164
|
+
sCoinTreasury: string;
|
|
3165
|
+
sCoinMetadataId: string;
|
|
3166
|
+
sCoinSymbol: string;
|
|
3167
|
+
sCoinName: string;
|
|
3168
|
+
coinMetadataId: string;
|
|
3169
|
+
coinType: string;
|
|
3170
|
+
spoolName: string;
|
|
3171
|
+
decimals: number;
|
|
3172
|
+
pythFeed: string;
|
|
3173
|
+
pythFeedObjectId: string;
|
|
3174
|
+
flashloanFeeObject: string;
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3005
3177
|
|
|
3006
3178
|
declare const UNLOCK_ROUND_DURATION: number;
|
|
3007
3179
|
declare const MAX_LOCK_ROUNDS: 1460;
|
|
@@ -3011,4 +3183,4 @@ declare const MIN_TOP_UP_AMOUNT: 1000000000;
|
|
|
3011
3183
|
|
|
3012
3184
|
declare const xOracleList: xOracleListType;
|
|
3013
3185
|
|
|
3014
|
-
export { API_BASE_URL, type AddressStringPath, type AddressesInterface, type AssetCoinIds, type AssetCoins, type BalanceSheet, type BaseScallopTxBlock, type BorrowDynamic, type BorrowFee, type BorrowIncentiveAccountKey, type BorrowIncentiveAccounts, type BorrowIncentiveAccountsQueryInterface, type BorrowIncentiveIds, type BorrowIncentiveNormalMethods, type BorrowIncentivePool, type BorrowIncentivePoolPoints, type BorrowIncentivePools, type BorrowIncentivePoolsQueryInterface, type BorrowIncentiveQuickMethods, type BorrowIncentiveRewardCoins, type BorrowIncentiveTxBlock, type CalculatedBorrowIncentivePoolPointData, type CalculatedMarketCollateralData, type CalculatedMarketPoolData, type CalculatedSpoolData, type CalculatedSpoolRewardPoolData, type CoinAmounts, type CoinPrices, type CoinWrappedType, type Coins, type CollateralStat, type CoreIds, type CoreNormalMethods, type CoreQuickMethods, type CoreTxBlock, DEFAULT_CACHE_OPTIONS, type GenerateBorrowIncentiveNormalMethod, type GenerateBorrowIncentiveQuickMethod, type GenerateCoreNormalMethod, type GenerateCoreQuickMethod, type GenerateLoyaltyProgramNormalMethod, type GenerateLoyaltyProgramQuickMethod, type GenerateSCoinNormalMethod, type GenerateSCoinQuickMethod, type GenerateSpoolNormalMethod, type GenerateSpoolQuickMethod, type GenerateVeScaNormalMethod, type GenerateVeScaQuickMethod, IS_VE_SCA_TEST, type InterestModel, type Lending, type Lendings, type
|
|
3186
|
+
export { API_BASE_URL, type AddressStringPath, type AddressesInterface, type AssetCoinIds, type AssetCoins, type BalanceSheet, type BaseScallopTxBlock, type BorrowDynamic, type BorrowFee, type BorrowIncentiveAccountKey, type BorrowIncentiveAccounts, type BorrowIncentiveAccountsQueryInterface, type BorrowIncentiveIds, type BorrowIncentiveNormalMethods, type BorrowIncentivePool, type BorrowIncentivePoolPoints, type BorrowIncentivePools, type BorrowIncentivePoolsQueryInterface, type BorrowIncentiveQuickMethods, type BorrowIncentiveRewardCoins, type BorrowIncentiveTxBlock, type CalculatedBorrowIncentivePoolPointData, type CalculatedMarketCollateralData, type CalculatedMarketPoolData, type CalculatedSpoolData, type CalculatedSpoolRewardPoolData, type CoinAmounts, type CoinPrices, type CoinWrappedType, type Coins, type CollateralStat, type CoreIds, type CoreNormalMethods, type CoreQuickMethods, type CoreTxBlock, DEFAULT_CACHE_OPTIONS, type GenerateBorrowIncentiveNormalMethod, type GenerateBorrowIncentiveQuickMethod, type GenerateCoreNormalMethod, type GenerateCoreQuickMethod, type GenerateLoyaltyProgramNormalMethod, type GenerateLoyaltyProgramQuickMethod, type GenerateSCoinNormalMethod, type GenerateSCoinQuickMethod, type GenerateSpoolNormalMethod, type GenerateSpoolQuickMethod, type GenerateVeScaNormalMethod, type GenerateVeScaQuickMethod, IS_VE_SCA_TEST, type InterestModel, type Lending, type Lendings, type LoyaltyProgramInfo, type LoyaltyProgramNormalMethods, type LoyaltyProgramQuickMethods, type LoyaltyProgramTxBlock, MAX_LOCK_DURATION, MAX_LOCK_ROUNDS, MIN_INITIAL_LOCK_AMOUNT, MIN_TOP_UP_AMOUNT, type Market, type MarketCoinAmounts, type MarketCoins, type MarketCollateral, type MarketCollaterals, type MarketPool, type MarketPools, type MarketQueryInterface, type NestedResult, OLD_BORROW_INCENTIVE_PROTOCOL_ID, type Obligation, type ObligationAccount, type ObligationAccounts, type ObligationBorrowIncentive, type ObligationBorrowIncentiveReward, type ObligationCollateral, type ObligationDebt, type ObligationQueryInterface, type OptionalKeys, type OriginBorrowIncentiveAccountData, type OriginBorrowIncentiveAccountPoolData, type OriginBorrowIncentivePoolData, type OriginBorrowIncentivePoolPointData, type OriginMarketCollateralData, type OriginMarketPoolData, type OriginSpoolData, type OriginSpoolRewardPoolData, POOL_ADDRESSES, type ParsedBorrowIncentiveAccountData, type ParsedBorrowIncentiveAccountPoolData, type ParsedBorrowIncentivePoolData, type ParsedBorrowIncentivePoolPointData, type ParsedMarketCollateralData, type ParsedMarketPoolData, type ParsedSpoolData, type ParsedSpoolRewardPoolData, type PoolAddress, type QuickMethodReturnType, RPC_PROVIDERS, type RiskModel, SCA_COIN_TYPE, type SCoinAmounts, type SCoinConverterTreasury, type SCoinIds, type SCoinTreasuryCaps, type SCoinTxBlock, type SCoins, SDK_API_BASE_URL, Scallop, ScallopAddress, ScallopBuilder, ScallopClient, ScallopConstants, ScallopIndexer, ScallopQuery, ScallopSuiKit, type ScallopTxBlock, ScallopUtils, type SelectCoinReturnType, type Spool, type SpoolData, type SpoolIds, type SpoolNormalMethods, type SpoolQuickMethods, type SpoolRewardPool, type SpoolTxBlock, type Spools, type StakeAccount, type StakeAccounts, type StakeMarketCoins, type StakePool, type StakePools, type StakeRewardCoins, type StakeRewardPool, type StakeRewardPools, type SuiBridgeCoins, type SuiBridgedCoinPackageIds, type SuiTxBlockWithBorrowIncentiveNormalMethods, type SuiTxBlockWithCoreNormalMethods, type SuiTxBlockWithLoyaltyProgramNormalMethods, type SuiTxBlockWithSCoin, type SuiTxBlockWithSCoinNormalMethods, type SuiTxBlockWithSpool, type SuiTxBlockWithSpoolNormalMethods, type SuiTxBlockWithVeScaNormalMethods, type SupportOracleType, TEST_ADDRESSES, type TotalValueLocked, UNLOCK_ROUND_DURATION, USE_TEST_ADDRESS, type VeScaLoyaltyProgramInfo, type VeScaNormalMethods, type VeScaQuickMethods, type VeScaTreasuryFields, type VeScaTreasuryInfo, type VeScaTxBlock, type Vesca, type VoloCoinIds, WHITELIST, type Whitelist, type WormholeCoinIds, _SUPPORT_ORACLES, queryKeys, type sCoinBalance, type sCoinNormalMethods, type sCoinPkgIds, type sCoinQuickMethods, xOracleList, type xOracleListType, type xOracleRuleType, type xOracleRules };
|