@trustware/sdk-staging 1.1.12-staging.2 → 1.1.12-staging.4

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/wallet.cjs CHANGED
@@ -264,7 +264,7 @@ var init_constants = __esm({
264
264
  "src/constants.ts"() {
265
265
  "use strict";
266
266
  SDK_NAME = "@trustware/sdk";
267
- SDK_VERSION = "1.1.12-staging.2";
267
+ SDK_VERSION = "1.1.12-staging.4";
268
268
  API_ROOT = "https://bv-staging-api.trustware.io";
269
269
  API_PREFIX = "/api";
270
270
  WALLETCONNECT_PROJECT_ID = "72ea74c400f5111d43aea638d7d83a24";
@@ -1206,6 +1206,7 @@ function inferChainTypeFromValue(normalized) {
1206
1206
  if (normalized === "evm" || normalized === "solana" || normalized === "cosmos" || normalized === "bitcoin") {
1207
1207
  return normalized;
1208
1208
  }
1209
+ if (normalized === SOLANA_CHAIN_ID) return "solana";
1209
1210
  if (/^eip155:\d+$/.test(normalized) || /^\d+$/.test(normalized)) {
1210
1211
  return "evm";
1211
1212
  }
@@ -1228,10 +1229,11 @@ function normalizeChainType(chain) {
1228
1229
  const normalized = String(raw).trim().toLowerCase();
1229
1230
  return inferChainTypeFromValue(normalized) ?? normalized;
1230
1231
  }
1231
- var CHAIN_TYPE_ALIASES;
1232
+ var SOLANA_CHAIN_ID, CHAIN_TYPE_ALIASES;
1232
1233
  var init_chains = __esm({
1233
1234
  "src/utils/chains.ts"() {
1234
1235
  "use strict";
1236
+ SOLANA_CHAIN_ID = "1151111081099710";
1235
1237
  CHAIN_TYPE_ALIASES = {
1236
1238
  btc: "bitcoin",
1237
1239
  bitcoin: "bitcoin",