types

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 27 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 = "offerservice"

	// 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_offerservice"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	OfferContractKey = "OfferContract-value-"
)

Variables

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 (
	ErrInvalidLengthOfferContract        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOfferContract          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOfferContract = 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/offerservice 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 BankKeeper

type BankKeeper interface {
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

type CharserviceKeeper

type CharserviceKeeper interface {
	GetCharacter(ctx sdk.Context, index string) (val types.Character, found bool)
	SetCharacter(ctx sdk.Context, character types.Character)
}

type GenesisState

type GenesisState struct {
	// this line is used by starport scaffolding # genesis/proto/state
	OfferContractList []*OfferContract `protobuf:"bytes,1,rep,name=offerContractList,proto3" json:"offerContractList,omitempty"`
}

GenesisState defines the offerservice 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) GetOfferContractList

func (m *GenesisState) GetOfferContractList() []*OfferContract

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 MsgAcceptOffer

type MsgAcceptOffer struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OfferId string `protobuf:"bytes,2,opt,name=offerId,proto3" json:"offerId,omitempty"`
}

this line is used by starport scaffolding # proto/tx/message

func NewMsgAcceptOffer

func NewMsgAcceptOffer(creator string, offerId string) *MsgAcceptOffer

func (*MsgAcceptOffer) Descriptor

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

func (*MsgAcceptOffer) GetCreator

func (m *MsgAcceptOffer) GetCreator() string

func (*MsgAcceptOffer) GetOfferId

func (m *MsgAcceptOffer) GetOfferId() string

func (*MsgAcceptOffer) GetSignBytes

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

func (*MsgAcceptOffer) GetSigners

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

func (*MsgAcceptOffer) Marshal

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

func (*MsgAcceptOffer) MarshalTo

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

func (*MsgAcceptOffer) MarshalToSizedBuffer

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

func (*MsgAcceptOffer) ProtoMessage

func (*MsgAcceptOffer) ProtoMessage()

func (*MsgAcceptOffer) Reset

func (m *MsgAcceptOffer) Reset()

func (*MsgAcceptOffer) Route

func (msg *MsgAcceptOffer) Route() string

func (*MsgAcceptOffer) Size

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

func (*MsgAcceptOffer) String

func (m *MsgAcceptOffer) String() string

func (*MsgAcceptOffer) Type

func (msg *MsgAcceptOffer) Type() string

func (*MsgAcceptOffer) Unmarshal

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

func (*MsgAcceptOffer) ValidateBasic

func (msg *MsgAcceptOffer) ValidateBasic() error

func (*MsgAcceptOffer) XXX_DiscardUnknown

func (m *MsgAcceptOffer) XXX_DiscardUnknown()

func (*MsgAcceptOffer) XXX_Marshal

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

func (*MsgAcceptOffer) XXX_Merge

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

func (*MsgAcceptOffer) XXX_Size

func (m *MsgAcceptOffer) XXX_Size() int

func (*MsgAcceptOffer) XXX_Unmarshal

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

type MsgAcceptOfferResponse

type MsgAcceptOfferResponse struct {
	OfferId   string `protobuf:"bytes,1,opt,name=offerId,proto3" json:"offerId,omitempty"`
	CharId    string `protobuf:"bytes,2,opt,name=charId,proto3" json:"charId,omitempty"`
	SalePrice string `protobuf:"bytes,3,opt,name=salePrice,proto3" json:"salePrice,omitempty"`
}

func (*MsgAcceptOfferResponse) Descriptor

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

func (*MsgAcceptOfferResponse) GetCharId

func (m *MsgAcceptOfferResponse) GetCharId() string

func (*MsgAcceptOfferResponse) GetOfferId

func (m *MsgAcceptOfferResponse) GetOfferId() string

func (*MsgAcceptOfferResponse) GetSalePrice

func (m *MsgAcceptOfferResponse) GetSalePrice() string

func (*MsgAcceptOfferResponse) Marshal

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

func (*MsgAcceptOfferResponse) MarshalTo

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

func (*MsgAcceptOfferResponse) MarshalToSizedBuffer

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

func (*MsgAcceptOfferResponse) ProtoMessage

func (*MsgAcceptOfferResponse) ProtoMessage()

func (*MsgAcceptOfferResponse) Reset

func (m *MsgAcceptOfferResponse) Reset()

func (*MsgAcceptOfferResponse) Size

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

func (*MsgAcceptOfferResponse) String

func (m *MsgAcceptOfferResponse) String() string

func (*MsgAcceptOfferResponse) Unmarshal

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

func (*MsgAcceptOfferResponse) XXX_DiscardUnknown

func (m *MsgAcceptOfferResponse) XXX_DiscardUnknown()

func (*MsgAcceptOfferResponse) XXX_Marshal

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

func (*MsgAcceptOfferResponse) XXX_Merge

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

func (*MsgAcceptOfferResponse) XXX_Size

func (m *MsgAcceptOfferResponse) XXX_Size() int

func (*MsgAcceptOfferResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	AcceptOffer(ctx context.Context, in *MsgAcceptOffer, opts ...grpc.CallOption) (*MsgAcceptOfferResponse, error)
	CreateOffer(ctx context.Context, in *MsgCreateOffer, opts ...grpc.CallOption) (*MsgCreateOfferResponse, 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 MsgCreateOffer

type MsgCreateOffer struct {
	ExpireInMinutes int64  `protobuf:"varint,1,opt,name=expireInMinutes,proto3" json:"expireInMinutes,omitempty"`
	Creator         string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Bid             string `protobuf:"bytes,3,opt,name=bid,proto3" json:"bid,omitempty"`
	CharId          string `protobuf:"bytes,4,opt,name=charId,proto3" json:"charId,omitempty"`
}

func NewMsgCreateOffer

func NewMsgCreateOffer(creator string, bid string, charId string, expireInMinutes int64) *MsgCreateOffer

func (*MsgCreateOffer) Descriptor

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

func (*MsgCreateOffer) GetBid

func (m *MsgCreateOffer) GetBid() string

func (*MsgCreateOffer) GetCharId

func (m *MsgCreateOffer) GetCharId() string

func (*MsgCreateOffer) GetCreator

func (m *MsgCreateOffer) GetCreator() string

func (*MsgCreateOffer) GetExpireInMinutes

func (m *MsgCreateOffer) GetExpireInMinutes() int64

func (*MsgCreateOffer) GetSignBytes

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

func (*MsgCreateOffer) GetSigners

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

func (*MsgCreateOffer) Marshal

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

func (*MsgCreateOffer) MarshalTo

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

func (*MsgCreateOffer) MarshalToSizedBuffer

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

func (*MsgCreateOffer) ProtoMessage

func (*MsgCreateOffer) ProtoMessage()

func (*MsgCreateOffer) Reset

func (m *MsgCreateOffer) Reset()

func (*MsgCreateOffer) Route

func (msg *MsgCreateOffer) Route() string

func (*MsgCreateOffer) Size

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

func (*MsgCreateOffer) String

func (m *MsgCreateOffer) String() string

func (*MsgCreateOffer) Type

func (msg *MsgCreateOffer) Type() string

func (*MsgCreateOffer) Unmarshal

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

func (*MsgCreateOffer) ValidateBasic

func (msg *MsgCreateOffer) ValidateBasic() error

func (*MsgCreateOffer) XXX_DiscardUnknown

func (m *MsgCreateOffer) XXX_DiscardUnknown()

func (*MsgCreateOffer) XXX_Marshal

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

func (*MsgCreateOffer) XXX_Merge

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

func (*MsgCreateOffer) XXX_Size

func (m *MsgCreateOffer) XXX_Size() int

func (*MsgCreateOffer) XXX_Unmarshal

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

type MsgCreateOfferResponse

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

func (*MsgCreateOfferResponse) Descriptor

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

func (*MsgCreateOfferResponse) GetIndex

func (m *MsgCreateOfferResponse) GetIndex() string

func (*MsgCreateOfferResponse) Marshal

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

func (*MsgCreateOfferResponse) MarshalTo

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

func (*MsgCreateOfferResponse) MarshalToSizedBuffer

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

func (*MsgCreateOfferResponse) ProtoMessage

func (*MsgCreateOfferResponse) ProtoMessage()

func (*MsgCreateOfferResponse) Reset

func (m *MsgCreateOfferResponse) Reset()

func (*MsgCreateOfferResponse) Size

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

func (*MsgCreateOfferResponse) String

func (m *MsgCreateOfferResponse) String() string

func (*MsgCreateOfferResponse) Unmarshal

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

func (*MsgCreateOfferResponse) XXX_DiscardUnknown

func (m *MsgCreateOfferResponse) XXX_DiscardUnknown()

func (*MsgCreateOfferResponse) XXX_Marshal

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

func (*MsgCreateOfferResponse) XXX_Merge

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

func (*MsgCreateOfferResponse) XXX_Size

func (m *MsgCreateOfferResponse) XXX_Size() int

func (*MsgCreateOfferResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	AcceptOffer(context.Context, *MsgAcceptOffer) (*MsgAcceptOfferResponse, error)
	CreateOffer(context.Context, *MsgCreateOffer) (*MsgCreateOfferResponse, error)
}

MsgServer is the server API for Msg service.

type OfferContract

type OfferContract struct {
	ExpiresAt int64  `protobuf:"varint,1,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"`
	Creator   string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	Index     string `protobuf:"bytes,3,opt,name=index,proto3" json:"index,omitempty"`
	CharId    string `protobuf:"bytes,4,opt,name=charId,proto3" json:"charId,omitempty"`
	Value     string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
}

func (*OfferContract) Descriptor

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

func (*OfferContract) GetCharId

func (m *OfferContract) GetCharId() string

func (*OfferContract) GetCreator

func (m *OfferContract) GetCreator() string

func (*OfferContract) GetExpiresAt

func (m *OfferContract) GetExpiresAt() int64

func (*OfferContract) GetIndex

func (m *OfferContract) GetIndex() string

func (*OfferContract) GetValue

func (m *OfferContract) GetValue() string

func (*OfferContract) Marshal

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

func (*OfferContract) MarshalTo

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

func (*OfferContract) MarshalToSizedBuffer

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

func (*OfferContract) ProtoMessage

func (*OfferContract) ProtoMessage()

func (*OfferContract) Reset

func (m *OfferContract) Reset()

func (*OfferContract) Size

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

func (*OfferContract) String

func (m *OfferContract) String() string

func (*OfferContract) Unmarshal

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

func (*OfferContract) XXX_DiscardUnknown

func (m *OfferContract) XXX_DiscardUnknown()

func (*OfferContract) XXX_Marshal

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

func (*OfferContract) XXX_Merge

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

func (*OfferContract) XXX_Size

func (m *OfferContract) XXX_Size() int

func (*OfferContract) XXX_Unmarshal

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

type QueryAllOfferContractRequest

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

func (*QueryAllOfferContractRequest) Descriptor

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

func (*QueryAllOfferContractRequest) GetPagination

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

func (*QueryAllOfferContractRequest) Marshal

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

func (*QueryAllOfferContractRequest) MarshalTo

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

func (*QueryAllOfferContractRequest) MarshalToSizedBuffer

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

func (*QueryAllOfferContractRequest) ProtoMessage

func (*QueryAllOfferContractRequest) ProtoMessage()

func (*QueryAllOfferContractRequest) Reset

func (m *QueryAllOfferContractRequest) Reset()

func (*QueryAllOfferContractRequest) Size

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

func (*QueryAllOfferContractRequest) String

func (*QueryAllOfferContractRequest) Unmarshal

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

func (*QueryAllOfferContractRequest) XXX_DiscardUnknown

func (m *QueryAllOfferContractRequest) XXX_DiscardUnknown()

func (*QueryAllOfferContractRequest) XXX_Marshal

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

func (*QueryAllOfferContractRequest) XXX_Merge

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

func (*QueryAllOfferContractRequest) XXX_Size

func (m *QueryAllOfferContractRequest) XXX_Size() int

func (*QueryAllOfferContractRequest) XXX_Unmarshal

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

type QueryAllOfferContractResponse

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

func (*QueryAllOfferContractResponse) Descriptor

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

func (*QueryAllOfferContractResponse) GetOfferContract

func (m *QueryAllOfferContractResponse) GetOfferContract() []*OfferContract

func (*QueryAllOfferContractResponse) GetPagination

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

func (*QueryAllOfferContractResponse) Marshal

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

func (*QueryAllOfferContractResponse) MarshalTo

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

func (*QueryAllOfferContractResponse) MarshalToSizedBuffer

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

func (*QueryAllOfferContractResponse) ProtoMessage

func (*QueryAllOfferContractResponse) ProtoMessage()

func (*QueryAllOfferContractResponse) Reset

func (m *QueryAllOfferContractResponse) Reset()

func (*QueryAllOfferContractResponse) Size

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

func (*QueryAllOfferContractResponse) String

func (*QueryAllOfferContractResponse) Unmarshal

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

func (*QueryAllOfferContractResponse) XXX_DiscardUnknown

func (m *QueryAllOfferContractResponse) XXX_DiscardUnknown()

func (*QueryAllOfferContractResponse) XXX_Marshal

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

func (*QueryAllOfferContractResponse) XXX_Merge

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

func (*QueryAllOfferContractResponse) XXX_Size

func (m *QueryAllOfferContractResponse) XXX_Size() int

func (*QueryAllOfferContractResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a list of getAllCharOffers items.
	GetAllCharOffers(ctx context.Context, in *QueryGetAllCharOffersRequest, opts ...grpc.CallOption) (*QueryGetAllCharOffersResponse, error)
	// Queries a offerContract by index.
	OfferContract(ctx context.Context, in *QueryGetOfferContractRequest, opts ...grpc.CallOption) (*QueryGetOfferContractResponse, error)
	// Queries a list of offerContract items.
	OfferContractAll(ctx context.Context, in *QueryAllOfferContractRequest, opts ...grpc.CallOption) (*QueryAllOfferContractResponse, 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 QueryGetAllCharOffersRequest

type QueryGetAllCharOffersRequest struct {
	CharId     string             `protobuf:"bytes,1,opt,name=charId,proto3" json:"charId,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryGetAllCharOffersRequest) Descriptor

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

func (*QueryGetAllCharOffersRequest) GetCharId

func (m *QueryGetAllCharOffersRequest) GetCharId() string

func (*QueryGetAllCharOffersRequest) GetPagination

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

func (*QueryGetAllCharOffersRequest) Marshal

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

func (*QueryGetAllCharOffersRequest) MarshalTo

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

func (*QueryGetAllCharOffersRequest) MarshalToSizedBuffer

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

func (*QueryGetAllCharOffersRequest) ProtoMessage

func (*QueryGetAllCharOffersRequest) ProtoMessage()

func (*QueryGetAllCharOffersRequest) Reset

func (m *QueryGetAllCharOffersRequest) Reset()

func (*QueryGetAllCharOffersRequest) Size

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

func (*QueryGetAllCharOffersRequest) String

func (*QueryGetAllCharOffersRequest) Unmarshal

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

func (*QueryGetAllCharOffersRequest) XXX_DiscardUnknown

func (m *QueryGetAllCharOffersRequest) XXX_DiscardUnknown()

func (*QueryGetAllCharOffersRequest) XXX_Marshal

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

func (*QueryGetAllCharOffersRequest) XXX_Merge

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

func (*QueryGetAllCharOffersRequest) XXX_Size

func (m *QueryGetAllCharOffersRequest) XXX_Size() int

func (*QueryGetAllCharOffersRequest) XXX_Unmarshal

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

type QueryGetAllCharOffersResponse

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

func (*QueryGetAllCharOffersResponse) Descriptor

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

func (*QueryGetAllCharOffersResponse) GetOfferContract

func (m *QueryGetAllCharOffersResponse) GetOfferContract() []*OfferContract

func (*QueryGetAllCharOffersResponse) GetPagination

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

func (*QueryGetAllCharOffersResponse) Marshal

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

func (*QueryGetAllCharOffersResponse) MarshalTo

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

func (*QueryGetAllCharOffersResponse) MarshalToSizedBuffer

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

func (*QueryGetAllCharOffersResponse) ProtoMessage

func (*QueryGetAllCharOffersResponse) ProtoMessage()

func (*QueryGetAllCharOffersResponse) Reset

func (m *QueryGetAllCharOffersResponse) Reset()

func (*QueryGetAllCharOffersResponse) Size

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

func (*QueryGetAllCharOffersResponse) String

func (*QueryGetAllCharOffersResponse) Unmarshal

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

func (*QueryGetAllCharOffersResponse) XXX_DiscardUnknown

func (m *QueryGetAllCharOffersResponse) XXX_DiscardUnknown()

func (*QueryGetAllCharOffersResponse) XXX_Marshal

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

func (*QueryGetAllCharOffersResponse) XXX_Merge

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

func (*QueryGetAllCharOffersResponse) XXX_Size

func (m *QueryGetAllCharOffersResponse) XXX_Size() int

func (*QueryGetAllCharOffersResponse) XXX_Unmarshal

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

type QueryGetOfferContractRequest

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

func (*QueryGetOfferContractRequest) Descriptor

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

func (*QueryGetOfferContractRequest) GetIndex

func (m *QueryGetOfferContractRequest) GetIndex() string

func (*QueryGetOfferContractRequest) Marshal

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

func (*QueryGetOfferContractRequest) MarshalTo

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

func (*QueryGetOfferContractRequest) MarshalToSizedBuffer

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

func (*QueryGetOfferContractRequest) ProtoMessage

func (*QueryGetOfferContractRequest) ProtoMessage()

func (*QueryGetOfferContractRequest) Reset

func (m *QueryGetOfferContractRequest) Reset()

func (*QueryGetOfferContractRequest) Size

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

func (*QueryGetOfferContractRequest) String

func (*QueryGetOfferContractRequest) Unmarshal

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

func (*QueryGetOfferContractRequest) XXX_DiscardUnknown

func (m *QueryGetOfferContractRequest) XXX_DiscardUnknown()

func (*QueryGetOfferContractRequest) XXX_Marshal

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

func (*QueryGetOfferContractRequest) XXX_Merge

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

func (*QueryGetOfferContractRequest) XXX_Size

func (m *QueryGetOfferContractRequest) XXX_Size() int

func (*QueryGetOfferContractRequest) XXX_Unmarshal

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

type QueryGetOfferContractResponse

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

func (*QueryGetOfferContractResponse) Descriptor

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

func (*QueryGetOfferContractResponse) GetOfferContract

func (m *QueryGetOfferContractResponse) GetOfferContract() *OfferContract

func (*QueryGetOfferContractResponse) Marshal

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

func (*QueryGetOfferContractResponse) MarshalTo

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

func (*QueryGetOfferContractResponse) MarshalToSizedBuffer

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

func (*QueryGetOfferContractResponse) ProtoMessage

func (*QueryGetOfferContractResponse) ProtoMessage()

func (*QueryGetOfferContractResponse) Reset

func (m *QueryGetOfferContractResponse) Reset()

func (*QueryGetOfferContractResponse) Size

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

func (*QueryGetOfferContractResponse) String

func (*QueryGetOfferContractResponse) Unmarshal

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

func (*QueryGetOfferContractResponse) XXX_DiscardUnknown

func (m *QueryGetOfferContractResponse) XXX_DiscardUnknown()

func (*QueryGetOfferContractResponse) XXX_Marshal

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

func (*QueryGetOfferContractResponse) XXX_Merge

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

func (*QueryGetOfferContractResponse) XXX_Size

func (m *QueryGetOfferContractResponse) XXX_Size() int

func (*QueryGetOfferContractResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a list of getAllCharOffers items.
	GetAllCharOffers(context.Context, *QueryGetAllCharOffersRequest) (*QueryGetAllCharOffersResponse, error)
	// Queries a offerContract by index.
	OfferContract(context.Context, *QueryGetOfferContractRequest) (*QueryGetOfferContractResponse, error)
	// Queries a list of offerContract items.
	OfferContractAll(context.Context, *QueryAllOfferContractRequest) (*QueryAllOfferContractResponse, 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) AcceptOffer

func (*UnimplementedMsgServer) CreateOffer

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetAllCharOffers

func (*UnimplementedQueryServer) OfferContract

func (*UnimplementedQueryServer) OfferContractAll

Jump to

Keyboard shortcuts

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