Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethereumjs/common

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethereumjs/common - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

dist.browser/chains/calaveras.json

7

CHANGELOG.md

@@ -9,2 +9,9 @@ # Changelog

## 2.3.1 - 2021-06-11
Small feature release.
- Added static helper method `Common.isSupportedChainId()`to check if a chain is natively supported by the Common version installed, PR [#1281](https://github.com/ethereumjs/ethereumjs-monorepo/pull/1281)
- Added support for the `calaveras` ephemeral developer test network (preparing for the `london` HF), PR [#1286](https://github.com/ethereumjs/ethereumjs-monorepo/pull/1286)
## 2.3.0 - 2021-05-26

@@ -11,0 +18,0 @@

2

dist.browser/chains/baikal.json

@@ -15,3 +15,3 @@ {

"comment": "The Baikal testnet chain",
"url": "https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/aleut.md",
"url": "https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/baikal.md",
"genesis": {

@@ -18,0 +18,0 @@ "hash": "0xa0bc5d43c72a990cedeb59d305702602b34c3ee8585e77d03c7a4fa64d79636e",

@@ -26,2 +26,3 @@ "use strict";

var baikal_json_1 = __importDefault(require("./baikal.json"));
var calaveras_json_1 = __importDefault(require("./calaveras.json"));
/**

@@ -41,2 +42,3 @@ * @hidden

'1642': 'baikal',
'123': 'calaveras',
};

@@ -52,2 +54,3 @@ var chains = {

baikal: baikal_json_1.default,
calaveras: calaveras_json_1.default,
};

@@ -54,0 +57,0 @@ if (customChains) {

@@ -14,2 +14,3 @@ "use strict";

'1642': 'baikal',
'123': 'calaveras',
},

@@ -24,2 +25,3 @@ mainnet: require('./mainnet.json'),

baikal: require('./baikal.json'),
calaveras: require('./calaveras.json'),
};

@@ -26,0 +28,0 @@ /**

@@ -74,2 +74,8 @@ /// <reference types="bn.js" />

static forCustomChain(baseChain: string | number, customChainParams: Partial<Chain>, hardfork?: string, supportedHardforks?: Array<string>): Common;
/**
* Static method to determine if a chainId is supported as a standard chain
* @param chainId BN id (`1`) of a standard chain
* @returns boolean
*/
static isSupportedChainId(chainId: BN): boolean;
private static _getChainParams;

@@ -76,0 +82,0 @@ /**

@@ -90,2 +90,11 @@ "use strict";

};
/**
* Static method to determine if a chainId is supported as a standard chain
* @param chainId BN id (`1`) of a standard chain
* @returns boolean
*/
Common.isSupportedChainId = function (chainId) {
var initializedChains = chains_1._getInitializedChains();
return Boolean(initializedChains['names'][chainId.toString()]);
};
Common._getChainParams = function (chain, customChains) {

@@ -92,0 +101,0 @@ var initializedChains = chains_1._getInitializedChains(customChains);

@@ -15,3 +15,3 @@ {

"comment": "The Baikal testnet chain",
"url": "https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/aleut.md",
"url": "https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/client-integration-testnets/baikal.md",
"genesis": {

@@ -18,0 +18,0 @@ "hash": "0xa0bc5d43c72a990cedeb59d305702602b34c3ee8585e77d03c7a4fa64d79636e",

@@ -15,2 +15,3 @@ "use strict";

const baikal_json_1 = __importDefault(require("./baikal.json"));
const calaveras_json_1 = __importDefault(require("./calaveras.json"));
/**

@@ -29,2 +30,3 @@ * @hidden

'1642': 'baikal',
'123': 'calaveras',
};

@@ -40,2 +42,3 @@ const chains = {

baikal: baikal_json_1.default,
calaveras: calaveras_json_1.default,
};

@@ -42,0 +45,0 @@ if (customChains) {

@@ -14,2 +14,3 @@ "use strict";

'1642': 'baikal',
'123': 'calaveras',
},

@@ -24,2 +25,3 @@ mainnet: require('./mainnet.json'),

baikal: require('./baikal.json'),
calaveras: require('./calaveras.json'),
};

@@ -26,0 +28,0 @@ /**

@@ -74,2 +74,8 @@ /// <reference types="bn.js" />

static forCustomChain(baseChain: string | number, customChainParams: Partial<Chain>, hardfork?: string, supportedHardforks?: Array<string>): Common;
/**
* Static method to determine if a chainId is supported as a standard chain
* @param chainId BN id (`1`) of a standard chain
* @returns boolean
*/
static isSupportedChainId(chainId: BN): boolean;
private static _getChainParams;

@@ -76,0 +82,0 @@ /**

@@ -53,2 +53,11 @@ "use strict";

}
/**
* Static method to determine if a chainId is supported as a standard chain
* @param chainId BN id (`1`) of a standard chain
* @returns boolean
*/
static isSupportedChainId(chainId) {
const initializedChains = chains_1._getInitializedChains();
return Boolean(initializedChains['names'][chainId.toString()]);
}
static _getChainParams(chain, customChains) {

@@ -55,0 +64,0 @@ const initializedChains = chains_1._getInitializedChains(customChains);

{
"name": "@ethereumjs/common",
"version": "2.3.0",
"version": "2.3.1",
"description": "Resources common to all Ethereum implementations",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -98,5 +98,6 @@ # @ethereumjs/common

- `goerli`
- `yolov3`
- `aleut`
- `baikal`
- `yolov3` (retired)
- `aleut` (retired)
- `baikal` (retired)
- `calaveras`
- Private/custom chain parameters

@@ -103,0 +104,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc