types

package
v0.0.0-...-3d89e14 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	TypeIDOEnabled             = "ido_enabled"
	TypeDistributionTokenAdded = "commit_participation"

	AttributeValueCategory  = ModuleName
	AttributeProjectID      = "project_id"
	AttributeProjectAddress = "project_address"

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

DefaultIndex is the default capability global index

View Source
const (
	TypeMsgCommitParticipationRequest = "commit_participation"
)

msg types

View Source
const (
	TypeMsgEnableIDORequest = "enable_ido"
)

msg types

Variables

View Source
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

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 (
	ErrInvalidLengthIdo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIdo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIdo = 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")
)
View Source
var (
	KeyPrefixIDO = []byte{0x02}
)

Functions

func GetKeyPrefixProject

func GetKeyPrefixProject(projectId uint64) []byte

func KeyPrefix

func KeyPrefix(p string) []byte

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

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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) MarshalTo

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

func (*Entry) GetCommitAmount

func (m *Entry) GetCommitAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*Entry) GetParticipant

func (m *Entry) GetParticipant() string

func (*Entry) Marshal

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

func (*Entry) MarshalTo

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

func (*Entry) MarshalToSizedBuffer

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

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) Reset

func (m *Entry) Reset()

func (*Entry) Size

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

func (*Entry) String

func (m *Entry) String() string

func (*Entry) Unmarshal

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

func (*Entry) XXX_DiscardUnknown

func (m *Entry) XXX_DiscardUnknown()

func (*Entry) XXX_Marshal

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

func (*Entry) XXX_Merge

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

func (*Entry) XXX_Size

func (m *Entry) XXX_Size() int

func (*Entry) XXX_Unmarshal

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

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) 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 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 NewIDO

func NewIDO(projectId uint64, tokenForDistribution, totalDistributedAmount, tokenListingPrice sdk.Coins, idoStatus uint64, allocationLimit []AllocationLimit, startTime time.Time, entries map[string]Entry) IDO

func (*IDO) Descriptor

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

func (IDO) GetId

func (ido IDO) GetId() uint64

func (IDO) GetReleaseMechanismStatus

func (ido IDO) GetReleaseMechanismStatus() uint64

func (IDO) GetTokens

func (ido IDO) GetTokens() sdk.Coins

func (IDO) GetType

func (ido IDO) GetType() string

func (*IDO) Marshal

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

func (*IDO) MarshalTo

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

func (*IDO) MarshalToSizedBuffer

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

func (*IDO) ProtoMessage

func (*IDO) ProtoMessage()

func (*IDO) Reset

func (m *IDO) Reset()

func (*IDO) Size

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

func (*IDO) String

func (ido *IDO) String() string

func (*IDO) Unmarshal

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

func (*IDO) XXX_DiscardUnknown

func (m *IDO) XXX_DiscardUnknown()

func (*IDO) XXX_Marshal

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

func (*IDO) XXX_Merge

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

func (*IDO) XXX_Size

func (m *IDO) XXX_Size() int

func (*IDO) XXX_Unmarshal

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

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) MarshalTo

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

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

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

func (*MsgCommitParticipationRequest) String

func (*MsgCommitParticipationRequest) Type

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 (*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 (*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

MsgServer is the server API for Msg service.

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 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) MarshalTo

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

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) IDO

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalIDO

Jump to

Keyboard shortcuts

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