mirror of https://github.com/certusone/wasmd.git
17 lines
799 B
Go
17 lines
799 B
Go
package client
|
|
|
|
import (
|
|
"github.com/CosmWasm/wasmd/x/wasm/client/cli"
|
|
"github.com/CosmWasm/wasmd/x/wasm/client/rest"
|
|
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
|
|
)
|
|
|
|
// ProposalHandlers define the wasm cli proposal types and rest handler.
|
|
var ProposalHandlers = []govclient.ProposalHandler{
|
|
govclient.NewProposalHandler(cli.ProposalStoreCodeCmd, rest.StoreCodeProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalInstantiateContractCmd, rest.InstantiateProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalMigrateContractCmd, rest.MigrateProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalUpdateContractAdminCmd, rest.UpdateContractAdminProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalClearContractAdminCmd, rest.ClearContractAdminProposalHandler),
|
|
}
|