Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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 RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- 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 CWRegisterExecMsg
- type Contract
- type ContractRegistrationRequest
- func (*ContractRegistrationRequest) Descriptor() ([]byte, []int)
- func (m *ContractRegistrationRequest) GetActive() bool
- func (m *ContractRegistrationRequest) GetCodeId() int64
- func (m *ContractRegistrationRequest) GetContractAddress() string
- func (m *ContractRegistrationRequest) GetGasLimit() uint64
- 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) GetGasPriceBeginBlock() types.Coin
- func (m *Params) GetIsExecutionEnabled() bool
- func (m *Params) GetMaxGasBeginBlock() uint64
- func (m *Params) GetRegistryContractAddress() string
- func (m *Params) GetTotalGasActiveContracts() uint64
- 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 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 (
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") )
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 ( // DefaultWasmxPeriod represents the number of seconds in 1 week DefaultWasmxPeriod int64 = 60 * 60 * 24 * 7 // DefaultMinNextBidIncrementRate represents default min increment rate 0.25% DefaultMinNextBidIncrementRate = sdk.NewDecWithPrec(25, 4) )
Wasmx params default values
var ( KeyRegistryContractAddress = []byte("RegistryContractAddress") KeyWasmxPeriod = []byte("WasmxPeriod") KeyMinNextBidIncrementRate = []byte("MinNextBidIncrementRate") )
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 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 RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
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 CWRegisterExecMsg ¶
type CWRegisterExecMsg struct {
Register *RegisterMsg `json:"register,omitempty"`
}
type ContractRegistrationRequest ¶
type ContractRegistrationRequest struct { // CodeID is the unique identifier of the smart contract to be registered. CodeId int64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Unique Identifier for contract instance to be registered. ContractAddress string `protobuf:"bytes,2,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,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // Set the status to active to indicate that the smart contract is to be executed in begin blocker. Active bool `protobuf:"varint,4,opt,name=active,proto3" json:"active,omitempty"` }
func (*ContractRegistrationRequest) Descriptor ¶
func (*ContractRegistrationRequest) Descriptor() ([]byte, []int)
func (*ContractRegistrationRequest) GetActive ¶
func (m *ContractRegistrationRequest) GetActive() bool
func (*ContractRegistrationRequest) GetCodeId ¶
func (m *ContractRegistrationRequest) GetCodeId() int64
func (*ContractRegistrationRequest) GetContractAddress ¶
func (m *ContractRegistrationRequest) GetContractAddress() string
func (*ContractRegistrationRequest) GetGasLimit ¶
func (m *ContractRegistrationRequest) GetGasLimit() uint64
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 */ // gas_price_begin_block defines the gas price in INJ used to execute contracts. GasPriceBeginBlock types.Coin `protobuf:"bytes,3,opt,name=gas_price_begin_block,json=gasPriceBeginBlock,proto3" json:"gas_price_begin_block"` // Maximum gas to be used for the contract execution in begin blocker. // Should always be less than max block gas MaxGasBeginBlock uint64 `protobuf:"varint,4,opt,name=max_gas_begin_block,json=maxGasBeginBlock,proto3" json:"max_gas_begin_block,omitempty"` // The gas allocated so far for all the registered active contracts. TotalGasActiveContracts uint64 `` /* 135-byte string literal not displayed */ }
func (*Params) Descriptor ¶
func (*Params) GetGasPriceBeginBlock ¶
func (*Params) GetIsExecutionEnabled ¶
func (*Params) GetMaxGasBeginBlock ¶
func (*Params) GetRegistryContractAddress ¶
func (*Params) GetTotalGasActiveContracts ¶
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 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 }