* Update docs/sdk/clients.md * organize ADR directory like tendermint * docs: move spec-proposals into spec/ * remove lotion, moved to website repo * move getting-started to cosmos-hub, and voyager to website * docs: move lite/ into clients/lite/ * move introduction/ content to website repo * move resources/ content to website repo * mv sdk/clients.md to clients/clients.md * mv validators to cosmos-hub/validators * move deprecated sdk/ content to _attic * sdk/modules.md is duplicate with modules/README.md * consolidate remianing sdk/ files into a single sdk.md * move examples/ to docs/examples/ * mv docs/cosmos-hub to docs/gaia * Add keys/accounts section to localnet docs
25 lines
626 B
Go
25 lines
626 B
Go
package sketchy
|
|
|
|
import (
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
/*
|
|
This is just an example to demonstrate a "sketchy" third-party handler module,
|
|
to demonstrate the "object capability" model for security.
|
|
|
|
Since nothing is passed in via arguments to the NewHandler constructor,
|
|
it cannot affect the handling of other transaction types.
|
|
*/
|
|
|
|
// Handle all "sketchy" type messages.
|
|
func NewHandler() sdk.Handler {
|
|
|
|
return func(ctx sdk.Context, msg sdk.Msg) sdk.Result {
|
|
// There's nothing accessible from ctx or msg (even using reflection)
|
|
// that can mutate the state of the application.
|
|
return sdk.Result{}
|
|
}
|
|
|
|
}
|