@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/constants.cjs +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/core.cjs +94 -66
- package/dist/core.cjs.map +1 -1
- package/dist/core.mjs +94 -66
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +236 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +236 -171
- package/dist/index.mjs.map +1 -1
- package/dist/smart-account.cjs +4 -2
- package/dist/smart-account.cjs.map +1 -1
- package/dist/smart-account.mjs +4 -2
- package/dist/smart-account.mjs.map +1 -1
- package/dist/wallet.cjs +4 -2
- package/dist/wallet.cjs.map +1 -1
- package/dist/wallet.mjs +4 -2
- package/dist/wallet.mjs.map +1 -1
- package/dist/widget.cjs +236 -171
- package/dist/widget.cjs.map +1 -1
- package/dist/widget.mjs +236 -171
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
package/dist/smart-account.cjs
CHANGED
|
@@ -12265,7 +12265,7 @@ var init_constants = __esm({
|
|
|
12265
12265
|
"src/constants.ts"() {
|
|
12266
12266
|
"use strict";
|
|
12267
12267
|
SDK_NAME = "@trustware/sdk";
|
|
12268
|
-
SDK_VERSION = "1.1.12-staging.
|
|
12268
|
+
SDK_VERSION = "1.1.12-staging.4";
|
|
12269
12269
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
12270
12270
|
API_PREFIX = "/api";
|
|
12271
12271
|
}
|
|
@@ -13205,6 +13205,7 @@ function inferChainTypeFromValue(normalized) {
|
|
|
13205
13205
|
if (normalized === "evm" || normalized === "solana" || normalized === "cosmos" || normalized === "bitcoin") {
|
|
13206
13206
|
return normalized;
|
|
13207
13207
|
}
|
|
13208
|
+
if (normalized === SOLANA_CHAIN_ID) return "solana";
|
|
13208
13209
|
if (/^eip155:\d+$/.test(normalized) || /^\d+$/.test(normalized)) {
|
|
13209
13210
|
return "evm";
|
|
13210
13211
|
}
|
|
@@ -13223,10 +13224,11 @@ function normalizeChainType(chain) {
|
|
|
13223
13224
|
const normalized = String(raw).trim().toLowerCase();
|
|
13224
13225
|
return inferChainTypeFromValue(normalized) ?? normalized;
|
|
13225
13226
|
}
|
|
13226
|
-
var CHAIN_TYPE_ALIASES;
|
|
13227
|
+
var SOLANA_CHAIN_ID, CHAIN_TYPE_ALIASES;
|
|
13227
13228
|
var init_chains2 = __esm({
|
|
13228
13229
|
"src/utils/chains.ts"() {
|
|
13229
13230
|
"use strict";
|
|
13231
|
+
SOLANA_CHAIN_ID = "1151111081099710";
|
|
13230
13232
|
CHAIN_TYPE_ALIASES = {
|
|
13231
13233
|
btc: "bitcoin",
|
|
13232
13234
|
bitcoin: "bitcoin",
|