@rarible/sdk-common
Advanced tools
Comparing version 0.13.60-beta.1 to 0.13.60-beta.2
@@ -17,1 +17,2 @@ import type { AssetType, CollectionId, CurrencyId, ItemId, OrderId, OwnershipId } from "@rarible/api-client"; | ||
}; | ||
export declare function isSupportedBlockchain(blockchain: string): blockchain is SupportedBlockchain; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FLOW_TOKEN_MAP = exports.validateBlockchain = exports.getEntityData = exports.extractId = exports.extractBlockchain = exports.extractBlockchainFromAssetType = void 0; | ||
exports.isSupportedBlockchain = exports.FLOW_TOKEN_MAP = exports.validateBlockchain = exports.getEntityData = exports.extractId = exports.extractBlockchain = exports.extractBlockchainFromAssetType = void 0; | ||
const blockchain_1 = require("./blockchain"); | ||
@@ -50,3 +50,3 @@ function extractBlockchainFromAssetType(assetType) { | ||
function validateBlockchain(blockchain) { | ||
if (!(blockchain in blockchain_1.SupportedBlockchains)) { | ||
if (!isSupportedBlockchain(blockchain)) { | ||
throw new Error(`Value: "${blockchain}" is not a supported blockchain type`); | ||
@@ -61,1 +61,5 @@ } | ||
}; | ||
function isSupportedBlockchain(blockchain) { | ||
return blockchain_1.SupportedBlockchains.includes(blockchain); | ||
} | ||
exports.isSupportedBlockchain = isSupportedBlockchain; |
{ | ||
"name": "@rarible/sdk-common", | ||
"version": "0.13.60-beta.1", | ||
"version": "0.13.60-beta.2", | ||
"homepage": "", | ||
@@ -34,3 +34,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "a1e7a8d5c8b7f0060ecc2d8853f764a76d8ab618" | ||
"gitHead": "868b81ea286b43f22b1d852245059c09d17ade3e" | ||
} |
31140
711