Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cityofzion/bs-neo-legacy

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cityofzion/bs-neo-legacy - npm Package Compare versions

Comparing version 1.7.1 to 1.8.0

2

dist/services/explorer/NeoTubeESNeoLegacy.d.ts

@@ -9,2 +9,4 @@ import { BuildNftUrlParams, ExplorerService, Network } from '@cityofzion/blockchain-service';

buildNftUrl(_params: BuildNftUrlParams): string;
getAddressTemplateUrl(): string | undefined;
getTxTemplateUrl(): string | undefined;
}

19

dist/services/explorer/NeoTubeESNeoLegacy.js

@@ -13,3 +13,3 @@ "use strict";

};
var _NeoTubeESNeoLegacy_network;
var _NeoTubeESNeoLegacy_BASE_URL, _NeoTubeESNeoLegacy_network;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -21,2 +21,3 @@ exports.NeoTubeESNeoLegacy = void 0;

constructor(network) {
_NeoTubeESNeoLegacy_BASE_URL.set(this, 'https://neo2.neotube.io');
_NeoTubeESNeoLegacy_network.set(this, void 0);

@@ -28,3 +29,3 @@ __classPrivateFieldSet(this, _NeoTubeESNeoLegacy_network, network, "f");

throw new Error('NeoTube is only available on mainnet');
return `https://neo2.neotube.io/transaction/${(0, blockchain_service_1.denormalizeHash)(hash)}`;
return `${__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_BASE_URL, "f")}/transaction/${(0, blockchain_service_1.denormalizeHash)(hash)}`;
}

@@ -34,3 +35,3 @@ buildContractUrl(contractHash) {

throw new Error('NeoTube is only available on mainnet');
return `https://neo2.neotube.io/asset/${contractHash}/page/1`;
return `${__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_BASE_URL, "f")}/asset/${contractHash}/page/1`;
}

@@ -40,4 +41,14 @@ buildNftUrl(_params) {

}
getAddressTemplateUrl() {
if (!BSNeoLegacyHelper_1.BSNeoLegacyHelper.isMainnet(__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_network, "f")))
return undefined;
return `${__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_BASE_URL, "f")}/address/{address}`;
}
getTxTemplateUrl() {
if (!BSNeoLegacyHelper_1.BSNeoLegacyHelper.isMainnet(__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_network, "f")))
return undefined;
return `${__classPrivateFieldGet(this, _NeoTubeESNeoLegacy_BASE_URL, "f")}/transaction/{txId}`;
}
}
exports.NeoTubeESNeoLegacy = NeoTubeESNeoLegacy;
_NeoTubeESNeoLegacy_network = new WeakMap();
_NeoTubeESNeoLegacy_BASE_URL = new WeakMap(), _NeoTubeESNeoLegacy_network = new WeakMap();
{
"name": "@cityofzion/bs-neo-legacy",
"version": "1.7.1",
"version": "1.8.0",
"main": "dist/index.js",

@@ -15,4 +15,4 @@ "types": "dist/index.d.ts",

"@ledgerhq/hw-transport": "~6.30.5",
"@cityofzion/blockchain-service": "1.13.1",
"@cityofzion/bs-asteroid-sdk": "0.9.0"
"@cityofzion/bs-asteroid-sdk": "0.9.0",
"@cityofzion/blockchain-service": "1.13.2"
},

@@ -19,0 +19,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc