Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] remove unused ginkgo #17

Closed
wants to merge 59 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
4e4a45b
feat(dogfood): scaffold module
MaxMustermann2 Feb 6, 2024
503728c
fix(dogfood): remove mem store
MaxMustermann2 Feb 6, 2024
36a2961
fix(dogfood): remove not required keepers
MaxMustermann2 Feb 6, 2024
47861d7
refactor(dogfood): remove not required items
MaxMustermann2 Feb 6, 2024
15e8e8a
refactor(dogfood): remove errors
MaxMustermann2 Feb 6, 2024
92be565
refactor(dogfood): merge `query_params.go`
MaxMustermann2 Feb 6, 2024
6d44166
feat(dogfood): add parameters
MaxMustermann2 Feb 6, 2024
cb08e29
feat(dogfood): load genesis state for bootstrap
MaxMustermann2 Feb 6, 2024
b4f4df5
feat(dogfood): implement operator hooks
MaxMustermann2 Feb 7, 2024
fdf9b9a
docs(dogfood): explain the operator queue logic
MaxMustermann2 Feb 8, 2024
50d098d
feat(dogfood): implement delegation hooks
MaxMustermann2 Feb 8, 2024
ebc8530
fix(dogfood): upd delegation hook interface
MaxMustermann2 Feb 8, 2024
5d0a0cd
feat(dogfood): implement epochs hooks + end block
MaxMustermann2 Feb 8, 2024
a2aa2e1
fix(dogfood): call `EndBlock` from module
MaxMustermann2 Feb 8, 2024
cc56595
feat(dogfood): retrieve val set from id
MaxMustermann2 Feb 26, 2024
fada516
Merge branch 'dogfood-part3' into dogfood-part4
MaxMustermann2 Feb 26, 2024
3447309
fix(dogfood): remove old key then add new
MaxMustermann2 Feb 26, 2024
a0752e9
Merge branch 'dogfood-part4' into dogfood-part5
MaxMustermann2 Feb 26, 2024
fe987ce
fix(dogfood): RecordKeys > UndelegationRecordKeys
MaxMustermann2 Feb 26, 2024
a8d7b20
Merge branch 'dogfood-part5' into dogfood-part6
MaxMustermann2 Feb 26, 2024
061ec13
doc(dogfood): update comments in EndBlock
MaxMustermann2 Feb 26, 2024
ba3b5d8
fix(dogfood): clear validator set only if unused
MaxMustermann2 Feb 26, 2024
c77f746
Merge branch 'dogfood-part3' into dogfood-part4
MaxMustermann2 Feb 26, 2024
2775176
Merge branch 'dogfood-part4' into dogfood-part5
MaxMustermann2 Feb 26, 2024
c17bf22
Merge branch 'dogfood-part5' into dogfood-part6
MaxMustermann2 Feb 26, 2024
8e9dec2
feat(dogfood): implement sdk staking interface (#123)
MaxMustermann2 Feb 28, 2024
7e6485e
Merge pull request #122 from ExocoreNetwork/dogfood-part6
MaxMustermann2 Feb 28, 2024
0fdfd1b
Merge pull request #121 from ExocoreNetwork/dogfood-part5
MaxMustermann2 Feb 28, 2024
5379fc4
Merge pull request #119 from ExocoreNetwork/dogfood-part4
MaxMustermann2 Feb 28, 2024
5203fcd
Merge pull request #116 from ExocoreNetwork/dogfood-part3
MaxMustermann2 Feb 28, 2024
728c580
Merge pull request #115 from ExocoreNetwork/dogfood-part2
MaxMustermann2 Feb 28, 2024
3d78db7
Merge branch 'develop' into dogfood
MaxMustermann2 Feb 28, 2024
3a5d824
chore(lint): apply to dogfood
MaxMustermann2 Feb 28, 2024
ded8f3f
doc(dogfood): update minor comment
MaxMustermann2 Feb 28, 2024
84a8037
chore(build): attempt to fix consensuswarn
MaxMustermann2 Feb 28, 2024
0debcab
Revert "chore(build): attempt to fix consensuswarn
MaxMustermann2 Feb 28, 2024
15dfdd6
chore(ci): fix labeler and consensuswarn (#5)
MaxMustermann2 Mar 1, 2024
05a98c8
Merge branch 'develop' into dogfood
MaxMustermann2 Mar 1, 2024
a524619
chore(ci): re-attempt fix (#8)
MaxMustermann2 Mar 4, 2024
965ed26
Merge branch 'develop' into dogfood
MaxMustermann2 Mar 4, 2024
c894d53
chore(ci): buf compare against develop HEAD (#9)
MaxMustermann2 Mar 4, 2024
fe295ae
Merge branch 'develop' into dogfood
MaxMustermann2 Mar 4, 2024
65e90a6
chore(ci): fix super linter config (#10)
MaxMustermann2 Mar 4, 2024
715557b
Merge branch 'develop' into dogfood
MaxMustermann2 Mar 4, 2024
8258c46
chore(build): respond to gosec comments
MaxMustermann2 Mar 4, 2024
57f60a4
chore(build): remove unused proto import
MaxMustermann2 Mar 4, 2024
7bba29f
chore(dogfood): respond to golangci-lint
MaxMustermann2 Mar 4, 2024
55a228c
chore(dogfood): lint the proto files
MaxMustermann2 Mar 4, 2024
ca658d8
build(dogfood): regenerate proto code
MaxMustermann2 Mar 4, 2024
931a8e1
chore(dogfood): ignore redundant gosec errors
MaxMustermann2 Mar 4, 2024
59fce84
chore(dogfood): ignore redundant gosec warning
MaxMustermann2 Mar 4, 2024
72e1a6f
delete the code related to setting ExoCoreLzAppAddress to fix the bug…
TimmyExogenous Feb 28, 2024
3002441
fix the error for golangci-lint
TimmyExogenous Feb 28, 2024
eacf9e3
Merge pull request #3 from ExocoreNetwork/develop-fix-updateParam-bug
TimmyExogenous Mar 5, 2024
f3df5ef
feat(dogfood): asset ids, oracle usage (#11)
MaxMustermann2 Mar 5, 2024
6e812e9
Merge pull request #4 from ExocoreNetwork/dogfood
TimmyExogenous Mar 6, 2024
3ded4ac
chore(lint): fix super linter (again) (#14)
MaxMustermann2 Mar 12, 2024
bdb2207
fix(ci): semgrep, cov-comment, buf-break-no-fail (#15)
MaxMustermann2 Mar 14, 2024
c646504
refactor: remove unused ginkgo
leonz789 Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
skip-path:
# auto generated
- client/docs
3 changes: 3 additions & 0 deletions .github/workflows/ante-benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: AnteHandler Benchmark Tests

permissions:
contents: read

on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
#
name: "CodeQL"

permissions:
actions: read
contents: read
security-events: write

on:
push:
branches: [develop, main, master]
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/consensuswarn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- edited
- synchronize

permissions:
contents: read
pull-requests: write

jobs:
main:
permissions:
contents: read
pull-requests: write # For reading the PR and posting comment
runs-on: ubuntu-latest
steps:
Expand All @@ -18,4 +23,4 @@ jobs:
- uses: orijtech/consensuswarn@main
with:
# example.com/pkg/path.Type.Method
roots: 'github.com/ExocoreNetwork/exocore/app.ExocoreApp.BaseApp.DeliverTx,github.com/ExocoreNetwork/exocore/app.ExocoreApp.BaseApp.BeginBlocker,github.com/ExocoreNetwork/exocore/app.ExocoreApp.BaseApp.EndBlocker'
roots: 'github.com/ExocoreNetwork/exocore/app.ExocoreApp.DeliverTx,github.com/ExocoreNetwork/exocore/app.ExocoreApp.BeginBlocker,github.com/ExocoreNetwork/exocore/app.ExocoreApp.EndBlocker'
2 changes: 2 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
if: env.GIT_DIFF
with:
fail-on-severity: high
- name: "Go vulnerability check"
run: make vulncheck
if: env.GIT_DIFF
4 changes: 4 additions & 0 deletions .github/workflows/e2e-test-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: E2E Test Release

permissions:
contents: read

on:
pull_request:
branches:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
name: E2E Test

permissions:
contents: read

on:
pull_request:
branches:
Expand All @@ -13,6 +17,8 @@ on:

jobs:
test-e2e:
# disabled for now, since we don't have any e2e tests.
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: goreleaser

permissions:
# github releases
contents: write

on:
push:
tags:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: "Pull Request Labeler"

permissions:
contents: read
pull-requests: write

on:
pull_request:
push:
branches:
- develop
- main
- master
pull_request_target:

jobs:
triage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v4
with:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/markdown-links.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Check Markdown links
on:

permissions:
contents: read

on:
pull_request:
paths:
- '**.md'
Expand All @@ -10,6 +14,9 @@ on:
- master
paths:
- '**.md'
# runs every monday at 9 am
schedule:
- cron: "0 9 * * 1"

jobs:
markdown-link-check:
Expand All @@ -18,7 +25,5 @@ jobs:
- uses: actions/checkout@v4
- uses: gaurav-nelson/github-action-markdown-link-check@master
with:
check-modified-files-only: "yes"
use-quiet-mode: "yes"
base-branch: "main"
config-file: "mlc_config.json"
81 changes: 81 additions & 0 deletions .github/workflows/proto-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: Comment protobuf breaking action outcome on the pull request

permissions:
# for finding and downloading artifacts.
actions: read
# for commenting on pull requests.
pull-requests: write
# the content of the repo is irrelevant to this workflow.
contents: none

on:
workflow_run:
workflows: ["Protobuf"]
types:
- completed

jobs:
download-artifact-and-comment:
runs-on: ubuntu-latest
if: >
github.event.workflow_run.conclusion == 'success'
steps:
- name: 'Download artifact'
uses: actions/github-script@v7.0.1
with:
script: |
var artifacts = await github.actions.listWorkflowRunArtifacts({
owner: context.repo.owner,
repo: context.repo.repo,
run_id: ${{github.event.workflow_run.id }},
});
var matchArtifact = artifacts.data.artifacts.find((artifact) => {
return artifact.name == "result";
});
if (!matchArtifact) {
var core = require('@actions/core');
core.setFailed('Artifact "result" not found.');
return;
}
var download = await github.actions.downloadArtifact({
owner: context.repo.owner,
repo: context.repo.repo,
artifact_id: matchArtifact.id,
archive_format: 'zip',
});
var fs = require('fs');
fs.writeFileSync('${{github.workspace}}/result.zip', Buffer.from(download.data));
- run: unzip result.zip -d result
- name: Read PR number and outcome
run: |
pr_number=$(cat "result/pr_number.txt")
outcome=$(cat "result/outcome.txt")
echo "PR_NUMBER=${pr_number}" >> "$GITHUB_ENV"
echo "OUTCOME=${outcome}" >> "$GITHUB_ENV"
- name: Find comment
id: find-comment
uses: peter-evans/find-comment@v2
with:
issue-number: ${{ env.PR_NUMBER }}
comment-author: 'github-actions[bot]'
body-includes: buf breaking change
- name: Comment status of break-check in the case of failure
if: ${{ env.OUTCOME == 'failure' }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ env.PR_NUMBER }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
body: |
${{ github.sha }} (${{ github.event.workflow_run.updated_at }}) has a buf breaking change.
View the workflow run: [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }})
edit-mode: append
- name: Comment status of break-check in the case of success
if: env.OUTCOME == 'success' && steps.find-comment.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ env.PR_NUMBER }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
body: |
${{ github.sha }} (${{ github.event.workflow_run.updated_at }}) has no buf breaking changes.
View the workflow run: [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }})
edit-mode: append
27 changes: 26 additions & 1 deletion .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
paths:
- "proto/**"

permissions:
# for uploading artifacts
contents: write
pull-requests: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,6 +48,22 @@ jobs:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1.26.1
- uses: bufbuild/buf-breaking-action@v1
id: break-check
with:
input: "proto"
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"
# previously, this ran on ref=HEAD~1, which is incorrect as it can
# only be used to compare within a branch. it is designed to run
# on a PR, so it must compare the HEAD of the base branch against
# the PR branch.
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},subdir=proto"
# do not fail the build if there are breaking changes
continue-on-error: true
- name: Make buf breaking changes outcome as txt file
run: |
mkdir -p ./result/
echo "${{ steps.break-check.outcome }}" > ./result/outcome.txt
echo "${{ github.event.pull_request.number }}" > ./result/pr_number.txt
- uses: actions/upload-artifact@v2
with:
name: result
path: ./result/
5 changes: 5 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ on:
- main
- master

permissions:
contents: read
security-events: write

jobs:
Gosec:
permissions:
contents: read
security-events: write

runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Semgrep
permissions:
contents: read
on:
# Scan changed files in PRs, block on new issues only (existing issues ignored)
pull_request: {}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/slither.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
- main
- master

permissions:
contents: read
security-events: write

jobs:
analyze:
# disabled for now, since we don't have any Solidity files.
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/solhint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Solhint
# This workflow is only run when a .sol file has been changed
# This workflow is only run when a file in the contracts folder changes.
on:
pull_request:
paths:
- "contracts/**"

permissions:
contents: read

jobs:
solhint:
name: runner / solhint
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/solidity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ on:
- master
- release/**

permissions:
contents: read

jobs:
test-solidity:
# disabled for now, since we don't have any Solidity files.
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
---
name: Lint Code Base

permissions:
contents: read

on:
push:
branches: ["develop", "main", "master"]
Expand All @@ -23,7 +26,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v5
uses: super-linter/super-linter@v6.3.0 # x-release-please-version
env:
LINTER_RULES_PATH: /
YAML_CONFIG_FILE: .yamllint
Expand All @@ -33,6 +36,10 @@ jobs:
VALIDATE_NATURAL_LANGUAGE: false
VALIDATE_OPENAPI: false
VALIDATE_JSCPD: false
# The JSON files in the repo are generated (abis or swagger)
# or are linting files. So this can be safely disabled.
VALIDATE_JSON: false
# separate workflow
VALIDATE_GO: false
DEFAULT_BRANCH: "master"
VALIDATE_GO_MODULES: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading
Loading