@rarible/types
Advanced tools
Comparing version 0.5.1 to 0.5.2
export declare function isBlockchainSpecified(value: string): boolean; | ||
export declare function isRealBlockchainSpecified(value: string): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isBlockchainSpecified = void 0; | ||
exports.isRealBlockchainSpecified = exports.isBlockchainSpecified = void 0; | ||
var blockchains = [ | ||
@@ -9,2 +9,8 @@ "ETHEREUM", | ||
]; | ||
var realBlockchains = [ | ||
"ETHEREUM", | ||
"FLOW", | ||
"TEZOS", | ||
"POLYGON", | ||
]; | ||
function isBlockchainSpecified(value) { | ||
@@ -20,1 +26,11 @@ for (var _i = 0, blockchains_1 = blockchains; _i < blockchains_1.length; _i++) { | ||
exports.isBlockchainSpecified = isBlockchainSpecified; | ||
function isRealBlockchainSpecified(value) { | ||
for (var _i = 0, realBlockchains_1 = realBlockchains; _i < realBlockchains_1.length; _i++) { | ||
var blockchain = realBlockchains_1[_i]; | ||
if (value.startsWith(blockchain + ":")) { | ||
return true; | ||
} | ||
} | ||
return false; | ||
} | ||
exports.isRealBlockchainSpecified = isRealBlockchainSpecified; |
@@ -11,2 +11,3 @@ export * from "./address"; | ||
export * from "./union-address"; | ||
export * from "./contract-address"; | ||
export * from "./maybe"; |
@@ -14,2 +14,3 @@ "use strict"; | ||
(0, tslib_1.__exportStar)(require("./union-address"), exports); | ||
(0, tslib_1.__exportStar)(require("./contract-address"), exports); | ||
(0, tslib_1.__exportStar)(require("./maybe"), exports); |
{ | ||
"name": "@rarible/types", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"keywords": [ | ||
@@ -38,3 +38,3 @@ "rarible", | ||
}, | ||
"gitHead": "389319c69fc8c76a8075b0d4e9b0b1315e3938eb" | ||
"gitHead": "3449ab449a4f05055e793e1f29f8e2bf43e66bcb" | ||
} |
Sorry, the diff of this file is not supported yet
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
30880
30
290