@aboutcircles/sdk 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/index.js +14 -5
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -704,7 +704,7 @@ function size(value) {
704
704
  var init_size = () => {};
705
705
 
706
706
  // ../../node_modules/viem/_esm/errors/version.js
707
- var version2 = "2.38.6";
707
+ var version2 = "2.40.3";
708
708
 
709
709
  // ../../node_modules/viem/_esm/errors/base.js
710
710
  function walk(err, fn) {
@@ -7996,6 +7996,10 @@ function normalizeFindPathParams(params) {
7996
7996
  IsWrapped: balance.isWrapped,
7997
7997
  IsStatic: balance.isStatic
7998
7998
  })),
7999
+ SimulatedTrusts: params.simulatedTrusts?.map((trust) => ({
8000
+ Truster: normalizeAddress(trust.truster),
8001
+ Trustee: normalizeAddress(trust.trustee)
8002
+ })),
7999
8003
  MaxTransfers: params.maxTransfers
8000
8004
  };
8001
8005
  }
@@ -11116,11 +11120,8 @@ function encodeField({ types, name, type, value }) {
11116
11120
  keccak256(encodeData({ data: value, primaryType: type, types }))
11117
11121
  ];
11118
11122
  }
11119
- if (type === "bytes") {
11120
- const prepend = value.length % 2 ? "0" : "";
11121
- value = `0x${prepend + value.slice(2)}`;
11123
+ if (type === "bytes")
11122
11124
  return [{ type: "bytes32" }, keccak256(value)];
11123
- }
11124
11125
  if (type === "string")
11125
11126
  return [{ type: "bytes32" }, keccak256(toHex(value))];
11126
11127
  if (type.lastIndexOf("]") === type.length - 1) {
@@ -13802,6 +13803,10 @@ function normalizeFindPathParams2(params) {
13802
13803
  IsWrapped: balance.isWrapped,
13803
13804
  IsStatic: balance.isStatic
13804
13805
  })),
13806
+ SimulatedTrusts: params.simulatedTrusts?.map((trust) => ({
13807
+ Truster: normalizeAddress2(trust.truster),
13808
+ Trustee: normalizeAddress2(trust.trustee)
13809
+ })),
13805
13810
  MaxTransfers: params.maxTransfers
13806
13811
  };
13807
13812
  }
@@ -16459,6 +16464,10 @@ function normalizeFindPathParams22(params) {
16459
16464
  IsWrapped: balance.isWrapped,
16460
16465
  IsStatic: balance.isStatic
16461
16466
  })),
16467
+ SimulatedTrusts: params.simulatedTrusts?.map((trust) => ({
16468
+ Truster: normalizeAddress22(trust.truster),
16469
+ Trustee: normalizeAddress22(trust.trustee)
16470
+ })),
16462
16471
  MaxTransfers: params.maxTransfers
16463
16472
  };
16464
16473
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aboutcircles/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Simplified Circles SDK for non-crypto users with low entrance barrier",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@aboutcircles/sdk-types": "workspace:*",
36
- "@aboutcircles/sdk-core": "workspace:*",
37
- "@aboutcircles/sdk-rpc": "workspace:*",
38
- "@aboutcircles/sdk-profiles": "workspace:*",
39
- "@aboutcircles/sdk-utils": "workspace:*",
40
- "@aboutcircles/sdk-runner": "workspace:*",
41
- "@aboutcircles/sdk-pathfinder": "workspace:*",
42
- "@aboutcircles/sdk-transfers": "workspace:*",
35
+ "@aboutcircles/sdk-types": "*",
36
+ "@aboutcircles/sdk-core": "*",
37
+ "@aboutcircles/sdk-rpc": "*",
38
+ "@aboutcircles/sdk-profiles": "*",
39
+ "@aboutcircles/sdk-utils": "*",
40
+ "@aboutcircles/sdk-runner": "*",
41
+ "@aboutcircles/sdk-pathfinder": "*",
42
+ "@aboutcircles/sdk-transfers": "*",
43
43
  "viem": "^2.38.0"
44
44
  },
45
45
  "devDependencies": {