Skip to content

Commit 2fcf2fe

Browse files
committed
Initial Upload
1 parent 1a68132 commit 2fcf2fe

File tree

440 files changed

+93325
-0
lines changed

Some content is hidden

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

440 files changed

+93325
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker/local/Dockerfile

.github/dependabot.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
target-branch: "develop"
6+
schedule:
7+
interval: weekly
8+
ignore:
9+
- dependency-name: "github.com/aws/aws-sdk-go"
10+
update-types: [ "version-update:semver-patch" ]
11+
open-pull-requests-limit: 10
12+
pull-request-branch-name:
13+
separator: "-"
14+
reviewers:
15+
- "lazartravica"
16+
- "Kourin1996"
17+
- "zivkovicmilos"

.github/issue_template.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# [ Subject of the issue ]
2+
## Description
3+
Describe your issue in as much detail as possible here.
4+
5+
## Your environment
6+
- OS and version.
7+
- The version of the Polygon Edge.
8+
(*Confirm the version of your Polygon edge client by running the following command: `exzocoin version --grpc-address GRPC_ADDRESS`*)
9+
- The branch that causes this issue.
10+
- Locally or Cloud hosted (which provider).
11+
- Please confirm if the validators are running under containerized environment (K8s, Docker, etc.).
12+
13+
## Steps to reproduce
14+
- Tell us how to reproduce this issue.
15+
- Where the issue is, if you know.
16+
- Which commands triggered the issue, if any.
17+
- Provide us with the content of your genesis file.
18+
- Provide us with commands that you used to start your validators.
19+
- Provide us with the peer list of each of your validators by running the following command: `exzocoin peers list --grpc-address GRPC_ADDRESS`.
20+
- Is the chain producing blocks and serving customers atm?
21+
22+
## Expected behavior
23+
- Tell us what should happen.
24+
- Tell us what happened instead.
25+
26+
## Logs
27+
Provide us with debug logs from all of your validators by setting logging to `debug` output with: `server --log-level debug`
28+
29+
## Proposed solution
30+
If you have an idea on how to fix this issue, please write it down here, so we can begin discussing it

.github/pull_request_template.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Description
2+
3+
Please provide a detailed description of what was done in this PR
4+
5+
# Changes include
6+
7+
- [ ] Bugfix (non-breaking change that solves an issue)
8+
- [ ] Hotfix (change that solves an urgent issue, and requires immediate attention)
9+
- [ ] New feature (non-breaking change that adds functionality)
10+
- [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
11+
12+
# Breaking changes
13+
14+
Please complete this section if any breaking changes have been made, otherwise delete it
15+
16+
# Checklist
17+
18+
- [ ] I have assigned this PR to myself
19+
- [ ] I have added at least 1 reviewer
20+
- [ ] I have added the relevant labels
21+
- [ ] I have updated the official documentation
22+
- [ ] I have added sufficient documentation in code
23+
24+
## Testing
25+
26+
- [ ] I have tested this code with the official test suite
27+
- [ ] I have tested this code manually
28+
29+
### Manual tests
30+
31+
Please complete this section if you ran manual tests for this functionality, otherwise delete it
32+
33+
# Documentation update
34+
35+
Please link the documentation update PR in this section if it's present, otherwise delete it
36+
37+
# Additional comments
38+
39+
Please post additional comments in this section if you have them, otherwise delete it
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
-
3+
name: Update Polygon Edge binary
4+
hosts:
5+
- all
6+
become: yes
7+
tasks:
8+
## update & upgrade system
9+
- name: Update & upgrade system
10+
apt:
11+
upgrade: yes
12+
update_cache: yes
13+
14+
## stop exzocoin service
15+
- name: Stop polygon edge service
16+
systemd:
17+
state: stopped
18+
name: exzocoin
19+
20+
## get the latest release
21+
- name: Get latest release link
22+
uri:
23+
url: https://api.github.com/repos/ExzoNetwork/ExzoCoin/releases/latest
24+
return_content: true
25+
register: edge_release
26+
27+
## download the latest release
28+
- name: Download latest Polygon Edge release
29+
get_url:
30+
url: "{{ edge_release.json.assets[3].browser_download_url }}"
31+
dest: /tmp/exzocoin.tar.gz
32+
force: yes
33+
34+
## create temp dir for release
35+
- name: Create temp dir for Polygon Edge release
36+
file:
37+
path: /tmp/exzocoin
38+
state: directory
39+
40+
## unpack release tar
41+
- name: Unpack Polygon Edge release
42+
unarchive:
43+
remote_src: yes
44+
src: /tmp/exzocoin.tar.gz
45+
dest: /tmp/exzocoin
46+
47+
## set exzocoin to PATH
48+
- name: Place Polygon Edge binary to PATH
49+
copy:
50+
remote_src: yes
51+
src: /tmp/exzocoin/exzocoin
52+
dest: /usr/local/bin/
53+
mode: a+x
54+
force: yes
55+
56+
## remove release temp dir
57+
- name: Remove temp Polygon Edge release dir
58+
file:
59+
state: absent
60+
path: /tmp/exzocoin
61+
62+
## start polygon edge service
63+
- name: Start exzocoin service
64+
systemd:
65+
state: restarted
66+
name: exzocoin
67+
daemon_reload: yes
68+
enabled: yes

.github/workflows/build.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: Build
3+
on: # yamllint disable-line rule:truthy
4+
workflow_dispatch:
5+
workflow_call:
6+
7+
jobs:
8+
go_build:
9+
name: Polygon Edge
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
- name: Setup Go environment
15+
uses: actions/[email protected]
16+
with:
17+
go-version: 1.18.x
18+
19+
- name: Build Polygon Edge
20+
run: go build -tags netgo -ldflags="-s -w -linkmode external -extldflags "-static" -X \"github.com/ExzoNetwork/ExzoCoin/versioning.Version=${GITHUB_REF_NAME}\" -X \"github.com/ExzoNetwork/ExzoCoin/versioning.Commit=${GITHUB_SHA}\"" && tar -czvf exzocoin.tar.gz exzocoin
21+
env:
22+
CC: gcc
23+
CXX: g++
24+
GOARC: amd64
25+
GOOS: linux
26+
27+
- name: 'Upload Artifact'
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: exzocoin
31+
path: exzocoin.tar.gz
32+
retention-days: 3
33+
34+
go_build_reproducibility:
35+
name: Verify Build Reproducibility
36+
runs-on: ubuntu-latest
37+
continue-on-error: true
38+
steps:
39+
- name: Checkout code
40+
uses: actions/checkout@v3
41+
- name: Setup Go environment
42+
uses: actions/[email protected]
43+
with:
44+
go-version: 1.18.x
45+
46+
- name: 'Reproduce builds'
47+
continue-on-error: true
48+
run: |
49+
go build -o ./edge-1 -trimpath -buildvcs=false
50+
go build -o ./edge-2 -trimpath -buildvcs=false
51+
52+
buildsha1=$(shasum -a256 ./edge-1 | awk '{print $1}')
53+
buildsha2=$(shasum -a256 ./edge-2 | awk '{print $1}')
54+
55+
echo "Build 1 SHA: $buildsha1"
56+
echo "Build 2 SHA: $buildsha2"
57+
58+
if [ "$buildsha1" != "$buildsha2" ]; then
59+
echo "Build artifact does not match original"
60+
exit 1
61+
else
62+
echo "Build artifact matches original"
63+
fi

.github/workflows/ci.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: Pull Request CI
3+
on: # yamllint disable-line rule:truthy
4+
workflow_dispatch: {}
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: Build
10+
uses: ./.github/workflows/build.yml
11+
12+
test:
13+
name: Test
14+
uses: ./.github/workflows/test.yml
15+
needs: build

.github/workflows/cla.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: "CLA Assistant"
3+
on: # yamllint disable-line rule:truthy
4+
issue_comment:
5+
types:
6+
- created
7+
pull_request_target:
8+
types:
9+
- opened
10+
- closed
11+
- synchronize
12+
13+
jobs:
14+
CLAssistant:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: "CLA Assistant"
18+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
19+
# Beta Release
20+
uses: cla-assistant/[email protected]
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
# the below token should have repo scope and must be manually added by you in the repository's secret
24+
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
25+
with:
26+
path-to-signatures: 'cla.json'
27+
path-to-document: 'https://github.com/ExzoNetwork/ExzoCoin/blob/develop/CLA.md'
28+
branch: 'cla-signatures'
29+
allowlist: dependabot[bot],dependabot-preview[bot]

0 commit comments

Comments
 (0)