Skip to content

Commit 021639e

Browse files
author
Flaxseed
committed
Version 0.1.3
1 parent 66c2399 commit 021639e

File tree

588 files changed

+4324
-10553
lines changed

Some content is hidden

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

588 files changed

+4324
-10553
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 & 80 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,85 +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-
env:
113-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
114-
if: steps.check_secrets.outputs.HAS_SECRET
115-
run: |
116-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb s3://download-chia-net/builds/
117-
118-
- name: Create Checksums
119-
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
120-
env:
121-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
122-
run: |
123-
ls ${{ github.workspace }}/build_scripts/final_installer/
124-
sha256sum ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb > ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb.sha256
125-
ls ${{ github.workspace }}/build_scripts/final_installer/
126-
127-
- name: Install py3createtorrent
128-
if: startsWith(github.ref, 'refs/tags/')
129-
run: |
130-
pip3 install py3createtorrent
131-
132-
- name: Create torrent
133-
if: startsWith(github.ref, 'refs/tags/')
134-
env:
135-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
136-
run: |
137-
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb -o ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb.torrent --webseed https://download-chia-net.s3.us-west-2.amazonaws.com/install/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb
138-
ls ${{ github.workspace }}/build_scripts/final_installer/
139-
140-
- name: Upload Beta Installer
141-
if: steps.check_secrets.outputs.HAS_SECRET && github.ref == 'refs/heads/main'
142-
env:
143-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
144-
run: |
145-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb s3://download-chia-net/beta/chia-blockchain_arm64_latest_beta.deb
146-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb.sha256 s3://download-chia-net/beta/chia-blockchain_arm64_latest_beta.deb.sha256
147-
148-
- name: Upload Release Files
149-
if: steps.check_secrets.outputs.HAS_SECRET && startsWith(github.ref, 'refs/tags/')
150-
env:
151-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
152-
run: |
153-
ls ${{ github.workspace }}/build_scripts/final_installer/
154-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb s3://download-chia-net/install/
155-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb.sha256 s3://download-chia-net/install/
156-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_arm64.deb.torrent s3://download-chia-net/torrents/
157-
158-
- name: Get tag name
159-
if: startsWith(github.ref, 'refs/tags/')
160-
id: tag-name
161-
run: |
162-
echo "::set-output name=TAG_NAME::$(echo ${{ github.ref }} | cut -d'/' -f 3)"
163-
echo "::set-output name=REPO_NAME::$(echo ${{ github.repository }} | cut -d'/' -f 2)"
164-
165-
- name: Mark installer complete
166-
if: startsWith(github.ref, 'refs/tags/')
167-
run: |
168-
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
169-
170-
- name: Clean up on self hosted runner
171-
run: |
172-
sudo rm -rf build_scripts/final_installer

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

Lines changed: 2 additions & 75 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:
@@ -111,80 +106,12 @@ jobs:
111106
run: |
112107
. ./activate
113108
ldd --version
114-
cd ./chia-blockchain-gui
109+
cd ./flax-blockchain-gui
115110
git status
116111
cd ../build_scripts
117112
sh build_linux_deb.sh amd64
118-
119113
- name: Upload Linux artifacts
120114
uses: actions/upload-artifact@v2
121115
with:
122116
name: Linux-Installers
123117
path: ${{ github.workspace }}/build_scripts/final_installer/
124-
125-
- name: Configure AWS Credentials
126-
if: steps.check_secrets.outputs.HAS_SECRET
127-
uses: aws-actions/configure-aws-credentials@v1
128-
with:
129-
aws-access-key-id: ${{ secrets.INSTALLER_UPLOAD_KEY }}
130-
aws-secret-access-key: ${{ secrets.INSTALLER_UPLOAD_SECRET }}
131-
aws-region: us-west-2
132-
133-
- name: Upload to s3
134-
if: steps.check_secrets.outputs.HAS_SECRET
135-
env:
136-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
137-
run: |
138-
ls ${{ github.workspace }}/build_scripts/final_installer/
139-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb s3://download-chia-net/builds/
140-
141-
- name: Create Checksums
142-
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
143-
env:
144-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
145-
run: |
146-
ls ${{ github.workspace }}/build_scripts/final_installer/
147-
sha256sum ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb > ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb.sha256
148-
ls ${{ github.workspace }}/build_scripts/final_installer/
149-
150-
- name: Install py3createtorrent
151-
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
152-
run: |
153-
pip3 install py3createtorrent
154-
155-
- name: Create .deb torrent
156-
env:
157-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
158-
if: startsWith(github.ref, 'refs/tags/')
159-
run: |
160-
py3createtorrent -f -t udp://tracker.opentrackr.org:1337/announce ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb -o ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb.torrent --webseed https://download-chia-net.s3.us-west-2.amazonaws.com/install/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb
161-
ls
162-
163-
- name: Upload Beta Installer
164-
if: steps.check_secrets.outputs.HAS_SECRET && github.ref == 'refs/heads/main'
165-
env:
166-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
167-
run: |
168-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb s3://download-chia-net/beta/chia-blockchain_amd64_latest_beta.deb
169-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb.sha256 s3://download-chia-net/beta/chia-blockchain_amd64_latest_beta.deb.sha256
170-
171-
- name: Upload Release Files
172-
env:
173-
CHIA_INSTALLER_VERSION: ${{ steps.version_number.outputs.CHIA_INSTALLER_VERSION }}
174-
if: steps.check_secrets.outputs.HAS_SECRET && startsWith(github.ref, 'refs/tags/')
175-
run: |
176-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb s3://download-chia-net/install/
177-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb.sha256 s3://download-chia-net/install/
178-
aws s3 cp ${{ github.workspace }}/build_scripts/final_installer/chia-blockchain_${CHIA_INSTALLER_VERSION}_amd64.deb.torrent s3://download-chia-net/torrents/
179-
180-
- name: Get tag name
181-
if: startsWith(github.ref, 'refs/tags/')
182-
id: tag-name
183-
run: |
184-
echo "::set-output name=TAG_NAME::$(echo ${{ github.ref }} | cut -d'/' -f 3)"
185-
echo "::set-output name=REPO_NAME::$(echo ${{ github.repository }} | cut -d'/' -f 2)"
186-
187-
- name: Mark installer complete
188-
if: startsWith(github.ref, 'refs/tags/')
189-
run: |
190-
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

0 commit comments

Comments
 (0)