-
Notifications
You must be signed in to change notification settings - Fork 13
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
Execution SDK on Cosmos #1463
Merged
Merged
Execution SDK on Cosmos #1463
Changes from 17 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4249445
Change import path name of cosmos-sdk/types in cosmos/module.go
NicolasMahe 04c9251
Add cosmos handler wrapper that requires a hash to be returned. It em…
NicolasMahe 444dfe8
add stream function to cosmos client
NicolasMahe 7bd27f7
Merge branch 'feature/cosmos-event'
NicolasMahe 499b03b
Merge branch 'feature/container-runner'
NicolasMahe 054baf3
Add executorHash to execution
NicolasMahe 7fb58e4
Move execution sdk to cosmos sdk
NicolasMahe 262b870
Update codebase to reflect modification of previous commit
NicolasMahe 3216db2
Remove useless files from database package
NicolasMahe 02e26b8
Update e2e test service
NicolasMahe 6794af4
Merge branch 'dev' into feature/execution-store
a54e690
Merge branch 'dev' into feature/execution-store
krhubert 1da0b08
Refactor exeuction
krhubert 158e204
Select context done in execution stream
krhubert 7f806ea
Merge branch dev
NicolasMahe 237e85d
remove instanceHash from CreateExecutionRequest
NicolasMahe e78699b
Refactor
krhubert 8168750
Remove commented code + fix linter
krhubert 40e42a8
remove ErrTxInCache in execution sdk
NicolasMahe a16664f
Remove check on process in execution because process is not on cosmos…
NicolasMahe 6d37b56
fix hash returned on error in runner backend handler function
NicolasMahe 713b7a1
check for existing runner in runner sdk create
NicolasMahe a552e89
check for existing execution in execution sdk backend create function
NicolasMahe f17d871
Merge branch 'dev' into feature/execution-store
antho1404 adf0b71
fix lint
antho1404 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 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 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 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 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,24 @@ | ||
package cosmos | ||
|
||
import ( | ||
"fmt" | ||
|
||
cosmostypes "github.com/cosmos/cosmos-sdk/types" | ||
sdktypes "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
// common attribute keys. | ||
const ( | ||
AttributeKeyHash = "hash" | ||
NicolasMahe marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) | ||
|
||
// EventHashType | ||
var EventHashType = cosmostypes.EventTypeMessage + "." + AttributeKeyHash | ||
|
||
func EventActionQuery(msgType string) string { | ||
return fmt.Sprintf("%s.%s='%s'", sdktypes.EventTypeMessage, sdktypes.AttributeKeyAction, msgType) | ||
} | ||
|
||
func EventModuleQuery(module string) string { | ||
return fmt.Sprintf("%s.%s='%s'", sdktypes.EventTypeMessage, sdktypes.AttributeKeyModule, module) | ||
} |
This file was deleted.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not clear what's the reason for this. Is it for the subscriber name that we generate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. but i think the goal of the package xrand is to centralized on random related function.
So we don't have the send the random everywhere in the code. it's done once and that's it.