Skip to content

Commit

Permalink
moved lib/parachain to dot/parachain (#3429)
Browse files Browse the repository at this point in the history
  • Loading branch information
kishansagathiya committed Jul 15, 2024
1 parent 901b05b commit 8cc7a74
Show file tree
Hide file tree
Showing 47 changed files with 91 additions and 79 deletions.
2 changes: 1 addition & 1 deletion dot/core/mock_runtime_instance_test.go

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

2 changes: 1 addition & 1 deletion dot/mock_node_builder_test.go

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

2 changes: 1 addition & 1 deletion dot/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/ChainSafe/gossamer/dot/core"
"github.com/ChainSafe/gossamer/dot/digest"
"github.com/ChainSafe/gossamer/dot/network"
"github.com/ChainSafe/gossamer/dot/parachain"
"github.com/ChainSafe/gossamer/dot/rpc"
"github.com/ChainSafe/gossamer/dot/state"
"github.com/ChainSafe/gossamer/dot/state/pruner"
Expand All @@ -33,7 +34,6 @@ import (
"github.com/ChainSafe/gossamer/lib/genesis"
"github.com/ChainSafe/gossamer/lib/grandpa"
"github.com/ChainSafe/gossamer/lib/keystore"
"github.com/ChainSafe/gossamer/lib/parachain"
"github.com/ChainSafe/gossamer/lib/runtime"
"github.com/ChainSafe/gossamer/lib/services"
)
Expand Down
2 changes: 1 addition & 1 deletion dot/node_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/ChainSafe/gossamer/dot/core"
digest "github.com/ChainSafe/gossamer/dot/digest"
network "github.com/ChainSafe/gossamer/dot/network"
"github.com/ChainSafe/gossamer/dot/parachain"
"github.com/ChainSafe/gossamer/dot/state"
dotsync "github.com/ChainSafe/gossamer/dot/sync"
system "github.com/ChainSafe/gossamer/dot/system"
Expand All @@ -34,7 +35,6 @@ import (
"github.com/ChainSafe/gossamer/lib/genesis"
"github.com/ChainSafe/gossamer/lib/grandpa"
"github.com/ChainSafe/gossamer/lib/keystore"
"github.com/ChainSafe/gossamer/lib/parachain"
"github.com/ChainSafe/gossamer/lib/runtime"
wazero_runtime "github.com/ChainSafe/gossamer/lib/runtime/wazero"
"github.com/ChainSafe/gossamer/pkg/trie"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
"github.com/ChainSafe/gossamer/lib/crypto/sr25519"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
"github.com/stretchr/testify/require"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/stretchr/testify/require"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"errors"
"fmt"

parachainruntime "github.com/ChainSafe/gossamer/dot/parachain/runtime"
parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachainruntime "github.com/ChainSafe/gossamer/lib/parachain/runtime"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"

"github.com/ChainSafe/gossamer/pkg/scale"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os"
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
"github.com/ChainSafe/gossamer/lib/crypto/sr25519"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/stretchr/testify/require"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/stretchr/testify/require"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"

"github.com/ChainSafe/gossamer/dot/network"
parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
"github.com/libp2p/go-libp2p/core/peer"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"

parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
)

//go:embed testdata/collation_protocol.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

package parachain

//go:generate mockgen -destination=mocks_test.go -package=$GOPACKAGE . RuntimeInstance,PoVRequestor
//go:generate mockgen -destination=mocks_test.go -package=$GOPACKAGE . PoVRequestor
//go:generate mockgen -destination=mocks_runtime_test.go -package $GOPACKAGE github.com/ChainSafe/gossamer/dot/parachain/runtime RuntimeInstance

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

49 changes: 49 additions & 0 deletions dot/parachain/mocks_test.go

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

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"errors"
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
runtimewasmer "github.com/ChainSafe/gossamer/lib/runtime/wasmer"
"github.com/ChainSafe/gossamer/pkg/scale"
)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/parachain/statement.go → dot/parachain/statement.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"fmt"
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"fmt"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/ChainSafe/gossamer/pkg/scale"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package parachain
import (
"testing"

parachaintypes "github.com/ChainSafe/gossamer/dot/parachain/types"
"github.com/ChainSafe/gossamer/lib/common"
parachaintypes "github.com/ChainSafe/gossamer/lib/parachain/types"
"github.com/stretchr/testify/require"
)

Expand Down
Loading

0 comments on commit 8cc7a74

Please sign in to comment.