Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
15f7827
Refactor poa components for latest geth version
Apr 20, 2021
2a347aa
Add makefile for convenience; Update readme to match up-to-date setup
Apr 20, 2021
2793a36
Add berlin block
Apr 21, 2021
bb35382
Add gcmode archive for blockscout
Apr 21, 2021
2837dc1
Add blockscout and swarm bee
Apr 21, 2021
fcf4604
Git is requied
Apr 21, 2021
2bf9628
Add postgres container for blockscout
Apr 21, 2021
46a35dc
Fix blockscout integration
Apr 22, 2021
3217980
Remove leftovers of go-ethereum swarm
Apr 22, 2021
6681acb
Update network topology description and quickstart
Apr 22, 2021
f5e5706
Fix format; update to latest setup
Apr 22, 2021
47e504c
Refactor PoW setup; now runnable
Apr 22, 2021
090331f
Add healthcheck; enable scaling for geth-node; assign ports similar t…
Apr 23, 2021
6f10916
Add description and quick start
Apr 23, 2021
f582582
Add deprecation warning for parity setup
Apr 23, 2021
5758547
Prepend account addresses with hex identifier
Apr 23, 2021
dbfad5f
Remove quotation marks for workdir
Apr 23, 2021
6e8adf5
Fix healthchecks for miners
Apr 23, 2021
c2885de
Fix typos
Apr 23, 2021
48c336b
Change docker.host.internal to static ip
Apr 23, 2021
8d9df31
Refactor toolbox to use latest tools
Apr 23, 2021
05ac774
Add makefile for convenience
Apr 23, 2021
114fce1
Update README for refactord setup
Apr 23, 2021
64272d7
Add nodejs dependency for smartcheck; remove solc dependency for oyente
Apr 26, 2021
c2f6b59
Make smartcheck default analyzer; add mythril for solc <= latest
Apr 26, 2021
a1380d8
Add build and build without cache command
Apr 26, 2021
c7ccf3f
Add build and build without cache command
Apr 26, 2021
02439a4
Merge branch 'refactor/geth-pow-docker' into feature/github-actions
Apr 26, 2021
422c77a
Merge branch 'refactor/toolbox-docker' into feature/github-actions
Apr 26, 2021
9e5c992
style: remove linebreaks; refactor naming
Apr 26, 2021
0e2a605
refactor: use bash instead of sh
Apr 26, 2021
29d2908
chore: ignore .vscode; add solidity highlighting for repo
Apr 26, 2021
ba472f3
chore: bump versions for dependencies; add scripts
Apr 26, 2021
1af10ac
refactor: replace travis ci with github actions; add dependabot confi…
Apr 26, 2021
f66b108
Add containerized one node skale setup
Apr 29, 2021
06dd2cc
Match headline and description
Apr 29, 2021
d59b2ae
Merge branch 'master' into feature/skale-docker
Apr 29, 2021
12f0ecc
Add skale setup to contents
Apr 29, 2021
0a3be0a
Add ipfs cluster
Apr 29, 2021
828124a
Add note for consensus mechanism
Apr 29, 2021
8a4fcff
Clarify setup
Apr 29, 2021
d53bf51
Add open-ethereum dev setup
Apr 30, 2021
fd17c4a
Merge branch 'refactor/toolbox-docker' into dev
Apr 30, 2021
2130273
chore: resolve merge conflicts and merge
Apr 30, 2021
e9b6abf
chore: resolve merge conflicts and merge
Apr 30, 2021
be1b5e3
Add ipfs setup to contents
Apr 30, 2021
46e7a13
Add openethereum setup to contents
Apr 30, 2021
a288c3e
chore: remove travis ci build status
Apr 30, 2021
22e664e
Merge branch 'feature/github-actions' into dev
Apr 30, 2021
411af26
Merge branch 'feature/ipfs-docker' into dev
Apr 30, 2021
d923068
Merge branch 'feature/openethereum-docker' into dev
Apr 30, 2021
2bb6eba
chore: remove duplicate image
Apr 30, 2021
f040cfd
fix: add missing setups to build and deploy
May 3, 2021
e60435b
feat: prepare gha to use ghcr
May 3, 2021
590356f
fix: remove comment to push to Docker Hub
May 3, 2021
066b7a2
fix: add missing geth-explorer to ghcr
May 3, 2021
0dc6feb
Setup both oyente and mythril toolbox
May 3, 2021
3d83402
fix: merge conflicts
May 3, 2021
e55ecf4
chore: add label; / for multiple statements in COPY
May 3, 2021
2f30dc3
fix: remove version and add identifier
May 3, 2021
54985d1
chore: update quick start commands
May 4, 2021
0737257
Merge branch 'refactor/toolbox-docker' into feature/ghcr-gha
May 4, 2021
1a3577c
chore: add bash flag; fix minor typos; add swarm bee description
May 4, 2021
fce0baf
Add example contract for solc 0.8.4
May 4, 2021
2f109ef
Add detailed quick start for analayzer
May 4, 2021
55f099a
Merge branch 'refactor/toolbox-docker' into feature/ghcr-gha
May 4, 2021
14d3f62
chore: resolve merge conflicts
myronrotter May 17, 2021
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sol linguist-language=Solidity
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Description

<!-- Brief description of the code changes. Add supporting screenshots and videos where applicable. -->

### Motivation

<!-- If this PR does not close any issue, state the motivation behind the PR here. -->

### Related issues and PRs

<!-- Please link issues and other PR's on which this PR depends. -->

### How has this been tested

<!-- How others should test your changes and check for any possible regressions. -->

- [ ] Step 1

### Checklist

<!-- Go over the checklist, and put an `x` in all the boxes when you confirm they have been done. -->

- [ ] I have reviewed the code changes myself
- [ ] My code meets all of the acceptance criteria of the issue it closes.
- [ ] I have made all necessary changes to the documentation.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
- [ ] Any dependent changes have been merged and published.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2

updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
schedule:
interval: "weekly"

# Enable version updates for Docker
- package-ecosystem: "docker"
# Look for a `Dockerfile` in the `root` directory
# Expand for subdirectories
directory: "/"
schedule:
interval: "weekly"

# Enable version updates for GitHub-Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches:
- master

jobs:
push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- uses: actions/checkout@v2

- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
registry-url: http://registry.npmjs.org/

- name: Install dependencies
run: npm ci

- name: Log into GitHub container registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build images
run: npm run build

- name: Push images
run: npm run deploy
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
.DS_Store
**/.DS_Store
.idea/
node_modules/
.vscode/

*.swp

node_modules/
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

77 changes: 24 additions & 53 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,86 +6,57 @@ Please note we have a code of conduct, please follow it in all your interactions

## Pull Request Process

1. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
2. Update the README.md with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the README.md to the new version that this
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of another developer, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.
1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
2. Update the README.md with details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of another developer, or if you do not have permission to do that, you may request the second reviewer to merge it for you.

## Code of Conduct

### Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

### Our Standards

Examples of behavior that contributes to creating a positive environment
include:
Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

### Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

### Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at [MaibornWolff@users.noreply.github.com]. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [MaibornWolff@users.noreply.github.com].
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Ethereum Development Environment and Network (EDEN)

[![Build Status](https://travis-ci.com/MaibornWolff/eden.svg?branch=master)](https://travis-ci.com/MaibornWolff/eden)

**E**thereum **D**evelopment **E**nvironment and **N**etwork is a collection of tools and templates to enable app developers to create new prototypes fast and effectively.

![Screenshot of the EDEN dashboard](/docs/images/dashboard.png)

## Contents

- Private PoA geth blockchain including bootnode, fullnode, miners, explorers and monitors
Expand All @@ -12,15 +12,13 @@

- Private PoA parity blockchain including authorities, members, explorers and monitors

- Toolbox with Truffle, Oyente and some development utilities
- Toolbox with Truffle, Oyente, Smartcheck and Mythril as analyzer as well as other development utilities

- Open-Ethereum development chain including explorer, monitor and dashboard
- Single SKALE node environment

- Private IPFS network including IPFS peers and clusters

- Single SKALE node environment

![Screenshot of the EDEN dashboard](/doc/img/eden_grafik.png)
- Open-Ethereum development chain including explorer, monitor and dashboard

## Getting Started

Expand All @@ -46,7 +44,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduc

## Versioning

We use [SemVer](http://semver.org) for versioning. For the versions available, see the [tags on this repository](tags).
We use [SemVer](http://semver.org) for versioning.

## Authors

Expand Down
File renamed without changes
20 changes: 14 additions & 6 deletions geth-poa-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ A set of Docker images to create a local PoA Ethereum network with one bootnode,
The testnet consists of several parts:

- 1 bootnode: registers existing nodes on the network, discovery service.
- 2 miners: also called **sealers** within proof-of-authority (PoA). They validate the blocks.
- 2 miners: also called **sealers** within PoA. They validate the blocks.
- 1 fullnode: this serves as **transaction relay** and is a fullnode that does not mine, is locked but has RPC exposed.
- 2 swarm bee nodes: these nodes make up the **peer-to-peer CDN**.
- 3 blockchain explorer: 2 lightweight web applications to explore the blockchain and 1 blockscout explorer.
- 1 monitor and its corresponding dashboard: the monitor collects data from the fullnode which is displayed through the dashboard.

## Quick start

Setting up this network requires you to install Docker and Docker Compose. Clone the repository, and run `docker-compose up` or use Makefile commands from this directory.
Setting up this network requires you to install Docker and Docker Compose. Clone the repository, run `docker-compose up` or use Makefile commands from this directory.

```
```bash
# Start the network
$ make start
# Restart the network
Expand All @@ -36,15 +36,23 @@ The nodes in the network are connecting with the bootnode. This is a special Eth

There are three nodes that participate in the network. The state is synchronized between them and they are trying to create blocks with mining. Initially, they connect to the bootnode with the information derived from the fixed IP and the `nodekeyhex`. If you want to interact with the network, you need to connect via RPC. You can attach a geth instance, connect Remix IDE or connect your browser with web3 and build a dApp.

The RPC Ports of the nodes are mapped to your localhost, the addresses are:
The RPC ports of the nodes are mapped to your localhost, the addresses are:

- geth-dev-miner-1: [http://localhost:8541](http://localhost:8541)
- geth-dev-miner-2: [http://localhost:8543](http://localhost:8543)
- geth-dev-node: [http://localhost:8545](http://localhost:8545)

### Swarm bee / IPFS
### Swarm bee

Swarm is a decentralised data storage and content distribution technology, in other words, it is the "decentralized storage piece in dApps".
The primary objective of Swarm is to provide a sufficiently decentralized and redundant store of Ethereum’s public record, in particular to store and distribute dapp code and data as well as blockchain data.
Swarm Bee is the successor of the Ethereum Swarm client aiming for a production-ready version of Swarm.
Note that Bee does not currently expose every feature of the original Swarm client

The ports of the nodes are mapped to your localhost, the addresses are:

Work in progress
- bee-1: [http://localhost:1633](http://localhost:1633)
- bee-2: [http://localhost:2633](http://localhost:2633)

### Blockchain explorer

Expand Down
2 changes: 2 additions & 0 deletions geth-poa-docker/blockscout/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM bitwalker/alpine-elixir-phoenix:1.11.3

LABEL org.opencontainers.image.source https://github.com/maibornwolff/eden

RUN apk --no-cache --update add alpine-sdk gmp-dev automake libtool inotify-tools autoconf python3 git

# Get Rust
Expand Down
2 changes: 2 additions & 0 deletions geth-poa-docker/bootnode/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM ubuntu:xenial

LABEL org.opencontainers.image.source https://github.com/maibornwolff/eden

RUN apt-get update \
&& apt-get install -y wget software-properties-common \
&& rm -rf /var/lib/apt/lists/*
Expand Down
Loading