Documentation ¶
Index ¶
- Constants
- Variables
- func NextSequence(value []byte) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- type CosmosTx
- func (*CosmosTx) Descriptor() ([]byte, []int)
- func (m *CosmosTx) GetMessages() []*types.Any
- func (m *CosmosTx) Marshal() (dAtA []byte, err error)
- func (m *CosmosTx) MarshalTo(dAtA []byte) (int, error)
- func (m *CosmosTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CosmosTx) ProtoMessage()
- func (m *CosmosTx) Reset()
- func (m *CosmosTx) Size() (n int)
- func (m *CosmosTx) String() string
- func (m *CosmosTx) Unmarshal(dAtA []byte) error
- func (m *CosmosTx) XXX_DiscardUnknown()
- func (m *CosmosTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CosmosTx) XXX_Merge(src proto.Message)
- func (m *CosmosTx) XXX_Size() int
- func (m *CosmosTx) XXX_Unmarshal(b []byte) error
- type GRPCQueryRouter
- type MsgRouter
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRequest) GetFullMethod() string
- func (m *QueryRequest) GetReplyType() string
- func (m *QueryRequest) GetRequest() *types.Any
- func (m *QueryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) Size() (n int)
- func (m *QueryRequest) String() string
- func (m *QueryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRequest) XXX_DiscardUnknown()
- func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRequest) XXX_Size() int
- func (m *QueryRequest) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetError() string
- func (m *QueryResponse) GetHeight() int64
- func (m *QueryResponse) GetReply() *types.Any
- func (m *QueryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) Size() (n int)
- func (m *QueryResponse) String() string
- func (m *QueryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type QueryResponses
- func (*QueryResponses) Descriptor() ([]byte, []int)
- func (m *QueryResponses) GetResponses() []*QueryResponse
- func (m *QueryResponses) Marshal() (dAtA []byte, err error)
- func (m *QueryResponses) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResponses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResponses) ProtoMessage()
- func (m *QueryResponses) Reset()
- func (m *QueryResponses) Size() (n int)
- func (m *QueryResponses) String() string
- func (m *QueryResponses) Unmarshal(dAtA []byte) error
- func (m *QueryResponses) XXX_DiscardUnknown()
- func (m *QueryResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponses) XXX_Merge(src proto.Message)
- func (m *QueryResponses) XXX_Size() int
- func (m *QueryResponses) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( // module name ModuleName = "vlocalchain" // StoreKey to be used when creating the KVStore StoreKey = ModuleName )
View Source
const RouterKey = ModuleName // this was defined in your key.go file
Variables ¶
View Source
var ( ErrInvalidLengthVlocalchain = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVlocalchain = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVlocalchain = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // KeyLastSequence is the key used to store the last sequence (big-endian // uint64) to help derive a fresh module account address KeyLastSequence = []byte("lastSequence") )
View Source
var ( // ModuleCdc references the global x/deployment 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/swingset and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func NextSequence ¶
NextSequence interprets the value byte slice as a big-endian uint64, and returns a new big-endian byte slice representing the value plus 1.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
RegisterCodec registers concrete types on the Amino codec
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/swingset interfaces types with the interface registry
Types ¶
type CosmosTx ¶
type CosmosTx struct {
Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}
CosmosTx contains a list of sdk.Msg's. It should be used when sending transactions to a local chain.
func (*CosmosTx) Descriptor ¶
func (*CosmosTx) GetMessages ¶
func (*CosmosTx) MarshalToSizedBuffer ¶
func (*CosmosTx) ProtoMessage ¶
func (*CosmosTx) ProtoMessage()
func (*CosmosTx) XXX_DiscardUnknown ¶
func (m *CosmosTx) XXX_DiscardUnknown()
func (*CosmosTx) XXX_Marshal ¶
func (*CosmosTx) XXX_Unmarshal ¶
type GRPCQueryRouter ¶
type GRPCQueryRouter interface {
Route(path string) baseapp.GRPCQueryHandler
}
type QueryRequest ¶
type QueryRequest struct { FullMethod string `protobuf:"bytes,1,opt,name=full_method,json=fullMethod,proto3" json:"full_method,omitempty"` Request *types.Any `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` ReplyType string `protobuf:"bytes,3,opt,name=reply_type,json=replyType,proto3" json:"reply_type,omitempty"` }
QueryRequest is used internally to describe a query for the local chain.
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) GetFullMethod ¶
func (m *QueryRequest) GetFullMethod() string
func (*QueryRequest) GetReplyType ¶
func (m *QueryRequest) GetReplyType() string
func (*QueryRequest) GetRequest ¶
func (m *QueryRequest) GetRequest() *types.Any
func (*QueryRequest) Marshal ¶
func (m *QueryRequest) Marshal() (dAtA []byte, err error)
func (*QueryRequest) MarshalToSizedBuffer ¶
func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) Size ¶
func (m *QueryRequest) Size() (n int)
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
func (*QueryRequest) Unmarshal ¶
func (m *QueryRequest) Unmarshal(dAtA []byte) error
func (*QueryRequest) XXX_DiscardUnknown ¶
func (m *QueryRequest) XXX_DiscardUnknown()
func (*QueryRequest) XXX_Marshal ¶
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequest) XXX_Merge ¶
func (m *QueryRequest) XXX_Merge(src proto.Message)
func (*QueryRequest) XXX_Size ¶
func (m *QueryRequest) XXX_Size() int
func (*QueryRequest) XXX_Unmarshal ¶
func (m *QueryRequest) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Reply *types.Any `protobuf:"bytes,2,opt,name=reply,proto3" json:"reply,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` }
QueryResponse is used internally to describe a response from the local chain.
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetError ¶
func (m *QueryResponse) GetError() string
func (*QueryResponse) GetHeight ¶
func (m *QueryResponse) GetHeight() int64
func (*QueryResponse) GetReply ¶
func (m *QueryResponse) GetReply() *types.Any
func (*QueryResponse) Marshal ¶
func (m *QueryResponse) Marshal() (dAtA []byte, err error)
func (*QueryResponse) MarshalToSizedBuffer ¶
func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) Size ¶
func (m *QueryResponse) Size() (n int)
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) Unmarshal ¶
func (m *QueryResponse) Unmarshal(dAtA []byte) error
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (m *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type QueryResponses ¶
type QueryResponses struct {
Responses []*QueryResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
}
QueryResponses is used to group multiple QueryResponse messages.
func (*QueryResponses) Descriptor ¶
func (*QueryResponses) Descriptor() ([]byte, []int)
func (*QueryResponses) GetResponses ¶
func (m *QueryResponses) GetResponses() []*QueryResponse
func (*QueryResponses) Marshal ¶
func (m *QueryResponses) Marshal() (dAtA []byte, err error)
func (*QueryResponses) MarshalToSizedBuffer ¶
func (m *QueryResponses) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResponses) ProtoMessage ¶
func (*QueryResponses) ProtoMessage()
func (*QueryResponses) Reset ¶
func (m *QueryResponses) Reset()
func (*QueryResponses) Size ¶
func (m *QueryResponses) Size() (n int)
func (*QueryResponses) String ¶
func (m *QueryResponses) String() string
func (*QueryResponses) Unmarshal ¶
func (m *QueryResponses) Unmarshal(dAtA []byte) error
func (*QueryResponses) XXX_DiscardUnknown ¶
func (m *QueryResponses) XXX_DiscardUnknown()
func (*QueryResponses) XXX_Marshal ¶
func (m *QueryResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponses) XXX_Merge ¶
func (m *QueryResponses) XXX_Merge(src proto.Message)
func (*QueryResponses) XXX_Size ¶
func (m *QueryResponses) XXX_Size() int
func (*QueryResponses) XXX_Unmarshal ¶
func (m *QueryResponses) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.