Skip to content

Commit 9e03fda

Browse files
george-orcfaxross-spencer
authored andcommitted
Open sourced federated Orcfax Validator Node
Foundation is formed of the complete history of the validator node from July 11, 2023 to April 10, 2026. Co-authored-by: george-orcfax <135040020+george-orcfax@users.noreply.github.com>
0 parents  commit 9e03fda

80 files changed

Lines changed: 13108 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codespellignore

Whitespace-only changes.

.codespellrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[codespell]
2+
skip =
3+
*.po,
4+
*.ts,
5+
tests/*
6+
count =
7+
quiet-level = 3
8+
ignore-words-list =
9+
placeholder,
10+
double-click

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig: https://EditorConfig.org. Provides sensible defaults for
2+
# non vscode editors.
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Every file.
8+
[*]
9+
charset = "utf8"
10+
end_of_line = lf
11+
insert_final_newline = true
12+
13+
indent_style = space
14+
indent_size = 4
15+
16+
trim_trailing_whitespace = true
17+
18+
# Python. (Duplicates used as placeholders)
19+
[*.py]
20+
indent_style = space
21+
indent_size = 4

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
time: "00:10"
8+
- package-ecosystem: "pip"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
time: "00:10"

.github/workflows/linting.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: "linting - all"
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "main"
8+
jobs:
9+
lint:
10+
name: "linting (python)"
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- name: "Check out repository"
14+
uses: "actions/checkout@v6"
15+
- name: "Set up Python"
16+
uses: "actions/setup-python@v6"
17+
with:
18+
python-version: "3.10"
19+
- name: "install linting tooling"
20+
continue-on-error: true
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install -r requirements/local.txt ; pylint **/*.py
24+
- name: "run linting via tox"
25+
run: |
26+
tox -e linting

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pyreleaser
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: "checkout"
11+
uses: actions/checkout@v6
12+
- name: "fetch unshallow"
13+
run: git fetch --prune --unshallow
14+
- name: "list"
15+
run: pwd && ls -la
16+
- name: "deps"
17+
run: python -m pip install -r requirements/local.txt
18+
- name: "package"
19+
run: make package-source
20+
- name: "list"
21+
run: ls -la ./dist/
22+
- name: "release"
23+
uses: ncipollo/release-action@v1.20.0
24+
with:
25+
artifacts: "dist/*"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: "unit tests - all"
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
jobs:
8+
tox:
9+
name: "Python ${{ matrix.python-version }} -- ${{ matrix.os }} "
10+
runs-on: ${{ matrix.os }}
11+
continue-on-error: ${{ matrix.experimental }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
python-version: ["3.11", "3.12"]
16+
experimental: [false]
17+
include:
18+
- os: ubuntu-latest
19+
python-version: "3.13"
20+
experimental: true
21+
- os: macos-latest
22+
python-version: "3.12"
23+
experimental: true
24+
steps:
25+
- name: "check out repository"
26+
uses: "actions/checkout@v6"
27+
with:
28+
submodules: 'true'
29+
- name: "set up python ${{ matrix.python-version }}"
30+
uses: "actions/setup-python@v6"
31+
with:
32+
python-version: "${{ matrix.python-version }}"
33+
- name: "get pip cache dir"
34+
id: "pip-cache"
35+
run: |
36+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
37+
- name: "show outputs.dir"
38+
run: echo "${{ steps.pip-cache.outputs.dir }}"
39+
- name: "cache pip packages"
40+
uses: "actions/cache@v5"
41+
with:
42+
path: "${{ steps.pip-cache.outputs.dir }}"
43+
key: "${{ runner.os }}-pip-${{ hashFiles('**/base.txt', '**/local.txt') }}"
44+
restore-keys: |
45+
${{ runner.os }}-pip-
46+
- name: "install tox"
47+
run: |
48+
python -m pip install --upgrade pip
49+
pip install tox
50+
- name: "run tox"
51+
env:
52+
TOXENV: py3
53+
run: |
54+
tox

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.idea
2+
__pycache__
3+
venv
4+
*.egg*
5+
dist/*
6+
*.notes
7+
*.key
8+
*.crt
9+
*.pem
10+
wallet*
11+
cer-feeds.json
12+
.tox/*
13+
test_wallet_*
14+
*.env
15+
*.addr
16+
*.skey
17+
*.pkey
18+
*.vkey
19+
*.sh
20+
config.toml
21+
config.toml.prod
22+
config.toml.debug

.markdownlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Configurtion file for Markdown lint. Add exceptions here.
2+
default: true

.pre-commit-config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-yaml
6+
- id: check-json
7+
- id: check-toml
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
- id: check-case-conflict
11+
- repo: https://github.com/psf/black
12+
rev: 24.8.0
13+
hooks:
14+
- id: black
15+
- repo: https://github.com/pycqa/isort
16+
rev: 5.13.2
17+
hooks:
18+
- id: isort
19+
language_version: python3
20+
- repo: https://github.com/astral-sh/ruff-pre-commit
21+
rev: v0.6.7
22+
hooks:
23+
- id: ruff
24+
args: ["--fix", "--show-fixes"]
25+
- repo: https://github.com/igorshubovych/markdownlint-cli
26+
rev: v0.42.0
27+
hooks:
28+
- id: markdownlint
29+
- repo: https://github.com/codespell-project/codespell
30+
rev: v2.3.0
31+
hooks:
32+
- id: codespell
33+
args: [-I, .codespellignore]
34+
- repo: local
35+
hooks:
36+
- id: pylint
37+
name: pylint
38+
entry: pylint
39+
language: python
40+
language_version: python3
41+
args:
42+
[
43+
"-rn", # Only display messages.
44+
"-sn", # Don't display the pylint score.
45+
"--rcfile=.pylintrc"
46+
]

0 commit comments

Comments
 (0)