@unicitylabs/sphere-sdk 0.16.0-dev.1 → 0.16.0
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/connect/index.cjs +13 -3
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +13 -3
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +4 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -3
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +3 -3
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +3 -3
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +4 -4
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +4 -4
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +2 -2
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.js +2 -2
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +21 -5
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +2 -2
- package/dist/impl/nodejs/index.d.ts +2 -2
- package/dist/impl/nodejs/index.js +21 -5
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2136,7 +2136,7 @@ declare const NETWORKS: {
|
|
|
2136
2136
|
readonly tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.mainnet.json";
|
|
2137
2137
|
};
|
|
2138
2138
|
readonly testnet: {
|
|
2139
|
-
readonly name: "
|
|
2139
|
+
readonly name: "Testnet";
|
|
2140
2140
|
readonly networkId: 4;
|
|
2141
2141
|
readonly aggregatorUrl: "https://gateway.testnet2.unicity.network";
|
|
2142
2142
|
readonly nostrRelays: readonly ["wss://nostr-relay.testnet.unicity.network"];
|
|
@@ -2144,7 +2144,7 @@ declare const NETWORKS: {
|
|
|
2144
2144
|
readonly tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.testnet2.json";
|
|
2145
2145
|
};
|
|
2146
2146
|
readonly testnet2: {
|
|
2147
|
-
readonly name: "
|
|
2147
|
+
readonly name: "Testnet";
|
|
2148
2148
|
readonly networkId: 4;
|
|
2149
2149
|
readonly aggregatorUrl: "https://gateway.testnet2.unicity.network";
|
|
2150
2150
|
readonly nostrRelays: readonly ["wss://nostr-relay.testnet.unicity.network"];
|
package/dist/index.d.ts
CHANGED
|
@@ -2136,7 +2136,7 @@ declare const NETWORKS: {
|
|
|
2136
2136
|
readonly tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.mainnet.json";
|
|
2137
2137
|
};
|
|
2138
2138
|
readonly testnet: {
|
|
2139
|
-
readonly name: "
|
|
2139
|
+
readonly name: "Testnet";
|
|
2140
2140
|
readonly networkId: 4;
|
|
2141
2141
|
readonly aggregatorUrl: "https://gateway.testnet2.unicity.network";
|
|
2142
2142
|
readonly nostrRelays: readonly ["wss://nostr-relay.testnet.unicity.network"];
|
|
@@ -2144,7 +2144,7 @@ declare const NETWORKS: {
|
|
|
2144
2144
|
readonly tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.testnet2.json";
|
|
2145
2145
|
};
|
|
2146
2146
|
readonly testnet2: {
|
|
2147
|
-
readonly name: "
|
|
2147
|
+
readonly name: "Testnet";
|
|
2148
2148
|
readonly networkId: 4;
|
|
2149
2149
|
readonly aggregatorUrl: "https://gateway.testnet2.unicity.network";
|
|
2150
2150
|
readonly nostrRelays: readonly ["wss://nostr-relay.testnet.unicity.network"];
|
package/dist/index.js
CHANGED
|
@@ -853,7 +853,7 @@ var NETWORKS = {
|
|
|
853
853
|
// old goggregator testnet spoke the removed v1 protocol — a v2 engine cannot
|
|
854
854
|
// run against it. 'testnet2' stays as an alias of the same configuration.
|
|
855
855
|
testnet: {
|
|
856
|
-
name: "
|
|
856
|
+
name: "Testnet",
|
|
857
857
|
networkId: 4,
|
|
858
858
|
// v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
|
|
859
859
|
aggregatorUrl: "https://gateway.testnet2.unicity.network",
|
|
@@ -863,7 +863,7 @@ var NETWORKS = {
|
|
|
863
863
|
tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.testnet2.json"
|
|
864
864
|
},
|
|
865
865
|
testnet2: {
|
|
866
|
-
name: "
|
|
866
|
+
name: "Testnet",
|
|
867
867
|
networkId: 4,
|
|
868
868
|
// v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
|
|
869
869
|
aggregatorUrl: "https://gateway.testnet2.unicity.network",
|
|
@@ -16690,7 +16690,8 @@ var Sphere = class _Sphere {
|
|
|
16690
16690
|
}
|
|
16691
16691
|
const progress = options.onProgress;
|
|
16692
16692
|
logger.debug("Sphere", "Starting import...");
|
|
16693
|
-
const
|
|
16693
|
+
const liveHere = _Sphere.liveOn(options.storage).some((s) => s._storage === options.storage);
|
|
16694
|
+
const needsClear = liveHere || await _Sphere.exists(options.storage);
|
|
16694
16695
|
if (needsClear) {
|
|
16695
16696
|
progress?.({ step: "clearing", message: "Clearing previous wallet data..." });
|
|
16696
16697
|
logger.debug("Sphere", "Clearing existing wallet data...");
|