bitski-provider
Advanced tools
Comparing version 2.0.0-beta.10 to 2.0.0-beta.11
# bitski-provider | ||
## 2.0.0-beta.11 | ||
### Patch Changes | ||
- [#326](https://github.com/BitskiCo/bitski-js/pull/326) [`c2b6acc`](https://github.com/BitskiCo/bitski-js/commit/c2b6acc8d5351ea1d7075a190b5529cb86dc4db8) Thanks [@chronicIntrovert](https://github.com/chronicIntrovert)! - Fix missing Arbitrum and Optimism exports for default chains | ||
## 2.0.0-beta.10 | ||
@@ -4,0 +10,0 @@ |
@@ -43,3 +43,3 @@ import SafeEventEmitter from '@metamask/safe-event-emitter'; | ||
this.activeSubs = new Set(); | ||
this.config = Object.assign(Object.assign({}, config), { fetch: (_a = config.fetch) !== null && _a !== void 0 ? _a : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': config.clientId, 'X-CLIENT-ID': config.clientId, 'X-CLIENT-VERSION': "bitski-provider-v2.0.0-beta.10" }, ((_b = config.additionalHeaders) !== null && _b !== void 0 ? _b : {})), apiBaseUrl: (_c = config.apiBaseUrl) !== null && _c !== void 0 ? _c : BITSKI_API_BASE_URL, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new LocalStorageStore(), sign: (_f = config.sign) !== null && _f !== void 0 ? _f : createBrowserSigner() }); | ||
this.config = Object.assign(Object.assign({}, config), { fetch: (_a = config.fetch) !== null && _a !== void 0 ? _a : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': config.clientId, 'X-CLIENT-ID': config.clientId, 'X-CLIENT-VERSION': "bitski-provider-v2.0.0-beta.11" }, ((_b = config.additionalHeaders) !== null && _b !== void 0 ? _b : {})), apiBaseUrl: (_c = config.apiBaseUrl) !== null && _c !== void 0 ? _c : BITSKI_API_BASE_URL, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new LocalStorageStore(), sign: (_f = config.sign) !== null && _f !== void 0 ? _f : createBrowserSigner() }); | ||
this.store = new BitskiProviderStateStore(this.config.store); | ||
@@ -46,0 +46,0 @@ // Setup the engine |
@@ -81,3 +81,3 @@ import { EthMethod } from 'eth-provider-types'; | ||
export const Mumbai = makeChainDef(80001, 'Mumbai', 'https://mumbai.polygonscan.com/'); | ||
export const Arbitrum = makeChainDef(42161, 'Arbitrum', 'https://arbiscan.io/'); | ||
export const ArbitrumOne = makeChainDef(42161, 'ArbitrumOne', 'https://arbiscan.io/'); | ||
export const Optimism = makeChainDef(10, 'Optimism', 'https://optimistic.etherscan.io/'); | ||
@@ -91,4 +91,6 @@ export const BinanceSmartChain = makeChainDef(56, 'BinanceSmartChain', 'https://bscscan.com/'); | ||
Mumbai, | ||
ArbitrumOne, | ||
Optimism, | ||
BinanceSmartChain, | ||
BinanceSmartChainTestnet, | ||
]; |
@@ -49,3 +49,3 @@ "use strict"; | ||
this.activeSubs = new Set(); | ||
this.config = Object.assign(Object.assign({}, config), { fetch: (_a = config.fetch) !== null && _a !== void 0 ? _a : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': config.clientId, 'X-CLIENT-ID': config.clientId, 'X-CLIENT-VERSION': "bitski-provider-v2.0.0-beta.10" }, ((_b = config.additionalHeaders) !== null && _b !== void 0 ? _b : {})), apiBaseUrl: (_c = config.apiBaseUrl) !== null && _c !== void 0 ? _c : constants_1.BITSKI_API_BASE_URL, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : constants_1.BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new store_1.LocalStorageStore(), sign: (_f = config.sign) !== null && _f !== void 0 ? _f : (0, browser_1.default)() }); | ||
this.config = Object.assign(Object.assign({}, config), { fetch: (_a = config.fetch) !== null && _a !== void 0 ? _a : fetch, additionalHeaders: Object.assign({ 'X-API-KEY': config.clientId, 'X-CLIENT-ID': config.clientId, 'X-CLIENT-VERSION': "bitski-provider-v2.0.0-beta.11" }, ((_b = config.additionalHeaders) !== null && _b !== void 0 ? _b : {})), apiBaseUrl: (_c = config.apiBaseUrl) !== null && _c !== void 0 ? _c : constants_1.BITSKI_API_BASE_URL, signerBaseUrl: (_d = config.signerBaseUrl) !== null && _d !== void 0 ? _d : constants_1.BITSKI_SIGNER_BASE_URL, store: (_e = config.store) !== null && _e !== void 0 ? _e : new store_1.LocalStorageStore(), sign: (_f = config.sign) !== null && _f !== void 0 ? _f : (0, browser_1.default)() }); | ||
this.store = new store_1.BitskiProviderStateStore(this.config.store); | ||
@@ -52,0 +52,0 @@ // Setup the engine |
@@ -15,3 +15,3 @@ import { EthChainDefinitionWithRpcUrl } from './types'; | ||
export declare const Mumbai: EthChainDefinitionWithRpcUrl; | ||
export declare const Arbitrum: EthChainDefinitionWithRpcUrl; | ||
export declare const ArbitrumOne: EthChainDefinitionWithRpcUrl; | ||
export declare const Optimism: EthChainDefinitionWithRpcUrl; | ||
@@ -18,0 +18,0 @@ export declare const BinanceSmartChain: EthChainDefinitionWithRpcUrl; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DEFAULT_CHAINS = exports.BinanceSmartChainTestnet = exports.BinanceSmartChain = exports.Optimism = exports.Arbitrum = exports.Mumbai = exports.Polygon = exports.Goerli = exports.Mainnet = exports.SUPPORTED_CHAIN_IDS = exports.UNAUTHORIZED_ERRORS = exports.RETRIABLE_ERRORS = exports.AUTHENTICATED_METHODS = exports.SIGN_METHODS = exports.IFRAME_MESSAGE_ORIGIN_ENDS_WITH = exports.BITSKI_SIGNER_BASE_URL = exports.BITSKI_RPC_BASE_URL = exports.BITSKI_API_BASE_URL = void 0; | ||
exports.DEFAULT_CHAINS = exports.BinanceSmartChainTestnet = exports.BinanceSmartChain = exports.Optimism = exports.ArbitrumOne = exports.Mumbai = exports.Polygon = exports.Goerli = exports.Mainnet = exports.SUPPORTED_CHAIN_IDS = exports.UNAUTHORIZED_ERRORS = exports.RETRIABLE_ERRORS = exports.AUTHENTICATED_METHODS = exports.SIGN_METHODS = exports.IFRAME_MESSAGE_ORIGIN_ENDS_WITH = exports.BITSKI_SIGNER_BASE_URL = exports.BITSKI_RPC_BASE_URL = exports.BITSKI_API_BASE_URL = void 0; | ||
const eth_provider_types_1 = require("eth-provider-types"); | ||
@@ -84,3 +84,3 @@ const parse_utils_1 = require("./utils/parse-utils"); | ||
exports.Mumbai = makeChainDef(80001, 'Mumbai', 'https://mumbai.polygonscan.com/'); | ||
exports.Arbitrum = makeChainDef(42161, 'Arbitrum', 'https://arbiscan.io/'); | ||
exports.ArbitrumOne = makeChainDef(42161, 'ArbitrumOne', 'https://arbiscan.io/'); | ||
exports.Optimism = makeChainDef(10, 'Optimism', 'https://optimistic.etherscan.io/'); | ||
@@ -94,2 +94,4 @@ exports.BinanceSmartChain = makeChainDef(56, 'BinanceSmartChain', 'https://bscscan.com/'); | ||
exports.Mumbai, | ||
exports.ArbitrumOne, | ||
exports.Optimism, | ||
exports.BinanceSmartChain, | ||
@@ -96,0 +98,0 @@ exports.BinanceSmartChainTestnet, |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "2.0.0-beta.10", | ||
"version": "2.0.0-beta.11", | ||
"scripts": { | ||
@@ -15,0 +15,0 @@ "test": "jest", |
@@ -96,3 +96,3 @@ import { EthMethod } from 'eth-provider-types'; | ||
export const Mumbai = makeChainDef(80001, 'Mumbai', 'https://mumbai.polygonscan.com/'); | ||
export const Arbitrum = makeChainDef(42161, 'Arbitrum', 'https://arbiscan.io/'); | ||
export const ArbitrumOne = makeChainDef(42161, 'ArbitrumOne', 'https://arbiscan.io/'); | ||
export const Optimism = makeChainDef(10, 'Optimism', 'https://optimistic.etherscan.io/'); | ||
@@ -111,4 +111,6 @@ export const BinanceSmartChain = makeChainDef(56, 'BinanceSmartChain', 'https://bscscan.com/'); | ||
Mumbai, | ||
ArbitrumOne, | ||
Optimism, | ||
BinanceSmartChain, | ||
BinanceSmartChainTestnet, | ||
]; |
Sorry, the diff of this file is not supported yet
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
355799
7627