Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetResourceDataKey(collectionId string, id string) []byte
- func GetResourceMetadataCollectionPrefix(collectionId string) []byte
- func GetResourceMetadataKey(collectionId string, id string) []byte
- func ParamKeyTable() paramstypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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)
- func ValidAlternativeUri() *didtypes.CustomErrorRule
- func ValidMsgCreateResourcePayload() *didtypes.CustomErrorRule
- type AlternativeUri
- func (*AlternativeUri) Descriptor() ([]byte, []int)
- func (m *AlternativeUri) GetDescription() string
- func (m *AlternativeUri) GetUri() string
- func (m *AlternativeUri) Marshal() (dAtA []byte, err error)
- func (m *AlternativeUri) MarshalTo(dAtA []byte) (int, error)
- func (m *AlternativeUri) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AlternativeUri) ProtoMessage()
- func (m *AlternativeUri) Reset()
- func (m *AlternativeUri) Size() (n int)
- func (m *AlternativeUri) String() string
- func (m *AlternativeUri) Unmarshal(dAtA []byte) error
- func (au AlternativeUri) Validate() error
- func (m *AlternativeUri) XXX_DiscardUnknown()
- func (m *AlternativeUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AlternativeUri) XXX_Merge(src proto.Message)
- func (m *AlternativeUri) XXX_Size() int
- func (m *AlternativeUri) XXX_Unmarshal(b []byte) error
- type FeeParams
- func (*FeeParams) Descriptor() ([]byte, []int)
- func (this *FeeParams) Equal(that interface{}) bool
- func (m *FeeParams) GetDefault() types.Coin
- func (m *FeeParams) GetImage() types.Coin
- func (m *FeeParams) GetJson() types.Coin
- func (m *FeeParams) Marshal() (dAtA []byte, err error)
- func (m *FeeParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeeParams) ProtoMessage()
- func (m *FeeParams) Reset()
- func (m *FeeParams) Size() (n int)
- func (m *FeeParams) String() string
- func (m *FeeParams) Unmarshal(dAtA []byte) error
- func (tfp *FeeParams) ValidateBasic() error
- func (m *FeeParams) XXX_DiscardUnknown()
- func (m *FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeeParams) XXX_Merge(src proto.Message)
- func (m *FeeParams) XXX_Size() int
- func (m *FeeParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFeeParams() *FeeParams
- func (m *GenesisState) GetResources() []*ResourceWithMetadata
- 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 (gs GenesisState) ValidateNoDuplicates() 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 Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetAlsoKnownAs() []*AlternativeUri
- func (m *Metadata) GetChecksum() string
- func (m *Metadata) GetCollectionId() string
- func (m *Metadata) GetCreated() string
- func (m *Metadata) GetId() string
- func (m *Metadata) GetMediaType() string
- func (m *Metadata) GetName() string
- func (m *Metadata) GetNextVersionId() string
- func (m *Metadata) GetPreviousVersionId() string
- func (m *Metadata) GetResourceType() string
- func (m *Metadata) GetVersion() string
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateResource
- func (*MsgCreateResource) Descriptor() ([]byte, []int)
- func (m *MsgCreateResource) GetPayload() *MsgCreateResourcePayload
- func (msg *MsgCreateResource) GetSignBytes() []byte
- func (m *MsgCreateResource) GetSignatures() []*types.SignInfo
- func (msg *MsgCreateResource) GetSigners() []sdk.AccAddress
- func (m *MsgCreateResource) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResource) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgCreateResource) Normalize()
- func (*MsgCreateResource) ProtoMessage()
- func (m *MsgCreateResource) Reset()
- func (msg *MsgCreateResource) Route() string
- func (m *MsgCreateResource) Size() (n int)
- func (m *MsgCreateResource) String() string
- func (msg *MsgCreateResource) Type() string
- func (m *MsgCreateResource) Unmarshal(dAtA []byte) error
- func (msg MsgCreateResource) Validate(allowedNamespaces []string) error
- func (msg *MsgCreateResource) ValidateBasic() error
- func (m *MsgCreateResource) XXX_DiscardUnknown()
- func (m *MsgCreateResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResource) XXX_Merge(src proto.Message)
- func (m *MsgCreateResource) XXX_Size() int
- func (m *MsgCreateResource) XXX_Unmarshal(b []byte) error
- type MsgCreateResourcePayload
- func (*MsgCreateResourcePayload) Descriptor() ([]byte, []int)
- func (m *MsgCreateResourcePayload) GetAlsoKnownAs() []*AlternativeUri
- func (m *MsgCreateResourcePayload) GetCollectionId() string
- func (m *MsgCreateResourcePayload) GetData() []byte
- func (m *MsgCreateResourcePayload) GetId() string
- func (m *MsgCreateResourcePayload) GetName() string
- func (m *MsgCreateResourcePayload) GetResourceType() string
- func (msg *MsgCreateResourcePayload) GetSignBytes() []byte
- func (m *MsgCreateResourcePayload) GetVersion() string
- func (m *MsgCreateResourcePayload) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResourcePayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResourcePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (msg *MsgCreateResourcePayload) Normalize()
- func (*MsgCreateResourcePayload) ProtoMessage()
- func (m *MsgCreateResourcePayload) Reset()
- func (m *MsgCreateResourcePayload) Size() (n int)
- func (m *MsgCreateResourcePayload) String() string
- func (msg *MsgCreateResourcePayload) ToResource() ResourceWithMetadata
- func (m *MsgCreateResourcePayload) Unmarshal(dAtA []byte) error
- func (msg MsgCreateResourcePayload) Validate() error
- func (m *MsgCreateResourcePayload) XXX_DiscardUnknown()
- func (m *MsgCreateResourcePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResourcePayload) XXX_Merge(src proto.Message)
- func (m *MsgCreateResourcePayload) XXX_Size() int
- func (m *MsgCreateResourcePayload) XXX_Unmarshal(b []byte) error
- type MsgCreateResourceResponse
- func (*MsgCreateResourceResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResourceResponse) GetResource() *Metadata
- func (m *MsgCreateResourceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResourceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResourceResponse) ProtoMessage()
- func (m *MsgCreateResourceResponse) Reset()
- func (m *MsgCreateResourceResponse) Size() (n int)
- func (m *MsgCreateResourceResponse) String() string
- func (m *MsgCreateResourceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResourceResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResourceResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResourceResponse) XXX_Size() int
- func (m *MsgCreateResourceResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type ParamSubspace
- type QueryClient
- type QueryGetCollectionResourcesRequest
- func (*QueryGetCollectionResourcesRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetCollectionResourcesRequest) GetCollectionId() string
- func (m *QueryGetCollectionResourcesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCollectionResourcesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCollectionResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryGetCollectionResourcesRequest) Normalize()
- func (*QueryGetCollectionResourcesRequest) ProtoMessage()
- func (m *QueryGetCollectionResourcesRequest) Reset()
- func (m *QueryGetCollectionResourcesRequest) Size() (n int)
- func (m *QueryGetCollectionResourcesRequest) String() string
- func (m *QueryGetCollectionResourcesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetCollectionResourcesRequest) XXX_DiscardUnknown()
- func (m *QueryGetCollectionResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCollectionResourcesRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetCollectionResourcesRequest) XXX_Size() int
- func (m *QueryGetCollectionResourcesRequest) XXX_Unmarshal(b []byte) error
- type QueryGetCollectionResourcesResponse
- func (*QueryGetCollectionResourcesResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetCollectionResourcesResponse) GetResources() []*Metadata
- func (m *QueryGetCollectionResourcesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCollectionResourcesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCollectionResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetCollectionResourcesResponse) ProtoMessage()
- func (m *QueryGetCollectionResourcesResponse) Reset()
- func (m *QueryGetCollectionResourcesResponse) Size() (n int)
- func (m *QueryGetCollectionResourcesResponse) String() string
- func (m *QueryGetCollectionResourcesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetCollectionResourcesResponse) XXX_DiscardUnknown()
- func (m *QueryGetCollectionResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCollectionResourcesResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetCollectionResourcesResponse) XXX_Size() int
- func (m *QueryGetCollectionResourcesResponse) XXX_Unmarshal(b []byte) error
- type QueryGetResourceMetadataRequest
- func (*QueryGetResourceMetadataRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetResourceMetadataRequest) GetCollectionId() string
- func (m *QueryGetResourceMetadataRequest) GetId() string
- func (m *QueryGetResourceMetadataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetResourceMetadataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetResourceMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryGetResourceMetadataRequest) Normalize()
- func (*QueryGetResourceMetadataRequest) ProtoMessage()
- func (m *QueryGetResourceMetadataRequest) Reset()
- func (m *QueryGetResourceMetadataRequest) Size() (n int)
- func (m *QueryGetResourceMetadataRequest) String() string
- func (m *QueryGetResourceMetadataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetResourceMetadataRequest) XXX_DiscardUnknown()
- func (m *QueryGetResourceMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetResourceMetadataRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetResourceMetadataRequest) XXX_Size() int
- func (m *QueryGetResourceMetadataRequest) XXX_Unmarshal(b []byte) error
- type QueryGetResourceMetadataResponse
- func (*QueryGetResourceMetadataResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetResourceMetadataResponse) GetResource() *Metadata
- func (m *QueryGetResourceMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetResourceMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetResourceMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetResourceMetadataResponse) ProtoMessage()
- func (m *QueryGetResourceMetadataResponse) Reset()
- func (m *QueryGetResourceMetadataResponse) Size() (n int)
- func (m *QueryGetResourceMetadataResponse) String() string
- func (m *QueryGetResourceMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetResourceMetadataResponse) XXX_DiscardUnknown()
- func (m *QueryGetResourceMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetResourceMetadataResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetResourceMetadataResponse) XXX_Size() int
- func (m *QueryGetResourceMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryGetResourceRequest
- func (*QueryGetResourceRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetResourceRequest) GetCollectionId() string
- func (m *QueryGetResourceRequest) GetId() string
- func (m *QueryGetResourceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetResourceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (query *QueryGetResourceRequest) Normalize()
- func (*QueryGetResourceRequest) ProtoMessage()
- func (m *QueryGetResourceRequest) Reset()
- func (m *QueryGetResourceRequest) Size() (n int)
- func (m *QueryGetResourceRequest) String() string
- func (m *QueryGetResourceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetResourceRequest) XXX_DiscardUnknown()
- func (m *QueryGetResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetResourceRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetResourceRequest) XXX_Size() int
- func (m *QueryGetResourceRequest) XXX_Unmarshal(b []byte) error
- type QueryGetResourceResponse
- func (*QueryGetResourceResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetResourceResponse) GetResource() *ResourceWithMetadata
- func (m *QueryGetResourceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetResourceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetResourceResponse) ProtoMessage()
- func (m *QueryGetResourceResponse) Reset()
- func (m *QueryGetResourceResponse) Size() (n int)
- func (m *QueryGetResourceResponse) String() string
- func (m *QueryGetResourceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetResourceResponse) XXX_DiscardUnknown()
- func (m *QueryGetResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetResourceResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetResourceResponse) XXX_Size() int
- func (m *QueryGetResourceResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetData() []byte
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type ResourceWithMetadata
- func (*ResourceWithMetadata) Descriptor() ([]byte, []int)
- func (m *ResourceWithMetadata) GetMetadata() *Metadata
- func (m *ResourceWithMetadata) GetResource() *Resource
- func (m *ResourceWithMetadata) Marshal() (dAtA []byte, err error)
- func (m *ResourceWithMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceWithMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceWithMetadata) ProtoMessage()
- func (m *ResourceWithMetadata) Reset()
- func (m *ResourceWithMetadata) Size() (n int)
- func (m *ResourceWithMetadata) String() string
- func (m *ResourceWithMetadata) Unmarshal(dAtA []byte) error
- func (m *ResourceWithMetadata) XXX_DiscardUnknown()
- func (m *ResourceWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceWithMetadata) XXX_Merge(src proto.Message)
- func (m *ResourceWithMetadata) XXX_Size() int
- func (m *ResourceWithMetadata) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CollectionResources(ctx context.Context, req *QueryGetCollectionResourcesRequest) (*QueryGetCollectionResourcesResponse, error)
- func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryGetResourceRequest) (*QueryGetResourceResponse, error)
- func (*UnimplementedQueryServer) ResourceMetadata(ctx context.Context, req *QueryGetResourceMetadataRequest) (*QueryGetResourceMetadataResponse, error)
Constants ¶
const ( DefaultCreateResourceImageFee = 10e9 // 10 CHEQ or 10000000000 ncheq DefaultCreateResourceJsonFee = 25e8 // 2.5 CHEQ or 2500000000 ncheq DefaultCreateResourceDefaultFee = 5e9 // 5 CHEQ or 5000000000 ncheq DefaultBurnFactor = "0.500000000000000000" // 0.5 or 50% )
const ( // ModuleName defines the module name ModuleName = "resource" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( ResourceMetadataKey = "resource-metadata:" ResourceDataKey = "resource-data:" ResourceCountKey = "resource-count:" )
const ( QueryGetResource = "get-resource" QueryGetResourceMetadata = "get-resource-metadata" QueryGetCollectionResources = "get-collection-resources" )
const (
BaseMinimalDenom = "ncheq"
)
Variables ¶
var ( ErrBadRequest = sdkerrors.Register(ModuleName, 2000, "bad request") ErrResourceExists = sdkerrors.Register(ModuleName, 2200, "Resoure exists") ErrBasicValidation = sdkerrors.Register(ModuleName, 2205, "basic validation failed") ErrInternal = sdkerrors.Register(ModuleName, 2500, "internal error") )
x/resource module sentinel errors
var ( ErrInvalidLengthFee = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFee = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFee = 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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthResource = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowResource = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupResource = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var ParamStoreKeyFeeParams = []byte("feeparams")
Functions ¶
func GetResourceDataKey ¶ added in v0.8.0
GetResourceDataKey returns the byte representation of resource key
func GetResourceMetadataCollectionPrefix ¶ added in v0.8.0
GetResourceMetadataCollectionPrefix used to iterate over all resource metadatas in a collection
func GetResourceMetadataKey ¶ added in v0.8.0
GetResourceMetadataKey returns the byte representation of resource key
func ParamKeyTable ¶ added in v0.8.0
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable returns the key declaration for parameters
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
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)
func ValidAlternativeUri ¶ added in v0.8.0
func ValidAlternativeUri() *didtypes.CustomErrorRule
func ValidMsgCreateResourcePayload ¶
func ValidMsgCreateResourcePayload() *didtypes.CustomErrorRule
Types ¶
type AlternativeUri ¶ added in v0.8.0
type AlternativeUri struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` }
func (*AlternativeUri) Descriptor ¶ added in v0.8.0
func (*AlternativeUri) Descriptor() ([]byte, []int)
func (*AlternativeUri) GetDescription ¶ added in v0.8.0
func (m *AlternativeUri) GetDescription() string
func (*AlternativeUri) GetUri ¶ added in v0.8.0
func (m *AlternativeUri) GetUri() string
func (*AlternativeUri) Marshal ¶ added in v0.8.0
func (m *AlternativeUri) Marshal() (dAtA []byte, err error)
func (*AlternativeUri) MarshalTo ¶ added in v0.8.0
func (m *AlternativeUri) MarshalTo(dAtA []byte) (int, error)
func (*AlternativeUri) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *AlternativeUri) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AlternativeUri) ProtoMessage ¶ added in v0.8.0
func (*AlternativeUri) ProtoMessage()
func (*AlternativeUri) Reset ¶ added in v0.8.0
func (m *AlternativeUri) Reset()
func (*AlternativeUri) Size ¶ added in v0.8.0
func (m *AlternativeUri) Size() (n int)
func (*AlternativeUri) String ¶ added in v0.8.0
func (m *AlternativeUri) String() string
func (*AlternativeUri) Unmarshal ¶ added in v0.8.0
func (m *AlternativeUri) Unmarshal(dAtA []byte) error
func (AlternativeUri) Validate ¶ added in v0.8.0
func (au AlternativeUri) Validate() error
validation
func (*AlternativeUri) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *AlternativeUri) XXX_DiscardUnknown()
func (*AlternativeUri) XXX_Marshal ¶ added in v0.8.0
func (m *AlternativeUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AlternativeUri) XXX_Merge ¶ added in v0.8.0
func (m *AlternativeUri) XXX_Merge(src proto.Message)
func (*AlternativeUri) XXX_Size ¶ added in v0.8.0
func (m *AlternativeUri) XXX_Size() int
func (*AlternativeUri) XXX_Unmarshal ¶ added in v0.8.0
func (m *AlternativeUri) XXX_Unmarshal(b []byte) error
type FeeParams ¶ added in v0.8.0
type FeeParams struct { // Media types define the fixed fee each for the `resource` module. Image types.Coin `protobuf:"bytes,1,opt,name=image,proto3" json:"image"` Json types.Coin `protobuf:"bytes,2,opt,name=json,proto3" json:"json"` Default types.Coin `protobuf:"bytes,3,opt,name=default,proto3" json:"default"` BurnFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ }
FeeParams defines the parameters for the `resource` module fixed fee.
func DefaultFeeParams ¶ added in v0.8.0
func DefaultFeeParams() *FeeParams
DefaultFeeParams returns default cheqd module tx fee parameters
func (*FeeParams) Descriptor ¶ added in v0.8.0
func (*FeeParams) GetDefault ¶ added in v0.8.0
func (*FeeParams) MarshalToSizedBuffer ¶ added in v0.8.0
func (*FeeParams) ProtoMessage ¶ added in v0.8.0
func (*FeeParams) ProtoMessage()
func (*FeeParams) ValidateBasic ¶ added in v0.8.0
ValidateBasic performs basic validation of cheqd module tx fee parameters
func (*FeeParams) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *FeeParams) XXX_DiscardUnknown()
func (*FeeParams) XXX_Marshal ¶ added in v0.8.0
func (*FeeParams) XXX_Unmarshal ¶ added in v0.8.0
type GenesisState ¶
type GenesisState struct { Resources []*ResourceWithMetadata `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` FeeParams *FeeParams `protobuf:"bytes,2,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"` }
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default `resource` genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFeeParams ¶ added in v0.8.0
func (m *GenesisState) GetFeeParams() *FeeParams
func (*GenesisState) GetResources ¶ added in v0.8.0
func (m *GenesisState) GetResources() []*ResourceWithMetadata
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) ValidateNoDuplicates ¶ added in v0.8.0
func (gs GenesisState) ValidateNoDuplicates() error
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 Metadata ¶ added in v0.8.0
type Metadata struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` ResourceType string `protobuf:"bytes,5,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` AlsoKnownAs []*AlternativeUri `protobuf:"bytes,6,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` MediaType string `protobuf:"bytes,7,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` Created string `protobuf:"bytes,8,opt,name=created,proto3" json:"created,omitempty"` Checksum string `protobuf:"bytes,9,opt,name=checksum,proto3" json:"checksum,omitempty"` PreviousVersionId string `protobuf:"bytes,10,opt,name=previous_version_id,json=previousVersionId,proto3" json:"previous_version_id,omitempty"` NextVersionId string `protobuf:"bytes,11,opt,name=next_version_id,json=nextVersionId,proto3" json:"next_version_id,omitempty"` }
func (*Metadata) Descriptor ¶ added in v0.8.0
func (*Metadata) GetAlsoKnownAs ¶ added in v0.8.0
func (m *Metadata) GetAlsoKnownAs() []*AlternativeUri
func (*Metadata) GetChecksum ¶ added in v0.8.0
func (*Metadata) GetCollectionId ¶ added in v0.8.0
func (*Metadata) GetCreated ¶ added in v0.8.0
func (*Metadata) GetMediaType ¶ added in v0.8.0
func (*Metadata) GetNextVersionId ¶ added in v0.8.0
func (*Metadata) GetPreviousVersionId ¶ added in v0.8.0
func (*Metadata) GetResourceType ¶ added in v0.8.0
func (*Metadata) GetVersion ¶ added in v0.8.0
func (*Metadata) MarshalToSizedBuffer ¶ added in v0.8.0
func (*Metadata) ProtoMessage ¶ added in v0.8.0
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶ added in v0.8.0
func (*Metadata) XXX_Unmarshal ¶ added in v0.8.0
type MsgClient ¶
type MsgClient interface {
CreateResource(ctx context.Context, in *MsgCreateResource, opts ...grpc.CallOption) (*MsgCreateResourceResponse, 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 MsgCreateResource ¶
type MsgCreateResource struct { Payload *MsgCreateResourcePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Signatures []*types.SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
func NewMsgCreateResource ¶
func NewMsgCreateResource(payload *MsgCreateResourcePayload, signatures []*didtypes.SignInfo) *MsgCreateResource
func (*MsgCreateResource) Descriptor ¶
func (*MsgCreateResource) Descriptor() ([]byte, []int)
func (*MsgCreateResource) GetPayload ¶
func (m *MsgCreateResource) GetPayload() *MsgCreateResourcePayload
func (*MsgCreateResource) GetSignBytes ¶
func (msg *MsgCreateResource) GetSignBytes() []byte
func (*MsgCreateResource) GetSignatures ¶
func (m *MsgCreateResource) GetSignatures() []*types.SignInfo
func (*MsgCreateResource) GetSigners ¶
func (msg *MsgCreateResource) GetSigners() []sdk.AccAddress
func (*MsgCreateResource) Marshal ¶
func (m *MsgCreateResource) Marshal() (dAtA []byte, err error)
func (*MsgCreateResource) MarshalTo ¶
func (m *MsgCreateResource) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResource) MarshalToSizedBuffer ¶
func (m *MsgCreateResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResource) Normalize ¶ added in v0.8.0
func (msg *MsgCreateResource) Normalize()
func (*MsgCreateResource) ProtoMessage ¶
func (*MsgCreateResource) ProtoMessage()
func (*MsgCreateResource) Reset ¶
func (m *MsgCreateResource) Reset()
func (*MsgCreateResource) Route ¶
func (msg *MsgCreateResource) Route() string
func (*MsgCreateResource) Size ¶
func (m *MsgCreateResource) Size() (n int)
func (*MsgCreateResource) String ¶
func (m *MsgCreateResource) String() string
func (*MsgCreateResource) Type ¶
func (msg *MsgCreateResource) Type() string
func (*MsgCreateResource) Unmarshal ¶
func (m *MsgCreateResource) Unmarshal(dAtA []byte) error
func (MsgCreateResource) Validate ¶
func (msg MsgCreateResource) Validate(allowedNamespaces []string) error
func (*MsgCreateResource) ValidateBasic ¶
func (msg *MsgCreateResource) ValidateBasic() error
func (*MsgCreateResource) XXX_DiscardUnknown ¶
func (m *MsgCreateResource) XXX_DiscardUnknown()
func (*MsgCreateResource) XXX_Marshal ¶
func (m *MsgCreateResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResource) XXX_Merge ¶
func (m *MsgCreateResource) XXX_Merge(src proto.Message)
func (*MsgCreateResource) XXX_Size ¶
func (m *MsgCreateResource) XXX_Size() int
func (*MsgCreateResource) XXX_Unmarshal ¶
func (m *MsgCreateResource) XXX_Unmarshal(b []byte) error
type MsgCreateResourcePayload ¶
type MsgCreateResourcePayload struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` CollectionId string `protobuf:"bytes,2,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` ResourceType string `protobuf:"bytes,6,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` AlsoKnownAs []*AlternativeUri `protobuf:"bytes,7,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"` }
func (*MsgCreateResourcePayload) Descriptor ¶
func (*MsgCreateResourcePayload) Descriptor() ([]byte, []int)
func (*MsgCreateResourcePayload) GetAlsoKnownAs ¶ added in v0.8.0
func (m *MsgCreateResourcePayload) GetAlsoKnownAs() []*AlternativeUri
func (*MsgCreateResourcePayload) GetCollectionId ¶
func (m *MsgCreateResourcePayload) GetCollectionId() string
func (*MsgCreateResourcePayload) GetData ¶
func (m *MsgCreateResourcePayload) GetData() []byte
func (*MsgCreateResourcePayload) GetId ¶
func (m *MsgCreateResourcePayload) GetId() string
func (*MsgCreateResourcePayload) GetName ¶
func (m *MsgCreateResourcePayload) GetName() string
func (*MsgCreateResourcePayload) GetResourceType ¶
func (m *MsgCreateResourcePayload) GetResourceType() string
func (*MsgCreateResourcePayload) GetSignBytes ¶
func (msg *MsgCreateResourcePayload) GetSignBytes() []byte
func (*MsgCreateResourcePayload) GetVersion ¶ added in v0.8.0
func (m *MsgCreateResourcePayload) GetVersion() string
func (*MsgCreateResourcePayload) Marshal ¶
func (m *MsgCreateResourcePayload) Marshal() (dAtA []byte, err error)
func (*MsgCreateResourcePayload) MarshalTo ¶
func (m *MsgCreateResourcePayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResourcePayload) MarshalToSizedBuffer ¶
func (m *MsgCreateResourcePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResourcePayload) Normalize ¶ added in v0.8.0
func (msg *MsgCreateResourcePayload) Normalize()
func (*MsgCreateResourcePayload) ProtoMessage ¶
func (*MsgCreateResourcePayload) ProtoMessage()
func (*MsgCreateResourcePayload) Reset ¶
func (m *MsgCreateResourcePayload) Reset()
func (*MsgCreateResourcePayload) Size ¶
func (m *MsgCreateResourcePayload) Size() (n int)
func (*MsgCreateResourcePayload) String ¶
func (m *MsgCreateResourcePayload) String() string
func (*MsgCreateResourcePayload) ToResource ¶
func (msg *MsgCreateResourcePayload) ToResource() ResourceWithMetadata
func (*MsgCreateResourcePayload) Unmarshal ¶
func (m *MsgCreateResourcePayload) Unmarshal(dAtA []byte) error
func (MsgCreateResourcePayload) Validate ¶
func (msg MsgCreateResourcePayload) Validate() error
func (*MsgCreateResourcePayload) XXX_DiscardUnknown ¶
func (m *MsgCreateResourcePayload) XXX_DiscardUnknown()
func (*MsgCreateResourcePayload) XXX_Marshal ¶
func (m *MsgCreateResourcePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResourcePayload) XXX_Merge ¶
func (m *MsgCreateResourcePayload) XXX_Merge(src proto.Message)
func (*MsgCreateResourcePayload) XXX_Size ¶
func (m *MsgCreateResourcePayload) XXX_Size() int
func (*MsgCreateResourcePayload) XXX_Unmarshal ¶
func (m *MsgCreateResourcePayload) XXX_Unmarshal(b []byte) error
type MsgCreateResourceResponse ¶
type MsgCreateResourceResponse struct {
Resource *Metadata `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
}
func (*MsgCreateResourceResponse) Descriptor ¶
func (*MsgCreateResourceResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResourceResponse) GetResource ¶
func (m *MsgCreateResourceResponse) GetResource() *Metadata
func (*MsgCreateResourceResponse) Marshal ¶
func (m *MsgCreateResourceResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateResourceResponse) MarshalTo ¶
func (m *MsgCreateResourceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResourceResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResourceResponse) ProtoMessage ¶
func (*MsgCreateResourceResponse) ProtoMessage()
func (*MsgCreateResourceResponse) Reset ¶
func (m *MsgCreateResourceResponse) Reset()
func (*MsgCreateResourceResponse) Size ¶
func (m *MsgCreateResourceResponse) Size() (n int)
func (*MsgCreateResourceResponse) String ¶
func (m *MsgCreateResourceResponse) String() string
func (*MsgCreateResourceResponse) Unmarshal ¶
func (m *MsgCreateResourceResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateResourceResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateResourceResponse) XXX_DiscardUnknown()
func (*MsgCreateResourceResponse) XXX_Marshal ¶
func (m *MsgCreateResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResourceResponse) XXX_Merge ¶
func (m *MsgCreateResourceResponse) XXX_Merge(src proto.Message)
func (*MsgCreateResourceResponse) XXX_Size ¶
func (m *MsgCreateResourceResponse) XXX_Size() int
func (*MsgCreateResourceResponse) XXX_Unmarshal ¶
func (m *MsgCreateResourceResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
CreateResource(context.Context, *MsgCreateResource) (*MsgCreateResourceResponse, error)
}
MsgServer is the server API for Msg service.
type ParamSubspace ¶ added in v0.8.0
type ParamSubspace interface { Get(ctx sdk.Context, key []byte, ptr interface{}) Set(ctx sdk.Context, key []byte, param interface{}) }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type QueryClient ¶
type QueryClient interface { Resource(ctx context.Context, in *QueryGetResourceRequest, opts ...grpc.CallOption) (*QueryGetResourceResponse, error) ResourceMetadata(ctx context.Context, in *QueryGetResourceMetadataRequest, opts ...grpc.CallOption) (*QueryGetResourceMetadataResponse, error) CollectionResources(ctx context.Context, in *QueryGetCollectionResourcesRequest, opts ...grpc.CallOption) (*QueryGetCollectionResourcesResponse, 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 QueryGetCollectionResourcesRequest ¶
type QueryGetCollectionResourcesRequest struct {
CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
}
func (*QueryGetCollectionResourcesRequest) Descriptor ¶
func (*QueryGetCollectionResourcesRequest) Descriptor() ([]byte, []int)
func (*QueryGetCollectionResourcesRequest) GetCollectionId ¶
func (m *QueryGetCollectionResourcesRequest) GetCollectionId() string
func (*QueryGetCollectionResourcesRequest) Marshal ¶
func (m *QueryGetCollectionResourcesRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetCollectionResourcesRequest) MarshalTo ¶
func (m *QueryGetCollectionResourcesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetCollectionResourcesRequest) MarshalToSizedBuffer ¶
func (m *QueryGetCollectionResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetCollectionResourcesRequest) Normalize ¶ added in v0.8.0
func (query *QueryGetCollectionResourcesRequest) Normalize()
func (*QueryGetCollectionResourcesRequest) ProtoMessage ¶
func (*QueryGetCollectionResourcesRequest) ProtoMessage()
func (*QueryGetCollectionResourcesRequest) Reset ¶
func (m *QueryGetCollectionResourcesRequest) Reset()
func (*QueryGetCollectionResourcesRequest) Size ¶
func (m *QueryGetCollectionResourcesRequest) Size() (n int)
func (*QueryGetCollectionResourcesRequest) String ¶
func (m *QueryGetCollectionResourcesRequest) String() string
func (*QueryGetCollectionResourcesRequest) Unmarshal ¶
func (m *QueryGetCollectionResourcesRequest) Unmarshal(dAtA []byte) error
func (*QueryGetCollectionResourcesRequest) XXX_DiscardUnknown ¶
func (m *QueryGetCollectionResourcesRequest) XXX_DiscardUnknown()
func (*QueryGetCollectionResourcesRequest) XXX_Marshal ¶
func (m *QueryGetCollectionResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetCollectionResourcesRequest) XXX_Merge ¶
func (m *QueryGetCollectionResourcesRequest) XXX_Merge(src proto.Message)
func (*QueryGetCollectionResourcesRequest) XXX_Size ¶
func (m *QueryGetCollectionResourcesRequest) XXX_Size() int
func (*QueryGetCollectionResourcesRequest) XXX_Unmarshal ¶
func (m *QueryGetCollectionResourcesRequest) XXX_Unmarshal(b []byte) error
type QueryGetCollectionResourcesResponse ¶
type QueryGetCollectionResourcesResponse struct {
Resources []*Metadata `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
}
func (*QueryGetCollectionResourcesResponse) Descriptor ¶
func (*QueryGetCollectionResourcesResponse) Descriptor() ([]byte, []int)
func (*QueryGetCollectionResourcesResponse) GetResources ¶
func (m *QueryGetCollectionResourcesResponse) GetResources() []*Metadata
func (*QueryGetCollectionResourcesResponse) Marshal ¶
func (m *QueryGetCollectionResourcesResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetCollectionResourcesResponse) MarshalTo ¶
func (m *QueryGetCollectionResourcesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetCollectionResourcesResponse) MarshalToSizedBuffer ¶
func (m *QueryGetCollectionResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetCollectionResourcesResponse) ProtoMessage ¶
func (*QueryGetCollectionResourcesResponse) ProtoMessage()
func (*QueryGetCollectionResourcesResponse) Reset ¶
func (m *QueryGetCollectionResourcesResponse) Reset()
func (*QueryGetCollectionResourcesResponse) Size ¶
func (m *QueryGetCollectionResourcesResponse) Size() (n int)
func (*QueryGetCollectionResourcesResponse) String ¶
func (m *QueryGetCollectionResourcesResponse) String() string
func (*QueryGetCollectionResourcesResponse) Unmarshal ¶
func (m *QueryGetCollectionResourcesResponse) Unmarshal(dAtA []byte) error
func (*QueryGetCollectionResourcesResponse) XXX_DiscardUnknown ¶
func (m *QueryGetCollectionResourcesResponse) XXX_DiscardUnknown()
func (*QueryGetCollectionResourcesResponse) XXX_Marshal ¶
func (m *QueryGetCollectionResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetCollectionResourcesResponse) XXX_Merge ¶
func (m *QueryGetCollectionResourcesResponse) XXX_Merge(src proto.Message)
func (*QueryGetCollectionResourcesResponse) XXX_Size ¶
func (m *QueryGetCollectionResourcesResponse) XXX_Size() int
func (*QueryGetCollectionResourcesResponse) XXX_Unmarshal ¶
func (m *QueryGetCollectionResourcesResponse) XXX_Unmarshal(b []byte) error
type QueryGetResourceMetadataRequest ¶ added in v0.8.0
type QueryGetResourceMetadataRequest struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` }
func (*QueryGetResourceMetadataRequest) Descriptor ¶ added in v0.8.0
func (*QueryGetResourceMetadataRequest) Descriptor() ([]byte, []int)
func (*QueryGetResourceMetadataRequest) GetCollectionId ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) GetCollectionId() string
func (*QueryGetResourceMetadataRequest) GetId ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) GetId() string
func (*QueryGetResourceMetadataRequest) Marshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetResourceMetadataRequest) MarshalTo ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetResourceMetadataRequest) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetResourceMetadataRequest) Normalize ¶ added in v0.8.0
func (query *QueryGetResourceMetadataRequest) Normalize()
func (*QueryGetResourceMetadataRequest) ProtoMessage ¶ added in v0.8.0
func (*QueryGetResourceMetadataRequest) ProtoMessage()
func (*QueryGetResourceMetadataRequest) Reset ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) Reset()
func (*QueryGetResourceMetadataRequest) Size ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) Size() (n int)
func (*QueryGetResourceMetadataRequest) String ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) String() string
func (*QueryGetResourceMetadataRequest) Unmarshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) Unmarshal(dAtA []byte) error
func (*QueryGetResourceMetadataRequest) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) XXX_DiscardUnknown()
func (*QueryGetResourceMetadataRequest) XXX_Marshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetResourceMetadataRequest) XXX_Merge ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) XXX_Merge(src proto.Message)
func (*QueryGetResourceMetadataRequest) XXX_Size ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) XXX_Size() int
func (*QueryGetResourceMetadataRequest) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataRequest) XXX_Unmarshal(b []byte) error
type QueryGetResourceMetadataResponse ¶ added in v0.8.0
type QueryGetResourceMetadataResponse struct {
Resource *Metadata `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
}
func (*QueryGetResourceMetadataResponse) Descriptor ¶ added in v0.8.0
func (*QueryGetResourceMetadataResponse) Descriptor() ([]byte, []int)
func (*QueryGetResourceMetadataResponse) GetResource ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) GetResource() *Metadata
func (*QueryGetResourceMetadataResponse) Marshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetResourceMetadataResponse) MarshalTo ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetResourceMetadataResponse) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetResourceMetadataResponse) ProtoMessage ¶ added in v0.8.0
func (*QueryGetResourceMetadataResponse) ProtoMessage()
func (*QueryGetResourceMetadataResponse) Reset ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) Reset()
func (*QueryGetResourceMetadataResponse) Size ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) Size() (n int)
func (*QueryGetResourceMetadataResponse) String ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) String() string
func (*QueryGetResourceMetadataResponse) Unmarshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) Unmarshal(dAtA []byte) error
func (*QueryGetResourceMetadataResponse) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) XXX_DiscardUnknown()
func (*QueryGetResourceMetadataResponse) XXX_Marshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetResourceMetadataResponse) XXX_Merge ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) XXX_Merge(src proto.Message)
func (*QueryGetResourceMetadataResponse) XXX_Size ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) XXX_Size() int
func (*QueryGetResourceMetadataResponse) XXX_Unmarshal ¶ added in v0.8.0
func (m *QueryGetResourceMetadataResponse) XXX_Unmarshal(b []byte) error
type QueryGetResourceRequest ¶
type QueryGetResourceRequest struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` }
func (*QueryGetResourceRequest) Descriptor ¶
func (*QueryGetResourceRequest) Descriptor() ([]byte, []int)
func (*QueryGetResourceRequest) GetCollectionId ¶
func (m *QueryGetResourceRequest) GetCollectionId() string
func (*QueryGetResourceRequest) GetId ¶
func (m *QueryGetResourceRequest) GetId() string
func (*QueryGetResourceRequest) Marshal ¶
func (m *QueryGetResourceRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetResourceRequest) MarshalTo ¶
func (m *QueryGetResourceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetResourceRequest) MarshalToSizedBuffer ¶
func (m *QueryGetResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetResourceRequest) Normalize ¶ added in v0.8.0
func (query *QueryGetResourceRequest) Normalize()
func (*QueryGetResourceRequest) ProtoMessage ¶
func (*QueryGetResourceRequest) ProtoMessage()
func (*QueryGetResourceRequest) Reset ¶
func (m *QueryGetResourceRequest) Reset()
func (*QueryGetResourceRequest) Size ¶
func (m *QueryGetResourceRequest) Size() (n int)
func (*QueryGetResourceRequest) String ¶
func (m *QueryGetResourceRequest) String() string
func (*QueryGetResourceRequest) Unmarshal ¶
func (m *QueryGetResourceRequest) Unmarshal(dAtA []byte) error
func (*QueryGetResourceRequest) XXX_DiscardUnknown ¶
func (m *QueryGetResourceRequest) XXX_DiscardUnknown()
func (*QueryGetResourceRequest) XXX_Marshal ¶
func (m *QueryGetResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetResourceRequest) XXX_Merge ¶
func (m *QueryGetResourceRequest) XXX_Merge(src proto.Message)
func (*QueryGetResourceRequest) XXX_Size ¶
func (m *QueryGetResourceRequest) XXX_Size() int
func (*QueryGetResourceRequest) XXX_Unmarshal ¶
func (m *QueryGetResourceRequest) XXX_Unmarshal(b []byte) error
type QueryGetResourceResponse ¶
type QueryGetResourceResponse struct {
Resource *ResourceWithMetadata `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
}
func (*QueryGetResourceResponse) Descriptor ¶
func (*QueryGetResourceResponse) Descriptor() ([]byte, []int)
func (*QueryGetResourceResponse) GetResource ¶
func (m *QueryGetResourceResponse) GetResource() *ResourceWithMetadata
func (*QueryGetResourceResponse) Marshal ¶
func (m *QueryGetResourceResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetResourceResponse) MarshalTo ¶
func (m *QueryGetResourceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetResourceResponse) MarshalToSizedBuffer ¶
func (m *QueryGetResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetResourceResponse) ProtoMessage ¶
func (*QueryGetResourceResponse) ProtoMessage()
func (*QueryGetResourceResponse) Reset ¶
func (m *QueryGetResourceResponse) Reset()
func (*QueryGetResourceResponse) Size ¶
func (m *QueryGetResourceResponse) Size() (n int)
func (*QueryGetResourceResponse) String ¶
func (m *QueryGetResourceResponse) String() string
func (*QueryGetResourceResponse) Unmarshal ¶
func (m *QueryGetResourceResponse) Unmarshal(dAtA []byte) error
func (*QueryGetResourceResponse) XXX_DiscardUnknown ¶
func (m *QueryGetResourceResponse) XXX_DiscardUnknown()
func (*QueryGetResourceResponse) XXX_Marshal ¶
func (m *QueryGetResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetResourceResponse) XXX_Merge ¶
func (m *QueryGetResourceResponse) XXX_Merge(src proto.Message)
func (*QueryGetResourceResponse) XXX_Size ¶
func (m *QueryGetResourceResponse) XXX_Size() int
func (*QueryGetResourceResponse) XXX_Unmarshal ¶
func (m *QueryGetResourceResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { Resource(context.Context, *QueryGetResourceRequest) (*QueryGetResourceResponse, error) ResourceMetadata(context.Context, *QueryGetResourceMetadataRequest) (*QueryGetResourceMetadataResponse, error) CollectionResources(context.Context, *QueryGetCollectionResourcesRequest) (*QueryGetCollectionResourcesResponse, error) }
QueryServer is the server API for Query service.
type Resource ¶
type Resource struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Resource) Descriptor ¶
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
type ResourceWithMetadata ¶ added in v0.8.0
type ResourceWithMetadata struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
func (*ResourceWithMetadata) Descriptor ¶ added in v0.8.0
func (*ResourceWithMetadata) Descriptor() ([]byte, []int)
func (*ResourceWithMetadata) GetMetadata ¶ added in v0.8.0
func (m *ResourceWithMetadata) GetMetadata() *Metadata
func (*ResourceWithMetadata) GetResource ¶ added in v0.8.0
func (m *ResourceWithMetadata) GetResource() *Resource
func (*ResourceWithMetadata) Marshal ¶ added in v0.8.0
func (m *ResourceWithMetadata) Marshal() (dAtA []byte, err error)
func (*ResourceWithMetadata) MarshalTo ¶ added in v0.8.0
func (m *ResourceWithMetadata) MarshalTo(dAtA []byte) (int, error)
func (*ResourceWithMetadata) MarshalToSizedBuffer ¶ added in v0.8.0
func (m *ResourceWithMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceWithMetadata) ProtoMessage ¶ added in v0.8.0
func (*ResourceWithMetadata) ProtoMessage()
func (*ResourceWithMetadata) Reset ¶ added in v0.8.0
func (m *ResourceWithMetadata) Reset()
func (*ResourceWithMetadata) Size ¶ added in v0.8.0
func (m *ResourceWithMetadata) Size() (n int)
func (*ResourceWithMetadata) String ¶ added in v0.8.0
func (m *ResourceWithMetadata) String() string
func (*ResourceWithMetadata) Unmarshal ¶ added in v0.8.0
func (m *ResourceWithMetadata) Unmarshal(dAtA []byte) error
func (*ResourceWithMetadata) XXX_DiscardUnknown ¶ added in v0.8.0
func (m *ResourceWithMetadata) XXX_DiscardUnknown()
func (*ResourceWithMetadata) XXX_Marshal ¶ added in v0.8.0
func (m *ResourceWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceWithMetadata) XXX_Merge ¶ added in v0.8.0
func (m *ResourceWithMetadata) XXX_Merge(src proto.Message)
func (*ResourceWithMetadata) XXX_Size ¶ added in v0.8.0
func (m *ResourceWithMetadata) XXX_Size() int
func (*ResourceWithMetadata) XXX_Unmarshal ¶ added in v0.8.0
func (m *ResourceWithMetadata) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateResource ¶
func (*UnimplementedMsgServer) CreateResource(ctx context.Context, req *MsgCreateResource) (*MsgCreateResourceResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CollectionResources ¶
func (*UnimplementedQueryServer) CollectionResources(ctx context.Context, req *QueryGetCollectionResourcesRequest) (*QueryGetCollectionResourcesResponse, error)
func (*UnimplementedQueryServer) Resource ¶
func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryGetResourceRequest) (*QueryGetResourceResponse, error)
func (*UnimplementedQueryServer) ResourceMetadata ¶ added in v0.8.0
func (*UnimplementedQueryServer) ResourceMetadata(ctx context.Context, req *QueryGetResourceMetadataRequest) (*QueryGetResourceMetadataResponse, error)
Source Files ¶
- codec.go
- denom.go
- error.go
- expected_keepers.go
- fee.pb.go
- genesis.go
- genesis.pb.go
- keys.go
- params.go
- query.go
- query.pb.go
- query.pb.gw.go
- query_get_collection_resources.go
- query_get_resource_metadata_request.go
- query_get_resource_request.go
- resource.pb.go
- resource_alternative_uri.go
- tx.pb.go
- tx_msg_create_resource.go
- tx_msg_create_resource_payload.go