@cityofzion/bs-neo-legacy 1.10.2 → 1.10.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.
|
@@ -6,7 +6,7 @@ var _a;
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.BSNeoLegacyConstants = void 0;
|
|
8
8
|
const mainnet_json_1 = __importDefault(require("../assets/tokens/mainnet.json"));
|
|
9
|
-
const
|
|
9
|
+
const native_json_1 = __importDefault(require("../assets/tokens/native.json"));
|
|
10
10
|
class BSNeoLegacyConstants {
|
|
11
11
|
}
|
|
12
12
|
exports.BSNeoLegacyConstants = BSNeoLegacyConstants;
|
|
@@ -14,7 +14,7 @@ _a = BSNeoLegacyConstants;
|
|
|
14
14
|
BSNeoLegacyConstants.EXTRA_TOKENS_BY_NETWORK_ID = {
|
|
15
15
|
mainnet: mainnet_json_1.default,
|
|
16
16
|
};
|
|
17
|
-
BSNeoLegacyConstants.NATIVE_ASSETS =
|
|
17
|
+
BSNeoLegacyConstants.NATIVE_ASSETS = native_json_1.default;
|
|
18
18
|
BSNeoLegacyConstants.RPC_LIST_BY_NETWORK_ID = {
|
|
19
19
|
mainnet: [
|
|
20
20
|
'https://mainnet1.neo2.coz.io:443',
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BSNeoLegacyHelper = void 0;
|
|
7
|
-
const
|
|
7
|
+
const native_json_1 = __importDefault(require("../assets/tokens/native.json"));
|
|
8
8
|
const BSNeoLegacyConstants_1 = require("../constants/BSNeoLegacyConstants");
|
|
9
9
|
class BSNeoLegacyHelper {
|
|
10
10
|
static getLegacyNetwork(network) {
|
|
@@ -16,7 +16,7 @@ class BSNeoLegacyHelper {
|
|
|
16
16
|
static getTokens(network) {
|
|
17
17
|
var _a;
|
|
18
18
|
const extraTokens = (_a = BSNeoLegacyConstants_1.BSNeoLegacyConstants.EXTRA_TOKENS_BY_NETWORK_ID[network.id]) !== null && _a !== void 0 ? _a : [];
|
|
19
|
-
return [...extraTokens, ...
|
|
19
|
+
return [...extraTokens, ...native_json_1.default];
|
|
20
20
|
}
|
|
21
21
|
static getRpcList(network) {
|
|
22
22
|
var _a;
|
|
@@ -292,6 +292,7 @@ _BSNeoLegacy_instances = new WeakSet(), _BSNeoLegacy_generateSigningCallback = f
|
|
|
292
292
|
});
|
|
293
293
|
}, _BSNeoLegacy_setTokens = function _BSNeoLegacy_setTokens(network) {
|
|
294
294
|
const tokens = BSNeoLegacyHelper_1.BSNeoLegacyHelper.getTokens(network);
|
|
295
|
+
this.nativeTokens = BSNeoLegacyConstants_1.BSNeoLegacyConstants.NATIVE_ASSETS;
|
|
295
296
|
this.tokens = tokens;
|
|
296
297
|
this.feeToken = tokens.find(token => token.symbol === 'GAS');
|
|
297
298
|
this.burnToken = tokens.find(token => token.symbol === 'NEO');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cityofzion/bs-neo-legacy",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.4",
|
|
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.0.11",
|
|
13
13
|
"@cityofzion/neon-js": "4.8.3",
|
|
14
14
|
"@ledgerhq/hw-transport": "~6.30.5",
|
|
15
|
-
"@cityofzion/blockchain-service": "1.
|
|
15
|
+
"@cityofzion/blockchain-service": "1.16.1",
|
|
16
16
|
"@cityofzion/bs-asteroid-sdk": "0.9.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
File without changes
|