@talismn/balances 0.0.0-pr2023-20250607074410 → 0.0.0-pr2023-20250608021637

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.
@@ -3866,7 +3866,7 @@ const SubForeignAssetsModule = hydrate => {
3866
3866
  location,
3867
3867
  codec
3868
3868
  } = scaleBuilder.buildCall(pallet, method);
3869
- const callData = polkadotApi.Binary.fromBytes(utils.mergeUint8(new Uint8Array(location), codec.enc(args)));
3869
+ const callData = polkadotApi.Binary.fromBytes(utils.mergeUint8([new Uint8Array(location), codec.enc(args)]));
3870
3870
  return {
3871
3871
  type: "substrate",
3872
3872
  callData: utils.toHex(callData.asBytes())
@@ -4269,7 +4269,7 @@ const nompoolAccountId = (palletId, poolId, index) => {
4269
4269
  const length = encModPrefix.length + encPalletId.length + encIndex.length + encPoolId.length;
4270
4270
  const remainingBytes = 32 - length;
4271
4271
  const encEmptyH256 = new Uint8Array(remainingBytes);
4272
- const bytes = utils.mergeUint8(encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256);
4272
+ const bytes = utils.mergeUint8([encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256]);
4273
4273
  return polkadotApi.AccountId().dec(bytes);
4274
4274
  };
4275
4275
  /** The stash account for the nomination pool */
@@ -7314,7 +7314,7 @@ const SubTokensModule = hydrate => {
7314
7314
  location,
7315
7315
  codec
7316
7316
  } = scaleBuilder.buildCall(pallet, method);
7317
- return [polkadotApi.Binary.fromBytes(utils.mergeUint8(new Uint8Array(location), codec.enc(args))), undefined];
7317
+ return [polkadotApi.Binary.fromBytes(utils.mergeUint8([new Uint8Array(location), codec.enc(args)])), undefined];
7318
7318
  } catch (cause) {
7319
7319
  return [undefined, new Error("Failed to build call", {
7320
7320
  cause
@@ -3866,7 +3866,7 @@ const SubForeignAssetsModule = hydrate => {
3866
3866
  location,
3867
3867
  codec
3868
3868
  } = scaleBuilder.buildCall(pallet, method);
3869
- const callData = polkadotApi.Binary.fromBytes(utils.mergeUint8(new Uint8Array(location), codec.enc(args)));
3869
+ const callData = polkadotApi.Binary.fromBytes(utils.mergeUint8([new Uint8Array(location), codec.enc(args)]));
3870
3870
  return {
3871
3871
  type: "substrate",
3872
3872
  callData: utils.toHex(callData.asBytes())
@@ -4269,7 +4269,7 @@ const nompoolAccountId = (palletId, poolId, index) => {
4269
4269
  const length = encModPrefix.length + encPalletId.length + encIndex.length + encPoolId.length;
4270
4270
  const remainingBytes = 32 - length;
4271
4271
  const encEmptyH256 = new Uint8Array(remainingBytes);
4272
- const bytes = utils.mergeUint8(encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256);
4272
+ const bytes = utils.mergeUint8([encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256]);
4273
4273
  return polkadotApi.AccountId().dec(bytes);
4274
4274
  };
4275
4275
  /** The stash account for the nomination pool */
@@ -7314,7 +7314,7 @@ const SubTokensModule = hydrate => {
7314
7314
  location,
7315
7315
  codec
7316
7316
  } = scaleBuilder.buildCall(pallet, method);
7317
- return [polkadotApi.Binary.fromBytes(utils.mergeUint8(new Uint8Array(location), codec.enc(args))), undefined];
7317
+ return [polkadotApi.Binary.fromBytes(utils.mergeUint8([new Uint8Array(location), codec.enc(args)])), undefined];
7318
7318
  } catch (cause) {
7319
7319
  return [undefined, new Error("Failed to build call", {
7320
7320
  cause
@@ -3853,7 +3853,7 @@ const SubForeignAssetsModule = hydrate => {
3853
3853
  location,
3854
3854
  codec
3855
3855
  } = scaleBuilder.buildCall(pallet, method);
3856
- const callData = Binary.fromBytes(mergeUint8(new Uint8Array(location), codec.enc(args)));
3856
+ const callData = Binary.fromBytes(mergeUint8([new Uint8Array(location), codec.enc(args)]));
3857
3857
  return {
3858
3858
  type: "substrate",
3859
3859
  callData: toHex$1(callData.asBytes())
@@ -4256,7 +4256,7 @@ const nompoolAccountId = (palletId, poolId, index) => {
4256
4256
  const length = encModPrefix.length + encPalletId.length + encIndex.length + encPoolId.length;
4257
4257
  const remainingBytes = 32 - length;
4258
4258
  const encEmptyH256 = new Uint8Array(remainingBytes);
4259
- const bytes = mergeUint8(encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256);
4259
+ const bytes = mergeUint8([encModPrefix, encPalletId, encIndex, encPoolId, encEmptyH256]);
4260
4260
  return AccountId().dec(bytes);
4261
4261
  };
4262
4262
  /** The stash account for the nomination pool */
@@ -7301,7 +7301,7 @@ const SubTokensModule = hydrate => {
7301
7301
  location,
7302
7302
  codec
7303
7303
  } = scaleBuilder.buildCall(pallet, method);
7304
- return [Binary.fromBytes(mergeUint8(new Uint8Array(location), codec.enc(args))), undefined];
7304
+ return [Binary.fromBytes(mergeUint8([new Uint8Array(location), codec.enc(args)])), undefined];
7305
7305
  } catch (cause) {
7306
7306
  return [undefined, new Error("Failed to build call", {
7307
7307
  cause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/balances",
3
- "version": "0.0.0-pr2023-20250607074410",
3
+ "version": "0.0.0-pr2023-20250608021637",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -34,13 +34,13 @@
34
34
  "rxjs": "^7.8.1",
35
35
  "scale-ts": "^1.6.1",
36
36
  "viem": "^2.27.3",
37
- "@talismn/chain-connector": "0.0.0-pr2023-20250607074410",
38
- "@talismn/chain-connector-evm": "0.0.0-pr2023-20250607074410",
39
- "@talismn/chaindata-provider": "0.0.0-pr2023-20250607074410",
40
- "@talismn/sapi": "0.0.0-pr2023-20250607074410",
41
- "@talismn/scale": "0.0.0-pr2023-20250607074410",
42
- "@talismn/token-rates": "0.0.0-pr2023-20250607074410",
43
- "@talismn/util": "0.0.0-pr2023-20250607074410"
37
+ "@talismn/chain-connector": "0.0.0-pr2023-20250608021637",
38
+ "@talismn/chaindata-provider": "0.0.0-pr2023-20250608021637",
39
+ "@talismn/scale": "0.0.0-pr2023-20250608021637",
40
+ "@talismn/sapi": "0.0.0-pr2023-20250608021637",
41
+ "@talismn/token-rates": "0.0.0-pr2023-20250608021637",
42
+ "@talismn/util": "0.0.0-pr2023-20250608021637",
43
+ "@talismn/chain-connector-evm": "0.0.0-pr2023-20250608021637"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@polkadot/api-contract": "16.1.2",