@tatumio/shared-core
Advanced tools
Comparing version 2.0.1-alpha.273 to 2.0.1-alpha.274
{ | ||
"name": "@tatumio/shared-core", | ||
"version": "2.0.1-alpha.273", | ||
"version": "2.0.1-alpha.274", | ||
"license": "MIT", | ||
@@ -8,3 +8,3 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"@tatumio/api-client": "2.0.1-alpha.273", | ||
"@tatumio/api-client": "2.0.1-alpha.274", | ||
"axios": "^0.26.0", | ||
@@ -11,0 +11,0 @@ "form-data": "^4.0.0" |
@@ -16,5 +16,5 @@ export * from './lib/models/Blockchain'; | ||
}) => string; | ||
getNetworkConfig: (blockchain: import("./lib/models/Blockchain").BtcBasedBlockchain, options?: { | ||
getNetworkConfig: (blockchain: import("./lib/models/Blockchain").Blockchain.BTC | import("./lib/models/Blockchain").Blockchain.BCH | import("./lib/models/Blockchain").Blockchain.LTC | import("./lib/models/Blockchain").Blockchain.DOGE, options?: { | ||
testnet: boolean; | ||
}) => import("./lib/btc-based.network.common").Network; | ||
}; |
@@ -1,5 +0,5 @@ | ||
import { Blockchain, BtcBasedBlockchain, EvmBasedBlockchain } from './models/Blockchain'; | ||
import { Blockchain, EvmBasedBlockchain } from './models/Blockchain'; | ||
import { Currency, NativeCurrency } from '@tatumio/api-client'; | ||
export declare const blockchainHelper: { | ||
isBtcBased: (blockchain: Blockchain) => blockchain is BtcBasedBlockchain; | ||
isBtcBased: (blockchain: Blockchain) => blockchain is Blockchain.BTC | Blockchain.BCH | Blockchain.LTC | Blockchain.DOGE; | ||
isEvmBased: (blockchain: Blockchain) => blockchain is EvmBasedBlockchain; | ||
@@ -6,0 +6,0 @@ getBlockchainByCurrency: (currency: Currency) => Blockchain; |
@@ -27,5 +27,5 @@ export declare enum Blockchain { | ||
} | ||
export declare const BtcBasedBlockchains: Blockchain[]; | ||
export declare const EvmBasedBlockchains: Blockchain[]; | ||
export declare type BtcBasedBlockchain = Blockchain.BTC | Blockchain.LTC | Blockchain.DOGE | Blockchain.BCH; | ||
export declare const BtcBasedBlockchains: readonly [Blockchain.BTC, Blockchain.LTC, Blockchain.DOGE, Blockchain.BCH]; | ||
export declare type BtcBasedBlockchain = typeof BtcBasedBlockchains[number]; | ||
export declare type EvmBasedBlockchain = Blockchain.ETH | Blockchain.CELO | Blockchain.BSC | Blockchain.HARMONY | Blockchain.POLYGON | Blockchain.KCS | Blockchain.KLAY; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EvmBasedBlockchains = exports.BtcBasedBlockchains = exports.Blockchain = void 0; | ||
exports.BtcBasedBlockchains = exports.EvmBasedBlockchains = exports.Blockchain = void 0; | ||
var Blockchain; | ||
@@ -31,3 +31,2 @@ (function (Blockchain) { | ||
})(Blockchain = exports.Blockchain || (exports.Blockchain = {})); | ||
exports.BtcBasedBlockchains = [Blockchain.BTC, Blockchain.LTC, Blockchain.DOGE, Blockchain.BCH]; | ||
exports.EvmBasedBlockchains = [ | ||
@@ -41,2 +40,4 @@ Blockchain.ETH, | ||
]; | ||
// @TODO tmp solution | ||
exports.BtcBasedBlockchains = [Blockchain.BTC, Blockchain.LTC, Blockchain.DOGE, Blockchain.BCH]; | ||
//# sourceMappingURL=Blockchain.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44398
765
+ Added@tatumio/api-client@2.0.1-alpha.274(transitive)
- Removed@tatumio/api-client@2.0.1-alpha.273(transitive)