From 567b9f500db8055289365ea63450cefe4b135077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zdyba=C5=82?= Date: Mon, 23 Jan 2023 15:44:49 +0100 Subject: [PATCH] Rebrand to Rollkit (#703) Resolves #704. --- .../docker-build-ethermint-debug.yml | 2 +- .golangci.yml | 2 +- CONTRIBUTING.md | 4 +- NOTICE | 4 +- README.md | 20 +- block/manager.go | 18 +- block/manager_test.go | 10 +- config/config.go | 26 +- config/config_test.go | 2 +- config/defaults.go | 2 +- conv/abci/block.go | 18 +- conv/addr.go | 2 +- conv/addr_test.go | 8 +- conv/config.go | 4 +- conv/config_test.go | 2 +- da/celestia/celestia.go | 9 +- da/celestia/mock/server.go | 11 +- da/da.go | 8 +- da/grpc/grpc.go | 8 +- da/grpc/mockserv/cmd/main.go | 8 +- da/grpc/mockserv/mockserv.go | 12 +- da/mock/mock.go | 8 +- da/registry/registry.go | 8 +- da/test/da_test.go | 24 +- docs/lazy-adr/adr-001-node-interface.md | 7 +- docs/lazy-adr/adr-003-peer-discovery.md | 3 +- docs/lazy-adr/adr-004-core-types.md | 9 +- docs/lazy-adr/adr-006-da-interface.md | 7 +- .../adr-007-header-commit-to-shares.md | 4 +- .../adr-008-mempool-optimint-light-client.md | 4 +- .../specification/dependency-graph.drawio.svg | 36 +- ...y-graph.md => rollkit-dependency-graph.md} | 2 +- go.mod | 2 +- mempool/v1/mempool.go | 4 +- mempool/v1/mempool_bench_test.go | 2 +- mempool/v1/mempool_test.go | 2 +- node/full.go | 32 +- node/full_client.go | 18 +- node/full_client_test.go | 10 +- node/full_node_integration_test.go | 26 +- node/full_node_test.go | 6 +- node/light_client.go | 4 +- node/node.go | 2 +- p2p/client.go | 4 +- p2p/client_test.go | 4 +- p2p/gossip.go | 2 +- p2p/utils_test.go | 4 +- proto/dalc/dalc.proto | 8 +- proto/protoc.sh | 2 +- .../rollmint.proto => rollkit/rollkit.proto} | 4 +- proto/{rollmint => rollkit}/state.proto | 4 +- rpc/json/handler.go | 2 +- rpc/json/service.go | 2 +- rpc/json/service_test.go | 6 +- rpc/json/ws.go | 4 +- rpc/server.go | 4 +- state/executor.go | 30 +- state/executor_test.go | 8 +- state/indexer/block/kv/kv.go | 4 +- state/indexer/block/kv/kv_test.go | 4 +- state/indexer/block/kv/util.go | 2 +- state/indexer/block/null/null.go | 2 +- state/txindex/indexer_service.go | 2 +- state/txindex/indexer_service_test.go | 8 +- state/txindex/kv/kv.go | 6 +- state/txindex/kv/kv_bench_test.go | 2 +- state/txindex/kv/kv_test.go | 4 +- state/txindex/null/null.go | 2 +- store/store.go | 4 +- store/store_test.go | 4 +- store/types.go | 2 +- types/block.go | 4 +- types/header.go | 2 +- types/pb/dalc/dalc.pb.go | 86 +-- .../rollmint.pb.go => rollkit/rollkit.pb.go} | 511 +++++++++--------- types/pb/{rollmint => rollkit}/state.pb.go | 86 +-- types/serialization.go | 2 +- types/serialization_test.go | 4 +- types/state.go | 2 +- 79 files changed, 619 insertions(+), 612 deletions(-) rename docs/specification/{rollmint-dependency-graph.md => rollkit-dependency-graph.md} (94%) rename proto/{rollmint/rollmint.proto => rollkit/rollkit.proto} (96%) rename proto/{rollmint => rollkit}/state.proto (92%) rename types/pb/{rollmint/rollmint.pb.go => rollkit/rollkit.pb.go} (80%) rename types/pb/{rollmint => rollkit}/state.pb.go (86%) diff --git a/.github/workflows/docker-build-ethermint-debug.yml b/.github/workflows/docker-build-ethermint-debug.yml index 47cd3edca52..88e720c2248 100644 --- a/.github/workflows/docker-build-ethermint-debug.yml +++ b/.github/workflows/docker-build-ethermint-debug.yml @@ -43,7 +43,7 @@ jobs: cp -R rollmint ethermint cd ethermint rm -rf .git - go mod edit -replace=github.com/celestiaorg/rollmint=./rollmint + go mod edit -replace=github.com/rollkit/rollkit=./rollmint go mod tidy -compat=1.17 -e - name: Docker meta id: meta diff --git a/.golangci.yml b/.golangci.yml index ad909406439..287031352d9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -33,4 +33,4 @@ linters-settings: - name: package-comments disabled: true goimports: - local-prefixes: github.com/celestiaorg + local-prefixes: github.com/rollkit diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 91a8399c2d1..84dfddb62f3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ ## Finding an issue -GitHub issues are used to track the work associated with rollmint. That's where you can find things to work on. +GitHub issues are used to track the work associated with Rollkit. That's where you can find things to work on. 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: @@ -11,7 +11,7 @@ Issue labels have been used to help designate the priority, status and beginner- 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. -All issue labels can be [found here](https://github.com/celestiaorg/rollmint/labels) for you to explore and see what peaks your interest. +All issue labels can be [found here](https://github.com/rollkit/rollkit/labels) for you to explore and see what peaks your interest. ## Contribution process diff --git a/NOTICE b/NOTICE index 17619ce3f17..ad860e38744 100644 --- a/NOTICE +++ b/NOTICE @@ -1,2 +1,2 @@ -rollmint -Copyright 2021-2022 Celestia Labs +Rollkit +Copyright 2021-2023 Celestia Labs diff --git a/README.md b/README.md index dd6b5ce603e..196b5c71a1e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# rollmint +# Rollkit ABCI-client implementation for Optimistic Rollups. -[![build-and-test](https://github.com/celestiaorg/rollmint/actions/workflows/test.yml/badge.svg)](https://github.com/celestiaorg/rollmint/actions/workflows/test.yml) -[![golangci-lint](https://github.com/celestiaorg/rollmint/actions/workflows/lint.yml/badge.svg)](https://github.com/celestiaorg/rollmint/actions/workflows/lint.yml) -[![Go Report Card](https://goreportcard.com/badge/github.com/celestiaorg/rollmint)](https://goreportcard.com/report/github.com/celestiaorg/rollmint) -[![codecov](https://codecov.io/gh/celestiaorg/rollmint/branch/main/graph/badge.svg?token=CWGA4RLDS9)](https://codecov.io/gh/celestiaorg/rollmint) -[![GoDoc](https://godoc.org/github.com/celestiaorg/rollmint?status.svg)](https://godoc.org/github.com/celestiaorg/rollmint) +[![build-and-test](https://github.com/rollkit/rollkit/actions/workflows/test.yml/badge.svg)](https://github.com/rollkit/rollkit/actions/workflows/test.yml) +[![golangci-lint](https://github.com/rollkit/rollkit/actions/workflows/lint.yml/badge.svg)](https://github.com/rollkit/rollkit/actions/workflows/lint.yml) +[![Go Report Card](https://goreportcard.com/badge/github.com/rollkit/rollkit)](https://goreportcard.com/report/github.com/rollkit/rollkit) +[![codecov](https://codecov.io/gh/rollkit/rollkit/branch/main/graph/badge.svg?token=CWGA4RLDS9)](https://codecov.io/gh/rollkit/rollkit) +[![GoDoc](https://godoc.org/github.com/rollkit/rollkit?status.svg)](https://godoc.org/github.com/rollkit/rollkit) [![Twitter Follow](https://img.shields.io/twitter/follow/CelestiaOrg?style=social)](https://twitter.com/CelestiaOrg) ## Building From Source @@ -16,8 +16,8 @@ Requires Go version >= 1.19. To build: ```sh -git clone https://github.com/celestiaorg/rollmint.git -cd rollmint +git clone https://github.com/rollkit/rollkit.git +cd rollkit go build -v ./... ``` @@ -38,7 +38,7 @@ To regenerate protobuf types: We welcome your contributions! Everyone is welcome to contribute, whether it's in the form of code, documentation, bug reports, feature requests, or anything else. -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! +If you're looking for issues to work on, try looking at the [good first issue list](https://github.com/rollkit/rollkit/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! See [the contributing guide](./CONTRIBUTING.md) for more details. @@ -46,7 +46,7 @@ Please join our [Community Discord](https://discord.com/invite/YsnTPcSfWQ) to as ## Dependency Graph -To see our progress and a possible future of rollmint visit our [Dependency Graph](./docs/specification/rollmint-dependency-graph.md). +To see our progress and a possible future of Rollkit visit our [Dependency Graph](./docs/specification/rollkit-dependency-graph.md). ## Code of Conduct diff --git a/block/manager.go b/block/manager.go index 1b499b9e1f6..d7987158534 100644 --- a/block/manager.go +++ b/block/manager.go @@ -15,19 +15,19 @@ import ( tmtypes "github.com/tendermint/tendermint/types" "go.uber.org/multierr" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/mempool" - "github.com/celestiaorg/rollmint/state" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/mempool" + "github.com/rollkit/rollkit/state" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) // defaultDABlockTime is used only if DABlockTime is not configured for manager const defaultDABlockTime = 30 * time.Second -// maxSubmitAttempts defines how many times rollmint will re-try to publish block to DA layer. +// maxSubmitAttempts defines how many times Rollkit will re-try to publish block to DA layer. // This is temporary solution. It will be removed in future versions. const maxSubmitAttempts = 30 @@ -536,7 +536,7 @@ func (m *Manager) submitBlockToDA(ctx context.Context, block *types.Block) error for attempt := 1; ctx.Err() == nil && !submitted && attempt <= maxSubmitAttempts; attempt++ { res := m.dalc.SubmitBlock(ctx, block) if res.Code == da.StatusSuccess { - m.logger.Info("successfully submitted rollmint block to DA layer", "rollmintHeight", block.Header.Height, "daHeight", res.DAHeight) + m.logger.Info("successfully submitted Rollkit block to DA layer", "rollkitHeight", block.Header.Height, "daHeight", res.DAHeight) submitted = true } else { m.logger.Error("DA layer submission failed", "error", res.Message, "attempt", attempt) diff --git a/block/manager_test.go b/block/manager_test.go index 24bb05258d3..beab3745976 100644 --- a/block/manager_test.go +++ b/block/manager_test.go @@ -13,11 +13,11 @@ import ( "github.com/tendermint/tendermint/libs/log" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/da" - mockda "github.com/celestiaorg/rollmint/da/mock" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/da" + mockda "github.com/rollkit/rollkit/da/mock" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) func TestInitialState(t *testing.T) { diff --git a/config/config.go b/config/config.go index 1b9b1209968..a3b3f4ac1d3 100644 --- a/config/config.go +++ b/config/config.go @@ -7,29 +7,29 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) const ( - flagAggregator = "rollmint.aggregator" - flagDALayer = "rollmint.da_layer" - flagDAConfig = "rollmint.da_config" - flagBlockTime = "rollmint.block_time" - flagDABlockTime = "rollmint.da_block_time" - flagDAStartHeight = "rollmint.da_start_height" - flagNamespaceID = "rollmint.namespace_id" - flagFraudProofs = "rollmint.experimental_insecure_fraud_proofs" - flagLight = "rollmint.light" + flagAggregator = "rollkit.aggregator" + flagDALayer = "rollkit.da_layer" + flagDAConfig = "rollkit.da_config" + flagBlockTime = "rollkit.block_time" + flagDABlockTime = "rollkit.da_block_time" + flagDAStartHeight = "rollkit.da_start_height" + flagNamespaceID = "rollkit.namespace_id" + flagFraudProofs = "rollkit.experimental_insecure_fraud_proofs" + flagLight = "rollkit.light" ) -// NodeConfig stores rollmint node configuration. +// NodeConfig stores Rollkit node configuration. type NodeConfig struct { // parameters below are translated from existing config RootDir string DBPath string P2P P2PConfig RPC RPCConfig - // parameters below are rollmint specific and read from config + // parameters below are Rollkit specific and read from config Aggregator bool `mapstructure:"aggregator"` BlockManagerConfig `mapstructure:",squash"` DALayer string `mapstructure:"da_layer"` @@ -70,7 +70,7 @@ func (nc *NodeConfig) GetViperConfig(v *viper.Viper) error { return nil } -// AddFlags adds rollmint specific configuration options to cobra Command. +// AddFlags adds Rollkit specific configuration options to cobra Command. // // This function is called in cosmos-sdk. func AddFlags(cmd *cobra.Command) { diff --git a/config/config_test.go b/config/config_test.go index ee392e349ae..8cb335f88d0 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -8,7 +8,7 @@ import ( "github.com/spf13/viper" "github.com/stretchr/testify/assert" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) func TestViperAndCobra(t *testing.T) { diff --git a/config/defaults.go b/config/defaults.go index 37af3aac623..4591e35ecab 100644 --- a/config/defaults.go +++ b/config/defaults.go @@ -3,7 +3,7 @@ package config import ( "time" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) const ( diff --git a/conv/abci/block.go b/conv/abci/block.go index 62f4345e14a..a20ebd52cf2 100644 --- a/conv/abci/block.go +++ b/conv/abci/block.go @@ -6,11 +6,11 @@ import ( tmversion "github.com/tendermint/tendermint/proto/tendermint/version" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) -// ToABCIHeaderPB converts rollmint header to Header format defined in ABCI. -// Caller should fill all the fields that are not available in rollmint header (like ChainID). +// ToABCIHeaderPB converts Rollkit header to Header format defined in ABCI. +// Caller should fill all the fields that are not available in Rollkit header (like ChainID). func ToABCIHeaderPB(header *types.Header) (tmproto.Header, error) { return tmproto.Header{ Version: tmversion.Consensus{ @@ -39,8 +39,8 @@ func ToABCIHeaderPB(header *types.Header) (tmproto.Header, error) { }, nil } -// ToABCIHeader converts rollmint header to Header format defined in ABCI. -// Caller should fill all the fields that are not available in rollmint header (like ChainID). +// ToABCIHeader converts Rollkit header to Header format defined in ABCI. +// Caller should fill all the fields that are not available in Rollkit header (like ChainID). func ToABCIHeader(header *types.Header) (tmtypes.Header, error) { return tmtypes.Header{ Version: tmversion.Consensus{ @@ -69,7 +69,7 @@ func ToABCIHeader(header *types.Header) (tmtypes.Header, error) { }, nil } -// ToABCIBlock converts rollmint block into block format defined by ABCI. +// ToABCIBlock converts Rolkit block into block format defined by ABCI. // Returned block should pass `ValidateBasic`. func ToABCIBlock(block *types.Block) (*tmtypes.Block, error) { abciHeader, err := ToABCIHeader(&block.Header) @@ -97,7 +97,7 @@ func ToABCIBlock(block *types.Block) (*tmtypes.Block, error) { return &abciBlock, nil } -// ToABCIBlockMeta converts rollmint block into BlockMeta format defined by ABCI +// ToABCIBlockMeta converts Rollkit block into BlockMeta format defined by ABCI func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error) { tmblock, err := ToABCIBlock(block) if err != nil { @@ -113,8 +113,8 @@ func ToABCIBlockMeta(block *types.Block) (*tmtypes.BlockMeta, error) { }, nil } -// ToABCICommit converts rollmint commit into commit format defined by ABCI. -// This function only converts fields that are available in rollmint commit. +// ToABCICommit converts Rollkit commit into commit format defined by ABCI. +// This function only converts fields that are available in Rollkit commit. // Other fields (especially ValidatorAddress and Timestamp of Signature) has to be filled by caller. func ToABCICommit(commit *types.Commit) *tmtypes.Commit { tmCommit := tmtypes.Commit{ diff --git a/conv/addr.go b/conv/addr.go index f9f41853fa5..16f1c0a979a 100644 --- a/conv/addr.go +++ b/conv/addr.go @@ -5,7 +5,7 @@ import ( "github.com/multiformats/go-multiaddr" - "github.com/celestiaorg/rollmint/config" + "github.com/rollkit/rollkit/config" ) // TranslateAddresses updates conf by changing Cosmos-style addresses to Multiaddr format. diff --git a/conv/addr_test.go b/conv/addr_test.go index e868d17a3ca..775ea3fcaca 100644 --- a/conv/addr_test.go +++ b/conv/addr_test.go @@ -7,7 +7,7 @@ import ( "github.com/multiformats/go-multiaddr" "github.com/stretchr/testify/assert" - "github.com/celestiaorg/rollmint/config" + "github.com/rollkit/rollkit/config" ) func TestTranslateAddresses(t *testing.T) { @@ -15,7 +15,7 @@ func TestTranslateAddresses(t *testing.T) { invalidCosmos := "foobar" validCosmos := "127.0.0.1:1234" - validRollmint := "/ip4/127.0.0.1/tcp/1234" + validRollkit := "/ip4/127.0.0.1/tcp/1234" cases := []struct { name string @@ -27,13 +27,13 @@ func TestTranslateAddresses(t *testing.T) { { "valid listen address", config.NodeConfig{P2P: config.P2PConfig{ListenAddress: validCosmos}}, - config.NodeConfig{P2P: config.P2PConfig{ListenAddress: validRollmint}}, + config.NodeConfig{P2P: config.P2PConfig{ListenAddress: validRollkit}}, "", }, { "valid seed address", config.NodeConfig{P2P: config.P2PConfig{Seeds: validCosmos + "," + validCosmos}}, - config.NodeConfig{P2P: config.P2PConfig{Seeds: validRollmint + "," + validRollmint}}, + config.NodeConfig{P2P: config.P2PConfig{Seeds: validRollkit + "," + validRollkit}}, "", }, { diff --git a/conv/config.go b/conv/config.go index 0ec06669f1d..26c974eb740 100644 --- a/conv/config.go +++ b/conv/config.go @@ -3,10 +3,10 @@ package conv import ( tmcfg "github.com/tendermint/tendermint/config" - "github.com/celestiaorg/rollmint/config" + "github.com/rollkit/rollkit/config" ) -// GetNodeConfig translates Tendermint's configuration into rollmint configuration. +// GetNodeConfig translates Tendermint's configuration into Rollkit configuration. // // This method only translates configuration, and doesn't verify it. If some option is missing in Tendermint's // config, it's skipped during translation. diff --git a/conv/config_test.go b/conv/config_test.go index 3c0d958cea1..d70709da74e 100644 --- a/conv/config_test.go +++ b/conv/config_test.go @@ -7,7 +7,7 @@ import ( tmcfg "github.com/tendermint/tendermint/config" - "github.com/celestiaorg/rollmint/config" + "github.com/rollkit/rollkit/config" ) func TestGetNodeConfig(t *testing.T) { diff --git a/da/celestia/celestia.go b/da/celestia/celestia.go index 0ea10862af4..ee0f293cb6d 100644 --- a/da/celestia/celestia.go +++ b/da/celestia/celestia.go @@ -10,10 +10,11 @@ import ( ds "github.com/ipfs/go-datastore" "github.com/celestiaorg/go-cnc" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/types" - pb "github.com/celestiaorg/rollmint/types/pb/rollmint" + + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/types" + pb "github.com/rollkit/rollkit/types/pb/rollkit" ) // DataAvailabilityLayerClient use celestia-node public API. diff --git a/da/celestia/mock/server.go b/da/celestia/mock/server.go index 55a665f8980..d505b0c1930 100644 --- a/da/celestia/mock/server.go +++ b/da/celestia/mock/server.go @@ -13,11 +13,12 @@ import ( mux2 "github.com/gorilla/mux" "github.com/celestiaorg/go-cnc" - "github.com/celestiaorg/rollmint/da" - mockda "github.com/celestiaorg/rollmint/da/mock" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + + "github.com/rollkit/rollkit/da" + mockda "github.com/rollkit/rollkit/da/mock" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) // Server mocks celestia-node HTTP API. diff --git a/da/da.go b/da/da.go index b7cd3648708..9e8ce958eb5 100644 --- a/da/da.go +++ b/da/da.go @@ -5,13 +5,13 @@ import ( ds "github.com/ipfs/go-datastore" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/types" ) // StatusCode is a type for DA layer return status. // TODO: define an enum of different non-happy-path cases -// that might need to be handled by rollmint independent of +// that might need to be handled by Rollkit independent of // the underlying DA chain. type StatusCode uint64 @@ -37,7 +37,7 @@ type BaseResult struct { type ResultSubmitBlock struct { BaseResult // Not sure if this needs to be bubbled up to other - // parts of rollmint. + // parts of Rollkit. // Hash hash.Hash } diff --git a/da/grpc/grpc.go b/da/grpc/grpc.go index 40b278372f6..83076e2ed59 100644 --- a/da/grpc/grpc.go +++ b/da/grpc/grpc.go @@ -9,10 +9,10 @@ import ( ds "github.com/ipfs/go-datastore" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/types" - "github.com/celestiaorg/rollmint/types/pb/dalc" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/types" + "github.com/rollkit/rollkit/types/pb/dalc" ) // DataAvailabilityLayerClient is a generic client that proxies all DA requests via gRPC. diff --git a/da/grpc/mockserv/cmd/main.go b/da/grpc/mockserv/cmd/main.go index a1dd93aabf3..6d5d2b36500 100644 --- a/da/grpc/mockserv/cmd/main.go +++ b/da/grpc/mockserv/cmd/main.go @@ -9,9 +9,9 @@ import ( tmlog "github.com/tendermint/tendermint/libs/log" - grpcda "github.com/celestiaorg/rollmint/da/grpc" - "github.com/celestiaorg/rollmint/da/grpc/mockserv" - "github.com/celestiaorg/rollmint/store" + grpcda "github.com/rollkit/rollkit/da/grpc" + "github.com/rollkit/rollkit/da/grpc/mockserv" + "github.com/rollkit/rollkit/store" ) func main() { @@ -22,7 +22,7 @@ func main() { flag.StringVar(&conf.Host, "host", "0.0.0.0", "listening address") flag.Parse() - kv, err := store.NewDefaultKVStore(".", "db", "rollmint") + kv, err := store.NewDefaultKVStore(".", "db", "rollkit") if err != nil { log.Panic(err) } diff --git a/da/grpc/mockserv/mockserv.go b/da/grpc/mockserv/mockserv.go index 69d0f1601e3..b502c6901dd 100644 --- a/da/grpc/mockserv/mockserv.go +++ b/da/grpc/mockserv/mockserv.go @@ -7,11 +7,11 @@ import ( tmlog "github.com/tendermint/tendermint/libs/log" "google.golang.org/grpc" - grpcda "github.com/celestiaorg/rollmint/da/grpc" - "github.com/celestiaorg/rollmint/da/mock" - "github.com/celestiaorg/rollmint/types" - "github.com/celestiaorg/rollmint/types/pb/dalc" - "github.com/celestiaorg/rollmint/types/pb/rollmint" + grpcda "github.com/rollkit/rollkit/da/grpc" + "github.com/rollkit/rollkit/da/mock" + "github.com/rollkit/rollkit/types" + "github.com/rollkit/rollkit/types/pb/dalc" + "github.com/rollkit/rollkit/types/pb/rollkit" ) // GetServer creates and returns gRPC server instance. @@ -65,7 +65,7 @@ func (m *mockImpl) CheckBlockAvailability(ctx context.Context, request *dalc.Che func (m *mockImpl) RetrieveBlocks(ctx context.Context, request *dalc.RetrieveBlocksRequest) (*dalc.RetrieveBlocksResponse, error) { resp := m.mock.RetrieveBlocks(ctx, request.DAHeight) - blocks := make([]*rollmint.Block, len(resp.Blocks)) + blocks := make([]*rollkit.Block, len(resp.Blocks)) for i := range resp.Blocks { blocks[i] = resp.Blocks[i].ToProto() } diff --git a/da/mock/mock.go b/da/mock/mock.go index 90a3d937988..b8cb35a9ce4 100644 --- a/da/mock/mock.go +++ b/da/mock/mock.go @@ -9,10 +9,10 @@ import ( ds "github.com/ipfs/go-datastore" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) // DataAvailabilityLayerClient is intended only for usage in tests. diff --git a/da/registry/registry.go b/da/registry/registry.go index 650866a4c1d..0279f316e26 100644 --- a/da/registry/registry.go +++ b/da/registry/registry.go @@ -1,10 +1,10 @@ package registry import ( - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/da/celestia" - "github.com/celestiaorg/rollmint/da/grpc" - "github.com/celestiaorg/rollmint/da/mock" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/da/celestia" + "github.com/rollkit/rollkit/da/grpc" + "github.com/rollkit/rollkit/da/mock" ) // this is a central registry for all Data Availability Layer Clients diff --git a/da/test/da_test.go b/da/test/da_test.go index eee4369dc63..d6638d0894d 100644 --- a/da/test/da_test.go +++ b/da/test/da_test.go @@ -16,16 +16,16 @@ import ( tmlog "github.com/tendermint/tendermint/libs/log" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/da/celestia" - cmock "github.com/celestiaorg/rollmint/da/celestia/mock" - grpcda "github.com/celestiaorg/rollmint/da/grpc" - "github.com/celestiaorg/rollmint/da/grpc/mockserv" - "github.com/celestiaorg/rollmint/da/mock" - "github.com/celestiaorg/rollmint/da/registry" - "github.com/celestiaorg/rollmint/log/test" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/da/celestia" + cmock "github.com/rollkit/rollkit/da/celestia/mock" + grpcda "github.com/rollkit/rollkit/da/grpc" + "github.com/rollkit/rollkit/da/grpc/mockserv" + "github.com/rollkit/rollkit/da/mock" + "github.com/rollkit/rollkit/da/registry" + "github.com/rollkit/rollkit/log/test" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) const mockDaBlockTime = 100 * time.Millisecond @@ -110,7 +110,7 @@ func doTestDALC(t *testing.T, dalc da.DataAvailabilityLayerClient) { h2 := resp.DAHeight assert.Equal(da.StatusSuccess, resp.Code) - // wait a bit more than mockDaBlockTime, so rollmint blocks can be "included" in mock block + // wait a bit more than mockDaBlockTime, so Rollkit blocks can be "included" in mock block time.Sleep(mockDaBlockTime + 20*time.Millisecond) check := dalc.CheckBlockAvailability(ctx, h1) @@ -260,7 +260,7 @@ func getRandomBlock(height uint64, nTxs int) *types.Block { block.Data.IntermediateStateRoots.RawRootsList[i] = getRandomBytes(32) } - // TODO(tzdybal): see https://github.com/celestiaorg/rollmint/issues/143 + // TODO(tzdybal): see https://github.com/rollkit/rollkit/issues/143 if nTxs == 0 { block.Data.Txs = nil block.Data.IntermediateStateRoots.RawRootsList = nil diff --git a/docs/lazy-adr/adr-001-node-interface.md b/docs/lazy-adr/adr-001-node-interface.md index acb8d853229..f7b6947f163 100644 --- a/docs/lazy-adr/adr-001-node-interface.md +++ b/docs/lazy-adr/adr-001-node-interface.md @@ -1,9 +1,10 @@ -# Using rollmint `Node` as replacement of Tendermint `Node` +# Using Rollkit `Node` as replacement of Tendermint `Node` ## Changelog - 26.02.2021: Initial Draft - 29.09.2022: Rename Optimint to rollmint +- 22.01.2023: Rename rollmint to Rollkit Replacing on the `Node` level gives much flexibility. Still, significant amount of code can be reused, and there is no need to refactor lazyledger-core. Cosmos SDK is tigtly coupled with Tendermint with regards to node creation, RPC, app initialization, etc. De-coupling requires big refactoring of cosmos-sdk. @@ -33,7 +34,7 @@ We don't need to introduce common interface `Node`s, because the plan is to use - Pros: - May be possible to avoid Tendermint issues - - Should be possible to avoid dependency on Tendermint in rollmint + - Should be possible to avoid dependency on Tendermint in Rollkit - Changes probably limited to cosmos-sdk (not required in tendermint/lazyledger-core) - Cons: - Reinventing the wheel @@ -51,4 +52,4 @@ easier. ## Development -`cosmos-sdk-rollmit` is a repository dedicated for maintenance of rollmint-enabled version of Cosmos SDK. +`cosmos-sdk-rollmit` is a repository dedicated for maintenance of Rollkit-enabled version of Cosmos SDK. diff --git a/docs/lazy-adr/adr-003-peer-discovery.md b/docs/lazy-adr/adr-003-peer-discovery.md index 632dced7658..54f0f958278 100644 --- a/docs/lazy-adr/adr-003-peer-discovery.md +++ b/docs/lazy-adr/adr-003-peer-discovery.md @@ -4,12 +4,13 @@ - 31.03.2021: Initial Draft - 29.09.2022: Rename Optimint to rollmint +- 22.01.2023: Rename rollmint to Rollkit Libp2p provides multiple ways to discover peers (DHT, mDNS, PubSub peer exchange). Currently there are no plans to support mDNS (as it's limited to local networks). ## Proposed network architecture -1. There will be a set of well-known, application-agnostic seed nodes. Every rollmint client will be able to connect to such node, addresses will be saved in configuration. +1. There will be a set of well-known, application-agnostic seed nodes. Every Rollkit client will be able to connect to such node, addresses will be saved in configuration. - This does not limit applications as they can still create independent networks with separate set of seed nodes. 2. Nodes in the network will serve DHT. It will be used for active peer discovery. Client of each ORU network will be able to find other peers in this particular network. - All nodes will cooperate on the same DHT. diff --git a/docs/lazy-adr/adr-004-core-types.md b/docs/lazy-adr/adr-004-core-types.md index 133e8e91a41..4606013d673 100644 --- a/docs/lazy-adr/adr-004-core-types.md +++ b/docs/lazy-adr/adr-004-core-types.md @@ -4,10 +4,11 @@ - 19.04.2021: Initial Draft - 29.09.2022: Rename Optimint to rollmint +- 22.01.2023: Rename rollmint to Rollkit ## Context -This document describes the core data structures of any rollmint-powered blockchain. +This document describes the core data structures of any Rollkit-powered blockchain. ## Alternative Approaches @@ -28,7 +29,7 @@ Where such tradeoffs are made, we explicitly comment on them. ### Transactions -In rollmint, like in Tendermint, Transactions are just an opaque slice of bytes: +In Rollkit, like in Tendermint, Transactions are just an opaque slice of bytes: ```go type Tx []byte @@ -130,7 +131,7 @@ This could be seen as a state transition and the ConsensusHash in the header wou That said, none of the existing default Cosmos-SDK modules actually make use of this functionality though. Hence, we can treat the ConsensusParams as constants (for the same app version). We clearly need to communicate this to optimistic rollup chain developers. -Ideally, we should ensure this programmatically to guarantee that this assumption always holds inside rollmint. +Ideally, we should ensure this programmatically to guarantee that this assumption always holds inside Rollkit. The ConsensusParams have the exact same structure as in Tendermint. For the sake of self-containedness we still list them here: @@ -213,4 +214,4 @@ For finishing the implementation these items need to be tackled at least: ## References -- +- diff --git a/docs/lazy-adr/adr-006-da-interface.md b/docs/lazy-adr/adr-006-da-interface.md index 9fe3a03935d..e95d30babac 100644 --- a/docs/lazy-adr/adr-006-da-interface.md +++ b/docs/lazy-adr/adr-006-da-interface.md @@ -6,10 +6,11 @@ - 2021.06.03: Init method added - 2021.07.09: Added CheckBlockAvailability method, added KVStore to Init method, added missing result types - 29.09.2022: Rename Optimint to rollmint +- 22.01.2023: Rename rollmint to Rollkit ## Context -rollmint requires data availability layer. Different implementations are expected. +Rollkit requires data availability layer. Different implementations are expected. ## Alternative Approaches @@ -50,7 +51,7 @@ type BlockRetriever interface { } // TODO define an enum of different non-happy-path cases -// that might need to be handled by rollmint independent of +// that might need to be handled by Rollkit independent of // the underlying DA chain. type StatusCode uint64 @@ -73,7 +74,7 @@ type DAResult struct { type ResultSubmitBlock struct { DAResult // Not sure if this needs to be bubbled up to other - // parts of rollmint. + // parts of Rollkit. // Hash hash.Hash } diff --git a/docs/lazy-adr/adr-007-header-commit-to-shares.md b/docs/lazy-adr/adr-007-header-commit-to-shares.md index ec020e896e8..51d15762a4c 100644 --- a/docs/lazy-adr/adr-007-header-commit-to-shares.md +++ b/docs/lazy-adr/adr-007-header-commit-to-shares.md @@ -10,7 +10,7 @@ 1. [PayForMessaage transactions](https://github.com/celestiaorg/celestia-specs/blob/master/src/specs/data_structures.md#signedtransactiondatapayformessage) include a commitment of roots of subtrees of the Celestia data root. This is a requirement for compact proofs that a message was or was not included correctly. 1. [Over the wire](https://github.com/celestiaorg/celestia-specs/blob/master/src/specs/networking.md#wiretxpayformessage), PayForMessage transactions include (potentially) multiple signatures for the same message with different sizes of Celestia block, to allow for [non-interactive message inclusion](https://github.com/celestiaorg/celestia-specs/blob/master/src/rationale/message_block_layout.md#non-interactive-default-rules). -Rollup blocks must follow a similar strategy to the above. Specifically, the data root in rollup block headers [must commit to subtree roots in the Celestia data root](https://github.com/celestiaorg/rollmint/issues/133), otherwise rollup nodes would not have any guarantees that the data behind the data root in a rollup block header is available. +Rollup blocks must follow a similar strategy to the above. Specifically, the data root in rollup block headers [must commit to subtree roots in the Celestia data root](https://github.com/rollkit/rollkit/issues/133), otherwise rollup nodes would not have any guarantees that the data behind the data root in a rollup block header is available. ## Alternative Approaches @@ -70,4 +70,4 @@ TODO ## References -1. +1. diff --git a/docs/lazy-adr/adr-008-mempool-optimint-light-client.md b/docs/lazy-adr/adr-008-mempool-optimint-light-client.md index 00cb3ff5968..2052b2b37df 100644 --- a/docs/lazy-adr/adr-008-mempool-optimint-light-client.md +++ b/docs/lazy-adr/adr-008-mempool-optimint-light-client.md @@ -3,10 +3,12 @@ ## Changelog - 20.09.2022: Initial Draft +- 29.09.2022: Rename Optimint to rollmint +- 22.01.2023: Rename rollmint to Rollkit ## Context -Rollmint Light Clients cannot validate transactions without a state. Therefore Light Clients should not gossip incoming transactions, and the mempool can be disabled. +Rollkit Light Clients cannot validate transactions without a state. Therefore Light Clients should not gossip incoming transactions, and the mempool can be disabled. ### Explanation diff --git a/docs/specification/dependency-graph.drawio.svg b/docs/specification/dependency-graph.drawio.svg index f23136a90ae..4daea5c1afb 100644 --- a/docs/specification/dependency-graph.drawio.svg +++ b/docs/specification/dependency-graph.drawio.svg @@ -12,7 +12,7 @@
Header Interface
- + 574
@@ -86,9 +86,9 @@
- New Rollmint Header + New Rollkit Header
- + 579
@@ -96,7 +96,7 @@
- New Rollmint Header... + New Rollkit Header... @@ -136,7 +136,7 @@ Celestia Message Inclusion Proofs
- + 594
@@ -159,13 +159,13 @@
- P2P Rollmint Headersync + P2P Rollkit Headersync
- P2P Rollmint Headers... + P2P Rollkit Headers... @@ -243,7 +243,7 @@
- Asynchronous Celestia/Rollmint + Asynchronous Celestia/Rollkit
@@ -264,9 +264,9 @@
- Rollmint Light Clients + Rollkit Light Clients
- + 362
@@ -274,7 +274,7 @@
- Rollmint Light Clien... + Rollkit Light Clien... @@ -308,7 +308,7 @@
State Tracing
- + 514
@@ -333,7 +333,7 @@
Fraud Proof generation
- + 514
@@ -392,7 +392,7 @@
Start minimal cosmos-sdk with State
- + 571
@@ -556,13 +556,13 @@
- Rollmint Frontend + Rollkit Frontend
- Rollmint Frontend + Rollkit Frontend @@ -670,13 +670,13 @@
- Rollmint Transaction Flow + Rollkit Transaction Flow
- Rollmint Transaction... + Rollkit Transaction... diff --git a/docs/specification/rollmint-dependency-graph.md b/docs/specification/rollkit-dependency-graph.md similarity index 94% rename from docs/specification/rollmint-dependency-graph.md rename to docs/specification/rollkit-dependency-graph.md index 6ab2e9c795d..234a30fdeda 100644 --- a/docs/specification/rollmint-dependency-graph.md +++ b/docs/specification/rollkit-dependency-graph.md @@ -1,4 +1,4 @@ -# Rollmint Dependency Graph +# Rollkit Dependency Graph ![Dependency Graph](./dependency-graph.drawio.svg) diff --git a/go.mod b/go.mod index 314e12e7772..e19e3ac4577 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/celestiaorg/rollmint +module github.com/rollkit/rollkit go 1.18 diff --git a/mempool/v1/mempool.go b/mempool/v1/mempool.go index 8359d752973..e20c107d5a3 100644 --- a/mempool/v1/mempool.go +++ b/mempool/v1/mempool.go @@ -14,8 +14,8 @@ import ( "github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/mempool" - "github.com/celestiaorg/rollmint/mempool/clist" + "github.com/rollkit/rollkit/mempool" + "github.com/rollkit/rollkit/mempool/clist" ) var _ mempool.Mempool = (*TxMempool)(nil) diff --git a/mempool/v1/mempool_bench_test.go b/mempool/v1/mempool_bench_test.go index 634c8f65e8c..196be620d7f 100644 --- a/mempool/v1/mempool_bench_test.go +++ b/mempool/v1/mempool_bench_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/celestiaorg/rollmint/mempool" + "github.com/rollkit/rollkit/mempool" ) func BenchmarkTxMempool_CheckTx(b *testing.B) { diff --git a/mempool/v1/mempool_test.go b/mempool/v1/mempool_test.go index 00c2e346401..1e4ef09ed12 100644 --- a/mempool/v1/mempool_test.go +++ b/mempool/v1/mempool_test.go @@ -23,7 +23,7 @@ import ( "github.com/tendermint/tendermint/proxy" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/mempool" + "github.com/rollkit/rollkit/mempool" ) // application extends the KV store application by overriding CheckTx to provide diff --git a/node/full.go b/node/full.go index a756e96afac..43e8485dba0 100644 --- a/node/full.go +++ b/node/full.go @@ -20,19 +20,19 @@ import ( corep2p "github.com/tendermint/tendermint/p2p" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/block" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/da" - "github.com/celestiaorg/rollmint/da/registry" - "github.com/celestiaorg/rollmint/mempool" - mempoolv1 "github.com/celestiaorg/rollmint/mempool/v1" - "github.com/celestiaorg/rollmint/p2p" - "github.com/celestiaorg/rollmint/state/indexer" - blockidxkv "github.com/celestiaorg/rollmint/state/indexer/block/kv" - "github.com/celestiaorg/rollmint/state/txindex" - "github.com/celestiaorg/rollmint/state/txindex/kv" - "github.com/celestiaorg/rollmint/store" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/block" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/da" + "github.com/rollkit/rollkit/da/registry" + "github.com/rollkit/rollkit/mempool" + mempoolv1 "github.com/rollkit/rollkit/mempool/v1" + "github.com/rollkit/rollkit/p2p" + "github.com/rollkit/rollkit/state/indexer" + blockidxkv "github.com/rollkit/rollkit/state/indexer/block/kv" + "github.com/rollkit/rollkit/state/txindex" + "github.com/rollkit/rollkit/state/txindex/kv" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) // prefixes used in KV store to separate main node data from DALC data @@ -50,7 +50,7 @@ const ( var _ Node = &FullNode{} -// FullNode represents a client node in rollmint network. +// FullNode represents a client node in Rollkit network. // It connects all the components and orchestrates their work. type FullNode struct { service.BaseService @@ -82,7 +82,7 @@ type FullNode struct { ctx context.Context } -// NewNode creates new rollmint node. +// NewNode creates new Rollkit node. func newFullNode( ctx context.Context, conf config.NodeConfig, @@ -104,7 +104,7 @@ func newFullNode( logger.Info("WARNING: working in in-memory mode") baseKV, err = store.NewDefaultInMemoryKVStore() } else { - baseKV, err = store.NewDefaultKVStore(conf.RootDir, conf.DBPath, "rollmint") + baseKV, err = store.NewDefaultKVStore(conf.RootDir, conf.DBPath, "rollkit") } if err != nil { return nil, err diff --git a/node/full_client.go b/node/full_client.go index c77f62c5fc2..6ac25224d80 100644 --- a/node/full_client.go +++ b/node/full_client.go @@ -22,9 +22,9 @@ import ( tmtypes "github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/version" - rconfig "github.com/celestiaorg/rollmint/config" - abciconv "github.com/celestiaorg/rollmint/conv/abci" - "github.com/celestiaorg/rollmint/mempool" + rconfig "github.com/rollkit/rollkit/config" + abciconv "github.com/rollkit/rollkit/conv/abci" + "github.com/rollkit/rollkit/mempool" ) const ( @@ -36,15 +36,15 @@ const ( ) var ( - // ErrConsensusStateNotAvailable is returned because rollmint doesn't use Tendermint consensus. - ErrConsensusStateNotAvailable = errors.New("consensus state not available in rollmint") + // ErrConsensusStateNotAvailable is returned because Rollkit doesn't use Tendermint consensus. + ErrConsensusStateNotAvailable = errors.New("consensus state not available in Rollkit") ) var _ rpcclient.Client = &FullClient{} // FullClient implements tendermint RPC client interface. // -// This is the type that is used in communication between cosmos-sdk app and rollmint. +// This is the type that is used in communication between cosmos-sdk app and Rollkit. type FullClient struct { *tmtypes.EventBus config *config.RPCConfig @@ -366,12 +366,12 @@ func (c *FullClient) NetInfo(ctx context.Context) (*ctypes.ResultNetInfo, error) return &res, nil } -// DumpConsensusState always returns error as there is no consensus state in rollmint. +// DumpConsensusState always returns error as there is no consensus state in Rollkit. func (c *FullClient) DumpConsensusState(ctx context.Context) (*ctypes.ResultDumpConsensusState, error) { return nil, ErrConsensusStateNotAvailable } -// ConsensusState always returns error as there is no consensus state in rollmint. +// ConsensusState always returns error as there is no consensus state in Rollkit. func (c *FullClient) ConsensusState(ctx context.Context) (*ctypes.ResultConsensusState, error) { return nil, ErrConsensusStateNotAvailable } @@ -380,7 +380,7 @@ func (c *FullClient) ConsensusState(ctx context.Context) (*ctypes.ResultConsensu // // Currently, consensus params changes are not supported and this method returns params as defined in genesis. func (c *FullClient) ConsensusParams(ctx context.Context, height *int64) (*ctypes.ResultConsensusParams, error) { - // TODO(tzdybal): implement consensus params handling: https://github.com/celestiaorg/rollmint/issues/291 + // TODO(tzdybal): implement consensus params handling: https://github.com/rollkit/rollkit/issues/291 params := c.node.GetGenesis().ConsensusParams return &ctypes.ResultConsensusParams{ BlockHeight: int64(c.normalizeHeight(height)), diff --git a/node/full_client_test.go b/node/full_client_test.go index 047bbda9015..b4e9601d991 100644 --- a/node/full_client_test.go +++ b/node/full_client_test.go @@ -27,10 +27,10 @@ import ( tmtypes "github.com/tendermint/tendermint/types" "github.com/tendermint/tendermint/version" - "github.com/celestiaorg/rollmint/config" - abciconv "github.com/celestiaorg/rollmint/conv/abci" - "github.com/celestiaorg/rollmint/mocks" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/config" + abciconv "github.com/rollkit/rollkit/conv/abci" + "github.com/rollkit/rollkit/mocks" + "github.com/rollkit/rollkit/types" ) var expectedInfo = abci.ResponseInfo{ @@ -740,7 +740,7 @@ func getRandomBlockWithProposer(height uint64, nTxs int, proposerAddr []byte) *t block.Data.IntermediateStateRoots.RawRootsList[i] = getRandomBytes(32) } - // TODO(tzdybal): see https://github.com/celestiaorg/rollmint/issues/143 + // TODO(tzdybal): see https://github.com/rollkit/rollkit/issues/143 if nTxs == 0 { block.Data.Txs = nil block.Data.IntermediateStateRoots.RawRootsList = nil diff --git a/node/full_node_integration_test.go b/node/full_node_integration_test.go index 883c3254c14..d6eec2bd7ae 100644 --- a/node/full_node_integration_test.go +++ b/node/full_node_integration_test.go @@ -20,15 +20,15 @@ import ( abcicli "github.com/tendermint/tendermint/abci/client" abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/log" - "github.com/tendermint/tendermint/types" - - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/da" - mockda "github.com/celestiaorg/rollmint/da/mock" - "github.com/celestiaorg/rollmint/mocks" - "github.com/celestiaorg/rollmint/p2p" - "github.com/celestiaorg/rollmint/store" - rmtypes "github.com/celestiaorg/rollmint/types" + tmtypes "github.com/tendermint/tendermint/types" + + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/da" + mockda "github.com/rollkit/rollkit/da/mock" + "github.com/rollkit/rollkit/mocks" + "github.com/rollkit/rollkit/p2p" + "github.com/rollkit/rollkit/store" + "github.com/rollkit/rollkit/types" ) func TestAggregatorMode(t *testing.T) { @@ -50,9 +50,9 @@ func TestAggregatorMode(t *testing.T) { blockManagerConfig := config.BlockManagerConfig{ BlockTime: 1 * time.Second, - NamespaceID: rmtypes.NamespaceID{1, 2, 3, 4, 5, 6, 7, 8}, + NamespaceID: types.NamespaceID{1, 2, 3, 4, 5, 6, 7, 8}, } - node, err := newFullNode(context.Background(), config.NodeConfig{DALayer: "mock", Aggregator: true, BlockManagerConfig: blockManagerConfig}, key, signingKey, abcicli.NewLocalClient(nil, app), &types.GenesisDoc{ChainID: "test"}, log.TestingLogger()) + node, err := newFullNode(context.Background(), config.NodeConfig{DALayer: "mock", Aggregator: true, BlockManagerConfig: blockManagerConfig}, key, signingKey, abcicli.NewLocalClient(nil, app), &tmtypes.GenesisDoc{ChainID: "test"}, log.TestingLogger()) require.NoError(err) require.NotNil(node) @@ -279,7 +279,7 @@ func createNode(ctx context.Context, n int, isMalicious bool, aggregator bool, d } bmConfig := config.BlockManagerConfig{ BlockTime: 300 * time.Millisecond, - NamespaceID: rmtypes.NamespaceID{8, 7, 6, 5, 4, 3, 2, 1}, + NamespaceID: types.NamespaceID{8, 7, 6, 5, 4, 3, 2, 1}, FraudProofs: true, } for i := 0; i < len(keys); i++ { @@ -329,7 +329,7 @@ func createNode(ctx context.Context, n int, isMalicious bool, aggregator bool, d keys[n], signingKey, abcicli.NewLocalClient(nil, app), - &types.GenesisDoc{ChainID: "test"}, + &tmtypes.GenesisDoc{ChainID: "test"}, log.TestingLogger().With("node", n)) require.NoError(err) require.NotNil(node) diff --git a/node/full_node_test.go b/node/full_node_test.go index 81212255796..cad9e17b498 100644 --- a/node/full_node_test.go +++ b/node/full_node_test.go @@ -17,9 +17,9 @@ import ( "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/mempool" - "github.com/celestiaorg/rollmint/mocks" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/mempool" + "github.com/rollkit/rollkit/mocks" ) // simply check that node is starting and stopping without panicking diff --git a/node/light_client.go b/node/light_client.go index 7ca08551b89..40825b7f094 100644 --- a/node/light_client.go +++ b/node/light_client.go @@ -87,12 +87,12 @@ func (c *LightClient) NetInfo(ctx context.Context) (*ctypes.ResultNetInfo, error panic("Not implemented") } -// DumpConsensusState always returns error as there is no consensus state in rollmint. +// DumpConsensusState always returns error as there is no consensus state in Rollkit. func (c *LightClient) DumpConsensusState(ctx context.Context) (*ctypes.ResultDumpConsensusState, error) { panic("Not implemented") } -// ConsensusState always returns error as there is no consensus state in rollmint. +// ConsensusState always returns error as there is no consensus state in Rollkit. func (c *LightClient) ConsensusState(ctx context.Context) (*ctypes.ResultConsensusState, error) { panic("Not implemented") } diff --git a/node/node.go b/node/node.go index c6ea7300b61..ecc25c37cb0 100644 --- a/node/node.go +++ b/node/node.go @@ -10,7 +10,7 @@ import ( rpcclient "github.com/tendermint/tendermint/rpc/client" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/config" + "github.com/rollkit/rollkit/config" ) type Node interface { diff --git a/p2p/client.go b/p2p/client.go index 46e8b375446..352caf9aa3a 100644 --- a/p2p/client.go +++ b/p2p/client.go @@ -23,8 +23,8 @@ import ( "github.com/tendermint/tendermint/p2p" "go.uber.org/multierr" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/log" ) // TODO(tzdybal): refactor to configuration parameters diff --git a/p2p/client_test.go b/p2p/client_test.go index 7b8e97b8688..2b447a95cf5 100644 --- a/p2p/client_test.go +++ b/p2p/client_test.go @@ -16,8 +16,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/log/test" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/log/test" ) func TestClientStartup(t *testing.T) { diff --git a/p2p/gossip.go b/p2p/gossip.go index b88f4bd414f..b1f311191b8 100644 --- a/p2p/gossip.go +++ b/p2p/gossip.go @@ -9,7 +9,7 @@ import ( "github.com/libp2p/go-libp2p/core/host" "github.com/libp2p/go-libp2p/core/peer" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/log" ) // GossipMessage represents message gossiped via P2P network (e.g. transaction, Block etc). diff --git a/p2p/utils_test.go b/p2p/utils_test.go index 5617a6879a3..f45a008529c 100644 --- a/p2p/utils_test.go +++ b/p2p/utils_test.go @@ -17,8 +17,8 @@ import ( "github.com/stretchr/testify/require" "go.uber.org/multierr" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/log" ) type testNet []*Client diff --git a/proto/dalc/dalc.proto b/proto/dalc/dalc.proto index 37d01f017fc..5ca934f2220 100644 --- a/proto/dalc/dalc.proto +++ b/proto/dalc/dalc.proto @@ -1,8 +1,8 @@ syntax = "proto3"; package dalc; -option go_package = "github.com/celestiaorg/rollmint/types/pb/dalc"; +option go_package = "github.com/rollkit/rollkit/types/pb/dalc"; -import "rollmint/rollmint.proto"; +import "rollkit/rollkit.proto"; import "gogoproto/gogo.proto"; enum StatusCode { @@ -19,7 +19,7 @@ message DAResponse { } message SubmitBlockRequest { - rollmint.Block block = 1; + rollkit.Block block = 1; } message SubmitBlockResponse { @@ -41,7 +41,7 @@ message RetrieveBlocksRequest { message RetrieveBlocksResponse { DAResponse result = 1; - repeated rollmint.Block blocks = 2; + repeated rollkit.Block blocks = 2; } service DALCService { diff --git a/proto/protoc.sh b/proto/protoc.sh index b3628596273..f58e3b1fa3b 100644 --- a/proto/protoc.sh +++ b/proto/protoc.sh @@ -3,4 +3,4 @@ set -eo pipefail buf generate --path="./proto/dalc" --template="buf.gen.yaml" --config="buf.yaml" -buf generate --path="./proto/rollmint" --template="buf.gen.yaml" --config="buf.yaml" +buf generate --path="./proto/rollkit" --template="buf.gen.yaml" --config="buf.yaml" diff --git a/proto/rollmint/rollmint.proto b/proto/rollkit/rollkit.proto similarity index 96% rename from proto/rollmint/rollmint.proto rename to proto/rollkit/rollkit.proto index 033a051ff23..729c96a7849 100644 --- a/proto/rollmint/rollmint.proto +++ b/proto/rollkit/rollkit.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package rollmint; -option go_package = "github.com/celestiaorg/rollmint/types/pb/rollmint"; +package rollkit; +option go_package = "github.com/rollkit/rollkit/types/pb/rollkit"; import "tendermint/abci/types.proto"; // Version captures the consensus rules for processing a block in the blockchain, diff --git a/proto/rollmint/state.proto b/proto/rollkit/state.proto similarity index 92% rename from proto/rollmint/state.proto rename to proto/rollkit/state.proto index d7380765e9c..78f1221663e 100644 --- a/proto/rollmint/state.proto +++ b/proto/rollkit/state.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -package rollmint; -option go_package = "github.com/celestiaorg/rollmint/types/pb/rollmint"; +package rollkit; +option go_package = "github.com/rollkit/rollkit/types/pb/rollkit"; import "gogoproto/gogo.proto"; import "google/protobuf/timestamp.proto"; diff --git a/rpc/json/handler.go b/rpc/json/handler.go index 6dcc2b80375..0786a612ebc 100644 --- a/rpc/json/handler.go +++ b/rpc/json/handler.go @@ -15,7 +15,7 @@ import ( "github.com/gorilla/rpc/v2" "github.com/gorilla/rpc/v2/json2" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/log" ) type handler struct { diff --git a/rpc/json/service.go b/rpc/json/service.go index a8840f57af6..faa3fd28c03 100644 --- a/rpc/json/service.go +++ b/rpc/json/service.go @@ -12,7 +12,7 @@ import ( rpcclient "github.com/tendermint/tendermint/rpc/client" ctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/log" ) // GetHTTPHandler returns handler configured to serve Tendermint-compatible RPC. diff --git a/rpc/json/service_test.go b/rpc/json/service_test.go index 44a093baa5f..33c7ad5c11c 100644 --- a/rpc/json/service_test.go +++ b/rpc/json/service_test.go @@ -25,9 +25,9 @@ import ( rpcclient "github.com/tendermint/tendermint/rpc/client" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/config" - "github.com/celestiaorg/rollmint/mocks" - "github.com/celestiaorg/rollmint/node" + "github.com/rollkit/rollkit/config" + "github.com/rollkit/rollkit/mocks" + "github.com/rollkit/rollkit/node" ) func TestHandlerMapping(t *testing.T) { diff --git a/rpc/json/ws.go b/rpc/json/ws.go index 6041d7edd72..07c9553b696 100644 --- a/rpc/json/ws.go +++ b/rpc/json/ws.go @@ -7,7 +7,7 @@ import ( "github.com/gorilla/websocket" - "github.com/celestiaorg/rollmint/log" + "github.com/rollkit/rollkit/log" ) type wsConn struct { @@ -68,7 +68,7 @@ func (h *handler) wsHandler(w http.ResponseWriter, r *http.Request) { } if mt != websocket.TextMessage { - // TODO(tzdybal): https://github.com/celestiaorg/rollmint/issues/465 + // TODO(tzdybal): https://github.com/rollkit/rollkit/issues/465 h.logger.Debug("expected text message") continue } diff --git a/rpc/server.go b/rpc/server.go index a74f12cbec1..8e6b2c132b8 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -15,8 +15,8 @@ import ( rpcclient "github.com/tendermint/tendermint/rpc/client" "golang.org/x/net/netutil" - "github.com/celestiaorg/rollmint/node" - "github.com/celestiaorg/rollmint/rpc/json" + "github.com/rollkit/rollkit/node" + "github.com/rollkit/rollkit/rpc/json" ) // Server handles HTTP and JSON-RPC requests, exposing Tendermint-compatible API. diff --git a/state/executor.go b/state/executor.go index c14c4a536f8..1d2e9d6d5e8 100644 --- a/state/executor.go +++ b/state/executor.go @@ -16,10 +16,10 @@ import ( tmtypes "github.com/tendermint/tendermint/types" "go.uber.org/multierr" - abciconv "github.com/celestiaorg/rollmint/conv/abci" - "github.com/celestiaorg/rollmint/log" - "github.com/celestiaorg/rollmint/mempool" - "github.com/celestiaorg/rollmint/types" + abciconv "github.com/rollkit/rollkit/conv/abci" + "github.com/rollkit/rollkit/log" + "github.com/rollkit/rollkit/mempool" + "github.com/rollkit/rollkit/types" ) // BlockExecutor creates and applies blocks and maintains state. @@ -114,7 +114,7 @@ func (e *BlockExecutor) CreateBlock(height uint64, lastCommit *types.Commit, las ProposerAddress: e.proposerAddress, }, Data: types.Data{ - Txs: toRollmintTxs(mempoolTxs), + Txs: toRollkitTxs(mempoolTxs), IntermediateStateRoots: types.IntermediateStateRoots{RawRootsList: nil}, Evidence: types.EvidenceData{Evidence: nil}, }, @@ -198,7 +198,7 @@ func (e *BlockExecutor) VerifyFraudProof(fraudProof abci.FraudProof, expectedApp func (e *BlockExecutor) updateState(state types.State, block *types.Block, abciResponses *tmstate.ABCIResponses, validatorUpdates []*tmtypes.Validator) (types.State, error) { nValSet := state.NextValidators.Copy() lastHeightValSetChanged := state.LastHeightValidatorsChanged - // rollmint can work without validators + // Rollkit can work without validators if len(nValSet.Validators) > 0 { if len(validatorUpdates) > 0 { err := nValSet.UpdateWithChangeSet(validatorUpdates) @@ -252,7 +252,7 @@ func (e *BlockExecutor) commit(ctx context.Context, state types.State, block *ty maxBytes := state.ConsensusParams.Block.MaxBytes maxGas := state.ConsensusParams.Block.MaxGas - err = e.mempool.Update(int64(block.Header.Height()), fromRollmintTxs(block.Data.Txs), deliverTxs, mempool.PreCheckMaxBytes(maxBytes), mempool.PostCheckMaxGas(maxGas)) + err = e.mempool.Update(int64(block.Header.Height()), fromRollkitTxs(block.Data.Txs), deliverTxs, mempool.PreCheckMaxBytes(maxBytes), mempool.PostCheckMaxGas(maxGas)) if err != nil { return nil, 0, err } @@ -495,18 +495,18 @@ func (e *BlockExecutor) getAppHash() ([]byte, error) { return isrResp.AppHash, nil } -func toRollmintTxs(txs tmtypes.Txs) types.Txs { - rollmintTxs := make(types.Txs, len(txs)) +func toRollkitTxs(txs tmtypes.Txs) types.Txs { + rollkitTxs := make(types.Txs, len(txs)) for i := range txs { - rollmintTxs[i] = []byte(txs[i]) + rollkitTxs[i] = []byte(txs[i]) } - return rollmintTxs + return rollkitTxs } -func fromRollmintTxs(rollmintTxs types.Txs) tmtypes.Txs { - txs := make(tmtypes.Txs, len(rollmintTxs)) - for i := range rollmintTxs { - txs[i] = []byte(rollmintTxs[i]) +func fromRollkitTxs(rollkitTxs types.Txs) tmtypes.Txs { + txs := make(tmtypes.Txs, len(rollkitTxs)) + for i := range rollkitTxs { + txs[i] = []byte(rollkitTxs[i]) } return txs } diff --git a/state/executor_test.go b/state/executor_test.go index cbcd68b9552..65d154a276e 100644 --- a/state/executor_test.go +++ b/state/executor_test.go @@ -17,10 +17,10 @@ import ( "github.com/tendermint/tendermint/proxy" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/mempool" - mempoolv1 "github.com/celestiaorg/rollmint/mempool/v1" - "github.com/celestiaorg/rollmint/mocks" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/mempool" + mempoolv1 "github.com/rollkit/rollkit/mempool/v1" + "github.com/rollkit/rollkit/mocks" + "github.com/rollkit/rollkit/types" ) func doTestCreateBlock(t *testing.T, fraudProofsEnabled bool) { diff --git a/state/indexer/block/kv/kv.go b/state/indexer/block/kv/kv.go index d1cc7765462..241c40fac58 100644 --- a/state/indexer/block/kv/kv.go +++ b/state/indexer/block/kv/kv.go @@ -14,8 +14,8 @@ import ( "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/state/indexer" - "github.com/celestiaorg/rollmint/store" + "github.com/rollkit/rollkit/state/indexer" + "github.com/rollkit/rollkit/store" ) var _ indexer.BlockIndexer = (*BlockerIndexer)(nil) diff --git a/state/indexer/block/kv/kv_test.go b/state/indexer/block/kv/kv_test.go index c0d4af6db3a..ad6a223a5fb 100644 --- a/state/indexer/block/kv/kv_test.go +++ b/state/indexer/block/kv/kv_test.go @@ -12,8 +12,8 @@ import ( "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" - blockidxkv "github.com/celestiaorg/rollmint/state/indexer/block/kv" - "github.com/celestiaorg/rollmint/store" + blockidxkv "github.com/rollkit/rollkit/state/indexer/block/kv" + "github.com/rollkit/rollkit/store" ) func TestBlockIndexer(t *testing.T) { diff --git a/state/indexer/block/kv/util.go b/state/indexer/block/kv/util.go index 844a67f36c4..a7df67b3f97 100644 --- a/state/indexer/block/kv/util.go +++ b/state/indexer/block/kv/util.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/celestiaorg/rollmint/store" + "github.com/rollkit/rollkit/store" "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" ) diff --git a/state/indexer/block/null/null.go b/state/indexer/block/null/null.go index 6917f112f87..9dd8e523127 100644 --- a/state/indexer/block/null/null.go +++ b/state/indexer/block/null/null.go @@ -7,7 +7,7 @@ import ( "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/state/indexer" + "github.com/rollkit/rollkit/state/indexer" ) var _ indexer.BlockIndexer = (*BlockerIndexer)(nil) diff --git a/state/txindex/indexer_service.go b/state/txindex/indexer_service.go index 81e8ffbcc64..c3ed8822af8 100644 --- a/state/txindex/indexer_service.go +++ b/state/txindex/indexer_service.go @@ -6,7 +6,7 @@ import ( "github.com/tendermint/tendermint/libs/service" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/state/indexer" + "github.com/rollkit/rollkit/state/indexer" ) // XXX/TODO: These types should be moved to the indexer package. diff --git a/state/txindex/indexer_service_test.go b/state/txindex/indexer_service_test.go index 276c89d3c7c..8c41e2c6c86 100644 --- a/state/txindex/indexer_service_test.go +++ b/state/txindex/indexer_service_test.go @@ -12,10 +12,10 @@ import ( "github.com/tendermint/tendermint/libs/log" "github.com/tendermint/tendermint/types" - blockidxkv "github.com/celestiaorg/rollmint/state/indexer/block/kv" - "github.com/celestiaorg/rollmint/state/txindex" - "github.com/celestiaorg/rollmint/state/txindex/kv" - "github.com/celestiaorg/rollmint/store" + blockidxkv "github.com/rollkit/rollkit/state/indexer/block/kv" + "github.com/rollkit/rollkit/state/txindex" + "github.com/rollkit/rollkit/state/txindex/kv" + "github.com/rollkit/rollkit/store" ) func TestIndexerServiceIndexesBlocks(t *testing.T) { diff --git a/state/txindex/kv/kv.go b/state/txindex/kv/kv.go index 5c9fc6c0ef4..da9b5f06709 100644 --- a/state/txindex/kv/kv.go +++ b/state/txindex/kv/kv.go @@ -14,9 +14,9 @@ import ( "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/state/indexer" - "github.com/celestiaorg/rollmint/state/txindex" - "github.com/celestiaorg/rollmint/store" + "github.com/rollkit/rollkit/state/indexer" + "github.com/rollkit/rollkit/state/txindex" + "github.com/rollkit/rollkit/store" ) const ( diff --git a/state/txindex/kv/kv_bench_test.go b/state/txindex/kv/kv_bench_test.go index 2ec6973b8a7..51a4ae99a78 100644 --- a/state/txindex/kv/kv_bench_test.go +++ b/state/txindex/kv/kv_bench_test.go @@ -11,7 +11,7 @@ import ( "github.com/tendermint/tendermint/libs/pubsub/query" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/store" + "github.com/rollkit/rollkit/store" ) func BenchmarkTxSearch(b *testing.B) { diff --git a/state/txindex/kv/kv_test.go b/state/txindex/kv/kv_test.go index 193239bb18f..2028767732e 100644 --- a/state/txindex/kv/kv_test.go +++ b/state/txindex/kv/kv_test.go @@ -18,8 +18,8 @@ import ( tmrand "github.com/tendermint/tendermint/libs/rand" "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/state/txindex" - "github.com/celestiaorg/rollmint/store" + "github.com/rollkit/rollkit/state/txindex" + "github.com/rollkit/rollkit/store" ) func TestTxIndex(t *testing.T) { diff --git a/state/txindex/null/null.go b/state/txindex/null/null.go index fadd9a642a9..d4ba21f80bd 100644 --- a/state/txindex/null/null.go +++ b/state/txindex/null/null.go @@ -7,7 +7,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/libs/pubsub/query" - "github.com/celestiaorg/rollmint/state/txindex" + "github.com/rollkit/rollkit/state/txindex" ) var _ txindex.TxIndexer = (*TxIndex)(nil) diff --git a/store/store.go b/store/store.go index d09cc39c92e..cd6629a49aa 100644 --- a/store/store.go +++ b/store/store.go @@ -15,8 +15,8 @@ import ( "github.com/celestiaorg/go-header" - "github.com/celestiaorg/rollmint/types" - pb "github.com/celestiaorg/rollmint/types/pb/rollmint" + "github.com/rollkit/rollkit/types" + pb "github.com/rollkit/rollkit/types/pb/rollkit" ) var ( diff --git a/store/store_test.go b/store/store_test.go index 49b22904fcd..e2d73cd8632 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -15,7 +15,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) func TestStoreHeight(t *testing.T) { @@ -81,7 +81,7 @@ func TestStoreLoad(t *testing.T) { //}}, } - tmpDir, err := os.MkdirTemp("", "rollmint_test") + tmpDir, err := os.MkdirTemp("", "rollkit_test") require.NoError(t, err) defer func() { err := os.RemoveAll(tmpDir) diff --git a/store/types.go b/store/types.go index 6a9aa2205dc..5fed712cb4a 100644 --- a/store/types.go +++ b/store/types.go @@ -4,7 +4,7 @@ import ( tmstate "github.com/tendermint/tendermint/proto/tendermint/state" tmtypes "github.com/tendermint/tendermint/types" - "github.com/celestiaorg/rollmint/types" + "github.com/rollkit/rollkit/types" ) // Store is minimal interface for storing and retrieving blocks, commits and state. diff --git a/types/block.go b/types/block.go index 9e2682cc252..6948e90ed0a 100644 --- a/types/block.go +++ b/types/block.go @@ -15,7 +15,7 @@ type Version struct { App uint64 } -// Block defines the structure of rollmint block. +// Block defines the structure of Rollkit block. type Block struct { Header Header Data Data @@ -25,7 +25,7 @@ type Block struct { var _ encoding.BinaryMarshaler = &Block{} var _ encoding.BinaryUnmarshaler = &Block{} -// Data defines rollmint block data. +// Data defines Rollkit block data. type Data struct { Txs Txs IntermediateStateRoots IntermediateStateRoots diff --git a/types/header.go b/types/header.go index 557ad291468..9eda36505ff 100644 --- a/types/header.go +++ b/types/header.go @@ -21,7 +21,7 @@ type BaseHeader struct { ChainID string } -// Header defines the structure of rollmint block header. +// Header defines the structure of Rollkit block header. type Header struct { BaseHeader // Block and App version diff --git a/types/pb/dalc/dalc.pb.go b/types/pb/dalc/dalc.pb.go index 2b19c42566e..3d0eff9dafc 100644 --- a/types/pb/dalc/dalc.pb.go +++ b/types/pb/dalc/dalc.pb.go @@ -6,9 +6,9 @@ package dalc import ( context "context" fmt "fmt" - rollmint "github.com/celestiaorg/rollmint/types/pb/rollmint" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" + rollkit "github.com/rollkit/rollkit/types/pb/rollkit" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -120,7 +120,7 @@ func (m *DAResponse) GetDAHeight() uint64 { } type SubmitBlockRequest struct { - Block *rollmint.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` + Block *rollkit.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` } func (m *SubmitBlockRequest) Reset() { *m = SubmitBlockRequest{} } @@ -156,7 +156,7 @@ func (m *SubmitBlockRequest) XXX_DiscardUnknown() { var xxx_messageInfo_SubmitBlockRequest proto.InternalMessageInfo -func (m *SubmitBlockRequest) GetBlock() *rollmint.Block { +func (m *SubmitBlockRequest) GetBlock() *rollkit.Block { if m != nil { return m.Block } @@ -348,8 +348,8 @@ func (m *RetrieveBlocksRequest) GetDAHeight() uint64 { } type RetrieveBlocksResponse struct { - Result *DAResponse `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` - Blocks []*rollmint.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` + Result *DAResponse `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` + Blocks []*rollkit.Block `protobuf:"bytes,2,rep,name=blocks,proto3" json:"blocks,omitempty"` } func (m *RetrieveBlocksResponse) Reset() { *m = RetrieveBlocksResponse{} } @@ -392,7 +392,7 @@ func (m *RetrieveBlocksResponse) GetResult() *DAResponse { return nil } -func (m *RetrieveBlocksResponse) GetBlocks() []*rollmint.Block { +func (m *RetrieveBlocksResponse) GetBlocks() []*rollkit.Block { if m != nil { return m.Blocks } @@ -413,41 +413,41 @@ func init() { func init() { proto.RegisterFile("dalc/dalc.proto", fileDescriptor_45d7d8eda2693dc1) } var fileDescriptor_45d7d8eda2693dc1 = []byte{ - // 542 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x8f, 0xd2, 0x4e, - 0x14, 0xa6, 0xec, 0xfe, 0xf8, 0xb1, 0x0f, 0x65, 0x71, 0xd6, 0x5d, 0x2a, 0xab, 0x95, 0xd4, 0xdd, - 0x88, 0x26, 0xd2, 0x04, 0x8f, 0x1e, 0x4c, 0x69, 0xab, 0x62, 0x5c, 0x31, 0x53, 0xb8, 0x78, 0x21, - 0xd3, 0x76, 0x52, 0x1a, 0xca, 0x0e, 0xdb, 0x19, 0x30, 0xfb, 0x27, 0x78, 0xf3, 0xcf, 0xf2, 0xb8, - 0x47, 0x4f, 0xc6, 0xc0, 0x3f, 0x62, 0x68, 0x0b, 0x0b, 0x2b, 0x92, 0xac, 0x97, 0xe6, 0xcd, 0xfb, - 0xe6, 0xbd, 0xf9, 0xbe, 0xbe, 0x2f, 0x0f, 0xf6, 0x3d, 0x12, 0xba, 0xda, 0xfc, 0x53, 0x1f, 0x45, - 0x4c, 0x30, 0xb4, 0x3b, 0x8f, 0x2b, 0xe5, 0x88, 0x85, 0xe1, 0x30, 0x38, 0x17, 0xda, 0x22, 0x48, - 0xe0, 0xca, 0x7d, 0x9f, 0xf9, 0x2c, 0x0e, 0xb5, 0x79, 0x94, 0x64, 0xd5, 0x2f, 0x00, 0xa6, 0x8e, - 0x29, 0x1f, 0xb1, 0x73, 0x4e, 0xd1, 0x09, 0xec, 0xba, 0xcc, 0xa3, 0xb2, 0x54, 0x95, 0x6a, 0xc5, - 0x46, 0xa9, 0x1e, 0x77, 0xb7, 0x05, 0x11, 0x63, 0x6e, 0x30, 0x8f, 0xe2, 0x18, 0x45, 0x32, 0xfc, - 0x3f, 0xa4, 0x9c, 0x13, 0x9f, 0xca, 0xd9, 0xaa, 0x54, 0xdb, 0xc3, 0x8b, 0x23, 0x7a, 0x06, 0x7b, - 0x1e, 0xe9, 0xf5, 0x69, 0xe0, 0xf7, 0x85, 0xbc, 0x53, 0x95, 0x6a, 0xbb, 0xcd, 0x3b, 0xd3, 0x9f, - 0x8f, 0xf3, 0xa6, 0xfe, 0x2e, 0xce, 0xe1, 0xbc, 0x47, 0x92, 0x48, 0x7d, 0x05, 0xc8, 0x1e, 0x3b, - 0xc3, 0x40, 0x34, 0x43, 0xe6, 0x0e, 0x30, 0xbd, 0x18, 0x53, 0x2e, 0xd0, 0x29, 0xfc, 0xe7, 0xcc, - 0xcf, 0x31, 0x83, 0x42, 0x63, 0xbf, 0xbe, 0x14, 0x91, 0x5c, 0x4b, 0x50, 0xf5, 0x35, 0x1c, 0xac, - 0x15, 0xa7, 0xf4, 0x6b, 0x90, 0x8b, 0x28, 0x1f, 0x87, 0x22, 0x2d, 0x4f, 0x05, 0x5c, 0x0b, 0xc4, - 0x29, 0xae, 0xbe, 0x87, 0x47, 0x46, 0x9f, 0xba, 0x83, 0xb8, 0x5e, 0x9f, 0x90, 0x20, 0x24, 0x4e, - 0x10, 0x06, 0xe2, 0x72, 0x41, 0x64, 0x4d, 0x89, 0xb4, 0x55, 0xc9, 0x05, 0x28, 0x7f, 0xeb, 0x75, - 0x5b, 0x5e, 0xe8, 0x14, 0x8a, 0x1e, 0x11, 0xa4, 0x47, 0x92, 0x36, 0x61, 0xf2, 0x87, 0xf3, 0xf8, - 0xee, 0x3c, 0xab, 0x2f, 0x92, 0x6a, 0x13, 0x0e, 0x31, 0x15, 0x51, 0x40, 0x27, 0x34, 0x7e, 0x95, - 0xff, 0x03, 0xed, 0x01, 0x1c, 0xdd, 0xec, 0x71, 0x6b, 0xba, 0x4f, 0x21, 0x17, 0x0f, 0x84, 0xcb, - 0xd9, 0xea, 0xce, 0xa6, 0x79, 0xa5, 0xf0, 0xf3, 0x08, 0xe0, 0xda, 0x46, 0xe8, 0x18, 0xca, 0x76, - 0x47, 0xef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41, 0x7e, 0x04, 0x00, 0x00, + // 530 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x94, 0xcf, 0x8f, 0xd2, 0x40, + 0x14, 0xc7, 0x29, 0x8b, 0xc8, 0x3e, 0x14, 0x71, 0x56, 0x76, 0x2b, 0xab, 0x95, 0x54, 0x34, 0xe8, + 0x81, 0x26, 0x78, 0xf3, 0x62, 0x4a, 0x5b, 0x23, 0xc6, 0x15, 0x33, 0x85, 0x8b, 0x17, 0xd2, 0x1f, + 0x13, 0xa8, 0x14, 0xcb, 0x76, 0x06, 0xcc, 0xfe, 0x09, 0xde, 0xfc, 0xb3, 0x3c, 0xee, 0xd1, 0x93, + 0x31, 0xf0, 0x8f, 0x18, 0x66, 0x8a, 0x0b, 0x58, 0x49, 0xd6, 0x0b, 0xbc, 0x79, 0x9f, 0x79, 0x6f, + 0xbe, 0xaf, 0xef, 0xe5, 0xc1, 0x1d, 0xdf, 0x09, 0x3d, 0x6d, 0xf5, 0xd3, 0x9c, 0xc6, 0x11, 0x8b, + 0x50, 0x6e, 0x65, 0x57, 0x2b, 0x71, 0x14, 0x86, 0xe3, 0x80, 0x69, 0xc9, 0xbf, 0x80, 0xd5, 0x7b, + 0xc3, 0x68, 0x18, 0x71, 0x53, 0x5b, 0x59, 0xc2, 0xab, 0x7e, 0x01, 0x30, 0x75, 0x4c, 0xe8, 0x34, + 0xfa, 0x4c, 0x09, 0xaa, 0x43, 0xce, 0x8b, 0x7c, 0x22, 0x4b, 0x35, 0xa9, 0x51, 0x6a, 0x95, 0x9b, + 0x3c, 0xb7, 0xcd, 0x1c, 0x36, 0xa3, 0x46, 0xe4, 0x13, 0xcc, 0x29, 0x92, 0xe1, 0xe6, 0x84, 0x50, + 0xea, 0x0c, 0x89, 0x9c, 0xad, 0x49, 0x8d, 0x43, 0xbc, 0x3e, 0xa2, 0x67, 0x70, 0xe8, 0x3b, 0x83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 0xfd, 0xf7, 0xf6, 0x07, 0xcb, 0xe8, 0xbc, 0xee, 0x58, 0x66, + 0x39, 0x83, 0x4e, 0xe0, 0x68, 0x13, 0xda, 0x7d, 0xc3, 0xb0, 0x6c, 0xbb, 0x2c, 0xed, 0x82, 0x5e, + 0xe7, 0xcc, 0xea, 0xf6, 0x7b, 0xe5, 0x2c, 0xaa, 0xc0, 0xdd, 0x4d, 0x60, 0x61, 0xdc, 0xc5, 0xe5, + 0x83, 0xd6, 0xd7, 0x2c, 0x14, 0x4d, 0xfd, 0x9d, 0x61, 0x93, 0x78, 0x1e, 0x78, 0x04, 0x99, 0x50, + 0xdc, 0x98, 0x19, 0x24, 0x27, 0xb3, 0xfd, 0xd7, 0x08, 0x56, 0xef, 0xa7, 0x10, 0x51, 0xb7, 0x9a, + 0x41, 0x04, 0x8e, 0xd3, 0x9b, 0x8d, 0x1e, 0x8b, 0xb0, 0xbd, 0x63, 0x55, 0xad, 0xef, 0xbf, 0xf4, + 0xe7, 0x99, 0x33, 0x28, 0x6d, 0x37, 0x07, 0x9d, 0x8a, 0xc8, 0xd4, 0xb6, 0x57, 0x1f, 0xa4, 0xc3, + 0x75, 0xba, 0x76, 0xfb, 0xfb, 0x42, 0x91, 0x2e, 0x17, 0x8a, 0xf4, 0x6b, 0xa1, 0x48, 0xdf, 0x96, + 0x4a, 0xe6, 0x72, 0xa9, 0x64, 0x7e, 0x2c, 0x95, 0xcc, 0xc7, 0xc6, 0x30, 0x60, 0xa3, 0x99, 0xdb, + 0xf4, 0xa2, 0x89, 0xb6, 0xb3, 0x36, 0x34, 0x76, 0x31, 0x25, 0x54, 0x9b, 0xba, 0x7c, 0xc3, 0xb8, + 0x79, 0xbe, 0x2f, 0x5e, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xb8, 0x8f, 0x4d, 0x6f, 0x75, 0x04, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1162,7 +1162,7 @@ func (m *SubmitBlockRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Block == nil { - m.Block = &rollmint.Block{} + m.Block = &rollkit.Block{} } if err := m.Block.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1613,7 +1613,7 @@ func (m *RetrieveBlocksResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Blocks = append(m.Blocks, &rollmint.Block{}) + m.Blocks = append(m.Blocks, &rollkit.Block{}) if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } diff --git a/types/pb/rollmint/rollmint.pb.go b/types/pb/rollkit/rollkit.pb.go similarity index 80% rename from types/pb/rollmint/rollmint.pb.go rename to types/pb/rollkit/rollkit.pb.go index 75560f5ddf6..6820da55149 100644 --- a/types/pb/rollmint/rollmint.pb.go +++ b/types/pb/rollkit/rollkit.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: rollmint/rollmint.proto +// source: rollkit/rollkit.proto -package rollmint +package rollkit import ( fmt "fmt" @@ -36,7 +36,7 @@ func (m *Version) Reset() { *m = Version{} } func (m *Version) String() string { return proto.CompactTextString(m) } func (*Version) ProtoMessage() {} func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{0} + return fileDescriptor_ed489fb7f4d78b3f, []int{0} } func (m *Version) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -118,7 +118,7 @@ func (m *Header) Reset() { *m = Header{} } func (m *Header) String() string { return proto.CompactTextString(m) } func (*Header) ProtoMessage() {} func (*Header) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{1} + return fileDescriptor_ed489fb7f4d78b3f, []int{1} } func (m *Header) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -249,7 +249,7 @@ func (m *Commit) Reset() { *m = Commit{} } func (m *Commit) String() string { return proto.CompactTextString(m) } func (*Commit) ProtoMessage() {} func (*Commit) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{2} + return fileDescriptor_ed489fb7f4d78b3f, []int{2} } func (m *Commit) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -308,7 +308,7 @@ func (m *SignedHeader) Reset() { *m = SignedHeader{} } func (m *SignedHeader) String() string { return proto.CompactTextString(m) } func (*SignedHeader) ProtoMessage() {} func (*SignedHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{3} + return fileDescriptor_ed489fb7f4d78b3f, []int{3} } func (m *SignedHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -361,7 +361,7 @@ func (m *Data) Reset() { *m = Data{} } func (m *Data) String() string { return proto.CompactTextString(m) } func (*Data) ProtoMessage() {} func (*Data) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{4} + return fileDescriptor_ed489fb7f4d78b3f, []int{4} } func (m *Data) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -421,7 +421,7 @@ func (m *Block) Reset() { *m = Block{} } func (m *Block) String() string { return proto.CompactTextString(m) } func (*Block) ProtoMessage() {} func (*Block) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{5} + return fileDescriptor_ed489fb7f4d78b3f, []int{5} } func (m *Block) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -480,7 +480,7 @@ func (m *FraudProof) Reset() { *m = FraudProof{} } func (m *FraudProof) String() string { return proto.CompactTextString(m) } func (*FraudProof) ProtoMessage() {} func (*FraudProof) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{6} + return fileDescriptor_ed489fb7f4d78b3f, []int{6} } func (m *FraudProof) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -531,7 +531,7 @@ func (m *StateWitness) Reset() { *m = StateWitness{} } func (m *StateWitness) String() string { return proto.CompactTextString(m) } func (*StateWitness) ProtoMessage() {} func (*StateWitness) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{7} + return fileDescriptor_ed489fb7f4d78b3f, []int{7} } func (m *StateWitness) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -576,7 +576,7 @@ func (m *WitnessData) Reset() { *m = WitnessData{} } func (m *WitnessData) String() string { return proto.CompactTextString(m) } func (*WitnessData) ProtoMessage() {} func (*WitnessData) Descriptor() ([]byte, []int) { - return fileDescriptor_ed7ee25509332ba7, []int{8} + return fileDescriptor_ed489fb7f4d78b3f, []int{8} } func (m *WitnessData) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -620,66 +620,65 @@ func (m *WitnessData) GetValue() []byte { } func init() { - proto.RegisterType((*Version)(nil), "rollmint.Version") - proto.RegisterType((*Header)(nil), "rollmint.Header") - proto.RegisterType((*Commit)(nil), "rollmint.Commit") - proto.RegisterType((*SignedHeader)(nil), "rollmint.SignedHeader") - proto.RegisterType((*Data)(nil), "rollmint.Data") - proto.RegisterType((*Block)(nil), "rollmint.Block") - proto.RegisterType((*FraudProof)(nil), "rollmint.FraudProof") - proto.RegisterType((*StateWitness)(nil), "rollmint.StateWitness") - proto.RegisterType((*WitnessData)(nil), "rollmint.WitnessData") -} - -func init() { proto.RegisterFile("rollmint/rollmint.proto", fileDescriptor_ed7ee25509332ba7) } - -var fileDescriptor_ed7ee25509332ba7 = []byte{ - // 709 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xcf, 0x6b, 0xdc, 0x3a, - 0x10, 0xc7, 0xe3, 0xec, 0x66, 0x77, 0x33, 0x76, 0xf2, 0x36, 0xe6, 0xbd, 0x3c, 0xe7, 0x05, 0xfc, - 0x52, 0x43, 0x61, 0xdb, 0xc2, 0x2e, 0x49, 0x09, 0x04, 0x7a, 0x6a, 0xfa, 0x83, 0x0d, 0xbd, 0x14, - 0x07, 0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x94, 0x11, 0x99, 0x79, 0x1b, 0x18, 0x72, 0x5b, - 0xeb, 0x26, 0xc3, 0x39, 0x91, 0x59, 0x43, 0xc6, 0xbc, 0x28, 0x98, 0x32, 0xe4, 0xa0, 0x25, 0x5f, - 0xa0, 0x8c, 0xe4, 0x3e, 0x6c, 0x26, 0x44, 0x11, 0x83, 0x0c, 0x11, 0x19, 0x69, 0x01, 0x9d, 0x0f, - 0x61, 0x3b, 0xe6, 0xa5, 0xa4, 0xa5, 0x5c, 0x4a, 0x43, 0x8c, 0x90, 0xd8, 0x6a, 0x54, 0xc4, 0xf6, - 0x60, 0x44, 0xaa, 0xca, 0x00, 0x9b, 0x08, 0x0c, 0x49, 0x55, 0xa1, 0xeb, 0x31, 0xec, 0x60, 0x22, - 0x82, 0xca, 0x65, 0xae, 0xea, 0x20, 0x80, 0xcc, 0x5f, 0xda, 0x11, 0x1a, 0x1d, 0xd9, 0x47, 0x30, - 0xae, 0x04, 0xaf, 0xb8, 0xa4, 0x22, 0x22, 0x49, 0x22, 0xa8, 0x94, 0x9e, 0x6d, 0xd0, 0x95, 0xfe, - 0xdc, 0xc8, 0x1a, 0x25, 0x69, 0x2a, 0x68, 0x4a, 0x14, 0x17, 0x75, 0x54, 0xc7, 0xa0, 0x1d, 0x7d, - 0x95, 0x5c, 0x9c, 0x11, 0x56, 0xea, 0xfa, 0x6f, 0x1d, 0x58, 0x93, 0xcd, 0x70, 0x88, 0xf6, 0x59, - 0x12, 0x10, 0x18, 0x98, 0x4a, 0x74, 0xba, 0x60, 0xdd, 0xeb, 0xc2, 0xff, 0x60, 0x77, 0x8b, 0x6d, - 0xfa, 0x07, 0x59, 0x5b, 0x68, 0x1f, 0x40, 0xb2, 0xb4, 0x24, 0x6a, 0x29, 0xa8, 0xf4, 0x7a, 0x07, - 0x3d, 0xed, 0x6f, 0x95, 0x60, 0x01, 0xce, 0x39, 0x4b, 0x4b, 0x9a, 0xd4, 0xe3, 0x33, 0xd1, 0x1b, - 0xe9, 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e, 0x1d, 0x26, 0xc2, 0xc3, 0x59, 0x58, 0xc3, 0x7f, 0xda, 0x58, - 0x35, 0x88, 0x67, 0xb4, 0xaf, 0x5a, 0x23, 0x38, 0x06, 0xbb, 0xe3, 0xd3, 0x4d, 0xbd, 0xa0, 0xd7, - 0x98, 0xaf, 0x13, 0xea, 0xa5, 0x7e, 0xb5, 0x2e, 0x49, 0xbe, 0xa4, 0xf5, 0x38, 0x1a, 0xe3, 0xf4, - 0xcd, 0xb7, 0x5b, 0xdf, 0xba, 0xb9, 0xf5, 0xad, 0x9f, 0xb7, 0xbe, 0xf5, 0xf5, 0xce, 0x5f, 0xbb, - 0xb9, 0xf3, 0xd7, 0x7e, 0xdc, 0xf9, 0x6b, 0x1f, 0x0e, 0x53, 0xa6, 0xb2, 0xe5, 0x62, 0x1a, 0xf3, - 0x62, 0x16, 0xd3, 0x9c, 0x4a, 0xc5, 0x08, 0x17, 0x69, 0xf3, 0x7c, 0x9a, 0xd7, 0x71, 0x56, 0x2d, - 0x1a, 0x65, 0x31, 0xc0, 0xa7, 0xf2, 0xe9, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x09, 0xb6, - 0x5f, 0x6c, 0x05, 0x00, 0x00, + proto.RegisterType((*Version)(nil), "rollkit.Version") + proto.RegisterType((*Header)(nil), "rollkit.Header") + proto.RegisterType((*Commit)(nil), "rollkit.Commit") + proto.RegisterType((*SignedHeader)(nil), "rollkit.SignedHeader") + proto.RegisterType((*Data)(nil), "rollkit.Data") + proto.RegisterType((*Block)(nil), "rollkit.Block") + proto.RegisterType((*FraudProof)(nil), "rollkit.FraudProof") + proto.RegisterType((*StateWitness)(nil), "rollkit.StateWitness") + proto.RegisterType((*WitnessData)(nil), "rollkit.WitnessData") +} + +func init() { proto.RegisterFile("rollkit/rollkit.proto", fileDescriptor_ed489fb7f4d78b3f) } + +var fileDescriptor_ed489fb7f4d78b3f = []byte{ + // 704 bytes of a gzipped FileDescriptorProto + 0x1f, 0x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xef, 0x81, 0x57, 0x90, 0x9c, 0xca, 0x92, 0xc4, 0x74, + 0xc4, 0x12, 0x8c, 0xe8, 0x45, 0x6e, 0xa5, 0x9d, 0x25, 0xfe, 0x16, 0xb4, 0x32, 0xca, 0xd2, 0x4c, + 0x05, 0x0d, 0xdc, 0xce, 0x5a, 0xbe, 0x0f, 0x4d, 0xc5, 0x72, 0x1a, 0x34, 0x51, 0xc5, 0xb5, 0xbf, + 0x0f, 0xbd, 0x29, 0x91, 0x6a, 0x94, 0x61, 0x26, 0xa3, 0x8c, 0xc8, 0x2c, 0x58, 0xc1, 0x90, 0x6b, + 0x5a, 0x37, 0x09, 0x9e, 0x12, 0x99, 0x55, 0x64, 0xcc, 0xf3, 0x9c, 0x29, 0x43, 0xb6, 0x16, 0xe4, + 0x0b, 0x94, 0x91, 0xdc, 0x81, 0xd5, 0x84, 0x28, 0x62, 0x90, 0x36, 0x22, 0x1d, 0x2d, 0xa0, 0xf3, + 0x7f, 0x58, 0x8b, 0x79, 0x21, 0x69, 0x21, 0x67, 0xd2, 0x10, 0x1d, 0x24, 0xba, 0x95, 0x8a, 0xd8, + 0x36, 0x74, 0x48, 0x59, 0x1a, 0x60, 0x15, 0x81, 0x36, 0x29, 0x4b, 0x74, 0x1d, 0xc0, 0x3f, 0x98, + 0x88, 0xa0, 0x72, 0x36, 0x55, 0x36, 0x08, 0x20, 0xb3, 0xae, 0x1d, 0x91, 0xd1, 0x91, 0xbd, 0x0f, + 0xbd, 0x52, 0xf0, 0x92, 0x4b, 0x2a, 0x46, 0x24, 0x49, 0x04, 0x95, 0x32, 0x70, 0x0d, 0x3a, 0xd7, + 0x9f, 0x1b, 0x59, 0xa3, 0x24, 0x4d, 0x05, 0x4d, 0x89, 0xe2, 0xc2, 0x46, 0xf5, 0x0c, 0x5a, 0xd3, + 0xe7, 0xc9, 0xc5, 0x19, 0x61, 0x85, 0xae, 0x7f, 0x77, 0xd7, 0xd9, 0x5f, 0x8d, 0xda, 0x68, 0x9f,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x25, 0x6f, 0x04, 0xe7, 0x1f, 0xf5, 0x2d, 0xc4, 0x7b, + 0x3d, 0xba, 0xd3, 0x62, 0x17, 0xb5, 0x53, 0xd3, 0xe7, 0x67, 0xd0, 0x35, 0xc5, 0xb9, 0x64, 0xaa, + 0xd0, 0x73, 0x67, 0xd2, 0xd9, 0xac, 0x36, 0xc1, 0xda, 0xbc, 0x33, 0xce, 0xc8, 0x93, 0x35, 0x2b, + 0x7c, 0x0d, 0x5e, 0xdd, 0xeb, 0x3f, 0x01, 0xcf, 0x46, 0x19, 0xe1, 0xc9, 0x1c, 0xac, 0xdf, 0x46, + 0x15, 0xca, 0x72, 0x78, 0x40, 0xf7, 0x72, 0x61, 0x84, 0x47, 0xe0, 0xd6, 0x7c, 0xba, 0x9f, 0x13, + 0x7a, 0x85, 0xd9, 0x7a, 0x91, 0x5e, 0xea, 0xd7, 0xea, 0x82, 0x4c, 0x67, 0xd4, 0xce, 0xa1, 0x31, + 0x8e, 0x4f, 0xbe, 0xdd, 0xf4, 0x9d, 0xeb, 0x9b, 0xbe, 0xf3, 0xf3, 0xa6, 0xef, 0x7c, 0xbd, 0xed, + 0x2f, 0x5d, 0xdf, 0xf6, 0x97, 0x7e, 0xdc, 0xf6, 0x97, 0xde, 0x3f, 0x48, 0x99, 0xca, 0x66, 0xe3, + 0x41, 0xcc, 0xf3, 0xe1, 0x6f, 0x0f, 0xa6, 0x79, 0x10, 0x87, 0xe5, 0x78, 0x2e, 0x8c, 0x5b, 0xf8, + 0x38, 0x3e, 0xfe, 0x15, 0x00, 0x00, 0xff, 0xff, 0x10, 0x0d, 0x9d, 0x04, 0x5b, 0x05, 0x00, 0x00, } func (m *Version) Marshal() (dAtA []byte, err error) { @@ -703,12 +702,12 @@ func (m *Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { var l int _ = l if m.App != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.App)) + i = encodeVarintRollkit(dAtA, i, uint64(m.App)) i-- dAtA[i] = 0x10 } if m.Block != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.Block)) + i = encodeVarintRollkit(dAtA, i, uint64(m.Block)) i-- dAtA[i] = 0x8 } @@ -738,80 +737,80 @@ func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.ChainId) > 0 { i -= len(m.ChainId) copy(dAtA[i:], m.ChainId) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.ChainId))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.ChainId))) i-- dAtA[i] = 0x6a } if len(m.AggregatorsHash) > 0 { i -= len(m.AggregatorsHash) copy(dAtA[i:], m.AggregatorsHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.AggregatorsHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.AggregatorsHash))) i-- dAtA[i] = 0x62 } if len(m.ProposerAddress) > 0 { i -= len(m.ProposerAddress) copy(dAtA[i:], m.ProposerAddress) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.ProposerAddress))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.ProposerAddress))) i-- dAtA[i] = 0x5a } if len(m.LastResultsHash) > 0 { i -= len(m.LastResultsHash) copy(dAtA[i:], m.LastResultsHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.LastResultsHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.LastResultsHash))) i-- dAtA[i] = 0x52 } if len(m.AppHash) > 0 { i -= len(m.AppHash) copy(dAtA[i:], m.AppHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.AppHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.AppHash))) i-- dAtA[i] = 0x4a } if len(m.ConsensusHash) > 0 { i -= len(m.ConsensusHash) copy(dAtA[i:], m.ConsensusHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.ConsensusHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.ConsensusHash))) i-- dAtA[i] = 0x42 } if len(m.DataHash) > 0 { i -= len(m.DataHash) copy(dAtA[i:], m.DataHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.DataHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.DataHash))) i-- dAtA[i] = 0x3a } if len(m.LastCommitHash) > 0 { i -= len(m.LastCommitHash) copy(dAtA[i:], m.LastCommitHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.LastCommitHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.LastCommitHash))) i-- dAtA[i] = 0x32 } if len(m.LastHeaderHash) > 0 { i -= len(m.LastHeaderHash) copy(dAtA[i:], m.LastHeaderHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.LastHeaderHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.LastHeaderHash))) i-- dAtA[i] = 0x2a } if m.Time != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.Time)) + i = encodeVarintRollkit(dAtA, i, uint64(m.Time)) i-- dAtA[i] = 0x20 } if m.Height != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.Height)) + i = encodeVarintRollkit(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x18 } if len(m.NamespaceId) > 0 { i -= len(m.NamespaceId) copy(dAtA[i:], m.NamespaceId) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.NamespaceId))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.NamespaceId))) i-- dAtA[i] = 0x12 } @@ -822,7 +821,7 @@ func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -854,7 +853,7 @@ func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Signatures) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Signatures[iNdEx]) copy(dAtA[i:], m.Signatures[iNdEx]) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.Signatures[iNdEx]))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.Signatures[iNdEx]))) i-- dAtA[i] = 0x1a } @@ -862,12 +861,12 @@ func (m *Commit) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.HeaderHash) > 0 { i -= len(m.HeaderHash) copy(dAtA[i:], m.HeaderHash) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.HeaderHash))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.HeaderHash))) i-- dAtA[i] = 0x12 } if m.Height != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.Height)) + i = encodeVarintRollkit(dAtA, i, uint64(m.Height)) i-- dAtA[i] = 0x8 } @@ -901,7 +900,7 @@ func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -913,7 +912,7 @@ func (m *SignedHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -949,7 +948,7 @@ func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -959,7 +958,7 @@ func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.IntermediateStateRoots) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.IntermediateStateRoots[iNdEx]) copy(dAtA[i:], m.IntermediateStateRoots[iNdEx]) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.IntermediateStateRoots[iNdEx]))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.IntermediateStateRoots[iNdEx]))) i-- dAtA[i] = 0x12 } @@ -968,7 +967,7 @@ func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error) { for iNdEx := len(m.Txs) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Txs[iNdEx]) copy(dAtA[i:], m.Txs[iNdEx]) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.Txs[iNdEx]))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.Txs[iNdEx]))) i-- dAtA[i] = 0xa } @@ -1003,7 +1002,7 @@ func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a @@ -1015,7 +1014,7 @@ func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 @@ -1027,7 +1026,7 @@ func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1062,13 +1061,13 @@ func (m *FraudProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if m.BlockHeight != 0 { - i = encodeVarintRollmint(dAtA, i, uint64(m.BlockHeight)) + i = encodeVarintRollkit(dAtA, i, uint64(m.BlockHeight)) i-- dAtA[i] = 0x8 } @@ -1103,7 +1102,7 @@ func (m *StateWitness) MarshalToSizedBuffer(dAtA []byte) (int, error) { return 0, err } i -= size - i = encodeVarintRollmint(dAtA, i, uint64(size)) + i = encodeVarintRollkit(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa @@ -1135,22 +1134,22 @@ func (m *WitnessData) MarshalToSizedBuffer(dAtA []byte) (int, error) { if len(m.Value) > 0 { i -= len(m.Value) copy(dAtA[i:], m.Value) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.Value))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.Value))) i-- dAtA[i] = 0x12 } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) - i = encodeVarintRollmint(dAtA, i, uint64(len(m.Key))) + i = encodeVarintRollkit(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func encodeVarintRollmint(dAtA []byte, offset int, v uint64) int { - offset -= sovRollmint(v) +func encodeVarintRollkit(dAtA []byte, offset int, v uint64) int { + offset -= sovRollkit(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) @@ -1167,10 +1166,10 @@ func (m *Version) Size() (n int) { var l int _ = l if m.Block != 0 { - n += 1 + sovRollmint(uint64(m.Block)) + n += 1 + sovRollkit(uint64(m.Block)) } if m.App != 0 { - n += 1 + sovRollmint(uint64(m.App)) + n += 1 + sovRollkit(uint64(m.App)) } return n } @@ -1183,53 +1182,53 @@ func (m *Header) Size() (n int) { _ = l if m.Version != nil { l = m.Version.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.NamespaceId) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } if m.Height != 0 { - n += 1 + sovRollmint(uint64(m.Height)) + n += 1 + sovRollkit(uint64(m.Height)) } if m.Time != 0 { - n += 1 + sovRollmint(uint64(m.Time)) + n += 1 + sovRollkit(uint64(m.Time)) } l = len(m.LastHeaderHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.LastCommitHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.DataHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.ConsensusHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.AppHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.LastResultsHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.ProposerAddress) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.AggregatorsHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.ChainId) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } return n } @@ -1241,16 +1240,16 @@ func (m *Commit) Size() (n int) { var l int _ = l if m.Height != 0 { - n += 1 + sovRollmint(uint64(m.Height)) + n += 1 + sovRollkit(uint64(m.Height)) } l = len(m.HeaderHash) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } if len(m.Signatures) > 0 { for _, b := range m.Signatures { l = len(b) - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } } return n @@ -1264,11 +1263,11 @@ func (m *SignedHeader) Size() (n int) { _ = l if m.Header != nil { l = m.Header.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } if m.Commit != nil { l = m.Commit.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } return n } @@ -1282,19 +1281,19 @@ func (m *Data) Size() (n int) { if len(m.Txs) > 0 { for _, b := range m.Txs { l = len(b) - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } } if len(m.IntermediateStateRoots) > 0 { for _, b := range m.IntermediateStateRoots { l = len(b) - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } } if len(m.Evidence) > 0 { for _, e := range m.Evidence { l = e.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } } return n @@ -1308,15 +1307,15 @@ func (m *Block) Size() (n int) { _ = l if m.Header != nil { l = m.Header.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } if m.Data != nil { l = m.Data.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } if m.LastCommit != nil { l = m.LastCommit.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } return n } @@ -1328,11 +1327,11 @@ func (m *FraudProof) Size() (n int) { var l int _ = l if m.BlockHeight != 0 { - n += 1 + sovRollmint(uint64(m.BlockHeight)) + n += 1 + sovRollkit(uint64(m.BlockHeight)) } if m.StateWitness != nil { l = m.StateWitness.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } return n } @@ -1346,7 +1345,7 @@ func (m *StateWitness) Size() (n int) { if len(m.WitnessData) > 0 { for _, e := range m.WitnessData { l = e.Size() - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } } return n @@ -1360,20 +1359,20 @@ func (m *WitnessData) Size() (n int) { _ = l l = len(m.Key) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } l = len(m.Value) if l > 0 { - n += 1 + l + sovRollmint(uint64(l)) + n += 1 + l + sovRollkit(uint64(l)) } return n } -func sovRollmint(x uint64) (n int) { +func sovRollkit(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } -func sozRollmint(x uint64) (n int) { - return sovRollmint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +func sozRollkit(x uint64) (n int) { + return sovRollkit(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Version) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1383,7 +1382,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1411,7 +1410,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { m.Block = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1430,7 +1429,7 @@ func (m *Version) Unmarshal(dAtA []byte) error { m.App = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1444,12 +1443,12 @@ func (m *Version) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1471,7 +1470,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1499,7 +1498,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1512,11 +1511,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1535,7 +1534,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1548,11 +1547,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1569,7 +1568,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1588,7 +1587,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { m.Time = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1607,7 +1606,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1620,11 +1619,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1641,7 +1640,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1654,11 +1653,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1675,7 +1674,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1688,11 +1687,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1709,7 +1708,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1722,11 +1721,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1743,7 +1742,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1756,11 +1755,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1777,7 +1776,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1790,11 +1789,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1811,7 +1810,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1824,11 +1823,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1845,7 +1844,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1858,11 +1857,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1879,7 +1878,7 @@ func (m *Header) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1893,11 +1892,11 @@ func (m *Header) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + intStringLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -1906,12 +1905,12 @@ func (m *Header) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1933,7 +1932,7 @@ func (m *Commit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1961,7 +1960,7 @@ func (m *Commit) Unmarshal(dAtA []byte) error { m.Height = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1980,7 +1979,7 @@ func (m *Commit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1993,11 +1992,11 @@ func (m *Commit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2014,7 +2013,7 @@ func (m *Commit) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2027,11 +2026,11 @@ func (m *Commit) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2041,12 +2040,12 @@ func (m *Commit) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2068,7 +2067,7 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2096,7 +2095,7 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2109,11 +2108,11 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2132,7 +2131,7 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2145,11 +2144,11 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2163,12 +2162,12 @@ func (m *SignedHeader) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2190,7 +2189,7 @@ func (m *Data) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2218,7 +2217,7 @@ func (m *Data) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2231,11 +2230,11 @@ func (m *Data) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2250,7 +2249,7 @@ func (m *Data) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2263,11 +2262,11 @@ func (m *Data) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2282,7 +2281,7 @@ func (m *Data) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2295,11 +2294,11 @@ func (m *Data) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2311,12 +2310,12 @@ func (m *Data) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2338,7 +2337,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2366,7 +2365,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2379,11 +2378,11 @@ func (m *Block) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2402,7 +2401,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2415,11 +2414,11 @@ func (m *Block) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2438,7 +2437,7 @@ func (m *Block) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2451,11 +2450,11 @@ func (m *Block) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2469,12 +2468,12 @@ func (m *Block) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2496,7 +2495,7 @@ func (m *FraudProof) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2524,7 +2523,7 @@ func (m *FraudProof) Unmarshal(dAtA []byte) error { m.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2543,7 +2542,7 @@ func (m *FraudProof) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2556,11 +2555,11 @@ func (m *FraudProof) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2574,12 +2573,12 @@ func (m *FraudProof) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2601,7 +2600,7 @@ func (m *StateWitness) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2629,7 +2628,7 @@ func (m *StateWitness) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2642,11 +2641,11 @@ func (m *StateWitness) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + msglen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2658,12 +2657,12 @@ func (m *StateWitness) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2685,7 +2684,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2713,7 +2712,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2726,11 +2725,11 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2747,7 +2746,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { var byteLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowRollmint + return ErrIntOverflowRollkit } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2760,11 +2759,11 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { } } if byteLen < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } postIndex := iNdEx + byteLen if postIndex < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if postIndex > l { return io.ErrUnexpectedEOF @@ -2776,12 +2775,12 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipRollmint(dAtA[iNdEx:]) + skippy, err := skipRollkit(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthRollmint + return ErrInvalidLengthRollkit } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2795,7 +2794,7 @@ func (m *WitnessData) Unmarshal(dAtA []byte) error { } return nil } -func skipRollmint(dAtA []byte) (n int, err error) { +func skipRollkit(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 @@ -2803,7 +2802,7 @@ func skipRollmint(dAtA []byte) (n int, err error) { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRollmint + return 0, ErrIntOverflowRollkit } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2820,7 +2819,7 @@ func skipRollmint(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRollmint + return 0, ErrIntOverflowRollkit } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2836,7 +2835,7 @@ func skipRollmint(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowRollmint + return 0, ErrIntOverflowRollkit } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -2849,14 +2848,14 @@ func skipRollmint(dAtA []byte) (n int, err error) { } } if length < 0 { - return 0, ErrInvalidLengthRollmint + return 0, ErrInvalidLengthRollkit } iNdEx += length case 3: depth++ case 4: if depth == 0 { - return 0, ErrUnexpectedEndOfGroupRollmint + return 0, ErrUnexpectedEndOfGroupRollkit } depth-- case 5: @@ -2865,7 +2864,7 @@ func skipRollmint(dAtA []byte) (n int, err error) { return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { - return 0, ErrInvalidLengthRollmint + return 0, ErrInvalidLengthRollkit } if depth == 0 { return iNdEx, nil @@ -2875,7 +2874,7 @@ func skipRollmint(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthRollmint = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowRollmint = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupRollmint = fmt.Errorf("proto: unexpected end of group") + ErrInvalidLengthRollkit = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowRollkit = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupRollkit = fmt.Errorf("proto: unexpected end of group") ) diff --git a/types/pb/rollmint/state.pb.go b/types/pb/rollkit/state.pb.go similarity index 86% rename from types/pb/rollmint/state.pb.go rename to types/pb/rollkit/state.pb.go index 2a2e790e0f1..0477ec0af63 100644 --- a/types/pb/rollmint/state.pb.go +++ b/types/pb/rollkit/state.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: rollmint/state.proto +// source: rollkit/state.proto -package rollmint +package rollkit import ( fmt "fmt" @@ -52,7 +52,7 @@ func (m *State) Reset() { *m = State{} } func (m *State) String() string { return proto.CompactTextString(m) } func (*State) ProtoMessage() {} func (*State) Descriptor() ([]byte, []int) { - return fileDescriptor_86999017b1330537, []int{0} + return fileDescriptor_6c88f9697fdbf8e5, []int{0} } func (m *State) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -187,50 +187,50 @@ func (m *State) GetAppHash() []byte { } func init() { - proto.RegisterType((*State)(nil), "rollmint.State") + proto.RegisterType((*State)(nil), "rollkit.State") } -func init() { proto.RegisterFile("rollmint/state.proto", fileDescriptor_86999017b1330537) } +func init() { proto.RegisterFile("rollkit/state.proto", fileDescriptor_6c88f9697fdbf8e5) } -var fileDescriptor_86999017b1330537 = []byte{ - // 590 bytes of a gzipped FileDescriptorProto +var fileDescriptor_6c88f9697fdbf8e5 = []byte{ + // 586 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0x1b, 0xf6, 0xa7, 0x99, 0xfb, 0x0f, 0xc2, 0x0e, 0x59, 0x07, 0x69, 0x40, 0x20, 0x15, - 0x0e, 0x89, 0x60, 0x77, 0x24, 0xd2, 0x4a, 0xac, 0x62, 0x42, 0x28, 0x43, 0x3b, 0x70, 0x89, 0x9c, - 0xc4, 0x24, 0x16, 0x69, 0x1c, 0xc5, 0xee, 0x04, 0xdf, 0x62, 0x1f, 0x6b, 0xc7, 0x1d, 0x39, 0x15, - 0xd4, 0x7e, 0x0a, 0x6e, 0xc8, 0x76, 0x9c, 0x66, 0x2b, 0x87, 0xdd, 0x9a, 0xe7, 0x7d, 0xde, 0x5f, - 0x9f, 0xd7, 0xaf, 0x13, 0x70, 0x58, 0x92, 0x2c, 0x9b, 0xe3, 0x9c, 0xb9, 0x94, 0x41, 0x86, 0x9c, - 0xa2, 0x24, 0x8c, 0x18, 0xba, 0x52, 0x87, 0x87, 0x09, 0x49, 0x88, 0x10, 0x5d, 0xfe, 0x4b, 0xd6, - 0x87, 0xa3, 0x84, 0x90, 0x24, 0x43, 0xae, 0x78, 0x0a, 0x17, 0xdf, 0x5c, 0x86, 0xe7, 0x88, 0x32, - 0x38, 0x2f, 0x2a, 0xc3, 0x31, 0x43, 0x79, 0x8c, 0x4a, 0x01, 0x86, 0x61, 0x84, 0x5d, 0xf6, 0xb3, - 0x40, 0xb4, 0x2a, 0x3e, 0x69, 0x14, 0x85, 0x7e, 0xab, 0x6a, 0x6f, 0x55, 0x2f, 0x61, 0x86, 0x63, - 0xc8, 0x48, 0x59, 0x39, 0x9e, 0x6e, 0x39, 0x0a, 0x58, 0xc2, 0xf9, 0xff, 0xf0, 0x62, 0xa8, 0x26, - 0x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xe7, 0x12, 0x19, 0x08, 0xa4, 0x09, 0xf3, 0x9c, 0x97, 0xdc, 0x4f, 0xd7, + 0x2b, 0x53, 0xbb, 0x59, 0x99, 0xda, 0xdf, 0x95, 0xa9, 0x5d, 0xad, 0xcd, 0xda, 0xcd, 0xda, 0xac, + 0xfd, 0x5e, 0x9b, 0xb5, 0xef, 0xef, 0x62, 0xcc, 0x92, 0x45, 0x60, 0x87, 0x64, 0xee, 0xa8, 0xff, + 0x23, 0xf5, 0x59, 0xbe, 0xe2, 0x81, 0x12, 0x82, 0x86, 0xb8, 0xa0, 0xc7, 0xff, 0x03, 0x00, 0x00, + 0xff, 0xff, 0x5c, 0xc7, 0x2e, 0xd8, 0xba, 0x04, 0x00, 0x00, } func (m *State) Marshal() (dAtA []byte, err error) { diff --git a/types/serialization.go b/types/serialization.go index d07bb5fa626..61019e10d73 100644 --- a/types/serialization.go +++ b/types/serialization.go @@ -6,7 +6,7 @@ import ( abci "github.com/tendermint/tendermint/abci/types" "github.com/tendermint/tendermint/types" - pb "github.com/celestiaorg/rollmint/types/pb/rollmint" + pb "github.com/rollkit/rollkit/types/pb/rollkit" ) // MarshalBinary encodes Block into binary form and returns it. diff --git a/types/serialization_test.go b/types/serialization_test.go index 206cc2f91e2..92eccfe548a 100644 --- a/types/serialization_test.go +++ b/types/serialization_test.go @@ -14,7 +14,7 @@ import ( tmversion "github.com/tendermint/tendermint/proto/tendermint/version" tmtypes "github.com/tendermint/tendermint/types" - pb "github.com/celestiaorg/rollmint/types/pb/rollmint" + pb "github.com/rollkit/rollkit/types/pb/rollkit" ) func TestBlockSerializationRoundTrip(t *testing.T) { @@ -119,7 +119,7 @@ func TestStateRoundTrip(t *testing.T) { Block: 123, App: 456, }, - Software: "rollmint", + Software: "rollkit", }, ChainID: "testchain", InitialHeight: 987, diff --git a/types/state.go b/types/state.go index 0becaa6bf72..8b2948f63a2 100644 --- a/types/state.go +++ b/types/state.go @@ -37,7 +37,7 @@ type State struct { LastBlockID types.BlockID LastBlockTime time.Time - // DAHeight identifies DA block containing the latest applied rollmint block. + // DAHeight identifies DA block containing the latest applied Rollkit block. DAHeight uint64 // In the MVP implementation, there will be only one Validator