@cityofzion/bs-neo-legacy 1.13.8 → 1.13.9
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.
|
@@ -21,22 +21,14 @@ BSNeoLegacyConstants.NEO_ASSET = {
|
|
|
21
21
|
BSNeoLegacyConstants.NATIVE_ASSETS = [_a.NEO_ASSET, _a.GAS_ASSET];
|
|
22
22
|
BSNeoLegacyConstants.RPC_LIST_BY_NETWORK_ID = {
|
|
23
23
|
mainnet: [
|
|
24
|
-
'https://mainnet1.neo2.coz.io:443',
|
|
25
|
-
'https://mainnet2.neo2.coz.io:443',
|
|
26
|
-
'https://mainnet3.neo2.coz.io:443',
|
|
27
|
-
'http://seed9.ngd.network:10332',
|
|
28
24
|
'http://seed1.ngd.network:10332',
|
|
29
25
|
'http://seed2.ngd.network:10332',
|
|
30
26
|
'http://seed3.ngd.network:10332',
|
|
31
27
|
'http://seed4.ngd.network:10332',
|
|
32
28
|
'http://seed5.ngd.network:10332',
|
|
29
|
+
'http://seed9.ngd.network:10332',
|
|
33
30
|
],
|
|
34
|
-
testnet: [
|
|
35
|
-
'http://seed5.ngd.network:20332',
|
|
36
|
-
'http://seed1.ngd.network:20332',
|
|
37
|
-
'http://seed2.ngd.network:20332',
|
|
38
|
-
'https://testnet1.neo2.coz.io:443',
|
|
39
|
-
],
|
|
31
|
+
testnet: ['http://seed1.ngd.network:20332', 'http://seed2.ngd.network:20332', 'http://seed5.ngd.network:20332'],
|
|
40
32
|
};
|
|
41
33
|
BSNeoLegacyConstants.LEGACY_NETWORK_BY_NETWORK_ID = {
|
|
42
34
|
mainnet: 'MainNet',
|
|
@@ -22,7 +22,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
22
22
|
var _DoraCDSNeoLegacy_service;
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.DoraCDSNeoLegacy = void 0;
|
|
25
|
-
const
|
|
25
|
+
const dora_ts_1 = require("@cityofzion/dora-ts");
|
|
26
26
|
class DoraCDSNeoLegacy {
|
|
27
27
|
constructor(service) {
|
|
28
28
|
_DoraCDSNeoLegacy_service.set(this, void 0);
|
|
@@ -31,9 +31,7 @@ class DoraCDSNeoLegacy {
|
|
|
31
31
|
getUnclaimed(address) {
|
|
32
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
33
|
var _a;
|
|
34
|
-
const
|
|
35
|
-
const rpcClient = new rpc.RPCClient(__classPrivateFieldGet(this, _DoraCDSNeoLegacy_service, "f").network.url);
|
|
36
|
-
const response = yield rpcClient.getUnclaimed(address);
|
|
34
|
+
const response = yield dora_ts_1.api.NeoLegacyREST.getUnclaimed(address);
|
|
37
35
|
return ((_a = response === null || response === void 0 ? void 0 : response.unclaimed) !== null && _a !== void 0 ? _a : 0).toFixed(__classPrivateFieldGet(this, _DoraCDSNeoLegacy_service, "f").claimToken.decimals);
|
|
38
36
|
});
|
|
39
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo-legacy",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "Coz",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"/dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@cityofzion/dora-ts": "
|
|
12
|
+
"@cityofzion/dora-ts": "0.6.1",
|
|
13
13
|
"@cityofzion/neon-js": "4.8.3",
|
|
14
14
|
"axios": "~1.12.2",
|
|
15
15
|
"@cityofzion/blockchain-service": "1.22.3"
|