Skip to content

Commit

Permalink
Move libs to libs/celestia-app (cosmos#1118)
Browse files Browse the repository at this point in the history
<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview
Closes: cosmos#1119 

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [ ] New and updated code has appropriate documentation
- [ ] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [ ] Visual proof for any user facing features like CLI or
documentation updates
- [ ] Linked issues closed with keywords
  • Loading branch information
Manav-Aggarwal authored Jul 31, 2023
1 parent 4c903bc commit 509d0b1
Show file tree
Hide file tree
Showing 26 changed files with 23 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"math"

"github.com/rollkit/rollkit/libs/appconsts"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/testfactory"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/testfactory"
)

func SplitTxs(txs coretypes.Txs) (txShares []Share, err error) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package shares
import (
"fmt"

"github.com/rollkit/rollkit/libs/appconsts"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
)

// InfoByte is a byte with the following structure: the first 7 bits are
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/binary"
"fmt"

"github.com/rollkit/rollkit/libs/appconsts"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
)

// NewReservedBytes returns a byte slice of length
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/binary"
"errors"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

type Builder struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

func TestShareBuilderIsEmptyShare(t *testing.T) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package shares
import (
"fmt"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

// ShareSequence represents a contiguous sequence of shares that are part of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

func TestShareSequenceRawData(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions libs/shares/shares.go → libs/celestia-app/shares/shares.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/binary"
"fmt"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

// Share contains the raw share data (including namespace ID).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

// // TestPadFirstIndexedBlob ensures that we are adding padding to the first share
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

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

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

type ShareRange struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/rollkit/rollkit/libs/appconsts"
appns "github.com/rollkit/rollkit/libs/namespace"
"github.com/rollkit/rollkit/libs/celestia-app/appconsts"
appns "github.com/rollkit/rollkit/libs/celestia-app/namespace"
)

// fillShare returns a share filled with filler so that the share length
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/rollkit/rollkit/libs/testfactory"
"github.com/rollkit/rollkit/libs/celestia-app/testfactory"
)

// func FuzzBlobSharesUsed(f *testing.F) {
Expand Down
File renamed without changes.

0 comments on commit 509d0b1

Please sign in to comment.