@liquidium/client 0.6.0 → 0.7.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.cts CHANGED
@@ -1,8 +1,18 @@
1
1
  import { Identity, HttpAgent } from '@icp-sdk/core/agent';
2
2
  import { PublicClient } from 'viem';
3
3
 
4
- /** Minimal viem-compatible client shape required for SDK EVM read calls. */
5
- type EvmReadClient = Pick<PublicClient, "readContract">;
4
+ /**
5
+ * Minimal viem-compatible client shape required for SDK EVM read calls.
6
+ *
7
+ * When `getCode` is present and `chain` identifies Ethereum mainnet, the SDK
8
+ * uses it for a best-effort native ETH contract-destination check. Provider
9
+ * failures fail open and do not block the outflow.
10
+ */
11
+ interface EvmReadClient {
12
+ readContract: PublicClient["readContract"];
13
+ chain?: PublicClient["chain"];
14
+ getCode?: PublicClient["getCode"];
15
+ }
6
16
  /**
7
17
  * Runtime options for `new LiquidiumClient(config)`.
8
18
  *
@@ -30,11 +40,11 @@ interface LiquidiumClientConfig {
30
40
  fetch?: typeof fetch;
31
41
  /** Per-request timeout for SDK API calls in milliseconds. */
32
42
  timeoutMs?: number;
33
- /** Ethereum RPC URL used for public ERC-20 reads in EVM supply flows. */
43
+ /** Ethereum RPC URL used for best-effort native ETH outflow checks and public ERC-20 reads. */
34
44
  evmRpcUrl?: string;
35
45
  /** Optional headers for RPC providers that authenticate via HTTP headers. */
36
46
  evmRpcHeaders?: Record<string, string>;
37
- /** Existing viem public client or compatible read client for EVM reads. */
47
+ /** Existing viem client; mainnet `chain` and `getCode` enable native ETH outflow checks. */
38
48
  evmPublicClient?: EvmReadClient;
39
49
  }
40
50
  /** Pool canister principal text values grouped by pool asset. */
@@ -423,6 +433,18 @@ declare class AccountsModule {
423
433
  * @returns Profile principal text, or `null` if none exists.
424
434
  */
425
435
  getProfileId(walletAddress: string): Promise<string | null>;
436
+ /**
437
+ * Checks whether a profile is registered with the protocol.
438
+ *
439
+ * Production profile registration always links an initial wallet, and the
440
+ * protocol prevents removal of a profile's final wallet. This method uses
441
+ * that invariant because the current canister API has no direct existence
442
+ * query.
443
+ *
444
+ * @param profileId - The Liquidium profile principal text.
445
+ * @returns `true` when the profile has at least one linked wallet.
446
+ */
447
+ profileExists(profileId: string): Promise<boolean>;
426
448
  /**
427
449
  * Returns the current nonce for a wallet address.
428
450
  *
@@ -617,8 +639,15 @@ interface UserTransactionHistoryEntry extends BaseUserHistoryEntry {
617
639
  }
618
640
  /** Liquidation entry in user history. */
619
641
  interface UserLiquidationHistoryEntry extends BaseUserHistoryEntry {
620
- /** Current lifecycle status. */
621
- status: LiquidiumStatus;
642
+ /** Completed liquidation status. */
643
+ status: UserLiquidationHistoryStatus;
644
+ }
645
+ /** Status returned by profile liquidation history. */
646
+ interface UserLiquidationHistoryStatus {
647
+ operation: "liquidation";
648
+ state: "completed";
649
+ confirmations: null;
650
+ requiredConfirmations: null;
622
651
  }
623
652
  /** Any consumer-facing profile history entry. */
624
653
  type UserHistoryEntry = UserTransactionHistoryEntry | UserLiquidationHistoryEntry;
@@ -626,9 +655,9 @@ type UserHistoryEntry = UserTransactionHistoryEntry | UserLiquidationHistoryEntr
626
655
  interface UserTransactionHistoryFilters {
627
656
  /** Pagination cursor from a previous response. */
628
657
  cursor?: string;
629
- /** Maximum number of entries to return. */
658
+ /** Number of entries to return, from 1 to 200. Defaults to 50. */
630
659
  limit?: number;
631
- /** Market filter accepted by the SDK API. */
660
+ /** Alias for poolId. Ignored when poolId is provided. */
632
661
  market?: string;
633
662
  /** Pool principal text filter. */
634
663
  poolId?: string;
@@ -645,9 +674,9 @@ interface UserTransactionHistoryFilters {
645
674
  interface UserLiquidationHistoryFilters {
646
675
  /** Pagination cursor from a previous response. */
647
676
  cursor?: string;
648
- /** Maximum number of entries to return. */
677
+ /** Number of entries to return, from 1 to 200. Defaults to 50. */
649
678
  limit?: number;
650
- /** Market filter accepted by the SDK API. */
679
+ /** Alias for poolId. Ignored when poolId is provided. */
651
680
  market?: string;
652
681
  /** Pool principal text filter. */
653
682
  poolId?: string;
@@ -677,8 +706,37 @@ interface PaginatedResponse<T> {
677
706
  /** Cursor for the next page when more results are available. */
678
707
  nextCursor?: string;
679
708
  }
709
+ /** Protocol-wide lending activity operation. */
710
+ type ProtocolActivityOperation = LiquidiumOperation;
711
+ /** Completed protocol-wide lending activity entry. */
712
+ interface ProtocolActivityEntry {
713
+ id: string;
714
+ /** Lending operation that produced this activity. */
715
+ operation: ProtocolActivityOperation;
716
+ /** Pool principal text the activity belongs to. */
717
+ poolId: string;
718
+ /** Asset ticker of the pool. */
719
+ asset: string;
720
+ /** Decimal places of the raw amount. */
721
+ decimals: number;
722
+ /** Raw amount in base units. */
723
+ amount: bigint;
724
+ /** ISO-8601 timestamp of the confirmed activity. */
725
+ timestamp: string;
726
+ /** Chain transaction identifiers, when available. */
727
+ txids?: string[];
728
+ }
729
+ /** Filters for protocol-wide activity feed requests. */
730
+ interface ProtocolActivityFeedFilters {
731
+ /** Number of entries to return, from 1 to 100. Defaults to 50. */
732
+ limit?: number;
733
+ /** Pool principal text filter. */
734
+ poolId?: string;
735
+ /** Operation filters. */
736
+ operations?: ProtocolActivityOperation[];
737
+ }
680
738
 
681
- /** Historical user transaction and liquidation data helpers. */
739
+ /** User and protocol history data helpers. */
682
740
  declare class HistoryModule {
683
741
  private readonly apiClient;
684
742
  constructor(apiClient: ApiClient | undefined);
@@ -686,19 +744,26 @@ declare class HistoryModule {
686
744
  /**
687
745
  * Returns transaction history for a user.
688
746
  *
689
- * @param user - The Liquidium profile principal text.
747
+ * @param profileId - The Liquidium profile principal text.
690
748
  * @param filters - Optional pool, operation, state, time range, and pagination filters.
691
749
  * @returns Paginated user history entries.
692
750
  */
693
- getUserTransactionHistory(user: string, filters?: UserTransactionHistoryFilters): Promise<PaginatedResponse<UserTransactionHistoryEntry>>;
751
+ getUserTransactionHistory(profileId: string, filters?: UserTransactionHistoryFilters): Promise<PaginatedResponse<UserTransactionHistoryEntry>>;
694
752
  /**
695
753
  * Returns liquidation history for a user.
696
754
  *
697
- * @param user - The Liquidium profile principal text.
755
+ * @param profileId - The Liquidium profile principal text.
698
756
  * @param filters - Optional pool, time range, and pagination filters.
699
757
  * @returns Paginated liquidation history entries.
700
758
  */
701
- getLiquidationHistory(user: string, filters?: UserLiquidationHistoryFilters): Promise<PaginatedResponse<UserLiquidationHistoryEntry>>;
759
+ getLiquidationHistory(profileId: string, filters?: UserLiquidationHistoryFilters): Promise<PaginatedResponse<UserLiquidationHistoryEntry>>;
760
+ /**
761
+ * Returns recent protocol-wide lending activity across all users.
762
+ *
763
+ * @param filters - Optional pool, operation, and limit filters.
764
+ * @returns Recent confirmed lending activity entries.
765
+ */
766
+ getProtocolActivity(filters?: ProtocolActivityFeedFilters): Promise<ProtocolActivityEntry[]>;
702
767
  }
703
768
 
704
769
  /** Wallet execution dependencies for borrow and withdraw convenience methods. */
@@ -1131,6 +1196,8 @@ interface Pool {
1131
1196
  id: string;
1132
1197
  /** Asset supplied to and borrowed from the pool. */
1133
1198
  asset: Asset;
1199
+ /** Human-readable name of the pool asset. */
1200
+ displayName: string;
1134
1201
  /** Chain associated with the pool asset. */
1135
1202
  chain: Chain;
1136
1203
  /** Number of base-unit decimals for pool amounts. */
@@ -1147,22 +1214,26 @@ interface Pool {
1147
1214
  supplyCap?: bigint;
1148
1215
  /** Optional borrow cap in base units. */
1149
1216
  borrowCap?: bigint;
1150
- /** Maximum loan-to-value ratio, scaled by `rateDecimals`. */
1217
+ /** Maximum loan-to-value ratio in basis points. */
1151
1218
  maxLtv: bigint;
1152
- /** Liquidation threshold, scaled by `rateDecimals`. */
1219
+ /** Liquidation threshold in basis points. */
1153
1220
  liquidationThreshold: bigint;
1154
- /** Liquidation bonus, scaled by `rateDecimals`. */
1221
+ /** Liquidation bonus in basis points. */
1155
1222
  liquidationBonus: bigint;
1156
- /** Protocol liquidation fee, scaled by `rateDecimals`. */
1223
+ /** Protocol liquidation fee in basis points. */
1157
1224
  protocolLiquidationFee: bigint;
1158
- /** Reserve factor, scaled by `rateDecimals`. */
1225
+ /** Reserve factor in basis points. */
1159
1226
  reserveFactor: bigint;
1160
- /** Decimal scale used by rate and risk-ratio fields. */
1227
+ /** Decimal scale used by APR and utilization fields. */
1161
1228
  rateDecimals: bigint;
1162
1229
  /** Current supply APR, scaled by `rateDecimals`. */
1163
1230
  lendingRate: bigint;
1231
+ /** Estimated supply APY, scaled by `rateDecimals`. */
1232
+ estimatedLendingApy: bigint;
1164
1233
  /** Current borrow APR, scaled by `rateDecimals`. */
1165
1234
  borrowingRate: bigint;
1235
+ /** Estimated borrow APY, scaled by `rateDecimals`. */
1236
+ estimatedBorrowingApy: bigint;
1166
1237
  /** Current pool utilization, scaled by `rateDecimals`. */
1167
1238
  utilizationRate: bigint;
1168
1239
  /** Base borrow rate, scaled by `rateDecimals`. */
@@ -1186,6 +1257,13 @@ interface Pool {
1186
1257
  }
1187
1258
  /** USD price map keyed by market asset symbol. */
1188
1259
  type AssetPrices = Record<string, number>;
1260
+ /** Protocol prices with the time at which the SDK completed the fetch. */
1261
+ interface AssetPriceSnapshot {
1262
+ /** USD price map keyed by market asset symbol. */
1263
+ prices: AssetPrices;
1264
+ /** Unix timestamp in seconds when the SDK received the price response. */
1265
+ fetchedAt: bigint;
1266
+ }
1189
1267
  /** Supported Chain + Asset identifier used to find its backing lending pool. */
1190
1268
  type FindPoolQuery = AssetIdentifier;
1191
1269
  /** Current borrow, lend, and utilization rates for a pool. */
@@ -1194,8 +1272,12 @@ interface PoolRate {
1194
1272
  rateDecimals: bigint;
1195
1273
  /** Borrow APR scaled by `rateDecimals`. */
1196
1274
  borrowRate: bigint;
1275
+ /** Estimated borrow APY scaled by `rateDecimals`. */
1276
+ estimatedBorrowApy: bigint;
1197
1277
  /** Lend APR scaled by `rateDecimals`. */
1198
1278
  lendRate: bigint;
1279
+ /** Estimated lend APY scaled by `rateDecimals`. */
1280
+ estimatedLendApy: bigint;
1199
1281
  /** Utilization rate scaled by `rateDecimals`. */
1200
1282
  utilizationRate: bigint;
1201
1283
  }
@@ -1213,11 +1295,21 @@ declare class MarketModule {
1213
1295
  */
1214
1296
  listPools(): Promise<Pool[]>;
1215
1297
  /**
1216
- * Returns the latest asset prices reported by the protocol.
1298
+ * Returns the current cached asset prices reported by the protocol.
1217
1299
  *
1218
- * @returns The latest protocol price map keyed by market asset symbol.
1300
+ * @returns The current protocol price map keyed by market asset symbol.
1219
1301
  */
1220
1302
  getAssetPrices(): Promise<AssetPrices>;
1303
+ /**
1304
+ * Returns protocol prices with the time at which the SDK completed the fetch.
1305
+ *
1306
+ * `fetchedAt` is an SDK retrieval time, not an oracle observation timestamp.
1307
+ * The current lending canister price response does not expose the underlying
1308
+ * oracle timestamp.
1309
+ *
1310
+ * @returns Protocol prices and their SDK fetch timestamp.
1311
+ */
1312
+ getAssetPriceSnapshot(): Promise<AssetPriceSnapshot>;
1221
1313
  /**
1222
1314
  * Resolves a single backing pool for the given Chain + Asset identifier.
1223
1315
  *
@@ -1247,6 +1339,11 @@ declare class MarketModule {
1247
1339
  getPoolRate(poolId: string): Promise<PoolRate>;
1248
1340
  }
1249
1341
 
1342
+ /** Fixed-point scale used by protocol health factors. */
1343
+ declare const HEALTH_FACTOR_SCALE = 1000n;
1344
+ /** Number of decimal places represented by {@link HEALTH_FACTOR_SCALE}. */
1345
+ declare const HEALTH_FACTOR_DECIMALS = 3n;
1346
+
1250
1347
  /** Current profile position in one lending pool. */
1251
1348
  interface Position {
1252
1349
  /** Pool principal text. */
@@ -1270,7 +1367,7 @@ interface Position {
1270
1367
  }
1271
1368
  /** Aggregate borrowing capacity for a profile. */
1272
1369
  interface BorrowingPower {
1273
- /** Weighted maximum LTV, scaled by protocol rate decimals. */
1370
+ /** Weighted maximum LTV in basis points. */
1274
1371
  weightedMaxLtv: bigint;
1275
1372
  /** Maximum borrowable USD value, scaled by `maxBorrowableUsdDecimals`. */
1276
1373
  maxBorrowableUsd: bigint;
@@ -1287,15 +1384,17 @@ interface UserStats {
1287
1384
  collateral: bigint;
1288
1385
  /** Decimal scale for `collateral`. */
1289
1386
  collateralDecimals: bigint;
1290
- /** Weighted liquidation threshold, scaled by protocol rate decimals. */
1387
+ /** Weighted liquidation threshold in basis points. */
1291
1388
  weightedLiquidationThreshold: bigint;
1292
1389
  /** Current borrowing capacity. */
1293
1390
  borrowingPower: BorrowingPower;
1294
1391
  }
1295
1392
  /** Health factor and supporting aggregate stats for a profile. */
1296
1393
  interface HealthFactor {
1297
- /** Current health factor, scaled by protocol rate decimals. */
1298
- healthFactor: bigint;
1394
+ /** Health factor scaled by `healthFactorDecimals`, or `null` with no debt. */
1395
+ healthFactor: bigint | null;
1396
+ /** Decimal scale for a finite `healthFactor`. */
1397
+ healthFactorDecimals: bigint;
1299
1398
  /** Aggregate stats used to derive the health factor. */
1300
1399
  userStats: UserStats;
1301
1400
  }
@@ -1317,8 +1416,10 @@ interface UserPositionSummary {
1317
1416
  weightedMaxLtvBps: bigint;
1318
1417
  /** Weighted liquidation threshold in basis points. */
1319
1418
  weightedLiquidationThresholdBps: bigint;
1320
- /** Current health factor. */
1321
- healthFactor: bigint;
1419
+ /** Health factor scaled by `healthFactorDecimals`, or `null` with no debt. */
1420
+ healthFactor: bigint | null;
1421
+ /** Decimal scale for a finite `healthFactor`. */
1422
+ healthFactorDecimals: bigint;
1322
1423
  }
1323
1424
  /** Position joined with pool metadata and current USD valuation. */
1324
1425
  interface UserReserve {
@@ -2137,6 +2238,18 @@ declare class LiquidiumClient {
2137
2238
  constructor(config?: LiquidiumClientConfig);
2138
2239
  }
2139
2240
 
2241
+ /** Stable presentation metadata for an SDK-supported asset. */
2242
+ interface AssetMetadata {
2243
+ /** Canonical asset symbol used by SDK requests and responses. */
2244
+ symbol: Asset;
2245
+ /** Human-readable asset name. */
2246
+ displayName: string;
2247
+ }
2248
+ /** Presentation metadata keyed by SDK asset symbol. */
2249
+ declare const ASSET_METADATA: Readonly<Record<Asset, AssetMetadata>>;
2250
+ /** Returns stable presentation metadata for an SDK-supported asset. */
2251
+ declare function getAssetMetadata(asset: Asset): AssetMetadata;
2252
+
2140
2253
  /** Minimum borrow amounts in each asset's base units. */
2141
2254
  declare const MIN_BORROW_AMOUNTS_BY_ASSET: {
2142
2255
  readonly BTC: 5100n;
@@ -2202,6 +2315,7 @@ declare const LiquidiumErrorCode: {
2202
2315
  readonly WITHDRAW_TOO_LOW: "WITHDRAW_TOO_LOW";
2203
2316
  readonly REPAYMENT_EXCEEDS_DEBT: "REPAYMENT_EXCEEDS_DEBT";
2204
2317
  readonly INVALID_ADDRESS: "INVALID_ADDRESS";
2318
+ readonly CONTRACT_DESTINATION_UNSUPPORTED: "CONTRACT_DESTINATION_UNSUPPORTED";
2205
2319
  readonly DEPOSIT_ADDRESS_ERROR: "DEPOSIT_ADDRESS_ERROR";
2206
2320
  readonly NETWORK_ERROR: "NETWORK_ERROR";
2207
2321
  readonly SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE";
@@ -2252,6 +2366,26 @@ declare const CK_ETH_DEPOSIT_CONTRACT_ADDRESS = "0x18901044688D3756C35Ed2b36D93e
2252
2366
  declare const RATE_SCALE = 1000000000000000000000000000n;
2253
2367
  /** Number of decimal places represented by {@link RATE_SCALE}. */
2254
2368
  declare const RATE_DECIMALS: bigint;
2369
+ /** Number of seconds in the protocol's 365-day interest year. */
2370
+ declare const INTEREST_YEAR_365_DAYS_SECONDS = 31536000n;
2371
+ /** Scheduled interval used for estimated supply APY compounding. */
2372
+ declare const SUPPLY_COMPOUNDING_INTERVAL_15_SECONDS = 15n;
2373
+ /**
2374
+ * Estimates borrow APY from a current RAY-scaled APR.
2375
+ *
2376
+ * The estimate mirrors the protocol's per-second borrow compounding and assumes
2377
+ * the current APR remains unchanged for a 365-day year.
2378
+ */
2379
+ declare function estimateBorrowApy(borrowApr: bigint): bigint;
2380
+ /**
2381
+ * Estimates supply APY from a current RAY-scaled APR.
2382
+ *
2383
+ * The estimate uses the protocol's scheduled 15-second pool synchronization
2384
+ * interval and assumes the current APR remains unchanged for a 365-day year.
2385
+ * Additional protocol activity can synchronize a pool between timer ticks, so
2386
+ * this is not a realized-yield guarantee.
2387
+ */
2388
+ declare function estimateSupplyApy(supplyApr: bigint): bigint;
2255
2389
 
2256
2390
  /** Minimum withdraw amounts in each asset's base units. */
2257
2391
  declare const MIN_WITHDRAW_AMOUNTS_BY_ASSET: {
@@ -2292,4 +2426,4 @@ interface ExecuteWithOptions {
2292
2426
  */
2293
2427
  declare function executeWith(options: ExecuteWithOptions): <TResult>(action: WalletAction<TResult>) => Promise<TResult>;
2294
2428
 
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 };
2429
+ 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 };