types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 30 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 = "aviatrix"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const NftClassID = "aviatrix-plane"
View Source
const TypeMsgAdjustPlaneExperience = "msg_adjust_plane_experience"
View Source
const TypeMsgCreatePlane = "create_plane"
View Source
const TypeMsgUpdatePlaneExperience = "msg_update_plane_experience"

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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

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 GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

GenesisState defines the nft module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns x/nft GenesisState given raw application genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MsgAdjustPlaneExperience

type MsgAdjustPlaneExperience struct {
	Supervisor string `protobuf:"bytes,1,opt,name=supervisor,proto3" json:"supervisor,omitempty"`
	Id         string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Amount     int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}

func NewMsgAdjustPlaneExperience

func NewMsgAdjustPlaneExperience(supervisorAddr string, id string, amount int64) *MsgAdjustPlaneExperience

func (*MsgAdjustPlaneExperience) Descriptor

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

func (*MsgAdjustPlaneExperience) GetAmount

func (m *MsgAdjustPlaneExperience) GetAmount() int64

func (*MsgAdjustPlaneExperience) GetId

func (m *MsgAdjustPlaneExperience) GetId() string

func (*MsgAdjustPlaneExperience) GetSignBytes

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

func (*MsgAdjustPlaneExperience) GetSigners

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

func (*MsgAdjustPlaneExperience) GetSupervisor

func (m *MsgAdjustPlaneExperience) GetSupervisor() string

func (*MsgAdjustPlaneExperience) Marshal

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

func (*MsgAdjustPlaneExperience) MarshalTo

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

func (*MsgAdjustPlaneExperience) MarshalToSizedBuffer

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

func (*MsgAdjustPlaneExperience) ProtoMessage

func (*MsgAdjustPlaneExperience) ProtoMessage()

func (*MsgAdjustPlaneExperience) Reset

func (m *MsgAdjustPlaneExperience) Reset()

func (*MsgAdjustPlaneExperience) Route

func (msg *MsgAdjustPlaneExperience) Route() string

func (*MsgAdjustPlaneExperience) Size

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

func (*MsgAdjustPlaneExperience) String

func (m *MsgAdjustPlaneExperience) String() string

func (*MsgAdjustPlaneExperience) Type

func (msg *MsgAdjustPlaneExperience) Type() string

func (*MsgAdjustPlaneExperience) Unmarshal

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

func (*MsgAdjustPlaneExperience) ValidateBasic

func (msg *MsgAdjustPlaneExperience) ValidateBasic() error

func (*MsgAdjustPlaneExperience) XXX_DiscardUnknown

func (m *MsgAdjustPlaneExperience) XXX_DiscardUnknown()

func (*MsgAdjustPlaneExperience) XXX_Marshal

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

func (*MsgAdjustPlaneExperience) XXX_Merge

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

func (*MsgAdjustPlaneExperience) XXX_Size

func (m *MsgAdjustPlaneExperience) XXX_Size() int

func (*MsgAdjustPlaneExperience) XXX_Unmarshal

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

type MsgAdjustPlaneExperienceResponse

type MsgAdjustPlaneExperienceResponse struct {
}

func (*MsgAdjustPlaneExperienceResponse) Descriptor

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

func (*MsgAdjustPlaneExperienceResponse) Marshal

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

func (*MsgAdjustPlaneExperienceResponse) MarshalTo

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

func (*MsgAdjustPlaneExperienceResponse) MarshalToSizedBuffer

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

func (*MsgAdjustPlaneExperienceResponse) ProtoMessage

func (*MsgAdjustPlaneExperienceResponse) ProtoMessage()

func (*MsgAdjustPlaneExperienceResponse) Reset

func (*MsgAdjustPlaneExperienceResponse) Size

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

func (*MsgAdjustPlaneExperienceResponse) String

func (*MsgAdjustPlaneExperienceResponse) Unmarshal

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

func (*MsgAdjustPlaneExperienceResponse) XXX_DiscardUnknown

func (m *MsgAdjustPlaneExperienceResponse) XXX_DiscardUnknown()

func (*MsgAdjustPlaneExperienceResponse) XXX_Marshal

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

func (*MsgAdjustPlaneExperienceResponse) XXX_Merge

func (*MsgAdjustPlaneExperienceResponse) XXX_Size

func (m *MsgAdjustPlaneExperienceResponse) XXX_Size() int

func (*MsgAdjustPlaneExperienceResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreatePlane(ctx context.Context, in *MsgCreatePlane, opts ...grpc.CallOption) (*MsgCreatePlaneResponse, error)
	UpdatePlaneExperience(ctx context.Context, in *MsgUpdatePlaneExperience, opts ...grpc.CallOption) (*MsgUpdatePlaneExperienceResponse, error)
	AdjustPlaneExperience(ctx context.Context, in *MsgAdjustPlaneExperience, opts ...grpc.CallOption) (*MsgAdjustPlaneExperienceResponse, 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 MsgCreatePlane

type MsgCreatePlane struct {
	Id         string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Supervisor string     `protobuf:"bytes,2,opt,name=supervisor,proto3" json:"supervisor,omitempty"`
	Owner      string     `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	Meta       *PlaneMeta `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
}

func NewMsgCreatePlane

func NewMsgCreatePlane(supervisor, id, owner string, experience uint64) *MsgCreatePlane

func (*MsgCreatePlane) Descriptor

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

func (*MsgCreatePlane) GetId

func (m *MsgCreatePlane) GetId() string

func (*MsgCreatePlane) GetMeta

func (m *MsgCreatePlane) GetMeta() *PlaneMeta

func (*MsgCreatePlane) GetOwner

func (m *MsgCreatePlane) GetOwner() string

func (*MsgCreatePlane) GetSignBytes

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

func (*MsgCreatePlane) GetSigners

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

func (*MsgCreatePlane) GetSupervisor

func (m *MsgCreatePlane) GetSupervisor() string

func (*MsgCreatePlane) Marshal

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

func (*MsgCreatePlane) MarshalTo

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

func (*MsgCreatePlane) MarshalToSizedBuffer

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

func (*MsgCreatePlane) ProtoMessage

func (*MsgCreatePlane) ProtoMessage()

func (*MsgCreatePlane) Reset

func (m *MsgCreatePlane) Reset()

func (*MsgCreatePlane) Route

func (msg *MsgCreatePlane) Route() string

func (*MsgCreatePlane) Size

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

func (*MsgCreatePlane) String

func (m *MsgCreatePlane) String() string

func (*MsgCreatePlane) Type

func (msg *MsgCreatePlane) Type() string

func (*MsgCreatePlane) Unmarshal

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

func (*MsgCreatePlane) ValidateBasic

func (msg *MsgCreatePlane) ValidateBasic() error

func (*MsgCreatePlane) XXX_DiscardUnknown

func (m *MsgCreatePlane) XXX_DiscardUnknown()

func (*MsgCreatePlane) XXX_Marshal

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

func (*MsgCreatePlane) XXX_Merge

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

func (*MsgCreatePlane) XXX_Size

func (m *MsgCreatePlane) XXX_Size() int

func (*MsgCreatePlane) XXX_Unmarshal

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

type MsgCreatePlaneResponse

type MsgCreatePlaneResponse struct {
}

func (*MsgCreatePlaneResponse) Descriptor

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

func (*MsgCreatePlaneResponse) Marshal

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

func (*MsgCreatePlaneResponse) MarshalTo

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

func (*MsgCreatePlaneResponse) MarshalToSizedBuffer

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

func (*MsgCreatePlaneResponse) ProtoMessage

func (*MsgCreatePlaneResponse) ProtoMessage()

func (*MsgCreatePlaneResponse) Reset

func (m *MsgCreatePlaneResponse) Reset()

func (*MsgCreatePlaneResponse) Size

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

func (*MsgCreatePlaneResponse) String

func (m *MsgCreatePlaneResponse) String() string

func (*MsgCreatePlaneResponse) Unmarshal

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

func (*MsgCreatePlaneResponse) XXX_DiscardUnknown

func (m *MsgCreatePlaneResponse) XXX_DiscardUnknown()

func (*MsgCreatePlaneResponse) XXX_Marshal

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

func (*MsgCreatePlaneResponse) XXX_Merge

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

func (*MsgCreatePlaneResponse) XXX_Size

func (m *MsgCreatePlaneResponse) XXX_Size() int

func (*MsgCreatePlaneResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdatePlaneExperience

type MsgUpdatePlaneExperience struct {
	Supervisor string `protobuf:"bytes,1,opt,name=supervisor,proto3" json:"supervisor,omitempty"`
	Id         string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Amount     uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
}

func NewMsgUpdatePlaneExperience

func NewMsgUpdatePlaneExperience(supervisorAddr string, id string, amount uint64) *MsgUpdatePlaneExperience

func (*MsgUpdatePlaneExperience) Descriptor

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

func (*MsgUpdatePlaneExperience) GetAmount

func (m *MsgUpdatePlaneExperience) GetAmount() uint64

func (*MsgUpdatePlaneExperience) GetId

func (m *MsgUpdatePlaneExperience) GetId() string

func (*MsgUpdatePlaneExperience) GetSignBytes

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

func (*MsgUpdatePlaneExperience) GetSigners

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

func (*MsgUpdatePlaneExperience) GetSupervisor

func (m *MsgUpdatePlaneExperience) GetSupervisor() string

func (*MsgUpdatePlaneExperience) Marshal

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

func (*MsgUpdatePlaneExperience) MarshalTo

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

func (*MsgUpdatePlaneExperience) MarshalToSizedBuffer

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

func (*MsgUpdatePlaneExperience) ProtoMessage

func (*MsgUpdatePlaneExperience) ProtoMessage()

func (*MsgUpdatePlaneExperience) Reset

func (m *MsgUpdatePlaneExperience) Reset()

func (*MsgUpdatePlaneExperience) Route

func (msg *MsgUpdatePlaneExperience) Route() string

func (*MsgUpdatePlaneExperience) Size

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

func (*MsgUpdatePlaneExperience) String

func (m *MsgUpdatePlaneExperience) String() string

func (*MsgUpdatePlaneExperience) Type

func (msg *MsgUpdatePlaneExperience) Type() string

func (*MsgUpdatePlaneExperience) Unmarshal

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

func (*MsgUpdatePlaneExperience) ValidateBasic

func (msg *MsgUpdatePlaneExperience) ValidateBasic() error

func (*MsgUpdatePlaneExperience) XXX_DiscardUnknown

func (m *MsgUpdatePlaneExperience) XXX_DiscardUnknown()

func (*MsgUpdatePlaneExperience) XXX_Marshal

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

func (*MsgUpdatePlaneExperience) XXX_Merge

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

func (*MsgUpdatePlaneExperience) XXX_Size

func (m *MsgUpdatePlaneExperience) XXX_Size() int

func (*MsgUpdatePlaneExperience) XXX_Unmarshal

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

type MsgUpdatePlaneExperienceResponse

type MsgUpdatePlaneExperienceResponse struct {
}

func (*MsgUpdatePlaneExperienceResponse) Descriptor

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

func (*MsgUpdatePlaneExperienceResponse) Marshal

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

func (*MsgUpdatePlaneExperienceResponse) MarshalTo

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

func (*MsgUpdatePlaneExperienceResponse) MarshalToSizedBuffer

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

func (*MsgUpdatePlaneExperienceResponse) ProtoMessage

func (*MsgUpdatePlaneExperienceResponse) ProtoMessage()

func (*MsgUpdatePlaneExperienceResponse) Reset

func (*MsgUpdatePlaneExperienceResponse) Size

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

func (*MsgUpdatePlaneExperienceResponse) String

func (*MsgUpdatePlaneExperienceResponse) Unmarshal

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

func (*MsgUpdatePlaneExperienceResponse) XXX_DiscardUnknown

func (m *MsgUpdatePlaneExperienceResponse) XXX_DiscardUnknown()

func (*MsgUpdatePlaneExperienceResponse) XXX_Marshal

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

func (*MsgUpdatePlaneExperienceResponse) XXX_Merge

func (*MsgUpdatePlaneExperienceResponse) XXX_Size

func (m *MsgUpdatePlaneExperienceResponse) XXX_Size() int

func (*MsgUpdatePlaneExperienceResponse) XXX_Unmarshal

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

type NftKeeper

type NftKeeper interface {
	HasClass(ctx sdk.Context, classID string) bool
	SaveClass(ctx sdk.Context, class nft.Class) error

	GetNFT(ctx sdk.Context, classID, nftID string) (nft.NFT, bool)
	Mint(ctx sdk.Context, token nft.NFT, receiver sdk.AccAddress) error
	Update(ctx sdk.Context, token nft.NFT) error

	GetOwner(ctx sdk.Context, classID string, nftID string) sdk.AccAddress

	Send(goCtx context.Context, msg *nft.MsgSend) (*nft.MsgSendResponse, error)
}

NftKeeper defines the expected interface needed to store nft.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type Plane

type Plane struct {
	Id    string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Owner string     `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Meta  *PlaneMeta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"`
}

func (*Plane) Descriptor

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

func (*Plane) GetId

func (m *Plane) GetId() string

func (*Plane) GetMeta

func (m *Plane) GetMeta() *PlaneMeta

func (*Plane) GetOwner

func (m *Plane) GetOwner() string

func (*Plane) Marshal

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

func (*Plane) MarshalTo

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

func (*Plane) MarshalToSizedBuffer

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

func (*Plane) ProtoMessage

func (*Plane) ProtoMessage()

func (*Plane) Reset

func (m *Plane) Reset()

func (*Plane) Size

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

func (*Plane) String

func (m *Plane) String() string

func (*Plane) Unmarshal

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

func (*Plane) XXX_DiscardUnknown

func (m *Plane) XXX_DiscardUnknown()

func (*Plane) XXX_Marshal

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

func (*Plane) XXX_Merge

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

func (*Plane) XXX_Size

func (m *Plane) XXX_Size() int

func (*Plane) XXX_Unmarshal

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

type PlaneMeta

type PlaneMeta struct {
	Experience uint64 `protobuf:"varint,3,opt,name=experience,proto3" json:"experience,omitempty"`
}

func (*PlaneMeta) Descriptor

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

func (*PlaneMeta) GetExperience

func (m *PlaneMeta) GetExperience() uint64

func (*PlaneMeta) Marshal

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

func (*PlaneMeta) MarshalTo

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

func (*PlaneMeta) MarshalToSizedBuffer

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

func (*PlaneMeta) ProtoMessage

func (*PlaneMeta) ProtoMessage()

func (*PlaneMeta) Reset

func (m *PlaneMeta) Reset()

func (*PlaneMeta) Size

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

func (*PlaneMeta) String

func (m *PlaneMeta) String() string

func (*PlaneMeta) Unmarshal

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

func (*PlaneMeta) ValidateBasic

func (msg *PlaneMeta) ValidateBasic() error

func (*PlaneMeta) XXX_DiscardUnknown

func (m *PlaneMeta) XXX_DiscardUnknown()

func (*PlaneMeta) XXX_Marshal

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

func (*PlaneMeta) XXX_Merge

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

func (*PlaneMeta) XXX_Size

func (m *PlaneMeta) XXX_Size() int

func (*PlaneMeta) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type ScorumKeeper

type ScorumKeeper interface {
	IsSupervisor(ctx sdk.Context, addr string) bool
}

ScorumKeeper defines the expected interface needed to verify supervisors.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AdjustPlaneExperience

func (*UnimplementedMsgServer) CreatePlane

func (*UnimplementedMsgServer) UpdatePlaneExperience

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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