@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.mjs
CHANGED
|
@@ -12241,7 +12241,7 @@ var init_constants = __esm({
|
|
|
12241
12241
|
"src/constants.ts"() {
|
|
12242
12242
|
"use strict";
|
|
12243
12243
|
SDK_NAME = "@trustware/sdk";
|
|
12244
|
-
SDK_VERSION = "1.1.12-staging.
|
|
12244
|
+
SDK_VERSION = "1.1.12-staging.4";
|
|
12245
12245
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
12246
12246
|
API_PREFIX = "/api";
|
|
12247
12247
|
}
|
|
@@ -13181,6 +13181,7 @@ function inferChainTypeFromValue(normalized) {
|
|
|
13181
13181
|
if (normalized === "evm" || normalized === "solana" || normalized === "cosmos" || normalized === "bitcoin") {
|
|
13182
13182
|
return normalized;
|
|
13183
13183
|
}
|
|
13184
|
+
if (normalized === SOLANA_CHAIN_ID) return "solana";
|
|
13184
13185
|
if (/^eip155:\d+$/.test(normalized) || /^\d+$/.test(normalized)) {
|
|
13185
13186
|
return "evm";
|
|
13186
13187
|
}
|
|
@@ -13199,10 +13200,11 @@ function normalizeChainType(chain) {
|
|
|
13199
13200
|
const normalized = String(raw).trim().toLowerCase();
|
|
13200
13201
|
return inferChainTypeFromValue(normalized) ?? normalized;
|
|
13201
13202
|
}
|
|
13202
|
-
var CHAIN_TYPE_ALIASES;
|
|
13203
|
+
var SOLANA_CHAIN_ID, CHAIN_TYPE_ALIASES;
|
|
13203
13204
|
var init_chains2 = __esm({
|
|
13204
13205
|
"src/utils/chains.ts"() {
|
|
13205
13206
|
"use strict";
|
|
13207
|
+
SOLANA_CHAIN_ID = "1151111081099710";
|
|
13206
13208
|
CHAIN_TYPE_ALIASES = {
|
|
13207
13209
|
btc: "bitcoin",
|
|
13208
13210
|
bitcoin: "bitcoin",
|