Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 5e3b852

Browse files
Bump google.golang.org/grpc from 1.66.0 to 1.67.0 in the patch-updates group (#8)
* Bump google.golang.org/grpc in the patch-updates group Bumps the patch-updates group with 1 update: [google.golang.org/grpc](https://github.com/grpc/grpc-go). Updates `google.golang.org/grpc` from 1.66.0 to 1.67.0 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.66.0...v1.67.0) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: direct:production update-type: version-update:semver-minor dependency-group: patch-updates ... Signed-off-by: dependabot[bot] <[email protected]> * chore: resolve lint errors * chore: add yamllint config and resolve errors * chore: fix brokenlint --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Matthew Sevey <[email protected]>
1 parent 7dfb7b7 commit 5e3b852

File tree

10 files changed

+54
-26
lines changed

10 files changed

+54
-26
lines changed

.golangci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ run:
44

55
linters:
66
enable:
7-
- deadcode
7+
- errorlint
88
- errcheck
99
- gofmt
1010
- goimports
@@ -15,18 +15,26 @@ linters:
1515
- misspell
1616
- revive
1717
- staticcheck
18-
- structcheck
1918
- typecheck
19+
- unconvert
2020
- unused
21-
- varcheck
2221

2322
issues:
2423
exclude-use-default: false
24+
# mempool and indexer code is borrowed from Tendermint
25+
exclude-dirs:
26+
- mempool
27+
- state/indexer
28+
- state/txindex
29+
- third_party
2530
include:
26-
- EXC0012 # EXC0012 revive: Annoying issue about not having a comment.
27-
- EXC0014 # EXC0014 revive: Annoying issue about not having a comment.
31+
- EXC0012 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
32+
- EXC0014 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments
2833

2934
linters-settings:
35+
gosec:
36+
excludes:
37+
- G115
3038
revive:
3139
rules:
3240
- name: package-comments

.yamllint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
# Built from docs https://yamllint.readthedocs.io/en/stable/configuration.html
3+
extends: default
4+
5+
rules:
6+
# 120 chars should be enough, but don't fail if a line is longer
7+
line-length:
8+
max: 120
9+
level: warning

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ lint: vet
4040
@golangci-lint run
4141
@echo "--> Running markdownlint"
4242
@markdownlint --config .markdownlint.yaml '**/*.md'
43-
@echo "--> Running hadolint"
44-
@hadolint docker/mockserv.Dockerfile
4543
@echo "--> Running yamllint"
4644
@yamllint --no-warnings . -c .yamllint.yml
4745

@@ -51,6 +49,8 @@ lint: vet
5149
fmt:
5250
@echo "--> Formatting markdownlint"
5351
@markdownlint --config .markdownlint.yaml '**/*.md' -f
52+
@echo "--> Formatting go"
53+
@golangci-lint run --fix
5454
.PHONY: fmt
5555

5656
## vet: Run go vet

README.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,31 @@ go-sequencing defines a generic sequencing interface for modular blockchains
1212

1313
## Sequencing Interface
1414

15+
<!-- markdownlint-disable MD013 -->
1516
| Method | Params | Return |
1617
| ------------- | -------------------------------------------------------- | --------------- |
1718
| `SubmitRollupTransaction` | `context.Context`, `rollupId RollupId`, `tx Tx` | `error` |
1819
| `GetNextBatch` | `context.Context`, `lastBatchHash Hash` | `batch Batch`, `timestamp Time` `error` |
1920
| `VerifyBatch` | `context.Context`, `batchHash Hash` | `success bool`, `error` |
21+
<!-- markdownlint-enable MD013 -->
2022

2123
Note: `Batch` is []`Tx` and `Tx` is `[]byte`. Also `Hash` and `RollupId` are `[]byte`.
2224

2325
## Implementations
2426

2527
The following implementations are available:
2628

27-
* [centralized-sequencer](https://github.com/rollkit/centralized-sequencer) implements a centralized sequencer that posts rollup transactions to Celestia DA.
28-
* [astria-sequencer](https://github.com/rollkit/astria-sequencer) implements a Astria sequencer middleware that connects to Astria shared sequencer.
29+
* [centralized-sequencer][centralized] implements a centralized sequencer that
30+
posts rollup transactions to Celestia DA.
31+
* [astria-sequencer][astria] implements a Astria sequencer middleware that
32+
connects to Astria shared sequencer.
2933

3034
In addition the following helper implementations are available:
3135

32-
* [DummySequencer](https://github.com/rollkit/go-sequencing/blob/main/test/dummy.go) implements
33-
a Mock sequencer useful for testing.
34-
* [Proxy](https://github.com/rollkit/go-sequencing/tree/main/proxy) implements a proxy
35-
server that forwards requests to a gRPC server. The proxy client
36-
can be used directly to interact with the sequencer service.
36+
* [DummySequencer][dummy] implements a Mock sequencer useful for testing.
37+
* [Proxy][proxy] implements a proxy server that forwards requests to a gRPC
38+
server. The proxy client can be used directly to interact with the sequencer
39+
service.
3740

3841
## Helpful commands
3942

@@ -57,15 +60,20 @@ We welcome your contributions! Everyone is welcome to contribute, whether it's
5760
in the form of code, documentation, bug reports, feature
5861
requests, or anything else.
5962

60-
If you're looking for issues to work on, try looking at the
61-
[good first issue list](https://github.com/rollkit/go-da/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
62-
Issues with this tag are suitable for a new external contributor and is a great
63-
way to find something you can help with!
63+
If you're looking for issues to work on, try looking at the [good first issue
64+
list][gfi]. Issues with this tag are suitable for a new external contributor
65+
and is a great way to find something you can help with!
6466

6567
Please join our
6668
[Community Discord](https://discord.com/invite/YsnTPcSfWQ)
6769
to ask questions, discuss your ideas, and connect with other contributors.
6870

6971
## Code of Conduct
7072

71-
See our Code of Conduct [here](https://docs.celestia.org/community/coc).
73+
See our Code of Conduct [here](https://docs.celestia.org/community/coc).
74+
75+
[centralized]: <https://github.com/rollkit/centralized-sequencer>
76+
[astria]: <https://github.com/rollkit/astria-sequencer>
77+
[dummy]: https://github.com/rollkit/go-sequencing/blob/main/test/dummy.go
78+
[proxy]: https://github.com/rollkit/go-sequencing/tree/main/proxy
79+
[gfi]: https://github.com/rollkit/go-da/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22

buf.gen.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ version: v1beta1
33
# The plugins to run.
44
plugins:
55
# The name of the plugin.
6-
- name: gocosmos
7-
# The the relative output directory.
6+
- name:
7+
gocosmos
8+
# The the relative output directory.
89
out: types/pb
910
# Any options to provide to the plugin.
1011
opt:
1112
- Mgoogle/protobuf/timestamp.proto=github.com/cosmos/gogoproto/types
1213
- Mgoogle/protobuf/duration.proto=github.com/golang/protobuf/ptypes/duration
1314
- Mgoogle/protobuf/wrappers.proto=github.com/cosmos/gogoproto/types
1415
- plugins=grpc
15-
- paths=source_relative
16+
- paths=source_relative

buf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ lint:
2525
- tendermint
2626
breaking:
2727
use:
28-
- FILE
28+
- FILE

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.21.0
44

55
require (
66
github.com/cosmos/gogoproto v1.7.0
7-
google.golang.org/grpc v1.66.0
7+
google.golang.org/grpc v1.67.0
88
)
99

1010
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc=
1212
golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
1313
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed h1:J6izYgfBXAI3xTKLgxzTmUltdYaLsuBxFCgDHWJ/eXg=
1414
google.golang.org/genproto/googleapis/rpc v0.0.0-20240827150818-7e3bb234dfed/go.mod h1:UqMtugtsSgubUsoxbuAoiCXvqvErP7Gf0so0mK9tHxU=
15-
google.golang.org/grpc v1.66.0 h1:DibZuoBznOxbDQxRINckZcUvnCEvrW9pcWIE2yF9r1c=
16-
google.golang.org/grpc v1.66.0/go.mod h1:s3/l6xSSCURdVfAnL+TqCNMyTDAGN6+lZeVxnZR128Y=
15+
google.golang.org/grpc v1.67.0 h1:IdH9y6PF5MPSdAntIcpjQ+tXO41pcQsfZV2RxtQgVcw=
16+
google.golang.org/grpc v1.67.0/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA=
1717
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
1818
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=

proxy/grpc/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"google.golang.org/grpc"
88

99
types "github.com/cosmos/gogoproto/types"
10+
1011
"github.com/rollkit/go-sequencing"
1112
pbseq "github.com/rollkit/go-sequencing/types/pb/sequencing"
1213
)

proxy/grpc/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/rollkit/go-sequencing"
99

1010
types "github.com/cosmos/gogoproto/types"
11+
1112
pbseq "github.com/rollkit/go-sequencing/types/pb/sequencing"
1213
)
1314

0 commit comments

Comments
 (0)