Documentation ¶
Index ¶
- Constants
- Variables
- func BeginBlockerExecMsg() ([]byte, error)
- func ContractsQueryMsg() ([]byte, error)
- func GetContractExecutionRequestIDKey(requestID uint64) []byte
- func IsZeroOrNilDec(v sdk.Dec) bool
- func IsZeroOrNilInt(v sdk.Int) bool
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SafeIsPositiveDec(v sdk.Dec) bool
- func SafeIsPositiveInt(v sdk.Int) bool
- type BankKeeper
- type BeginBlockerMsg
- type CWBeginBlockerExecMsg
- type CWGetContractsQueryMsg
- type CWRegisterExecMsg
- type Contract
- type ContractRegistrationRequest
- func (*ContractRegistrationRequest) Descriptor() ([]byte, []int)
- func (m *ContractRegistrationRequest) GetContractAddress() string
- func (m *ContractRegistrationRequest) GetGasLimit() uint64
- func (m *ContractRegistrationRequest) GetGasPrice() string
- func (m *ContractRegistrationRequest) Marshal() (dAtA []byte, err error)
- func (m *ContractRegistrationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractRegistrationRequest) ProtoMessage()
- func (m *ContractRegistrationRequest) Reset()
- func (m *ContractRegistrationRequest) Size() (n int)
- func (m *ContractRegistrationRequest) String() string
- func (m *ContractRegistrationRequest) Unmarshal(dAtA []byte) error
- func (m *ContractRegistrationRequest) XXX_DiscardUnknown()
- func (m *ContractRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractRegistrationRequest) XXX_Merge(src proto.Message)
- func (m *ContractRegistrationRequest) XXX_Size() int
- func (m *ContractRegistrationRequest) XXX_Unmarshal(b []byte) error
- type ContractRegistrationRequestProposal
- func (*ContractRegistrationRequestProposal) Descriptor() ([]byte, []int)
- func (p *ContractRegistrationRequestProposal) GetDescription() string
- func (p *ContractRegistrationRequestProposal) GetTitle() string
- func (m *ContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error)
- func (m *ContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *ContractRegistrationRequestProposal) ProposalRoute() string
- func (p *ContractRegistrationRequestProposal) ProposalType() string
- func (*ContractRegistrationRequestProposal) ProtoMessage()
- func (m *ContractRegistrationRequestProposal) Reset()
- func (m *ContractRegistrationRequestProposal) Size() (n int)
- func (m *ContractRegistrationRequestProposal) String() string
- func (m *ContractRegistrationRequestProposal) Unmarshal(dAtA []byte) error
- func (p *ContractRegistrationRequestProposal) ValidateBasic() error
- func (m *ContractRegistrationRequestProposal) XXX_DiscardUnknown()
- func (m *ContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractRegistrationRequestProposal) XXX_Merge(src proto.Message)
- func (m *ContractRegistrationRequestProposal) XXX_Size() int
- func (m *ContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBid
- func (*MsgBid) Descriptor() ([]byte, []int)
- func (msg *MsgBid) GetSignBytes() []byte
- func (msg MsgBid) GetSigners() []sdk.AccAddress
- func (m *MsgBid) Marshal() (dAtA []byte, err error)
- func (m *MsgBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBid) ProtoMessage()
- func (m *MsgBid) Reset()
- func (msg MsgBid) Route() string
- func (m *MsgBid) Size() (n int)
- func (m *MsgBid) String() string
- func (msg MsgBid) Type() string
- func (m *MsgBid) Unmarshal(dAtA []byte) error
- func (msg MsgBid) ValidateBasic() error
- func (m *MsgBid) XXX_DiscardUnknown()
- func (m *MsgBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBid) XXX_Merge(src proto.Message)
- func (m *MsgBid) XXX_Size() int
- func (m *MsgBid) XXX_Unmarshal(b []byte) error
- type MsgBidResponse
- func (*MsgBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBidResponse) ProtoMessage()
- func (m *MsgBidResponse) Reset()
- func (m *MsgBidResponse) Size() (n int)
- func (m *MsgBidResponse) String() string
- func (m *MsgBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBidResponse) XXX_DiscardUnknown()
- func (m *MsgBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgBidResponse) XXX_Size() int
- func (m *MsgBidResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type ParamSet
- type ParamSetPair
- type ParamSetPairs
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetIsExecutionEnabled() bool
- func (m *Params) GetMaxGasBeginBlock() int64
- func (m *Params) GetMinGasPriceBeginBlock() string
- func (m *Params) GetMinNumOfContracts() int64
- func (m *Params) GetRegistryContractAddress() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryContractsMsg
- type QueryModuleStateRequest
- func (*QueryModuleStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleStateRequest) ProtoMessage()
- func (m *QueryModuleStateRequest) Reset()
- func (m *QueryModuleStateRequest) Size() (n int)
- func (m *QueryModuleStateRequest) String() string
- func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleStateRequest) XXX_DiscardUnknown()
- func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleStateRequest) XXX_Size() int
- func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleStateResponse
- func (*QueryModuleStateResponse) Descriptor() ([]byte, []int)
- func (m *QueryModuleStateResponse) GetState() *GenesisState
- func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleStateResponse) ProtoMessage()
- func (m *QueryModuleStateResponse) Reset()
- func (m *QueryModuleStateResponse) Size() (n int)
- func (m *QueryModuleStateResponse) String() string
- func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleStateResponse) XXX_DiscardUnknown()
- func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleStateResponse) XXX_Size() int
- func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryWasmxParamsRequest
- func (*QueryWasmxParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryWasmxParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWasmxParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWasmxParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWasmxParamsRequest) ProtoMessage()
- func (m *QueryWasmxParamsRequest) Reset()
- func (m *QueryWasmxParamsRequest) Size() (n int)
- func (m *QueryWasmxParamsRequest) String() string
- func (m *QueryWasmxParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWasmxParamsRequest) XXX_DiscardUnknown()
- func (m *QueryWasmxParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWasmxParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryWasmxParamsRequest) XXX_Size() int
- func (m *QueryWasmxParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryWasmxParamsResponse
- func (*QueryWasmxParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryWasmxParamsResponse) GetParams() Params
- func (m *QueryWasmxParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWasmxParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWasmxParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWasmxParamsResponse) ProtoMessage()
- func (m *QueryWasmxParamsResponse) Reset()
- func (m *QueryWasmxParamsResponse) Size() (n int)
- func (m *QueryWasmxParamsResponse) String() string
- func (m *QueryWasmxParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWasmxParamsResponse) XXX_DiscardUnknown()
- func (m *QueryWasmxParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWasmxParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryWasmxParamsResponse) XXX_Size() int
- func (m *QueryWasmxParamsResponse) XXX_Unmarshal(b []byte) error
- type RegisterMsg
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type ValueValidatorFn
- type WasmContractOpsKeeper
- type WasmViewKeeper
Constants ¶
const ( // ModuleName is set to xwasm and not wasmx to avoid Potential key collision between KVStores // (see assertNoPrefix in cosmos-sdk/types/store.go) ModuleName = "xwasm" StoreKey = ModuleName TStoreKey = "transient_xwasm" )
const DefaultGasLimitContractRegistration = uint64(8987600)
const (
ProposalContractRegistrationRequest string = "ProposalContractRegistrationRequest"
)
constants
const RouterKey = ModuleName
const TypeMsgBid = "bid"
Variables ¶
var ( ErrBidInvalid = sdkerrors.Register(ModuleName, 1, "invalid bid denom") ErrBidRound = sdkerrors.Register(ModuleName, 2, "invalid bid round") ErrInvalidGasLimit = sdkerrors.Register(ModuleName, 3, "invalid gas limit") ErrInvalidGasPrice = sdkerrors.Register(ModuleName, 4, "invalid gas price") ErrInvalidContractAddress = sdkerrors.Register(ModuleName, 5, "invalid contract address") ErrAlreadyRegistered = sdkerrors.Register(ModuleName, 6, "contract already registered") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Keys for store prefixes BidsKey = []byte{0x01} // Keys for Smart contract execution ContractExecutionRequestIDKey = []byte{0x02} // key to the smart contract execution request ID LatestSmartContractRequestIDKey = []byte{0x03} // key to the latest smart contract request ID )
var ( DefaultMinGasPriceBeginBlock = "0.002inj" DefaultIsExecutionEnabled = false DefaultMaxGasBeginBlock = int64(8987600) DefaultMinNumContracts = int64(20) )
Wasmx params default values
var ( KeyRegistryContractAddress = []byte("RegistryContractAddress") KeyMinGasPriceBeginBlock = []byte("MinGasPriceBeginBlock") KeyIsExecutionEnabled = []byte("IsExecutionEnabled") KeyMaxGasBeginBlock = []byte("MaxGasBeginBlock") KeyMinNumOfContracts = []byte("MinNumOfContracts") )
Parameter keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthWasmx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWasmx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWasmx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/wasmx module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/wasmx and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func BeginBlockerExecMsg ¶ added in v1.33.7
func ContractsQueryMsg ¶ added in v1.33.7
func IsZeroOrNilDec ¶
func IsZeroOrNilInt ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/wasmx interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SafeIsPositiveDec ¶
func SafeIsPositiveInt ¶
Types ¶
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper methods
type BeginBlockerMsg ¶
type BeginBlockerMsg struct { }
type CWBeginBlockerExecMsg ¶
type CWBeginBlockerExecMsg struct {
BeginBlockerMsg *BeginBlockerMsg `json:"begin_blocker,omitempty"`
}
type CWGetContractsQueryMsg ¶ added in v1.33.7
type CWGetContractsQueryMsg struct {
QueryContractsMsg *QueryContractsMsg `json:"get_contracts,omitempty"`
}
type CWRegisterExecMsg ¶
type CWRegisterExecMsg struct {
Register *RegisterMsg `json:"register,omitempty"`
}
type ContractRegistrationRequest ¶
type ContractRegistrationRequest struct { // Unique Identifier for contract instance to be registered. ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // Maximum gas to be used for the smart contract execution. GasLimit uint64 `protobuf:"varint,2,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // gas price to be used for the smart contract execution. GasPrice string `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` }
func (*ContractRegistrationRequest) Descriptor ¶
func (*ContractRegistrationRequest) Descriptor() ([]byte, []int)
func (*ContractRegistrationRequest) GetContractAddress ¶
func (m *ContractRegistrationRequest) GetContractAddress() string
func (*ContractRegistrationRequest) GetGasLimit ¶
func (m *ContractRegistrationRequest) GetGasLimit() uint64
func (*ContractRegistrationRequest) GetGasPrice ¶ added in v1.33.13
func (m *ContractRegistrationRequest) GetGasPrice() string
func (*ContractRegistrationRequest) Marshal ¶
func (m *ContractRegistrationRequest) Marshal() (dAtA []byte, err error)
func (*ContractRegistrationRequest) MarshalTo ¶
func (m *ContractRegistrationRequest) MarshalTo(dAtA []byte) (int, error)
func (*ContractRegistrationRequest) MarshalToSizedBuffer ¶
func (m *ContractRegistrationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractRegistrationRequest) ProtoMessage ¶
func (*ContractRegistrationRequest) ProtoMessage()
func (*ContractRegistrationRequest) Reset ¶
func (m *ContractRegistrationRequest) Reset()
func (*ContractRegistrationRequest) Size ¶
func (m *ContractRegistrationRequest) Size() (n int)
func (*ContractRegistrationRequest) String ¶
func (m *ContractRegistrationRequest) String() string
func (*ContractRegistrationRequest) Unmarshal ¶
func (m *ContractRegistrationRequest) Unmarshal(dAtA []byte) error
func (*ContractRegistrationRequest) XXX_DiscardUnknown ¶
func (m *ContractRegistrationRequest) XXX_DiscardUnknown()
func (*ContractRegistrationRequest) XXX_Marshal ¶
func (m *ContractRegistrationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractRegistrationRequest) XXX_Merge ¶
func (m *ContractRegistrationRequest) XXX_Merge(src proto.Message)
func (*ContractRegistrationRequest) XXX_Size ¶
func (m *ContractRegistrationRequest) XXX_Size() int
func (*ContractRegistrationRequest) XXX_Unmarshal ¶
func (m *ContractRegistrationRequest) XXX_Unmarshal(b []byte) error
type ContractRegistrationRequestProposal ¶
type ContractRegistrationRequestProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ContractRegistrationRequest ContractRegistrationRequest `` /* 134-byte string literal not displayed */ }
func NewContractRegistrationRequestProposal ¶
func NewContractRegistrationRequestProposal(title, description string, ContractRegistrationRequest ContractRegistrationRequest) *ContractRegistrationRequestProposal
NewContractRegistrationRequestProposal returns new instance of ContractRegistrationRequestProposal
func (*ContractRegistrationRequestProposal) Descriptor ¶
func (*ContractRegistrationRequestProposal) Descriptor() ([]byte, []int)
func (*ContractRegistrationRequestProposal) GetDescription ¶
func (p *ContractRegistrationRequestProposal) GetDescription() string
GetDescription returns the description of this proposal.
func (*ContractRegistrationRequestProposal) GetTitle ¶
func (p *ContractRegistrationRequestProposal) GetTitle() string
GetTitle returns the title of this proposal.
func (*ContractRegistrationRequestProposal) Marshal ¶
func (m *ContractRegistrationRequestProposal) Marshal() (dAtA []byte, err error)
func (*ContractRegistrationRequestProposal) MarshalTo ¶
func (m *ContractRegistrationRequestProposal) MarshalTo(dAtA []byte) (int, error)
func (*ContractRegistrationRequestProposal) MarshalToSizedBuffer ¶
func (m *ContractRegistrationRequestProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractRegistrationRequestProposal) ProposalRoute ¶
func (p *ContractRegistrationRequestProposal) ProposalRoute() string
ProposalRoute returns router key of this proposal.
func (*ContractRegistrationRequestProposal) ProposalType ¶
func (p *ContractRegistrationRequestProposal) ProposalType() string
ProposalType returns proposal type of this proposal.
func (*ContractRegistrationRequestProposal) ProtoMessage ¶
func (*ContractRegistrationRequestProposal) ProtoMessage()
func (*ContractRegistrationRequestProposal) Reset ¶
func (m *ContractRegistrationRequestProposal) Reset()
func (*ContractRegistrationRequestProposal) Size ¶
func (m *ContractRegistrationRequestProposal) Size() (n int)
func (*ContractRegistrationRequestProposal) String ¶
func (m *ContractRegistrationRequestProposal) String() string
func (*ContractRegistrationRequestProposal) Unmarshal ¶
func (m *ContractRegistrationRequestProposal) Unmarshal(dAtA []byte) error
func (*ContractRegistrationRequestProposal) ValidateBasic ¶
func (p *ContractRegistrationRequestProposal) ValidateBasic() error
ValidateBasic returns ValidateBasic result of this proposal.
func (*ContractRegistrationRequestProposal) XXX_DiscardUnknown ¶
func (m *ContractRegistrationRequestProposal) XXX_DiscardUnknown()
func (*ContractRegistrationRequestProposal) XXX_Marshal ¶
func (m *ContractRegistrationRequestProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractRegistrationRequestProposal) XXX_Merge ¶
func (m *ContractRegistrationRequestProposal) XXX_Merge(src proto.Message)
func (*ContractRegistrationRequestProposal) XXX_Size ¶
func (m *ContractRegistrationRequestProposal) XXX_Size() int
func (*ContractRegistrationRequestProposal) XXX_Unmarshal ¶
func (m *ContractRegistrationRequestProposal) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of related to wasmx. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the wasmx module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState() GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgBid ¶
type MsgBid struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // amount of the bid in INJ tokens BidAmount types.Coin `protobuf:"bytes,2,opt,name=bid_amount,json=bidAmount,proto3" json:"bid_amount"` // the current wasmx round being bid on Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` }
Bid defines a SDK message for placing a bid for an wasmx
func (*MsgBid) Descriptor ¶
func (*MsgBid) GetSignBytes ¶
GetSignBytes implements the sdk.Msg interface. It encodes the message for signing
func (MsgBid) GetSigners ¶
func (msg MsgBid) GetSigners() []sdk.AccAddress
GetSigners implements the sdk.Msg interface. It defines whose signature is required
func (*MsgBid) MarshalToSizedBuffer ¶
func (*MsgBid) ProtoMessage ¶
func (*MsgBid) ProtoMessage()
func (MsgBid) Route ¶
Route implements the sdk.Msg interface. It should return the name of the module
func (MsgBid) ValidateBasic ¶
ValidateBasic implements the sdk.Msg interface. It runs stateless checks on the message
func (*MsgBid) XXX_DiscardUnknown ¶
func (m *MsgBid) XXX_DiscardUnknown()
func (*MsgBid) XXX_Marshal ¶
func (*MsgBid) XXX_Unmarshal ¶
type MsgBidResponse ¶
type MsgBidResponse struct { }
func (*MsgBidResponse) Descriptor ¶
func (*MsgBidResponse) Descriptor() ([]byte, []int)
func (*MsgBidResponse) Marshal ¶
func (m *MsgBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgBidResponse) MarshalToSizedBuffer ¶
func (m *MsgBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBidResponse) ProtoMessage ¶
func (*MsgBidResponse) ProtoMessage()
func (*MsgBidResponse) Reset ¶
func (m *MsgBidResponse) Reset()
func (*MsgBidResponse) Size ¶
func (m *MsgBidResponse) Size() (n int)
func (*MsgBidResponse) String ¶
func (m *MsgBidResponse) String() string
func (*MsgBidResponse) Unmarshal ¶
func (m *MsgBidResponse) Unmarshal(dAtA []byte) error
func (*MsgBidResponse) XXX_DiscardUnknown ¶
func (m *MsgBidResponse) XXX_DiscardUnknown()
func (*MsgBidResponse) XXX_Marshal ¶
func (m *MsgBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBidResponse) XXX_Merge ¶
func (m *MsgBidResponse) XXX_Merge(src proto.Message)
func (*MsgBidResponse) XXX_Size ¶
func (m *MsgBidResponse) XXX_Size() int
func (*MsgBidResponse) XXX_Unmarshal ¶
func (m *MsgBidResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Bid defines a method for placing a bid for an wasmx Bid(ctx context.Context, in *MsgBid, opts ...grpc.CallOption) (*MsgBidResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface { // Bid defines a method for placing a bid for an wasmx Bid(context.Context, *MsgBid) (*MsgBidResponse, error) }
MsgServer is the server API for Msg service.
type ParamSet ¶
type ParamSet interface {
ParamSetPairs() ParamSetPairs
}
ParamSet defines an interface for structs containing parameters for a module
type ParamSetPair ¶
type ParamSetPair struct { Key []byte Value interface{} ValidatorFn ValueValidatorFn }
ParamSetPair is used for associating paramsubspace key and field of param structs.
func NewParamSetPair ¶
func NewParamSetPair(key []byte, value interface{}, vfn ValueValidatorFn) ParamSetPair
NewParamSetPair creates a new ParamSetPair instance.
type Params ¶
type Params struct { // Set the status to active to indicate that the contract is to be executed in begin blocker. IsExecutionEnabled bool `protobuf:"varint,1,opt,name=is_execution_enabled,json=isExecutionEnabled,proto3" json:"is_execution_enabled,omitempty"` // registry_contract_address is the address of the contract that will be used to register the contract executed in begin blocker. RegistryContractAddress string `` /* 132-byte string literal not displayed */ // min_gas_price_begin_block defines the minimum gas price in INJ the contracts has to pay to be executed in begin blocker. MinGasPriceBeginBlock string `` /* 130-byte string literal not displayed */ // Maximum gas to be used for the contract execution in begin blocker. // Should always be less than max block gas MaxGasBeginBlock int64 `protobuf:"varint,4,opt,name=max_gas_begin_block,json=maxGasBeginBlock,proto3" json:"max_gas_begin_block,omitempty"` // It should be possible for begin blocker to execute atleast min_num_contracts. MinNumOfContracts int64 `protobuf:"varint,5,opt,name=min_num_of_contracts,json=minNumOfContracts,proto3" json:"min_num_of_contracts,omitempty"` }
func (*Params) Descriptor ¶
func (*Params) GetIsExecutionEnabled ¶
func (*Params) GetMaxGasBeginBlock ¶
func (*Params) GetMinGasPriceBeginBlock ¶ added in v1.33.13
func (*Params) GetMinNumOfContracts ¶ added in v1.33.7
func (*Params) GetRegistryContractAddress ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Retrieves wasmx params WasmxParams(ctx context.Context, in *QueryWasmxParamsRequest, opts ...grpc.CallOption) (*QueryWasmxParamsResponse, error) // Retrieves the entire wasmx module's state WasmxModuleState(ctx context.Context, in *QueryModuleStateRequest, opts ...grpc.CallOption) (*QueryModuleStateResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryContractsMsg ¶ added in v1.33.7
type QueryContractsMsg struct { }
type QueryModuleStateRequest ¶
type QueryModuleStateRequest struct { }
QueryModuleStateRequest is the request type for the Query/WasmxModuleState RPC method.
func (*QueryModuleStateRequest) Descriptor ¶
func (*QueryModuleStateRequest) Descriptor() ([]byte, []int)
func (*QueryModuleStateRequest) Marshal ¶
func (m *QueryModuleStateRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleStateRequest) MarshalTo ¶
func (m *QueryModuleStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleStateRequest) MarshalToSizedBuffer ¶
func (m *QueryModuleStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleStateRequest) ProtoMessage ¶
func (*QueryModuleStateRequest) ProtoMessage()
func (*QueryModuleStateRequest) Reset ¶
func (m *QueryModuleStateRequest) Reset()
func (*QueryModuleStateRequest) Size ¶
func (m *QueryModuleStateRequest) Size() (n int)
func (*QueryModuleStateRequest) String ¶
func (m *QueryModuleStateRequest) String() string
func (*QueryModuleStateRequest) Unmarshal ¶
func (m *QueryModuleStateRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleStateRequest) XXX_DiscardUnknown ¶
func (m *QueryModuleStateRequest) XXX_DiscardUnknown()
func (*QueryModuleStateRequest) XXX_Marshal ¶
func (m *QueryModuleStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleStateRequest) XXX_Merge ¶
func (m *QueryModuleStateRequest) XXX_Merge(src proto.Message)
func (*QueryModuleStateRequest) XXX_Size ¶
func (m *QueryModuleStateRequest) XXX_Size() int
func (*QueryModuleStateRequest) XXX_Unmarshal ¶
func (m *QueryModuleStateRequest) XXX_Unmarshal(b []byte) error
type QueryModuleStateResponse ¶
type QueryModuleStateResponse struct {
State *GenesisState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
}
QueryModuleStateResponse is the response type for the Query/WasmxModuleState RPC method.
func (*QueryModuleStateResponse) Descriptor ¶
func (*QueryModuleStateResponse) Descriptor() ([]byte, []int)
func (*QueryModuleStateResponse) GetState ¶
func (m *QueryModuleStateResponse) GetState() *GenesisState
func (*QueryModuleStateResponse) Marshal ¶
func (m *QueryModuleStateResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleStateResponse) MarshalTo ¶
func (m *QueryModuleStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleStateResponse) MarshalToSizedBuffer ¶
func (m *QueryModuleStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleStateResponse) ProtoMessage ¶
func (*QueryModuleStateResponse) ProtoMessage()
func (*QueryModuleStateResponse) Reset ¶
func (m *QueryModuleStateResponse) Reset()
func (*QueryModuleStateResponse) Size ¶
func (m *QueryModuleStateResponse) Size() (n int)
func (*QueryModuleStateResponse) String ¶
func (m *QueryModuleStateResponse) String() string
func (*QueryModuleStateResponse) Unmarshal ¶
func (m *QueryModuleStateResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleStateResponse) XXX_DiscardUnknown ¶
func (m *QueryModuleStateResponse) XXX_DiscardUnknown()
func (*QueryModuleStateResponse) XXX_Marshal ¶
func (m *QueryModuleStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleStateResponse) XXX_Merge ¶
func (m *QueryModuleStateResponse) XXX_Merge(src proto.Message)
func (*QueryModuleStateResponse) XXX_Size ¶
func (m *QueryModuleStateResponse) XXX_Size() int
func (*QueryModuleStateResponse) XXX_Unmarshal ¶
func (m *QueryModuleStateResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Retrieves wasmx params WasmxParams(context.Context, *QueryWasmxParamsRequest) (*QueryWasmxParamsResponse, error) // Retrieves the entire wasmx module's state WasmxModuleState(context.Context, *QueryModuleStateRequest) (*QueryModuleStateResponse, error) }
QueryServer is the server API for Query service.
type QueryWasmxParamsRequest ¶
type QueryWasmxParamsRequest struct { }
QueryWasmxParamsRequest is the request type for the Query/WasmxParams RPC method.
func (*QueryWasmxParamsRequest) Descriptor ¶
func (*QueryWasmxParamsRequest) Descriptor() ([]byte, []int)
func (*QueryWasmxParamsRequest) Marshal ¶
func (m *QueryWasmxParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryWasmxParamsRequest) MarshalTo ¶
func (m *QueryWasmxParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryWasmxParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryWasmxParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWasmxParamsRequest) ProtoMessage ¶
func (*QueryWasmxParamsRequest) ProtoMessage()
func (*QueryWasmxParamsRequest) Reset ¶
func (m *QueryWasmxParamsRequest) Reset()
func (*QueryWasmxParamsRequest) Size ¶
func (m *QueryWasmxParamsRequest) Size() (n int)
func (*QueryWasmxParamsRequest) String ¶
func (m *QueryWasmxParamsRequest) String() string
func (*QueryWasmxParamsRequest) Unmarshal ¶
func (m *QueryWasmxParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryWasmxParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryWasmxParamsRequest) XXX_DiscardUnknown()
func (*QueryWasmxParamsRequest) XXX_Marshal ¶
func (m *QueryWasmxParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWasmxParamsRequest) XXX_Merge ¶
func (m *QueryWasmxParamsRequest) XXX_Merge(src proto.Message)
func (*QueryWasmxParamsRequest) XXX_Size ¶
func (m *QueryWasmxParamsRequest) XXX_Size() int
func (*QueryWasmxParamsRequest) XXX_Unmarshal ¶
func (m *QueryWasmxParamsRequest) XXX_Unmarshal(b []byte) error
type QueryWasmxParamsResponse ¶
type QueryWasmxParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryWasmxParamsRequest is the response type for the Query/WasmxParams RPC method.
func (*QueryWasmxParamsResponse) Descriptor ¶
func (*QueryWasmxParamsResponse) Descriptor() ([]byte, []int)
func (*QueryWasmxParamsResponse) GetParams ¶
func (m *QueryWasmxParamsResponse) GetParams() Params
func (*QueryWasmxParamsResponse) Marshal ¶
func (m *QueryWasmxParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryWasmxParamsResponse) MarshalTo ¶
func (m *QueryWasmxParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryWasmxParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryWasmxParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWasmxParamsResponse) ProtoMessage ¶
func (*QueryWasmxParamsResponse) ProtoMessage()
func (*QueryWasmxParamsResponse) Reset ¶
func (m *QueryWasmxParamsResponse) Reset()
func (*QueryWasmxParamsResponse) Size ¶
func (m *QueryWasmxParamsResponse) Size() (n int)
func (*QueryWasmxParamsResponse) String ¶
func (m *QueryWasmxParamsResponse) String() string
func (*QueryWasmxParamsResponse) Unmarshal ¶
func (m *QueryWasmxParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryWasmxParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryWasmxParamsResponse) XXX_DiscardUnknown()
func (*QueryWasmxParamsResponse) XXX_Marshal ¶
func (m *QueryWasmxParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWasmxParamsResponse) XXX_Merge ¶
func (m *QueryWasmxParamsResponse) XXX_Merge(src proto.Message)
func (*QueryWasmxParamsResponse) XXX_Size ¶
func (m *QueryWasmxParamsResponse) XXX_Size() int
func (*QueryWasmxParamsResponse) XXX_Unmarshal ¶
func (m *QueryWasmxParamsResponse) XXX_Unmarshal(b []byte) error
type RegisterMsg ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Bid ¶
func (*UnimplementedMsgServer) Bid(ctx context.Context, req *MsgBid) (*MsgBidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) WasmxModuleState ¶
func (*UnimplementedQueryServer) WasmxModuleState(ctx context.Context, req *QueryModuleStateRequest) (*QueryModuleStateResponse, error)
func (*UnimplementedQueryServer) WasmxParams ¶
func (*UnimplementedQueryServer) WasmxParams(ctx context.Context, req *QueryWasmxParamsRequest) (*QueryWasmxParamsResponse, error)
type ValueValidatorFn ¶
type ValueValidatorFn func(value interface{}) error
type WasmContractOpsKeeper ¶
type WasmContractOpsKeeper interface { wasmtypes.ContractOpsKeeper }
type WasmViewKeeper ¶
type WasmViewKeeper interface { wasmtypes.ViewKeeper }