Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type EditCSCAListProposal
- func (*EditCSCAListProposal) Descriptor() ([]byte, []int)
- func (m *EditCSCAListProposal) GetDescription() string
- func (m *EditCSCAListProposal) GetTitle() string
- func (m *EditCSCAListProposal) GetToAdd() []string
- func (m *EditCSCAListProposal) GetToRemove() []string
- func (m *EditCSCAListProposal) Marshal() (dAtA []byte, err error)
- func (m *EditCSCAListProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *EditCSCAListProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *EditCSCAListProposal) ProposalRoute() string
- func (m *EditCSCAListProposal) ProposalType() string
- func (*EditCSCAListProposal) ProtoMessage()
- func (m *EditCSCAListProposal) Reset()
- func (m *EditCSCAListProposal) Size() (n int)
- func (m *EditCSCAListProposal) String() string
- func (m *EditCSCAListProposal) Unmarshal(dAtA []byte) error
- func (m *EditCSCAListProposal) ValidateBasic() error
- func (m *EditCSCAListProposal) XXX_DiscardUnknown()
- func (m *EditCSCAListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EditCSCAListProposal) XXX_Merge(src proto.Message)
- func (m *EditCSCAListProposal) XXX_Size() int
- func (m *EditCSCAListProposal) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTree() []Node
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetChildrenHash() string
- func (m *Node) GetHash() string
- func (m *Node) GetKey() string
- func (m *Node) GetLeft() string
- func (m *Node) GetPriority() uint64
- func (m *Node) GetRight() string
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- func (m *Node) XXX_DiscardUnknown()
- func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Node) XXX_Merge(src proto.Message)
- func (m *Node) XXX_Size() int
- func (m *Node) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetLastUpdateOperationIndex() string
- func (m *Params) GetRootKey() string
- func (m *Params) GetRootUpdated() bool
- func (m *Params) GetUpdatedAtBlock() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTreeRequest
- func (*QueryTreeRequest) Descriptor() ([]byte, []int)
- func (m *QueryTreeRequest) GetPagination() *query.PageRequest
- func (m *QueryTreeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTreeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTreeRequest) ProtoMessage()
- func (m *QueryTreeRequest) Reset()
- func (m *QueryTreeRequest) Size() (n int)
- func (m *QueryTreeRequest) String() string
- func (m *QueryTreeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTreeRequest) XXX_DiscardUnknown()
- func (m *QueryTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTreeRequest) XXX_Merge(src proto.Message)
- func (m *QueryTreeRequest) XXX_Size() int
- func (m *QueryTreeRequest) XXX_Unmarshal(b []byte) error
- type QueryTreeResponse
- func (*QueryTreeResponse) Descriptor() ([]byte, []int)
- func (m *QueryTreeResponse) GetPagination() *query.PageResponse
- func (m *QueryTreeResponse) GetTree() []Node
- func (m *QueryTreeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTreeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTreeResponse) ProtoMessage()
- func (m *QueryTreeResponse) Reset()
- func (m *QueryTreeResponse) Size() (n int)
- func (m *QueryTreeResponse) String() string
- func (m *QueryTreeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTreeResponse) XXX_DiscardUnknown()
- func (m *QueryTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTreeResponse) XXX_Merge(src proto.Message)
- func (m *QueryTreeResponse) XXX_Size() int
- func (m *QueryTreeResponse) XXX_Unmarshal(b []byte) error
- type RarimocoreKeeper
- type ReplaceCSCAListProposal
- func (*ReplaceCSCAListProposal) Descriptor() ([]byte, []int)
- func (m *ReplaceCSCAListProposal) GetDescription() string
- func (m *ReplaceCSCAListProposal) GetLeaves() []string
- func (m *ReplaceCSCAListProposal) GetTitle() string
- func (m *ReplaceCSCAListProposal) Marshal() (dAtA []byte, err error)
- func (m *ReplaceCSCAListProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ReplaceCSCAListProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *ReplaceCSCAListProposal) ProposalRoute() string
- func (m *ReplaceCSCAListProposal) ProposalType() string
- func (*ReplaceCSCAListProposal) ProtoMessage()
- func (m *ReplaceCSCAListProposal) Reset()
- func (m *ReplaceCSCAListProposal) Size() (n int)
- func (m *ReplaceCSCAListProposal) String() string
- func (m *ReplaceCSCAListProposal) Unmarshal(dAtA []byte) error
- func (m *ReplaceCSCAListProposal) ValidateBasic() error
- func (m *ReplaceCSCAListProposal) XXX_DiscardUnknown()
- func (m *ReplaceCSCAListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReplaceCSCAListProposal) XXX_Merge(src proto.Message)
- func (m *ReplaceCSCAListProposal) XXX_Size() int
- func (m *ReplaceCSCAListProposal) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "cscalist" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_cscalist" // ParamsKey defines the store key for module params entry ParamsKey = "params" // NodeKeyPrefix defines the prefix for the Merkle tree's node entry NodeKeyPrefix = "Node/value/" )
const ( ProposalTypeEditCSCAList = "cscalist/EditCSCAList" ProposalTypeReplaceCSCAList = "cscalist/ReplaceCSCAList" )
Variables ¶
var ( ErrInvalidLengthCscalist = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCscalist = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCscalist = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ErrUnknownRequest = errors.Register("cscalist", 6, "unknown request")
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type EditCSCAListProposal ¶
type EditCSCAListProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Keccak256 hashes of new CSCA public keys ToAdd []string `protobuf:"bytes,3,rep,name=toAdd,proto3" json:"toAdd,omitempty"` // Keccak256 hashes of existing CSCA public keys ToRemove []string `protobuf:"bytes,4,rep,name=toRemove,proto3" json:"toRemove,omitempty"` }
EditCSCAListProposal allows to propose changes in CSCA list, which are required in case of a CSCA key compromise or adding new authorities. Use it when you want to add or remove a few CSCA keys.
func (*EditCSCAListProposal) Descriptor ¶
func (*EditCSCAListProposal) Descriptor() ([]byte, []int)
func (*EditCSCAListProposal) GetDescription ¶
func (m *EditCSCAListProposal) GetDescription() string
func (*EditCSCAListProposal) GetTitle ¶
func (m *EditCSCAListProposal) GetTitle() string
func (*EditCSCAListProposal) GetToAdd ¶
func (m *EditCSCAListProposal) GetToAdd() []string
func (*EditCSCAListProposal) GetToRemove ¶
func (m *EditCSCAListProposal) GetToRemove() []string
func (*EditCSCAListProposal) Marshal ¶
func (m *EditCSCAListProposal) Marshal() (dAtA []byte, err error)
func (*EditCSCAListProposal) MarshalTo ¶
func (m *EditCSCAListProposal) MarshalTo(dAtA []byte) (int, error)
func (*EditCSCAListProposal) MarshalToSizedBuffer ¶
func (m *EditCSCAListProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EditCSCAListProposal) ProposalRoute ¶
func (m *EditCSCAListProposal) ProposalRoute() string
func (*EditCSCAListProposal) ProposalType ¶
func (m *EditCSCAListProposal) ProposalType() string
func (*EditCSCAListProposal) ProtoMessage ¶
func (*EditCSCAListProposal) ProtoMessage()
func (*EditCSCAListProposal) Reset ¶
func (m *EditCSCAListProposal) Reset()
func (*EditCSCAListProposal) Size ¶
func (m *EditCSCAListProposal) Size() (n int)
func (*EditCSCAListProposal) String ¶
func (m *EditCSCAListProposal) String() string
func (*EditCSCAListProposal) Unmarshal ¶
func (m *EditCSCAListProposal) Unmarshal(dAtA []byte) error
func (*EditCSCAListProposal) ValidateBasic ¶
func (m *EditCSCAListProposal) ValidateBasic() error
func (*EditCSCAListProposal) XXX_DiscardUnknown ¶
func (m *EditCSCAListProposal) XXX_DiscardUnknown()
func (*EditCSCAListProposal) XXX_Marshal ¶
func (m *EditCSCAListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EditCSCAListProposal) XXX_Merge ¶
func (m *EditCSCAListProposal) XXX_Merge(src proto.Message)
func (*EditCSCAListProposal) XXX_Size ¶
func (m *EditCSCAListProposal) XXX_Size() int
func (*EditCSCAListProposal) XXX_Unmarshal ¶
func (m *EditCSCAListProposal) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Tree []Node `protobuf:"bytes,2,rep,name=tree,proto3" json:"tree"` }
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) GetTree ¶
func (m *GenesisState) GetTree() []Node
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 Node ¶
type Node struct { // Node self key Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Node priority (should be random) Priority uint64 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` // Node left son key Left string `protobuf:"bytes,4,opt,name=left,proto3" json:"left,omitempty"` // Node right son key Right string `protobuf:"bytes,5,opt,name=right,proto3" json:"right,omitempty"` // Merkle hash. H = Hash(Hash(left_key|right_key)|self_key) Hash string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"` // Hash(left_key|right_key) ChildrenHash string `protobuf:"bytes,7,opt,name=childrenHash,proto3" json:"childrenHash,omitempty"` }
func (*Node) Descriptor ¶
func (*Node) GetChildrenHash ¶
func (*Node) GetPriority ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) XXX_DiscardUnknown ¶
func (m *Node) XXX_DiscardUnknown()
func (*Node) XXX_Unmarshal ¶
type Params ¶
type Params struct { // RootKey is the key of the current root node RootKey string `protobuf:"bytes,1,opt,name=rootKey,proto3" json:"rootKey,omitempty"` // RootUpdated is true when the root node was updated in Rarimo, but not in Chain RootUpdated bool `protobuf:"varint,2,opt,name=rootUpdated,proto3" json:"rootUpdated,omitempty"` // UpdatedAtBlock is the block number of the last root update UpdatedAtBlock uint64 `protobuf:"varint,3,opt,name=updatedAtBlock,proto3" json:"updatedAtBlock,omitempty"` // LastUpdateOperationIndex is index of last root update operation LastUpdateOperationIndex string `protobuf:"bytes,4,opt,name=lastUpdateOperationIndex,proto3" json:"lastUpdateOperationIndex,omitempty"` }
func (*Params) Descriptor ¶
func (*Params) GetLastUpdateOperationIndex ¶
func (*Params) GetRootKey ¶
func (*Params) GetRootUpdated ¶
func (*Params) GetUpdatedAtBlock ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) Tree(ctx context.Context, in *QueryTreeRequest, opts ...grpc.CallOption) (*QueryTreeResponse, 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 { }
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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
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 { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) Tree(context.Context, *QueryTreeRequest) (*QueryTreeResponse, error) }
QueryServer is the server API for Query service.
type QueryTreeRequest ¶
type QueryTreeRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryTreeRequest) Descriptor ¶
func (*QueryTreeRequest) Descriptor() ([]byte, []int)
func (*QueryTreeRequest) GetPagination ¶
func (m *QueryTreeRequest) GetPagination() *query.PageRequest
func (*QueryTreeRequest) Marshal ¶
func (m *QueryTreeRequest) Marshal() (dAtA []byte, err error)
func (*QueryTreeRequest) MarshalToSizedBuffer ¶
func (m *QueryTreeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTreeRequest) ProtoMessage ¶
func (*QueryTreeRequest) ProtoMessage()
func (*QueryTreeRequest) Reset ¶
func (m *QueryTreeRequest) Reset()
func (*QueryTreeRequest) Size ¶
func (m *QueryTreeRequest) Size() (n int)
func (*QueryTreeRequest) String ¶
func (m *QueryTreeRequest) String() string
func (*QueryTreeRequest) Unmarshal ¶
func (m *QueryTreeRequest) Unmarshal(dAtA []byte) error
func (*QueryTreeRequest) XXX_DiscardUnknown ¶
func (m *QueryTreeRequest) XXX_DiscardUnknown()
func (*QueryTreeRequest) XXX_Marshal ¶
func (m *QueryTreeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTreeRequest) XXX_Merge ¶
func (m *QueryTreeRequest) XXX_Merge(src proto.Message)
func (*QueryTreeRequest) XXX_Size ¶
func (m *QueryTreeRequest) XXX_Size() int
func (*QueryTreeRequest) XXX_Unmarshal ¶
func (m *QueryTreeRequest) XXX_Unmarshal(b []byte) error
type QueryTreeResponse ¶
type QueryTreeResponse struct { Tree []Node `protobuf:"bytes,1,rep,name=tree,proto3" json:"tree"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryTreeResponse) Descriptor ¶
func (*QueryTreeResponse) Descriptor() ([]byte, []int)
func (*QueryTreeResponse) GetPagination ¶
func (m *QueryTreeResponse) GetPagination() *query.PageResponse
func (*QueryTreeResponse) GetTree ¶
func (m *QueryTreeResponse) GetTree() []Node
func (*QueryTreeResponse) Marshal ¶
func (m *QueryTreeResponse) Marshal() (dAtA []byte, err error)
func (*QueryTreeResponse) MarshalTo ¶
func (m *QueryTreeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTreeResponse) MarshalToSizedBuffer ¶
func (m *QueryTreeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTreeResponse) ProtoMessage ¶
func (*QueryTreeResponse) ProtoMessage()
func (*QueryTreeResponse) Reset ¶
func (m *QueryTreeResponse) Reset()
func (*QueryTreeResponse) Size ¶
func (m *QueryTreeResponse) Size() (n int)
func (*QueryTreeResponse) String ¶
func (m *QueryTreeResponse) String() string
func (*QueryTreeResponse) Unmarshal ¶
func (m *QueryTreeResponse) Unmarshal(dAtA []byte) error
func (*QueryTreeResponse) XXX_DiscardUnknown ¶
func (m *QueryTreeResponse) XXX_DiscardUnknown()
func (*QueryTreeResponse) XXX_Marshal ¶
func (m *QueryTreeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTreeResponse) XXX_Merge ¶
func (m *QueryTreeResponse) XXX_Merge(src proto.Message)
func (*QueryTreeResponse) XXX_Size ¶
func (m *QueryTreeResponse) XXX_Size() int
func (*QueryTreeResponse) XXX_Unmarshal ¶
func (m *QueryTreeResponse) XXX_Unmarshal(b []byte) error
type RarimocoreKeeper ¶
type ReplaceCSCAListProposal ¶
type ReplaceCSCAListProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Keccak256 hashes of all CSCA public keys Leaves []string `protobuf:"bytes,3,rep,name=leaves,proto3" json:"leaves,omitempty"` }
ReplaceCSCAListProposal allows to propose a different CSCA list. This drops the old tree and rebuilds the new one from scratch. Use EditCSCAListProposal instead, unless you know what you are doing.
func (*ReplaceCSCAListProposal) Descriptor ¶
func (*ReplaceCSCAListProposal) Descriptor() ([]byte, []int)
func (*ReplaceCSCAListProposal) GetDescription ¶
func (m *ReplaceCSCAListProposal) GetDescription() string
func (*ReplaceCSCAListProposal) GetLeaves ¶
func (m *ReplaceCSCAListProposal) GetLeaves() []string
func (*ReplaceCSCAListProposal) GetTitle ¶
func (m *ReplaceCSCAListProposal) GetTitle() string
func (*ReplaceCSCAListProposal) Marshal ¶
func (m *ReplaceCSCAListProposal) Marshal() (dAtA []byte, err error)
func (*ReplaceCSCAListProposal) MarshalTo ¶
func (m *ReplaceCSCAListProposal) MarshalTo(dAtA []byte) (int, error)
func (*ReplaceCSCAListProposal) MarshalToSizedBuffer ¶
func (m *ReplaceCSCAListProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReplaceCSCAListProposal) ProposalRoute ¶
func (m *ReplaceCSCAListProposal) ProposalRoute() string
func (*ReplaceCSCAListProposal) ProposalType ¶
func (m *ReplaceCSCAListProposal) ProposalType() string
func (*ReplaceCSCAListProposal) ProtoMessage ¶
func (*ReplaceCSCAListProposal) ProtoMessage()
func (*ReplaceCSCAListProposal) Reset ¶
func (m *ReplaceCSCAListProposal) Reset()
func (*ReplaceCSCAListProposal) Size ¶
func (m *ReplaceCSCAListProposal) Size() (n int)
func (*ReplaceCSCAListProposal) String ¶
func (m *ReplaceCSCAListProposal) String() string
func (*ReplaceCSCAListProposal) Unmarshal ¶
func (m *ReplaceCSCAListProposal) Unmarshal(dAtA []byte) error
func (*ReplaceCSCAListProposal) ValidateBasic ¶
func (m *ReplaceCSCAListProposal) ValidateBasic() error
func (*ReplaceCSCAListProposal) XXX_DiscardUnknown ¶
func (m *ReplaceCSCAListProposal) XXX_DiscardUnknown()
func (*ReplaceCSCAListProposal) XXX_Marshal ¶
func (m *ReplaceCSCAListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReplaceCSCAListProposal) XXX_Merge ¶
func (m *ReplaceCSCAListProposal) XXX_Merge(src proto.Message)
func (*ReplaceCSCAListProposal) XXX_Size ¶
func (m *ReplaceCSCAListProposal) XXX_Size() int
func (*ReplaceCSCAListProposal) XXX_Unmarshal ¶
func (m *ReplaceCSCAListProposal) XXX_Unmarshal(b []byte) error
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Tree ¶
func (*UnimplementedQueryServer) Tree(ctx context.Context, req *QueryTreeRequest) (*QueryTreeResponse, error)