-
Notifications
You must be signed in to change notification settings - Fork 4.1k
chore: remove baseapp from x/accounts
#23355
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
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
dab4f61
header service
ccdbad4
update
ef438eb
basic env
9dfae05
transaction service
779bd84
refit
2e7ca6d
register
6161b6a
utd
7355259
Merge branch 'main' into feat/services-helpers
46a30d3
bank
89e5b26
no more sdk.context
05a8577
working
f827e73
lint fixes
6c7dc2a
format
ed63aca
Merge branch 'main' into feat/services-helpers
c8b7460
Merge branch 'main' into feat/services-helpers
4956083
lint
b5703d4
Merge branch 'main' into feat/services-helpers
c7bc69d
tidy all
1442dc2
Merge branch 'main' into feat/services-helpers
9d98953
Merge branch 'main' into feat/services-helpers
d29ed65
Merge branch 'main' into feat/services-helpers
d42ac1f
clean
a6ffa04
use mocked query client
fb55664
clean up
87fb4f9
lint
e18d809
server check
4f56126
Merge branch 'main' into feat/services-helpers
f67b33f
lint-fix
997bf85
Merge branch 'main' into feat/services-helpers
ed61ace
Merge branch 'main' into feat/services-helpers
47a681e
init test
9f54324
rm
0cea6dd
Merge branch 'main' into feat/services-helpers
1838bbf
Update testutil/queryclient/queryclient.go
31198b6
Merge branch 'main' into feat/services-helpers
e932ea5
q
d17569e
Merge branch 'main' into feat/services-helpers
71ad965
Merge branch 'main' into feat/services-helpers
4069c71
Merge branch 'main' into feat/services-helpers
d759e14
move out of intrgration
d8b3ac6
rearrange
150df47
lint fix
86269ec
clean
ffde8e3
clean
6574b36
Merge branch 'main' into chore/remove-baseapp-accounts
b5cf3af
Merge branch 'main' into chore/remove-baseapp-accounts
1138fc9
Merge branch 'main' into chore/remove-baseapp-accounts
6caaa63
refactgor into coretesting
d444dd7
Merge branch 'main' into chore/remove-baseapp-accounts
1b9b8f7
refactor
eda6e7f
Merge branch 'main' into chore/remove-baseapp-accounts
47bdcde
clean
5d14883
fix
615d930
Merge branch 'main' into chore/remove-baseapp-accounts
f88a742
Merge branch 'main' into chore/remove-baseapp-accounts
a913205
Merge branch 'main' into chore/remove-baseapp-accounts
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,23 @@ | ||
| module cosmossdk.io/core/testing | ||
|
|
||
| go 1.23 | ||
| go 1.23.1 | ||
|
|
||
| toolchain go1.23.4 | ||
|
|
||
| require ( | ||
| cosmossdk.io/core v1.0.0 | ||
| github.com/cosmos/gogoproto v1.7.0 | ||
| github.com/tidwall/btree v1.7.0 | ||
| go.uber.org/mock v0.5.0 | ||
| google.golang.org/grpc v1.69.4 | ||
| ) | ||
|
|
||
| require cosmossdk.io/schema v1.0.0 // indirect | ||
| require ( | ||
| cosmossdk.io/schema v1.0.0 // indirect | ||
| github.com/google/go-cmp v0.6.0 // indirect | ||
| golang.org/x/net v0.33.0 // indirect | ||
| golang.org/x/sys v0.28.0 // indirect | ||
| golang.org/x/text v0.21.0 // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect | ||
| google.golang.org/protobuf v1.35.1 // indirect | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| package msgrouter | ||
|
|
||
| import ( | ||
| "context" | ||
| "fmt" | ||
|
|
||
| gogoproto "github.com/cosmos/gogoproto/proto" | ||
|
|
||
| "cosmossdk.io/core/router" | ||
| "cosmossdk.io/core/transaction" | ||
| ) | ||
|
|
||
| // msgTypeURL returns the TypeURL of a proto message. | ||
| func msgTypeURL(msg gogoproto.Message) string { | ||
| return gogoproto.MessageName(msg) | ||
| } | ||
|
|
||
| type routerHandler func(context.Context, transaction.Msg) (transaction.Msg, error) | ||
|
|
||
| var _ router.Service = &RouterService{} | ||
|
|
||
| // custom router service for integration tests | ||
| type RouterService struct { | ||
| handlers map[string]routerHandler | ||
| } | ||
|
|
||
| func NewRouterService() *RouterService { | ||
| return &RouterService{ | ||
| handlers: make(map[string]routerHandler), | ||
| } | ||
| } | ||
|
|
||
| func (rs *RouterService) RegisterHandler(handler routerHandler, typeUrl string) { | ||
| rs.handlers[typeUrl] = handler | ||
| } | ||
|
|
||
| func (rs RouterService) CanInvoke(ctx context.Context, typeUrl string) error { | ||
| if rs.handlers[typeUrl] == nil { | ||
| return fmt.Errorf("no handler for typeURL %s", typeUrl) | ||
| } | ||
| return nil | ||
| } | ||
|
|
||
| func (rs RouterService) Invoke(ctx context.Context, req transaction.Msg) (transaction.Msg, error) { | ||
| typeUrl := msgTypeURL(req) | ||
| if rs.handlers[typeUrl] == nil { | ||
| return nil, fmt.Errorf("no handler for typeURL %s", typeUrl) | ||
| } | ||
| return rs.handlers[typeUrl](ctx, req) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.