types

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 21 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	// ModuleName defines the module name
	ModuleName = "rwasm"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rwasm"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgCwStoreCode = "cw_store_code"
View Source
const TypeMsgExecuteCwContract = "execute_cw_contract"
View Source
const TypeMsgInstantiateCwContract = "instantiate_cw_contract"

Variables ¶

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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/rwasm module sentinel errors

View Source
var (

	// ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions ¶

func KeyPrefix ¶

func KeyPrefix(p string) []byte

func ParamKeyTable ¶

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec ¶

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces ¶

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec ¶

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer ¶

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer ¶

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types ¶

type AccountKeeper ¶

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper ¶

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState ¶

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the rwasm module's genesis state.

func DefaultGenesis ¶

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

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

Validate performs basic genesis state validation returning an error upon any failure.

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 MsgClient ¶

type MsgClient interface {
	ExecuteCwContract(ctx context.Context, in *MsgExecuteCwContract, opts ...grpc.CallOption) (*MsgExecuteCwContractResponse, error)
	InstantiateCwContract(ctx context.Context, in *MsgInstantiateCwContract, opts ...grpc.CallOption) (*MsgInstantiateCwContractResponse, error)
	CwStoreCode(ctx context.Context, in *MsgCwStoreCode, opts ...grpc.CallOption) (*MsgCwStoreCodeResponse, 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 MsgCwStoreCode ¶

type MsgCwStoreCode struct {
	Sender       string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	WasmByteCode string `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"`
}

func NewMsgCwStoreCode ¶

func NewMsgCwStoreCode(sender string, wasmByteCode string) *MsgCwStoreCode

func (*MsgCwStoreCode) Descriptor ¶

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

func (*MsgCwStoreCode) GetSender ¶

func (m *MsgCwStoreCode) GetSender() string

func (*MsgCwStoreCode) GetSignBytes ¶

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

func (*MsgCwStoreCode) GetSigners ¶

func (msg *MsgCwStoreCode) GetSigners() []sdk.AccAddress

func (*MsgCwStoreCode) GetWasmByteCode ¶

func (m *MsgCwStoreCode) GetWasmByteCode() string

func (*MsgCwStoreCode) Marshal ¶

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

func (*MsgCwStoreCode) MarshalTo ¶

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

func (*MsgCwStoreCode) MarshalToSizedBuffer ¶

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

func (*MsgCwStoreCode) ProtoMessage ¶

func (*MsgCwStoreCode) ProtoMessage()

func (*MsgCwStoreCode) Reset ¶

func (m *MsgCwStoreCode) Reset()

func (*MsgCwStoreCode) Route ¶

func (msg *MsgCwStoreCode) Route() string

func (*MsgCwStoreCode) Size ¶

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

func (*MsgCwStoreCode) String ¶

func (m *MsgCwStoreCode) String() string

func (*MsgCwStoreCode) Type ¶

func (msg *MsgCwStoreCode) Type() string

func (*MsgCwStoreCode) Unmarshal ¶

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

func (*MsgCwStoreCode) ValidateBasic ¶

func (msg *MsgCwStoreCode) ValidateBasic() error

func (*MsgCwStoreCode) XXX_DiscardUnknown ¶

func (m *MsgCwStoreCode) XXX_DiscardUnknown()

func (*MsgCwStoreCode) XXX_Marshal ¶

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

func (*MsgCwStoreCode) XXX_Merge ¶

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

func (*MsgCwStoreCode) XXX_Size ¶

func (m *MsgCwStoreCode) XXX_Size() int

func (*MsgCwStoreCode) XXX_Unmarshal ¶

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

type MsgCwStoreCodeResponse ¶

type MsgCwStoreCodeResponse struct {
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// Checksum is the sha256 hash of the stored code
	Checksum []byte `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
}

func (*MsgCwStoreCodeResponse) Descriptor ¶

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

func (*MsgCwStoreCodeResponse) GetChecksum ¶

func (m *MsgCwStoreCodeResponse) GetChecksum() []byte

func (*MsgCwStoreCodeResponse) GetCodeID ¶

func (m *MsgCwStoreCodeResponse) GetCodeID() uint64

func (*MsgCwStoreCodeResponse) Marshal ¶

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

func (*MsgCwStoreCodeResponse) MarshalTo ¶

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

func (*MsgCwStoreCodeResponse) MarshalToSizedBuffer ¶

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

func (*MsgCwStoreCodeResponse) ProtoMessage ¶

func (*MsgCwStoreCodeResponse) ProtoMessage()

func (*MsgCwStoreCodeResponse) Reset ¶

func (m *MsgCwStoreCodeResponse) Reset()

func (*MsgCwStoreCodeResponse) Size ¶

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

func (*MsgCwStoreCodeResponse) String ¶

func (m *MsgCwStoreCodeResponse) String() string

func (*MsgCwStoreCodeResponse) Unmarshal ¶

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

func (*MsgCwStoreCodeResponse) XXX_DiscardUnknown ¶

func (m *MsgCwStoreCodeResponse) XXX_DiscardUnknown()

func (*MsgCwStoreCodeResponse) XXX_Marshal ¶

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

func (*MsgCwStoreCodeResponse) XXX_Merge ¶

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

func (*MsgCwStoreCodeResponse) XXX_Size ¶

func (m *MsgCwStoreCodeResponse) XXX_Size() int

func (*MsgCwStoreCodeResponse) XXX_Unmarshal ¶

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

type MsgExecuteCwContract ¶

type MsgExecuteCwContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// Msg json encoded message to be passed to the contract
	Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// Funds coins that are transferred to the contract on execution
	Funds string `protobuf:"bytes,4,opt,name=funds,proto3" json:"funds,omitempty"`
}

func NewMsgExecuteCwContract ¶

func NewMsgExecuteCwContract(sender string, contract string) *MsgExecuteCwContract

func (*MsgExecuteCwContract) Descriptor ¶

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

func (*MsgExecuteCwContract) GetContract ¶

func (m *MsgExecuteCwContract) GetContract() string

func (*MsgExecuteCwContract) GetFunds ¶

func (m *MsgExecuteCwContract) GetFunds() string

func (*MsgExecuteCwContract) GetMsg ¶

func (m *MsgExecuteCwContract) GetMsg() string

func (*MsgExecuteCwContract) GetSender ¶

func (m *MsgExecuteCwContract) GetSender() string

func (*MsgExecuteCwContract) GetSignBytes ¶

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

func (*MsgExecuteCwContract) GetSigners ¶

func (msg *MsgExecuteCwContract) GetSigners() []sdk.AccAddress

func (*MsgExecuteCwContract) Marshal ¶

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

func (*MsgExecuteCwContract) MarshalTo ¶

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

func (*MsgExecuteCwContract) MarshalToSizedBuffer ¶

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

func (*MsgExecuteCwContract) ProtoMessage ¶

func (*MsgExecuteCwContract) ProtoMessage()

func (*MsgExecuteCwContract) Reset ¶

func (m *MsgExecuteCwContract) Reset()

func (*MsgExecuteCwContract) Route ¶

func (msg *MsgExecuteCwContract) Route() string

func (*MsgExecuteCwContract) Size ¶

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

func (*MsgExecuteCwContract) String ¶

func (m *MsgExecuteCwContract) String() string

func (*MsgExecuteCwContract) Type ¶

func (msg *MsgExecuteCwContract) Type() string

func (*MsgExecuteCwContract) Unmarshal ¶

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

func (*MsgExecuteCwContract) ValidateBasic ¶

func (msg *MsgExecuteCwContract) ValidateBasic() error

func (*MsgExecuteCwContract) XXX_DiscardUnknown ¶

func (m *MsgExecuteCwContract) XXX_DiscardUnknown()

func (*MsgExecuteCwContract) XXX_Marshal ¶

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

func (*MsgExecuteCwContract) XXX_Merge ¶

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

func (*MsgExecuteCwContract) XXX_Size ¶

func (m *MsgExecuteCwContract) XXX_Size() int

func (*MsgExecuteCwContract) XXX_Unmarshal ¶

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

type MsgExecuteCwContractResponse ¶

type MsgExecuteCwContractResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*MsgExecuteCwContractResponse) Descriptor ¶

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

func (*MsgExecuteCwContractResponse) GetData ¶

func (m *MsgExecuteCwContractResponse) GetData() []byte

func (*MsgExecuteCwContractResponse) Marshal ¶

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

func (*MsgExecuteCwContractResponse) MarshalTo ¶

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

func (*MsgExecuteCwContractResponse) MarshalToSizedBuffer ¶

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

func (*MsgExecuteCwContractResponse) ProtoMessage ¶

func (*MsgExecuteCwContractResponse) ProtoMessage()

func (*MsgExecuteCwContractResponse) Reset ¶

func (m *MsgExecuteCwContractResponse) Reset()

func (*MsgExecuteCwContractResponse) Size ¶

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

func (*MsgExecuteCwContractResponse) String ¶

func (*MsgExecuteCwContractResponse) Unmarshal ¶

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

func (*MsgExecuteCwContractResponse) XXX_DiscardUnknown ¶

func (m *MsgExecuteCwContractResponse) XXX_DiscardUnknown()

func (*MsgExecuteCwContractResponse) XXX_Marshal ¶

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

func (*MsgExecuteCwContractResponse) XXX_Merge ¶

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

func (*MsgExecuteCwContractResponse) XXX_Size ¶

func (m *MsgExecuteCwContractResponse) XXX_Size() int

func (*MsgExecuteCwContractResponse) XXX_Unmarshal ¶

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

type MsgInstantiateCwContract ¶

type MsgInstantiateCwContract struct {
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Admin  string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	CodeId uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	Label  string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	Msg    string `protobuf:"bytes,5,opt,name=msg,proto3" json:"msg,omitempty"`
	Funds  string `protobuf:"bytes,6,opt,name=funds,proto3" json:"funds,omitempty"`
}

func NewMsgInstantiateCwContract ¶

func NewMsgInstantiateCwContract(sender string, admin string, codeId uint64, label string, msg string, funds string) *MsgInstantiateCwContract

func (*MsgInstantiateCwContract) Descriptor ¶

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

func (*MsgInstantiateCwContract) GetAdmin ¶

func (m *MsgInstantiateCwContract) GetAdmin() string

func (*MsgInstantiateCwContract) GetCodeId ¶

func (m *MsgInstantiateCwContract) GetCodeId() uint64

func (*MsgInstantiateCwContract) GetFunds ¶

func (m *MsgInstantiateCwContract) GetFunds() string

func (*MsgInstantiateCwContract) GetLabel ¶

func (m *MsgInstantiateCwContract) GetLabel() string

func (*MsgInstantiateCwContract) GetMsg ¶

func (m *MsgInstantiateCwContract) GetMsg() string

func (*MsgInstantiateCwContract) GetSender ¶

func (m *MsgInstantiateCwContract) GetSender() string

func (*MsgInstantiateCwContract) GetSignBytes ¶

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

func (*MsgInstantiateCwContract) GetSigners ¶

func (msg *MsgInstantiateCwContract) GetSigners() []sdk.AccAddress

func (*MsgInstantiateCwContract) Marshal ¶

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

func (*MsgInstantiateCwContract) MarshalTo ¶

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

func (*MsgInstantiateCwContract) MarshalToSizedBuffer ¶

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

func (*MsgInstantiateCwContract) ProtoMessage ¶

func (*MsgInstantiateCwContract) ProtoMessage()

func (*MsgInstantiateCwContract) Reset ¶

func (m *MsgInstantiateCwContract) Reset()

func (*MsgInstantiateCwContract) Route ¶

func (msg *MsgInstantiateCwContract) Route() string

func (*MsgInstantiateCwContract) Size ¶

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

func (*MsgInstantiateCwContract) String ¶

func (m *MsgInstantiateCwContract) String() string

func (*MsgInstantiateCwContract) Type ¶

func (msg *MsgInstantiateCwContract) Type() string

func (*MsgInstantiateCwContract) Unmarshal ¶

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

func (*MsgInstantiateCwContract) ValidateBasic ¶

func (msg *MsgInstantiateCwContract) ValidateBasic() error

func (*MsgInstantiateCwContract) XXX_DiscardUnknown ¶

func (m *MsgInstantiateCwContract) XXX_DiscardUnknown()

func (*MsgInstantiateCwContract) XXX_Marshal ¶

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

func (*MsgInstantiateCwContract) XXX_Merge ¶

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

func (*MsgInstantiateCwContract) XXX_Size ¶

func (m *MsgInstantiateCwContract) XXX_Size() int

func (*MsgInstantiateCwContract) XXX_Unmarshal ¶

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

type MsgInstantiateCwContractResponse ¶

type MsgInstantiateCwContractResponse struct {
	// Address is the bech32 address of the new contract instance.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Data contains bytes to returned from the contract
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*MsgInstantiateCwContractResponse) Descriptor ¶

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

func (*MsgInstantiateCwContractResponse) GetAddress ¶

func (m *MsgInstantiateCwContractResponse) GetAddress() string

func (*MsgInstantiateCwContractResponse) GetData ¶

func (m *MsgInstantiateCwContractResponse) GetData() []byte

func (*MsgInstantiateCwContractResponse) Marshal ¶

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

func (*MsgInstantiateCwContractResponse) MarshalTo ¶

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

func (*MsgInstantiateCwContractResponse) MarshalToSizedBuffer ¶

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

func (*MsgInstantiateCwContractResponse) ProtoMessage ¶

func (*MsgInstantiateCwContractResponse) ProtoMessage()

func (*MsgInstantiateCwContractResponse) Reset ¶

func (*MsgInstantiateCwContractResponse) Size ¶

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

func (*MsgInstantiateCwContractResponse) String ¶

func (*MsgInstantiateCwContractResponse) Unmarshal ¶

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

func (*MsgInstantiateCwContractResponse) XXX_DiscardUnknown ¶

func (m *MsgInstantiateCwContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateCwContractResponse) XXX_Marshal ¶

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

func (*MsgInstantiateCwContractResponse) XXX_Merge ¶

func (*MsgInstantiateCwContractResponse) XXX_Size ¶

func (m *MsgInstantiateCwContractResponse) XXX_Size() int

func (*MsgInstantiateCwContractResponse) XXX_Unmarshal ¶

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

type MsgServer ¶

MsgServer is the server API for Msg service.

type Params ¶

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams ¶

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams ¶

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor ¶

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

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 get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal ¶

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

func (Params) Validate ¶

func (p Params) Validate() error

Validate validates the set of params

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 {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest ¶

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor ¶

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

func (*QueryParamsRequest) Marshal ¶

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

func (*QueryParamsRequest) MarshalTo ¶

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

func (*QueryParamsRequest) MarshalToSizedBuffer ¶

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

func (*QueryParamsRequest) ProtoMessage ¶

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset ¶

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size ¶

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

func (*QueryParamsRequest) String ¶

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal ¶

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

func (*QueryParamsRequest) XXX_DiscardUnknown ¶

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal ¶

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

func (*QueryParamsRequest) XXX_Merge ¶

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

func (*QueryParamsRequest) XXX_Size ¶

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal ¶

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

type QueryParamsResponse ¶

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor ¶

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

func (*QueryParamsResponse) GetParams ¶

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal ¶

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

func (*QueryParamsResponse) MarshalTo ¶

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

func (*QueryParamsResponse) MarshalToSizedBuffer ¶

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

func (*QueryParamsResponse) ProtoMessage ¶

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset ¶

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size ¶

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

func (*QueryParamsResponse) String ¶

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal ¶

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

func (*QueryParamsResponse) XXX_DiscardUnknown ¶

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal ¶

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

func (*QueryParamsResponse) XXX_Merge ¶

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

func (*QueryParamsResponse) XXX_Size ¶

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal ¶

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

type QueryServer ¶

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer ¶

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CwStoreCode ¶

func (*UnimplementedMsgServer) ExecuteCwContract ¶

func (*UnimplementedMsgServer) InstantiateCwContract ¶

type UnimplementedQueryServer ¶

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params ¶

type WasmKeeper ¶

type WasmKeeper interface {
}

Jump to

Keyboard shortcuts

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