Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetKeyPrefixProject(projectId uint64) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func ParseStringFromAllocationLimitArray(allocationLimit []*AllocationLimit) string
- 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 AccountKeeper
- type AllocationLimit
- func (*AllocationLimit) Descriptor() ([]byte, []int)
- func (m *AllocationLimit) GetDenom() string
- func (m *AllocationLimit) GetLowerLimit() types.Coin
- func (m *AllocationLimit) GetUpperLimit() types.Coin
- func (m *AllocationLimit) Marshal() (dAtA []byte, err error)
- func (m *AllocationLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *AllocationLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllocationLimit) ProtoMessage()
- func (m *AllocationLimit) Reset()
- func (m *AllocationLimit) Size() (n int)
- func (m *AllocationLimit) String() string
- func (m *AllocationLimit) Unmarshal(dAtA []byte) error
- func (m *AllocationLimit) XXX_DiscardUnknown()
- func (m *AllocationLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllocationLimit) XXX_Merge(src proto.Message)
- func (m *AllocationLimit) XXX_Size() int
- func (m *AllocationLimit) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)
- func (m *Entry) GetCommitAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Entry) GetParticipant() string
- func (m *Entry) Marshal() (dAtA []byte, err error)
- func (m *Entry) MarshalTo(dAtA []byte) (int, error)
- func (m *Entry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Entry) ProtoMessage()
- func (m *Entry) Reset()
- func (m *Entry) Size() (n int)
- func (m *Entry) String() string
- func (m *Entry) Unmarshal(dAtA []byte) error
- func (m *Entry) XXX_DiscardUnknown()
- func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Entry) XXX_Merge(src proto.Message)
- func (m *Entry) XXX_Size() int
- func (m *Entry) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- 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 (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() 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 IDO
- func (*IDO) Descriptor() ([]byte, []int)
- func (ido IDO) GetId() uint64
- func (ido IDO) GetReleaseMechanismStatus() uint64
- func (ido IDO) GetTokens() sdk.Coins
- func (ido IDO) GetType() string
- func (m *IDO) Marshal() (dAtA []byte, err error)
- func (m *IDO) MarshalTo(dAtA []byte) (int, error)
- func (m *IDO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IDO) ProtoMessage()
- func (m *IDO) Reset()
- func (m *IDO) Size() (n int)
- func (ido *IDO) String() string
- func (m *IDO) Unmarshal(dAtA []byte) error
- func (m *IDO) XXX_DiscardUnknown()
- func (m *IDO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IDO) XXX_Merge(src proto.Message)
- func (m *IDO) XXX_Size() int
- func (m *IDO) XXX_Unmarshal(b []byte) error
- type IDORequest
- func (*IDORequest) Descriptor() ([]byte, []int)
- func (m *IDORequest) GetProjectId() uint64
- func (m *IDORequest) Marshal() (dAtA []byte, err error)
- func (m *IDORequest) MarshalTo(dAtA []byte) (int, error)
- func (m *IDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IDORequest) ProtoMessage()
- func (m *IDORequest) Reset()
- func (m *IDORequest) Size() (n int)
- func (m *IDORequest) String() string
- func (m *IDORequest) Unmarshal(dAtA []byte) error
- func (m *IDORequest) XXX_DiscardUnknown()
- func (m *IDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IDORequest) XXX_Merge(src proto.Message)
- func (m *IDORequest) XXX_Size() int
- func (m *IDORequest) XXX_Unmarshal(b []byte) error
- type IDOResponse
- func (*IDOResponse) Descriptor() ([]byte, []int)
- func (m *IDOResponse) GetIdo() *IDO
- func (m *IDOResponse) Marshal() (dAtA []byte, err error)
- func (m *IDOResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *IDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IDOResponse) ProtoMessage()
- func (m *IDOResponse) Reset()
- func (m *IDOResponse) Size() (n int)
- func (m *IDOResponse) String() string
- func (m *IDOResponse) Unmarshal(dAtA []byte) error
- func (m *IDOResponse) XXX_DiscardUnknown()
- func (m *IDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IDOResponse) XXX_Merge(src proto.Message)
- func (m *IDOResponse) XXX_Size() int
- func (m *IDOResponse) XXX_Unmarshal(b []byte) error
- type LaunchpadKeeper
- type MsgClient
- type MsgCommitParticipationRequest
- func (*MsgCommitParticipationRequest) Descriptor() ([]byte, []int)
- func (m *MsgCommitParticipationRequest) GetParticipant() string
- func (m *MsgCommitParticipationRequest) GetProjectId() uint64
- func (msg *MsgCommitParticipationRequest) GetSignBytes() []byte
- func (msg *MsgCommitParticipationRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCommitParticipationRequest) GetTokenCommit() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCommitParticipationRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCommitParticipationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCommitParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCommitParticipationRequest) ProtoMessage()
- func (m *MsgCommitParticipationRequest) Reset()
- func (msg *MsgCommitParticipationRequest) Route() string
- func (m *MsgCommitParticipationRequest) Size() (n int)
- func (m *MsgCommitParticipationRequest) String() string
- func (msg *MsgCommitParticipationRequest) Type() string
- func (m *MsgCommitParticipationRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgCommitParticipationRequest) ValidateBasic() error
- func (m *MsgCommitParticipationRequest) XXX_DiscardUnknown()
- func (m *MsgCommitParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCommitParticipationRequest) XXX_Merge(src proto.Message)
- func (m *MsgCommitParticipationRequest) XXX_Size() int
- func (m *MsgCommitParticipationRequest) XXX_Unmarshal(b []byte) error
- type MsgCommitParticipationResponse
- func (*MsgCommitParticipationResponse) Descriptor() ([]byte, []int)
- func (m *MsgCommitParticipationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCommitParticipationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCommitParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCommitParticipationResponse) ProtoMessage()
- func (m *MsgCommitParticipationResponse) Reset()
- func (m *MsgCommitParticipationResponse) Size() (n int)
- func (m *MsgCommitParticipationResponse) String() string
- func (m *MsgCommitParticipationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCommitParticipationResponse) XXX_DiscardUnknown()
- func (m *MsgCommitParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCommitParticipationResponse) XXX_Merge(src proto.Message)
- func (m *MsgCommitParticipationResponse) XXX_Size() int
- func (m *MsgCommitParticipationResponse) XXX_Unmarshal(b []byte) error
- type MsgEnableIDORequest
- func (*MsgEnableIDORequest) Descriptor() ([]byte, []int)
- func (m *MsgEnableIDORequest) GetAllocationLimit() []AllocationLimit
- func (m *MsgEnableIDORequest) GetOwner() string
- func (m *MsgEnableIDORequest) GetProjectId() uint64
- func (msg *MsgEnableIDORequest) GetSignBytes() []byte
- func (msg *MsgEnableIDORequest) GetSigners() []sdk.AccAddress
- func (m *MsgEnableIDORequest) GetStartTime() time.Time
- func (m *MsgEnableIDORequest) GetTokenForDistribution() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgEnableIDORequest) GetTokenListingPrice() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgEnableIDORequest) Marshal() (dAtA []byte, err error)
- func (m *MsgEnableIDORequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEnableIDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEnableIDORequest) ProtoMessage()
- func (m *MsgEnableIDORequest) Reset()
- func (msg *MsgEnableIDORequest) Route() string
- func (m *MsgEnableIDORequest) Size() (n int)
- func (m *MsgEnableIDORequest) String() string
- func (msg *MsgEnableIDORequest) Type() string
- func (m *MsgEnableIDORequest) Unmarshal(dAtA []byte) error
- func (msg *MsgEnableIDORequest) ValidateBasic() error
- func (m *MsgEnableIDORequest) XXX_DiscardUnknown()
- func (m *MsgEnableIDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEnableIDORequest) XXX_Merge(src proto.Message)
- func (m *MsgEnableIDORequest) XXX_Size() int
- func (m *MsgEnableIDORequest) XXX_Unmarshal(b []byte) error
- type MsgEnableIDOResponse
- func (*MsgEnableIDOResponse) Descriptor() ([]byte, []int)
- func (m *MsgEnableIDOResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEnableIDOResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEnableIDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEnableIDOResponse) ProtoMessage()
- func (m *MsgEnableIDOResponse) Reset()
- func (m *MsgEnableIDOResponse) Size() (n int)
- func (m *MsgEnableIDOResponse) String() string
- func (m *MsgEnableIDOResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEnableIDOResponse) XXX_DiscardUnknown()
- func (m *MsgEnableIDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEnableIDOResponse) XXX_Merge(src proto.Message)
- func (m *MsgEnableIDOResponse) XXX_Size() int
- func (m *MsgEnableIDOResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type TotalIDORequest
- func (*TotalIDORequest) Descriptor() ([]byte, []int)
- func (m *TotalIDORequest) GetPagination() *query.PageRequest
- func (m *TotalIDORequest) Marshal() (dAtA []byte, err error)
- func (m *TotalIDORequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TotalIDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TotalIDORequest) ProtoMessage()
- func (m *TotalIDORequest) Reset()
- func (m *TotalIDORequest) Size() (n int)
- func (m *TotalIDORequest) String() string
- func (m *TotalIDORequest) Unmarshal(dAtA []byte) error
- func (m *TotalIDORequest) XXX_DiscardUnknown()
- func (m *TotalIDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TotalIDORequest) XXX_Merge(src proto.Message)
- func (m *TotalIDORequest) XXX_Size() int
- func (m *TotalIDORequest) XXX_Unmarshal(b []byte) error
- type TotalIDOResponse
- func (*TotalIDOResponse) Descriptor() ([]byte, []int)
- func (m *TotalIDOResponse) GetIdos() []IDO
- func (m *TotalIDOResponse) GetPagination() *query.PageResponse
- func (m *TotalIDOResponse) Marshal() (dAtA []byte, err error)
- func (m *TotalIDOResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TotalIDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TotalIDOResponse) ProtoMessage()
- func (m *TotalIDOResponse) Reset()
- func (m *TotalIDOResponse) Size() (n int)
- func (m *TotalIDOResponse) String() string
- func (m *TotalIDOResponse) Unmarshal(dAtA []byte) error
- func (m *TotalIDOResponse) XXX_DiscardUnknown()
- func (m *TotalIDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TotalIDOResponse) XXX_Merge(src proto.Message)
- func (m *TotalIDOResponse) XXX_Size() int
- func (m *TotalIDOResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) IDO(ctx context.Context, req *IDORequest) (*IDOResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalIDO(ctx context.Context, req *TotalIDORequest) (*TotalIDOResponse, error)
Constants ¶
const ( TypeIDOEnabled = "ido_enabled" TypeDistributionTokenAdded = "commit_participation" AttributeValueCategory = ModuleName AttributeProjectID = "project_id" AttributeProjectAddress = "project_address" AttributeParticipantAddress = "participant_address" )
const ( // ModuleName defines the module name ModuleName = "ido" // 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_ido" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
TypeMsgCommitParticipationRequest = "commit_participation"
)
msg types
const (
TypeMsgEnableIDORequest = "enable_ido"
)
msg types
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error") ErrNotImplemented = sdkerrors.Register(ModuleName, 60, "function not implemented") ErrNotEnoughFunds = sdkerrors.Register(ModuleName, 1, "address doesn't have enough funds") ErrNoSupportedDenoms = sdkerrors.Register(ModuleName, 3, "denom is not supported as payment denom") ErrNotEnoughIDOTokens = sdkerrors.Register(ModuleName, 4, "there is not enough token in ido for purchase") ErrOutOfBoundPurchase = sdkerrors.Register(ModuleName, 5, "you are purchasing amount not within limit") ErrStartTimeSmallerThanNow = sdkerrors.Register(ModuleName, 6, "start time must greater than now") ErrProjectOwnerNotAllowedToCommit = sdkerrors.Register(ModuleName, 7, "project owner is not allowed to participate in their own project") ErrIDOIsNotActive = sdkerrors.Register(ModuleName, 8, "cannot commit because IDO is not active") ErrIDOAlreadyExist = sdkerrors.Register(ModuleName, 9, "cannot enable ido of the same ID") )
x/ido module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthIdo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIdo = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIdo = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
KeyPrefixIDO = []byte{0x02}
)
Functions ¶
func GetKeyPrefixProject ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func ParseStringFromAllocationLimitArray ¶
func ParseStringFromAllocationLimitArray(allocationLimit []*AllocationLimit) string
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AllocationLimit ¶
type AllocationLimit struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"` LowerLimit types.Coin `` /* 153-byte string literal not displayed */ UpperLimit types.Coin `` /* 153-byte string literal not displayed */ }
func NewAllocationLimit ¶
func NewAllocationLimit(denom string, lowerLimit, upperLimit sdk.Coin) AllocationLimit
func NewAllocationLimitArray ¶
func NewAllocationLimitArray(allocationLimit ...AllocationLimit) []AllocationLimit
func ParseAllocationLimitArrayFromString ¶
func ParseAllocationLimitArrayFromString(allocationLimitStr string) ([]AllocationLimit, error)
string format here would be like: 10000000uusdt-100000000uusdt,10000000uusdt-100000000uusdt
func (*AllocationLimit) Descriptor ¶
func (*AllocationLimit) Descriptor() ([]byte, []int)
func (*AllocationLimit) GetDenom ¶
func (m *AllocationLimit) GetDenom() string
func (*AllocationLimit) GetLowerLimit ¶
func (m *AllocationLimit) GetLowerLimit() types.Coin
func (*AllocationLimit) GetUpperLimit ¶
func (m *AllocationLimit) GetUpperLimit() types.Coin
func (*AllocationLimit) Marshal ¶
func (m *AllocationLimit) Marshal() (dAtA []byte, err error)
func (*AllocationLimit) MarshalToSizedBuffer ¶
func (m *AllocationLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllocationLimit) ProtoMessage ¶
func (*AllocationLimit) ProtoMessage()
func (*AllocationLimit) Reset ¶
func (m *AllocationLimit) Reset()
func (*AllocationLimit) Size ¶
func (m *AllocationLimit) Size() (n int)
func (*AllocationLimit) String ¶
func (m *AllocationLimit) String() string
func (*AllocationLimit) Unmarshal ¶
func (m *AllocationLimit) Unmarshal(dAtA []byte) error
func (*AllocationLimit) XXX_DiscardUnknown ¶
func (m *AllocationLimit) XXX_DiscardUnknown()
func (*AllocationLimit) XXX_Marshal ¶
func (m *AllocationLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllocationLimit) XXX_Merge ¶
func (m *AllocationLimit) XXX_Merge(src proto.Message)
func (*AllocationLimit) XXX_Size ¶
func (m *AllocationLimit) XXX_Size() int
func (*AllocationLimit) XXX_Unmarshal ¶
func (m *AllocationLimit) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool }
BankKeeper defines the expected interface needed to retrieve account balances.
type Entry ¶
type Entry struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty" yaml:"participant"` CommitAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */ }
func (*Entry) Descriptor ¶
func (*Entry) GetCommitAmount ¶
func (m *Entry) GetCommitAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Entry) GetParticipant ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) XXX_DiscardUnknown ¶
func (m *Entry) XXX_DiscardUnknown()
func (*Entry) XXX_Marshal ¶
func (*Entry) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the ido 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) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 IDO ¶
type IDO struct { // Project unique id of each project ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" yaml:"project_id"` TokenForDistribution github_com_cosmos_cosmos_sdk_types.Coins `` /* 197-byte string literal not displayed */ TotalDistributedAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 205-byte string literal not displayed */ TokenListingPrice github_com_cosmos_cosmos_sdk_types.Coins `` /* 185-byte string literal not displayed */ IdoStatus uint64 `protobuf:"varint,5,opt,name=ido_status,json=idoStatus,proto3" json:"ido_status,omitempty" yaml:"ido_status"` AllocationLimit []AllocationLimit `protobuf:"bytes,6,rep,name=allocation_limit,json=allocationLimit,proto3" json:"allocation_limit" yaml:"allocation_limit"` // Begin time for this ido StartTime time.Time `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` // Record entry of participant Entries map[string]Entry `` /* 160-byte string literal not displayed */ }
func (*IDO) Descriptor ¶
func (IDO) GetReleaseMechanismStatus ¶
func (*IDO) ProtoMessage ¶
func (*IDO) ProtoMessage()
func (*IDO) XXX_DiscardUnknown ¶
func (m *IDO) XXX_DiscardUnknown()
func (*IDO) XXX_Unmarshal ¶
type IDORequest ¶
type IDORequest struct { // Project unique id of each project ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" yaml:"project_id"` }
====== IDO
func (*IDORequest) Descriptor ¶
func (*IDORequest) Descriptor() ([]byte, []int)
func (*IDORequest) GetProjectId ¶
func (m *IDORequest) GetProjectId() uint64
func (*IDORequest) Marshal ¶
func (m *IDORequest) Marshal() (dAtA []byte, err error)
func (*IDORequest) MarshalToSizedBuffer ¶
func (m *IDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IDORequest) ProtoMessage ¶
func (*IDORequest) ProtoMessage()
func (*IDORequest) Reset ¶
func (m *IDORequest) Reset()
func (*IDORequest) Size ¶
func (m *IDORequest) Size() (n int)
func (*IDORequest) String ¶
func (m *IDORequest) String() string
func (*IDORequest) Unmarshal ¶
func (m *IDORequest) Unmarshal(dAtA []byte) error
func (*IDORequest) XXX_DiscardUnknown ¶
func (m *IDORequest) XXX_DiscardUnknown()
func (*IDORequest) XXX_Marshal ¶
func (m *IDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IDORequest) XXX_Merge ¶
func (m *IDORequest) XXX_Merge(src proto.Message)
func (*IDORequest) XXX_Size ¶
func (m *IDORequest) XXX_Size() int
func (*IDORequest) XXX_Unmarshal ¶
func (m *IDORequest) XXX_Unmarshal(b []byte) error
type IDOResponse ¶
type IDOResponse struct {
Ido *IDO `protobuf:"bytes,1,opt,name=ido,proto3" json:"ido,omitempty" yaml:"ido"`
}
func (*IDOResponse) Descriptor ¶
func (*IDOResponse) Descriptor() ([]byte, []int)
func (*IDOResponse) GetIdo ¶
func (m *IDOResponse) GetIdo() *IDO
func (*IDOResponse) Marshal ¶
func (m *IDOResponse) Marshal() (dAtA []byte, err error)
func (*IDOResponse) MarshalToSizedBuffer ¶
func (m *IDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IDOResponse) ProtoMessage ¶
func (*IDOResponse) ProtoMessage()
func (*IDOResponse) Reset ¶
func (m *IDOResponse) Reset()
func (*IDOResponse) Size ¶
func (m *IDOResponse) Size() (n int)
func (*IDOResponse) String ¶
func (m *IDOResponse) String() string
func (*IDOResponse) Unmarshal ¶
func (m *IDOResponse) Unmarshal(dAtA []byte) error
func (*IDOResponse) XXX_DiscardUnknown ¶
func (m *IDOResponse) XXX_DiscardUnknown()
func (*IDOResponse) XXX_Marshal ¶
func (m *IDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IDOResponse) XXX_Merge ¶
func (m *IDOResponse) XXX_Merge(src proto.Message)
func (*IDOResponse) XXX_Size ¶
func (m *IDOResponse) XXX_Size() int
func (*IDOResponse) XXX_Unmarshal ¶
func (m *IDOResponse) XXX_Unmarshal(b []byte) error
type LaunchpadKeeper ¶
type LaunchpadKeeper interface { GetProjectById(ctx sdk.Context, projectID uint64) (launchpadtypes.Project, error) RegisterReleaseMechanismToProject(ctx sdk.Context, projectId uint64, rm launchpadtypes.ReleaseMechanismI) error SetProjectActive(ctx sdk.Context, projectId uint64) error SetProjectEndable(ctx sdk.Context, projectId uint64) error }
type MsgClient ¶
type MsgClient interface { EnableIDO(ctx context.Context, in *MsgEnableIDORequest, opts ...grpc.CallOption) (*MsgEnableIDOResponse, error) CommitParticipation(ctx context.Context, in *MsgCommitParticipationRequest, opts ...grpc.CallOption) (*MsgCommitParticipationResponse, 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 MsgCommitParticipationRequest ¶
type MsgCommitParticipationRequest struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty" yaml:"participant"` TokenCommit github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ ProjectId uint64 `protobuf:"varint,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" yaml:"project_id"` }
func NewMsgCommitParticipationRequest ¶
func NewMsgCommitParticipationRequest(participant string, projectId uint64, tokenCommit sdk.Coins) *MsgCommitParticipationRequest
func (*MsgCommitParticipationRequest) Descriptor ¶
func (*MsgCommitParticipationRequest) Descriptor() ([]byte, []int)
func (*MsgCommitParticipationRequest) GetParticipant ¶
func (m *MsgCommitParticipationRequest) GetParticipant() string
func (*MsgCommitParticipationRequest) GetProjectId ¶
func (m *MsgCommitParticipationRequest) GetProjectId() uint64
func (*MsgCommitParticipationRequest) GetSignBytes ¶
func (msg *MsgCommitParticipationRequest) GetSignBytes() []byte
func (*MsgCommitParticipationRequest) GetSigners ¶
func (msg *MsgCommitParticipationRequest) GetSigners() []sdk.AccAddress
func (*MsgCommitParticipationRequest) GetTokenCommit ¶
func (m *MsgCommitParticipationRequest) GetTokenCommit() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCommitParticipationRequest) Marshal ¶
func (m *MsgCommitParticipationRequest) Marshal() (dAtA []byte, err error)
func (*MsgCommitParticipationRequest) MarshalTo ¶
func (m *MsgCommitParticipationRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgCommitParticipationRequest) MarshalToSizedBuffer ¶
func (m *MsgCommitParticipationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCommitParticipationRequest) ProtoMessage ¶
func (*MsgCommitParticipationRequest) ProtoMessage()
func (*MsgCommitParticipationRequest) Reset ¶
func (m *MsgCommitParticipationRequest) Reset()
func (*MsgCommitParticipationRequest) Route ¶
func (msg *MsgCommitParticipationRequest) Route() string
func (*MsgCommitParticipationRequest) Size ¶
func (m *MsgCommitParticipationRequest) Size() (n int)
func (*MsgCommitParticipationRequest) String ¶
func (m *MsgCommitParticipationRequest) String() string
func (*MsgCommitParticipationRequest) Type ¶
func (msg *MsgCommitParticipationRequest) Type() string
func (*MsgCommitParticipationRequest) Unmarshal ¶
func (m *MsgCommitParticipationRequest) Unmarshal(dAtA []byte) error
func (*MsgCommitParticipationRequest) ValidateBasic ¶
func (msg *MsgCommitParticipationRequest) ValidateBasic() error
func (*MsgCommitParticipationRequest) XXX_DiscardUnknown ¶
func (m *MsgCommitParticipationRequest) XXX_DiscardUnknown()
func (*MsgCommitParticipationRequest) XXX_Marshal ¶
func (m *MsgCommitParticipationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCommitParticipationRequest) XXX_Merge ¶
func (m *MsgCommitParticipationRequest) XXX_Merge(src proto.Message)
func (*MsgCommitParticipationRequest) XXX_Size ¶
func (m *MsgCommitParticipationRequest) XXX_Size() int
func (*MsgCommitParticipationRequest) XXX_Unmarshal ¶
func (m *MsgCommitParticipationRequest) XXX_Unmarshal(b []byte) error
type MsgCommitParticipationResponse ¶
type MsgCommitParticipationResponse struct { }
func (*MsgCommitParticipationResponse) Descriptor ¶
func (*MsgCommitParticipationResponse) Descriptor() ([]byte, []int)
func (*MsgCommitParticipationResponse) Marshal ¶
func (m *MsgCommitParticipationResponse) Marshal() (dAtA []byte, err error)
func (*MsgCommitParticipationResponse) MarshalTo ¶
func (m *MsgCommitParticipationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCommitParticipationResponse) MarshalToSizedBuffer ¶
func (m *MsgCommitParticipationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCommitParticipationResponse) ProtoMessage ¶
func (*MsgCommitParticipationResponse) ProtoMessage()
func (*MsgCommitParticipationResponse) Reset ¶
func (m *MsgCommitParticipationResponse) Reset()
func (*MsgCommitParticipationResponse) Size ¶
func (m *MsgCommitParticipationResponse) Size() (n int)
func (*MsgCommitParticipationResponse) String ¶
func (m *MsgCommitParticipationResponse) String() string
func (*MsgCommitParticipationResponse) Unmarshal ¶
func (m *MsgCommitParticipationResponse) Unmarshal(dAtA []byte) error
func (*MsgCommitParticipationResponse) XXX_DiscardUnknown ¶
func (m *MsgCommitParticipationResponse) XXX_DiscardUnknown()
func (*MsgCommitParticipationResponse) XXX_Marshal ¶
func (m *MsgCommitParticipationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCommitParticipationResponse) XXX_Merge ¶
func (m *MsgCommitParticipationResponse) XXX_Merge(src proto.Message)
func (*MsgCommitParticipationResponse) XXX_Size ¶
func (m *MsgCommitParticipationResponse) XXX_Size() int
func (*MsgCommitParticipationResponse) XXX_Unmarshal ¶
func (m *MsgCommitParticipationResponse) XXX_Unmarshal(b []byte) error
type MsgEnableIDORequest ¶
type MsgEnableIDORequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // Project unique id of each project ProjectId uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty" yaml:"project_id"` TokenForDistribution github_com_cosmos_cosmos_sdk_types.Coins `` /* 197-byte string literal not displayed */ TokenListingPrice github_com_cosmos_cosmos_sdk_types.Coins `` /* 185-byte string literal not displayed */ AllocationLimit []AllocationLimit `protobuf:"bytes,5,rep,name=allocation_limit,json=allocationLimit,proto3" json:"allocation_limit" yaml:"allocation_limit"` // Begin time for this ido StartTime time.Time `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` }
====== MessageEnableIDO
func NewMsgEnableIDORequest ¶
func NewMsgEnableIDORequest(owner string, projectId uint64, tokenForDistribution sdk.Coins, tokenListingPrice sdk.Coins, allocationLimit []AllocationLimit, startTime time.Time) *MsgEnableIDORequest
func (*MsgEnableIDORequest) Descriptor ¶
func (*MsgEnableIDORequest) Descriptor() ([]byte, []int)
func (*MsgEnableIDORequest) GetAllocationLimit ¶
func (m *MsgEnableIDORequest) GetAllocationLimit() []AllocationLimit
func (*MsgEnableIDORequest) GetOwner ¶
func (m *MsgEnableIDORequest) GetOwner() string
func (*MsgEnableIDORequest) GetProjectId ¶
func (m *MsgEnableIDORequest) GetProjectId() uint64
func (*MsgEnableIDORequest) GetSignBytes ¶
func (msg *MsgEnableIDORequest) GetSignBytes() []byte
func (*MsgEnableIDORequest) GetSigners ¶
func (msg *MsgEnableIDORequest) GetSigners() []sdk.AccAddress
func (*MsgEnableIDORequest) GetStartTime ¶
func (m *MsgEnableIDORequest) GetStartTime() time.Time
func (*MsgEnableIDORequest) GetTokenForDistribution ¶
func (m *MsgEnableIDORequest) GetTokenForDistribution() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgEnableIDORequest) GetTokenListingPrice ¶
func (m *MsgEnableIDORequest) GetTokenListingPrice() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgEnableIDORequest) Marshal ¶
func (m *MsgEnableIDORequest) Marshal() (dAtA []byte, err error)
func (*MsgEnableIDORequest) MarshalTo ¶
func (m *MsgEnableIDORequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgEnableIDORequest) MarshalToSizedBuffer ¶
func (m *MsgEnableIDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEnableIDORequest) ProtoMessage ¶
func (*MsgEnableIDORequest) ProtoMessage()
func (*MsgEnableIDORequest) Reset ¶
func (m *MsgEnableIDORequest) Reset()
func (*MsgEnableIDORequest) Route ¶
func (msg *MsgEnableIDORequest) Route() string
func (*MsgEnableIDORequest) Size ¶
func (m *MsgEnableIDORequest) Size() (n int)
func (*MsgEnableIDORequest) String ¶
func (m *MsgEnableIDORequest) String() string
func (*MsgEnableIDORequest) Type ¶
func (msg *MsgEnableIDORequest) Type() string
func (*MsgEnableIDORequest) Unmarshal ¶
func (m *MsgEnableIDORequest) Unmarshal(dAtA []byte) error
func (*MsgEnableIDORequest) ValidateBasic ¶
func (msg *MsgEnableIDORequest) ValidateBasic() error
func (*MsgEnableIDORequest) XXX_DiscardUnknown ¶
func (m *MsgEnableIDORequest) XXX_DiscardUnknown()
func (*MsgEnableIDORequest) XXX_Marshal ¶
func (m *MsgEnableIDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEnableIDORequest) XXX_Merge ¶
func (m *MsgEnableIDORequest) XXX_Merge(src proto.Message)
func (*MsgEnableIDORequest) XXX_Size ¶
func (m *MsgEnableIDORequest) XXX_Size() int
func (*MsgEnableIDORequest) XXX_Unmarshal ¶
func (m *MsgEnableIDORequest) XXX_Unmarshal(b []byte) error
type MsgEnableIDOResponse ¶
type MsgEnableIDOResponse struct { }
func (*MsgEnableIDOResponse) Descriptor ¶
func (*MsgEnableIDOResponse) Descriptor() ([]byte, []int)
func (*MsgEnableIDOResponse) Marshal ¶
func (m *MsgEnableIDOResponse) Marshal() (dAtA []byte, err error)
func (*MsgEnableIDOResponse) MarshalTo ¶
func (m *MsgEnableIDOResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEnableIDOResponse) MarshalToSizedBuffer ¶
func (m *MsgEnableIDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEnableIDOResponse) ProtoMessage ¶
func (*MsgEnableIDOResponse) ProtoMessage()
func (*MsgEnableIDOResponse) Reset ¶
func (m *MsgEnableIDOResponse) Reset()
func (*MsgEnableIDOResponse) Size ¶
func (m *MsgEnableIDOResponse) Size() (n int)
func (*MsgEnableIDOResponse) String ¶
func (m *MsgEnableIDOResponse) String() string
func (*MsgEnableIDOResponse) Unmarshal ¶
func (m *MsgEnableIDOResponse) Unmarshal(dAtA []byte) error
func (*MsgEnableIDOResponse) XXX_DiscardUnknown ¶
func (m *MsgEnableIDOResponse) XXX_DiscardUnknown()
func (*MsgEnableIDOResponse) XXX_Marshal ¶
func (m *MsgEnableIDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEnableIDOResponse) XXX_Merge ¶
func (m *MsgEnableIDOResponse) XXX_Merge(src proto.Message)
func (*MsgEnableIDOResponse) XXX_Size ¶
func (m *MsgEnableIDOResponse) XXX_Size() int
func (*MsgEnableIDOResponse) XXX_Unmarshal ¶
func (m *MsgEnableIDOResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { EnableIDO(context.Context, *MsgEnableIDORequest) (*MsgEnableIDOResponse, error) CommitParticipation(context.Context, *MsgCommitParticipationRequest) (*MsgCommitParticipationResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) IDO(ctx context.Context, in *IDORequest, opts ...grpc.CallOption) (*IDOResponse, error) TotalIDO(ctx context.Context, in *TotalIDORequest, opts ...grpc.CallOption) (*TotalIDOResponse, 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) IDO(context.Context, *IDORequest) (*IDOResponse, error) TotalIDO(context.Context, *TotalIDORequest) (*TotalIDOResponse, error) }
QueryServer is the server API for Query service.
type TotalIDORequest ¶
type TotalIDORequest struct {
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
====== Total IDO
func (*TotalIDORequest) Descriptor ¶
func (*TotalIDORequest) Descriptor() ([]byte, []int)
func (*TotalIDORequest) GetPagination ¶
func (m *TotalIDORequest) GetPagination() *query.PageRequest
func (*TotalIDORequest) Marshal ¶
func (m *TotalIDORequest) Marshal() (dAtA []byte, err error)
func (*TotalIDORequest) MarshalToSizedBuffer ¶
func (m *TotalIDORequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TotalIDORequest) ProtoMessage ¶
func (*TotalIDORequest) ProtoMessage()
func (*TotalIDORequest) Reset ¶
func (m *TotalIDORequest) Reset()
func (*TotalIDORequest) Size ¶
func (m *TotalIDORequest) Size() (n int)
func (*TotalIDORequest) String ¶
func (m *TotalIDORequest) String() string
func (*TotalIDORequest) Unmarshal ¶
func (m *TotalIDORequest) Unmarshal(dAtA []byte) error
func (*TotalIDORequest) XXX_DiscardUnknown ¶
func (m *TotalIDORequest) XXX_DiscardUnknown()
func (*TotalIDORequest) XXX_Marshal ¶
func (m *TotalIDORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalIDORequest) XXX_Merge ¶
func (m *TotalIDORequest) XXX_Merge(src proto.Message)
func (*TotalIDORequest) XXX_Size ¶
func (m *TotalIDORequest) XXX_Size() int
func (*TotalIDORequest) XXX_Unmarshal ¶
func (m *TotalIDORequest) XXX_Unmarshal(b []byte) error
type TotalIDOResponse ¶
type TotalIDOResponse struct { Idos []IDO `protobuf:"bytes,1,rep,name=idos,proto3" json:"idos"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*TotalIDOResponse) Descriptor ¶
func (*TotalIDOResponse) Descriptor() ([]byte, []int)
func (*TotalIDOResponse) GetIdos ¶
func (m *TotalIDOResponse) GetIdos() []IDO
func (*TotalIDOResponse) GetPagination ¶
func (m *TotalIDOResponse) GetPagination() *query.PageResponse
func (*TotalIDOResponse) Marshal ¶
func (m *TotalIDOResponse) Marshal() (dAtA []byte, err error)
func (*TotalIDOResponse) MarshalToSizedBuffer ¶
func (m *TotalIDOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TotalIDOResponse) ProtoMessage ¶
func (*TotalIDOResponse) ProtoMessage()
func (*TotalIDOResponse) Reset ¶
func (m *TotalIDOResponse) Reset()
func (*TotalIDOResponse) Size ¶
func (m *TotalIDOResponse) Size() (n int)
func (*TotalIDOResponse) String ¶
func (m *TotalIDOResponse) String() string
func (*TotalIDOResponse) Unmarshal ¶
func (m *TotalIDOResponse) Unmarshal(dAtA []byte) error
func (*TotalIDOResponse) XXX_DiscardUnknown ¶
func (m *TotalIDOResponse) XXX_DiscardUnknown()
func (*TotalIDOResponse) XXX_Marshal ¶
func (m *TotalIDOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalIDOResponse) XXX_Merge ¶
func (m *TotalIDOResponse) XXX_Merge(src proto.Message)
func (*TotalIDOResponse) XXX_Size ¶
func (m *TotalIDOResponse) XXX_Size() int
func (*TotalIDOResponse) XXX_Unmarshal ¶
func (m *TotalIDOResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CommitParticipation ¶
func (*UnimplementedMsgServer) CommitParticipation(ctx context.Context, req *MsgCommitParticipationRequest) (*MsgCommitParticipationResponse, error)
func (*UnimplementedMsgServer) EnableIDO ¶
func (*UnimplementedMsgServer) EnableIDO(ctx context.Context, req *MsgEnableIDORequest) (*MsgEnableIDOResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) IDO ¶
func (*UnimplementedQueryServer) IDO(ctx context.Context, req *IDORequest) (*IDOResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalIDO ¶
func (*UnimplementedQueryServer) TotalIDO(ctx context.Context, req *TotalIDORequest) (*TotalIDOResponse, error)