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

Monorepo: Add src files to package build / VM lib -> src renaming #1301

Merged
merged 7 commits into from
Jun 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/devp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/ethash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/trie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
],
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
},
"files": [
"dist",
"dist.browser"
"dist.browser",
"src"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../../config/nyc.json",
"include": [
"lib/**/*.ts"
"src/**/*.ts"
]
}
2 changes: 1 addition & 1 deletion packages/vm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ This release switches to a new class based and promisified structure for
working down VM calls and running through code loops, and encapsulates this
logic to be bound to the specific `EVM` (so the classical Ethereum Virtual Machine)
implementation in the
[evm](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/lib/evm) module,
[evm](https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/src/evm) module,
opening the way for a future parallel `eWASM` additional implementation.

This new logic is mainly handled by the two new classes `EVM` (old: `Interpreter`)
Expand Down
10 changes: 5 additions & 5 deletions packages/vm/docs/classes/buildblock.blockbuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

**Returns:** [*BlockBuilder*](buildblock.blockbuilder.md)

Defined in: [buildBlock.ts:62](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/buildBlock.ts#L62)
Defined in: [buildBlock.ts:62](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/buildBlock.ts#L62)

## Properties

Expand All @@ -45,7 +45,7 @@ Defined in: [buildBlock.ts:62](https://github.com/ethereumjs/ethereumjs-monorepo

The cumulative gas used by the transactions added to the block.

Defined in: [buildBlock.ts:53](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/buildBlock.ts#L53)
Defined in: [buildBlock.ts:53](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/buildBlock.ts#L53)

## Methods

Expand All @@ -66,7 +66,7 @@ the remaining gas in the block.

**Returns:** *Promise*<[*RunTxResult*](../interfaces/runtx.runtxresult.md)\>

Defined in: [buildBlock.ts:144](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/buildBlock.ts#L144)
Defined in: [buildBlock.ts:144](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/buildBlock.ts#L144)

___

Expand All @@ -92,7 +92,7 @@ as the signer will be awarded the txs amount spent on gas as they are added.

**Returns:** *Promise*<Block\>

Defined in: [buildBlock.ts:198](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/buildBlock.ts#L198)
Defined in: [buildBlock.ts:198](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/buildBlock.ts#L198)

___

Expand All @@ -104,4 +104,4 @@ Reverts the checkpoint on the StateManager to reset the state from any transacti

**Returns:** *Promise*<void\>

Defined in: [buildBlock.ts:179](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/buildBlock.ts#L179)
Defined in: [buildBlock.ts:179](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/buildBlock.ts#L179)
6 changes: 3 additions & 3 deletions packages/vm/docs/classes/exceptions.vmerror.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@

**Returns:** [*VmError*](exceptions.vmerror.md)

Defined in: [exceptions.ts:30](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/exceptions.ts#L30)
Defined in: [exceptions.ts:30](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/exceptions.ts#L30)

## Properties

### error

• **error**: [*ERROR*](../enums/exceptions.error.md)

Defined in: [exceptions.ts:29](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/exceptions.ts#L29)
Defined in: [exceptions.ts:29](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/exceptions.ts#L29)

___

### errorType

• **errorType**: *string*

Defined in: [exceptions.ts:30](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/exceptions.ts#L30)
Defined in: [exceptions.ts:30](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/exceptions.ts#L30)
28 changes: 14 additions & 14 deletions packages/vm/docs/classes/index.default.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ Instantiates a new [[VM]] Object.

Overrides: AsyncEventEmitter.constructor

Defined in: [index.ts:156](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L156)
Defined in: [index.ts:156](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L156)

## Properties

### \_common

• `Readonly` **\_common**: *default*

Defined in: [index.ts:126](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L126)
Defined in: [index.ts:126](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L126)

___

Expand All @@ -76,7 +76,7 @@ ___

The blockchain the VM operates on

Defined in: [index.ts:124](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L124)
Defined in: [index.ts:124](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L124)

___

Expand All @@ -86,7 +86,7 @@ ___

The StateManager used by the VM

Defined in: [index.ts:120](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L120)
Defined in: [index.ts:120](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L120)

## Methods

Expand Down Expand Up @@ -114,7 +114,7 @@ An instance of [BlockBuilder](buildblock.blockbuilder.md) with methods:
- `build(sealOpts): Block`
- `revert()`

Defined in: [index.ts:355](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L355)
Defined in: [index.ts:355](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L355)

___

Expand All @@ -126,7 +126,7 @@ Returns a copy of the [[VM]] instance.

**Returns:** [*default*](index.default.md)

Defined in: [index.ts:371](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L371)
Defined in: [index.ts:371](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L371)

___

Expand All @@ -139,7 +139,7 @@ available for VM execution

**Returns:** OpcodeList

Defined in: [index.ts:364](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L364)
Defined in: [index.ts:364](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L364)

___

Expand All @@ -149,7 +149,7 @@ ___

**Returns:** *Promise*<void\>

Defined in: [index.ts:241](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L241)
Defined in: [index.ts:241](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L241)

___

Expand All @@ -171,7 +171,7 @@ invalid. If an error is thrown from an event handler, the state may or may not b

**Returns:** *Promise*<[*RunBlockResult*](../interfaces/runblock.runblockresult.md)\>

Defined in: [index.ts:298](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L298)
Defined in: [index.ts:298](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L298)

___

Expand All @@ -192,7 +192,7 @@ This method modifies the state.

**Returns:** *Promise*<number \| void\>

Defined in: [index.ts:283](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L283)
Defined in: [index.ts:283](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L283)

___

Expand All @@ -212,7 +212,7 @@ This method modifies the state.

**Returns:** *Promise*<EVMResult\>

Defined in: [index.ts:324](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L324)
Defined in: [index.ts:324](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L324)

___

Expand All @@ -232,7 +232,7 @@ This method modifies the state.

**Returns:** *Promise*<ExecResult\>

Defined in: [index.ts:336](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L336)
Defined in: [index.ts:336](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L336)

___

Expand All @@ -254,7 +254,7 @@ reverted.

**Returns:** *Promise*<[*RunTxResult*](../interfaces/runtx.runtxresult.md)\>

Defined in: [index.ts:312](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L312)
Defined in: [index.ts:312](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L312)

___

Expand All @@ -272,4 +272,4 @@ VM async constructor. Creates engine instance and initializes it.

**Returns:** *Promise*<[*default*](index.default.md)\>

Defined in: [index.ts:152](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/lib/index.ts#L152)
Defined in: [index.ts:152](https://github.com/ethereumjs/ethereumjs-monorepo/blob/master/packages/vm/src/index.ts#L152)
Loading