iam-dev / poc-ers-contracts

Proof Of Concept Ethereum Reality Service, based on https://ethereum-magicians.org/t/a-proposal-for-the-ethereum-reality-service/9694

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POC ERS

Proof Of Concept Ethereum Reality Service, based on https://ethereum-magicians.org/t/a-proposal-for-the-ethereum-reality-service/9694

Overview

Installation

forge install && yarn install

Setup Husky to format code on commit:

yarn prepare

Link local packages and install remaining dependencies via Lerna:

yarn run lerna bootstrap

Compile contracts via Foundry Hardhat:

yarn compile

Generate a code coverage report using solidity-coverage:

yarn run hardhat coverage

Security Test

First install mythril

rustup default nightly
pip3 install mythril
myth analyze src/Contract.sol --solc-json mythril.config.json

Run mythril

myth analyze src/Counter.sol --solc-json mythril.config.json

Features

  • Write / run tests with either Hardhat or Foundry:
forge test
# or
yarn test
  • Use Hardhat's task framework
npx hardhat example

Publication

Publish packages via Lerna:

yarn lerna-publish

About

Proof Of Concept Ethereum Reality Service, based on https://ethereum-magicians.org/t/a-proposal-for-the-ethereum-reality-service/9694

License:MIT License


Languages

Language:Solidity 56.0%Language:TypeScript 38.4%Language:JavaScript 4.0%Language:Shell 1.6%