@liquidium/client 0.3.2 → 0.3.3

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.js CHANGED
@@ -4,8 +4,7 @@ import { Actor, HttpAgent } from '@icp-sdk/core/agent';
4
4
  import { Principal } from '@icp-sdk/core/principal';
5
5
  import { base64, base64nopad } from '@scure/base';
6
6
  import { idlLabelToId } from '@icp-sdk/core/candid';
7
- import { encodeIcrcAccount } from '@dfinity/ledger-icrc';
8
- import { Principal as Principal$1 } from '@dfinity/principal';
7
+ import { encodeIcrcAccount } from '@icp-sdk/canisters/ledger/icrc';
9
8
  import { validate, Network } from 'bitcoin-address-validation';
10
9
 
11
10
  // src/client.ts
@@ -3261,7 +3260,7 @@ function getIcrcAccountSupplyTarget(profileId, request) {
3261
3260
  owner: poolPrincipal.toText(),
3262
3261
  subaccount,
3263
3262
  account: encodeIcrcAccount({
3264
- owner: Principal$1.fromText(poolPrincipal.toText()),
3263
+ owner: poolPrincipal,
3265
3264
  subaccount
3266
3265
  })
3267
3266
  };
@@ -4611,7 +4610,7 @@ function createTransferErc20Transaction(params) {
4611
4610
  }
4612
4611
  function createDepositErc20Transaction(params) {
4613
4612
  const expectedDestinationAccount = encodeIcrcAccount({
4614
- owner: Principal$1.fromText(params.poolId),
4613
+ owner: Principal.fromText(params.poolId),
4615
4614
  subaccount: encodeInflowSubaccount({
4616
4615
  action: params.action,
4617
4616
  principal: Principal.fromText(params.profileId)