@cityofzion/bs-neo-legacy
Advanced tools
Comparing version 1.7.1 to 1.8.0
@@ -9,2 +9,4 @@ import { BuildNftUrlParams, ExplorerService, Network } from '@cityofzion/blockchain-service'; | ||
buildNftUrl(_params: BuildNftUrlParams): string; | ||
getAddressTemplateUrl(): string | undefined; | ||
getTxTemplateUrl(): string | undefined; | ||
} |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64296
1389
+ Added@cityofzion/blockchain-service@1.13.2(transitive)
- Removed@cityofzion/blockchain-service@1.13.1(transitive)