@liquidium/client 0.1.0 → 0.1.1

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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Identity, HttpAgent } from '@dfinity/agent';
1
+ import { Identity, HttpAgent } from '@icp-sdk/core/agent';
2
2
  import { PublicClient } from 'viem';
3
3
 
4
4
  /** Minimal viem-compatible client shape required for SDK EVM read calls. */
@@ -12,7 +12,7 @@ type EvmReadClient = Pick<PublicClient, "readContract">;
12
12
  interface LiquidiumClientConfig {
13
13
  /** Preset canister IDs. Only `mainnet` is bundled. */
14
14
  environment?: Environment;
15
- /** ICP replica host override (defaults follow `@dfinity/agent`). */
15
+ /** ICP replica host override (defaults follow `@icp-sdk/core/agent`). */
16
16
  icHost?: string;
17
17
  /** Agent identity for signed canister calls. */
18
18
  identity?: Identity;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Identity, HttpAgent } from '@dfinity/agent';
1
+ import { Identity, HttpAgent } from '@icp-sdk/core/agent';
2
2
  import { PublicClient } from 'viem';
3
3
 
4
4
  /** Minimal viem-compatible client shape required for SDK EVM read calls. */
@@ -12,7 +12,7 @@ type EvmReadClient = Pick<PublicClient, "readContract">;
12
12
  interface LiquidiumClientConfig {
13
13
  /** Preset canister IDs. Only `mainnet` is bundled. */
14
14
  environment?: Environment;
15
- /** ICP replica host override (defaults follow `@dfinity/agent`). */
15
+ /** ICP replica host override (defaults follow `@icp-sdk/core/agent`). */
16
16
  icHost?: string;
17
17
  /** Agent identity for signed canister calls. */
18
18
  identity?: Identity;
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { encodeFunctionData, createPublicClient, http, isAddress, getAddress } from 'viem';
2
2
  import { mainnet } from 'viem/chains';
3
- import { HttpAgent, Actor } from '@dfinity/agent';
4
- import { Principal } from '@dfinity/principal';
3
+ import { HttpAgent, Actor } from '@icp-sdk/core/agent';
4
+ import { Principal } from '@icp-sdk/core/principal';
5
5
  import { encodeIcrcAccount } from '@dfinity/ledger-icrc';
6
+ import { Principal as Principal$1 } from '@dfinity/principal';
6
7
 
7
8
  // src/client.ts
8
9
 
@@ -3052,7 +3053,7 @@ function getIcrcAccountSupplyTarget(profileId, request) {
3052
3053
  owner: poolPrincipal.toText(),
3053
3054
  subaccount,
3054
3055
  account: encodeIcrcAccount({
3055
- owner: Principal.fromText(poolPrincipal.toText()),
3056
+ owner: Principal$1.fromText(poolPrincipal.toText()),
3056
3057
  subaccount
3057
3058
  })
3058
3059
  };
@@ -4207,7 +4208,7 @@ function createTransferErc20Transaction(params) {
4207
4208
  }
4208
4209
  function createDepositErc20Transaction(params) {
4209
4210
  const expectedDestinationAccount = encodeIcrcAccount({
4210
- owner: Principal.fromText(params.poolId),
4211
+ owner: Principal$1.fromText(params.poolId),
4211
4212
  subaccount: encodeInflowSubaccount({
4212
4213
  action: params.action,
4213
4214
  principal: Principal.fromText(params.profileId)