26 lines
1.5 KiB
Go
26 lines
1.5 KiB
Go
package client
|
|
|
|
import (
|
|
govclient "github.com/cosmos/cosmos-sdk/x/gov/client"
|
|
|
|
"github.com/cerc-io/laconicd/x/wasm/client/cli"
|
|
"github.com/cerc-io/laconicd/x/wasm/client/rest" //nolint:staticcheck
|
|
)
|
|
|
|
// ProposalHandlers define the wasm cli proposal types and rest handler.
|
|
// Deprecated: the rest package will be removed. You can use the GRPC gateway instead
|
|
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.ProposalExecuteContractCmd, rest.ExecuteProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalSudoContractCmd, rest.SudoProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalUpdateContractAdminCmd, rest.UpdateContractAdminProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalClearContractAdminCmd, rest.ClearContractAdminProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalPinCodesCmd, rest.PinCodeProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalUnpinCodesCmd, rest.UnpinCodeProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalUpdateInstantiateConfigCmd, rest.UpdateInstantiateConfigProposalHandler),
|
|
govclient.NewProposalHandler(cli.ProposalStoreAndInstantiateContractCmd, rest.EmptyRestHandler),
|
|
govclient.NewProposalHandler(cli.ProposalInstantiateContract2Cmd, rest.EmptyRestHandler),
|
|
}
|