Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump dependencies and add fee whitelist #3

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/[email protected]
with:
go-version: 1.21
go-version: 1.22
- uses: technote-space/get-diff-action@v5
id: git_diff
with:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.22
# for private repo access
- run: git config --global url.https://${GITHUB_ACCESS_TOKEN}:[email protected]/.insteadOf https://github.com/
- run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.21
go-version: 1.22
- name: Install openssl
run: sudo apt-get install libssl-dev
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-bullseye AS go-builder
FROM golang:1.22-bullseye AS go-builder

# Install minimum necessary dependencies, build Cosmos SDK, remove packages
RUN apt update
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ update-swagger-docs: statik
### Protobuf ###
###############################################################################

protoVer=0.13.0
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

Expand Down
18 changes: 11 additions & 7 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ import (

// initia imports

initiaapplanes "github.com/initia-labs/initia/app/lanes"
initiaappparams "github.com/initia-labs/initia/app/params"
initialanes "github.com/initia-labs/initia/app/lanes"
"github.com/initia-labs/initia/app/params"
ibchooks "github.com/initia-labs/initia/x/ibc-hooks"
ibchookskeeper "github.com/initia-labs/initia/x/ibc-hooks/keeper"
ibchookstypes "github.com/initia-labs/initia/x/ibc-hooks/types"
Expand All @@ -118,6 +118,7 @@ import (
// OPinit imports
opchild "github.com/initia-labs/OPinit/x/opchild"
opchildkeeper "github.com/initia-labs/OPinit/x/opchild/keeper"
opchildlanes "github.com/initia-labs/OPinit/x/opchild/lanes"
opchildtypes "github.com/initia-labs/OPinit/x/opchild/types"

// skip imports
Expand All @@ -139,7 +140,6 @@ import (
apphook "github.com/initia-labs/minievm/app/hook"
ibcevmhooks "github.com/initia-labs/minievm/app/ibc-hooks"
appkeepers "github.com/initia-labs/minievm/app/keepers"
applanes "github.com/initia-labs/minievm/app/lanes"

"github.com/initia-labs/minievm/x/bank"
bankkeeper "github.com/initia-labs/minievm/x/bank/keeper"
Expand Down Expand Up @@ -258,7 +258,7 @@ func NewMinitiaApp(
appOpts servertypes.AppOptions,
baseAppOptions ...func(*baseapp.BaseApp),
) *MinitiaApp {
encodingConfig := initiaappparams.MakeEncodingConfig()
encodingConfig := params.MakeEncodingConfig()
std.RegisterLegacyAminoCodec(encodingConfig.Amino)
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)

Expand Down Expand Up @@ -369,6 +369,7 @@ func NewMinitiaApp(
apphook.NewEVMBridgeHook(ac, app.EVMKeeper).Hook,
app.MsgServiceRouter(),
authorityAddr,
ac,
vc,
cc,
)
Expand Down Expand Up @@ -657,7 +658,7 @@ func NewMinitiaApp(
app.keys[auctiontypes.StoreKey],
app.AccountKeeper,
app.BankKeeper,
applanes.NewRewardsAddressProvider(authtypes.FeeCollectorName),
opchildlanes.NewRewardsAddressProvider(authtypes.FeeCollectorName),
authorityAddr,
)
app.AuctionKeeper = &auctionKeeper
Expand Down Expand Up @@ -814,7 +815,10 @@ func NewMinitiaApp(
MaxTxs: 100,
SignerExtractor: signerExtractor,
}
freeLane := initiaapplanes.NewFreeLane(freeConfig, applanes.FreeLaneMatchHandler())
freeLane := initialanes.NewFreeLane(
freeConfig,
opchildlanes.NewFreeLaneMatchHandler(ac, app.OPChildKeeper).MatchHandler(),
)

defaultLaneConfig := blockbase.LaneConfig{
Logger: app.Logger(),
Expand All @@ -824,7 +828,7 @@ func NewMinitiaApp(
MaxTxs: 0,
SignerExtractor: signerExtractor,
}
defaultLane := initiaapplanes.NewDefaultLane(defaultLaneConfig)
defaultLane := initialanes.NewDefaultLane(defaultLaneConfig)

lanes := []block.Lane{mevLane, freeLane, defaultLane}
mempool, err := block.NewLanedMempool(app.Logger(), lanes)
Expand Down
29 changes: 0 additions & 29 deletions app/lanes/free.go

This file was deleted.

27 changes: 0 additions & 27 deletions app/lanes/mev.go

This file was deleted.

3 changes: 2 additions & 1 deletion app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ func SetupWithGenesisAccounts(
// set validators and delegations
var opchildGenesis opchildtypes.GenesisState
app.AppCodec().MustUnmarshalJSON(genesisState[opchildtypes.ModuleName], &opchildGenesis)
opchildGenesis.Params.Admin = sdk.AccAddress(valSet.Validators[0].Address.Bytes()).String()
opchildGenesis.Params.BridgeExecutor = sdk.AccAddress(valSet.Validators[0].Address.Bytes()).String()

// set validators and delegations
opchildGenesis = *opchildtypes.NewGenesisState(opchildGenesis.Params, validators)
opchildGenesis = *opchildtypes.NewGenesisState(opchildGenesis.Params, validators, nil)
genesisState[opchildtypes.ModuleName] = app.AppCodec().MustMarshalJSON(&opchildGenesis)

// update total supply
Expand Down
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading
Loading