Skip to content

Commit cc0a295

Browse files
authored
Rename to rollmint (#545)
- rename go module - rename imports - rename all comments - rename variables/structs/etc with opti and optimint in their name - fix links (badges/etc) - update ADRs - grep entire directory to ensure full rename Reference: #535
1 parent 722b44e commit cc0a295

71 files changed

Lines changed: 562 additions & 548 deletions

Some content is hidden

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

.github/workflows/docker-build-da-mockserv.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
REGISTRY: ghcr.io
14-
IMAGE_NAME: celestiaorg/optimint-mockserv
14+
IMAGE_NAME: celestiaorg/rollmint-mockserv
1515

1616
jobs:
1717
docker-build:

.github/workflows/docker-build-ethermint-debug.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
REGISTRY: ghcr.io
1414
IMAGE_NAME: celestiaorg/ethermint-debug
15-
TAG_PREFIX: optimint-
15+
TAG_PREFIX: rollmint-
1616

1717
jobs:
1818
docker-build:
@@ -40,10 +40,10 @@ jobs:
4040
ls
4141
mv ethermint ..
4242
cd ..
43-
cp -R optimint ethermint
43+
cp -R rollmint ethermint
4444
cd ethermint
4545
rm -rf .git
46-
go mod edit -replace=github.com/celestiaorg/optimint=./optimint
46+
go mod edit -replace=github.com/celestiaorg/rollmint=./rollmint
4747
go mod tidy -compat=1.17 -e
4848
- name: Docker meta
4949
id: meta

.github/workflows/docker-build-test-ethermint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
REGISTRY: ghcr.io
1414
IMAGE_NAME: celestiaorg/ethermint
15-
TAG_PREFIX: optimint-
15+
TAG_PREFIX: rollmint-
1616

1717
jobs:
1818
docker-build:
@@ -37,16 +37,16 @@ jobs:
3737
with:
3838
repository: celestiaorg/ethermint
3939
path: ethermint
40-
ref: optimint-v0.3.0-rebase
40+
ref: rollmint-v0.3.0-rebase
4141
- name: Move Stuff and Tidy
4242
run: |
4343
ls
4444
mv ethermint ..
4545
cd ..
46-
cp -R optimint ethermint
46+
cp -R rollmint ethermint
4747
cd ethermint
4848
rm -rf .git
49-
go mod edit -replace=github.com/celestiaorg/optimint=./optimint
49+
go mod edit -replace=github.com/celestiaorg/rollmint=./rollmint
5050
go mod tidy -compat=1.17 -e
5151
- name: Docker meta
5252
id: meta
@@ -91,14 +91,14 @@ jobs:
9191
with:
9292
repository: celestiaorg/ethermint
9393
path: ethermint
94-
ref: optimint-v0.3.0-rebase
94+
ref: rollmint-v0.3.0-rebase
9595
- name: Set up Go
9696
uses: actions/setup-go@v2
9797
with:
9898
go-version: 1.17
9999
- name: "Setup Cluster"
100100
run: |
101-
export ETHERMINT_IMAGE_TAG=optimint-$(git rev-parse --short "$GITHUB_SHA")
101+
export ETHERMINT_IMAGE_TAG=rollmint-$(git rev-parse --short "$GITHUB_SHA")
102102
echo $ETHERMINT_IMAGE_TAG
103103
cd ephemeral-cluster
104104
scripts/minimal-ethermint.sh

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Finding an issue
44

5-
GitHub issues are used to track the work associated with Optimint. That's where you can find things to work on.
5+
GitHub issues are used to track the work associated with rollmint. That's where you can find things to work on.
66

77
Issue labels have been used to help designate the priority, status and beginner-friendliness of various issues. Here are some of the ones that are most relevant to finding a good issue to work on:
88

@@ -11,7 +11,7 @@ Issue labels have been used to help designate the priority, status and beginner-
1111

1212
No explicit permission is needed to work on these issues but it would be good idea to tag the user who opened the issue and ask that the issue is assinged to yourself.
1313

14-
All issue labels can be [found here](https://github.com/celestiaorg/optimint/labels) for you to explore and see what peaks your interest.
14+
All issue labels can be [found here](https://github.com/celestiaorg/rollmint/labels) for you to explore and see what peaks your interest.
1515

1616
## Contribution process
1717

NOTICE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rollmint
2+
Copyright 2021-2022 Celestia Labs

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# optimint
1+
# rollmint
22

33
ABCI-client implementation for Optimistic Rollups.
44

55
Design document: <https://docs.google.com/document/d/12gZow_JTJjRrmaD2mNTmYniLhyxVLSyDd7Fbxo5UnA8/edit?usp=sharing>
66

7-
[![build-and-test](https://github.com/celestiaorg/optimint/actions/workflows/test.yml/badge.svg)](https://github.com/celestiaorg/optimint/actions/workflows/test.yml)
8-
[![golangci-lint](https://github.com/celestiaorg/optimint/actions/workflows/lint.yml/badge.svg)](https://github.com/celestiaorg/optimint/actions/workflows/lint.yml)
9-
[![Go Report Card](https://goreportcard.com/badge/github.com/celestiaorg/optimint)](https://goreportcard.com/report/github.com/celestiaorg/optimint)
10-
[![codecov](https://codecov.io/gh/celestiaorg/optimint/branch/main/graph/badge.svg?token=CWGA4RLDS9)](https://codecov.io/gh/celestiaorg/optimint)
11-
[![GoDoc](https://godoc.org/github.com/celestiaorg/optimint?status.svg)](https://godoc.org/github.com/celestiaorg/optimint)
7+
[![build-and-test](https://github.com/celestiaorg/rollmint/actions/workflows/test.yml/badge.svg)](https://github.com/celestiaorg/rollmint/actions/workflows/test.yml)
8+
[![golangci-lint](https://github.com/celestiaorg/rollmint/actions/workflows/lint.yml/badge.svg)](https://github.com/celestiaorg/rollmint/actions/workflows/lint.yml)
9+
[![Go Report Card](https://goreportcard.com/badge/github.com/celestiaorg/rollmint)](https://goreportcard.com/report/github.com/celestiaorg/rollmint)
10+
[![codecov](https://codecov.io/gh/celestiaorg/rollmint/branch/main/graph/badge.svg?token=CWGA4RLDS9)](https://codecov.io/gh/celestiaorg/rollmint)
11+
[![GoDoc](https://godoc.org/github.com/celestiaorg/rollmint?status.svg)](https://godoc.org/github.com/celestiaorg/rollmint)
1212
[![Twitter Follow](https://img.shields.io/twitter/follow/CelestiaOrg?style=social)](https://twitter.com/CelestiaOrg)
1313

1414
## Building From Source
@@ -18,8 +18,8 @@ Requires Go version >= 1.17.
1818
To build:
1919

2020
```sh
21-
git clone https://github.com/celestiaorg/optimint.git
22-
cd optimint
21+
git clone https://github.com/celestiaorg/rollmint.git
22+
cd rollmint
2323
go build -v ./...
2424
```
2525

@@ -40,7 +40,7 @@ To regenerate protobuf types:
4040
We welcome your contributions! Everyone is welcome to contribute, whether it's in the form of code,
4141
documentation, bug reports, feature requests, or anything else.
4242

43-
If you're looking for issues to work on, try looking at the [good first issue list](https://github.com/celestiaorg/optimint/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Issues with this tag are suitable for a new external contributor and is a great way to find something you can help with!
43+
If you're looking for issues to work on, try looking at the [good first issue list](https://github.com/celestiaorg/rollmint/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22). Issues with this tag are suitable for a new external contributor and is a great way to find something you can help with!
4444

4545
See [the contributing guide](./CONTRIBUTING.md) for more details.
4646

block/manager.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ import (
1515
tmtypes "github.com/tendermint/tendermint/types"
1616
"go.uber.org/multierr"
1717

18-
"github.com/celestiaorg/optimint/config"
19-
"github.com/celestiaorg/optimint/da"
20-
"github.com/celestiaorg/optimint/log"
21-
"github.com/celestiaorg/optimint/mempool"
22-
"github.com/celestiaorg/optimint/state"
23-
"github.com/celestiaorg/optimint/store"
24-
"github.com/celestiaorg/optimint/types"
18+
"github.com/celestiaorg/rollmint/config"
19+
"github.com/celestiaorg/rollmint/da"
20+
"github.com/celestiaorg/rollmint/log"
21+
"github.com/celestiaorg/rollmint/mempool"
22+
"github.com/celestiaorg/rollmint/state"
23+
"github.com/celestiaorg/rollmint/store"
24+
"github.com/celestiaorg/rollmint/types"
2525
)
2626

2727
// defaultDABlockTime is used only if DABlockTime is not configured for manager
2828
const defaultDABlockTime = 30 * time.Second
2929

30-
// maxSubmitAttempts defines how many times Optimint will re-try to publish block to DA layer.
30+
// maxSubmitAttempts defines how many times rollmint will re-try to publish block to DA layer.
3131
// This is temporary solution. It will be removed in future versions.
3232
const maxSubmitAttempts = 30
3333

@@ -497,7 +497,7 @@ func (m *Manager) submitBlockToDA(ctx context.Context, block *types.Block) error
497497
for attempt := 1; ctx.Err() == nil && !submitted && attempt <= maxSubmitAttempts; attempt++ {
498498
res := m.dalc.SubmitBlock(block)
499499
if res.Code == da.StatusSuccess {
500-
m.logger.Info("successfully submitted optimint block to DA layer", "optimintHeight", block.Header.Height, "daHeight", res.DAHeight)
500+
m.logger.Info("successfully submitted rollmint block to DA layer", "rollmintHeight", block.Header.Height, "daHeight", res.DAHeight)
501501
submitted = true
502502
} else {
503503
m.logger.Error("DA layer submission failed", "error", res.Message, "attempt", attempt)

block/manager_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import (
1212
"github.com/tendermint/tendermint/libs/log"
1313
tmtypes "github.com/tendermint/tendermint/types"
1414

15-
"github.com/celestiaorg/optimint/config"
16-
"github.com/celestiaorg/optimint/da"
17-
mockda "github.com/celestiaorg/optimint/da/mock"
18-
"github.com/celestiaorg/optimint/store"
19-
"github.com/celestiaorg/optimint/types"
15+
"github.com/celestiaorg/rollmint/config"
16+
"github.com/celestiaorg/rollmint/da"
17+
mockda "github.com/celestiaorg/rollmint/da/mock"
18+
"github.com/celestiaorg/rollmint/store"
19+
"github.com/celestiaorg/rollmint/types"
2020
)
2121

2222
func TestInitialState(t *testing.T) {

config/config.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ import (
99
)
1010

1111
const (
12-
flagAggregator = "optimint.aggregator"
13-
flagDALayer = "optimint.da_layer"
14-
flagDAConfig = "optimint.da_config"
15-
flagBlockTime = "optimint.block_time"
16-
flagDABlockTime = "optimint.da_block_time"
17-
flagDAStartHeight = "optimint.da_start_height"
18-
flagNamespaceID = "optimint.namespace_id"
12+
flagAggregator = "rollmint.aggregator"
13+
flagDALayer = "rollmint.da_layer"
14+
flagDAConfig = "rollmint.da_config"
15+
flagBlockTime = "rollmint.block_time"
16+
flagDABlockTime = "rollmint.da_block_time"
17+
flagDAStartHeight = "rollmint.da_start_height"
18+
flagNamespaceID = "rollmint.namespace_id"
1919
)
2020

21-
// NodeConfig stores Optimint node configuration.
21+
// NodeConfig stores rollmint node configuration.
2222
type NodeConfig struct {
2323
// parameters below are translated from existing config
2424
RootDir string
2525
DBPath string
2626
P2P P2PConfig
2727
RPC RPCConfig
28-
// parameters below are optimint specific and read from config
28+
// parameters below are rollmint specific and read from config
2929
Aggregator bool `mapstructure:"aggregator"`
3030
BlockManagerConfig `mapstructure:",squash"`
3131
DALayer string `mapstructure:"da_layer"`
@@ -62,7 +62,7 @@ func (nc *NodeConfig) GetViperConfig(v *viper.Viper) error {
6262
return nil
6363
}
6464

65-
// AddFlags adds Optimint specific configuration options to cobra Command.
65+
// AddFlags adds rollmint specific configuration options to cobra Command.
6666
//
6767
// This function is called in cosmos-sdk.
6868
func AddFlags(cmd *cobra.Command) {

conv/abci/block.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
tmversion "github.com/tendermint/tendermint/proto/tendermint/version"
88
tmtypes "github.com/tendermint/tendermint/types"
99

10-
"github.com/celestiaorg/optimint/types"
10+
"github.com/celestiaorg/rollmint/types"
1111
)
1212

13-
// ToABCIHeaderPB converts Optimint header to Header format defined in ABCI.
14-
// Caller should fill all the fields that are not available in Optimint header (like ChainID).
13+
// ToABCIHeaderPB converts rollmint header to Header format defined in ABCI.
14+
// Caller should fill all the fields that are not available in rollmint header (like ChainID).
1515
func ToABCIHeaderPB(header *types.Header) (tmproto.Header, error) {
1616
return tmproto.Header{
1717
Version: tmversion.Consensus{
@@ -39,8 +39,8 @@ func ToABCIHeaderPB(header *types.Header) (tmproto.Header, error) {
3939
}, nil
4040
}
4141

42-
// ToABCIHeader converts Optimint header to Header format defined in ABCI.
43-
// Caller should fill all the fields that are not available in Optimint header (like ChainID).
42+
// ToABCIHeader converts rollmint header to Header format defined in ABCI.
43+
// Caller should fill all the fields that are not available in rollmint header (like ChainID).
4444
func ToABCIHeader(header *types.Header) (tmtypes.Header, error) {
4545
return tmtypes.Header{
4646
Version: tmversion.Consensus{
@@ -68,7 +68,7 @@ func ToABCIHeader(header *types.Header) (tmtypes.Header, error) {
6868
}, nil
6969
}
7070

71-
// ToABCIBlock converts Optimint block into block format defined by ABCI.
71+
// ToABCIBlock converts rollmint block into block format defined by ABCI.
7272
// Returned block should pass `ValidateBasic`.
7373
func ToABCIBlock(block *types.Block) (*tmtypes.Block, error) {
7474
abciHeader, err := ToABCIHeader(&block.Header)
@@ -96,7 +96,7 @@ func ToABCIBlock(block *types.Block) (*tmtypes.Block, error) {
9696
return &abciBlock, nil
9797
}
9898

99-
// ToABCIBlockMeta converts Optimint block into BlockMeta format defined by ABCI
99+
// ToABCIBlockMeta converts rollmint block into BlockMeta format defined by ABCI
100100
func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error) {
101101
tmblock, err := ToABCIBlock(block)
102102
if err != nil {
@@ -112,8 +112,8 @@ func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error) {
112112
}, nil
113113
}
114114

115-
// ToABCICommit converts Optimint commit into commit format defined by ABCI.
116-
// This function only converts fields that are available in Optimint commit.
115+
// ToABCICommit converts rollmint commit into commit format defined by ABCI.
116+
// This function only converts fields that are available in rollmint commit.
117117
// Other fields (especially ValidatorAddress and Timestamp of Signature) has to be filled by caller.
118118
func ToABCICommit(commit *types.Commit) *tmtypes.Commit {
119119
tmCommit := tmtypes.Commit{

0 commit comments

Comments
 (0)