Skip to content

Commit 985d61b

Browse files
committed
Initial commit with project files
1 parent 3df8887 commit 985d61b

File tree

753 files changed

+371240
-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.

753 files changed

+371240
-0
lines changed

.bencher/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration docs: https://bencher.orijtech.com/configuration/
2+
suppress_failure_on_regression: false
3+
global:
4+
reg_min: 10
5+
imp_min: -10

.build.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
3+
set -ue
4+
5+
# Expect the following envvars to be set:
6+
# - APP
7+
# - VERSION
8+
# - COMMIT
9+
# - TARGET_OS
10+
# - LEDGER_ENABLED
11+
# - DEBUG
12+
13+
# Source builder's functions library
14+
. /usr/local/share/tendermint/buildlib.sh
15+
16+
# These variables are now available
17+
# - BASEDIR
18+
# - OUTDIR
19+
20+
# Build for each os-architecture pair
21+
for platform in ${TARGET_PLATFORMS} ; do
22+
# This function sets GOOS, GOARCH, and OS_FILE_EXT environment variables
23+
# according to the build target platform. OS_FILE_EXT is empty in all
24+
# cases except when the target platform is 'windows'.
25+
setup_build_env_for_platform "${platform}"
26+
27+
make clean
28+
echo Building for $(go env GOOS)/$(go env GOARCH) >&2
29+
GOROOT_FINAL="$(go env GOROOT)" \
30+
make build \
31+
LDFLAGS=-buildid=${VERSION} \
32+
VERSION=${VERSION} \
33+
COMMIT=${COMMIT} \
34+
LEDGER_ENABLED=${LEDGER_ENABLED}
35+
mv ./build/${APP}${OS_FILE_EXT} ${OUTDIR}/${APP}-${VERSION}-$(go env GOOS)-$(go env GOARCH)${OS_FILE_EXT}
36+
37+
# This function restore the build environment variables to their
38+
# original state.
39+
restore_build_env
40+
done
41+
42+
# Generate and display build report.
43+
generate_build_report
44+
cat ${OUTDIR}/build_report

.clang-format

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
Language: Proto
3+
BasedOnStyle: google
4+
ColumnLimit: 120
5+
IndentWidth: 2
6+
...

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# localnet-setup
2+
localnet-setup
3+
4+
# build
5+
build

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
client/docs/swagger-ui/* linguist-vendored
2+
client/docs/statik/* linguist-vendored
3+
third-party/* linguist-vendored
4+
client/docs/* linguist-documentation
5+
docs/* linguist-documentation
6+
x/**/spec/* linguist-documentation
7+
**/*.pb.go linguist-generated
8+
**/*.pb.gw.go linguist-generated
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us squash bugs!
4+
---
5+
6+
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
7+
v ✰ Thanks for opening an issue! ✰
8+
v Before smashing the submit button please review the template.
9+
v Please also ensure that this is not a duplicate issue :)
10+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
11+
12+
<!--
13+
IMPORTANT: Prior to opening a bug report, check if it affects one of the core modules on `SECURITY.md`.
14+
-->
15+
16+
## Summary of Bug
17+
18+
<!-- Concisely describe the issue -->
19+
20+
## Version
21+
22+
<!-- git commit hash or release version -->
23+
24+
## Steps to Reproduce
25+
26+
<!-- What commands in order should someone run to reproduce your problem? -->
27+
28+
## Screenshots
29+
30+
<!-- If applicable, add screenshots to help explain your problem. -->
31+
32+
## Additional context
33+
34+
<!-- Add any other context about the problem here. -->
35+
____
36+
37+
## For Admin Use
38+
39+
- [ ] Not duplicate issue
40+
- [ ] Appropriate labels applied
41+
- [ ] Appropriate contributors tagged
42+
- [ ] Contributor assigned/self-assigned

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
## Description
2+
3+
<!-- Add a description of the changes that this PR introduces and the files that
4+
are the most critical to review.
5+
-->
6+
7+
----
8+
9+
Closes #XXX
10+
11+
<!--
12+
< < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
13+
v ✰ Thanks for creating a PR! ✰
14+
v Before smashing the submit button please review the checkboxes.
15+
v If a checkbox is n/a - please still include it but + a little note why
16+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
17+
18+
**All** items are required. Please add a note to the item if the item is not applicable and
19+
please add links to any relevant follow up issues.
20+
21+
PR review checkboxes:
22+
23+
I have...
24+
25+
- [ ] added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
26+
- [ ] included the correct
27+
[type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
28+
in the PR title
29+
- [ ] targeted the correct branch
30+
(see [PR Targeting](https://github.com/hetu-project/hetu-hub/blob/main/CONTRIBUTING.md#pr-targeting))
31+
- [ ] provided a link in the PR description to the relevant issue or specification
32+
- [ ] reviewed "Files changed" and left comments if necessary
33+
- [ ] confirmed all required CI checks have passed
34+
35+
Code maintenance:
36+
37+
I have...
38+
39+
- [ ] written unit and integration [tests](https://github.com/hetu-project/hetu-hub/blob/main/CONTRIBUTING.md#testing)
40+
- [ ] added relevant [`godoc`](https://go.dev/blog/godoc) and [code comments](https://blog.jbowen.dev/2019/09/the-magic-of-go-comments/).
41+
- [ ] updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
42+
43+
______
44+
45+
### Reviewers Checklist
46+
47+
**All** items are required.
48+
Please add a note if the item is not applicable
49+
and please add your handle next to the items reviewed
50+
if you only reviewed selected items.
51+
52+
I have...
53+
54+
- [ ] confirmed the correct
55+
[type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
56+
in the PR title
57+
- [ ] confirmed all author checklist items have been addressed
58+
- [ ] confirmed that this PR does not change production code
59+
60+
-->

.github/labeler.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"C:Proto":
2+
- proto/**/*
3+
- third_party/**/*
4+
- /**/*.pb.go
5+
- /**/*.pb.gw.go
6+
"C:Types":
7+
- types/**/*
8+
"Type: Build":
9+
- Makefile
10+
- Dockerfile
11+
- docker-compose.yml
12+
- scripts/*
13+
- config.yml
14+
"Type: CI":
15+
- .github/**/*.yml
16+
- buf.yaml
17+
- .mergify.yml
18+
- .golangci.yml
19+
"C:CLI":
20+
- client/**/*
21+
- x/*/client/**/*
22+
"Type: Tests":
23+
- tests/**/*
24+
- /**/*/*_test.go
25+
"Type: Docs":
26+
- docs/**/*
27+
- x/*/spec/**/*
28+
"Type: ADR":
29+
- docs/architecture/**/*

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
7+
jobs:
8+
cleanup-runs:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: rokroskar/workflow-run-cleanup-action@master
12+
env:
13+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
14+
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
15+
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-go@v3
21+
with:
22+
go-version: '1.23.3'
23+
check-latest: true
24+
- uses: technote-space/get-diff-action@v6.1.2
25+
id: git_diff
26+
with:
27+
PATTERNS: |
28+
**/**.go
29+
go.mod
30+
go.sum
31+
- run: |
32+
make build
33+
if: env.GIT_DIFF

.github/workflows/dependencies.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Dependency Review"
2+
on: pull_request
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
dependency-review:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/setup-go@v3
12+
with:
13+
go-version: '1.23.3'
14+
check-latest: true
15+
- name: "Checkout Repository"
16+
uses: actions/checkout@v3
17+
- uses: technote-space/get-diff-action@v6.1.2
18+
with:
19+
PATTERNS: |
20+
**/**.go
21+
go.mod
22+
go.sum
23+
- name: "Dependency Review"
24+
uses: actions/dependency-review-action@v3
25+
if: env.GIT_DIFF
26+
- name: "Go vulnerability check"
27+
run: make vulncheck
28+
if: env.GIT_DIFF

0 commit comments

Comments
 (0)