@talismn/balances 0.0.0-pr2043-20250618082459 → 0.0.0-pr2043-20250618091117

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.
@@ -9,7 +9,7 @@ export type SubAssetsChainMeta = {
9
9
  };
10
10
  export type SubAssetsModuleConfig = {
11
11
  tokens?: Array<{
12
- assetId: number;
12
+ assetId: number | string;
13
13
  } & BalancesConfigTokenParams>;
14
14
  };
15
15
  export type SubAssetsBalance = NewBalanceType<ModuleType, "complex">;
@@ -115,7 +115,7 @@ export declare const defaultBalanceModules: (import("..").NewBalanceModule<"evm-
115
115
  networkId: string;
116
116
  type: "substrate-assets";
117
117
  platform: "polkadot";
118
- assetId: number;
118
+ assetId: string;
119
119
  existentialDeposit: string;
120
120
  isTestnet?: boolean | undefined;
121
121
  isDefault?: boolean | undefined;
@@ -149,7 +149,7 @@ export declare class Balance {
149
149
  account: "*25519" | "secp256k1";
150
150
  prefix: number;
151
151
  rpcs: string[];
152
- topologyInfo: {
152
+ topology: {
153
153
  type: "standalone";
154
154
  } | {
155
155
  type: "relay";
@@ -269,7 +269,7 @@ export declare class Balance {
269
269
  networkId: string;
270
270
  type: "substrate-assets";
271
271
  platform: "polkadot";
272
- assetId: number;
272
+ assetId: string;
273
273
  existentialDeposit: string;
274
274
  isTestnet?: boolean | undefined;
275
275
  isDefault?: boolean | undefined;
@@ -122,7 +122,7 @@ class EvmTokenFetcher {
122
122
 
123
123
  var packageJson = {
124
124
  name: "@talismn/balances",
125
- version: "0.0.0-pr2043-20250618082459"};
125
+ version: "0.0.0-pr2043-20250618091117"};
126
126
 
127
127
  const libVersion = packageJson.version;
128
128
 
@@ -3391,7 +3391,7 @@ const SubAssetsModule = hydrate => {
3391
3391
  const tokens = {};
3392
3392
  for (const tokenConfig of moduleConfig?.tokens ?? []) {
3393
3393
  try {
3394
- const assetId = tokenConfig.assetId;
3394
+ const assetId = String(tokenConfig.assetId);
3395
3395
  const assetStateKey = tryEncode(assetCoder, BigInt(assetId)) ?? tryEncode(assetCoder, assetId);
3396
3396
  const metadataStateKey = tryEncode(metadataCoder, BigInt(assetId)) ?? tryEncode(metadataCoder, assetId);
3397
3397
  if (assetStateKey === null || metadataStateKey === null) throw new Error(`Failed to encode stateKey for asset ${assetId} on chain ${chainId}`);
@@ -122,7 +122,7 @@ class EvmTokenFetcher {
122
122
 
123
123
  var packageJson = {
124
124
  name: "@talismn/balances",
125
- version: "0.0.0-pr2043-20250618082459"};
125
+ version: "0.0.0-pr2043-20250618091117"};
126
126
 
127
127
  const libVersion = packageJson.version;
128
128
 
@@ -3391,7 +3391,7 @@ const SubAssetsModule = hydrate => {
3391
3391
  const tokens = {};
3392
3392
  for (const tokenConfig of moduleConfig?.tokens ?? []) {
3393
3393
  try {
3394
- const assetId = tokenConfig.assetId;
3394
+ const assetId = String(tokenConfig.assetId);
3395
3395
  const assetStateKey = tryEncode(assetCoder, BigInt(assetId)) ?? tryEncode(assetCoder, assetId);
3396
3396
  const metadataStateKey = tryEncode(metadataCoder, BigInt(assetId)) ?? tryEncode(metadataCoder, assetId);
3397
3397
  if (assetStateKey === null || metadataStateKey === null) throw new Error(`Failed to encode stateKey for asset ${assetId} on chain ${chainId}`);
@@ -109,7 +109,7 @@ class EvmTokenFetcher {
109
109
 
110
110
  var packageJson = {
111
111
  name: "@talismn/balances",
112
- version: "0.0.0-pr2043-20250618082459"};
112
+ version: "0.0.0-pr2043-20250618091117"};
113
113
 
114
114
  const libVersion = packageJson.version;
115
115
 
@@ -3378,7 +3378,7 @@ const SubAssetsModule = hydrate => {
3378
3378
  const tokens = {};
3379
3379
  for (const tokenConfig of moduleConfig?.tokens ?? []) {
3380
3380
  try {
3381
- const assetId = tokenConfig.assetId;
3381
+ const assetId = String(tokenConfig.assetId);
3382
3382
  const assetStateKey = tryEncode(assetCoder, BigInt(assetId)) ?? tryEncode(assetCoder, assetId);
3383
3383
  const metadataStateKey = tryEncode(metadataCoder, BigInt(assetId)) ?? tryEncode(metadataCoder, assetId);
3384
3384
  if (assetStateKey === null || metadataStateKey === null) throw new Error(`Failed to encode stateKey for asset ${assetId} on chain ${chainId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/balances",
3
- "version": "0.0.0-pr2043-20250618082459",
3
+ "version": "0.0.0-pr2043-20250618091117",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "GPL-3.0-or-later",
@@ -33,13 +33,13 @@
33
33
  "rxjs": "^7.8.1",
34
34
  "scale-ts": "^1.6.1",
35
35
  "viem": "^2.27.3",
36
- "@talismn/chain-connector": "0.0.0-pr2043-20250618082459",
37
- "@talismn/chaindata-provider": "0.0.0-pr2043-20250618082459",
38
- "@talismn/sapi": "0.0.0-pr2043-20250618082459",
39
- "@talismn/token-rates": "0.0.0-pr2043-20250618082459",
40
- "@talismn/chain-connector-evm": "0.0.0-pr2043-20250618082459",
36
+ "@talismn/chain-connector": "0.0.0-pr2043-20250618091117",
37
+ "@talismn/chain-connector-evm": "0.0.0-pr2043-20250618091117",
38
+ "@talismn/sapi": "0.0.0-pr2043-20250618091117",
41
39
  "@talismn/scale": "0.1.2",
42
- "@talismn/util": "0.4.2"
40
+ "@talismn/token-rates": "0.0.0-pr2043-20250618091117",
41
+ "@talismn/util": "0.4.2",
42
+ "@talismn/chaindata-provider": "0.0.0-pr2043-20250618091117"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@polkadot/api-contract": "16.1.2",
@@ -54,8 +54,8 @@
54
54
  "jest": "^29.7.0",
55
55
  "ts-jest": "^29.2.5",
56
56
  "typescript": "^5.6.3",
57
- "@talismn/tsconfig": "0.0.2",
58
- "@talismn/eslint-config": "0.0.3"
57
+ "@talismn/eslint-config": "0.0.3",
58
+ "@talismn/tsconfig": "0.0.2"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@polkadot/api-contract": "*",