wasm

package
v1.89.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

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

Jump to

Keyboard shortcuts

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