@liquidium/client 0.5.1 → 0.6.0-rc.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/README.md +2 -2
- package/dist/index.cjs +291 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -23
- package/dist/index.d.ts +56 -23
- package/dist/index.js +290 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -41,6 +41,8 @@ interface LiquidiumClientConfig {
|
|
|
41
41
|
interface PoolCanisterIds {
|
|
42
42
|
/** BTC pool canister principal. */
|
|
43
43
|
btc: string;
|
|
44
|
+
/** ETH pool canister principal. */
|
|
45
|
+
eth: string;
|
|
44
46
|
/** USDT pool canister principal. */
|
|
45
47
|
usdt: string;
|
|
46
48
|
/** USDC pool canister principal. */
|
|
@@ -73,6 +75,7 @@ type Environment = (typeof Environment)[keyof typeof Environment];
|
|
|
73
75
|
/** Canonical asset symbols supported by state-mutating protocol flows. */
|
|
74
76
|
declare const Asset: {
|
|
75
77
|
readonly BTC: "BTC";
|
|
78
|
+
readonly ETH: "ETH";
|
|
76
79
|
readonly ICP: "ICP";
|
|
77
80
|
readonly USDC: "USDC";
|
|
78
81
|
readonly USDT: "USDT";
|
|
@@ -93,6 +96,9 @@ type SigningChain = typeof Chain.BTC | typeof Chain.ETH;
|
|
|
93
96
|
type AssetIdentifier = {
|
|
94
97
|
chain: typeof Chain.BTC;
|
|
95
98
|
asset: typeof Asset.BTC;
|
|
99
|
+
} | {
|
|
100
|
+
chain: typeof Chain.ETH;
|
|
101
|
+
asset: typeof Asset.ETH;
|
|
96
102
|
} | {
|
|
97
103
|
chain: typeof Chain.ETH;
|
|
98
104
|
asset: typeof Asset.USDC;
|
|
@@ -102,6 +108,9 @@ type AssetIdentifier = {
|
|
|
102
108
|
} | {
|
|
103
109
|
chain: typeof Chain.ICP;
|
|
104
110
|
asset: typeof Asset.BTC;
|
|
111
|
+
} | {
|
|
112
|
+
chain: typeof Chain.ICP;
|
|
113
|
+
asset: typeof Asset.ETH;
|
|
105
114
|
} | {
|
|
106
115
|
chain: typeof Chain.ICP;
|
|
107
116
|
asset: typeof Asset.ICP;
|
|
@@ -687,6 +696,8 @@ interface EvmContractTransaction {
|
|
|
687
696
|
to: string;
|
|
688
697
|
/** Hex-encoded calldata. */
|
|
689
698
|
data: string;
|
|
699
|
+
/** Native ETH value in wei, serialized as a decimal string. */
|
|
700
|
+
value?: string;
|
|
690
701
|
}
|
|
691
702
|
/** Parameters for an ERC-20 transfer transaction. */
|
|
692
703
|
interface CreateTransferErc20TransactionParams {
|
|
@@ -769,7 +780,8 @@ interface CreateWithdrawRequest {
|
|
|
769
780
|
poolId: string;
|
|
770
781
|
/**
|
|
771
782
|
* Amount to withdraw in the pool asset's base units. BTC withdrawals require
|
|
772
|
-
* at least 5,000 sats
|
|
783
|
+
* at least 5,000 sats, ETH requires at least 0.005 ETH, and USDC and USDT
|
|
784
|
+
* require at least 1 token.
|
|
773
785
|
*/
|
|
774
786
|
amount: bigint;
|
|
775
787
|
/** Chain where withdrawn funds should arrive. */
|
|
@@ -820,8 +832,8 @@ interface BaseSupplyFlowRequest {
|
|
|
820
832
|
}
|
|
821
833
|
/** Manual transfer-based `lending.supply` request. */
|
|
822
834
|
interface ManualTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
823
|
-
/**
|
|
824
|
-
mechanism?:
|
|
835
|
+
/** Explicit transfer mechanism. Omit this field to use the same default. */
|
|
836
|
+
mechanism?: typeof SupplyPlanType.transfer;
|
|
825
837
|
/** Manual supply does not broadcast through a wallet adapter. */
|
|
826
838
|
walletAdapter?: never;
|
|
827
839
|
/** Manual supply does not accept a sender account. */
|
|
@@ -831,13 +843,13 @@ interface ManualTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
|
831
843
|
}
|
|
832
844
|
/** Wallet-executed transfer-based `lending.supply` request. */
|
|
833
845
|
interface WalletTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
834
|
-
/**
|
|
835
|
-
mechanism?:
|
|
846
|
+
/** Explicit transfer mechanism. Omit this field to use the same default. */
|
|
847
|
+
mechanism?: typeof SupplyPlanType.transfer;
|
|
836
848
|
/** Wallet adapter used to broadcast the transfer. */
|
|
837
849
|
walletAdapter: Pick<WalletAdapter, "sendBtcTransaction" | "sendEthTransaction" | "sendIcrcTransfer">;
|
|
838
850
|
/** Sender wallet account. */
|
|
839
851
|
account: string;
|
|
840
|
-
/** Transfer amount in the
|
|
852
|
+
/** Transfer amount in base units. Deposits enforce the asset product minimum. */
|
|
841
853
|
amount: bigint;
|
|
842
854
|
}
|
|
843
855
|
/** Transfer-based supply request, either manual or wallet-executed. */
|
|
@@ -846,13 +858,13 @@ type TransferSupplyFlowRequest = ManualTransferSupplyFlowRequest | WalletTransfe
|
|
|
846
858
|
interface ContractInteractionSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
847
859
|
/** Contract-interaction mechanism discriminator. */
|
|
848
860
|
mechanism: typeof SupplyPlanType.contractInteraction;
|
|
849
|
-
/** Contract interaction is
|
|
861
|
+
/** Contract interaction is supported for native ETH, USDC, and USDT pools on Ethereum. */
|
|
850
862
|
chain: typeof Chain.ETH;
|
|
851
|
-
/** ETH wallet adapter used to approve and deposit ERC-20 assets. */
|
|
863
|
+
/** ETH wallet adapter used to deposit native ETH or approve and deposit ERC-20 assets. */
|
|
852
864
|
walletAdapter: Pick<WalletAdapter, "sendEthTransaction">;
|
|
853
865
|
/** Sender EVM wallet address. */
|
|
854
866
|
account: string;
|
|
855
|
-
/**
|
|
867
|
+
/** Amount in token base units. Deposits enforce the asset product minimum. */
|
|
856
868
|
amount: bigint;
|
|
857
869
|
}
|
|
858
870
|
/** Request accepted by `lending.supply(...)`. */
|
|
@@ -906,14 +918,14 @@ interface SubmitInflowResponse {
|
|
|
906
918
|
}
|
|
907
919
|
/** Chain and asset pair for estimating an inflow target fee. */
|
|
908
920
|
type EstimateInflowFeeRequest = AssetIdentifier;
|
|
909
|
-
/** Request for
|
|
921
|
+
/** Request for a native ETH or ETH stablecoin deposit address. */
|
|
910
922
|
interface GetDepositAddressRequest {
|
|
911
923
|
/** Liquidium profile principal text. */
|
|
912
924
|
profileId: string;
|
|
913
925
|
/** Pool principal text receiving the inflow. */
|
|
914
926
|
poolId: string;
|
|
915
|
-
/** ETH stablecoin asset. */
|
|
916
|
-
asset: typeof Asset.USDC | typeof Asset.USDT;
|
|
927
|
+
/** Native ETH or ETH stablecoin asset. */
|
|
928
|
+
asset: typeof Asset.ETH | typeof Asset.USDC | typeof Asset.USDT;
|
|
917
929
|
/** Deposit or repayment action for the inflow. */
|
|
918
930
|
action: SupplyAction;
|
|
919
931
|
}
|
|
@@ -1053,7 +1065,7 @@ declare class LendingModule {
|
|
|
1053
1065
|
*/
|
|
1054
1066
|
getEvmSupplyContext(request: GetEvmSupplyContextRequest): Promise<EvmSupplyContext>;
|
|
1055
1067
|
/**
|
|
1056
|
-
* Returns the read-only deposit address for an ETH
|
|
1068
|
+
* Returns the read-only deposit address for an ETH-chain inflow target.
|
|
1057
1069
|
*
|
|
1058
1070
|
* This is a query call that does not create or mutate state. Use it when you
|
|
1059
1071
|
* need the deposit address without hitting the authorization-gated update path.
|
|
@@ -1065,7 +1077,7 @@ declare class LendingModule {
|
|
|
1065
1077
|
/**
|
|
1066
1078
|
* Estimates the network/deposit fee for an inflow target.
|
|
1067
1079
|
*
|
|
1068
|
-
* ETH
|
|
1080
|
+
* ETH-chain deposit-address estimates are served by the deposit-address
|
|
1069
1081
|
* canister. BTC estimates include the ckBTC minter deposit fee and ledger fee.
|
|
1070
1082
|
* ICP-chain estimates return the corresponding ICRC ledger fee.
|
|
1071
1083
|
*
|
|
@@ -1569,10 +1581,11 @@ interface CreateSimpleLoanCollateral {
|
|
|
1569
1581
|
* Intended credited collateral amount, in base units.
|
|
1570
1582
|
*
|
|
1571
1583
|
* This is used to validate LTV and initialize the loan record before
|
|
1572
|
-
* deposit/inflow fees are deducted. For BTC, pass satoshis.
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1584
|
+
* deposit/inflow fees are deducted. For BTC, pass satoshis. ETH and ckETH use
|
|
1585
|
+
* 18-decimal wei base units; do not pass human-readable ETH values directly.
|
|
1586
|
+
* For token assets, convert the UI amount using the selected pool's `decimals`
|
|
1587
|
+
* value. After creation, use one of `loan.initialDeposit.targets` as the
|
|
1588
|
+
* fee-inclusive transfer quote and destination.
|
|
1576
1589
|
*/
|
|
1577
1590
|
amount: bigint;
|
|
1578
1591
|
}
|
|
@@ -1593,8 +1606,9 @@ type CreateSimpleLoanBorrow = AssetIdentifier & {
|
|
|
1593
1606
|
/**
|
|
1594
1607
|
* Amount to borrow, in the borrow asset's base units.
|
|
1595
1608
|
*
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1609
|
+
* ETH and ckETH use 18-decimal wei base units; do not pass human-readable ETH
|
|
1610
|
+
* values directly. For USDC/USDT, convert the UI amount using the selected
|
|
1611
|
+
* borrow pool's `decimals` value before passing it here.
|
|
1598
1612
|
*/
|
|
1599
1613
|
amount: bigint;
|
|
1600
1614
|
/**
|
|
@@ -1838,7 +1852,7 @@ type SimpleLoanEventType = SimpleLoanCreatedEventType | SimpleLoanFullLendWithdr
|
|
|
1838
1852
|
interface SimpleLoanInitialDepositTargetQuote {
|
|
1839
1853
|
/** Full amount to send to the collateral deposit target, including fee. */
|
|
1840
1854
|
amount: bigint;
|
|
1841
|
-
/** Inflow fee amount in base units added to the transfer amount. */
|
|
1855
|
+
/** Inflow fee amount in base units added to the transfer amount. Native ETH falls back to 0.00025 ETH when the live estimate fails or is non-positive. */
|
|
1842
1856
|
inflowFeeAmount: bigint;
|
|
1843
1857
|
/** Address or ICRC account where the collateral should be sent. */
|
|
1844
1858
|
target: SupplyTarget;
|
|
@@ -1847,7 +1861,7 @@ interface SimpleLoanInitialDepositTargetQuote {
|
|
|
1847
1861
|
interface SimpleLoanRepaymentTargetQuote {
|
|
1848
1862
|
/** Full amount to send to the repayment target, including fee and interest buffer. */
|
|
1849
1863
|
amount: bigint;
|
|
1850
|
-
/** Inflow fee amount in base units added to the repayment transfer.
|
|
1864
|
+
/** Inflow fee amount in base units added to the repayment transfer. Native ETH falls back to 0.00025 ETH when the live estimate fails or is non-positive. */
|
|
1851
1865
|
inflowFeeAmount: bigint;
|
|
1852
1866
|
/** Whether `inflowFeeAmount` came from a live fee estimate. */
|
|
1853
1867
|
inflowFeeEstimateAvailable: boolean;
|
|
@@ -2058,6 +2072,7 @@ declare class SimpleLoansModule {
|
|
|
2058
2072
|
private getCollateralAmountHint;
|
|
2059
2073
|
private hydrateLoan;
|
|
2060
2074
|
private createInitialDepositQuote;
|
|
2075
|
+
private estimateInitialDepositInflowFee;
|
|
2061
2076
|
private resolveSimpleLoanInflowTargets;
|
|
2062
2077
|
private createRepaymentTargetQuotes;
|
|
2063
2078
|
private estimateRepaymentInflowFee;
|
|
@@ -2102,6 +2117,7 @@ declare class LiquidiumClient {
|
|
|
2102
2117
|
/** Minimum borrow amounts in each asset's base units. */
|
|
2103
2118
|
declare const MIN_BORROW_AMOUNTS_BY_ASSET: {
|
|
2104
2119
|
readonly BTC: 5100n;
|
|
2120
|
+
readonly ETH: 5000000000000000n;
|
|
2105
2121
|
readonly USDC: 1000000n;
|
|
2106
2122
|
readonly USDT: 1000000n;
|
|
2107
2123
|
};
|
|
@@ -2113,6 +2129,22 @@ type MinimumBorrowAsset = keyof typeof MIN_BORROW_AMOUNTS_BY_ASSET;
|
|
|
2113
2129
|
*/
|
|
2114
2130
|
declare function getMinimumBorrowAmount(asset: string): bigint;
|
|
2115
2131
|
|
|
2132
|
+
/** Minimum deposit amounts in each asset's base units. */
|
|
2133
|
+
declare const MIN_DEPOSIT_AMOUNTS_BY_ASSET: {
|
|
2134
|
+
readonly BTC: 5100n;
|
|
2135
|
+
readonly ETH: 5000000000000000n;
|
|
2136
|
+
readonly ICP: 10000n;
|
|
2137
|
+
readonly USDC: 1000000n;
|
|
2138
|
+
readonly USDT: 1000000n;
|
|
2139
|
+
};
|
|
2140
|
+
type MinimumDepositAsset = keyof typeof MIN_DEPOSIT_AMOUNTS_BY_ASSET;
|
|
2141
|
+
/**
|
|
2142
|
+
* Returns the minimum deposit amount for an asset in base units.
|
|
2143
|
+
*
|
|
2144
|
+
* Assets without a configured product minimum return `0n`.
|
|
2145
|
+
*/
|
|
2146
|
+
declare function getMinimumDepositAmount(asset: string): bigint;
|
|
2147
|
+
|
|
2116
2148
|
/**
|
|
2117
2149
|
* Stable string codes for {@link LiquidiumError}. Use for branching in application code.
|
|
2118
2150
|
*/
|
|
@@ -2201,6 +2233,7 @@ declare const RATE_DECIMALS: bigint;
|
|
|
2201
2233
|
/** Minimum withdraw amounts in each asset's base units. */
|
|
2202
2234
|
declare const MIN_WITHDRAW_AMOUNTS_BY_ASSET: {
|
|
2203
2235
|
readonly BTC: 5000n;
|
|
2236
|
+
readonly ETH: 5000000000000000n;
|
|
2204
2237
|
readonly USDC: 1000000n;
|
|
2205
2238
|
readonly USDT: 1000000n;
|
|
2206
2239
|
};
|
|
@@ -2236,4 +2269,4 @@ interface ExecuteWithOptions {
|
|
|
2236
2269
|
*/
|
|
2237
2270
|
declare function executeWith(options: ExecuteWithOptions): <TResult>(action: WalletAction<TResult>) => Promise<TResult>;
|
|
2238
2271
|
|
|
2239
|
-
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, 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 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 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_WITHDRAW_AMOUNTS_BY_ASSET, type ManualTransferSupplyFlowRequest, MarketModule, type MaxRepayAmount, type MinimumBorrowAsset, 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 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, getMinimumWithdrawAmount, intFromPublicId, isAssetIdentifier, publicIdFromInt };
|
|
2272
|
+
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, 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 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 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 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ interface LiquidiumClientConfig {
|
|
|
41
41
|
interface PoolCanisterIds {
|
|
42
42
|
/** BTC pool canister principal. */
|
|
43
43
|
btc: string;
|
|
44
|
+
/** ETH pool canister principal. */
|
|
45
|
+
eth: string;
|
|
44
46
|
/** USDT pool canister principal. */
|
|
45
47
|
usdt: string;
|
|
46
48
|
/** USDC pool canister principal. */
|
|
@@ -73,6 +75,7 @@ type Environment = (typeof Environment)[keyof typeof Environment];
|
|
|
73
75
|
/** Canonical asset symbols supported by state-mutating protocol flows. */
|
|
74
76
|
declare const Asset: {
|
|
75
77
|
readonly BTC: "BTC";
|
|
78
|
+
readonly ETH: "ETH";
|
|
76
79
|
readonly ICP: "ICP";
|
|
77
80
|
readonly USDC: "USDC";
|
|
78
81
|
readonly USDT: "USDT";
|
|
@@ -93,6 +96,9 @@ type SigningChain = typeof Chain.BTC | typeof Chain.ETH;
|
|
|
93
96
|
type AssetIdentifier = {
|
|
94
97
|
chain: typeof Chain.BTC;
|
|
95
98
|
asset: typeof Asset.BTC;
|
|
99
|
+
} | {
|
|
100
|
+
chain: typeof Chain.ETH;
|
|
101
|
+
asset: typeof Asset.ETH;
|
|
96
102
|
} | {
|
|
97
103
|
chain: typeof Chain.ETH;
|
|
98
104
|
asset: typeof Asset.USDC;
|
|
@@ -102,6 +108,9 @@ type AssetIdentifier = {
|
|
|
102
108
|
} | {
|
|
103
109
|
chain: typeof Chain.ICP;
|
|
104
110
|
asset: typeof Asset.BTC;
|
|
111
|
+
} | {
|
|
112
|
+
chain: typeof Chain.ICP;
|
|
113
|
+
asset: typeof Asset.ETH;
|
|
105
114
|
} | {
|
|
106
115
|
chain: typeof Chain.ICP;
|
|
107
116
|
asset: typeof Asset.ICP;
|
|
@@ -687,6 +696,8 @@ interface EvmContractTransaction {
|
|
|
687
696
|
to: string;
|
|
688
697
|
/** Hex-encoded calldata. */
|
|
689
698
|
data: string;
|
|
699
|
+
/** Native ETH value in wei, serialized as a decimal string. */
|
|
700
|
+
value?: string;
|
|
690
701
|
}
|
|
691
702
|
/** Parameters for an ERC-20 transfer transaction. */
|
|
692
703
|
interface CreateTransferErc20TransactionParams {
|
|
@@ -769,7 +780,8 @@ interface CreateWithdrawRequest {
|
|
|
769
780
|
poolId: string;
|
|
770
781
|
/**
|
|
771
782
|
* Amount to withdraw in the pool asset's base units. BTC withdrawals require
|
|
772
|
-
* at least 5,000 sats
|
|
783
|
+
* at least 5,000 sats, ETH requires at least 0.005 ETH, and USDC and USDT
|
|
784
|
+
* require at least 1 token.
|
|
773
785
|
*/
|
|
774
786
|
amount: bigint;
|
|
775
787
|
/** Chain where withdrawn funds should arrive. */
|
|
@@ -820,8 +832,8 @@ interface BaseSupplyFlowRequest {
|
|
|
820
832
|
}
|
|
821
833
|
/** Manual transfer-based `lending.supply` request. */
|
|
822
834
|
interface ManualTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
823
|
-
/**
|
|
824
|
-
mechanism?:
|
|
835
|
+
/** Explicit transfer mechanism. Omit this field to use the same default. */
|
|
836
|
+
mechanism?: typeof SupplyPlanType.transfer;
|
|
825
837
|
/** Manual supply does not broadcast through a wallet adapter. */
|
|
826
838
|
walletAdapter?: never;
|
|
827
839
|
/** Manual supply does not accept a sender account. */
|
|
@@ -831,13 +843,13 @@ interface ManualTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
|
831
843
|
}
|
|
832
844
|
/** Wallet-executed transfer-based `lending.supply` request. */
|
|
833
845
|
interface WalletTransferSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
834
|
-
/**
|
|
835
|
-
mechanism?:
|
|
846
|
+
/** Explicit transfer mechanism. Omit this field to use the same default. */
|
|
847
|
+
mechanism?: typeof SupplyPlanType.transfer;
|
|
836
848
|
/** Wallet adapter used to broadcast the transfer. */
|
|
837
849
|
walletAdapter: Pick<WalletAdapter, "sendBtcTransaction" | "sendEthTransaction" | "sendIcrcTransfer">;
|
|
838
850
|
/** Sender wallet account. */
|
|
839
851
|
account: string;
|
|
840
|
-
/** Transfer amount in the
|
|
852
|
+
/** Transfer amount in base units. Deposits enforce the asset product minimum. */
|
|
841
853
|
amount: bigint;
|
|
842
854
|
}
|
|
843
855
|
/** Transfer-based supply request, either manual or wallet-executed. */
|
|
@@ -846,13 +858,13 @@ type TransferSupplyFlowRequest = ManualTransferSupplyFlowRequest | WalletTransfe
|
|
|
846
858
|
interface ContractInteractionSupplyFlowRequest extends BaseSupplyFlowRequest {
|
|
847
859
|
/** Contract-interaction mechanism discriminator. */
|
|
848
860
|
mechanism: typeof SupplyPlanType.contractInteraction;
|
|
849
|
-
/** Contract interaction is
|
|
861
|
+
/** Contract interaction is supported for native ETH, USDC, and USDT pools on Ethereum. */
|
|
850
862
|
chain: typeof Chain.ETH;
|
|
851
|
-
/** ETH wallet adapter used to approve and deposit ERC-20 assets. */
|
|
863
|
+
/** ETH wallet adapter used to deposit native ETH or approve and deposit ERC-20 assets. */
|
|
852
864
|
walletAdapter: Pick<WalletAdapter, "sendEthTransaction">;
|
|
853
865
|
/** Sender EVM wallet address. */
|
|
854
866
|
account: string;
|
|
855
|
-
/**
|
|
867
|
+
/** Amount in token base units. Deposits enforce the asset product minimum. */
|
|
856
868
|
amount: bigint;
|
|
857
869
|
}
|
|
858
870
|
/** Request accepted by `lending.supply(...)`. */
|
|
@@ -906,14 +918,14 @@ interface SubmitInflowResponse {
|
|
|
906
918
|
}
|
|
907
919
|
/** Chain and asset pair for estimating an inflow target fee. */
|
|
908
920
|
type EstimateInflowFeeRequest = AssetIdentifier;
|
|
909
|
-
/** Request for
|
|
921
|
+
/** Request for a native ETH or ETH stablecoin deposit address. */
|
|
910
922
|
interface GetDepositAddressRequest {
|
|
911
923
|
/** Liquidium profile principal text. */
|
|
912
924
|
profileId: string;
|
|
913
925
|
/** Pool principal text receiving the inflow. */
|
|
914
926
|
poolId: string;
|
|
915
|
-
/** ETH stablecoin asset. */
|
|
916
|
-
asset: typeof Asset.USDC | typeof Asset.USDT;
|
|
927
|
+
/** Native ETH or ETH stablecoin asset. */
|
|
928
|
+
asset: typeof Asset.ETH | typeof Asset.USDC | typeof Asset.USDT;
|
|
917
929
|
/** Deposit or repayment action for the inflow. */
|
|
918
930
|
action: SupplyAction;
|
|
919
931
|
}
|
|
@@ -1053,7 +1065,7 @@ declare class LendingModule {
|
|
|
1053
1065
|
*/
|
|
1054
1066
|
getEvmSupplyContext(request: GetEvmSupplyContextRequest): Promise<EvmSupplyContext>;
|
|
1055
1067
|
/**
|
|
1056
|
-
* Returns the read-only deposit address for an ETH
|
|
1068
|
+
* Returns the read-only deposit address for an ETH-chain inflow target.
|
|
1057
1069
|
*
|
|
1058
1070
|
* This is a query call that does not create or mutate state. Use it when you
|
|
1059
1071
|
* need the deposit address without hitting the authorization-gated update path.
|
|
@@ -1065,7 +1077,7 @@ declare class LendingModule {
|
|
|
1065
1077
|
/**
|
|
1066
1078
|
* Estimates the network/deposit fee for an inflow target.
|
|
1067
1079
|
*
|
|
1068
|
-
* ETH
|
|
1080
|
+
* ETH-chain deposit-address estimates are served by the deposit-address
|
|
1069
1081
|
* canister. BTC estimates include the ckBTC minter deposit fee and ledger fee.
|
|
1070
1082
|
* ICP-chain estimates return the corresponding ICRC ledger fee.
|
|
1071
1083
|
*
|
|
@@ -1569,10 +1581,11 @@ interface CreateSimpleLoanCollateral {
|
|
|
1569
1581
|
* Intended credited collateral amount, in base units.
|
|
1570
1582
|
*
|
|
1571
1583
|
* This is used to validate LTV and initialize the loan record before
|
|
1572
|
-
* deposit/inflow fees are deducted. For BTC, pass satoshis.
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
*
|
|
1584
|
+
* deposit/inflow fees are deducted. For BTC, pass satoshis. ETH and ckETH use
|
|
1585
|
+
* 18-decimal wei base units; do not pass human-readable ETH values directly.
|
|
1586
|
+
* For token assets, convert the UI amount using the selected pool's `decimals`
|
|
1587
|
+
* value. After creation, use one of `loan.initialDeposit.targets` as the
|
|
1588
|
+
* fee-inclusive transfer quote and destination.
|
|
1576
1589
|
*/
|
|
1577
1590
|
amount: bigint;
|
|
1578
1591
|
}
|
|
@@ -1593,8 +1606,9 @@ type CreateSimpleLoanBorrow = AssetIdentifier & {
|
|
|
1593
1606
|
/**
|
|
1594
1607
|
* Amount to borrow, in the borrow asset's base units.
|
|
1595
1608
|
*
|
|
1596
|
-
*
|
|
1597
|
-
*
|
|
1609
|
+
* ETH and ckETH use 18-decimal wei base units; do not pass human-readable ETH
|
|
1610
|
+
* values directly. For USDC/USDT, convert the UI amount using the selected
|
|
1611
|
+
* borrow pool's `decimals` value before passing it here.
|
|
1598
1612
|
*/
|
|
1599
1613
|
amount: bigint;
|
|
1600
1614
|
/**
|
|
@@ -1838,7 +1852,7 @@ type SimpleLoanEventType = SimpleLoanCreatedEventType | SimpleLoanFullLendWithdr
|
|
|
1838
1852
|
interface SimpleLoanInitialDepositTargetQuote {
|
|
1839
1853
|
/** Full amount to send to the collateral deposit target, including fee. */
|
|
1840
1854
|
amount: bigint;
|
|
1841
|
-
/** Inflow fee amount in base units added to the transfer amount. */
|
|
1855
|
+
/** Inflow fee amount in base units added to the transfer amount. Native ETH falls back to 0.00025 ETH when the live estimate fails or is non-positive. */
|
|
1842
1856
|
inflowFeeAmount: bigint;
|
|
1843
1857
|
/** Address or ICRC account where the collateral should be sent. */
|
|
1844
1858
|
target: SupplyTarget;
|
|
@@ -1847,7 +1861,7 @@ interface SimpleLoanInitialDepositTargetQuote {
|
|
|
1847
1861
|
interface SimpleLoanRepaymentTargetQuote {
|
|
1848
1862
|
/** Full amount to send to the repayment target, including fee and interest buffer. */
|
|
1849
1863
|
amount: bigint;
|
|
1850
|
-
/** Inflow fee amount in base units added to the repayment transfer.
|
|
1864
|
+
/** Inflow fee amount in base units added to the repayment transfer. Native ETH falls back to 0.00025 ETH when the live estimate fails or is non-positive. */
|
|
1851
1865
|
inflowFeeAmount: bigint;
|
|
1852
1866
|
/** Whether `inflowFeeAmount` came from a live fee estimate. */
|
|
1853
1867
|
inflowFeeEstimateAvailable: boolean;
|
|
@@ -2058,6 +2072,7 @@ declare class SimpleLoansModule {
|
|
|
2058
2072
|
private getCollateralAmountHint;
|
|
2059
2073
|
private hydrateLoan;
|
|
2060
2074
|
private createInitialDepositQuote;
|
|
2075
|
+
private estimateInitialDepositInflowFee;
|
|
2061
2076
|
private resolveSimpleLoanInflowTargets;
|
|
2062
2077
|
private createRepaymentTargetQuotes;
|
|
2063
2078
|
private estimateRepaymentInflowFee;
|
|
@@ -2102,6 +2117,7 @@ declare class LiquidiumClient {
|
|
|
2102
2117
|
/** Minimum borrow amounts in each asset's base units. */
|
|
2103
2118
|
declare const MIN_BORROW_AMOUNTS_BY_ASSET: {
|
|
2104
2119
|
readonly BTC: 5100n;
|
|
2120
|
+
readonly ETH: 5000000000000000n;
|
|
2105
2121
|
readonly USDC: 1000000n;
|
|
2106
2122
|
readonly USDT: 1000000n;
|
|
2107
2123
|
};
|
|
@@ -2113,6 +2129,22 @@ type MinimumBorrowAsset = keyof typeof MIN_BORROW_AMOUNTS_BY_ASSET;
|
|
|
2113
2129
|
*/
|
|
2114
2130
|
declare function getMinimumBorrowAmount(asset: string): bigint;
|
|
2115
2131
|
|
|
2132
|
+
/** Minimum deposit amounts in each asset's base units. */
|
|
2133
|
+
declare const MIN_DEPOSIT_AMOUNTS_BY_ASSET: {
|
|
2134
|
+
readonly BTC: 5100n;
|
|
2135
|
+
readonly ETH: 5000000000000000n;
|
|
2136
|
+
readonly ICP: 10000n;
|
|
2137
|
+
readonly USDC: 1000000n;
|
|
2138
|
+
readonly USDT: 1000000n;
|
|
2139
|
+
};
|
|
2140
|
+
type MinimumDepositAsset = keyof typeof MIN_DEPOSIT_AMOUNTS_BY_ASSET;
|
|
2141
|
+
/**
|
|
2142
|
+
* Returns the minimum deposit amount for an asset in base units.
|
|
2143
|
+
*
|
|
2144
|
+
* Assets without a configured product minimum return `0n`.
|
|
2145
|
+
*/
|
|
2146
|
+
declare function getMinimumDepositAmount(asset: string): bigint;
|
|
2147
|
+
|
|
2116
2148
|
/**
|
|
2117
2149
|
* Stable string codes for {@link LiquidiumError}. Use for branching in application code.
|
|
2118
2150
|
*/
|
|
@@ -2201,6 +2233,7 @@ declare const RATE_DECIMALS: bigint;
|
|
|
2201
2233
|
/** Minimum withdraw amounts in each asset's base units. */
|
|
2202
2234
|
declare const MIN_WITHDRAW_AMOUNTS_BY_ASSET: {
|
|
2203
2235
|
readonly BTC: 5000n;
|
|
2236
|
+
readonly ETH: 5000000000000000n;
|
|
2204
2237
|
readonly USDC: 1000000n;
|
|
2205
2238
|
readonly USDT: 1000000n;
|
|
2206
2239
|
};
|
|
@@ -2236,4 +2269,4 @@ interface ExecuteWithOptions {
|
|
|
2236
2269
|
*/
|
|
2237
2270
|
declare function executeWith(options: ExecuteWithOptions): <TResult>(action: WalletAction<TResult>) => Promise<TResult>;
|
|
2238
2271
|
|
|
2239
|
-
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, 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 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 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_WITHDRAW_AMOUNTS_BY_ASSET, type ManualTransferSupplyFlowRequest, MarketModule, type MaxRepayAmount, type MinimumBorrowAsset, 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 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, getMinimumWithdrawAmount, intFromPublicId, isAssetIdentifier, publicIdFromInt };
|
|
2272
|
+
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, 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 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 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 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 };
|