@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.cjs CHANGED
@@ -6,8 +6,7 @@ var agent = require('@icp-sdk/core/agent');
6
6
  var principal = require('@icp-sdk/core/principal');
7
7
  var base = require('@scure/base');
8
8
  var candid = require('@icp-sdk/core/candid');
9
- var ledgerIcrc = require('@dfinity/ledger-icrc');
10
- var principal$1 = require('@dfinity/principal');
9
+ var icrc = require('@icp-sdk/canisters/ledger/icrc');
11
10
  var bitcoinAddressValidation = require('bitcoin-address-validation');
12
11
 
13
12
  // src/client.ts
@@ -3262,8 +3261,8 @@ function getIcrcAccountSupplyTarget(profileId, request) {
3262
3261
  action: request.action,
3263
3262
  owner: poolPrincipal.toText(),
3264
3263
  subaccount,
3265
- account: ledgerIcrc.encodeIcrcAccount({
3266
- owner: principal$1.Principal.fromText(poolPrincipal.toText()),
3264
+ account: icrc.encodeIcrcAccount({
3265
+ owner: poolPrincipal,
3267
3266
  subaccount
3268
3267
  })
3269
3268
  };
@@ -4612,8 +4611,8 @@ function createTransferErc20Transaction(params) {
4612
4611
  };
4613
4612
  }
4614
4613
  function createDepositErc20Transaction(params) {
4615
- const expectedDestinationAccount = ledgerIcrc.encodeIcrcAccount({
4616
- owner: principal$1.Principal.fromText(params.poolId),
4614
+ const expectedDestinationAccount = icrc.encodeIcrcAccount({
4615
+ owner: principal.Principal.fromText(params.poolId),
4617
4616
  subaccount: encodeInflowSubaccount({
4618
4617
  action: params.action,
4619
4618
  principal: principal.Principal.fromText(params.profileId)