@liquidium/client 0.6.0 → 0.7.0
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.cjs +228 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +149 -26
- package/dist/index.d.ts +149 -26
- package/dist/index.js +221 -24
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -423,6 +423,18 @@ declare class AccountsModule {
|
|
|
423
423
|
* @returns Profile principal text, or `null` if none exists.
|
|
424
424
|
*/
|
|
425
425
|
getProfileId(walletAddress: string): Promise<string | null>;
|
|
426
|
+
/**
|
|
427
|
+
* Checks whether a profile is registered with the protocol.
|
|
428
|
+
*
|
|
429
|
+
* Production profile registration always links an initial wallet, and the
|
|
430
|
+
* protocol prevents removal of a profile's final wallet. This method uses
|
|
431
|
+
* that invariant because the current canister API has no direct existence
|
|
432
|
+
* query.
|
|
433
|
+
*
|
|
434
|
+
* @param profileId - The Liquidium profile principal text.
|
|
435
|
+
* @returns `true` when the profile has at least one linked wallet.
|
|
436
|
+
*/
|
|
437
|
+
profileExists(profileId: string): Promise<boolean>;
|
|
426
438
|
/**
|
|
427
439
|
* Returns the current nonce for a wallet address.
|
|
428
440
|
*
|
|
@@ -617,8 +629,15 @@ interface UserTransactionHistoryEntry extends BaseUserHistoryEntry {
|
|
|
617
629
|
}
|
|
618
630
|
/** Liquidation entry in user history. */
|
|
619
631
|
interface UserLiquidationHistoryEntry extends BaseUserHistoryEntry {
|
|
620
|
-
/**
|
|
621
|
-
status:
|
|
632
|
+
/** Completed liquidation status. */
|
|
633
|
+
status: UserLiquidationHistoryStatus;
|
|
634
|
+
}
|
|
635
|
+
/** Status returned by profile liquidation history. */
|
|
636
|
+
interface UserLiquidationHistoryStatus {
|
|
637
|
+
operation: "liquidation";
|
|
638
|
+
state: "completed";
|
|
639
|
+
confirmations: null;
|
|
640
|
+
requiredConfirmations: null;
|
|
622
641
|
}
|
|
623
642
|
/** Any consumer-facing profile history entry. */
|
|
624
643
|
type UserHistoryEntry = UserTransactionHistoryEntry | UserLiquidationHistoryEntry;
|
|
@@ -626,9 +645,9 @@ type UserHistoryEntry = UserTransactionHistoryEntry | UserLiquidationHistoryEntr
|
|
|
626
645
|
interface UserTransactionHistoryFilters {
|
|
627
646
|
/** Pagination cursor from a previous response. */
|
|
628
647
|
cursor?: string;
|
|
629
|
-
/**
|
|
648
|
+
/** Number of entries to return, from 1 to 200. Defaults to 50. */
|
|
630
649
|
limit?: number;
|
|
631
|
-
/**
|
|
650
|
+
/** Alias for poolId. Ignored when poolId is provided. */
|
|
632
651
|
market?: string;
|
|
633
652
|
/** Pool principal text filter. */
|
|
634
653
|
poolId?: string;
|
|
@@ -645,9 +664,9 @@ interface UserTransactionHistoryFilters {
|
|
|
645
664
|
interface UserLiquidationHistoryFilters {
|
|
646
665
|
/** Pagination cursor from a previous response. */
|
|
647
666
|
cursor?: string;
|
|
648
|
-
/**
|
|
667
|
+
/** Number of entries to return, from 1 to 200. Defaults to 50. */
|
|
649
668
|
limit?: number;
|
|
650
|
-
/**
|
|
669
|
+
/** Alias for poolId. Ignored when poolId is provided. */
|
|
651
670
|
market?: string;
|
|
652
671
|
/** Pool principal text filter. */
|
|
653
672
|
poolId?: string;
|
|
@@ -677,8 +696,37 @@ interface PaginatedResponse<T> {
|
|
|
677
696
|
/** Cursor for the next page when more results are available. */
|
|
678
697
|
nextCursor?: string;
|
|
679
698
|
}
|
|
699
|
+
/** Protocol-wide lending activity operation. */
|
|
700
|
+
type ProtocolActivityOperation = LiquidiumOperation;
|
|
701
|
+
/** Completed protocol-wide lending activity entry. */
|
|
702
|
+
interface ProtocolActivityEntry {
|
|
703
|
+
id: string;
|
|
704
|
+
/** Lending operation that produced this activity. */
|
|
705
|
+
operation: ProtocolActivityOperation;
|
|
706
|
+
/** Pool principal text the activity belongs to. */
|
|
707
|
+
poolId: string;
|
|
708
|
+
/** Asset ticker of the pool. */
|
|
709
|
+
asset: string;
|
|
710
|
+
/** Decimal places of the raw amount. */
|
|
711
|
+
decimals: number;
|
|
712
|
+
/** Raw amount in base units. */
|
|
713
|
+
amount: bigint;
|
|
714
|
+
/** ISO-8601 timestamp of the confirmed activity. */
|
|
715
|
+
timestamp: string;
|
|
716
|
+
/** Chain transaction identifiers, when available. */
|
|
717
|
+
txids?: string[];
|
|
718
|
+
}
|
|
719
|
+
/** Filters for protocol-wide activity feed requests. */
|
|
720
|
+
interface ProtocolActivityFeedFilters {
|
|
721
|
+
/** Number of entries to return, from 1 to 100. Defaults to 50. */
|
|
722
|
+
limit?: number;
|
|
723
|
+
/** Pool principal text filter. */
|
|
724
|
+
poolId?: string;
|
|
725
|
+
/** Operation filters. */
|
|
726
|
+
operations?: ProtocolActivityOperation[];
|
|
727
|
+
}
|
|
680
728
|
|
|
681
|
-
/**
|
|
729
|
+
/** User and protocol history data helpers. */
|
|
682
730
|
declare class HistoryModule {
|
|
683
731
|
private readonly apiClient;
|
|
684
732
|
constructor(apiClient: ApiClient | undefined);
|
|
@@ -686,19 +734,26 @@ declare class HistoryModule {
|
|
|
686
734
|
/**
|
|
687
735
|
* Returns transaction history for a user.
|
|
688
736
|
*
|
|
689
|
-
* @param
|
|
737
|
+
* @param profileId - The Liquidium profile principal text.
|
|
690
738
|
* @param filters - Optional pool, operation, state, time range, and pagination filters.
|
|
691
739
|
* @returns Paginated user history entries.
|
|
692
740
|
*/
|
|
693
|
-
getUserTransactionHistory(
|
|
741
|
+
getUserTransactionHistory(profileId: string, filters?: UserTransactionHistoryFilters): Promise<PaginatedResponse<UserTransactionHistoryEntry>>;
|
|
694
742
|
/**
|
|
695
743
|
* Returns liquidation history for a user.
|
|
696
744
|
*
|
|
697
|
-
* @param
|
|
745
|
+
* @param profileId - The Liquidium profile principal text.
|
|
698
746
|
* @param filters - Optional pool, time range, and pagination filters.
|
|
699
747
|
* @returns Paginated liquidation history entries.
|
|
700
748
|
*/
|
|
701
|
-
getLiquidationHistory(
|
|
749
|
+
getLiquidationHistory(profileId: string, filters?: UserLiquidationHistoryFilters): Promise<PaginatedResponse<UserLiquidationHistoryEntry>>;
|
|
750
|
+
/**
|
|
751
|
+
* Returns recent protocol-wide lending activity across all users.
|
|
752
|
+
*
|
|
753
|
+
* @param filters - Optional pool, operation, and limit filters.
|
|
754
|
+
* @returns Recent confirmed lending activity entries.
|
|
755
|
+
*/
|
|
756
|
+
getProtocolActivity(filters?: ProtocolActivityFeedFilters): Promise<ProtocolActivityEntry[]>;
|
|
702
757
|
}
|
|
703
758
|
|
|
704
759
|
/** Wallet execution dependencies for borrow and withdraw convenience methods. */
|
|
@@ -1131,6 +1186,8 @@ interface Pool {
|
|
|
1131
1186
|
id: string;
|
|
1132
1187
|
/** Asset supplied to and borrowed from the pool. */
|
|
1133
1188
|
asset: Asset;
|
|
1189
|
+
/** Human-readable name of the pool asset. */
|
|
1190
|
+
displayName: string;
|
|
1134
1191
|
/** Chain associated with the pool asset. */
|
|
1135
1192
|
chain: Chain;
|
|
1136
1193
|
/** Number of base-unit decimals for pool amounts. */
|
|
@@ -1147,22 +1204,26 @@ interface Pool {
|
|
|
1147
1204
|
supplyCap?: bigint;
|
|
1148
1205
|
/** Optional borrow cap in base units. */
|
|
1149
1206
|
borrowCap?: bigint;
|
|
1150
|
-
/** Maximum loan-to-value ratio
|
|
1207
|
+
/** Maximum loan-to-value ratio in basis points. */
|
|
1151
1208
|
maxLtv: bigint;
|
|
1152
|
-
/** Liquidation threshold
|
|
1209
|
+
/** Liquidation threshold in basis points. */
|
|
1153
1210
|
liquidationThreshold: bigint;
|
|
1154
|
-
/** Liquidation bonus
|
|
1211
|
+
/** Liquidation bonus in basis points. */
|
|
1155
1212
|
liquidationBonus: bigint;
|
|
1156
|
-
/** Protocol liquidation fee
|
|
1213
|
+
/** Protocol liquidation fee in basis points. */
|
|
1157
1214
|
protocolLiquidationFee: bigint;
|
|
1158
|
-
/** Reserve factor
|
|
1215
|
+
/** Reserve factor in basis points. */
|
|
1159
1216
|
reserveFactor: bigint;
|
|
1160
|
-
/** Decimal scale used by
|
|
1217
|
+
/** Decimal scale used by APR and utilization fields. */
|
|
1161
1218
|
rateDecimals: bigint;
|
|
1162
1219
|
/** Current supply APR, scaled by `rateDecimals`. */
|
|
1163
1220
|
lendingRate: bigint;
|
|
1221
|
+
/** Estimated supply APY, scaled by `rateDecimals`. */
|
|
1222
|
+
estimatedLendingApy: bigint;
|
|
1164
1223
|
/** Current borrow APR, scaled by `rateDecimals`. */
|
|
1165
1224
|
borrowingRate: bigint;
|
|
1225
|
+
/** Estimated borrow APY, scaled by `rateDecimals`. */
|
|
1226
|
+
estimatedBorrowingApy: bigint;
|
|
1166
1227
|
/** Current pool utilization, scaled by `rateDecimals`. */
|
|
1167
1228
|
utilizationRate: bigint;
|
|
1168
1229
|
/** Base borrow rate, scaled by `rateDecimals`. */
|
|
@@ -1186,6 +1247,13 @@ interface Pool {
|
|
|
1186
1247
|
}
|
|
1187
1248
|
/** USD price map keyed by market asset symbol. */
|
|
1188
1249
|
type AssetPrices = Record<string, number>;
|
|
1250
|
+
/** Protocol prices with the time at which the SDK completed the fetch. */
|
|
1251
|
+
interface AssetPriceSnapshot {
|
|
1252
|
+
/** USD price map keyed by market asset symbol. */
|
|
1253
|
+
prices: AssetPrices;
|
|
1254
|
+
/** Unix timestamp in seconds when the SDK received the price response. */
|
|
1255
|
+
fetchedAt: bigint;
|
|
1256
|
+
}
|
|
1189
1257
|
/** Supported Chain + Asset identifier used to find its backing lending pool. */
|
|
1190
1258
|
type FindPoolQuery = AssetIdentifier;
|
|
1191
1259
|
/** Current borrow, lend, and utilization rates for a pool. */
|
|
@@ -1194,8 +1262,12 @@ interface PoolRate {
|
|
|
1194
1262
|
rateDecimals: bigint;
|
|
1195
1263
|
/** Borrow APR scaled by `rateDecimals`. */
|
|
1196
1264
|
borrowRate: bigint;
|
|
1265
|
+
/** Estimated borrow APY scaled by `rateDecimals`. */
|
|
1266
|
+
estimatedBorrowApy: bigint;
|
|
1197
1267
|
/** Lend APR scaled by `rateDecimals`. */
|
|
1198
1268
|
lendRate: bigint;
|
|
1269
|
+
/** Estimated lend APY scaled by `rateDecimals`. */
|
|
1270
|
+
estimatedLendApy: bigint;
|
|
1199
1271
|
/** Utilization rate scaled by `rateDecimals`. */
|
|
1200
1272
|
utilizationRate: bigint;
|
|
1201
1273
|
}
|
|
@@ -1213,11 +1285,21 @@ declare class MarketModule {
|
|
|
1213
1285
|
*/
|
|
1214
1286
|
listPools(): Promise<Pool[]>;
|
|
1215
1287
|
/**
|
|
1216
|
-
* Returns the
|
|
1288
|
+
* Returns the current cached asset prices reported by the protocol.
|
|
1217
1289
|
*
|
|
1218
|
-
* @returns The
|
|
1290
|
+
* @returns The current protocol price map keyed by market asset symbol.
|
|
1219
1291
|
*/
|
|
1220
1292
|
getAssetPrices(): Promise<AssetPrices>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Returns protocol prices with the time at which the SDK completed the fetch.
|
|
1295
|
+
*
|
|
1296
|
+
* `fetchedAt` is an SDK retrieval time, not an oracle observation timestamp.
|
|
1297
|
+
* The current lending canister price response does not expose the underlying
|
|
1298
|
+
* oracle timestamp.
|
|
1299
|
+
*
|
|
1300
|
+
* @returns Protocol prices and their SDK fetch timestamp.
|
|
1301
|
+
*/
|
|
1302
|
+
getAssetPriceSnapshot(): Promise<AssetPriceSnapshot>;
|
|
1221
1303
|
/**
|
|
1222
1304
|
* Resolves a single backing pool for the given Chain + Asset identifier.
|
|
1223
1305
|
*
|
|
@@ -1247,6 +1329,11 @@ declare class MarketModule {
|
|
|
1247
1329
|
getPoolRate(poolId: string): Promise<PoolRate>;
|
|
1248
1330
|
}
|
|
1249
1331
|
|
|
1332
|
+
/** Fixed-point scale used by protocol health factors. */
|
|
1333
|
+
declare const HEALTH_FACTOR_SCALE = 1000n;
|
|
1334
|
+
/** Number of decimal places represented by {@link HEALTH_FACTOR_SCALE}. */
|
|
1335
|
+
declare const HEALTH_FACTOR_DECIMALS = 3n;
|
|
1336
|
+
|
|
1250
1337
|
/** Current profile position in one lending pool. */
|
|
1251
1338
|
interface Position {
|
|
1252
1339
|
/** Pool principal text. */
|
|
@@ -1270,7 +1357,7 @@ interface Position {
|
|
|
1270
1357
|
}
|
|
1271
1358
|
/** Aggregate borrowing capacity for a profile. */
|
|
1272
1359
|
interface BorrowingPower {
|
|
1273
|
-
/** Weighted maximum LTV
|
|
1360
|
+
/** Weighted maximum LTV in basis points. */
|
|
1274
1361
|
weightedMaxLtv: bigint;
|
|
1275
1362
|
/** Maximum borrowable USD value, scaled by `maxBorrowableUsdDecimals`. */
|
|
1276
1363
|
maxBorrowableUsd: bigint;
|
|
@@ -1287,15 +1374,17 @@ interface UserStats {
|
|
|
1287
1374
|
collateral: bigint;
|
|
1288
1375
|
/** Decimal scale for `collateral`. */
|
|
1289
1376
|
collateralDecimals: bigint;
|
|
1290
|
-
/** Weighted liquidation threshold
|
|
1377
|
+
/** Weighted liquidation threshold in basis points. */
|
|
1291
1378
|
weightedLiquidationThreshold: bigint;
|
|
1292
1379
|
/** Current borrowing capacity. */
|
|
1293
1380
|
borrowingPower: BorrowingPower;
|
|
1294
1381
|
}
|
|
1295
1382
|
/** Health factor and supporting aggregate stats for a profile. */
|
|
1296
1383
|
interface HealthFactor {
|
|
1297
|
-
/**
|
|
1298
|
-
healthFactor: bigint;
|
|
1384
|
+
/** Health factor scaled by `healthFactorDecimals`, or `null` with no debt. */
|
|
1385
|
+
healthFactor: bigint | null;
|
|
1386
|
+
/** Decimal scale for a finite `healthFactor`. */
|
|
1387
|
+
healthFactorDecimals: bigint;
|
|
1299
1388
|
/** Aggregate stats used to derive the health factor. */
|
|
1300
1389
|
userStats: UserStats;
|
|
1301
1390
|
}
|
|
@@ -1317,8 +1406,10 @@ interface UserPositionSummary {
|
|
|
1317
1406
|
weightedMaxLtvBps: bigint;
|
|
1318
1407
|
/** Weighted liquidation threshold in basis points. */
|
|
1319
1408
|
weightedLiquidationThresholdBps: bigint;
|
|
1320
|
-
/**
|
|
1321
|
-
healthFactor: bigint;
|
|
1409
|
+
/** Health factor scaled by `healthFactorDecimals`, or `null` with no debt. */
|
|
1410
|
+
healthFactor: bigint | null;
|
|
1411
|
+
/** Decimal scale for a finite `healthFactor`. */
|
|
1412
|
+
healthFactorDecimals: bigint;
|
|
1322
1413
|
}
|
|
1323
1414
|
/** Position joined with pool metadata and current USD valuation. */
|
|
1324
1415
|
interface UserReserve {
|
|
@@ -2137,6 +2228,18 @@ declare class LiquidiumClient {
|
|
|
2137
2228
|
constructor(config?: LiquidiumClientConfig);
|
|
2138
2229
|
}
|
|
2139
2230
|
|
|
2231
|
+
/** Stable presentation metadata for an SDK-supported asset. */
|
|
2232
|
+
interface AssetMetadata {
|
|
2233
|
+
/** Canonical asset symbol used by SDK requests and responses. */
|
|
2234
|
+
symbol: Asset;
|
|
2235
|
+
/** Human-readable asset name. */
|
|
2236
|
+
displayName: string;
|
|
2237
|
+
}
|
|
2238
|
+
/** Presentation metadata keyed by SDK asset symbol. */
|
|
2239
|
+
declare const ASSET_METADATA: Readonly<Record<Asset, AssetMetadata>>;
|
|
2240
|
+
/** Returns stable presentation metadata for an SDK-supported asset. */
|
|
2241
|
+
declare function getAssetMetadata(asset: Asset): AssetMetadata;
|
|
2242
|
+
|
|
2140
2243
|
/** Minimum borrow amounts in each asset's base units. */
|
|
2141
2244
|
declare const MIN_BORROW_AMOUNTS_BY_ASSET: {
|
|
2142
2245
|
readonly BTC: 5100n;
|
|
@@ -2252,6 +2355,26 @@ declare const CK_ETH_DEPOSIT_CONTRACT_ADDRESS = "0x18901044688D3756C35Ed2b36D93e
|
|
|
2252
2355
|
declare const RATE_SCALE = 1000000000000000000000000000n;
|
|
2253
2356
|
/** Number of decimal places represented by {@link RATE_SCALE}. */
|
|
2254
2357
|
declare const RATE_DECIMALS: bigint;
|
|
2358
|
+
/** Number of seconds in the protocol's 365-day interest year. */
|
|
2359
|
+
declare const INTEREST_YEAR_365_DAYS_SECONDS = 31536000n;
|
|
2360
|
+
/** Scheduled interval used for estimated supply APY compounding. */
|
|
2361
|
+
declare const SUPPLY_COMPOUNDING_INTERVAL_15_SECONDS = 15n;
|
|
2362
|
+
/**
|
|
2363
|
+
* Estimates borrow APY from a current RAY-scaled APR.
|
|
2364
|
+
*
|
|
2365
|
+
* The estimate mirrors the protocol's per-second borrow compounding and assumes
|
|
2366
|
+
* the current APR remains unchanged for a 365-day year.
|
|
2367
|
+
*/
|
|
2368
|
+
declare function estimateBorrowApy(borrowApr: bigint): bigint;
|
|
2369
|
+
/**
|
|
2370
|
+
* Estimates supply APY from a current RAY-scaled APR.
|
|
2371
|
+
*
|
|
2372
|
+
* The estimate uses the protocol's scheduled 15-second pool synchronization
|
|
2373
|
+
* interval and assumes the current APR remains unchanged for a 365-day year.
|
|
2374
|
+
* Additional protocol activity can synchronize a pool between timer ticks, so
|
|
2375
|
+
* this is not a realized-yield guarantee.
|
|
2376
|
+
*/
|
|
2377
|
+
declare function estimateSupplyApy(supplyApr: bigint): bigint;
|
|
2255
2378
|
|
|
2256
2379
|
/** Minimum withdraw amounts in each asset's base units. */
|
|
2257
2380
|
declare const MIN_WITHDRAW_AMOUNTS_BY_ASSET: {
|
|
@@ -2292,4 +2415,4 @@ interface ExecuteWithOptions {
|
|
|
2292
2415
|
*/
|
|
2293
2416
|
declare function executeWith(options: ExecuteWithOptions): <TResult>(action: WalletAction<TResult>) => Promise<TResult>;
|
|
2294
2417
|
|
|
2295
|
-
export { AccountsModule, ActivitiesModule, type Activity, ActivityFilter, type ActivityStatusFoundResponse, type ActivityStatusNotFoundResponse, type ActivityTopUp, Asset, type AssetIdentifier, type AssetPrices, type BaseGetActivityStatusRequest, type BaseListActivitiesRequest, type BorrowAction, type BorrowOutflowDetails, type BorrowingPower, type BtcOnBtcAssetIdentifier, type BtcOnIcpAssetIdentifier, CK_ETH_DEPOSIT_CONTRACT_ADDRESS, type CalculateLtvRequest, type CanisterIdOverrides, type CanisterIds, Chain, type ChainAddressAccount, type ContractInteractionSupplyFlowRequest, type CreateAccountAction, type CreateAccountData, type CreateAccountRequest, type CreateBorrowData, type CreateBorrowRequest, type CreateProfileParams, type CreateSimpleLoanBorrow, type CreateSimpleLoanCollateral, type CreateSimpleLoanRefund, type CreateSimpleLoanRequest, type CreateTransferErc20TransactionParams, type CreateWithdrawData, type CreateWithdrawRequest, Environment, type EstimateInflowFeeRequest, type EthOnEthAssetIdentifier, type EthOnIcpAssetIdentifier, type EthTransactionRequest, type EvmContractTransaction, type EvmReadClient, EvmSupplyApprovalStrategy, type EvmSupplyContext, type ExecuteWithOptions, type FindPoolQuery, type FullWithdrawAmount, type GetActivityStatusByProfileRequest, type GetActivityStatusByShortRefRequest, type GetActivityStatusRequest, type GetActivityStatusResponse, type GetDepositAddressRequest, type GetEvmSupplyContextRequest, type HealthFactor, HistoryModule, type IcPrincipalAccount, type IcpAccountIdentifierAccount, type IcpOnIcpAssetIdentifier, type IcrcAccount, type IcrcTransferDetails, type InflowActivity, type InflowActivityOperation, type InflowActivityStatus, type InflowFeeEstimate, type InflowOperation, LendingModule, type LiquidiumAccount, type LiquidiumAccountInput, type LiquidiumAccountReference, LiquidiumAccountType, LiquidiumClient, type LiquidiumClientConfig, LiquidiumError, LiquidiumErrorCode, type LiquidiumErrorContext, type LiquidiumOperation, type LiquidiumState, type LiquidiumStatus, type ListActivitiesByProfileRequest, type ListActivitiesByShortRefRequest, type ListActivitiesRequest, type LtvCalculation, MIN_BORROW_AMOUNTS_BY_ASSET, MIN_DEPOSIT_AMOUNTS_BY_ASSET, MIN_WITHDRAW_AMOUNTS_BY_ASSET, type ManualTransferSupplyFlowRequest, MarketModule, type MaxRepayAmount, type MinimumBorrowAsset, type MinimumDepositAsset, type MinimumWithdrawAsset, type OutflowActivity, type OutflowActivityOperation, type OutflowActivityStatus, type OutflowDetails, OutflowType, type PaginatedResponse, type Pool, type PoolCanisterIds, type PoolRate, type Position, PositionsModule, type PrepareCreateProfileOptions, QuoteModule, type QuoteRequest, type QuoteResult, type QuoteValidationError, QuoteValidationErrorCode, type QuoteWarning, QuoteWarningCode, RATE_DECIMALS, RATE_SCALE, type SendBtcTransactionRequest, type SendEthTransactionRequest, type SendIcrcTransferRequest, type SignMessageRequest, type SignMessageWalletAction, type SignatureInfo, type SigningChain, type SimpleLoan, type SimpleLoanAccount, type SimpleLoanAsset, type SimpleLoanAuthorization, type SimpleLoanBorrow, type SimpleLoanBorrowRequestedEventType, type SimpleLoanCollateral, type SimpleLoanConfig, SimpleLoanCreatedError, type SimpleLoanCreatedEventType, type SimpleLoanDepositTimerExceededEventType, type SimpleLoanDepositTimerStartedEventType, type SimpleLoanDestination, type SimpleLoanEvent, type SimpleLoanEventType, type SimpleLoanFindBorrow, type SimpleLoanFindCollateral, type SimpleLoanFindResult, type SimpleLoanFullLendWithdrawalRequestedEventType, type SimpleLoanGetByIdRequest, type SimpleLoanGetByRefRequest, type SimpleLoanGetRequest, type SimpleLoanInitialDeposit, type SimpleLoanInitialDepositTargetQuote, type SimpleLoanLeg, type SimpleLoanListEventsRequest, type SimpleLoanPositionSummary, type SimpleLoanProfileWarmedEventType, type SimpleLoanRepayCompleteEventType, type SimpleLoanRepayment, type SimpleLoanRepaymentTargetQuote, type SimpleLoanStuckFundsWithdrawalRequestedEventType, type SimpleLoanTerms, type SimpleLoanWarmedProfile, SimpleLoansModule, type SubmitInflowRequest, type SubmitInflowResponse, type SubmitSupplyFlowInflowRequest, SupplyAction, type SupplyFlow, type SupplyFlowRequest, SupplyPlanType, type SupplyTarget, type TransferSupplyFlowRequest, USDC_CONTRACT_ADDRESS, USDT_CONTRACT_ADDRESS, type UsdcOnEthAssetIdentifier, type UsdcOnIcpAssetIdentifier, type UsdtOnEthAssetIdentifier, type UsdtOnIcpAssetIdentifier, type UserHistoryEntry, type UserHistoryEntryApiItem, type UserHistoryOperation, type UserHistoryResponse, type UserLiquidationHistoryEntry, type UserLiquidationHistoryFilters, type UserPositionSummary, type UserReserve, type UserStats, type UserTransactionHistoryEntry, type UserTransactionHistoryFilters, type UserTransactionHistoryOperation, type UserTransactionHistoryState, type Wallet, type WalletAction, WalletActionKind, type WalletAdapter, WalletExecutionKind, type WalletExecutionParams, type WalletTransferSupplyFlowRequest, type WithdrawAction, type WithdrawOutflowDetails, createTransferErc20Transaction, executeWith, getMinimumBorrowAmount, getMinimumDepositAmount, getMinimumWithdrawAmount, intFromPublicId, isAssetIdentifier, publicIdFromInt };
|
|
2418
|
+
export { ASSET_METADATA, AccountsModule, ActivitiesModule, type Activity, ActivityFilter, type ActivityStatusFoundResponse, type ActivityStatusNotFoundResponse, type ActivityTopUp, Asset, type AssetIdentifier, type AssetMetadata, type AssetPriceSnapshot, type AssetPrices, type BaseGetActivityStatusRequest, type BaseListActivitiesRequest, type BorrowAction, type BorrowOutflowDetails, type BorrowingPower, type BtcOnBtcAssetIdentifier, type BtcOnIcpAssetIdentifier, CK_ETH_DEPOSIT_CONTRACT_ADDRESS, type CalculateLtvRequest, type CanisterIdOverrides, type CanisterIds, Chain, type ChainAddressAccount, type ContractInteractionSupplyFlowRequest, type CreateAccountAction, type CreateAccountData, type CreateAccountRequest, type CreateBorrowData, type CreateBorrowRequest, type CreateProfileParams, type CreateSimpleLoanBorrow, type CreateSimpleLoanCollateral, type CreateSimpleLoanRefund, type CreateSimpleLoanRequest, type CreateTransferErc20TransactionParams, type CreateWithdrawData, type CreateWithdrawRequest, Environment, type EstimateInflowFeeRequest, type EthOnEthAssetIdentifier, type EthOnIcpAssetIdentifier, type EthTransactionRequest, type EvmContractTransaction, type EvmReadClient, EvmSupplyApprovalStrategy, type EvmSupplyContext, type ExecuteWithOptions, type FindPoolQuery, type FullWithdrawAmount, type GetActivityStatusByProfileRequest, type GetActivityStatusByShortRefRequest, type GetActivityStatusRequest, type GetActivityStatusResponse, type GetDepositAddressRequest, type GetEvmSupplyContextRequest, HEALTH_FACTOR_DECIMALS, HEALTH_FACTOR_SCALE, type HealthFactor, HistoryModule, INTEREST_YEAR_365_DAYS_SECONDS, type IcPrincipalAccount, type IcpAccountIdentifierAccount, type IcpOnIcpAssetIdentifier, type IcrcAccount, type IcrcTransferDetails, type InflowActivity, type InflowActivityOperation, type InflowActivityStatus, type InflowFeeEstimate, type InflowOperation, LendingModule, type LiquidiumAccount, type LiquidiumAccountInput, type LiquidiumAccountReference, LiquidiumAccountType, LiquidiumClient, type LiquidiumClientConfig, LiquidiumError, LiquidiumErrorCode, type LiquidiumErrorContext, type LiquidiumOperation, type LiquidiumState, type LiquidiumStatus, type ListActivitiesByProfileRequest, type ListActivitiesByShortRefRequest, type ListActivitiesRequest, type LtvCalculation, MIN_BORROW_AMOUNTS_BY_ASSET, MIN_DEPOSIT_AMOUNTS_BY_ASSET, MIN_WITHDRAW_AMOUNTS_BY_ASSET, type ManualTransferSupplyFlowRequest, MarketModule, type MaxRepayAmount, type MinimumBorrowAsset, type MinimumDepositAsset, type MinimumWithdrawAsset, type OutflowActivity, type OutflowActivityOperation, type OutflowActivityStatus, type OutflowDetails, OutflowType, type PaginatedResponse, type Pool, type PoolCanisterIds, type PoolRate, type Position, PositionsModule, type PrepareCreateProfileOptions, type ProtocolActivityEntry, type ProtocolActivityFeedFilters, type ProtocolActivityOperation, QuoteModule, type QuoteRequest, type QuoteResult, type QuoteValidationError, QuoteValidationErrorCode, type QuoteWarning, QuoteWarningCode, RATE_DECIMALS, RATE_SCALE, SUPPLY_COMPOUNDING_INTERVAL_15_SECONDS, type SendBtcTransactionRequest, type SendEthTransactionRequest, type SendIcrcTransferRequest, type SignMessageRequest, type SignMessageWalletAction, type SignatureInfo, type SigningChain, type SimpleLoan, type SimpleLoanAccount, type SimpleLoanAsset, type SimpleLoanAuthorization, type SimpleLoanBorrow, type SimpleLoanBorrowRequestedEventType, type SimpleLoanCollateral, type SimpleLoanConfig, SimpleLoanCreatedError, type SimpleLoanCreatedEventType, type SimpleLoanDepositTimerExceededEventType, type SimpleLoanDepositTimerStartedEventType, type SimpleLoanDestination, type SimpleLoanEvent, type SimpleLoanEventType, type SimpleLoanFindBorrow, type SimpleLoanFindCollateral, type SimpleLoanFindResult, type SimpleLoanFullLendWithdrawalRequestedEventType, type SimpleLoanGetByIdRequest, type SimpleLoanGetByRefRequest, type SimpleLoanGetRequest, type SimpleLoanInitialDeposit, type SimpleLoanInitialDepositTargetQuote, type SimpleLoanLeg, type SimpleLoanListEventsRequest, type SimpleLoanPositionSummary, type SimpleLoanProfileWarmedEventType, type SimpleLoanRepayCompleteEventType, type SimpleLoanRepayment, type SimpleLoanRepaymentTargetQuote, type SimpleLoanStuckFundsWithdrawalRequestedEventType, type SimpleLoanTerms, type SimpleLoanWarmedProfile, SimpleLoansModule, type SubmitInflowRequest, type SubmitInflowResponse, type SubmitSupplyFlowInflowRequest, SupplyAction, type SupplyFlow, type SupplyFlowRequest, SupplyPlanType, type SupplyTarget, type TransferSupplyFlowRequest, USDC_CONTRACT_ADDRESS, USDT_CONTRACT_ADDRESS, type UsdcOnEthAssetIdentifier, type UsdcOnIcpAssetIdentifier, type UsdtOnEthAssetIdentifier, type UsdtOnIcpAssetIdentifier, type UserHistoryEntry, type UserHistoryEntryApiItem, type UserHistoryOperation, type UserHistoryResponse, type UserLiquidationHistoryEntry, type UserLiquidationHistoryFilters, type UserLiquidationHistoryStatus, type UserPositionSummary, type UserReserve, type UserStats, type UserTransactionHistoryEntry, type UserTransactionHistoryFilters, type UserTransactionHistoryOperation, type UserTransactionHistoryState, type Wallet, type WalletAction, WalletActionKind, type WalletAdapter, WalletExecutionKind, type WalletExecutionParams, type WalletTransferSupplyFlowRequest, type WithdrawAction, type WithdrawOutflowDetails, createTransferErc20Transaction, estimateBorrowApy, estimateSupplyApy, executeWith, getAssetMetadata, getMinimumBorrowAmount, getMinimumDepositAmount, getMinimumWithdrawAmount, intFromPublicId, isAssetIdentifier, publicIdFromInt };
|