Versions in this module Expand all Collapse all v0 v0.0.1 Sep 29, 2021 Changes in this version + const DefaultIndex + const MemStoreKey + const ModuleName + const OfferContractKey + const QuerierRoute + const RouterKey + const StoreKey + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowOfferContract = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthOfferContract = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupOfferContract = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) + func KeyPrefix(p string) []byte + 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) + type BankKeeper interface + BurnCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SendCoins func(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + type CharserviceKeeper interface + GetCharacter func(ctx sdk.Context, index string) (val types.Character, found bool) + SetCharacter func(ctx sdk.Context, character types.Character) + type GenesisState struct + OfferContractList []*OfferContract + func DefaultGenesis() *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetOfferContractList() []*OfferContract + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 MsgAcceptOffer struct + Creator string + OfferId string + func NewMsgAcceptOffer(creator string, offerId string) *MsgAcceptOffer + func (*MsgAcceptOffer) Descriptor() ([]byte, []int) + func (*MsgAcceptOffer) ProtoMessage() + func (m *MsgAcceptOffer) GetCreator() string + func (m *MsgAcceptOffer) GetOfferId() string + func (m *MsgAcceptOffer) Marshal() (dAtA []byte, err error) + func (m *MsgAcceptOffer) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAcceptOffer) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAcceptOffer) Reset() + func (m *MsgAcceptOffer) Size() (n int) + func (m *MsgAcceptOffer) String() string + func (m *MsgAcceptOffer) Unmarshal(dAtA []byte) error + func (m *MsgAcceptOffer) XXX_DiscardUnknown() + func (m *MsgAcceptOffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAcceptOffer) XXX_Merge(src proto.Message) + func (m *MsgAcceptOffer) XXX_Size() int + func (m *MsgAcceptOffer) XXX_Unmarshal(b []byte) error + func (msg *MsgAcceptOffer) GetSignBytes() []byte + func (msg *MsgAcceptOffer) GetSigners() []sdk.AccAddress + func (msg *MsgAcceptOffer) Route() string + func (msg *MsgAcceptOffer) Type() string + func (msg *MsgAcceptOffer) ValidateBasic() error + type MsgAcceptOfferResponse struct + CharId string + OfferId string + SalePrice string + func (*MsgAcceptOfferResponse) Descriptor() ([]byte, []int) + func (*MsgAcceptOfferResponse) ProtoMessage() + func (m *MsgAcceptOfferResponse) GetCharId() string + func (m *MsgAcceptOfferResponse) GetOfferId() string + func (m *MsgAcceptOfferResponse) GetSalePrice() string + func (m *MsgAcceptOfferResponse) Marshal() (dAtA []byte, err error) + func (m *MsgAcceptOfferResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgAcceptOfferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgAcceptOfferResponse) Reset() + func (m *MsgAcceptOfferResponse) Size() (n int) + func (m *MsgAcceptOfferResponse) String() string + func (m *MsgAcceptOfferResponse) Unmarshal(dAtA []byte) error + func (m *MsgAcceptOfferResponse) XXX_DiscardUnknown() + func (m *MsgAcceptOfferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgAcceptOfferResponse) XXX_Merge(src proto.Message) + func (m *MsgAcceptOfferResponse) XXX_Size() int + func (m *MsgAcceptOfferResponse) XXX_Unmarshal(b []byte) error + type MsgClient interface + AcceptOffer func(ctx context.Context, in *MsgAcceptOffer, opts ...grpc.CallOption) (*MsgAcceptOfferResponse, error) + CreateOffer func(ctx context.Context, in *MsgCreateOffer, opts ...grpc.CallOption) (*MsgCreateOfferResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgCreateOffer struct + Bid string + CharId string + Creator string + ExpireInMinutes int64 + func NewMsgCreateOffer(creator string, bid string, charId string, expireInMinutes int64) *MsgCreateOffer + func (*MsgCreateOffer) Descriptor() ([]byte, []int) + func (*MsgCreateOffer) ProtoMessage() + func (m *MsgCreateOffer) GetBid() string + func (m *MsgCreateOffer) GetCharId() string + func (m *MsgCreateOffer) GetCreator() string + func (m *MsgCreateOffer) GetExpireInMinutes() int64 + func (m *MsgCreateOffer) Marshal() (dAtA []byte, err error) + func (m *MsgCreateOffer) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateOffer) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateOffer) Reset() + func (m *MsgCreateOffer) Size() (n int) + func (m *MsgCreateOffer) String() string + func (m *MsgCreateOffer) Unmarshal(dAtA []byte) error + func (m *MsgCreateOffer) XXX_DiscardUnknown() + func (m *MsgCreateOffer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateOffer) XXX_Merge(src proto.Message) + func (m *MsgCreateOffer) XXX_Size() int + func (m *MsgCreateOffer) XXX_Unmarshal(b []byte) error + func (msg *MsgCreateOffer) GetSignBytes() []byte + func (msg *MsgCreateOffer) GetSigners() []sdk.AccAddress + func (msg *MsgCreateOffer) Route() string + func (msg *MsgCreateOffer) Type() string + func (msg *MsgCreateOffer) ValidateBasic() error + type MsgCreateOfferResponse struct + Index string + func (*MsgCreateOfferResponse) Descriptor() ([]byte, []int) + func (*MsgCreateOfferResponse) ProtoMessage() + func (m *MsgCreateOfferResponse) GetIndex() string + func (m *MsgCreateOfferResponse) Marshal() (dAtA []byte, err error) + func (m *MsgCreateOfferResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateOfferResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateOfferResponse) Reset() + func (m *MsgCreateOfferResponse) Size() (n int) + func (m *MsgCreateOfferResponse) String() string + func (m *MsgCreateOfferResponse) Unmarshal(dAtA []byte) error + func (m *MsgCreateOfferResponse) XXX_DiscardUnknown() + func (m *MsgCreateOfferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateOfferResponse) XXX_Merge(src proto.Message) + func (m *MsgCreateOfferResponse) XXX_Size() int + func (m *MsgCreateOfferResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + AcceptOffer func(context.Context, *MsgAcceptOffer) (*MsgAcceptOfferResponse, error) + CreateOffer func(context.Context, *MsgCreateOffer) (*MsgCreateOfferResponse, error) + type OfferContract struct + CharId string + Creator string + ExpiresAt int64 + Index string + Value string + func (*OfferContract) Descriptor() ([]byte, []int) + func (*OfferContract) ProtoMessage() + func (m *OfferContract) GetCharId() string + func (m *OfferContract) GetCreator() string + func (m *OfferContract) GetExpiresAt() int64 + func (m *OfferContract) GetIndex() string + func (m *OfferContract) GetValue() string + func (m *OfferContract) Marshal() (dAtA []byte, err error) + func (m *OfferContract) MarshalTo(dAtA []byte) (int, error) + func (m *OfferContract) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *OfferContract) Reset() + func (m *OfferContract) Size() (n int) + func (m *OfferContract) String() string + func (m *OfferContract) Unmarshal(dAtA []byte) error + func (m *OfferContract) XXX_DiscardUnknown() + func (m *OfferContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *OfferContract) XXX_Merge(src proto.Message) + func (m *OfferContract) XXX_Size() int + func (m *OfferContract) XXX_Unmarshal(b []byte) error + type QueryAllOfferContractRequest struct + Pagination *query.PageRequest + func (*QueryAllOfferContractRequest) Descriptor() ([]byte, []int) + func (*QueryAllOfferContractRequest) ProtoMessage() + func (m *QueryAllOfferContractRequest) GetPagination() *query.PageRequest + func (m *QueryAllOfferContractRequest) Marshal() (dAtA []byte, err error) + func (m *QueryAllOfferContractRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAllOfferContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAllOfferContractRequest) Reset() + func (m *QueryAllOfferContractRequest) Size() (n int) + func (m *QueryAllOfferContractRequest) String() string + func (m *QueryAllOfferContractRequest) Unmarshal(dAtA []byte) error + func (m *QueryAllOfferContractRequest) XXX_DiscardUnknown() + func (m *QueryAllOfferContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAllOfferContractRequest) XXX_Merge(src proto.Message) + func (m *QueryAllOfferContractRequest) XXX_Size() int + func (m *QueryAllOfferContractRequest) XXX_Unmarshal(b []byte) error + type QueryAllOfferContractResponse struct + OfferContract []*OfferContract + Pagination *query.PageResponse + func (*QueryAllOfferContractResponse) Descriptor() ([]byte, []int) + func (*QueryAllOfferContractResponse) ProtoMessage() + func (m *QueryAllOfferContractResponse) GetOfferContract() []*OfferContract + func (m *QueryAllOfferContractResponse) GetPagination() *query.PageResponse + func (m *QueryAllOfferContractResponse) Marshal() (dAtA []byte, err error) + func (m *QueryAllOfferContractResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryAllOfferContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryAllOfferContractResponse) Reset() + func (m *QueryAllOfferContractResponse) Size() (n int) + func (m *QueryAllOfferContractResponse) String() string + func (m *QueryAllOfferContractResponse) Unmarshal(dAtA []byte) error + func (m *QueryAllOfferContractResponse) XXX_DiscardUnknown() + func (m *QueryAllOfferContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryAllOfferContractResponse) XXX_Merge(src proto.Message) + func (m *QueryAllOfferContractResponse) XXX_Size() int + func (m *QueryAllOfferContractResponse) XXX_Unmarshal(b []byte) error + type QueryClient interface + GetAllCharOffers func(ctx context.Context, in *QueryGetAllCharOffersRequest, opts ...grpc.CallOption) (*QueryGetAllCharOffersResponse, error) + OfferContract func(ctx context.Context, in *QueryGetOfferContractRequest, opts ...grpc.CallOption) (*QueryGetOfferContractResponse, error) + OfferContractAll func(ctx context.Context, in *QueryAllOfferContractRequest, opts ...grpc.CallOption) (*QueryAllOfferContractResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryGetAllCharOffersRequest struct + CharId string + Pagination *query.PageRequest + func (*QueryGetAllCharOffersRequest) Descriptor() ([]byte, []int) + func (*QueryGetAllCharOffersRequest) ProtoMessage() + func (m *QueryGetAllCharOffersRequest) GetCharId() string + func (m *QueryGetAllCharOffersRequest) GetPagination() *query.PageRequest + func (m *QueryGetAllCharOffersRequest) Marshal() (dAtA []byte, err error) + func (m *QueryGetAllCharOffersRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGetAllCharOffersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGetAllCharOffersRequest) Reset() + func (m *QueryGetAllCharOffersRequest) Size() (n int) + func (m *QueryGetAllCharOffersRequest) String() string + func (m *QueryGetAllCharOffersRequest) Unmarshal(dAtA []byte) error + func (m *QueryGetAllCharOffersRequest) XXX_DiscardUnknown() + func (m *QueryGetAllCharOffersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGetAllCharOffersRequest) XXX_Merge(src proto.Message) + func (m *QueryGetAllCharOffersRequest) XXX_Size() int + func (m *QueryGetAllCharOffersRequest) XXX_Unmarshal(b []byte) error + type QueryGetAllCharOffersResponse struct + OfferContract []*OfferContract + Pagination *query.PageResponse + func (*QueryGetAllCharOffersResponse) Descriptor() ([]byte, []int) + func (*QueryGetAllCharOffersResponse) ProtoMessage() + func (m *QueryGetAllCharOffersResponse) GetOfferContract() []*OfferContract + func (m *QueryGetAllCharOffersResponse) GetPagination() *query.PageResponse + func (m *QueryGetAllCharOffersResponse) Marshal() (dAtA []byte, err error) + func (m *QueryGetAllCharOffersResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGetAllCharOffersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGetAllCharOffersResponse) Reset() + func (m *QueryGetAllCharOffersResponse) Size() (n int) + func (m *QueryGetAllCharOffersResponse) String() string + func (m *QueryGetAllCharOffersResponse) Unmarshal(dAtA []byte) error + func (m *QueryGetAllCharOffersResponse) XXX_DiscardUnknown() + func (m *QueryGetAllCharOffersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGetAllCharOffersResponse) XXX_Merge(src proto.Message) + func (m *QueryGetAllCharOffersResponse) XXX_Size() int + func (m *QueryGetAllCharOffersResponse) XXX_Unmarshal(b []byte) error + type QueryGetOfferContractRequest struct + Index string + func (*QueryGetOfferContractRequest) Descriptor() ([]byte, []int) + func (*QueryGetOfferContractRequest) ProtoMessage() + func (m *QueryGetOfferContractRequest) GetIndex() string + func (m *QueryGetOfferContractRequest) Marshal() (dAtA []byte, err error) + func (m *QueryGetOfferContractRequest) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGetOfferContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGetOfferContractRequest) Reset() + func (m *QueryGetOfferContractRequest) Size() (n int) + func (m *QueryGetOfferContractRequest) String() string + func (m *QueryGetOfferContractRequest) Unmarshal(dAtA []byte) error + func (m *QueryGetOfferContractRequest) XXX_DiscardUnknown() + func (m *QueryGetOfferContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGetOfferContractRequest) XXX_Merge(src proto.Message) + func (m *QueryGetOfferContractRequest) XXX_Size() int + func (m *QueryGetOfferContractRequest) XXX_Unmarshal(b []byte) error + type QueryGetOfferContractResponse struct + OfferContract *OfferContract + func (*QueryGetOfferContractResponse) Descriptor() ([]byte, []int) + func (*QueryGetOfferContractResponse) ProtoMessage() + func (m *QueryGetOfferContractResponse) GetOfferContract() *OfferContract + func (m *QueryGetOfferContractResponse) Marshal() (dAtA []byte, err error) + func (m *QueryGetOfferContractResponse) MarshalTo(dAtA []byte) (int, error) + func (m *QueryGetOfferContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *QueryGetOfferContractResponse) Reset() + func (m *QueryGetOfferContractResponse) Size() (n int) + func (m *QueryGetOfferContractResponse) String() string + func (m *QueryGetOfferContractResponse) Unmarshal(dAtA []byte) error + func (m *QueryGetOfferContractResponse) XXX_DiscardUnknown() + func (m *QueryGetOfferContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *QueryGetOfferContractResponse) XXX_Merge(src proto.Message) + func (m *QueryGetOfferContractResponse) XXX_Size() int + func (m *QueryGetOfferContractResponse) XXX_Unmarshal(b []byte) error + type QueryServer interface + GetAllCharOffers func(context.Context, *QueryGetAllCharOffersRequest) (*QueryGetAllCharOffersResponse, error) + OfferContract func(context.Context, *QueryGetOfferContractRequest) (*QueryGetOfferContractResponse, error) + OfferContractAll func(context.Context, *QueryAllOfferContractRequest) (*QueryAllOfferContractResponse, error) + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) AcceptOffer(ctx context.Context, req *MsgAcceptOffer) (*MsgAcceptOfferResponse, error) + func (*UnimplementedMsgServer) CreateOffer(ctx context.Context, req *MsgCreateOffer) (*MsgCreateOfferResponse, error) + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) GetAllCharOffers(ctx context.Context, req *QueryGetAllCharOffersRequest) (*QueryGetAllCharOffersResponse, error) + func (*UnimplementedQueryServer) OfferContract(ctx context.Context, req *QueryGetOfferContractRequest) (*QueryGetOfferContractResponse, error) + func (*UnimplementedQueryServer) OfferContractAll(ctx context.Context, req *QueryAllOfferContractRequest) (*QueryAllOfferContractResponse, error)