Skip to content

Commit fd78256

Browse files
authored
chore: simplify directory structure (celestiaorg#19)
1 parent 414d7f7 commit fd78256

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+120
-120
lines changed

pkg/blob/blob.go blob/blob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
math "math"
88
"sort"
99

10-
"github.com/celestiaorg/go-square/pkg/namespace"
10+
"github.com/celestiaorg/go-square/namespace"
1111
"google.golang.org/protobuf/proto"
1212
)
1313

pkg/blob/blob.pb.go blob/blob.pb.go

+62-62
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/blob/blob.proto blob/blob.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
syntax = "proto3";
22
package pkg.blob;
33

4-
option go_package = "github.com/celestiaorg/go-square/pkg/blob";
4+
option go_package = "github.com/celestiaorg/go-square/blob";
55

66
// Blob (named after binary large object) is a chunk of data submitted by a user
77
// to be published to the Celestia blockchain. The data of a Blob is published

pkg/inclusion/blob_share_commitment_rules.go inclusion/blob_share_commitment_rules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package inclusion
33
import (
44
"math"
55

6-
"github.com/celestiaorg/go-square/pkg/shares"
6+
"github.com/celestiaorg/go-square/shares"
77
"golang.org/x/exp/constraints"
88
)
99

pkg/inclusion/blob_share_commitment_rules_test.go inclusion/blob_share_commitment_rules_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/celestiaorg/go-square/pkg/inclusion"
8-
"github.com/celestiaorg/go-square/pkg/shares"
7+
"github.com/celestiaorg/go-square/inclusion"
8+
"github.com/celestiaorg/go-square/shares"
99
"github.com/stretchr/testify/assert"
1010
)
1111

pkg/inclusion/commitment.go inclusion/commitment.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package inclusion
33
import (
44
"crypto/sha256"
55

6-
"github.com/celestiaorg/go-square/pkg/blob"
7-
ns "github.com/celestiaorg/go-square/pkg/namespace"
8-
sh "github.com/celestiaorg/go-square/pkg/shares"
6+
"github.com/celestiaorg/go-square/blob"
7+
ns "github.com/celestiaorg/go-square/namespace"
8+
sh "github.com/celestiaorg/go-square/shares"
99
"github.com/celestiaorg/nmt"
1010
)
1111

pkg/inclusion/commitment_test.go inclusion/commitment_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"crypto/sha256"
66
"testing"
77

8-
"github.com/celestiaorg/go-square/pkg/blob"
9-
"github.com/celestiaorg/go-square/pkg/inclusion"
10-
"github.com/celestiaorg/go-square/pkg/namespace"
11-
"github.com/celestiaorg/go-square/pkg/shares"
8+
"github.com/celestiaorg/go-square/blob"
9+
"github.com/celestiaorg/go-square/inclusion"
10+
"github.com/celestiaorg/go-square/namespace"
11+
"github.com/celestiaorg/go-square/shares"
1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/require"
1414
)

internal/test/factory.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"fmt"
77
"math/rand"
88

9-
"github.com/celestiaorg/go-square/pkg/blob"
10-
"github.com/celestiaorg/go-square/pkg/namespace"
11-
"github.com/celestiaorg/go-square/pkg/shares"
9+
"github.com/celestiaorg/go-square/blob"
10+
"github.com/celestiaorg/go-square/namespace"
11+
"github.com/celestiaorg/go-square/shares"
1212
)
1313

1414
var DefaultTestNamespace = namespace.MustNewV0([]byte("test"))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

pkg/shares/compact_shares_test.go shares/compact_shares_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/celestiaorg/go-square/pkg/namespace"
10+
"github.com/celestiaorg/go-square/namespace"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
1313
)

pkg/shares/consts.go shares/consts.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package shares
22

33
import (
4-
"github.com/celestiaorg/go-square/pkg/namespace"
4+
"github.com/celestiaorg/go-square/namespace"
55
)
66

77
const (
File renamed without changes.

pkg/shares/counter_test.go shares/counter_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"fmt"
66
"testing"
77

8-
"github.com/celestiaorg/go-square/pkg/namespace"
9-
"github.com/celestiaorg/go-square/pkg/shares"
8+
"github.com/celestiaorg/go-square/namespace"
9+
"github.com/celestiaorg/go-square/shares"
1010
"github.com/stretchr/testify/require"
1111
)
1212

File renamed without changes.
File renamed without changes.

pkg/shares/namespace.go shares/namespace.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package shares
33
import (
44
"fmt"
55

6-
"github.com/celestiaorg/go-square/pkg/namespace"
6+
"github.com/celestiaorg/go-square/namespace"
77
)
88

99
// GetShareRangeForNamespace returns all shares that belong to a given

pkg/shares/padding.go shares/padding.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"errors"
66

7-
"github.com/celestiaorg/go-square/pkg/namespace"
7+
"github.com/celestiaorg/go-square/namespace"
88
)
99

1010
// NamespacePaddingShare returns a share that acts as padding. Namespace padding

pkg/shares/padding_test.go shares/padding_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"testing"
66

7-
"github.com/celestiaorg/go-square/pkg/namespace"
7+
"github.com/celestiaorg/go-square/namespace"
88
"github.com/stretchr/testify/assert"
99
"github.com/stretchr/testify/require"
1010
)

pkg/shares/parse.go shares/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"fmt"
66

7-
"github.com/celestiaorg/go-square/pkg/blob"
7+
"github.com/celestiaorg/go-square/blob"
88
)
99

1010
// ParseTxs collects all of the transactions from the shares provided
File renamed without changes.

0 commit comments

Comments
 (0)