Documentation ¶
Index ¶
- Variables
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type MsgClient
- type MsgExecuteContract
- func (*MsgExecuteContract) Descriptor() ([]byte, []int)
- func (msg MsgExecuteContract) GetSignBytes() []byte
- func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContract) ProtoMessage()
- func (m *MsgExecuteContract) Reset()
- func (msg MsgExecuteContract) Route() string
- func (m *MsgExecuteContract) Size() (n int)
- func (m *MsgExecuteContract) String() string
- func (msg MsgExecuteContract) Type() string
- func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteContract) ValidateBasic() error
- func (m *MsgExecuteContract) XXX_DiscardUnknown()
- func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContract) XXX_Size() int
- func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
- type MsgExecuteContractResponse
- func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteContractResponse) GetData() []byte
- func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContractResponse) ProtoMessage()
- func (m *MsgExecuteContractResponse) Reset()
- func (m *MsgExecuteContractResponse) Size() (n int)
- func (m *MsgExecuteContractResponse) String() string
- func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContractResponse) XXX_Size() int
- func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type UnimplementedMsgServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterMsgServer ¶
Types ¶
type MsgClient ¶
type MsgClient interface { // Execute submits the given message data to a smart contract ExecuteContract(ctx context.Context, in *MsgExecuteContract, opts ...grpc.CallOption) (*MsgExecuteContractResponse, 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 MsgExecuteContract ¶
type MsgExecuteContract struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"` // ExecuteMsg json encoded message to be passed to the contract ExecuteMsg encoding_json.RawMessage `` /* 144-byte string literal not displayed */ // Coins that are transferred to the contract on execution Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"` }
MsgExecuteContract represents a message to submits the given message data to a smart contract.
func (*MsgExecuteContract) Descriptor ¶
func (*MsgExecuteContract) Descriptor() ([]byte, []int)
func (MsgExecuteContract) GetSignBytes ¶
func (msg MsgExecuteContract) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgExecuteContract) GetSigners ¶
func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgExecuteContract) Marshal ¶
func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
func (*MsgExecuteContract) MarshalTo ¶
func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteContract) MarshalToSizedBuffer ¶
func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteContract) ProtoMessage ¶
func (*MsgExecuteContract) ProtoMessage()
func (*MsgExecuteContract) Reset ¶
func (m *MsgExecuteContract) Reset()
func (MsgExecuteContract) Route ¶
func (msg MsgExecuteContract) Route() string
Route implements sdk.Msg
func (*MsgExecuteContract) Size ¶
func (m *MsgExecuteContract) Size() (n int)
func (*MsgExecuteContract) String ¶
func (m *MsgExecuteContract) String() string
func (MsgExecuteContract) Type ¶
func (msg MsgExecuteContract) Type() string
Type implements sdk.Msg
func (*MsgExecuteContract) Unmarshal ¶
func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
func (MsgExecuteContract) ValidateBasic ¶
func (msg MsgExecuteContract) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgExecuteContract) XXX_DiscardUnknown ¶
func (m *MsgExecuteContract) XXX_DiscardUnknown()
func (*MsgExecuteContract) XXX_Marshal ¶
func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteContract) XXX_Merge ¶
func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
func (*MsgExecuteContract) XXX_Size ¶
func (m *MsgExecuteContract) XXX_Size() int
func (*MsgExecuteContract) XXX_Unmarshal ¶
func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
type MsgExecuteContractResponse ¶
type MsgExecuteContractResponse struct { // Data contains base64-encoded bytes to returned from the contract Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data"` }
MsgExecuteContractResponse defines the Msg/ExecuteContract response type.
func (*MsgExecuteContractResponse) Descriptor ¶
func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteContractResponse) GetData ¶
func (m *MsgExecuteContractResponse) GetData() []byte
func (*MsgExecuteContractResponse) Marshal ¶
func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteContractResponse) MarshalTo ¶
func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteContractResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteContractResponse) ProtoMessage ¶
func (*MsgExecuteContractResponse) ProtoMessage()
func (*MsgExecuteContractResponse) Reset ¶
func (m *MsgExecuteContractResponse) Reset()
func (*MsgExecuteContractResponse) Size ¶
func (m *MsgExecuteContractResponse) Size() (n int)
func (*MsgExecuteContractResponse) String ¶
func (m *MsgExecuteContractResponse) String() string
func (*MsgExecuteContractResponse) Unmarshal ¶
func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteContractResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()
func (*MsgExecuteContractResponse) XXX_Marshal ¶
func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteContractResponse) XXX_Merge ¶
func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteContractResponse) XXX_Size ¶
func (m *MsgExecuteContractResponse) XXX_Size() int
func (*MsgExecuteContractResponse) XXX_Unmarshal ¶
func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Execute submits the given message data to a smart contract ExecuteContract(context.Context, *MsgExecuteContract) (*MsgExecuteContractResponse, error) }
MsgServer is the server API for Msg service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ExecuteContract ¶
func (*UnimplementedMsgServer) ExecuteContract(ctx context.Context, req *MsgExecuteContract) (*MsgExecuteContractResponse, error)
Click to show internal directories.
Click to hide internal directories.