Skip to content

Commit a50836b

Browse files
committed
Merge branch 'main' into indexer-v2
2 parents ed4d3eb + 3db546a commit a50836b

File tree

10 files changed

+34
-73
lines changed

10 files changed

+34
-73
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ update-swagger-docs: statik
151151
### Protobuf ###
152152
###############################################################################
153153

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

app/app.go

+10-7
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ import (
102102

103103
// initia imports
104104

105-
initiaapplanes "github.com/initia-labs/initia/app/lanes"
106-
initiaappparams "github.com/initia-labs/initia/app/params"
105+
initialanes "github.com/initia-labs/initia/app/lanes"
106+
"github.com/initia-labs/initia/app/params"
107107
ibchooks "github.com/initia-labs/initia/x/ibc-hooks"
108108
ibchookskeeper "github.com/initia-labs/initia/x/ibc-hooks/keeper"
109109
ibchookstypes "github.com/initia-labs/initia/x/ibc-hooks/types"
@@ -118,6 +118,7 @@ import (
118118
// OPinit imports
119119
opchild "github.com/initia-labs/OPinit/x/opchild"
120120
opchildkeeper "github.com/initia-labs/OPinit/x/opchild/keeper"
121+
opchildlanes "github.com/initia-labs/OPinit/x/opchild/lanes"
121122
opchildtypes "github.com/initia-labs/OPinit/x/opchild/types"
122123

123124
// skip imports
@@ -144,7 +145,6 @@ import (
144145
apphook "github.com/initia-labs/miniwasm/app/hook"
145146
ibcwasmhooks "github.com/initia-labs/miniwasm/app/ibc-hooks"
146147
appkeepers "github.com/initia-labs/miniwasm/app/keepers"
147-
applanes "github.com/initia-labs/miniwasm/app/lanes"
148148
"github.com/initia-labs/miniwasm/x/bank"
149149
bankkeeper "github.com/initia-labs/miniwasm/x/bank/keeper"
150150
"github.com/initia-labs/miniwasm/x/tokenfactory"
@@ -279,7 +279,7 @@ func NewMinitiaApp(
279279
appOpts servertypes.AppOptions,
280280
baseAppOptions ...func(*baseapp.BaseApp),
281281
) *MinitiaApp {
282-
encodingConfig := initiaappparams.MakeEncodingConfig()
282+
encodingConfig := params.MakeEncodingConfig()
283283
std.RegisterLegacyAminoCodec(encodingConfig.Amino)
284284
std.RegisterInterfaces(encodingConfig.InterfaceRegistry)
285285

@@ -742,7 +742,7 @@ func NewMinitiaApp(
742742
app.keys[auctiontypes.StoreKey],
743743
app.AccountKeeper,
744744
app.BankKeeper,
745-
applanes.NewRewardsAddressProvider(authtypes.FeeCollectorName),
745+
opchildlanes.NewRewardsAddressProvider(authtypes.FeeCollectorName),
746746
authorityAddr,
747747
)
748748
app.AuctionKeeper = &auctionKeeper
@@ -924,7 +924,10 @@ func NewMinitiaApp(
924924
MaxTxs: 100,
925925
SignerExtractor: signerExtractor,
926926
}
927-
freeLane := initiaapplanes.NewFreeLane(freeConfig, applanes.FreeLaneMatchHandler())
927+
freeLane := initialanes.NewFreeLane(
928+
freeConfig,
929+
opchildlanes.NewFreeLaneMatchHandler(ac, app.OPChildKeeper).MatchHandler(),
930+
)
928931

929932
defaultLaneConfig := blockbase.LaneConfig{
930933
Logger: app.Logger(),
@@ -934,7 +937,7 @@ func NewMinitiaApp(
934937
MaxTxs: 0,
935938
SignerExtractor: signerExtractor,
936939
}
937-
defaultLane := initiaapplanes.NewDefaultLane(defaultLaneConfig)
940+
defaultLane := initialanes.NewDefaultLane(defaultLaneConfig)
938941

939942
lanes := []block.Lane{mevLane, freeLane, defaultLane}
940943
mempool, err := block.NewLanedMempool(app.Logger(), lanes)

app/lanes/free.go

-29
This file was deleted.

app/lanes/mev.go

-27
This file was deleted.

client/docs/statik/statik.go

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

client/docs/swagger-ui/swagger.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -36679,6 +36679,11 @@ paths:
3667936679
description: >-
3668036680
the account address of admin who can execute permissioned
3668136681
cosmos messages.
36682+
fee_whitelist:
36683+
type: array
36684+
items:
36685+
type: string
36686+
description: the list of addresses that are allowed to pay zero fee.
3668236687
description: >-
3668336688
QueryParamsResponse is response type for the Query/Params RPC
3668436689
method.
@@ -68414,6 +68419,11 @@ definitions:
6841468419
description: >-
6841568420
the account address of admin who can execute permissioned cosmos
6841668421
messages.
68422+
fee_whitelist:
68423+
type: array
68424+
items:
68425+
type: string
68426+
description: the list of addresses that are allowed to pay zero fee.
6841768427
description: Params defines the set of move parameters.
6841868428
opinit.opchild.v1.QueryBridgeInfoResponse:
6841968429
type: object
@@ -68523,6 +68533,11 @@ definitions:
6852368533
description: >-
6852468534
the account address of admin who can execute permissioned cosmos
6852568535
messages.
68536+
fee_whitelist:
68537+
type: array
68538+
items:
68539+
type: string
68540+
description: the list of addresses that are allowed to pay zero fee.
6852668541
description: QueryParamsResponse is response type for the Query/Params RPC method.
6852768542
opinit.opchild.v1.QueryValidatorResponse:
6852868543
type: object

cmd/minitiad/root.go

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ func genesisCommand(encodingConfig params.EncodingConfig, basicManager module.Ba
186186
cmd.AddCommand(
187187
genutilcli.AddGenesisAccountCmd(minitiaapp.DefaultNodeHome, ac),
188188
opchildcli.AddGenesisValidatorCmd(basicManager, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, minitiaapp.DefaultNodeHome),
189+
opchildcli.AddFeeWhitelistCmd(minitiaapp.DefaultNodeHome, ac),
189190
genutilcli.ValidateGenesisCmd(basicManager),
190191
genutilcli.GenTxCmd(basicManager, encodingConfig.TxConfig, banktypes.GenesisBalancesIterator{}, minitiaapp.DefaultNodeHome, ac),
191192
)

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ require (
3535
github.com/gorilla/mux v1.8.1
3636
github.com/grpc-ecosystem/grpc-gateway v1.16.0
3737
github.com/hashicorp/go-metrics v0.5.2
38-
github.com/initia-labs/OPinit v0.2.3
38+
github.com/initia-labs/OPinit v0.2.4
3939
github.com/initia-labs/initia v0.2.4
4040
github.com/initia-labs/kvindexer v0.0.0-20240418053137-f8c414401ba9
4141
github.com/pkg/errors v0.9.1
@@ -144,7 +144,7 @@ require (
144144
github.com/iancoleman/strcase v0.3.0 // indirect
145145
github.com/improbable-eng/grpc-web v0.15.0 // indirect
146146
github.com/inconshreveable/mousetrap v1.1.0 // indirect
147-
github.com/initia-labs/OPinit/api v0.0.0-20240414040035-1a494620f55e // indirect
147+
github.com/initia-labs/OPinit/api v0.2.4 // indirect
148148
github.com/jmespath/go-jmespath v0.4.0 // indirect
149149
github.com/jmhodges/levigo v1.0.0 // indirect
150150
github.com/klauspost/compress v1.17.7 // indirect

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,10 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
730730
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
731731
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
732732
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
733-
github.com/initia-labs/OPinit v0.2.3 h1:QWjYlHi2ibQ972PU1sJF03P3B/NWrZecVvrbm/CWbFE=
734-
github.com/initia-labs/OPinit v0.2.3/go.mod h1:1dn1iseG1S4wfXUtnb4mUkraJdL9/lWBQPpI+HbVzL0=
735-
github.com/initia-labs/OPinit/api v0.0.0-20240414040035-1a494620f55e h1:PxrLVIOox7+r2M1nV6KtlIZtVSEONdkh6oyklduJMHc=
736-
github.com/initia-labs/OPinit/api v0.0.0-20240414040035-1a494620f55e/go.mod h1:ASCaZChzhQenOxDLIBicEgi5drhMV3YjPxzV29nGvwM=
733+
github.com/initia-labs/OPinit v0.2.4 h1:91X75LD84wXeHF48u0+etcFC84/6xYT9YGbUYG5cebs=
734+
github.com/initia-labs/OPinit v0.2.4/go.mod h1:pr1BXooQo/vKwt1tGsaKMI0gH+bJ+FgUImE1uXwwGhc=
735+
github.com/initia-labs/OPinit/api v0.2.4 h1:W4OxVmCLwgcK5paZLTWeFt3EaknBG54+5IEB57lVgcY=
736+
github.com/initia-labs/OPinit/api v0.2.4/go.mod h1:wo2P41YSL9kQ+/PvHN5HIp5ICAmKvE39QQEQKbsxqm4=
737737
github.com/initia-labs/cometbft v0.0.0-20240404091408-238cddd887d3 h1:IX3182+BZ8ksVtAdIlU9ub01dmSAM9lvjHuUz9GWzjc=
738738
github.com/initia-labs/cometbft v0.0.0-20240404091408-238cddd887d3/go.mod h1:qv+nhSohSXLgU45IxHDGM5x4+bG4khsqqyn+e0iEbfo=
739739
github.com/initia-labs/cosmos-sdk v0.0.0-20240313050640-ff14560eeb21 h1:AwqnO5IR+3LWzjqR33MzOkce38ExWLtQwlqrLZVrMyw=

scripts/protoc-swagger-gen.sh

-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ cd ..
5555
# all the individual swagger files need to be configured in `config.json` for merging
5656
swagger-combine ./client/docs/config.json -o ./client/docs/swagger-ui/swagger.yaml -f yaml --continueOnConflictingPaths true --includeDefinitions true
5757

58-
ls -ltrR ./tmp-swagger-gen
59-
6058
# clean swagger files
6159
rm -rf ./tmp-swagger-gen
6260

0 commit comments

Comments
 (0)