Skip to content

Commit fe1deb7

Browse files
committed
feat: Implementation done
1 parent 961086c commit fe1deb7

19 files changed

+1536
-1
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Expected Behavior
11+
12+
13+
## Actual Behavior
14+
15+
16+
## Steps to Reproduce the Problem
17+
1.
18+
2.
19+
3.
20+
21+
## Specifications
22+
- Version:
23+
- Platform:
24+
- Subsystem:

.github/pull_request_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fixes #
2+
3+
## Proposed Changes
4+
- Changes 1
5+
- Changes 2
6+
- Changes 3

.github/workflows/integration.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Integration
2+
3+
on: push
4+
5+
jobs:
6+
integration:
7+
runs-on: ubuntu-18.04
8+
container: python:3.8.11-slim
9+
10+
steps:
11+
- name: Install container dependencies
12+
run: |
13+
apt-get update
14+
apt-get install -y make software-properties-common gnupg2 gcc
15+
add-apt-repository -y ppa:git-core/ppa
16+
apt-get install -y git
17+
- name: Repository checkout
18+
uses: actions/checkout@v2
19+
- name: Set up Python 3.8
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.8
23+
- name: Install service dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
pip3 install pipenv
27+
find /usr/lib -name "libffi.so*"
28+
ln -s /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.6
29+
make init
30+
- name: Run ci bundle command
31+
run: |
32+
make ci-bundle

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/__pycache__/
2+
.vscode/
3+
.env
4+
.pytest_cache/
5+
.coverage

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: analysis
5+
name: Code analysis
6+
entry: make analysis
7+
language: system
8+
always_run: true
9+
- repo: local
10+
hooks:
11+
- id: format
12+
name: Code format
13+
entry: make format
14+
language: system
15+
always_run: true
16+
- repo: local
17+
hooks:
18+
- id: lint
19+
name: Code lint
20+
entry: make lint
21+
language: system
22+
always_run: true

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2020, Darkborderman
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Pipfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
pre-commit = "==2.14.0"
8+
pytest = "==6.2.4"
9+
pytest-cov = "==2.12.1"
10+
pytest-mock = "==3.6.1"
11+
bandit = "==1.7.0"
12+
isort = "==5.9.3"
13+
black = "==21.7b0"
14+
flake8 = "==3.9.2"
15+
pylint = "==2.9.6"
16+
17+
[packages]
18+
loguru = "==0.5.3"
19+
py-solc-x = "==1.1.0"
20+
web3 = {extras = ["tester"], version = "==5.23.0"}
21+
22+
[requires]
23+
python_version = "3.8"

0 commit comments

Comments
 (0)