types

package
v0.0.0-...-782c84e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "contract"

	// 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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_contract"
)
View Source
const (
	ContractLogDataKey      = "ContractLogDataKey"
	ContractLogDataTotalKey = "ContractLogDataTotalKey"
	ContractLogHashKey      = "ContractLogHashKey"
	ContractFileKey         = "ContractFileKey"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthContractFile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContractFile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContractFile = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthContractLog        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowContractLog          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupContractLog = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)

x/contract module sentinel errors

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 ContractFile

type ContractFile struct {
	Creator            string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	FileHash           string   `protobuf:"bytes,2,opt,name=fileHash,proto3" json:"fileHash,omitempty"`
	TimeStamp          uint64   `protobuf:"varint,3,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	OwnerList          []string `protobuf:"bytes,4,rep,name=ownerList,proto3" json:"ownerList,omitempty"`
	MetaDataJsonString string   `protobuf:"bytes,5,opt,name=metaDataJsonString,proto3" json:"metaDataJsonString,omitempty"`
}

func (*ContractFile) Descriptor

func (*ContractFile) Descriptor() ([]byte, []int)

func (*ContractFile) GetCreator

func (m *ContractFile) GetCreator() string

func (*ContractFile) GetFileHash

func (m *ContractFile) GetFileHash() string

func (*ContractFile) GetMetaDataJsonString

func (m *ContractFile) GetMetaDataJsonString() string

func (*ContractFile) GetOwnerList

func (m *ContractFile) GetOwnerList() []string

func (*ContractFile) GetTimeStamp

func (m *ContractFile) GetTimeStamp() uint64

func (*ContractFile) Marshal

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

func (*ContractFile) MarshalTo

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

func (*ContractFile) MarshalToSizedBuffer

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

func (*ContractFile) ProtoMessage

func (*ContractFile) ProtoMessage()

func (*ContractFile) Reset

func (m *ContractFile) Reset()

func (*ContractFile) Size

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

func (*ContractFile) String

func (m *ContractFile) String() string

func (*ContractFile) Unmarshal

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

func (*ContractFile) XXX_DiscardUnknown

func (m *ContractFile) XXX_DiscardUnknown()

func (*ContractFile) XXX_Marshal

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

func (*ContractFile) XXX_Merge

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

func (*ContractFile) XXX_Size

func (m *ContractFile) XXX_Size() int

func (*ContractFile) XXX_Unmarshal

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

type ContractLog

type ContractLog struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id           uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	ContractHash string `protobuf:"bytes,3,opt,name=contractHash,proto3" json:"contractHash,omitempty"`
	TimeStamp    uint64 `protobuf:"varint,4,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	EventName    string `protobuf:"bytes,5,opt,name=eventName,proto3" json:"eventName,omitempty"`
	OwnerAddress string `protobuf:"bytes,6,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
	JsonString   string `protobuf:"bytes,7,opt,name=jsonString,proto3" json:"jsonString,omitempty"`
}

func (*ContractLog) Descriptor

func (*ContractLog) Descriptor() ([]byte, []int)

func (*ContractLog) GetContractHash

func (m *ContractLog) GetContractHash() string

func (*ContractLog) GetCreator

func (m *ContractLog) GetCreator() string

func (*ContractLog) GetEventName

func (m *ContractLog) GetEventName() string

func (*ContractLog) GetId

func (m *ContractLog) GetId() uint64

func (*ContractLog) GetJsonString

func (m *ContractLog) GetJsonString() string

func (*ContractLog) GetOwnerAddress

func (m *ContractLog) GetOwnerAddress() string

func (*ContractLog) GetTimeStamp

func (m *ContractLog) GetTimeStamp() uint64

func (*ContractLog) Marshal

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

func (*ContractLog) MarshalTo

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

func (*ContractLog) MarshalToSizedBuffer

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

func (*ContractLog) ProtoMessage

func (*ContractLog) ProtoMessage()

func (*ContractLog) Reset

func (m *ContractLog) Reset()

func (*ContractLog) Size

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

func (*ContractLog) String

func (m *ContractLog) String() string

func (*ContractLog) Unmarshal

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

func (*ContractLog) XXX_DiscardUnknown

func (m *ContractLog) XXX_DiscardUnknown()

func (*ContractLog) XXX_Marshal

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

func (*ContractLog) XXX_Merge

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

func (*ContractLog) XXX_Size

func (m *ContractLog) XXX_Size() int

func (*ContractLog) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	ContractFileList []*ContractFile `protobuf:"bytes,3,rep,name=contractFileList,proto3" json:"contractFileList,omitempty"`
	ContractLogList  []*ContractLog  `protobuf:"bytes,1,rep,name=contractLogList,proto3" json:"contractLogList,omitempty"`
	ContractLogCount uint64          `protobuf:"varint,2,opt,name=contractLogCount,proto3" json:"contractLogCount,omitempty"`
}

GenesisState defines the contract module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetContractFileList

func (m *GenesisState) GetContractFileList() []*ContractFile

func (*GenesisState) GetContractLogCount

func (m *GenesisState) GetContractLogCount() uint64

func (*GenesisState) GetContractLogList

func (m *GenesisState) GetContractLogList() []*ContractLog

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

type MsgAddContractLog struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ContractHash string `protobuf:"bytes,2,opt,name=contractHash,proto3" json:"contractHash,omitempty"`
	TimeStamp    uint64 `protobuf:"varint,3,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	EventName    string `protobuf:"bytes,4,opt,name=eventName,proto3" json:"eventName,omitempty"`
	OwnerAddress string `protobuf:"bytes,5,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
	JsonString   string `protobuf:"bytes,6,opt,name=jsonString,proto3" json:"jsonString,omitempty"`
}

func NewMsgAddContractLog

func NewMsgAddContractLog(creator string, contractHash string, timeStamp uint64, eventName string, ownerAddress string, jsonString string) *MsgAddContractLog

func (*MsgAddContractLog) Descriptor

func (*MsgAddContractLog) Descriptor() ([]byte, []int)

func (*MsgAddContractLog) GetContractHash

func (m *MsgAddContractLog) GetContractHash() string

func (*MsgAddContractLog) GetCreator

func (m *MsgAddContractLog) GetCreator() string

func (*MsgAddContractLog) GetEventName

func (m *MsgAddContractLog) GetEventName() string

func (*MsgAddContractLog) GetJsonString

func (m *MsgAddContractLog) GetJsonString() string

func (*MsgAddContractLog) GetOwnerAddress

func (m *MsgAddContractLog) GetOwnerAddress() string

func (*MsgAddContractLog) GetSignBytes

func (msg *MsgAddContractLog) GetSignBytes() []byte

func (*MsgAddContractLog) GetSigners

func (msg *MsgAddContractLog) GetSigners() []sdk.AccAddress

func (*MsgAddContractLog) GetTimeStamp

func (m *MsgAddContractLog) GetTimeStamp() uint64

func (*MsgAddContractLog) Marshal

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

func (*MsgAddContractLog) MarshalTo

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

func (*MsgAddContractLog) MarshalToSizedBuffer

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

func (*MsgAddContractLog) ProtoMessage

func (*MsgAddContractLog) ProtoMessage()

func (*MsgAddContractLog) Reset

func (m *MsgAddContractLog) Reset()

func (*MsgAddContractLog) Route

func (msg *MsgAddContractLog) Route() string

func (*MsgAddContractLog) Size

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

func (*MsgAddContractLog) String

func (m *MsgAddContractLog) String() string

func (*MsgAddContractLog) Type

func (msg *MsgAddContractLog) Type() string

func (*MsgAddContractLog) Unmarshal

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

func (*MsgAddContractLog) ValidateBasic

func (msg *MsgAddContractLog) ValidateBasic() error

func (*MsgAddContractLog) XXX_DiscardUnknown

func (m *MsgAddContractLog) XXX_DiscardUnknown()

func (*MsgAddContractLog) XXX_Marshal

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

func (*MsgAddContractLog) XXX_Merge

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

func (*MsgAddContractLog) XXX_Size

func (m *MsgAddContractLog) XXX_Size() int

func (*MsgAddContractLog) XXX_Unmarshal

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

type MsgAddContractLogResponse

type MsgAddContractLogResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgAddContractLogResponse) Descriptor

func (*MsgAddContractLogResponse) Descriptor() ([]byte, []int)

func (*MsgAddContractLogResponse) GetId

func (m *MsgAddContractLogResponse) GetId() uint64

func (*MsgAddContractLogResponse) Marshal

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

func (*MsgAddContractLogResponse) MarshalTo

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

func (*MsgAddContractLogResponse) MarshalToSizedBuffer

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

func (*MsgAddContractLogResponse) ProtoMessage

func (*MsgAddContractLogResponse) ProtoMessage()

func (*MsgAddContractLogResponse) Reset

func (m *MsgAddContractLogResponse) Reset()

func (*MsgAddContractLogResponse) Size

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

func (*MsgAddContractLogResponse) String

func (m *MsgAddContractLogResponse) String() string

func (*MsgAddContractLogResponse) Unmarshal

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

func (*MsgAddContractLogResponse) XXX_DiscardUnknown

func (m *MsgAddContractLogResponse) XXX_DiscardUnknown()

func (*MsgAddContractLogResponse) XXX_Marshal

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

func (*MsgAddContractLogResponse) XXX_Merge

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

func (*MsgAddContractLogResponse) XXX_Size

func (m *MsgAddContractLogResponse) XXX_Size() int

func (*MsgAddContractLogResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreateContractFile(ctx context.Context, in *MsgCreateContractFile, opts ...grpc.CallOption) (*MsgCreateContractFileResponse, error)
	AddContractLog(ctx context.Context, in *MsgAddContractLog, opts ...grpc.CallOption) (*MsgAddContractLogResponse, 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 MsgCreateContractFile

type MsgCreateContractFile struct {
	Creator            string   `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	FileHash           string   `protobuf:"bytes,2,opt,name=fileHash,proto3" json:"fileHash,omitempty"`
	TimeStamp          uint64   `protobuf:"varint,3,opt,name=timeStamp,proto3" json:"timeStamp,omitempty"`
	OwnerList          []string `protobuf:"bytes,4,rep,name=ownerList,proto3" json:"ownerList,omitempty"`
	MetaDataJsonString string   `protobuf:"bytes,5,opt,name=metaDataJsonString,proto3" json:"metaDataJsonString,omitempty"`
}

func NewMsgCreateContractFile

func NewMsgCreateContractFile(creator string, fileHash string, timeStamp uint64, ownerList []string, metaDataJsonString string) *MsgCreateContractFile

func (*MsgCreateContractFile) Descriptor

func (*MsgCreateContractFile) Descriptor() ([]byte, []int)

func (*MsgCreateContractFile) GetCreator

func (m *MsgCreateContractFile) GetCreator() string

func (*MsgCreateContractFile) GetFileHash

func (m *MsgCreateContractFile) GetFileHash() string

func (*MsgCreateContractFile) GetMetaDataJsonString

func (m *MsgCreateContractFile) GetMetaDataJsonString() string

func (*MsgCreateContractFile) GetOwnerList

func (m *MsgCreateContractFile) GetOwnerList() []string

func (*MsgCreateContractFile) GetSignBytes

func (msg *MsgCreateContractFile) GetSignBytes() []byte

func (*MsgCreateContractFile) GetSigners

func (msg *MsgCreateContractFile) GetSigners() []sdk.AccAddress

func (*MsgCreateContractFile) GetTimeStamp

func (m *MsgCreateContractFile) GetTimeStamp() uint64

func (*MsgCreateContractFile) Marshal

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

func (*MsgCreateContractFile) MarshalTo

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

func (*MsgCreateContractFile) MarshalToSizedBuffer

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

func (*MsgCreateContractFile) ProtoMessage

func (*MsgCreateContractFile) ProtoMessage()

func (*MsgCreateContractFile) Reset

func (m *MsgCreateContractFile) Reset()

func (*MsgCreateContractFile) Route

func (msg *MsgCreateContractFile) Route() string

func (*MsgCreateContractFile) Size

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

func (*MsgCreateContractFile) String

func (m *MsgCreateContractFile) String() string

func (*MsgCreateContractFile) Type

func (msg *MsgCreateContractFile) Type() string

func (*MsgCreateContractFile) Unmarshal

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

func (*MsgCreateContractFile) ValidateBasic

func (msg *MsgCreateContractFile) ValidateBasic() error

func (*MsgCreateContractFile) XXX_DiscardUnknown

func (m *MsgCreateContractFile) XXX_DiscardUnknown()

func (*MsgCreateContractFile) XXX_Marshal

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

func (*MsgCreateContractFile) XXX_Merge

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

func (*MsgCreateContractFile) XXX_Size

func (m *MsgCreateContractFile) XXX_Size() int

func (*MsgCreateContractFile) XXX_Unmarshal

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

type MsgCreateContractFileResponse

type MsgCreateContractFileResponse struct {
}

func (*MsgCreateContractFileResponse) Descriptor

func (*MsgCreateContractFileResponse) Descriptor() ([]byte, []int)

func (*MsgCreateContractFileResponse) Marshal

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

func (*MsgCreateContractFileResponse) MarshalTo

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

func (*MsgCreateContractFileResponse) MarshalToSizedBuffer

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

func (*MsgCreateContractFileResponse) ProtoMessage

func (*MsgCreateContractFileResponse) ProtoMessage()

func (*MsgCreateContractFileResponse) Reset

func (m *MsgCreateContractFileResponse) Reset()

func (*MsgCreateContractFileResponse) Size

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

func (*MsgCreateContractFileResponse) String

func (*MsgCreateContractFileResponse) Unmarshal

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

func (*MsgCreateContractFileResponse) XXX_DiscardUnknown

func (m *MsgCreateContractFileResponse) XXX_DiscardUnknown()

func (*MsgCreateContractFileResponse) XXX_Marshal

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

func (*MsgCreateContractFileResponse) XXX_Merge

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

func (*MsgCreateContractFileResponse) XXX_Size

func (m *MsgCreateContractFileResponse) XXX_Size() int

func (*MsgCreateContractFileResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreateContractFile(context.Context, *MsgCreateContractFile) (*MsgCreateContractFileResponse, error)
	AddContractLog(context.Context, *MsgAddContractLog) (*MsgAddContractLogResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAllContractFileRequest

type QueryAllContractFileRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllContractFileRequest) Descriptor

func (*QueryAllContractFileRequest) Descriptor() ([]byte, []int)

func (*QueryAllContractFileRequest) GetPagination

func (m *QueryAllContractFileRequest) GetPagination() *query.PageRequest

func (*QueryAllContractFileRequest) Marshal

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

func (*QueryAllContractFileRequest) MarshalTo

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

func (*QueryAllContractFileRequest) MarshalToSizedBuffer

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

func (*QueryAllContractFileRequest) ProtoMessage

func (*QueryAllContractFileRequest) ProtoMessage()

func (*QueryAllContractFileRequest) Reset

func (m *QueryAllContractFileRequest) Reset()

func (*QueryAllContractFileRequest) Size

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

func (*QueryAllContractFileRequest) String

func (m *QueryAllContractFileRequest) String() string

func (*QueryAllContractFileRequest) Unmarshal

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

func (*QueryAllContractFileRequest) XXX_DiscardUnknown

func (m *QueryAllContractFileRequest) XXX_DiscardUnknown()

func (*QueryAllContractFileRequest) XXX_Marshal

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

func (*QueryAllContractFileRequest) XXX_Merge

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

func (*QueryAllContractFileRequest) XXX_Size

func (m *QueryAllContractFileRequest) XXX_Size() int

func (*QueryAllContractFileRequest) XXX_Unmarshal

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

type QueryAllContractFileResponse

type QueryAllContractFileResponse struct {
	ContractFile []*ContractFile     `protobuf:"bytes,1,rep,name=ContractFile,proto3" json:"ContractFile,omitempty"`
	Pagination   *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllContractFileResponse) Descriptor

func (*QueryAllContractFileResponse) Descriptor() ([]byte, []int)

func (*QueryAllContractFileResponse) GetContractFile

func (m *QueryAllContractFileResponse) GetContractFile() []*ContractFile

func (*QueryAllContractFileResponse) GetPagination

func (m *QueryAllContractFileResponse) GetPagination() *query.PageResponse

func (*QueryAllContractFileResponse) Marshal

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

func (*QueryAllContractFileResponse) MarshalTo

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

func (*QueryAllContractFileResponse) MarshalToSizedBuffer

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

func (*QueryAllContractFileResponse) ProtoMessage

func (*QueryAllContractFileResponse) ProtoMessage()

func (*QueryAllContractFileResponse) Reset

func (m *QueryAllContractFileResponse) Reset()

func (*QueryAllContractFileResponse) Size

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

func (*QueryAllContractFileResponse) String

func (*QueryAllContractFileResponse) Unmarshal

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

func (*QueryAllContractFileResponse) XXX_DiscardUnknown

func (m *QueryAllContractFileResponse) XXX_DiscardUnknown()

func (*QueryAllContractFileResponse) XXX_Marshal

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

func (*QueryAllContractFileResponse) XXX_Merge

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

func (*QueryAllContractFileResponse) XXX_Size

func (m *QueryAllContractFileResponse) XXX_Size() int

func (*QueryAllContractFileResponse) XXX_Unmarshal

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

type QueryAllContractLogRequest

type QueryAllContractLogRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllContractLogRequest) Descriptor

func (*QueryAllContractLogRequest) Descriptor() ([]byte, []int)

func (*QueryAllContractLogRequest) GetPagination

func (m *QueryAllContractLogRequest) GetPagination() *query.PageRequest

func (*QueryAllContractLogRequest) Marshal

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

func (*QueryAllContractLogRequest) MarshalTo

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

func (*QueryAllContractLogRequest) MarshalToSizedBuffer

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

func (*QueryAllContractLogRequest) ProtoMessage

func (*QueryAllContractLogRequest) ProtoMessage()

func (*QueryAllContractLogRequest) Reset

func (m *QueryAllContractLogRequest) Reset()

func (*QueryAllContractLogRequest) Size

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

func (*QueryAllContractLogRequest) String

func (m *QueryAllContractLogRequest) String() string

func (*QueryAllContractLogRequest) Unmarshal

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

func (*QueryAllContractLogRequest) XXX_DiscardUnknown

func (m *QueryAllContractLogRequest) XXX_DiscardUnknown()

func (*QueryAllContractLogRequest) XXX_Marshal

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

func (*QueryAllContractLogRequest) XXX_Merge

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

func (*QueryAllContractLogRequest) XXX_Size

func (m *QueryAllContractLogRequest) XXX_Size() int

func (*QueryAllContractLogRequest) XXX_Unmarshal

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

type QueryAllContractLogResponse

type QueryAllContractLogResponse struct {
	ContractLog []*ContractLog      `protobuf:"bytes,1,rep,name=ContractLog,proto3" json:"ContractLog,omitempty"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllContractLogResponse) Descriptor

func (*QueryAllContractLogResponse) Descriptor() ([]byte, []int)

func (*QueryAllContractLogResponse) GetContractLog

func (m *QueryAllContractLogResponse) GetContractLog() []*ContractLog

func (*QueryAllContractLogResponse) GetPagination

func (m *QueryAllContractLogResponse) GetPagination() *query.PageResponse

func (*QueryAllContractLogResponse) Marshal

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

func (*QueryAllContractLogResponse) MarshalTo

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

func (*QueryAllContractLogResponse) MarshalToSizedBuffer

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

func (*QueryAllContractLogResponse) ProtoMessage

func (*QueryAllContractLogResponse) ProtoMessage()

func (*QueryAllContractLogResponse) Reset

func (m *QueryAllContractLogResponse) Reset()

func (*QueryAllContractLogResponse) Size

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

func (*QueryAllContractLogResponse) String

func (m *QueryAllContractLogResponse) String() string

func (*QueryAllContractLogResponse) Unmarshal

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

func (*QueryAllContractLogResponse) XXX_DiscardUnknown

func (m *QueryAllContractLogResponse) XXX_DiscardUnknown()

func (*QueryAllContractLogResponse) XXX_Marshal

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

func (*QueryAllContractLogResponse) XXX_Merge

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

func (*QueryAllContractLogResponse) XXX_Size

func (m *QueryAllContractLogResponse) XXX_Size() int

func (*QueryAllContractLogResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a list of isContractOwner items.
	IsContractOwner(ctx context.Context, in *QueryIsContractOwnerRequest, opts ...grpc.CallOption) (*QueryIsContractOwnerResponse, error)
	// Queries a contractFile by index.
	ContractFile(ctx context.Context, in *QueryGetContractFileRequest, opts ...grpc.CallOption) (*QueryGetContractFileResponse, error)
	// Queries a list of contractFile items.
	ContractFileAll(ctx context.Context, in *QueryAllContractFileRequest, opts ...grpc.CallOption) (*QueryAllContractFileResponse, error)
	// Queries a contractLog by hash
	GetContractListFromHash(ctx context.Context, in *QueryGetContractListFromHashRequest, opts ...grpc.CallOption) (*QueryGetContractListFromHashResponse, error)
	// Queries a contractLog by id.
	ContractLog(ctx context.Context, in *QueryGetContractLogRequest, opts ...grpc.CallOption) (*QueryGetContractLogResponse, error)
	// Queries a list of contractLog items.
	ContractLogAll(ctx context.Context, in *QueryAllContractLogRequest, opts ...grpc.CallOption) (*QueryAllContractLogResponse, 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 QueryGetContractFileRequest

type QueryGetContractFileRequest struct {
	Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}

func (*QueryGetContractFileRequest) Descriptor

func (*QueryGetContractFileRequest) Descriptor() ([]byte, []int)

func (*QueryGetContractFileRequest) GetIndex

func (m *QueryGetContractFileRequest) GetIndex() string

func (*QueryGetContractFileRequest) Marshal

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

func (*QueryGetContractFileRequest) MarshalTo

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

func (*QueryGetContractFileRequest) MarshalToSizedBuffer

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

func (*QueryGetContractFileRequest) ProtoMessage

func (*QueryGetContractFileRequest) ProtoMessage()

func (*QueryGetContractFileRequest) Reset

func (m *QueryGetContractFileRequest) Reset()

func (*QueryGetContractFileRequest) Size

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

func (*QueryGetContractFileRequest) String

func (m *QueryGetContractFileRequest) String() string

func (*QueryGetContractFileRequest) Unmarshal

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

func (*QueryGetContractFileRequest) XXX_DiscardUnknown

func (m *QueryGetContractFileRequest) XXX_DiscardUnknown()

func (*QueryGetContractFileRequest) XXX_Marshal

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

func (*QueryGetContractFileRequest) XXX_Merge

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

func (*QueryGetContractFileRequest) XXX_Size

func (m *QueryGetContractFileRequest) XXX_Size() int

func (*QueryGetContractFileRequest) XXX_Unmarshal

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

type QueryGetContractFileResponse

type QueryGetContractFileResponse struct {
	ContractFile *ContractFile `protobuf:"bytes,1,opt,name=ContractFile,proto3" json:"ContractFile,omitempty"`
}

func (*QueryGetContractFileResponse) Descriptor

func (*QueryGetContractFileResponse) Descriptor() ([]byte, []int)

func (*QueryGetContractFileResponse) GetContractFile

func (m *QueryGetContractFileResponse) GetContractFile() *ContractFile

func (*QueryGetContractFileResponse) Marshal

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

func (*QueryGetContractFileResponse) MarshalTo

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

func (*QueryGetContractFileResponse) MarshalToSizedBuffer

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

func (*QueryGetContractFileResponse) ProtoMessage

func (*QueryGetContractFileResponse) ProtoMessage()

func (*QueryGetContractFileResponse) Reset

func (m *QueryGetContractFileResponse) Reset()

func (*QueryGetContractFileResponse) Size

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

func (*QueryGetContractFileResponse) String

func (*QueryGetContractFileResponse) Unmarshal

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

func (*QueryGetContractFileResponse) XXX_DiscardUnknown

func (m *QueryGetContractFileResponse) XXX_DiscardUnknown()

func (*QueryGetContractFileResponse) XXX_Marshal

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

func (*QueryGetContractFileResponse) XXX_Merge

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

func (*QueryGetContractFileResponse) XXX_Size

func (m *QueryGetContractFileResponse) XXX_Size() int

func (*QueryGetContractFileResponse) XXX_Unmarshal

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

type QueryGetContractListFromHashRequest

type QueryGetContractListFromHashRequest struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
}

func (*QueryGetContractListFromHashRequest) Descriptor

func (*QueryGetContractListFromHashRequest) Descriptor() ([]byte, []int)

func (*QueryGetContractListFromHashRequest) GetHash

func (*QueryGetContractListFromHashRequest) Marshal

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

func (*QueryGetContractListFromHashRequest) MarshalTo

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

func (*QueryGetContractListFromHashRequest) MarshalToSizedBuffer

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

func (*QueryGetContractListFromHashRequest) ProtoMessage

func (*QueryGetContractListFromHashRequest) ProtoMessage()

func (*QueryGetContractListFromHashRequest) Reset

func (*QueryGetContractListFromHashRequest) Size

func (*QueryGetContractListFromHashRequest) String

func (*QueryGetContractListFromHashRequest) Unmarshal

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

func (*QueryGetContractListFromHashRequest) XXX_DiscardUnknown

func (m *QueryGetContractListFromHashRequest) XXX_DiscardUnknown()

func (*QueryGetContractListFromHashRequest) XXX_Marshal

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

func (*QueryGetContractListFromHashRequest) XXX_Merge

func (*QueryGetContractListFromHashRequest) XXX_Size

func (*QueryGetContractListFromHashRequest) XXX_Unmarshal

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

type QueryGetContractListFromHashResponse

type QueryGetContractListFromHashResponse struct {
	IdList []uint64 `protobuf:"varint,1,rep,packed,name=idList,proto3" json:"idList,omitempty"`
}

func (*QueryGetContractListFromHashResponse) Descriptor

func (*QueryGetContractListFromHashResponse) Descriptor() ([]byte, []int)

func (*QueryGetContractListFromHashResponse) GetIdList

func (*QueryGetContractListFromHashResponse) Marshal

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

func (*QueryGetContractListFromHashResponse) MarshalTo

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

func (*QueryGetContractListFromHashResponse) MarshalToSizedBuffer

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

func (*QueryGetContractListFromHashResponse) ProtoMessage

func (*QueryGetContractListFromHashResponse) ProtoMessage()

func (*QueryGetContractListFromHashResponse) Reset

func (*QueryGetContractListFromHashResponse) Size

func (*QueryGetContractListFromHashResponse) String

func (*QueryGetContractListFromHashResponse) Unmarshal

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

func (*QueryGetContractListFromHashResponse) XXX_DiscardUnknown

func (m *QueryGetContractListFromHashResponse) XXX_DiscardUnknown()

func (*QueryGetContractListFromHashResponse) XXX_Marshal

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

func (*QueryGetContractListFromHashResponse) XXX_Merge

func (*QueryGetContractListFromHashResponse) XXX_Size

func (*QueryGetContractListFromHashResponse) XXX_Unmarshal

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

type QueryGetContractLogRequest

type QueryGetContractLogRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetContractLogRequest) Descriptor

func (*QueryGetContractLogRequest) Descriptor() ([]byte, []int)

func (*QueryGetContractLogRequest) GetId

func (*QueryGetContractLogRequest) Marshal

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

func (*QueryGetContractLogRequest) MarshalTo

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

func (*QueryGetContractLogRequest) MarshalToSizedBuffer

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

func (*QueryGetContractLogRequest) ProtoMessage

func (*QueryGetContractLogRequest) ProtoMessage()

func (*QueryGetContractLogRequest) Reset

func (m *QueryGetContractLogRequest) Reset()

func (*QueryGetContractLogRequest) Size

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

func (*QueryGetContractLogRequest) String

func (m *QueryGetContractLogRequest) String() string

func (*QueryGetContractLogRequest) Unmarshal

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

func (*QueryGetContractLogRequest) XXX_DiscardUnknown

func (m *QueryGetContractLogRequest) XXX_DiscardUnknown()

func (*QueryGetContractLogRequest) XXX_Marshal

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

func (*QueryGetContractLogRequest) XXX_Merge

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

func (*QueryGetContractLogRequest) XXX_Size

func (m *QueryGetContractLogRequest) XXX_Size() int

func (*QueryGetContractLogRequest) XXX_Unmarshal

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

type QueryGetContractLogResponse

type QueryGetContractLogResponse struct {
	ContractLog *ContractLog `protobuf:"bytes,1,opt,name=ContractLog,proto3" json:"ContractLog,omitempty"`
}

func (*QueryGetContractLogResponse) Descriptor

func (*QueryGetContractLogResponse) Descriptor() ([]byte, []int)

func (*QueryGetContractLogResponse) GetContractLog

func (m *QueryGetContractLogResponse) GetContractLog() *ContractLog

func (*QueryGetContractLogResponse) Marshal

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

func (*QueryGetContractLogResponse) MarshalTo

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

func (*QueryGetContractLogResponse) MarshalToSizedBuffer

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

func (*QueryGetContractLogResponse) ProtoMessage

func (*QueryGetContractLogResponse) ProtoMessage()

func (*QueryGetContractLogResponse) Reset

func (m *QueryGetContractLogResponse) Reset()

func (*QueryGetContractLogResponse) Size

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

func (*QueryGetContractLogResponse) String

func (m *QueryGetContractLogResponse) String() string

func (*QueryGetContractLogResponse) Unmarshal

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

func (*QueryGetContractLogResponse) XXX_DiscardUnknown

func (m *QueryGetContractLogResponse) XXX_DiscardUnknown()

func (*QueryGetContractLogResponse) XXX_Marshal

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

func (*QueryGetContractLogResponse) XXX_Merge

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

func (*QueryGetContractLogResponse) XXX_Size

func (m *QueryGetContractLogResponse) XXX_Size() int

func (*QueryGetContractLogResponse) XXX_Unmarshal

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

type QueryIsContractOwnerRequest

type QueryIsContractOwnerRequest struct {
	FileHash     string `protobuf:"bytes,1,opt,name=fileHash,proto3" json:"fileHash,omitempty"`
	OwnerAddress string `protobuf:"bytes,2,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
}

func (*QueryIsContractOwnerRequest) Descriptor

func (*QueryIsContractOwnerRequest) Descriptor() ([]byte, []int)

func (*QueryIsContractOwnerRequest) GetFileHash

func (m *QueryIsContractOwnerRequest) GetFileHash() string

func (*QueryIsContractOwnerRequest) GetOwnerAddress

func (m *QueryIsContractOwnerRequest) GetOwnerAddress() string

func (*QueryIsContractOwnerRequest) Marshal

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

func (*QueryIsContractOwnerRequest) MarshalTo

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

func (*QueryIsContractOwnerRequest) MarshalToSizedBuffer

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

func (*QueryIsContractOwnerRequest) ProtoMessage

func (*QueryIsContractOwnerRequest) ProtoMessage()

func (*QueryIsContractOwnerRequest) Reset

func (m *QueryIsContractOwnerRequest) Reset()

func (*QueryIsContractOwnerRequest) Size

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

func (*QueryIsContractOwnerRequest) String

func (m *QueryIsContractOwnerRequest) String() string

func (*QueryIsContractOwnerRequest) Unmarshal

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

func (*QueryIsContractOwnerRequest) XXX_DiscardUnknown

func (m *QueryIsContractOwnerRequest) XXX_DiscardUnknown()

func (*QueryIsContractOwnerRequest) XXX_Marshal

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

func (*QueryIsContractOwnerRequest) XXX_Merge

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

func (*QueryIsContractOwnerRequest) XXX_Size

func (m *QueryIsContractOwnerRequest) XXX_Size() int

func (*QueryIsContractOwnerRequest) XXX_Unmarshal

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

type QueryIsContractOwnerResponse

type QueryIsContractOwnerResponse struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}

func (*QueryIsContractOwnerResponse) Descriptor

func (*QueryIsContractOwnerResponse) Descriptor() ([]byte, []int)

func (*QueryIsContractOwnerResponse) GetResult

func (m *QueryIsContractOwnerResponse) GetResult() bool

func (*QueryIsContractOwnerResponse) Marshal

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

func (*QueryIsContractOwnerResponse) MarshalTo

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

func (*QueryIsContractOwnerResponse) MarshalToSizedBuffer

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

func (*QueryIsContractOwnerResponse) ProtoMessage

func (*QueryIsContractOwnerResponse) ProtoMessage()

func (*QueryIsContractOwnerResponse) Reset

func (m *QueryIsContractOwnerResponse) Reset()

func (*QueryIsContractOwnerResponse) Size

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

func (*QueryIsContractOwnerResponse) String

func (*QueryIsContractOwnerResponse) Unmarshal

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

func (*QueryIsContractOwnerResponse) XXX_DiscardUnknown

func (m *QueryIsContractOwnerResponse) XXX_DiscardUnknown()

func (*QueryIsContractOwnerResponse) XXX_Marshal

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

func (*QueryIsContractOwnerResponse) XXX_Merge

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

func (*QueryIsContractOwnerResponse) XXX_Size

func (m *QueryIsContractOwnerResponse) XXX_Size() int

func (*QueryIsContractOwnerResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a list of isContractOwner items.
	IsContractOwner(context.Context, *QueryIsContractOwnerRequest) (*QueryIsContractOwnerResponse, error)
	// Queries a contractFile by index.
	ContractFile(context.Context, *QueryGetContractFileRequest) (*QueryGetContractFileResponse, error)
	// Queries a list of contractFile items.
	ContractFileAll(context.Context, *QueryAllContractFileRequest) (*QueryAllContractFileResponse, error)
	// Queries a contractLog by hash
	GetContractListFromHash(context.Context, *QueryGetContractListFromHashRequest) (*QueryGetContractListFromHashResponse, error)
	// Queries a contractLog by id.
	ContractLog(context.Context, *QueryGetContractLogRequest) (*QueryGetContractLogResponse, error)
	// Queries a list of contractLog items.
	ContractLogAll(context.Context, *QueryAllContractLogRequest) (*QueryAllContractLogResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddContractLog

func (*UnimplementedMsgServer) CreateContractFile

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ContractFile

func (*UnimplementedQueryServer) ContractFileAll

func (*UnimplementedQueryServer) ContractLog

func (*UnimplementedQueryServer) ContractLogAll

func (*UnimplementedQueryServer) IsContractOwner

Jump to

Keyboard shortcuts

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