@broxus/js-core
Advanced tools
Comparing version 0.17.4 to 0.17.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EmptyCell = exports.ZeroAddress = void 0; | ||
exports.DEFAULT_LP_TOKEN_DECIMALS = exports.DEFAULT_NATIVE_CURRENCY_DECIMALS = exports.EmptyCell = exports.ZeroAddress = void 0; | ||
const everscale_inpage_provider_1 = require("everscale-inpage-provider"); | ||
exports.ZeroAddress = new everscale_inpage_provider_1.AddressLiteral('0:0000000000000000000000000000000000000000000000000000000000000000'); | ||
exports.EmptyCell = 'te6ccgEBAQEAAgAAAA=='; | ||
exports.DEFAULT_NATIVE_CURRENCY_DECIMALS = 9; | ||
exports.DEFAULT_LP_TOKEN_DECIMALS = 9; |
@@ -9,2 +9,3 @@ "use strict"; | ||
const useRpcProvider_1 = require("../hooks/useRpcProvider"); | ||
const types_1 = require("../types"); | ||
const rpcMap = new Map(); | ||
@@ -23,4 +24,4 @@ function useRpcClient(provider = 'ever') { | ||
group: 'mainnet', | ||
id: 1, | ||
type: 'proto', | ||
id: types_1.TvmChains.VenomMainnet, | ||
type: process.env.NODE_ENV === 'production' ? 'proto' : 'jrpc', | ||
}, | ||
@@ -42,4 +43,4 @@ }).then(useRpcProvider_1.venomRpcFallback).catch(), | ||
group: 'testnet', | ||
id: 1000, | ||
type: 'proto', | ||
id: types_1.TvmChains.VenomTestnet, | ||
type: process.env.NODE_ENV === 'production' ? 'proto' : 'jrpc', | ||
}, | ||
@@ -46,0 +47,0 @@ }).then(useRpcProvider_1.venomRpcFallback).catch(), |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OrderingDirection = void 0; | ||
exports.OrderingDirection = exports.TvmChains = void 0; | ||
var TvmChains; | ||
(function (TvmChains) { | ||
TvmChains[TvmChains["EverscaleMainnet"] = 42] = "EverscaleMainnet"; | ||
TvmChains[TvmChains["VenomMainnet"] = 1] = "VenomMainnet"; | ||
TvmChains[TvmChains["VenomTestnet"] = 1000] = "VenomTestnet"; | ||
})(TvmChains || (exports.TvmChains = TvmChains = {})); | ||
var OrderingDirection; | ||
@@ -5,0 +11,0 @@ (function (OrderingDirection) { |
import { AddressLiteral } from 'everscale-inpage-provider'; | ||
export declare const ZeroAddress: AddressLiteral<"0:0000000000000000000000000000000000000000000000000000000000000000">; | ||
export declare const EmptyCell = "te6ccgEBAQEAAgAAAA=="; | ||
export declare const DEFAULT_NATIVE_CURRENCY_DECIMALS = 9; | ||
export declare const DEFAULT_LP_TOKEN_DECIMALS = 9; |
import { AddressLiteral } from 'everscale-inpage-provider'; | ||
export const ZeroAddress = new AddressLiteral('0:0000000000000000000000000000000000000000000000000000000000000000'); | ||
export const EmptyCell = 'te6ccgEBAQEAAgAAAA=='; | ||
export const DEFAULT_NATIVE_CURRENCY_DECIMALS = 9; | ||
export const DEFAULT_LP_TOKEN_DECIMALS = 9; |
@@ -6,2 +6,3 @@ import { debug } from '@broxus/js-utils'; | ||
import { venomRpcFallback } from '../hooks/useRpcProvider'; | ||
import { TvmChains } from '../types'; | ||
const rpcMap = new Map(); | ||
@@ -20,4 +21,4 @@ export function useRpcClient(provider = 'ever') { | ||
group: 'mainnet', | ||
id: 1, | ||
type: 'proto', | ||
id: TvmChains.VenomMainnet, | ||
type: process.env.NODE_ENV === 'production' ? 'proto' : 'jrpc', | ||
}, | ||
@@ -39,4 +40,4 @@ }).then(venomRpcFallback).catch(), | ||
group: 'testnet', | ||
id: 1000, | ||
type: 'proto', | ||
id: TvmChains.VenomTestnet, | ||
type: process.env.NODE_ENV === 'production' ? 'proto' : 'jrpc', | ||
}, | ||
@@ -43,0 +44,0 @@ }).then(venomRpcFallback).catch(), |
@@ -74,2 +74,7 @@ import { type Address, type DelayedMessageExecution, type Transaction } from 'everscale-inpage-provider'; | ||
} | ||
export declare enum TvmChains { | ||
EverscaleMainnet = 42, | ||
VenomMainnet = 1, | ||
VenomTestnet = 1000 | ||
} | ||
export type TvmBasedNetwork = 'tvm'; | ||
@@ -76,0 +81,0 @@ export interface NetworkExplorerConfig { |
@@ -0,1 +1,7 @@ | ||
export var TvmChains; | ||
(function (TvmChains) { | ||
TvmChains[TvmChains["EverscaleMainnet"] = 42] = "EverscaleMainnet"; | ||
TvmChains[TvmChains["VenomMainnet"] = 1] = "VenomMainnet"; | ||
TvmChains[TvmChains["VenomTestnet"] = 1000] = "VenomTestnet"; | ||
})(TvmChains || (TvmChains = {})); | ||
export var OrderingDirection; | ||
@@ -2,0 +8,0 @@ (function (OrderingDirection) { |
{ | ||
"name": "@broxus/js-core", | ||
"version": "0.17.4", | ||
"version": "0.17.5", | ||
"description": "MobX-based JavaScript Core library", | ||
@@ -63,3 +63,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "00c25910d52fd0e2fe853bc6b91ba2965a19e554" | ||
"gitHead": "886bfc7cee2de3ab546643486bcf705e692df99c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1953890
45878
159