Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
cleanup(repo) (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear authored Jan 24, 2023
1 parent a167e71 commit c8fb70f
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 27 deletions.
11 changes: 11 additions & 0 deletions build/mage/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ var (
statically = false
)

// Runs a series of commonly used commands.
func All() error {
cmds := []func() error{Generate, Format, Proto, Lint, Test}
for _, cmd := range cmds {
if err := cmd(); err != nil {
return err
}
}
return nil
}

// Runs `go build` on the entire project.
func Build() error {
PrintMageName()
Expand Down
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"github.com/berachain/stargazer/core/state/store/cachemulti"
"github.com/berachain/stargazer/core/state/types"
coretypes "github.com/berachain/stargazer/core/types"
"github.com/berachain/stargazer/crypto"
"github.com/berachain/stargazer/lib/common"
"github.com/berachain/stargazer/lib/crypto"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion core/state/statedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/berachain/stargazer/core/state"
"github.com/berachain/stargazer/core/state/types"
coretypes "github.com/berachain/stargazer/core/types"
"github.com/berachain/stargazer/crypto"
"github.com/berachain/stargazer/lib/common"
"github.com/berachain/stargazer/lib/crypto"
"github.com/berachain/stargazer/testutil"
)

Expand Down
1 change: 1 addition & 0 deletions core/types/imported.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ import (
type (
AccessList = types.AccessList
Log = types.Log
Receipt = types.Receipt
)
2 changes: 1 addition & 1 deletion core/vm/precompile/ethlog_factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"

"github.com/berachain/stargazer/core/vm/precompile"
"github.com/berachain/stargazer/crypto"
"github.com/berachain/stargazer/lib/common"
"github.com/berachain/stargazer/lib/crypto"
"github.com/berachain/stargazer/types/abi"
)

Expand Down
2 changes: 1 addition & 1 deletion crypto/crypto_test.go → lib/crypto/crypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ import (

func TestCrypto(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "crypto")
RunSpecs(t, "lib/crypto")
}
File renamed without changes.
File renamed without changes.
43 changes: 22 additions & 21 deletions crypto/secp256k1.pb.go → lib/crypto/secp256k1.pb.go

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

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

syntax = "proto3";

package stargazer.crypto.v1;
package stargazer.lib.crypto.v1;

option go_package = "github.com/berachain/stargazer/crypto";
option go_package = "github.com/berachain/stargazer/lib/crypto";

// `EthSecp256k1PubKey` defines a type alias for an `ecdsa.PublicKey` that implements
// Tendermint's `PubKey` interface. It represents the 33-byte compressed public
Expand Down

0 comments on commit c8fb70f

Please sign in to comment.