types

package
v0.0.0-...-b8140f3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func NextSequence(value []byte) []byte

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) Descriptor() ([]byte, []int)

func (*CosmosTx) GetMessages

func (m *CosmosTx) GetMessages() []*types.Any

func (*CosmosTx) Marshal

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

func (*CosmosTx) MarshalTo

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

func (*CosmosTx) MarshalToSizedBuffer

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

func (*CosmosTx) ProtoMessage

func (*CosmosTx) ProtoMessage()

func (*CosmosTx) Reset

func (m *CosmosTx) Reset()

func (*CosmosTx) Size

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

func (*CosmosTx) String

func (m *CosmosTx) String() string

func (*CosmosTx) Unmarshal

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

func (*CosmosTx) XXX_DiscardUnknown

func (m *CosmosTx) XXX_DiscardUnknown()

func (*CosmosTx) XXX_Marshal

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

func (*CosmosTx) XXX_Merge

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

func (*CosmosTx) XXX_Size

func (m *CosmosTx) XXX_Size() int

func (*CosmosTx) XXX_Unmarshal

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

type GRPCQueryRouter

type GRPCQueryRouter interface {
	Route(path string) baseapp.GRPCQueryHandler
}

type MsgRouter

type MsgRouter interface {
	Handler(msg sdk.Msg) func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error)
}

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

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

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

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

Jump to

Keyboard shortcuts

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