Skip to main content

Changelog

Released changes for @liquidium/client. This page is generated from packages/client/CHANGELOG.md.

@liquidium/client

0.5.0

Minor Changes

  • cff20c5: Add native ICP and chain-key asset routes using explicit Chain + Asset identifiers.

    Breaking changes

    • Rename the Instant Loans SDK surface to Simple Loans. Use client.simpleLoans, SimpleLoansModule, SimpleLoan* types, and canisterIds.simpleLoans.
    • Simple Loans creation now groups fields under collateral, borrow, and refund. Both borrow and refund require an explicit delivery chain and destination.
    • Simple Loans deposit and repayment quotes now live in chain-keyed targets maps. Replace fields such as initialDeposit.target and repayment.amount with initialDeposit.targets[chain] and repayment.targets[chain].
    • Borrow and withdraw requests replace receiverAddress with chain and receiver.
    • Every lending.supply(...) request requires chain. Transfer flows must no longer pass mechanism: SupplyPlanType.transfer.
    • Account responses now use LiquidiumAccount: External, Native, AccountIdentifier, and Icrc become ChainAddress, IcPrincipal, IcpAccountIdentifier, and IcrcAccount. Response fields use address instead of account or principal.
    • SupplyTarget is now a flat shape with chain, asset, and address. Remove target.type checks and stop reading ICRC-specific target fields.
    • Pool canister overrides move from btcPool and ercPool to pools.btc and pools.usdt.
    • TransferMode, MarketAsset, MarketChain, legacy account and supply-target types, and borrow/withdraw signature aliases are removed. Use SignMessageWalletAction, Asset, Chain, LiquidiumAccount, SupplyTarget, and SignatureInfo instead.
    • Asset.SOL is removed. Chain-key activities now report Chain.ICP.

    Added

    • Add ICP, ckBTC, ckUSDC, and ckUSDT transfer routes, ICRC wallet transfers, ledger fee estimates, and chain-keyed Simple Loans quotes.
    • Add SimpleLoanCreatedError for recovering a created loan when subsequent state hydration fails. Retry simpleLoans.get(...) instead of creation.

Patch Changes

  • 9c8532d: Rename the Instant Loans SDK surface to Simple Loans. Use client.simpleLoans, SimpleLoansModule, SimpleLoan* types, and canisterIds.simpleLoans.

    Expose each pool's sameAssetBorrowingDustThreshold and 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, and canisterIds.simpleLoans.

    Expose each pool's sameAssetBorrowingDustThreshold and 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 + Asset identifiers.

    Breaking changes

    • Instant-loan creation now groups fields under collateral, borrow, and refund. Both borrow and refund require an explicit delivery chain and destination.
    • Instant-loan deposit and repayment quotes now live in chain-keyed targets maps. Replace fields such as initialDeposit.target and repayment.amount with initialDeposit.targets[chain] and repayment.targets[chain].
    • Borrow and withdraw requests replace receiverAddress with chain and receiver.
    • Every lending.supply(...) request requires chain. Transfer flows must no longer pass mechanism: SupplyPlanType.transfer.
    • Account responses now use LiquidiumAccount: External, Native, AccountIdentifier, and Icrc become ChainAddress, IcPrincipal, IcpAccountIdentifier, and IcrcAccount. Response fields use address instead of account or principal.
    • SupplyTarget is now a flat shape with chain, asset, and address. Remove target.type checks and stop reading ICRC-specific target fields.
    • Pool canister overrides move from btcPool and ercPool to pools.btc and pools.usdt.
    • TransferMode, MarketAsset, MarketChain, legacy account and supply-target types, and borrow/withdraw signature aliases are removed. Use SignMessageWalletAction, Asset, Chain, LiquidiumAccount, SupplyTarget, and SignatureInfo instead.
    • Asset.SOL is removed. Chain-key activities now report Chain.ICP.

    Added

    • Add ICP, ckBTC, ckUSDC, and ckUSDT transfer routes, ICRC wallet transfers, ledger fee estimates, and chain-keyed instant-loan quotes.
    • Add InstantLoanCreatedError for recovering a created loan when subsequent state hydration fails. Retry instantLoans.get(...) instead of creation.

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.operation as 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 InstantLoan response fields by moving loan terms into terms, replacing top-level deposit/repay targets with initialDeposit and repayment.target, and renaming instant-loan candidate collateral hints to collateralAmount.

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/core submodules, removing the need for browser consumers to provide a Node-style global polyfill.

Package Changelogs

PackageChangelog
@liquidium/clientpackages/client/CHANGELOG.md

When a public SDK change affects usage, update the relevant guide or API reference in the same pull request.