Changelog
Released changes for @liquidium/client. This page is generated from packages/client/CHANGELOG.md.
@liquidium/client
0.8.3
Patch Changes
- aae3663: Support decoding the latest headless-loans pool validation errors.
0.8.2
Patch Changes
- Support the current ICP wallet adoption schema and related canister errors.
0.8.1
Patch Changes
- 9f6c8a2: Decode legacy Ethereum and native IC authorization metadata for Simple Loans.
0.8.0
Minor Changes
- 3a06781: Allow callers to provide a preconfigured ICP agent through
LiquidiumClientConfig.agent.
0.7.1
Patch Changes
- 033f016: Reject reserved Ethereum destinations and best-effort block native ETH addresses with deployed code.
0.7.0
Minor Changes
- 8ed003f: Expose estimated borrow and supply APYs for current pool rates.
- 8ed003f: Add price snapshots with an explicit SDK fetch timestamp.
- 8ed003f: Add stable display names for supported assets.
- 8ed003f: Expose the health-factor scale and return null for no-debt health factors.
- 8ed003f: Add an account helper for distinguishing registered profiles from unknown IDs.
- d38dc31: Add the protocol-wide activity history feed backed by
GET /v2/history/activities.
0.6.0
Minor Changes
-
e53daf1: Add native ETH and ckETH support across market, lending, positions, quotes, and Simple Loans. Profile inflows support explicit transfer and payable contract-interaction mechanisms and enforce asset deposit minimums.
Mechanism changes
- Native ETH supplies support direct transfers to generated EVM deposit addresses and payable contract interactions through the ckETH deposit helper.
- ckETH transfers use
Chain.ICPand the ckETH ICRC ledger. - USDC and USDT contract interactions continue to approve the deposit helper before calling
depositErc20. - Simple Loans expose native ETH and ckETH transfer targets but do not execute contract interactions.
Breaking changes
Asset,AssetIdentifier, andSimpleLoanAssetnow include ETH. Add ETH handling to exhaustive asset mappings and switches.- Complete
PoolCanisterIdsconfigurations must includepools.eth. - Wallet-executed deposits and Simple Loan collateral now enforce asset-specific minimum amounts. Use
getMinimumDepositAmount(asset)to validate input before submission. - EVM wallet and deposit addresses are validated and returned in checksummed form. Normalize addresses or compare them case-insensitively.
getDepositAddress(...)now validates that the requested asset matches the selected Ethereum pool.- Ethereum transaction amounts above the
uint256maximum are rejected.
Patch Changes
-
8205a68: Expose named asset identifier types for each supported asset and transfer-chain pair.
-
Validate Simple Loans collateral deposit minimums and reject native ETH transfer amounts above the uint256 maximum.
-
Hide supplied balances below each pool's dust threshold while preserving active debt, and cap confirmation progress to the confirming state.
0.6.0-rc.3
Patch Changes
- Expose named asset identifier types for each supported asset and transfer-chain pair.
0.6.0-rc.2
Patch Changes
- Hide supplied balances below each pool's dust threshold while preserving active debt, and cap confirmation progress to the confirming state.
0.6.0-rc.1
Patch Changes
- Validate Simple Loans collateral deposit minimums and reject native ETH transfer amounts above the uint256 maximum.
0.6.0-rc.0
Minor Changes
- e53daf1: Add native ETH and ckETH support across market, lending, positions, quotes, and Simple Loans. Profile inflows support explicit transfer and payable contract-interaction mechanisms and enforce asset deposit minimums.
0.5.2
Patch Changes
- 32d391f: Hide supplied balances below each pool's dust threshold while preserving positions with active debt.
0.5.1
Patch Changes
- 88cfd04: Apply lending and borrow indexes when mapping current pool totals.
0.5.0
Minor Changes
-
cff20c5: Add native ICP and chain-key asset routes using explicit
Chain+Assetidentifiers.Breaking changes
- Rename the Instant Loans SDK surface to Simple Loans. Use
client.simpleLoans,SimpleLoansModule,SimpleLoan*types, andcanisterIds.simpleLoans. - Simple Loans creation now groups fields under
collateral,borrow, andrefund. Bothborrowandrefundrequire an explicit deliverychainanddestination. - Simple Loans deposit and repayment quotes now live in chain-keyed
targetsmaps. Replace fields such asinitialDeposit.targetandrepayment.amountwithinitialDeposit.targets[chain]andrepayment.targets[chain]. - Borrow and withdraw requests replace
receiverAddresswithchainandreceiver. - Every
lending.supply(...)request requireschain. Transfer flows must no longer passmechanism: SupplyPlanType.transfer. - Account responses now use
LiquidiumAccount:External,Native,AccountIdentifier, andIcrcbecomeChainAddress,IcPrincipal,IcpAccountIdentifier, andIcrcAccount. Response fields useaddressinstead ofaccountorprincipal. SupplyTargetis now a flat shape withchain,asset, andaddress. Removetarget.typechecks and stop reading ICRC-specific target fields.- Pool canister overrides move from
btcPoolandercPooltopools.btcandpools.usdt. TransferMode,MarketAsset,MarketChain, legacy account and supply-target types, and borrow/withdraw signature aliases are removed. UseSignMessageWalletAction,Asset,Chain,LiquidiumAccount,SupplyTarget, andSignatureInfoinstead.Asset.SOLis removed. Chain-key activities now reportChain.ICP.
Added
- Add ICP, ckBTC, ckUSDC, and ckUSDT transfer routes, ICRC wallet transfers, ledger fee estimates, and chain-keyed Simple Loans quotes.
- Add
SimpleLoanCreatedErrorfor recovering a created loan when subsequent state hydration fails. RetrysimpleLoans.get(...)instead of creation.
- Rename the Instant Loans SDK surface to Simple Loans. Use
Patch Changes
-
9c8532d: Rename the Instant Loans SDK surface to Simple Loans. Use
client.simpleLoans,SimpleLoansModule,SimpleLoan*types, andcanisterIds.simpleLoans.Expose each pool's
sameAssetBorrowingDustThresholdand enforce the pool's same-asset borrowing policy in quotes, Simple Loans creation, and profile-based borrow preparation.
0.5.0-rc.1
Patch Changes
-
Rename the Instant Loans SDK surface to Simple Loans. Use
client.simpleLoans,SimpleLoansModule,SimpleLoan*types, andcanisterIds.simpleLoans.Expose each pool's
sameAssetBorrowingDustThresholdand enforce the pool's same-asset borrowing policy in quotes, Simple Loans creation, and profile-based borrow preparation.
0.5.0-rc.0
Minor Changes
-
cff20c5: Add native ICP and chain-key asset routes using explicit
Chain+Assetidentifiers.Breaking changes
- Instant-loan creation now groups fields under
collateral,borrow, andrefund. Bothborrowandrefundrequire an explicit deliverychainanddestination. - Instant-loan deposit and repayment quotes now live in chain-keyed
targetsmaps. Replace fields such asinitialDeposit.targetandrepayment.amountwithinitialDeposit.targets[chain]andrepayment.targets[chain]. - Borrow and withdraw requests replace
receiverAddresswithchainandreceiver. - Every
lending.supply(...)request requireschain. Transfer flows must no longer passmechanism: SupplyPlanType.transfer. - Account responses now use
LiquidiumAccount:External,Native,AccountIdentifier, andIcrcbecomeChainAddress,IcPrincipal,IcpAccountIdentifier, andIcrcAccount. Response fields useaddressinstead ofaccountorprincipal. SupplyTargetis now a flat shape withchain,asset, andaddress. Removetarget.typechecks and stop reading ICRC-specific target fields.- Pool canister overrides move from
btcPoolandercPooltopools.btcandpools.usdt. TransferMode,MarketAsset,MarketChain, legacy account and supply-target types, and borrow/withdraw signature aliases are removed. UseSignMessageWalletAction,Asset,Chain,LiquidiumAccount,SupplyTarget, andSignatureInfoinstead.Asset.SOLis removed. Chain-key activities now reportChain.ICP.
Added
- Add ICP, ckBTC, ckUSDC, and ckUSDT transfer routes, ICRC wallet transfers, ledger fee estimates, and chain-keyed instant-loan quotes.
- Add
InstantLoanCreatedErrorfor recovering a created loan when subsequent state hydration fails. RetryinstantLoans.get(...)instead of creation.
- Instant-loan creation now groups fields under
0.4.1
Patch Changes
- 7cf071f: Validate minimum withdrawal amounts for BTC, USDC, and USDT before signing withdrawal requests.
0.4.0
Minor Changes
- 1d89aa1: Normalize SDK operation names, remove deprecated v1 history methods, require
explicit inflow operations, remove legacy activity txid fields, and use
status.operationas the canonical activity and history operation field.
0.3.4
Patch Changes
- 810ca23: Handle ICRC and account identifier destinations returned by lending and instant loan canisters.
0.3.3
Patch Changes
- 7bb5e2c: Replace deprecated DFINITY ICRC account dependencies with current ICP SDK packages.
0.3.2
Patch Changes
- 6fbcb9b: Normalize BTC wallet signatures from base64 or hex before submitting signed actions.
- 6fbcb9b: Use package-backed encoding helpers for wallet signature normalization.
0.3.1
Patch Changes
- 5a49cef: Fix loan loading for canisters that use dynamic asset variant tags.
0.3.0
Minor Changes
- ff606ba: Expose a helper for reading a position's full withdraw amount, and avoid double-counting supply interest in reserve USD valuations.
- 8745bd4: Expose instant loan initial deposit detection and expiry timestamps.
- d34ebd3: Return lightweight instant-loan search matches with grouped collateral and borrow fields.
0.2.1
Patch Changes
- 9cc5091: Replace inline client type shapes with named interfaces and regenerate API docs.
- 5a4bff6: Expose borrow amount minimum metadata and reject borrows below configured asset minimums.
0.2.0
Minor Changes
- Add external Bitcoin address validation support and include Liquidium inflow fees in instant-loan deposit and BTC repayment estimates, rounding fee estimates up to avoid underfunding.
- Breaking type change: restructure
InstantLoanresponse fields by moving loan terms intoterms, replacing top-level deposit/repay targets withinitialDepositandrepayment.target, and renaming instant-loan candidate collateral hints tocollateralAmount.
0.1.2
Patch Changes
- Add SDK documentation links and publish the expanded API export surface.
0.1.1
Patch Changes
- b99b996: Fix browser runtime compatibility for canister calls by migrating the SDK actor stack from deprecated
@dfinity/*packages to@icp-sdk/coresubmodules, removing the need for browser consumers to provide a Node-styleglobalpolyfill.
Package Changelogs
| Package | Changelog |
|---|---|
@liquidium/client | packages/client/CHANGELOG.md |
When a public SDK change affects usage, update the relevant guide or API reference in the same pull request.