Skip to content

Commit

Permalink
feat: created github.com/KYVENetwork/cometbft/v100
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherbrumm committed Sep 3, 2024
1 parent 86da002 commit 26fd024
Show file tree
Hide file tree
Showing 624 changed files with 2,580 additions and 2,589 deletions.
2 changes: 1 addition & 1 deletion abci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To get up and running quickly, see the [getting started guide](../docs/guides/ap
A detailed description of the ABCI methods and message types is contained in:

- [The main spec](https://github.com/cometbft/cometbft/blob/main/spec/abci/README.md)
- [A protobuf file](../proto/cometbft/types/v1/types.proto)
- [A protobuf file](../proto/cometbft/v100/types/v1/types.proto)
- [A Go interface](./types/application.go)

## Protocol Buffers
Expand Down
6 changes: 3 additions & 3 deletions abci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"sync"

"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v100/libs/sync"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion abci/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package abcicli
import (
"fmt"

"github.com/cometbft/cometbft/abci/types"
"github.com/KYVENetwork/cometbft/v100/abci/types"
)

// ErrUnknownAbciTransport is returned when trying to create a client with an invalid transport option.
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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/cometbft/cometbft/libs/service"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/net"
"github.com/KYVENetwork/cometbft/v100/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 @@ -13,10 +13,10 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/cometbft/cometbft/libs/log"
abciserver "github.com/KYVENetwork/cometbft/v100/abci/server"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/net"
"github.com/KYVENetwork/cometbft/v100/libs/log"
)

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"

"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v100/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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/cometbft/cometbft/internal/timer"
"github.com/cometbft/cometbft/libs/service"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/net"
"github.com/KYVENetwork/cometbft/v100/internal/timer"
"github.com/KYVENetwork/cometbft/v100/libs/service"
)

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 @@ -11,11 +11,11 @@ import (

"github.com/stretchr/testify/require"

abcicli "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
cmtrand "github.com/cometbft/cometbft/internal/rand"
"github.com/cometbft/cometbft/libs/service"
abcicli "github.com/KYVENetwork/cometbft/v100/abci/client"
"github.com/KYVENetwork/cometbft/v100/abci/server"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtrand "github.com/KYVENetwork/cometbft/v100/internal/rand"
"github.com/KYVENetwork/cometbft/v100/libs/service"
)

func TestCalls(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions abci/client/unsync_local_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"sync"

"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/libs/service"
)

type unsyncLocalClient struct {
Expand Down
18 changes: 9 additions & 9 deletions abci/cmd/abci-cli/abci-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (

"github.com/spf13/cobra"

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"
crypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
cmtos "github.com/cometbft/cometbft/internal/os"
"github.com/cometbft/cometbft/libs/log"
abcicli "github.com/KYVENetwork/cometbft/v100/abci/client"
"github.com/KYVENetwork/cometbft/v100/abci/example/kvstore"
"github.com/KYVENetwork/cometbft/v100/abci/server"
servertest "github.com/KYVENetwork/cometbft/v100/abci/tests/server"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/abci/version"
crypto "github.com/KYVENetwork/cometbft/v100/api/cometbft/crypto/v1"
cmtos "github.com/KYVENetwork/cometbft/v100/internal/os"
"github.com/KYVENetwork/cometbft/v100/libs/log"
)

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

"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/crypto/ed25519"
cmtrand "github.com/cometbft/cometbft/internal/rand"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/crypto/ed25519"
cmtrand "github.com/KYVENetwork/cometbft/v100/internal/rand"
)

// 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 @@ -10,12 +10,12 @@ import (
"strconv"
"strings"

"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/crypto"
cryptoenc "github.com/KYVENetwork/cometbft/v100/crypto/encoding"
"github.com/KYVENetwork/cometbft/v100/libs/log"
"github.com/KYVENetwork/cometbft/v100/version"
dbm "github.com/cometbft/cometbft-db"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/crypto"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
"github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/version"
)

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

"github.com/stretchr/testify/require"

abcicli "github.com/cometbft/cometbft/abci/client"
abciserver "github.com/cometbft/cometbft/abci/server"
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/log"
abcicli "github.com/KYVENetwork/cometbft/v100/abci/client"
abciserver "github.com/KYVENetwork/cometbft/v100/abci/server"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/libs/log"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion abci/server/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package server
import (
"fmt"

"github.com/cometbft/cometbft/abci/types"
"github.com/KYVENetwork/cometbft/v100/abci/types"
)

// ErrUnknownServerType is returned when trying to create a server with invalid transport option.
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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/cometbft/cometbft/libs/service"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/net"
"github.com/KYVENetwork/cometbft/v100/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 @@ -8,8 +8,8 @@ It contains two server implementation:
package server

import (
"github.com/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/libs/service"
"github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
cmtlog "github.com/cometbft/cometbft/libs/log"
"github.com/cometbft/cometbft/libs/service"
cmtsync "github.com/cometbft/cometbft/libs/sync"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/net"
cmtlog "github.com/KYVENetwork/cometbft/v100/libs/log"
"github.com/KYVENetwork/cometbft/v100/libs/service"
cmtsync "github.com/KYVENetwork/cometbft/v100/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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/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/cometbft/cometbft/abci/types"
cmtnet "github.com/cometbft/cometbft/internal/net"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtnet "github.com/KYVENetwork/cometbft/v100/internal/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/require"

abciclient "github.com/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/example/kvstore"
abciserver "github.com/cometbft/cometbft/abci/server"
abciclient "github.com/KYVENetwork/cometbft/v100/abci/client"
"github.com/KYVENetwork/cometbft/v100/abci/example/kvstore"
abciserver "github.com/KYVENetwork/cometbft/v100/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/cometbft/cometbft/abci/client"
"github.com/cometbft/cometbft/abci/types"
cmtrand "github.com/cometbft/cometbft/internal/rand"
abcicli "github.com/KYVENetwork/cometbft/v100/abci/client"
"github.com/KYVENetwork/cometbft/v100/abci/types"
cmtrand "github.com/KYVENetwork/cometbft/v100/internal/rand"
)

func InitChain(ctx context.Context, client abcicli.Client) error {
Expand Down
4 changes: 2 additions & 2 deletions abci/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/cosmos/gogoproto/proto"

pb "github.com/cometbft/cometbft/api/cometbft/abci/v1"
"github.com/cometbft/cometbft/libs/protoio"
pb "github.com/KYVENetwork/cometbft/v100/api/cometbft/abci/v1"

Check failure on line 9 in abci/types/messages.go

View workflow job for this annotation

GitHub Actions / release

no required module provides package github.com/KYVENetwork/cometbft/v100/api/cometbft/abci/v1; to add it:
"github.com/KYVENetwork/cometbft/v100/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 @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cmtproto "github.com/KYVENetwork/cometbft/v100/api/cometbft/types/v1"
)

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.

2 changes: 1 addition & 1 deletion abci/types/pubkey.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package types

import (
"github.com/cometbft/cometbft/crypto"
"github.com/KYVENetwork/cometbft/v100/crypto"
)

// NewValidatorUpdate creates a new ValidatorUpdate from the given public
Expand Down
2 changes: 1 addition & 1 deletion abci/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/cosmos/gogoproto/grpc"

v1 "github.com/cometbft/cometbft/api/cometbft/abci/v1"
v1 "github.com/KYVENetwork/cometbft/v100/api/cometbft/abci/v1"
)

type (
Expand Down
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/cometbft/cometbft/abci/types"
"github.com/cometbft/cometbft/crypto/merkle"
abci "github.com/KYVENetwork/cometbft/v100/abci/types"
"github.com/KYVENetwork/cometbft/v100/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/cometbft/cometbft/version"
"github.com/KYVENetwork/cometbft/v100/version"
)

// TODO: eliminate this after some version refactor
Expand Down
4 changes: 2 additions & 2 deletions api/cometbft/abci/v1/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 api/cometbft/abci/v1beta1/types.pb.go

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

Loading

0 comments on commit 26fd024

Please sign in to comment.