types

package
v1.33.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultGasLimitContractRegistration = uint64(8987600)
View Source
const (
	ProposalContractRegistrationRequest string = "ProposalContractRegistrationRequest"
)

constants

View Source
const RouterKey = ModuleName
View Source
const TypeMsgBid = "bid"

Variables

View Source
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")
	ErrInvalidContractAddress = sdkerrors.Register(ModuleName, 4, "invalid contract address")
	ErrAlreadyRegistered      = sdkerrors.Register(ModuleName, 5, "contract already registered")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

)
View Source
var (
	DefaultGasPriceBeginBlock = "0.002inj"
	DefaultIsExecutionEnabled = false
	DefaultMaxGasBeginBlock   = int64(8987600)
	DefaultMinNumContracts    = int64(20)
)

Wasmx params default values

View Source
var (
	KeyRegistryContractAddress = []byte("RegistryContractAddress")
	KeyGasPriceBeginBlock      = []byte("GasPriceBeginBlock")
	KeyIsExecutionEnabled      = []byte("IsExecutionEnabled")
	KeyMaxGasBeginBlock        = []byte("MaxGasBeginBlock")
	KeyMinNumOfContracts       = []byte("MinNumOfContracts")
)

Parameter keys

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWasmx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasmx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasmx = fmt.Errorf("proto: unexpected end of group")
)
View Source
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 BeginBlockerExecMsg() ([]byte, error)

func ContractsQueryMsg added in v1.33.7

func ContractsQueryMsg() ([]byte, error)

func GetContractExecutionRequestIDKey

func GetContractExecutionRequestIDKey(requestID uint64) []byte

func IsZeroOrNilDec

func IsZeroOrNilDec(v sdk.Dec) bool

func IsZeroOrNilInt

func IsZeroOrNilInt(v sdk.Int) bool

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SafeIsPositiveDec

func SafeIsPositiveDec(v sdk.Dec) bool

func SafeIsPositiveInt

func SafeIsPositiveInt(v sdk.Int) bool

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 Contract

type Contract struct {
	Address  string `json:"address"`
	GasLimit uint64 `json:"gas_limit"`
}

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"`
}

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) 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

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 (*ContractRegistrationRequestProposal) Size

func (*ContractRegistrationRequestProposal) 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 (*ContractRegistrationRequestProposal) XXX_Size

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*MsgBid) GetSignBytes

func (msg *MsgBid) GetSignBytes() []byte

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) Marshal

func (m *MsgBid) Marshal() (dAtA []byte, err error)

func (*MsgBid) MarshalTo

func (m *MsgBid) MarshalTo(dAtA []byte) (int, error)

func (*MsgBid) MarshalToSizedBuffer

func (m *MsgBid) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBid) ProtoMessage

func (*MsgBid) ProtoMessage()

func (*MsgBid) Reset

func (m *MsgBid) Reset()

func (MsgBid) Route

func (msg MsgBid) Route() string

Route implements the sdk.Msg interface. It should return the name of the module

func (*MsgBid) Size

func (m *MsgBid) Size() (n int)

func (*MsgBid) String

func (m *MsgBid) String() string

func (MsgBid) Type

func (msg MsgBid) Type() string

Type implements the sdk.Msg interface. It should return the action.

func (*MsgBid) Unmarshal

func (m *MsgBid) Unmarshal(dAtA []byte) error

func (MsgBid) ValidateBasic

func (msg MsgBid) ValidateBasic() error

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 (m *MsgBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBid) XXX_Merge

func (m *MsgBid) XXX_Merge(src proto.Message)

func (*MsgBid) XXX_Size

func (m *MsgBid) XXX_Size() int

func (*MsgBid) XXX_Unmarshal

func (m *MsgBid) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *MsgBidResponse) MarshalTo(dAtA []byte) (int, 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 ParamSetPairs

type ParamSetPairs []ParamSetPair

ParamSetPairs Slice of KeyFieldPair

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 string `protobuf:"bytes,3,opt,name=gas_price_begin_block,json=gasPriceBeginBlock,proto3" json:"gas_price_begin_block,omitempty"`
	// 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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(
	wasmxPeriod int64,
	minNextBidIncrementRate sdk.Dec,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetGasPriceBeginBlock

func (m *Params) GetGasPriceBeginBlock() string

func (*Params) GetIsExecutionEnabled

func (m *Params) GetIsExecutionEnabled() bool

func (*Params) GetMaxGasBeginBlock

func (m *Params) GetMaxGasBeginBlock() int64

func (*Params) GetMinNumOfContracts added in v1.33.7

func (m *Params) GetMinNumOfContracts() int64

func (*Params) GetRegistryContractAddress

func (m *Params) GetRegistryContractAddress() string

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on wasmx parameters.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

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 RegisterMsg struct {
	GasLimit        uint64 `json:"gas_limit"`
	ContractAddress string `json:"contract_address"`
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Bid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) WasmxModuleState

func (*UnimplementedQueryServer) WasmxParams

type ValueValidatorFn

type ValueValidatorFn func(value interface{}) error

type WasmContractOpsKeeper

type WasmContractOpsKeeper interface {
	wasmtypes.ContractOpsKeeper
}

type WasmViewKeeper

type WasmViewKeeper interface {
	wasmtypes.ViewKeeper
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL