Skip to content

Commit d30795b

Browse files
author
Flaxseed
committed
Version 0.1.2
1 parent 24d6592 commit d30795b

File tree

574 files changed

+3288
-10215
lines changed

Some content is hidden

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

574 files changed

+3288
-10215
lines changed

.flake8

Lines changed: 0 additions & 1 deletion
This file was deleted.

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 120
3+
exclude = ./typings/**/*
4+
ignore = E203,W503

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ assignees: ''
88
---
99

1010
**Describe the bug**
11-
<!-- A clear and concise description of what the bug is. (If what you are experiencing is NOT a bug but instead a support issue, please open a Discussion instead!) -->
11+
A clear and concise description of what the bug is. (If what you are experiencing is NOT a bug but instead a support issue, please open a Discussion instead!)
1212

1313
**To Reproduce**
14-
1514
Steps to reproduce the behavior:
1615

1716
1. Go to '...'
@@ -20,17 +19,16 @@ Steps to reproduce the behavior:
2019
4. See error
2120

2221
**Expected behavior**
23-
<!-- A clear and concise description of what you expected to happen. -->
22+
A clear and concise description of what you expected to happen.
2423

2524
**Screenshots**
26-
<!-- If applicable, add screenshots to help explain your problem. -->
25+
If applicable, add screenshots to help explain your problem.
2726

28-
**Desktop**
29-
<!-- Please complete the following information. -->
27+
**Desktop (please complete the following information):**
3028

31-
- OS: <!-- e.g. Linux -->
32-
- OS Version/Flavor: <!-- e.g. CentOS 7.2 -->
33-
- CPU: <!-- e.g. Intel Xeon 8175M -->
29+
- OS: [e.g. Linux]
30+
- OS Version/Flavor: [e.g. CentOS 7.2]
31+
- CPU: [e.g. Intel Xeon 8175M]
3432

3533
**Additional context**
36-
<!-- Add any other context about the problem here. -->
34+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ contact_links:
22
- about: Ask a question or request support here
33
name: Ask for Support
44
url: >-
5-
https://github.com/Chia-Network/chia-blockchain/discussions/new?category=support
5+
https://github.com/Flax-Network/flax-blockchain/discussions/new?category=support
66
- about: Request a new feature or idea here
77
name: Make a Request
88
url: >-
9-
https://github.com/Chia-Network/chia-blockchain/discussions/new?category=ideas
10-
- about: Get support on the Chia Keybase chat channels.
11-
name: Join the Keybase.io support chat
12-
url: 'https://keybase.io/team/chia_network.public'
9+
https://github.com/Flax-Network/flax-blockchain/discussions/new?category=ideas
10+
- about: Get support on the Flax Discord chat channels.
11+
name: Join the Discord.io support chat
12+
url: 'https://discord.gg/TgJyxsEFFc'

.github/dependabot.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build-linux-arm64-installer.yml

Lines changed: 2 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
name: Linux ARM64 installer on Python 3.8
1616
runs-on: ${{ matrix.os }}
17-
timeout-minutes: 40
17+
timeout-minutes: 120
1818
strategy:
1919
fail-fast: false
2020
max-parallel: 4
@@ -45,9 +45,8 @@ jobs:
4545
python3 -m venv ../venv
4646
. ../venv/bin/activate
4747
pip3 install setuptools_scm
48-
echo "::set-output name=CHIA_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
48+
echo "::set-output name=FLAX_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
4949
deactivate
50-
5150
- name: Test for secrets access
5251
id: check_secrets
5352
shell: bash
@@ -88,71 +87,8 @@ jobs:
8887
cd build_scripts && \
8988
sh build_linux_deb.sh arm64 \
9089
'
91-
9290
- name: Upload Linux artifacts
9391
uses: actions/upload-artifact@v2
9492
with:
9593
name: Linux-ARM-64-Installer
9694
path: ${{ github.workspace }}/build_scripts/final_installer/
97-
98-
- name: Install AWS CLI
99-
if: steps.check_secrets.outputs.HAS_SECRET
100-
run: |
101-
sudo apt-get install -y awscli
102-
103-
- name: Configure AWS Credentials
104-
if: steps.check_secrets.outputs.HAS_SECRET
105-
uses: aws-actions/configure-aws-credentials@v1
106-
with:
107-
aws-access-key-id: ${{ secrets.INSTALLER_UPLOAD_KEY }}
108-
aws-secret-access-key: ${{ secrets.INSTALLER_UPLOAD_SECRET }}
109-
aws-region: us-west-2
110-
111-
- name: Upload to s3
112-
if: steps.check_secrets.outputs.HAS_SECRET
113-
run: |
114-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/*.deb s3://download-chia-net/builds/
115-
116-
- name: Create Checksums
117-
if: startsWith(github.ref, 'refs/tags/')
118-
env:
119-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
120-
run: |
121-
ls ${{ github.workspace }}/build_scripts/final_installer/
122-
sha256sum ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb > ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb.sha256
123-
ls ${{ github.workspace }}/build_scripts/final_installer/
124-
125-
- name: Install py3createtorrent
126-
if: startsWith(github.ref, 'refs/tags/')
127-
run: |
128-
pip3 install py3createtorrent
129-
130-
- name: Create torrent
131-
if: startsWith(github.ref, 'refs/tags/')
132-
run: |
133-
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb -o ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb.torrent --webseed https://download-chia-net.s3.us-west-2.amazonaws.com/install/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb
134-
ls ${{ github.workspace }}/build_scripts/final_installer/
135-
136-
- name: Upload Release Files
137-
if: steps.check_secrets.outputs.HAS_SECRET && startsWith(github.ref, 'refs/tags/')
138-
run: |
139-
ls ${{ github.workspace }}/build_scripts/final_installer/
140-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/*.deb s3://download-chia-net/install/
141-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/*.sha256 s3://download-chia-net/install/
142-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_arm64.deb.torrent s3://download-chia-net/torrents/
143-
144-
- name: Get tag name
145-
if: startsWith(github.ref, 'refs/tags/')
146-
id: tag-name
147-
run: |
148-
echo "::set-output name=TAG_NAME::$(echo ${{ github.ref }} | cut -d'/' -f 3)"
149-
echo "::set-output name=REPO_NAME::$(echo ${{ github.repository }} | cut -d'/' -f 2)"
150-
151-
- name: Mark installer complete
152-
if: startsWith(github.ref, 'refs/tags/')
153-
run: |
154-
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"chia_ref": "${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/${{ steps.tag-name.outputs.REPO_NAME }}/${{ steps.tag-name.outputs.TAG_NAME }}/success/build-arm
155-
156-
- name: Clean up on self hosted runner
157-
run: |
158-
sudo rm -rf build_scripts/final_installer

.github/workflows/build-linux-installer-deb.yml

Lines changed: 2 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,10 @@ jobs:
5656
${{ runner.os }}-build-${{ env.cache-name }}-
5757
${{ runner.os }}-build-
5858
${{ runner.os }}-
59-
6059
- name: Get pip cache dir
6160
id: pip-cache
6261
run: |
6362
echo "::set-output name=dir::$(pip cache dir)"
64-
6563
- name: Cache pip
6664
uses: actions/[email protected]
6765
with:
@@ -70,17 +68,15 @@ jobs:
7068
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
7169
restore-keys: |
7270
${{ runner.os }}-pip-
73-
7471
# Create our own venv outside of the git directory JUST for getting the ACTUAL version so that install can't break it
7572
- name: Get version number
7673
id: version_number
7774
run: |
7875
python3 -m venv ../venv
7976
. ../venv/bin/activate
8077
pip3 install setuptools_scm
81-
echo "::set-output name=CHIA_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
78+
echo "::set-output name=FLAX_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
8279
deactivate
83-
8480
- name: Test for secrets access
8581
id: check_secrets
8682
shell: bash
@@ -97,7 +93,6 @@ jobs:
9793
BUILD_VDF_CLIENT: "N"
9894
run: |
9995
sh install.sh
100-
10196
- name: Setup Node 12.x
10297
uses: actions/[email protected]
10398
with:
@@ -107,68 +102,12 @@ jobs:
107102
run: |
108103
. ./activate
109104
ldd --version
110-
cd ./chia-blockchain-gui
105+
cd ./flax-blockchain-gui
111106
git status
112107
cd ../build_scripts
113108
sh build_linux_deb.sh amd64
114-
115109
- name: Upload Linux artifacts
116110
uses: actions/upload-artifact@v2
117111
with:
118112
name: Linux-Installers
119113
path: ${{ github.workspace }}/build_scripts/final_installer/
120-
121-
- name: Configure AWS Credentials
122-
if: steps.check_secrets.outputs.HAS_SECRET
123-
uses: aws-actions/configure-aws-credentials@v1
124-
with:
125-
aws-access-key-id: ${{ secrets.INSTALLER_UPLOAD_KEY }}
126-
aws-secret-access-key: ${{ secrets.INSTALLER_UPLOAD_SECRET }}
127-
aws-region: us-west-2
128-
129-
- name: Upload to s3
130-
if: steps.check_secrets.outputs.HAS_SECRET
131-
env:
132-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
133-
run: |
134-
ls ${{ github.workspace }}/build_scripts/final_installer/
135-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/*.deb s3://download-chia-net/builds/
136-
137-
- name: Create Checksums
138-
if: startsWith(github.ref, 'refs/tags/')
139-
env:
140-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
141-
run: |
142-
ls ${{ github.workspace }}/build_scripts/final_installer/
143-
sha256sum ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb > ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb.sha256
144-
ls ${{ github.workspace }}/build_scripts/final_installer/
145-
146-
- name: Install py3createtorrent
147-
if: startsWith(github.ref, 'refs/tags/')
148-
run: |
149-
pip3 install py3createtorrent
150-
151-
- name: Create .deb torrent
152-
if: startsWith(github.ref, 'refs/tags/')
153-
run: |
154-
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb -o ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb.torrent --webseed https://download-chia-net.s3.us-west-2.amazonaws.com/install/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb
155-
ls
156-
157-
- name: Upload Release Files
158-
if: steps.check_secrets.outputs.HAS_SECRET && startsWith(github.ref, 'refs/tags/')
159-
run: |
160-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb s3://download-chia-net/install/
161-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb.sha256 s3://download-chia-net/install/
162-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}_amd64.deb.torrent s3://download-chia-net/torrents/
163-
164-
- name: Get tag name
165-
if: startsWith(github.ref, 'refs/tags/')
166-
id: tag-name
167-
run: |
168-
echo "::set-output name=TAG_NAME::$(echo ${{ github.ref }} | cut -d'/' -f 3)"
169-
echo "::set-output name=REPO_NAME::$(echo ${{ github.repository }} | cut -d'/' -f 2)"
170-
171-
- name: Mark installer complete
172-
if: startsWith(github.ref, 'refs/tags/')
173-
run: |
174-
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"chia_ref": "${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/${{ steps.tag-name.outputs.REPO_NAME }}/${{ steps.tag-name.outputs.TAG_NAME }}/success/build-linux-deb

.github/workflows/build-linux-installer-rpm.yml

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ jobs:
4747
python3 -m venv ../venv
4848
. ../venv/bin/activate
4949
pip3 install setuptools_scm
50-
echo "::set-output name=CHIA_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
50+
echo "::set-output name=FLAX_INSTALLER_VERSION::$(python3 ./build_scripts/installer-version.py)"
5151
deactivate
52-
5352
- name: Test for secrets access
5453
id: check_secrets
5554
shell: bash
@@ -66,73 +65,16 @@ jobs:
6665
BUILD_VDF_CLIENT: "N"
6766
run: |
6867
sh install.sh
69-
7068
- name: Build .rpm package
7169
run: |
7270
. ./activate
7371
ldd --version
74-
cd ./chia-blockchain-gui
72+
cd ./flax-blockchain-gui
7573
git status
7674
cd ../build_scripts
7775
sh build_linux_rpm.sh amd64
78-
7976
- name: Upload Linux artifacts
8077
uses: actions/upload-artifact@v2
8178
with:
8279
name: Linux-Installers
8380
path: ${{ github.workspace }}/build_scripts/final_installer/
84-
85-
- name: Configure AWS Credentials
86-
if: steps.check_secrets.outputs.HAS_SECRET
87-
uses: aws-actions/configure-aws-credentials@v1
88-
with:
89-
aws-access-key-id: ${{ secrets.INSTALLER_UPLOAD_KEY }}
90-
aws-secret-access-key: ${{ secrets.INSTALLER_UPLOAD_SECRET }}
91-
aws-region: us-west-2
92-
93-
- name: Upload to s3
94-
if: steps.check_secrets.outputs.HAS_SECRET
95-
env:
96-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
97-
run: |
98-
ls $GITHUB_WORKSPACE/build_scripts/final_installer/
99-
aws s3 cp $GITHUB_WORKSPACE/build_scripts/final_installer/*.rpm s3://download-chia-net/builds/
100-
101-
- name: Create Checksums
102-
if: startsWith(github.ref, 'refs/tags/')
103-
env:
104-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
105-
run: |
106-
ls $GITHUB_WORKSPACE/build_scripts/final_installer/
107-
sha256sum $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm > $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm.sha256
108-
ls $GITHUB_WORKSPACE/build_scripts/final_installer/
109-
110-
- name: Install py3createtorrent
111-
if: startsWith(github.ref, 'refs/tags/')
112-
run: |
113-
pip3 install py3createtorrent
114-
115-
- name: Create .rpm torrent
116-
if: startsWith(github.ref, 'refs/tags/')
117-
run: |
118-
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm -o $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm.torrent --webseed https://download-chia-net.s3.us-west-2.amazonaws.com/install/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm
119-
ls
120-
121-
- name: Upload Release Files
122-
if: steps.check_secrets.outputs.HAS_SECRET && startsWith(github.ref, 'refs/tags/')
123-
run: |
124-
aws s3 cp $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm s3://download-chia-net/install/
125-
aws s3 cp $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm.sha256 s3://download-chia-net/install/
126-
aws s3 cp $GITHUB_WORKSPACE/build_scripts/final_installer/chia-blockchain-${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}-1.x86_64.rpm.torrent s3://download-chia-net/torrents/
127-
128-
- name: Get tag name
129-
if: startsWith(github.ref, 'refs/tags/')
130-
id: tag-name
131-
run: |
132-
echo "::set-output name=TAG_NAME::$(echo ${{ github.ref }} | cut -d'/' -f 3)"
133-
echo "::set-output name=REPO_NAME::$(echo ${{ github.repository }} | cut -d'/' -f 2)"
134-
135-
- name: Mark installer complete
136-
if: startsWith(github.ref, 'refs/tags/')
137-
run: |
138-
curl -s -XPOST -H "Authorization: Bearer ${{ secrets.GLUE_ACCESS_TOKEN }}" --data '{"chia_ref": "${{ steps.tag-name.outputs.TAG_NAME }}"}' ${{ secrets.GLUE_API_URL }}/api/v1/${{ steps.tag-name.outputs.REPO_NAME }}/${{ steps.tag-name.outputs.TAG_NAME }}/success/build-linux-rpm

0 commit comments

Comments
 (0)