Skip to content

Commit 6b1ac4a

Browse files
committed
blockchain: migrating to scoped packages
1 parent de35f5d commit 6b1ac4a

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

packages/blockchain/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This module performs write operations. Making a backup of your data before tryin
2626

2727
```javascript
2828
const level = require('level')
29-
const Blockchain = require('ethereumjs-blockchain').default
29+
const Blockchain = require('@ethereumjs/blockchain').default
3030
const utils = require('ethereumjs-util')
3131

3232
const gethDbPath = './chaindata' // Add your own path here. It will get modified, see remarks.
@@ -44,7 +44,7 @@ new Blockchain({ db: db }).iterator(
4444
)
4545
```
4646

47-
**WARNING**: Since `ethereumjs-blockchain` is also doing write operations
47+
**WARNING**: Since `@ethereumjs/blockchain` is also doing write operations
4848
on the DB for safety reasons only run this on a copy of your database, otherwise this might lead
4949
to a compromised DB state.
5050

@@ -58,8 +58,8 @@ If you want to join for work or do improvements on the libraries have a look at
5858
[gitter-link]: https://gitter.im/ethereum/ethereumjs
5959
[js-standard-style-badge]: https://cdn.rawgit.com/feross/standard/master/badge.svg
6060
[js-standard-style-link]: https://github.com/feross/standard
61-
[blockchain-npm-badge]: https://img.shields.io/npm/v/ethereumjs-blockchain.svg
62-
[blockchain-npm-link]: https://www.npmjs.org/package/ethereumjs-blockchain
61+
[blockchain-npm-badge]: https://img.shields.io/npm/v/@ethereumjs/blockchain.svg
62+
[blockchain-npm-link]: https://www.npmjs.org/package/@ethereumjs/blockchain
6363
[blockchain-issues-badge]: https://img.shields.io/github/issues/ethereumjs/ethereumjs-vm/package:%20blockchain?label=issues
6464
[blockchain-issues-link]: https://github.com/ethereumjs/ethereumjs-vm/issues?q=is%3Aopen+is%3Aissue+label%3A"package%3A+blockchain"
6565
[blockchain-actions-badge]: https://github.com/ethereumjs/ethereumjs-vm/workflows/Blockchain%20Test/badge.svg

packages/blockchain/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ethereumjs-blockchain",
2+
"name": "@ethereumjs/blockchain",
33
"version": "4.0.3",
44
"description": "A module to store and interact with blocks",
55
"main": "dist/index.js",
@@ -29,7 +29,7 @@
2929
},
3030
"repository": {
3131
"type": "git",
32-
"url": "git+https://github.com/ethereumjs/ethereumjs-blockchain.git"
32+
"url": "git+https://github.com/ethereumjs/ethereumjs-vm.git"
3333
},
3434
"keywords": [
3535
"ethereum",
@@ -38,14 +38,14 @@
3838
"author": "mjbecze <mjbecze@gmail.com>",
3939
"license": "MPL-2.0",
4040
"bugs": {
41-
"url": "https://github.com/ethereumjs/ethereumjs-blockchain/issues"
41+
"url": "https://github.com/ethereumjs/ethereumjs-vm/issues?q=is%3Aissue+label%3A\"package%3A+blockchain\""
4242
},
43-
"homepage": "https://github.com/ethereumjs/ethereumjs-blockchain#readme",
43+
"homepage": "https://github.com/ethereumjs/ethereumjs-vm/tree/master/packages/blockchain#synopsis",
4444
"dependencies": {
45+
"@ethereumjs/block": "~2.2.2",
46+
"@ethereumjs/common": "^1.5.0",
4547
"async": "^2.6.1",
4648
"ethashjs": "~0.0.7",
47-
"ethereumjs-block": "~2.2.2",
48-
"ethereumjs-common": "^1.5.0",
4949
"ethereumjs-util": "~6.1.0",
5050
"flow-stoplight": "^1.0.0",
5151
"level-mem": "^3.0.1",

packages/blockchain/src/dbManager.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import BN = require('bn.js')
1515

1616
const level = require('level-mem')
17-
const Block = require('ethereumjs-block')
17+
const Block = require('@ethereumjs/block')
1818

1919
/**
2020
* Abstraction over a DB to facilitate storing/fetching blockchain-related

packages/blockchain/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as async from 'async'
22
import { BN, rlp } from 'ethereumjs-util'
3-
import Common from 'ethereumjs-common'
3+
import Common from '@ethereumjs/common'
44
import { callbackify } from './callbackify'
55
import DBManager from './dbManager'
66
import {
@@ -14,7 +14,7 @@ import {
1414
tdKey,
1515
} from './util'
1616

17-
const Block = require('ethereumjs-block')
17+
const Block = require('@ethereumjs/block')
1818
const Ethash = require('ethashjs')
1919
const Stoplight = require('flow-stoplight')
2020
const level = require('level-mem')

packages/blockchain/test/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as async from 'async'
2-
import Common from 'ethereumjs-common'
2+
import Common from '@ethereumjs/common'
33
import { toBuffer, bufferToInt } from 'ethereumjs-util'
44
import * as test from 'tape'
55
import Blockchain, { Block } from '../src'
66
import { generateBlockchain, generateBlocks, isConsecutive, createTestDB } from './util'
77

88
import BN = require('bn.js')
99

10-
const Block = require('ethereumjs-block')
10+
const Block = require('@ethereumjs/block')
1111
const level = require('level-mem')
1212
const testData = require('./testdata.json')
1313

packages/blockchain/test/util.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import BN = require('bn.js')
33
import Blockchain, { Block } from '../src'
44

55
const util = require('util')
6-
const Block = require('ethereumjs-block')
6+
const Block = require('@ethereumjs/block')
77
const level = require('level-mem')
88

99
export const generateBlockchain = async (

0 commit comments

Comments
 (0)