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

feat: module circuit breaker #14521

Merged
merged 120 commits into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from 108 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
8b3bb85
add preliminary spec for circuit breaker
tac0turtle Jan 4, 2023
decb5f8
Merge branch 'main' into marko/circuit_spec
tac0turtle Jan 4, 2023
3ccf721
Apply suggestions from code review
tac0turtle Jan 4, 2023
69a6d94
update proto dir
julienrbrt Jan 4, 2023
f00d72f
updates
julienrbrt Jan 4, 2023
02d5c4a
creation of keeper and update to types
samricotta Jan 5, 2023
d4da506
some changes
tac0turtle Jan 5, 2023
6d5a6d1
add genesis state
tac0turtle Jan 5, 2023
ea85182
msgs
tac0turtle Jan 5, 2023
66089c3
mod tidy
tac0turtle Jan 5, 2023
8aae1e8
Keeper and msgServer functions
samricotta Jan 10, 2023
6344e3b
Implementation of ResetCircuitBreaker
samricotta Jan 11, 2023
d253e64
update msg server and small updates to keeper
samricotta Jan 16, 2023
8613aad
keeper_test and msg_server updates
samricotta Jan 17, 2023
77ffb5e
Merge branch 'main' into pair/circuit_module
tac0turtle Jan 17, 2023
1e5babd
updates to test
samricotta Jan 18, 2023
b0bbe25
Merge branch 'main' into pair/circuit_module
samricotta Jan 18, 2023
2c9d722
remove codec from module
tac0turtle Jan 18, 2023
33a230d
updates to fix tests
samricotta Jan 19, 2023
c242f86
updates to genesis and msg server
samricotta Jan 23, 2023
594e214
Merge branch 'main' into pair/circuit_module
tac0turtle Jan 31, 2023
1f6b741
Merge branch 'main' into pair/circuit_module
tac0turtle Feb 1, 2023
f614387
wip
samricotta Feb 1, 2023
6912ed4
fixes test
samricotta Feb 2, 2023
8e277a2
update test
samricotta Feb 7, 2023
c553a35
small issues fixed
samricotta Feb 7, 2023
618cdc3
Merge branch 'main' into pair/circuit_module
samricotta Feb 7, 2023
7745bf2
updates to tests
samricotta Feb 7, 2023
34c4617
Merge branch 'main' into pair/circuit_module
samricotta Feb 12, 2023
807de1e
Update to Circuitbreaker, mv to baseapp
samricotta Feb 14, 2023
1066b36
Merge branch 'main' into pair/circuit_module
samricotta Feb 14, 2023
a4c9ca3
circuit go mod and sum
samricotta Feb 14, 2023
7fefb45
change to wording
samricotta Feb 14, 2023
7be5ff9
add code for message router circuit breaker
tac0turtle Feb 19, 2023
0162eac
add ante handler
tac0turtle Feb 19, 2023
6afbdfc
Merge branch 'main' into pair/circuit_module
tac0turtle Feb 19, 2023
07ac820
update to circuit test and app.go
samricotta Feb 19, 2023
ab8c2d6
update to circuit decorator tests plus cosmetic reverts
samricotta Feb 19, 2023
f1095ea
Merge branch 'main' into pair/circuit_module
samricotta Feb 19, 2023
987e088
Update go.mod
samricotta Feb 20, 2023
a3b24d0
udpate gomod/sum
samricotta Feb 20, 2023
c9573ef
Merge branch 'main' into pair/circuit_module
samricotta Feb 20, 2023
b5737be
add init genesis and export to module.go
tac0turtle Feb 20, 2023
37e7946
add custom antehandler
tac0turtle Feb 20, 2023
64d3fdc
add query server
tac0turtle Feb 20, 2023
cc58018
Merge branch 'main' into pair/circuit_module
tac0turtle Feb 20, 2023
6a0aef7
Merge branch 'main' into pair/circuit_module
tac0turtle Feb 21, 2023
1aebf3d
add replace tags
tac0turtle Feb 21, 2023
8c719b6
add todo list
tac0turtle Feb 21, 2023
5a0d775
move handler
tac0turtle Feb 22, 2023
3f57fb1
Merge branch 'main' into pair/circuit_module
tac0turtle Feb 27, 2023
fb60cbe
add cli queries
tac0turtle Feb 27, 2023
b78e0b8
add cli tx commands
tac0turtle Feb 27, 2023
4762f45
complete module.go
tac0turtle Feb 27, 2023
bb7e19e
update todo
tac0turtle Feb 27, 2023
8fa348c
wip
samricotta Feb 27, 2023
1b6d4f7
Update to tests
samricotta Feb 27, 2023
391628a
query tests plus keeper fix
samricotta Feb 27, 2023
cdace3e
updates to tests
samricotta Mar 6, 2023
4df0c3a
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 8, 2023
c298035
address decode
tac0turtle Mar 8, 2023
8298f99
add address codec
tac0turtle Mar 9, 2023
6356da6
pass in codec
tac0turtle Mar 9, 2023
0ce286a
updates
tac0turtle Mar 9, 2023
213c52c
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 9, 2023
4cd5771
test
tac0turtle Mar 9, 2023
0ec9ef3
pass in address codec
tac0turtle Mar 9, 2023
054c31e
add in authorize message tests
tac0turtle Mar 9, 2023
01a491a
comments
tac0turtle Mar 10, 2023
915eb40
add tests for tripping
tac0turtle Mar 10, 2023
96696b9
add tests for tripping
tac0turtle Mar 10, 2023
28e0de5
linting
tac0turtle Mar 10, 2023
47d3a23
linting
tac0turtle Mar 10, 2023
3b1f3ef
comments
tac0turtle Mar 10, 2023
47b9e44
Update baseapp/msg_service_router.go
tac0turtle Mar 12, 2023
4928288
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 13, 2023
126a2c6
some more
tac0turtle Mar 13, 2023
20b7ca1
address comments
tac0turtle Mar 13, 2023
92fd5c3
address comments
tac0turtle Mar 13, 2023
39f6f4e
address comments
tac0turtle Mar 13, 2023
d8985e7
add depinject
tac0turtle Mar 13, 2023
4404edf
address comments
tac0turtle Mar 13, 2023
4574664
address some issues
tac0turtle Mar 16, 2023
37699d4
address comments
tac0turtle Mar 17, 2023
c1fb6a2
consensus version
tac0turtle Mar 17, 2023
0659c18
some more
tac0turtle Mar 17, 2023
81b43fe
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 21, 2023
0110706
address feedback
tac0turtle Mar 21, 2023
70d006c
vanity url
tac0turtle Mar 21, 2023
c263fa2
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 21, 2023
835db70
build
tac0turtle Mar 21, 2023
0d90ee1
build
tac0turtle Mar 21, 2023
9303a9e
fix build
tac0turtle Mar 21, 2023
5bed21e
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 23, 2023
2536d41
add back go work example
tac0turtle Mar 23, 2023
b9e5df5
attempt
tac0turtle Mar 23, 2023
bd73074
cli tx_test
tac0turtle Mar 24, 2023
6b84886
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 28, 2023
7f9a050
address import issues
tac0turtle Mar 28, 2023
8310ed4
get app v2 working
tac0turtle Mar 28, 2023
81e786d
Merge branch 'main' into pair/circuit_module
tac0turtle Mar 30, 2023
21621d4
fix
tac0turtle Mar 31, 2023
cd15c86
Merge branch 'main' into pair/circuit_module
tac0turtle Apr 5, 2023
09a10f9
address comments
tac0turtle Apr 5, 2023
384944e
Merge branch 'main' into pair/circuit_module
tac0turtle Apr 7, 2023
83773ef
fix build
tac0turtle Apr 7, 2023
a5b2b6c
Merge branch 'main' into pair/circuit_module
tac0turtle Apr 11, 2023
ac9efed
build
tac0turtle Apr 11, 2023
c754669
remove replace
tac0turtle Apr 11, 2023
1f3bfde
Merge branch 'main' into pair/circuit_module
tac0turtle Apr 24, 2023
ca8210f
Merge branch 'main' into pair/circuit_module
tac0turtle May 1, 2023
6b86ed9
move init and variable in codec.go, remove validatebasics
tac0turtle May 1, 2023
c47ec7d
group variables
tac0turtle May 1, 2023
ae41040
Merge branch 'main' into pair/circuit_module
tac0turtle May 12, 2023
0b562ba
Merge branch 'main' into pair/circuit_module
tac0turtle May 15, 2023
8b60009
lint and e2e test fixes
tac0turtle May 15, 2023
9bf59e8
fix circuit tests
tac0turtle May 15, 2023
0b1854b
lint
tac0turtle May 15, 2023
c979068
lint
tac0turtle May 15, 2023
effff0d
fix lint
tac0turtle May 15, 2023
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
6 changes: 6 additions & 0 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,12 @@ func (app *BaseApp) setState(mode runTxMode, header cmtproto.Header) {
}
}

// SetCircuitBreaker sets the circuit breaker for the BaseApp.
// The circuit breaker is checked on every message execution to verify if a transaction should be executed or not.
func (app *BaseApp) SetCircuitBreaker(cb CircuitBreaker) {
tac0turtle marked this conversation as resolved.
Show resolved Hide resolved
app.msgServiceRouter.SetCircuit(cb)
Comment on lines 431 to +437
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change potentially affects state.

Call sequence:

(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).setState (baseapp/baseapp.go:413)
(*github.com/cosmos/cosmos-sdk/baseapp.BaseApp).BeginBlock (baseapp/baseapp.go:166)

}

// GetConsensusParams returns the current consensus parameters from the BaseApp's
// ParamStore. If the BaseApp has no ParamStore defined, nil is returned.
func (app *BaseApp) GetConsensusParams(ctx sdk.Context) cmtproto.ConsensusParams {
Expand Down
10 changes: 10 additions & 0 deletions baseapp/circuit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package baseapp

import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// CircuitBreaker is an interface that defines the methods for a circuit breaker.
type CircuitBreaker interface {
IsAllowed(ctx sdk.Context, typeURL string) bool
}
12 changes: 12 additions & 0 deletions baseapp/msg_service_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type MessageRouter interface {
type MsgServiceRouter struct {
interfaceRegistry codectypes.InterfaceRegistry
routes map[string]MsgServiceHandler
circuitBreaker CircuitBreaker
}

var _ gogogrpc.Server = &MsgServiceRouter{}
Expand All @@ -37,6 +38,10 @@ func NewMsgServiceRouter() *MsgServiceRouter {
}
}

func (msr *MsgServiceRouter) SetCircuit(cb CircuitBreaker) {
msr.circuitBreaker = cb
}

// MsgServiceHandler defines a function type which handles Msg service message.
type MsgServiceHandler = func(ctx sdk.Context, req sdk.Msg) (*sdk.Result, error)

Expand Down Expand Up @@ -128,6 +133,13 @@ func (msr *MsgServiceRouter) RegisterService(sd *grpc.ServiceDesc, handler inter
}
}

if msr.circuitBreaker != nil {
msgURL := sdk.MsgTypeURL(msg)
if !msr.circuitBreaker.IsAllowed(ctx, msgURL) {
return nil, fmt.Errorf("circuit breaker disables execution of this message: %s", msgURL)
}
}

// Call the method handler from the service description with the handler object.
// We don't do any decoding here because the decoding was already done.
res, err := methodHandler(handler, ctx, noopDecoder, interceptor)
Expand Down
50 changes: 50 additions & 0 deletions simapp/ante.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package simapp
julienrbrt marked this conversation as resolved.
Show resolved Hide resolved

import (
"errors"

circuitante "cosmossdk.io/x/circuit/ante"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
)

// HandlerOptions are the options required for constructing a default SDK AnteHandler.
type HandlerOptions struct {
ante.HandlerOptions
julienrbrt marked this conversation as resolved.
Show resolved Hide resolved
CircuitKeeper circuitante.CircuitBreaker
}

// NewAnteHandler returns an AnteHandler that checks and increments sequence
// numbers, checks signatures & account numbers, and deducts fees from the first
// signer.
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
if options.AccountKeeper == nil {
return nil, errors.New("account keeper is required for ante builder")
}

if options.BankKeeper == nil {
return nil, errors.New("bank keeper is required for ante builder")
}

if options.SignModeHandler == nil {
return nil, errors.New("sign mode handler is required for ante builder")
}

anteDecorators := []sdk.AnteDecorator{
ante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first
circuitante.NewCircuitBreakerDecorator(options.CircuitKeeper),
ante.NewExtensionOptionsDecorator(options.ExtensionOptionChecker),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
ante.NewValidateMemoDecorator(options.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper, options.TxFeeChecker),
ante.NewSetPubKeyDecorator(options.AccountKeeper), // SetPubKeyDecorator must be called before all signature verification decorators
ante.NewValidateSigCountDecorator(options.AccountKeeper),
ante.NewSigGasConsumeDecorator(options.AccountKeeper, options.SigGasConsumer),
ante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
}

return sdk.ChainAnteDecorators(anteDecorators...), nil
}
31 changes: 22 additions & 9 deletions simapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ import (
upgradekeeper "cosmossdk.io/x/upgrade/keeper"
upgradetypes "cosmossdk.io/x/upgrade/types"

"cosmossdk.io/x/circuit"
circuitkeeper "cosmossdk.io/x/circuit/keeper"
circuittypes "cosmossdk.io/x/circuit/types"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down Expand Up @@ -135,6 +138,7 @@ var (
vesting.AppModuleBasic{},
nftmodule.AppModuleBasic{},
consensus.AppModuleBasic{},
circuit.AppModuleBasic{},
)

// module account permissions
Expand Down Expand Up @@ -186,6 +190,7 @@ type SimApp struct {
GroupKeeper groupkeeper.Keeper
NFTKeeper nftkeeper.Keeper
ConsensusParamsKeeper consensusparamkeeper.Keeper
CircuitKeeper circuitkeeper.Keeper

// the module manager
ModuleManager *module.Manager
Expand Down Expand Up @@ -258,7 +263,8 @@ func NewSimApp(
authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey, crisistypes.StoreKey,
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
govtypes.StoreKey, paramstypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey,
evidencetypes.StoreKey, authzkeeper.StoreKey, nftkeeper.StoreKey, group.StoreKey,
evidencetypes.StoreKey, circuittypes.StoreKey,
authzkeeper.StoreKey, nftkeeper.StoreKey, group.StoreKey,
)

// register streaming services
Expand Down Expand Up @@ -321,6 +327,8 @@ func NewSimApp(
stakingtypes.NewMultiStakingHooks(app.DistrKeeper.Hooks(), app.SlashingKeeper.Hooks()),
)

app.CircuitKeeper = circuitkeeper.NewKeeper(keys[circuittypes.StoreKey], authtypes.NewModuleAddress(govtypes.ModuleName).String(), app.AccountKeeper.GetAddressCodec())

app.AuthzKeeper = authzkeeper.NewKeeper(keys[authzkeeper.StoreKey], appCodec, app.MsgServiceRouter(), app.AccountKeeper)

groupConfig := group.DefaultConfig()
Expand Down Expand Up @@ -405,6 +413,7 @@ func NewSimApp(
groupmodule.NewAppModule(appCodec, app.GroupKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
nftmodule.NewAppModule(appCodec, app.NFTKeeper, app.AccountKeeper, app.BankKeeper, app.interfaceRegistry),
consensus.NewAppModule(appCodec, app.ConsensusParamsKeeper),
circuit.NewAppModule(appCodec, app.CircuitKeeper),
)

// During begin block slashing happens after distr.BeginBlocker so that
Expand Down Expand Up @@ -438,7 +447,7 @@ func NewSimApp(
distrtypes.ModuleName, stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName,
minttypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName,
feegrant.ModuleName, nft.ModuleName, group.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName,
vestingtypes.ModuleName, consensusparamtypes.ModuleName,
vestingtypes.ModuleName, consensusparamtypes.ModuleName, circuittypes.ModuleName,
}
app.ModuleManager.SetOrderInitGenesis(genesisModuleOrder...)
app.ModuleManager.SetOrderExportGenesis(genesisModuleOrder...)
Expand Down Expand Up @@ -533,19 +542,23 @@ func NewSimApp(
}

func (app *SimApp) setAnteHandler(txConfig client.TxConfig) {
anteHandler, err := ante.NewAnteHandler(
ante.HandlerOptions{
AccountKeeper: app.AccountKeeper,
BankKeeper: app.BankKeeper,
SignModeHandler: txConfig.SignModeHandler(),
FeegrantKeeper: app.FeeGrantKeeper,
SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
anteHandler, err := NewAnteHandler(
HandlerOptions{
ante.HandlerOptions{
AccountKeeper: app.AccountKeeper,
BankKeeper: app.BankKeeper,
SignModeHandler: txConfig.SignModeHandler(),
FeegrantKeeper: app.FeeGrantKeeper,
SigGasConsumer: ante.DefaultSigVerificationGasConsumer,
},
&app.CircuitKeeper,
},
)
if err != nil {
panic(err)
}

// Set the AnteHandler for the app
app.SetAnteHandler(anteHandler)
}

Expand Down
7 changes: 7 additions & 0 deletions simapp/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
authmodulev1 "cosmossdk.io/api/cosmos/auth/module/v1"
authzmodulev1 "cosmossdk.io/api/cosmos/authz/module/v1"
bankmodulev1 "cosmossdk.io/api/cosmos/bank/module/v1"
circuitmodulev1 "cosmossdk.io/api/cosmos/circuit/module/v1"
consensusmodulev1 "cosmossdk.io/api/cosmos/consensus/module/v1"
crisismodulev1 "cosmossdk.io/api/cosmos/crisis/module/v1"
distrmodulev1 "cosmossdk.io/api/cosmos/distribution/module/v1"
Expand All @@ -32,6 +33,7 @@ import (

"cosmossdk.io/x/feegrant"

circuittypes "cosmossdk.io/x/circuit/types"
"github.com/cosmos/cosmos-sdk/runtime"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
Expand Down Expand Up @@ -130,6 +132,7 @@ var (
upgradetypes.ModuleName,
vestingtypes.ModuleName,
consensustypes.ModuleName,
circuittypes.ModuleName,
},
// When ExportGenesis is not specified, the export genesis module order
// is equal to the init genesis order
Expand Down Expand Up @@ -225,6 +228,10 @@ var (
Name: consensustypes.ModuleName,
Config: appconfig.WrapAny(&consensusmodulev1.Module{}),
},
{
Name: circuittypes.ModuleName,
Config: appconfig.WrapAny(&circuitmodulev1.Module{}),
},
},
})
)
5 changes: 5 additions & 0 deletions simapp/app_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"cosmossdk.io/x/upgrade"
upgradekeeper "cosmossdk.io/x/upgrade/keeper"

"cosmossdk.io/x/circuit"
circuitkeeper "cosmossdk.io/x/circuit/keeper"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
Expand Down Expand Up @@ -99,6 +101,7 @@ var (
vesting.AppModuleBasic{},
nftmodule.AppModuleBasic{},
consensus.AppModuleBasic{},
circuit.AppModuleBasic{},
)
)

Expand Down Expand Up @@ -135,6 +138,7 @@ type SimApp struct {
GroupKeeper groupkeeper.Keeper
NFTKeeper nftkeeper.Keeper
ConsensusParamsKeeper consensuskeeper.Keeper
CircuitBreakerKeeper circuitkeeper.Keeper

// simulation manager
sm *module.SimulationManager
Expand Down Expand Up @@ -218,6 +222,7 @@ func NewSimApp(
&app.GroupKeeper,
&app.NFTKeeper,
&app.ConsensusParamsKeeper,
&app.CircuitBreakerKeeper,
); err != nil {
panic(err)
}
Expand Down
8 changes: 5 additions & 3 deletions simapp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ require (
cosmossdk.io/math v1.0.0
cosmossdk.io/store v0.1.0-alpha.1.0.20230328185921-37ba88872dbc
cosmossdk.io/tools/confix v0.0.0-20230120150717-4f6f6c00021f
cosmossdk.io/tools/rosetta v0.2.0
cosmossdk.io/tools/rosetta v0.2.1
cosmossdk.io/x/circuit v0.0.0-20230220112800-f69b9ff58fbe
cosmossdk.io/x/evidence v0.1.0
cosmossdk.io/x/feegrant v0.0.0-20230117113717-50e7c4a4ceff
cosmossdk.io/x/nft v0.0.0-20230113085233-fae3332d62fc
Expand Down Expand Up @@ -92,7 +93,7 @@ require (
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/glog v1.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
Expand Down Expand Up @@ -167,7 +168,7 @@ require (
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/zondax/hid v0.9.1 // indirect
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.8.0 // indirect
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
Expand Down Expand Up @@ -199,6 +200,7 @@ replace (
cosmossdk.io/store => ../store
cosmossdk.io/tools/confix => ../tools/confix
cosmossdk.io/tools/rosetta => ../tools/rosetta
cosmossdk.io/x/circuit => ../x/circuit
cosmossdk.io/x/evidence => ../x/evidence
cosmossdk.io/x/feegrant => ../x/feegrant
cosmossdk.io/x/nft => ../x/nft
Expand Down
11 changes: 5 additions & 6 deletions simapp/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf
github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04=
github.com/btcsuite/btcd/btcutil v1.1.2 h1:XLMbX8JQEiwMcYft2EGi8zPUkoa0abKIU6/BJSRsjzQ=
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U=
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
github.com/bufbuild/protocompile v0.5.1 h1:mixz5lJX4Hiz4FpqFREJHIXLfaLBntfaJv1h+/jS+Qg=
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4=
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
Expand Down Expand Up @@ -505,8 +505,8 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69
github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE=
github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ=
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
Expand Down Expand Up @@ -1070,8 +1070,8 @@ github.com/zondax/hid v0.9.1/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWp
github.com/zondax/ledger-go v0.14.1 h1:Pip65OOl4iJ84WTpA4BKChvOufMhhbxED3BaihoZN4c=
github.com/zondax/ledger-go v0.14.1/go.mod h1:fZ3Dqg6qcdXWSOJFKMG8GCTnD7slO/RL2feOQv8K320=
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
go.etcd.io/bbolt v1.3.7 h1:j+zJOnnEjF/kyHlDDgGnVL/AIqIJPq8UoB2GSNfkUfQ=
go.etcd.io/bbolt v1.3.7/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw=
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
Expand Down Expand Up @@ -1316,7 +1316,6 @@ golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
6 changes: 4 additions & 2 deletions tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ require (
cosmossdk.io/client/v2 v2.0.0-20230309163709-87da587416ba // indirect
cosmossdk.io/collections v0.0.0-20230309163709-87da587416ba // indirect
cosmossdk.io/core v0.6.1 // indirect
cosmossdk.io/x/circuit v0.0.0-20230220112800-f69b9ff58fbe // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
Expand Down Expand Up @@ -87,7 +88,7 @@ require (
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/glog v1.0.0 // indirect
github.com/golang/glog v1.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.4 // indirect
Expand Down Expand Up @@ -165,7 +166,7 @@ require (
github.com/ulikunitz/xz v0.5.11 // indirect
github.com/zondax/hid v0.9.1 // indirect
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.8.0 // indirect
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect
Expand Down Expand Up @@ -194,6 +195,7 @@ replace (
cosmossdk.io/api => ../api
// TODO tag all extracted modules after SDK refactor
cosmossdk.io/store => ../store
cosmossdk.io/x/circuit => ../x/circuit
cosmossdk.io/x/evidence => ../x/evidence
cosmossdk.io/x/feegrant => ../x/feegrant
cosmossdk.io/x/nft => ../x/nft
Expand Down
Loading