@cityofzion/bs-neo-legacy 1.14.1 → 1.14.3
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/BSNeoLegacy.d.ts +1 -1
- package/dist/BSNeoLegacy.js +3 -3
- package/package.json +2 -2
package/dist/BSNeoLegacy.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class BSNeoLegacy<N extends string = string> implements IBSNeoLeg
|
|
|
13
13
|
readonly claimToken: TBSToken;
|
|
14
14
|
readonly burnToken: TBSToken;
|
|
15
15
|
network: TBSNetwork<TBSNeoLegacyNetworkId>;
|
|
16
|
-
|
|
16
|
+
rpcNetworkUrls: string[];
|
|
17
17
|
legacyNetwork: string;
|
|
18
18
|
readonly defaultNetwork: TBSNetwork<TBSNeoLegacyNetworkId>;
|
|
19
19
|
readonly availableNetworks: TBSNetwork<TBSNeoLegacyNetworkId>[];
|
package/dist/BSNeoLegacy.js
CHANGED
|
@@ -91,14 +91,14 @@ class BSNeoLegacy {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
setNetwork(network) {
|
|
94
|
-
const
|
|
95
|
-
const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks,
|
|
94
|
+
const rpcNetworkUrls = BSNeoLegacyConstants_1.BSNeoLegacyConstants.RPC_LIST_BY_NETWORK_ID[network.id] || [];
|
|
95
|
+
const isValidNetwork = blockchain_service_1.BSUtilsHelper.validateNetwork(network, this.availableNetworks, rpcNetworkUrls);
|
|
96
96
|
if (!isValidNetwork) {
|
|
97
97
|
throw new Error(`Network with id ${network.id} is not available for ${this.name}`);
|
|
98
98
|
}
|
|
99
99
|
this.network = network;
|
|
100
100
|
this.legacyNetwork = BSNeoLegacyConstants_1.BSNeoLegacyConstants.LEGACY_NETWORK_BY_NETWORK_ID[network.id];
|
|
101
|
-
this.
|
|
101
|
+
this.rpcNetworkUrls = rpcNetworkUrls;
|
|
102
102
|
this.tokenService = new TokenServiceNeoLegacy_1.TokenServiceNeoLegacy();
|
|
103
103
|
this.explorerService = new NeoTubeESNeoLegacy_1.NeoTubeESNeoLegacy(this);
|
|
104
104
|
this.blockchainDataService = new DoraBDSNeoLegacy_1.DoraBDSNeoLegacy(this);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo-legacy",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Coz",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@cityofzion/dora-ts": "0.6.2",
|
|
13
13
|
"@cityofzion/neon-js": "4.8.3",
|
|
14
14
|
"axios": "~1.12.2",
|
|
15
|
-
"@cityofzion/blockchain-service": "1.22.
|
|
15
|
+
"@cityofzion/blockchain-service": "1.22.6"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/jest": "~30.0.0",
|