Skip to content

deps: Bump SDK to version 0.50 and Celestia App to V4 #4219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 57 commits into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
c4a40ec
wip: using local pin of celestia-app
chatton Apr 1, 2025
a05901f
chore: pint to 2 different versions of celestia-core
chatton Apr 1, 2025
89fbe37
wip: pin upgrade and fix some errors
chatton Apr 1, 2025
9230eae
wip: use appconsts.BondDenom and use String() method on addresses
chatton Apr 1, 2025
9e09734
wip: fixing more build errors
chatton Apr 1, 2025
ef81b50
wip
chatton Apr 1, 2025
c326c21
wip: removed tendermint as direct dependency]
chatton Apr 1, 2025
0500917
wip: updating based on method signature
chatton Apr 1, 2025
ee8ea36
wip: remove commented local pin
chatton Apr 1, 2025
a8919ef
Merge pull request #1 from 01builders/cian/initial-go-mod-change
chatton Apr 1, 2025
af2b09b
refactor: make commit
chatton Apr 1, 2025
c322865
refactor: refactor MakeCommit since voteSet.MakeCommit() was removed
chatton Apr 1, 2025
d43ad83
trigger workflow
chatton Apr 1, 2025
25454ba
refactor: refactor NewCommit and MakeCommit to work with cometbft
chatton Apr 4, 2025
e099acb
refactor: update block service client
chatton Apr 4, 2025
4cea9ec
wip: misc build errors
chatton Apr 4, 2025
c57d21e
refactor: update block service client
chatton Apr 4, 2025
417183f
test: fixing unit tests
chatton Apr 4, 2025
cc39b97
wip: fixing some tests
chatton Apr 4, 2025
dc653a8
fix: explcitily use the GRPCListenAddress
chatton Apr 7, 2025
9b27b71
chore: revert to supressed logging
chatton Apr 7, 2025
ce7cf92
chore: removed waitForTxResponse
chatton Apr 7, 2025
f5c1182
chore: use test config encoding
chatton Apr 7, 2025
8c1624b
test: wait for blocks in TestCoreExchange_RequestHeaders
chatton Apr 7, 2025
5379bd0
wip: adding dedicated function to create comet rpc
chatton Apr 7, 2025
5aa214c
test: re-create block fetcher in test
chatton Apr 7, 2025
61c1a9c
test: adding new test for extended header, using comet grpc instead o…
chatton Apr 7, 2025
2a57e37
fix: update from Block to Sync
chatton Apr 7, 2025
4ef130d
fix: changing check for HasQ4ByHash
chatton Apr 7, 2025
889112d
chore: pr feedback
chatton Apr 8, 2025
d118176
test: fix unit tests
chatton Apr 8, 2025
1dc043e
test: fix integration tests (#5)
chatton Apr 9, 2025
6948724
refactor: revert to use BlockApi and single gRPC connection (#6)
chatton Apr 16, 2025
7f34553
chore: got tests passing with merge to main
chatton Apr 16, 2025
2f1e8f6
chore: remove TODO regarding BroadcastModeBlock
chatton Apr 16, 2025
843d926
chore: use Testconfig instead as it registers the types of every app …
chatton Apr 16, 2025
e4aa6f1
lint: lint imports and remove unused imports
chatton Apr 16, 2025
51632da
lint: lint with correct version
chatton Apr 16, 2025
0579a7e
fix: pass no-op logger to avoid panic in test teardown
chatton Apr 16, 2025
5255357
chore: merge main
chatton Apr 17, 2025
42b5e7f
chore: use MakeExtendedCommit instead of re-implementing
chatton Apr 17, 2025
ab8b295
chore: bump to app v4 rc0
chatton Apr 18, 2025
588aabc
chore: merge main
chatton Apr 18, 2025
4bd4e66
chore: use MakeConfig instead of MakeTestConfig
chatton Apr 18, 2025
ec73112
deps: bumping sdk and celestia-core deps
chatton Apr 22, 2025
95c8a1b
chore(deps): upgrade to celestia-app v4.0.0-rc1
rootulp Apr 23, 2025
e8e816a
chore: propagate context
chatton Apr 23, 2025
f0ba95f
fix(p2p/discovery,core/listener): fix timer deadlock (#4231)
walldiss Apr 22, 2025
5fbd67b
test: refactor test to check against empty eds
chatton Apr 24, 2025
f35b64e
lint: fix imports
chatton Apr 24, 2025
8e5793e
test: revert test logic
chatton Apr 24, 2025
7c68e4a
test: check override variable at runtime
chatton Apr 24, 2025
f42e238
Merge branch 'main' into sdk-v0.50.x
chatton Apr 25, 2025
efa7b86
chore: merge main
chatton Apr 28, 2025
a20af1f
chore: merge main
chatton Apr 29, 2025
38453ae
Merge branch 'main' into sdk-v0.50.x
chatton Apr 30, 2025
7f9863e
Merge branch 'main' into sdk-v0.50.x
chatton May 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/docgen/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func init() {
)

add(errors.New("error"))
add(state.Balance{Amount: sdk.NewInt(42), Denom: "utia"})
add(state.Balance{Amount: math.NewInt(42), Denom: "utia"})
add(share.EmptyEDS())
add(rsmt2d.Row)
add(network.Connected)
Expand Down
4 changes: 2 additions & 2 deletions api/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

sdk "github.com/cosmos/cosmos-sdk/types"
"cosmossdk.io/math"
"github.com/cristalhq/jwt/v5"
"github.com/golang/mock/gomock"
"github.com/libp2p/go-libp2p/core/network"
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestRPCCallsUnderlyingNode(t *testing.T) {
require.NoError(t, err)

expectedBalance := &state.Balance{
Amount: sdk.NewInt(100),
Amount: math.NewInt(100),
Denom: "utia",
}

Expand Down
7 changes: 2 additions & 5 deletions blob/blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ import (
"errors"
"fmt"

"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"
"github.com/celestiaorg/go-square/merkle"
"github.com/celestiaorg/go-square/v2/inclusion"
libshare "github.com/celestiaorg/go-square/v2/share"
"github.com/celestiaorg/nmt"
)

// appVersion is the current application version of celestia-app.
const appVersion = appconsts.LatestVersion

var errEmptyShares = errors.New("empty shares")

var subtreeRootThreshold = appconsts.SubtreeRootThreshold(appVersion)
var subtreeRootThreshold = appconsts.SubtreeRootThreshold

// The Proof is a set of nmt proofs that can be verified only through
// the included method (due to limitation of the nmt https://github.com/celestiaorg/nmt/issues/218).
Expand Down
4 changes: 2 additions & 2 deletions blob/commitment_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"fmt"

"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v3/pkg/proof"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v4/pkg/proof"
"github.com/celestiaorg/go-square/v2/inclusion"
libshare "github.com/celestiaorg/go-square/v2/share"
"github.com/celestiaorg/nmt"
Expand Down
2 changes: 1 addition & 1 deletion blob/repro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package blob
import (
"testing"

"github.com/celestiaorg/celestia-app/v3/pkg/proof"
"github.com/celestiaorg/celestia-app/v4/pkg/proof"
"github.com/celestiaorg/nmt"
"github.com/celestiaorg/nmt/pb"
)
Expand Down
4 changes: 2 additions & 2 deletions blob/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"go.opentelemetry.io/otel/codes"
"go.opentelemetry.io/otel/trace"

"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
pkgproof "github.com/celestiaorg/celestia-app/v3/pkg/proof"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"
pkgproof "github.com/celestiaorg/celestia-app/v4/pkg/proof"
"github.com/celestiaorg/go-square/v2/inclusion"
libshare "github.com/celestiaorg/go-square/v2/share"
"github.com/celestiaorg/nmt"
Expand Down
12 changes: 6 additions & 6 deletions blob/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ import (
"testing"
"time"

tmrand "github.com/cometbft/cometbft/libs/rand"
"github.com/golang/mock/gomock"
ds "github.com/ipfs/go-datastore"
ds_sync "github.com/ipfs/go-datastore/sync"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
tmrand "github.com/tendermint/tendermint/libs/rand"

"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
pkgproof "github.com/celestiaorg/celestia-app/v3/pkg/proof"
"github.com/celestiaorg/celestia-app/v3/pkg/wrapper"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"
pkgproof "github.com/celestiaorg/celestia-app/v4/pkg/proof"
"github.com/celestiaorg/celestia-app/v4/pkg/wrapper"
"github.com/celestiaorg/go-header/store"
"github.com/celestiaorg/go-square/merkle"
"github.com/celestiaorg/go-square/v2/inclusion"
Expand Down Expand Up @@ -977,7 +977,7 @@ func proveAndVerifyShareCommitments(t *testing.T, blobSize int) {
require.NoError(t, actualCommitmentProof.Validate())
valid, err := actualCommitmentProof.Verify(
dataRoot,
appconsts.DefaultSubtreeRootThreshold,
appconsts.SubtreeRootThreshold,
)
require.NoError(t, err)
require.True(t, valid)
Expand All @@ -987,7 +987,7 @@ func proveAndVerifyShareCommitments(t *testing.T, blobSize int) {
require.NoError(t, expectedCommitmentProof.Validate())
valid, err = expectedCommitmentProof.Verify(
dataRoot,
appconsts.DefaultSubtreeRootThreshold,
appconsts.SubtreeRootThreshold,
)
require.NoError(t, err)
require.True(t, valid)
Expand Down
8 changes: 4 additions & 4 deletions cmd/cel-key/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/types"
"github.com/spf13/cobra"

"github.com/celestiaorg/celestia-app/v3/app"
"github.com/celestiaorg/celestia-app/v3/app/encoding"
"github.com/celestiaorg/celestia-app/v4/app"
"github.com/celestiaorg/celestia-app/v4/app/encoding"
)

var encodingConfig = encoding.MakeConfig(app.ModuleEncodingRegisters...)
Expand All @@ -25,11 +25,11 @@ var initClientCtx = client.Context{}.
WithLegacyAmino(encodingConfig.Amino).
WithInput(os.Stdin).
WithAccountRetriever(types.AccountRetriever{}).
WithBroadcastMode(flags.BroadcastBlock).
WithBroadcastMode(flags.BroadcastSync).
WithHomeDir(app.DefaultNodeHome).
WithViper("CELESTIA")

var rootCmd = keys.Commands("~")
var rootCmd = keys.Commands()

func init() {
rootCmd.PersistentFlags().AddFlagSet(DirectoryFlags())
Expand Down
4 changes: 2 additions & 2 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/spf13/cobra"

"github.com/celestiaorg/celestia-app/v3/app"
"github.com/celestiaorg/celestia-app/v3/app/encoding"
"github.com/celestiaorg/celestia-app/v4/app"
"github.com/celestiaorg/celestia-app/v4/app/encoding"

"github.com/celestiaorg/celestia-node/nodebuilder"
)
Expand Down
17 changes: 12 additions & 5 deletions core/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"
"time"

"github.com/cometbft/cometbft/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/types"
)

func TestRemoteClient_Status(t *testing.T) {
Expand All @@ -23,8 +23,16 @@ func TestRemoteClient_StartBlockSubscription_And_GetBlock(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
t.Cleanup(cancel)

client := StartTestNode(t).Client
eventChan, err := client.Subscribe(ctx, newBlockSubscriber, newDataSignedBlockQuery)
node, wsClient := StartTestNodeWithConfigAndClient(t)
client := node.Client

err := wsClient.Start()
require.NoError(t, err)
t.Cleanup(func() {
require.NoError(t, wsClient.Stop())
})

eventChan, err := wsClient.Subscribe(ctx, newBlockSubscriber, newDataSignedBlockQuery)
require.NoError(t, err)

for i := 1; i <= 3; i++ {
Expand All @@ -38,6 +46,5 @@ func TestRemoteClient_StartBlockSubscription_And_GetBlock(t *testing.T) {
require.NoError(t, ctx.Err())
}
}
// unsubscribe to event channel
require.NoError(t, client.Unsubscribe(ctx, newBlockSubscriber, newDataSignedBlockQuery))
require.NoError(t, wsClient.Unsubscribe(ctx, newBlockSubscriber, newDataSignedBlockQuery))
}
21 changes: 13 additions & 8 deletions core/eds.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import (
"fmt"
"time"

"github.com/tendermint/tendermint/types"
coretypes "github.com/cometbft/cometbft/types"

"github.com/celestiaorg/celestia-app/v3/app"
"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v3/pkg/wrapper"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v4/pkg/wrapper"
libsquare "github.com/celestiaorg/go-square/v2"
libshare "github.com/celestiaorg/go-square/v2/share"
"github.com/celestiaorg/nmt"
Expand All @@ -21,19 +20,25 @@ import (
"github.com/celestiaorg/celestia-node/store"
)

// isEmptyBlockRef returns true if the application considers the given block data
// empty at a given version.
func isEmptyBlockRef(data *coretypes.Data) bool {
return len(data.Txs) == 0
}

// extendBlock extends the given block data, returning the resulting
// ExtendedDataSquare (EDS). If there are no transactions in the block,
// nil is returned in place of the eds.
func extendBlock(data *types.Data, appVersion uint64, options ...nmt.Option) (*rsmt2d.ExtendedDataSquare, error) {
if app.IsEmptyBlockRef(data, appVersion) {
func extendBlock(data *coretypes.Data, options ...nmt.Option) (*rsmt2d.ExtendedDataSquare, error) {
if isEmptyBlockRef(data) {
return share.EmptyEDS(), nil
}

// Construct the data square from the block's transactions
square, err := libsquare.Construct(
data.Txs.ToSliceOfBytes(),
appconsts.SquareSizeUpperBound(appVersion),
appconsts.SubtreeRootThreshold(appVersion),
appconsts.SquareSizeUpperBound,
appconsts.SubtreeRootThreshold,
)
if err != nil {
return nil, err
Expand Down
27 changes: 17 additions & 10 deletions core/eds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ package core
import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/cometbft/cometbft/types"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/types"

"github.com/celestiaorg/celestia-app/v3/app"
"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v4/pkg/da"
libshare "github.com/celestiaorg/go-square/v2/share"

"github.com/celestiaorg/celestia-node/share"
)
Expand All @@ -22,7 +21,7 @@ func TestTrulyEmptySquare(t *testing.T) {
SquareSize: 1,
}

eds, err := extendBlock(&data, appconsts.LatestVersion)
eds, err := extendBlock(&data)
require.NoError(t, err)
require.True(t, eds.Equals(share.EmptyEDS()))
}
Expand All @@ -38,15 +37,23 @@ func TestEmptySquareWithZeroTxs(t *testing.T) {
Txs: []types.Tx{},
}

eds, err := extendBlock(&data, appconsts.LatestVersion)
eds, err := extendBlock(&data)
require.NoError(t, err)
require.True(t, eds.Equals(share.EmptyEDS()))

// force extend the square using an empty block and compare with the min DAH
eds, err = app.ExtendBlock(data, appconsts.LatestVersion)
// create empty shares and extend them manually
emptyShares := libshare.TailPaddingShares(libshare.MinShareCount)
rawEmptyShares := libshare.ToBytes(emptyShares)

// extend the empty shares
manualEds, err := da.ExtendShares(rawEmptyShares)
require.NoError(t, err)

roots, err := share.NewAxisRoots(eds)
// verify the manually extended EDS equals the empty EDS
require.True(t, manualEds.Equals(share.EmptyEDS()))

// verify the roots hash matches the empty EDS roots hash
manualRoots, err := share.NewAxisRoots(manualEds)
require.NoError(t, err)
assert.Equal(t, share.EmptyEDSRoots().Hash(), roots.Hash())
require.Equal(t, share.EmptyEDSRoots().Hash(), manualRoots.Hash())
}
4 changes: 2 additions & 2 deletions core/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func (ce *Exchange) Get(ctx context.Context, hash libhead.Hash) (*header.Extende
return nil, fmt.Errorf("fetching block info for height %d: %w", &block.Height, err)
}

eds, err := extendBlock(&block.Data, block.Header.Version.App)
eds, err := extendBlock(&block.Data)
if err != nil {
return nil, fmt.Errorf("extending block data for height %d: %w", &block.Height, err)
}
Expand Down Expand Up @@ -170,7 +170,7 @@ func (ce *Exchange) getExtendedHeaderByHeight(ctx context.Context, height int64)
}
log.Debugw("fetched signed block from core", "height", b.Header.Height)

eds, err := extendBlock(b.Data, b.Header.Version.App)
eds, err := extendBlock(b.Data)
if err != nil {
return nil, fmt.Errorf("extending block data for height %d: %w", b.Header.Height, err)
}
Expand Down
3 changes: 2 additions & 1 deletion core/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/celestiaorg/celestia-app/v3/test/util/testnode"
"github.com/celestiaorg/celestia-app/v4/test/util/testnode"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/share"
Expand Down Expand Up @@ -44,6 +44,7 @@ func TestCoreExchange_RequestHeaders(t *testing.T) {
expectedLastHeightInRange := to - 1
expectedLenHeaders := to - expectedFirstHeightInRange

// request headers from height 1 to 20 [2:30)
_, err = cctx.WaitForHeightWithTimeout(int64(to), 10*time.Second)
require.NoError(t, err)

Expand Down
6 changes: 3 additions & 3 deletions core/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"io"
"time"

tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
coregrpc "github.com/cometbft/cometbft/rpc/grpc"
"github.com/cometbft/cometbft/types"
"github.com/gogo/protobuf/proto"
logging "github.com/ipfs/go-log/v2"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
coregrpc "github.com/tendermint/tendermint/rpc/grpc"
"github.com/tendermint/tendermint/types"
"google.golang.org/grpc"

libhead "github.com/celestiaorg/go-header"
Expand Down
2 changes: 1 addition & 1 deletion core/fetcher_no_race_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"testing"
"time"

"github.com/cometbft/cometbft/types"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/types"
)

// TestBlockFetcherHeaderValues tests that both the Commit and ValidatorSet
Expand Down
6 changes: 3 additions & 3 deletions core/header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"net"
"testing"

"github.com/cometbft/cometbft/libs/rand"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/rand"

"github.com/celestiaorg/celestia-app/v3/pkg/appconsts"
"github.com/celestiaorg/celestia-app/v4/pkg/appconsts"

"github.com/celestiaorg/celestia-node/header"
"github.com/celestiaorg/celestia-node/header/headertest"
Expand All @@ -37,7 +37,7 @@ func TestMakeExtendedHeaderForEmptyBlock(t *testing.T) {
comm, val, err := fetcher.GetBlockInfo(ctx, height)
require.NoError(t, err)

eds, err := extendBlock(b.Data, b.Header.Version.App)
eds, err := extendBlock(b.Data)
require.NoError(t, err)

headerExt, err := header.MakeExtendedHeader(b.Header, comm, val, eds)
Expand Down
4 changes: 2 additions & 2 deletions core/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"time"

"github.com/cometbft/cometbft/types"
pubsub "github.com/libp2p/go-libp2p-pubsub"
"github.com/tendermint/tendermint/types"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"

Expand Down Expand Up @@ -173,7 +173,7 @@ func (cl *Listener) handleNewSignedBlock(ctx context.Context, b types.EventDataS
attribute.Int64("height", b.Header.Height),
)

eds, err := extendBlock(&b.Data, b.Header.Version.App)
eds, err := extendBlock(&b.Data)
if err != nil {
return fmt.Errorf("extending block data: %w", err)
}
Expand Down
Loading
Loading