@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/wallet.mjs
CHANGED
|
@@ -238,7 +238,7 @@ var init_constants = __esm({
|
|
|
238
238
|
"src/constants.ts"() {
|
|
239
239
|
"use strict";
|
|
240
240
|
SDK_NAME = "@trustware/sdk";
|
|
241
|
-
SDK_VERSION = "1.1.12-staging.
|
|
241
|
+
SDK_VERSION = "1.1.12-staging.4";
|
|
242
242
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
243
243
|
API_PREFIX = "/api";
|
|
244
244
|
WALLETCONNECT_PROJECT_ID = "72ea74c400f5111d43aea638d7d83a24";
|
|
@@ -1180,6 +1180,7 @@ function inferChainTypeFromValue(normalized) {
|
|
|
1180
1180
|
if (normalized === "evm" || normalized === "solana" || normalized === "cosmos" || normalized === "bitcoin") {
|
|
1181
1181
|
return normalized;
|
|
1182
1182
|
}
|
|
1183
|
+
if (normalized === SOLANA_CHAIN_ID) return "solana";
|
|
1183
1184
|
if (/^eip155:\d+$/.test(normalized) || /^\d+$/.test(normalized)) {
|
|
1184
1185
|
return "evm";
|
|
1185
1186
|
}
|
|
@@ -1202,10 +1203,11 @@ function normalizeChainType(chain) {
|
|
|
1202
1203
|
const normalized = String(raw).trim().toLowerCase();
|
|
1203
1204
|
return inferChainTypeFromValue(normalized) ?? normalized;
|
|
1204
1205
|
}
|
|
1205
|
-
var CHAIN_TYPE_ALIASES;
|
|
1206
|
+
var SOLANA_CHAIN_ID, CHAIN_TYPE_ALIASES;
|
|
1206
1207
|
var init_chains = __esm({
|
|
1207
1208
|
"src/utils/chains.ts"() {
|
|
1208
1209
|
"use strict";
|
|
1210
|
+
SOLANA_CHAIN_ID = "1151111081099710";
|
|
1209
1211
|
CHAIN_TYPE_ALIASES = {
|
|
1210
1212
|
btc: "bitcoin",
|
|
1211
1213
|
bitcoin: "bitcoin",
|