Skip to content
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

Add simulation for gov #1064

Merged
merged 12 commits into from
Nov 1, 2022
Next Next commit
add struct for sim gov
  • Loading branch information
GNaD13 committed Oct 27, 2022
commit 436d2bcf23f3268f6204a7dd4be663b61600d117
14 changes: 14 additions & 0 deletions x/wasm/simulation/proposals.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package simulation

import (
"github.com/CosmWasm/wasmd/x/wasm/keeper"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
)

func ProposalContents(k keeper.Keeper) []simtypes.WeightedProposalContent {

}

func SimulatetoreCodeProposal(k keeper.Keeper) simtypes.ContentSimulatorFn {

}
11 changes: 11 additions & 0 deletions x/wasm/types/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@ func init() { // register new content types with the sdk
govtypes.RegisterProposalTypeCodec(&UpdateInstantiateConfigProposal{}, "wasm/UpdateInstantiateConfigProposal")
}

func NewStoreCodeProposal(
title string,
description string,
runAs string,
wasmBz []byte,
permission *AccessConfig,
unpinCode bool,
) *StoreCodeProposal {
return &StoreCodeProposal{title, description, runAs, wasmBz, permission, unpinCode}
}

// ProposalRoute returns the routing key of a parameter change proposal.
func (p StoreCodeProposal) ProposalRoute() string { return RouterKey }

Expand Down