-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'pokt/main' into feat/session-manager-im…
…plementation * pokt/main: (28 commits) [Miner] feat: add supplier client (#42) [Off-chain] refactor: keyring errors & helpers (#131) [Miner] feat: add `TxClient` (#94) [CI] Build container images (#107) fix: flaky block client test (#132) [Tooling] add `go_lint` & `go_imports` make targets & CI step (#129) Update README.md [Code Health] Support `godoc` by replacing the `pocket `module name with `github.com/pokt-network/poktroll` (#128) [Miner] feat: add `TxContext` (#118) [Testing] fix: flaky tests in observable & client pkgs (#124) Added first roadmap change [AppGate] Implement UndelegateFromGateway with Extensive Tests (#125) [Miner] feat: add block client (#65) [Supplier] Add `ServiceConfigs` to `SupplierStaking` (#114) [AppGate] Add the MaxDelegatedGateways parameter (#109) [Test] Temporarily skip a flaky test `TestEventsQueryClient_Subscribe_Succeeds` (#121) [AppGate] Implement DelegateToGateway and add Tests (#90) [E2E] Add (Un)Stake Tests (#88) refactor: add `either.Bytes` alias (#117) feat: add either.AsyncErr type & helpers (#115) ...
- Loading branch information
Showing
331 changed files
with
9,058 additions
and
1,618 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# When `devnet-e2e-test` is added, also assign `devnet` to the PR. | ||
devnet-e2e-test: | ||
prs: | ||
comment: The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. | ||
label: | ||
- devnet | ||
|
||
# When `devnet-e2e-test` is removed, also delete `devnet` from the PR. | ||
-devnet-e2e-test: | ||
prs: | ||
unlabel: | ||
- devnet | ||
|
||
# When `devnet` is added, also assign `push-image` to the PR. | ||
devnet: | ||
prs: | ||
label: | ||
- push-image | ||
|
||
# When `devnet` is removed, also delete `devnet-e2e-test` from the PR. | ||
-devnet: | ||
prs: | ||
unlabel: | ||
- devnet-e2e-test | ||
|
||
# Let the developer know that they need to push another commit after attaching the label to PR. | ||
push-image: | ||
prs: | ||
comment: The image is going to be pushed after the next commit. If you want to run an e2e test, it is necessary to push another commit. You can use `make trigger_ci` to push an empty commit. | ||
|
||
# When `push-image` is removed, also delete `devnet` from the PR. | ||
-push-image: | ||
prs: | ||
unlabel: | ||
- devnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Label Actions' | ||
|
||
on: | ||
issues: | ||
types: [labeled, unlabeled] | ||
pull_request_target: | ||
types: [labeled, unlabeled] | ||
discussion: | ||
types: [labeled, unlabeled] | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
discussions: write | ||
|
||
jobs: | ||
action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/label-actions@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
linters-settings: | ||
govet: | ||
check-shadowing: true | ||
|
||
# TODO_TECHDEBT: Enable each linter listed, 1 by 1, fixing issues as they appear. | ||
# Don't forget to delete the `disable-all: true` line as well. | ||
linters: | ||
disable-all: true | ||
enable: | ||
# - govet | ||
# - revive | ||
# - errcheck | ||
# - unused | ||
- goimports | ||
|
||
issues: | ||
exclude-use-default: true | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
# TODO_CONSIDERATION/TODO_TECHDEBT: Perhaps we should prefer enforcing the best | ||
# practices suggested by the linters over convention or the default in generated | ||
# code (where possible). The more exceptions we have, the bigger the gaps will be | ||
# in our linting coverage. We could eliminate or reduce these exceptions step- | ||
# by-step. | ||
exclude-rules: | ||
# Exclude cosmos-sdk module genesis.go files as they are generated with an | ||
# empty import block containing a comment used by ignite CLI. | ||
- path: ^x/.+/genesis\.go$ | ||
linters: | ||
- goimports | ||
# Exclude cosmos-sdk module module.go files as they are generated with unused | ||
# parameters and unchecked errors. | ||
- path: ^x/.+/module\.go$ | ||
linters: | ||
- revive | ||
- errcheck | ||
# Exclude cosmos-sdk module tx.go files as they are generated with unused | ||
# constants. | ||
- path: ^x/.+/cli/tx\.go$ | ||
linters: | ||
- unused | ||
# Exclude simulation code as it's generated with lots of unused parameters. | ||
- path: .*/simulation/.*|_simulation\.go$ | ||
linters: | ||
- revive | ||
# Exclude cosmos-sdk module codec files as they are scaffolded with a unused | ||
# paramerters and a comment used by ignite CLI. | ||
- path: ^x/.+/codec.go$ | ||
linters: | ||
- revive | ||
- path: _test\.go$ | ||
linters: | ||
- errcheck | ||
# TODO_IMPROVE: see https://golangci-lint.run/usage/configuration/#issues-configuration | ||
#new: true, | ||
#fix: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This Dockerfile is used to build container image for development purposes. | ||
# It intentionally contains no security features, ships with code and troubleshooting tools. | ||
|
||
FROM golang:1.20 as base | ||
|
||
RUN apt update && \ | ||
apt-get install -y \ | ||
ca-certificates \ | ||
curl jq make | ||
|
||
# enable faster module downloading. | ||
ENV GOPROXY https://proxy.golang.org | ||
|
||
COPY . /poktroll | ||
|
||
WORKDIR /poktroll | ||
|
||
RUN mv /poktroll/bin/poktrolld /usr/bin/poktrolld | ||
|
||
EXPOSE 8545 | ||
EXPOSE 8546 | ||
|
||
ENTRYPOINT ["ignite"] |
Oops, something went wrong.