Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2021 Changes in this version + const ModuleName + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowRecord = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthRecord = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupRecord = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewAminoCodec(amino) + func GetRecordKey(recordID []byte) []byte + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterQueryServer(s grpc1.Server, srv QueryServer) + type Client interface + CreateRecord func(request CreateRecordRequest, baseTx sdk.BaseTx) (string, sdk.Error) + QueryRecord func(request QueryRecordReq) (QueryRecordResp, sdk.Error) + func NewClient(bc sdk.BaseClient, cdc codec.Marshaler) Client + type Content struct + Digest string + DigestAlgo string + Meta string + URI string + func (*Content) Descriptor() ([]byte, []int) + func (*Content) ProtoMessage() + func (m *Content) Marshal() (dAtA []byte, err error) + func (m *Content) MarshalTo(dAtA []byte) (int, error) + func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Content) Reset() + func (m *Content) Size() (n int) + func (m *Content) String() string + func (m *Content) Unmarshal(dAtA []byte) error + func (m *Content) XXX_DiscardUnknown() + func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Content) XXX_Merge(src proto.Message) + func (m *Content) XXX_Size() int + func (m *Content) XXX_Unmarshal(b []byte) error + func (this *Content) Equal(that interface{}) bool + type CreateRecordRequest struct + Contents []Content + type Data struct + Contents []Content + Creator string + TxHash string + type MsgCreateRecord struct + Contents []Content + Creator string + func (*MsgCreateRecord) Descriptor() ([]byte, []int) + func (*MsgCreateRecord) ProtoMessage() + func (m *MsgCreateRecord) Marshal() (dAtA []byte, err error) + func (m *MsgCreateRecord) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateRecord) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateRecord) Reset() + func (m *MsgCreateRecord) Size() (n int) + func (m *MsgCreateRecord) String() string + func (m *MsgCreateRecord) Unmarshal(dAtA []byte) error + func (m *MsgCreateRecord) XXX_DiscardUnknown() + func (m *MsgCreateRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateRecord) XXX_Merge(src proto.Message) + func (m *MsgCreateRecord) XXX_Size() int + func (m *MsgCreateRecord) XXX_Unmarshal(b []byte) error + func (msg MsgCreateRecord) GetSignBytes() []byte + func (msg MsgCreateRecord) GetSigners() []sdk.AccAddress + func (msg MsgCreateRecord) Route() string + func (msg MsgCreateRecord) Type() string + func (msg MsgCreateRecord) ValidateBasic() error + func (this *MsgCreateRecord) Equal(that interface{}) bool + type QueryClient interface + Record func(ctx context.Context, in *QueryRecordRequest, opts ...grpc.CallOption) (*QueryRecordResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryRecordReq struct + Height int64 + Prove bool + RecordID string + type QueryRecordRequest struct + RecordId []byte + func (*QueryRecordRequest) Descriptor() ([]byte, []int) + func (*QueryRecordRequest) ProtoMessage() + func (m *QueryRecordRequest) GetRecordId() []byte + func (m *QueryRecordRequest) Marshal() (dAtA []byte, err error) + func (m *QueryRecordRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRecordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRecordRequest) Reset() + func (m *QueryRecordRequest) Size() (n int) + func (m *QueryRecordRequest) String() string + func (m *QueryRecordRequest) Unmarshal(dAtA []byte) error + func (m *QueryRecordRequest) XXX_DiscardUnknown() + func (m *QueryRecordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRecordRequest) XXX_Merge(src proto.Message) + func (m *QueryRecordRequest) XXX_Size() int + func (m *QueryRecordRequest) XXX_Unmarshal(b []byte) error + type QueryRecordResp struct + Height int64 + Proof sdk.ProofValue + Record Data + type QueryRecordResponse struct + Record *Record + func (*QueryRecordResponse) Descriptor() ([]byte, []int) + func (*QueryRecordResponse) ProtoMessage() + func (m *QueryRecordResponse) GetRecord() *Record + func (m *QueryRecordResponse) Marshal() (dAtA []byte, err error) + func (m *QueryRecordResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryRecordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryRecordResponse) Reset() + func (m *QueryRecordResponse) Size() (n int) + func (m *QueryRecordResponse) String() string + func (m *QueryRecordResponse) Unmarshal(dAtA []byte) error + func (m *QueryRecordResponse) XXX_DiscardUnknown() + func (m *QueryRecordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryRecordResponse) XXX_Merge(src proto.Message) + func (m *QueryRecordResponse) XXX_Size() int + func (m *QueryRecordResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + Record func(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error) + type Record struct + Contents []Content + Creator string + TxHash string + func (*Record) Descriptor() ([]byte, []int) + func (*Record) ProtoMessage() + func (m *Record) Marshal() (dAtA []byte, err error) + func (m *Record) MarshalTo(dAtA []byte) (int, error) + func (m *Record) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Record) Reset() + func (m *Record) Size() (n int) + func (m *Record) String() string + func (m *Record) Unmarshal(dAtA []byte) error + func (m *Record) XXX_DiscardUnknown() + func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Record) XXX_Merge(src proto.Message) + func (m *Record) XXX_Size() int + func (m *Record) XXX_Unmarshal(b []byte) error + func (this *Record) Equal(that interface{}) bool + func (this Record) Convert() interface{} + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Record(ctx context.Context, req *QueryRecordRequest) (*QueryRecordResponse, error)