Skip to content

Commit

Permalink
refactor(rename): rename iliad to story
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonz0718 committed Aug 21, 2024
1 parent 24146a3 commit 3e8f7fb
Show file tree
Hide file tree
Showing 201 changed files with 503 additions and 503 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-verifypr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
with:
go-version: 'stable'
- name: "Verify PR"
run: go run github.com/storyprotocol/iliad/scripts/verifypr
run: go run github.com/piplabs/story/scripts/verifypr
2 changes: 1 addition & 1 deletion .github/workflows/pr-e2etest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Run devnet1 e2e test
run: |
go install github.com/storyprotocol/iliad/e2e
go install github.com/piplabs/story/e2e
cd e2e && ./run-multiple.sh manifests/devnet1.toml
- name: Upload failed logs
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linters-settings:
- prefix(cosmossdk.io) # Cosmos SDK import
- prefix(github.com) # Catch-all Github direct imports
- prefix(github.com/storyprotocol) # Story
- prefix(github.com/storyprotocol/iliad) # Iliad
- prefix(github.com/piplabs/story) # Iliad
- default # All other imports not matched to another section type.
- blank # Blank imports
custom-order: true
Expand Down Expand Up @@ -80,7 +80,7 @@ linters-settings:
skip-regexp: internal_test\.go # Allow internal tests
wrapcheck:
ignoreSigs:
- github.com/storyprotocol/iliad/
- github.com/piplabs/story/
- google.golang.org/grpc/status # No point wrapping gRPC/network errors.
- github.com/ethereum/go-ethereum # We wrap these automatically in lib/ethclient
- "Errorf"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ We are always in need of help, be it fixing documentation, reporting bugs or wri
Look at places where you feel best coding practices aren't followed, code refactoring is needed or tests are missing.

If you have questions about the development process,
feel free to [file an issue](https://github.com/storyprotocol/iliad/issues/new).
feel free to [file an issue](https://github.com/piplabs/story/issues/new).

## Code Review

Expand All @@ -66,7 +66,7 @@ To make it easier for your PR to receive reviews, consider the reviewers will ne
* write [good commit messages](https://chris.beams.io/posts/git-commit/).
* break large changes into a logical series of smaller patches which individually make easily understandable changes, and in aggregate solve a broader issue.

[1]: https://github.com/storyprotocol/iliad/issues
[1]: https://github.com/piplabs/story/issues
[2]: https://chris.beams.io/posts/git-commit/#seven-rules
[3]: https://www.conventionalcommits.org/en/v1.0.0
[4]: https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional#type-enum
2 changes: 1 addition & 1 deletion buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: v1
name: buf.build/storyprotocol/iliad
name: buf.build/piplabs/story
deps:
- buf.build/protocolbuffers/wellknowntypes
- buf.build/cosmos/cosmos-sdk
Expand Down
2 changes: 1 addition & 1 deletion client/app/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/log"
)

type postFinalizeCallback func(sdk.Context) error
Expand Down
8 changes: 4 additions & 4 deletions client/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
distrkeeper "github.com/cosmos/cosmos-sdk/x/distribution/keeper"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"

"github.com/storyprotocol/iliad/client/app/keepers"
"github.com/storyprotocol/iliad/client/comet"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/ethclient"
"github.com/piplabs/story/client/app/keepers"
"github.com/piplabs/story/client/comet"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/ethclient"

_ "cosmossdk.io/api/cosmos/tx/config/v1" // import for side-effects
_ "cosmossdk.io/x/upgrade" // import for side-effects
Expand Down
8 changes: 4 additions & 4 deletions client/app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"

evmenginemodule "github.com/storyprotocol/iliad/client/x/evmengine/module"
evmenginetypes "github.com/storyprotocol/iliad/client/x/evmengine/types"
evmstakingmodule "github.com/storyprotocol/iliad/client/x/evmstaking/module"
evmstakingtypes "github.com/storyprotocol/iliad/client/x/evmstaking/types"
evmenginemodule "github.com/piplabs/story/client/x/evmengine/module"
evmenginetypes "github.com/piplabs/story/client/x/evmengine/types"
evmstakingmodule "github.com/piplabs/story/client/x/evmstaking/module"
evmstakingtypes "github.com/piplabs/story/client/x/evmstaking/types"
)

// Bech32HRP is the human-readable-part of the Bech32 address format.
Expand Down
4 changes: 2 additions & 2 deletions client/app/cmtlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

cmtlog "github.com/cometbft/cometbft/libs/log"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
)

var _ cmtlog.Logger = (*cmtLogger)(nil)
Expand Down
4 changes: 2 additions & 2 deletions client/app/keepers/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper"
stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"

evmengkeeper "github.com/storyprotocol/iliad/client/x/evmengine/keeper"
evmstakingkeeper "github.com/storyprotocol/iliad/client/x/evmstaking/keeper"
evmengkeeper "github.com/piplabs/story/client/x/evmengine/keeper"
evmstakingkeeper "github.com/piplabs/story/client/x/evmstaking/keeper"
)

// Keepers includes all possible keepers. We separated it into a separate struct to make it easier to scaffold upgrades.
Expand Down
4 changes: 2 additions & 2 deletions client/app/privkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/cometbft/cometbft/privval"
"github.com/ethereum/go-ethereum/accounts/keystore"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/k1util"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/k1util"
)

// loadPrivVal returns a privval.FilePV by loading either a CometBFT priv validator key or an Ethereum keystore file.
Expand Down
4 changes: 2 additions & 2 deletions client/app/prouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
)

// makeProcessProposalHandler creates a new process proposal handler.
Expand Down
4 changes: 2 additions & 2 deletions client/app/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
dbm "github.com/cosmos/cosmos-db"
"github.com/ethereum/go-ethereum/common"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
)

func Rollback(ctx context.Context, cfg Config, removeBlock bool) error {
Expand Down
2 changes: 1 addition & 1 deletion client/app/sdklog.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

sdklog "cosmossdk.io/log"

"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/log"
)

var _ sdklog.Logger = sdkLogger{}
Expand Down
20 changes: 10 additions & 10 deletions client/app/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ import (
sdktelemetry "github.com/cosmos/cosmos-sdk/telemetry"
"github.com/cosmos/cosmos-sdk/types/mempool"

"github.com/storyprotocol/iliad/client/comet"
iliadcfg "github.com/storyprotocol/iliad/client/config"
apisvr "github.com/storyprotocol/iliad/client/server"
"github.com/storyprotocol/iliad/lib/buildinfo"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/ethclient"
"github.com/storyprotocol/iliad/lib/k1util"
"github.com/storyprotocol/iliad/lib/log"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/tracer"
"github.com/piplabs/story/client/comet"
iliadcfg "github.com/piplabs/story/client/config"
apisvr "github.com/piplabs/story/client/server"
"github.com/piplabs/story/lib/buildinfo"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/ethclient"
"github.com/piplabs/story/lib/k1util"
"github.com/piplabs/story/lib/log"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/tracer"
)

// Config wraps the iliad (app) and comet (client) configurations.
Expand Down
2 changes: 1 addition & 1 deletion client/app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/storyprotocol/iliad/client/app/upgrades"
"github.com/piplabs/story/client/app/upgrades"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions client/app/upgrades/historical.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
consensusparamtypes "github.com/cosmos/cosmos-sdk/x/consensus/types"

"github.com/storyprotocol/iliad/client/app/keepers"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/piplabs/story/client/app/keepers"
"github.com/piplabs/story/lib/errors"
)

// defaultUpgradeHandler should be used for upgrades that only update the `ConsensusVersion`.
Expand Down
2 changes: 1 addition & 1 deletion client/app/upgrades/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"

"github.com/storyprotocol/iliad/client/app/keepers"
"github.com/piplabs/story/client/app/keepers"
)

// Upgrade defines a struct containing necessary fields that a MsgSoftwareUpgrade
Expand Down
10 changes: 5 additions & 5 deletions client/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (

"github.com/spf13/cobra"

"github.com/storyprotocol/iliad/client/app"
iliadcfg "github.com/storyprotocol/iliad/client/config"
"github.com/storyprotocol/iliad/lib/buildinfo"
libcmd "github.com/storyprotocol/iliad/lib/cmd"
"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/client/app"
iliadcfg "github.com/piplabs/story/client/config"
"github.com/piplabs/story/lib/buildinfo"
libcmd "github.com/piplabs/story/lib/cmd"
"github.com/piplabs/story/lib/log"
)

// New returns a new root cobra command that handles our command line tool.
Expand Down
4 changes: 2 additions & 2 deletions client/cmd/cometconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
cfg "github.com/cometbft/cometbft/config"
"github.com/spf13/viper"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
)

//nolint:gochecknoglobals // Overrides cometbft default moniker for testing.
Expand Down
8 changes: 4 additions & 4 deletions client/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"

iliadcfg "github.com/storyprotocol/iliad/client/config"
libcmd "github.com/storyprotocol/iliad/lib/cmd"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/tracer"
iliadcfg "github.com/piplabs/story/client/config"
libcmd "github.com/piplabs/story/lib/cmd"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/tracer"
)

func bindRunFlags(cmd *cobra.Command, cfg *iliadcfg.Config) {
Expand Down
4 changes: 2 additions & 2 deletions client/cmd/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
cmttime "github.com/cometbft/cometbft/types/time"
cosmostypes "github.com/cosmos/cosmos-sdk/types"

"github.com/storyprotocol/iliad/client/genutil"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/piplabs/story/client/genutil"
"github.com/piplabs/story/lib/netconf"
)

func MakeGenesis(network netconf.ID, valPubKeys ...crypto.PubKey) (*types.GenesisDoc, error) {
Expand Down
12 changes: 6 additions & 6 deletions client/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/spf13/cobra"

iliadcfg "github.com/storyprotocol/iliad/client/config"
"github.com/storyprotocol/iliad/client/genutil"
libcmd "github.com/storyprotocol/iliad/lib/cmd"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/storyprotocol/iliad/lib/netconf"
iliadcfg "github.com/piplabs/story/client/config"
"github.com/piplabs/story/client/genutil"
libcmd "github.com/piplabs/story/lib/cmd"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
"github.com/piplabs/story/lib/netconf"
)

// InitConfig is the config for the init command.
Expand Down
4 changes: 2 additions & 2 deletions client/cmd/init_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/stretchr/testify/require"

"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/tutil"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/tutil"
)

//go:generate go test . -run TestInit -golden
Expand Down
4 changes: 2 additions & 2 deletions client/cmd/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/joho/godotenv"
"github.com/spf13/cobra"

"github.com/storyprotocol/iliad/client/config"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/piplabs/story/client/config"
"github.com/piplabs/story/lib/errors"

_ "embed"
)
Expand Down
2 changes: 1 addition & 1 deletion client/collections/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"cosmossdk.io/collections"
"cosmossdk.io/collections/codec"

ierrors "github.com/storyprotocol/iliad/lib/errors"
ierrors "github.com/piplabs/story/lib/errors"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions client/comet/comet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
cmttypes "github.com/cometbft/cometbft/types"
"github.com/ethereum/go-ethereum/common"

"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/k1util"
"github.com/storyprotocol/iliad/lib/tracer"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/k1util"
"github.com/piplabs/story/lib/tracer"

"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
Expand Down
10 changes: 5 additions & 5 deletions client/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
cmtos "github.com/cometbft/cometbft/libs/os"
db "github.com/cosmos/cosmos-db"

"github.com/storyprotocol/iliad/lib/buildinfo"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/log"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/tracer"
"github.com/piplabs/story/lib/buildinfo"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/log"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/tracer"

_ "embed"
)
Expand Down
8 changes: 4 additions & 4 deletions client/genutil/evm/evm.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/params"

"github.com/storyprotocol/iliad/client/genutil/evm/predeploys"
"github.com/storyprotocol/iliad/lib/anvil"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/piplabs/story/client/genutil/evm/predeploys"
"github.com/piplabs/story/lib/anvil"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/netconf"
)

//nolint:unused // added for potential future usage
Expand Down
8 changes: 4 additions & 4 deletions client/genutil/evm/evm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (

"github.com/stretchr/testify/require"

"github.com/storyprotocol/iliad/client/genutil/evm"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/tutil"
"github.com/piplabs/story/client/genutil/evm"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/tutil"

_ "github.com/storyprotocol/iliad/client/app" // To init SDK config.
_ "github.com/piplabs/story/client/app" // To init SDK config.
)

//go:generate go test . -golden -clean
Expand Down
10 changes: 5 additions & 5 deletions client/genutil/evm/predeploys/predeploys.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"

"github.com/storyprotocol/iliad/client/genutil/evm/state"
"github.com/storyprotocol/iliad/contracts/bindings"
"github.com/storyprotocol/iliad/lib/errors"
"github.com/storyprotocol/iliad/lib/netconf"
"github.com/storyprotocol/iliad/lib/solc"
"github.com/piplabs/story/client/genutil/evm/state"
"github.com/piplabs/story/contracts/bindings"
"github.com/piplabs/story/lib/errors"
"github.com/piplabs/story/lib/netconf"
"github.com/piplabs/story/lib/solc"
)

const (
Expand Down
Loading

0 comments on commit 3e8f7fb

Please sign in to comment.