Skip to content

Commit

Permalink
Update module name from github.com/airchains-network/wasmbft back to …
Browse files Browse the repository at this point in the history
…github.com/cometbft/cometbft

All changes were variable modifications and did not introduce new behaviors or functionalities. It's only module name change.
  • Loading branch information
aakash4dev committed Jul 19, 2024
1 parent 6a3baf9 commit 3c3fb8d
Show file tree
Hide file tree
Showing 493 changed files with 1,908 additions and 1,926 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To use WasmBFT in your Go project, you can add it to your `go.mod` file or repla
Add the following line to your `go.mod` file:

```plaintext
require github.com/airchains-network/wasmbft v0.0.1
require github.com/cometbft/cometbft v0.0.1
```

Then run:
Expand All @@ -40,7 +40,7 @@ go mod tidy
If your project already uses CometBFT and you want to replace it with WasmBFT, add the following replace directive to your `go.mod` file:

```plaintext
replace github.com/cometbft/cometbft => github.com/airchains-network/wasmbft v0.0.1
replace github.com/cometbft/cometbft => github.com/cometbft/cometbft v0.0.1
```

Then run:
Expand Down Expand Up @@ -126,17 +126,17 @@ Please follow the [Code of Conduct](./CODE_OF_CONDUCT.md) in all interactions. F

## License

This project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/airchains-network/wasmbft/blob/main/LICENSE) file for details.
This project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/cometbft/cometbft/blob/main/LICENSE) file for details.

## Contact

For any inquiries or issues, please contact us via [Airchains Discord](https://discord.gg/airchains).

[version-badge]: https://img.shields.io/github/v/release/airchains-network/wasmbft.svg
[version-url]: https://github.com/airchains-network/wasmbft/releases/latest
[version-url]: https://github.com/cometbft/cometbft/releases/latest
[go-badge]: https://img.shields.io/badge/go-1.20-blue.svg
[go-url]: https://github.com/moovweb/gvm
[license-badge]: https://img.shields.io/github/license/airchains-network/wasmbft.svg
[license-url]: https://github.com/airchains-network/wasmbft/blob/main/LICENSE
[sg-badge]: https://sourcegraph.com/github.com/airchains-network/wasmbft/-/badge.svg
[sg-url]: https://sourcegraph.com/github.com/airchains-network/wasmbft?badge
[license-url]: https://github.com/cometbft/cometbft/blob/main/LICENSE
[sg-badge]: https://sourcegraph.com/github.com/cometbft/cometbft/-/badge.svg
[sg-url]: https://sourcegraph.com/github.com/cometbft/cometbft?badge
6 changes: 3 additions & 3 deletions abci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"sync"

"github.com/airchains-network/wasmbft/abci/types"
"github.com/airchains-network/wasmbft/libs/service"
cmtsync "github.com/airchains-network/wasmbft/libs/sync"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions abci/client/grpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/airchains-network/wasmbft/abci/types"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/airchains-network/wasmbft/libs/service"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net"
"github.com/cometbft/cometbft/libs/service"
)

var _ Client = (*grpcClient)(nil)
Expand Down
8 changes: 4 additions & 4 deletions abci/client/grpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (

"golang.org/x/net/context"

"github.com/airchains-network/wasmbft/libs/log"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/cometbft/cometbft/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net"

abciserver "github.com/airchains-network/wasmbft/abci/server"
"github.com/airchains-network/wasmbft/abci/types"
abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
)

func TestGRPC(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions abci/client/local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package abcicli
import (
"context"

types "github.com/airchains-network/wasmbft/abci/types"
"github.com/airchains-network/wasmbft/libs/service"
cmtsync "github.com/airchains-network/wasmbft/libs/sync"
types "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
)

// NOTE: use defer to unlock mutex because Application might panic (e.g., in
Expand Down
6 changes: 3 additions & 3 deletions abci/client/mocks/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions abci/client/socket_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"sync"
"time"

"github.com/airchains-network/wasmbft/abci/types"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/airchains-network/wasmbft/libs/service"
"github.com/airchains-network/wasmbft/libs/timer"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net"
"github.com/cometbft/cometbft/libs/service"
"github.com/cometbft/cometbft/libs/timer"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions abci/client/socket_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

abcicli "github.com/airchains-network/wasmbft/abci/client"
"github.com/airchains-network/wasmbft/abci/server"
"github.com/airchains-network/wasmbft/abci/types"
cmtrand "github.com/airchains-network/wasmbft/libs/rand"
"github.com/airchains-network/wasmbft/libs/service"
abcicli "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/libs/service"
)

func TestCalls(t *testing.T) {
Expand Down
20 changes: 10 additions & 10 deletions abci/cmd/abci-cli/abci-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import (

"github.com/spf13/cobra"

"github.com/airchains-network/wasmbft/libs/log"
cmtos "github.com/airchains-network/wasmbft/libs/os"

abcicli "github.com/airchains-network/wasmbft/abci/client"
"github.com/airchains-network/wasmbft/abci/example/kvstore"
"github.com/airchains-network/wasmbft/abci/server"
servertest "github.com/airchains-network/wasmbft/abci/tests/server"
"github.com/airchains-network/wasmbft/abci/types"
"github.com/airchains-network/wasmbft/abci/version"
"github.com/airchains-network/wasmbft/proto/tendermint/crypto"
"github.com/cometbft/cometbft/libs/log"
cmtos "github.com/cometbft/cometbft/libs/os"

abcicli "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore"
"github.com/cometbft/cometbft/abci/server"
servertest "github.com/cometbft/cometbft/abci/tests/server"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/abci/version"
"github.com/cometbft/cometbft/proto/tendermint/crypto"
)

// client is a global variable so it can be reused by the console
Expand Down
8 changes: 4 additions & 4 deletions abci/example/kvstore/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"
"strings"

"github.com/airchains-network/wasmbft/abci/types"
cryptoencoding "github.com/airchains-network/wasmbft/crypto/encoding"
cmtrand "github.com/airchains-network/wasmbft/libs/rand"
"github.com/airchains-network/wasmbft/proto/tendermint/crypto"
"github.com/cometbft/cometbft/abci/types"
cryptoencoding "github.com/cometbft/cometbft/crypto/encoding"
cmtrand "github.com/cometbft/cometbft/libs/rand"
"github.com/cometbft/cometbft/proto/tendermint/crypto"
)

// RandVal creates one random validator, with a key derived
Expand Down
10 changes: 5 additions & 5 deletions abci/example/kvstore/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (

dbm "github.com/cometbft/cometbft-db"

"github.com/airchains-network/wasmbft/abci/types"
cryptoencoding "github.com/airchains-network/wasmbft/crypto/encoding"
"github.com/airchains-network/wasmbft/libs/log"
cryptoproto "github.com/airchains-network/wasmbft/proto/tendermint/crypto"
"github.com/airchains-network/wasmbft/version"
"github.com/cometbft/cometbft/abci/types"
cryptoencoding "github.com/cometbft/cometbft/crypto/encoding"
"github.com/cometbft/cometbft/libs/log"
cryptoproto "github.com/cometbft/cometbft/proto/tendermint/crypto"
"github.com/cometbft/cometbft/version"
)

var (
Expand Down
10 changes: 5 additions & 5 deletions abci/example/kvstore/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

"github.com/stretchr/testify/require"

"github.com/airchains-network/wasmbft/libs/log"
"github.com/airchains-network/wasmbft/libs/service"
"github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/libs/service"

abcicli "github.com/airchains-network/wasmbft/abci/client"
abciserver "github.com/airchains-network/wasmbft/abci/server"
"github.com/airchains-network/wasmbft/abci/types"
abcicli "github.com/cometbft/cometbft/abci/client"
abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions abci/server/grpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"google.golang.org/grpc"

"github.com/airchains-network/wasmbft/abci/types"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/airchains-network/wasmbft/libs/service"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net"
"github.com/cometbft/cometbft/libs/service"
)

type GRPCServer struct {
Expand Down
4 changes: 2 additions & 2 deletions abci/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package server
import (
"fmt"

"github.com/airchains-network/wasmbft/abci/types"
"github.com/airchains-network/wasmbft/libs/service"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
)

// NewServer is a utility function for out of process applications to set up either a socket or
Expand Down
10 changes: 5 additions & 5 deletions abci/server/socket_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"os"
"runtime"

"github.com/airchains-network/wasmbft/abci/types"
cmtlog "github.com/airchains-network/wasmbft/libs/log"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/airchains-network/wasmbft/libs/service"
cmtsync "github.com/airchains-network/wasmbft/libs/sync"
"github.com/cometbft/cometbft/abci/types"
cmtlog "github.com/cometbft/cometbft/libs/log"
cmtnet "github.com/cometbft/cometbft/libs/net"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
)

// SocketServer is the server-side implementation of the TSP (Tendermint Socket Protocol)
Expand Down
4 changes: 2 additions & 2 deletions abci/tests/benchmarks/parallel/parallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"log"

"github.com/airchains-network/wasmbft/abci/types"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions abci/tests/benchmarks/simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"reflect"

"github.com/airchains-network/wasmbft/abci/types"
cmtnet "github.com/airchains-network/wasmbft/libs/net"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/libs/net"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions abci/tests/client_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"github.com/stretchr/testify/assert"

abciclient "github.com/airchains-network/wasmbft/abci/client"
"github.com/airchains-network/wasmbft/abci/example/kvstore"
abciserver "github.com/airchains-network/wasmbft/abci/server"
abciclient "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore"
abciserver "github.com/cometbft/cometbft/abci/server"
)

func TestClientServerNoAddrPrefix(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions abci/tests/server/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"errors"
"fmt"

abcicli "github.com/airchains-network/wasmbft/abci/client"
"github.com/airchains-network/wasmbft/abci/types"
cmtrand "github.com/airchains-network/wasmbft/libs/rand"
abcicli "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/types"
cmtrand "github.com/cometbft/cometbft/libs/rand"
)

func InitChain(ctx context.Context, client abcicli.Client) error {
Expand Down
2 changes: 1 addition & 1 deletion abci/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/cosmos/gogoproto/proto"

"github.com/airchains-network/wasmbft/libs/protoio"
"github.com/cometbft/cometbft/libs/protoio"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion abci/types/messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/assert"

cmtproto "github.com/airchains-network/wasmbft/proto/tendermint/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
)

func TestMarshalJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion abci/types/mocks/application.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions abci/types/pubkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package types
import (
fmt "fmt"

"github.com/airchains-network/wasmbft/crypto/ed25519"
cryptoenc "github.com/airchains-network/wasmbft/crypto/encoding"
"github.com/airchains-network/wasmbft/crypto/secp256k1"
"github.com/cometbft/cometbft/crypto/ed25519"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
"github.com/cometbft/cometbft/crypto/secp256k1"
)

func Ed25519ValidatorUpdate(pk []byte, power int64) ValidatorUpdate {
Expand Down
4 changes: 2 additions & 2 deletions abci/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions abci/types/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

abci "github.com/airchains-network/wasmbft/abci/types"
"github.com/airchains-network/wasmbft/crypto/merkle"
abci "github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/crypto/merkle"
)

func TestHashAndProveResults(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion abci/version/version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package version

import (
"github.com/airchains-network/wasmbft/version"
"github.com/cometbft/cometbft/version"
)

// TODO: eliminate this after some version refactor
Expand Down
2 changes: 1 addition & 1 deletion blocksync/metrics.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package blocksync

import (
"github.com/airchains-network/wasmbft/types"
"github.com/cometbft/cometbft/types"
"github.com/go-kit/kit/metrics"
)

Expand Down
Loading

0 comments on commit 3c3fb8d

Please sign in to comment.