Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to ethereumjs-config v2.0.0 (old) #886

Closed
wants to merge 44 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
b213a7b
tooling: adding clean script
evertonfraga Aug 18, 2020
da1ce63
account: Integrating @ethereumjs/config-typescript
evertonfraga Aug 27, 2020
07e7aef
git: adding dist.browser to gitignore
evertonfraga Sep 8, 2020
ec9b292
Adding dist.browser to prettierignore
evertonfraga Sep 8, 2020
949b250
Merge
evertonfraga Sep 9, 2020
351a193
docs: Add verdaccio documentation
evertonfraga Sep 9, 2020
095804b
Ethereumjs Config implementation
evertonfraga Sep 16, 2020
4192398
blockchain,vm: Making builds pass
evertonfraga Sep 16, 2020
25f7241
Using gitpkg urls
evertonfraga Sep 16, 2020
ed24f35
tooling: Enabling lint on pre-push
evertonfraga Sep 21, 2020
019490e
account: lint, docs rebuild
evertonfraga Sep 21, 2020
3aac8d0
block: lint, docs rebuild
evertonfraga Sep 21, 2020
1639d22
blockchain: lint, docs rebuild
evertonfraga Sep 21, 2020
4205381
blockchain: lint, docs rebuild
evertonfraga Sep 21, 2020
3994df9
common: lint, docs rebuild
evertonfraga Sep 21, 2020
3b7e6ff
ethash: lint
evertonfraga Sep 21, 2020
6b749c1
account: fix test run
evertonfraga Sep 21, 2020
6810c8a
blockchain: fix test runner
evertonfraga Sep 21, 2020
3b33542
vm: fix test run
evertonfraga Sep 21, 2020
c95e55a
common: fix test run
evertonfraga Sep 21, 2020
171a8d6
tx: fix test run
evertonfraga Sep 22, 2020
4633078
ethash: fix test run
evertonfraga Sep 22, 2020
b5551b5
ethash: Fixes lint; Reference local variable instead of global "exports"
evertonfraga Sep 22, 2020
05f56ee
tx: Lint fixes
evertonfraga Sep 22, 2020
c7c63b7
tx: Post-rebase fixes
evertonfraga Sep 22, 2020
02932ad
lint: minor fixes
evertonfraga Sep 23, 2020
6582671
block: Linting fixes
evertonfraga Oct 6, 2020
347c2e5
vm: fix merge results
evertonfraga Oct 6, 2020
5763061
common: Disable specific eslint rule
evertonfraga Oct 6, 2020
22e5efa
block: fix typescript in tests
evertonfraga Oct 6, 2020
40d1aad
vm: Fixing linting errors
evertonfraga Oct 6, 2020
ec3e61e
vm: lint fixes and rule exceptions
evertonfraga Oct 6, 2020
5f4e756
vm: Adding rules to ignore list to be handled later
evertonfraga Oct 6, 2020
960bfa5
vm: karma tests tuning
evertonfraga Oct 6, 2020
ca29b04
Fixing coverage config
evertonfraga Oct 7, 2020
6707424
triggering tests
evertonfraga Oct 8, 2020
f7d0482
Fixing eslint dependencies
evertonfraga Oct 8, 2020
6d6ac9e
Package-lock updates
evertonfraga Oct 8, 2020
70c7930
Removing merge conflict markers
evertonfraga Oct 8, 2020
7108daf
tx: karma concurrency to 1
evertonfraga Oct 8, 2020
6628ec5
lint: prettier fix on lates PRs merged to master
evertonfraga Oct 8, 2020
919f8ce
Extending prettier config from parent package
evertonfraga Oct 8, 2020
2a7e0f0
lint: Updated maximum line width to 100
evertonfraga Oct 8, 2020
7b7de30
updating remote package references
evertonfraga Oct 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
blockchain: lint, docs rebuild
  • Loading branch information
evertonfraga committed Oct 8, 2020
commit 4205381a52b93c938f5a669824dc17200b2ddeb4
36 changes: 18 additions & 18 deletions packages/blockchain/docs/classes/_index_.blockchain.md
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ This class stores and interacts with blocks.

\+ **new Blockchain**(`opts`: [BlockchainOptions](../interfaces/_index_.blockchainoptions.md)): *[Blockchain](_index_.blockchain.md)*

*Defined in [index.ts:114](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L114)*
*Defined in [index.ts:106](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L106)*

Creates new Blockchain object

@@ -68,31 +68,31 @@ Name | Type | Default | Description |

• **db**: *LevelUp*

*Defined in [index.ts:98](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L98)*
*Defined in [index.ts:90](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L90)*

___

### dbManager

• **dbManager**: *DBManager*

*Defined in [index.ts:99](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L99)*
*Defined in [index.ts:91](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L91)*

___

### `Optional` ethash

• **ethash**? : *Ethash*

*Defined in [index.ts:100](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L100)*
*Defined in [index.ts:92](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L92)*

## Accessors

### meta

• **get meta**(): *object*

*Defined in [index.ts:154](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L154)*
*Defined in [index.ts:155](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L155)*

Returns an object with metadata about the Blockchain. It's defined for backwards compatibility.

@@ -112,7 +112,7 @@ Returns an object with metadata about the Blockchain. It's defined for backwards

*Implementation of [BlockchainInterface](../interfaces/_index_.blockchaininterface.md)*

*Defined in [index.ts:707](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L707)*
*Defined in [index.ts:731](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L731)*

Deletes a block from the blockchain. All child blocks in the chain are deleted and any
encountered heads are set to the parent block.
@@ -133,7 +133,7 @@ ___

*Implementation of [BlockchainInterface](../interfaces/_index_.blockchaininterface.md)*

*Defined in [index.ts:449](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L449)*
*Defined in [index.ts:471](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L471)*

Gets a block by its hash.

@@ -151,7 +151,7 @@ ___

▸ **getBlocks**(`blockId`: Buffer | BN | number, `maxBlocks`: number, `skip`: number, `reverse`: boolean): *Promise‹Block[]›*

*Defined in [index.ts:472](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L472)*
*Defined in [index.ts:494](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L494)*

Looks up many blocks relative to blockId

@@ -172,7 +172,7 @@ ___

▸ **getHead**(`name`: string): *Promise‹Block›*

*Defined in [index.ts:242](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L242)*
*Defined in [index.ts:249](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L249)*

Returns the specified iterator head.

@@ -190,7 +190,7 @@ ___

▸ **getLatestBlock**(): *Promise‹Block‹››*

*Defined in [index.ts:275](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L275)*
*Defined in [index.ts:282](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L282)*

Returns the latest full block in the canonical chain.

@@ -202,7 +202,7 @@ ___

▸ **getLatestHeader**(): *Promise‹BlockHeader›*

*Defined in [index.ts:259](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L259)*
*Defined in [index.ts:266](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L266)*

Returns the latest header in the canonical chain.

@@ -216,7 +216,7 @@ ___

*Implementation of [BlockchainInterface](../interfaces/_index_.blockchaininterface.md)*

*Defined in [index.ts:819](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L819)*
*Defined in [index.ts:860](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L860)*

Iterates through blocks starting at the specified iterator head and calls the onBlock function
on each block. The current location of an iterator head can be retrieved using the `getHead()`
@@ -239,7 +239,7 @@ ___

*Implementation of [BlockchainInterface](../interfaces/_index_.blockchaininterface.md)*

*Defined in [index.ts:303](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L303)*
*Defined in [index.ts:310](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L310)*

Adds a block to the blockchain.

@@ -258,7 +258,7 @@ ___

▸ **putBlocks**(`blocks`: Block[]): *Promise‹void›*

*Defined in [index.ts:292](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L292)*
*Defined in [index.ts:299](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L299)*

Adds many blocks to the blockchain.

@@ -276,7 +276,7 @@ ___

▸ **putGenesis**(`genesis`: Block): *Promise‹void›*

*Defined in [index.ts:233](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L233)*
*Defined in [index.ts:240](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L240)*

Puts the genesis block in the database

@@ -294,7 +294,7 @@ ___

▸ **putHeader**(`header`: BlockHeader): *Promise‹void›*

*Defined in [index.ts:329](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L329)*
*Defined in [index.ts:342](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L342)*

Adds a header to the blockchain.

@@ -312,7 +312,7 @@ ___

▸ **putHeaders**(`headers`: Array‹any›): *Promise‹void›*

*Defined in [index.ts:318](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L318)*
*Defined in [index.ts:331](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L331)*

Adds many headers to the blockchain.

@@ -330,7 +330,7 @@ ___

▸ **selectNeededHashes**(`hashes`: Array‹Buffer›): *Promise‹Buffer‹›[]›*

*Defined in [index.ts:511](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L511)*
*Defined in [index.ts:533](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L533)*

Given an ordered array, returns an array of hashes that are not in the blockchain yet.

35 changes: 7 additions & 28 deletions packages/blockchain/docs/interfaces/_index_.blockchainoptions.md
Original file line number Diff line number Diff line change
@@ -12,61 +12,40 @@ This are the options that the Blockchain constructor can receive.

### Properties

* [chain](_index_.blockchainoptions.md#optional-chain)
* [common](_index_.blockchainoptions.md#optional-common)
* [db](_index_.blockchainoptions.md#optional-db)
* [hardfork](_index_.blockchainoptions.md#optional-hardfork)
* [validateBlocks](_index_.blockchainoptions.md#optional-validateblocks)
* [validatePow](_index_.blockchainoptions.md#optional-validatepow)

## Properties

### `Optional` chain

• **chain**? : *string | number*

*Defined in [index.ts:63](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L63)*

The chain id or name. Default: `"mainnet"`.

___

### `Optional` common

• **common**? : *Common*

*Defined in [index.ts:74](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L74)*
*Defined in [index.ts:66](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L66)*

Specify the chain and hardfork by passing a Common instance.

An alternative way to specify the chain and hardfork is by passing a Common instance.
If not provided this defaults to chain `mainnet` and hardfork `chainstart`

___

### `Optional` db

• **db**? : *LevelUp*

*Defined in [index.ts:79](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L79)*
*Defined in [index.ts:71](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L71)*

Database to store blocks and metadata. Should be an abstract-leveldown compliant store.

___

### `Optional` hardfork

• **hardfork**? : *string | null*

*Defined in [index.ts:69](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L69)*

Hardfork for the blocks. If `undefined` or `null` is passed, it gets computed based on block
numbers.

___

### `Optional` validateBlocks

• **validateBlocks**? : *undefined | false | true*

*Defined in [index.ts:91](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L91)*
*Defined in [index.ts:83](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L83)*

This flags indicates if blocks should be validated. See Block#validate for details. If
`validate` is provided, this option takes its value. If neither `validate` nor this option are
@@ -78,6 +57,6 @@ ___

• **validatePow**? : *undefined | false | true*

*Defined in [index.ts:84](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L84)*
*Defined in [index.ts:76](https://github.com/ethereumjs/ethereumjs-vm/blob/master/packages/blockchain/src/index.ts#L76)*

This flags indicates if Proof-of-work should be validated. Defaults to `true`.