types

package
v0.0.0-...-abdbe5d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 38 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 = "project"

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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_project"
)
View Source
const (
	// VoucherSeparator is used in voucher denom to separate the denom component
	VoucherSeparator = "/"

	// VoucherPrefix is the prefix used to represent a voucher denomination
	VoucherPrefix = "v" + VoucherSeparator
)
View Source
const (
	ProjectNameMaxLength = 50
)
View Source
const (
	// SharePrefix is the prefix used to represent a share denomination
	// A sdk.Coin containing this prefix must never be represented in a balance in the bank module
	SharePrefix = "s/"
)

Variables

View Source
var (
	ErrInvalidSigner             = sdkerrors.Register(ModuleName, 1101, "expected gov account as only signer for proposal message")
	ErrInvalidTotalSupply        = sdkerrors.Register(ModuleName, 1102, "invalid total supply")
	ErrProjectNotFound           = sdkerrors.Register(ModuleName, 1103, "project not found")
	ErrMainnetInitialized        = sdkerrors.Register(ModuleName, 1104, "mainnet initialized")
	ErrInvalidShares             = sdkerrors.Register(ModuleName, 1105, "invalid shares")
	ErrTotalSharesLimit          = sdkerrors.Register(ModuleName, 1106, "allocated shares greater than total shares")
	ErrAccountNotFound           = sdkerrors.Register(ModuleName, 1107, "account not found")
	ErrSharesDecrease            = sdkerrors.Register(ModuleName, 1108, "shares can't be decreased")
	ErrVouchersMinting           = sdkerrors.Register(ModuleName, 1109, "vouchers can't be minted")
	ErrInvalidVouchers           = sdkerrors.Register(ModuleName, 1110, "invalid vouchers")
	ErrNoMatchVouchers           = sdkerrors.Register(ModuleName, 1111, "vouchers don't match to project")
	ErrInsufficientVouchers      = sdkerrors.Register(ModuleName, 1112, "account with insufficient vouchers")
	ErrInvalidProjectName        = sdkerrors.Register(ModuleName, 1113, "invalid project name")
	ErrInvalidSupplyRange        = sdkerrors.Register(ModuleName, 1114, "invalid total supply range")
	ErrInvalidMetadataLength     = sdkerrors.Register(ModuleName, 1115, "metadata field too long")
	ErrMainnetLaunchTriggered    = sdkerrors.Register(ModuleName, 1116, "mainnet launch already triggered")
	ErrInvalidSpecialAllocations = sdkerrors.Register(ModuleName, 1117, "invalid special allocations")
	ErrInvalidMainnetInfo        = sdkerrors.Register(ModuleName, 1118, "invalid mainnet info")
	ErrCannotUpdateProject       = sdkerrors.Register(ModuleName, 1119, "cannot update project")
	ErrFundCommunityPool         = sdkerrors.Register(ModuleName, 1120, "unable to fund community pool")
	ErrProjectChainsNotFound     = sdkerrors.Register(ModuleName, 1121, "project chains not found")
	ErrMainnetAccountNotFound    = sdkerrors.Register(ModuleName, 1122, "mainnet account not found")
)

x/project module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	// ParamsKey is the prefix to retrieve all Params
	ParamsKey = collections.NewPrefix("p_project")

	// ProjectKey is the prefix to retrieve all Project
	ProjectKey = collections.NewPrefix("project/value/")
	// ProjectCountKey is the prefix to retrieve all ProjectCount
	ProjectCountKey = collections.NewPrefix("project/count/")

	// ProjectChainsKey is the prefix to retrieve all ProjectChains
	ProjectChainsKey = collections.NewPrefix("ProjectChains/value/")

	// MainnetAccountKey is the prefix to retrieve all MainnetAccount
	MainnetAccountKey = collections.NewPrefix("MainnetAccount/value/")

	// TotalSharesKey is the prefix to retrieve all TotalShares
	TotalSharesKey = collections.NewPrefix("TotalShares/value/")
)
View Source
var (
	ErrInvalidLengthMainnetAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMainnetAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMainnetAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMinTotalSupply            = sdkmath.NewInt(100)                   // One hundred
	DefaultMaxTotalSupply            = sdkmath.NewInt(1_000_000_000_000_000) // One Quadrillion
	DefaultProjectCreationFee        = sdk.Coins(nil)                        // EmptyCoins
	DefaultMaxMetadataLength  uint64 = 2000
)
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 (
	ErrInvalidLengthProject        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProject          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProject = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthProjectChains        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProjectChains          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProjectChains = 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 (
	ErrInvalidLengthSpecialAllocations        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpecialAllocations          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSpecialAllocations = 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 (
	ErrInvalidLengthVesting        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVesting          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVesting = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func CheckProjectName

func CheckProjectName(projectName string) error

CheckProjectName verifies the name is valid as a project name

func CheckShares

func CheckShares(shares Shares) error

CheckShares checks if given shares are valid shares

func CheckVouchers

func CheckVouchers(vouchers sdk.Coins, projectID uint64) error

CheckVouchers checks if given Vouchers are valid

func IsEqualShares

func IsEqualShares(shares, newShares Shares) bool

IsEqualShares returns true if the two sets of Shares have the same value

func IsTotalSharesReached

func IsTotalSharesReached(shares Shares, maximumTotalShareNumber uint64) (bool, error)

IsTotalSharesReached checks if the provided shares overflow the total number of shares

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)

func SharesToVouchers

func SharesToVouchers(shares Shares, projectID uint64) (sdk.Coins, error)

SharesToVouchers returns new Coins vouchers from the Shares representation

func UpdateTotalSupply

func UpdateTotalSupply(coins, updatedCoins sdk.Coins) sdk.Coins

UpdateTotalSupply returns updated total supply by adding new denoms and replacing existing ones This method doesn't check coins format

func ValidateTotalSupply

func ValidateTotalSupply(totalSupply sdk.Coins, supplyRange TotalSupplyRange) error

ValidateTotalSupply checks whether the total supply for each denom is within the provided total supply range

func VoucherDenom

func VoucherDenom(projectID uint64, denom string) string

VoucherDenom returns the Voucher name with prefix

func VoucherProject

func VoucherProject(denom string) (uint64, error)

VoucherProject returns the project associated to a voucher denom

func VoucherToShareDenom

func VoucherToShareDenom(projectID uint64, denom string) string

VoucherToShareDenom remove the voucher prefix and add the share prefix

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI // only used for simulation
}

AccountKeeper defines the expected interface for the Account module.

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	IterateAccountBalances(ctx context.Context, addr sdk.AccAddress, cb func(coin sdk.Coin) (stop bool))
	IterateAllBalances(ctx context.Context, cb func(address sdk.AccAddress, coin sdk.Coin) (stop bool))
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	GetSupply(ctx context.Context, denom string) sdk.Coin
}

BankKeeper defines the expected interface for the Bank module.

type DistributionKeeper

type DistributionKeeper interface {
	FundCommunityPool(ctx context.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

type EventMainnetAccountCreated

type EventMainnetAccountCreated struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Shares    Shares `protobuf:"bytes,3,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func (*EventMainnetAccountCreated) Descriptor

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

func (*EventMainnetAccountCreated) GetAddress

func (m *EventMainnetAccountCreated) GetAddress() string

func (*EventMainnetAccountCreated) GetProjectId

func (m *EventMainnetAccountCreated) GetProjectId() uint64

func (*EventMainnetAccountCreated) GetShares

func (m *EventMainnetAccountCreated) GetShares() Shares

func (*EventMainnetAccountCreated) Marshal

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

func (*EventMainnetAccountCreated) MarshalTo

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

func (*EventMainnetAccountCreated) MarshalToSizedBuffer

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

func (*EventMainnetAccountCreated) ProtoMessage

func (*EventMainnetAccountCreated) ProtoMessage()

func (*EventMainnetAccountCreated) Reset

func (m *EventMainnetAccountCreated) Reset()

func (*EventMainnetAccountCreated) Size

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

func (*EventMainnetAccountCreated) String

func (m *EventMainnetAccountCreated) String() string

func (*EventMainnetAccountCreated) Unmarshal

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

func (*EventMainnetAccountCreated) XXX_DiscardUnknown

func (m *EventMainnetAccountCreated) XXX_DiscardUnknown()

func (*EventMainnetAccountCreated) XXX_Marshal

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

func (*EventMainnetAccountCreated) XXX_Merge

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

func (*EventMainnetAccountCreated) XXX_Size

func (m *EventMainnetAccountCreated) XXX_Size() int

func (*EventMainnetAccountCreated) XXX_Unmarshal

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

type EventMainnetAccountRemoved

type EventMainnetAccountRemoved struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*EventMainnetAccountRemoved) Descriptor

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

func (*EventMainnetAccountRemoved) GetAddress

func (m *EventMainnetAccountRemoved) GetAddress() string

func (*EventMainnetAccountRemoved) GetProjectId

func (m *EventMainnetAccountRemoved) GetProjectId() uint64

func (*EventMainnetAccountRemoved) Marshal

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

func (*EventMainnetAccountRemoved) MarshalTo

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

func (*EventMainnetAccountRemoved) MarshalToSizedBuffer

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

func (*EventMainnetAccountRemoved) ProtoMessage

func (*EventMainnetAccountRemoved) ProtoMessage()

func (*EventMainnetAccountRemoved) Reset

func (m *EventMainnetAccountRemoved) Reset()

func (*EventMainnetAccountRemoved) Size

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

func (*EventMainnetAccountRemoved) String

func (m *EventMainnetAccountRemoved) String() string

func (*EventMainnetAccountRemoved) Unmarshal

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

func (*EventMainnetAccountRemoved) XXX_DiscardUnknown

func (m *EventMainnetAccountRemoved) XXX_DiscardUnknown()

func (*EventMainnetAccountRemoved) XXX_Marshal

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

func (*EventMainnetAccountRemoved) XXX_Merge

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

func (*EventMainnetAccountRemoved) XXX_Size

func (m *EventMainnetAccountRemoved) XXX_Size() int

func (*EventMainnetAccountRemoved) XXX_Unmarshal

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

type EventMainnetAccountUpdated

type EventMainnetAccountUpdated struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Shares    Shares `protobuf:"bytes,3,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func (*EventMainnetAccountUpdated) Descriptor

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

func (*EventMainnetAccountUpdated) GetAddress

func (m *EventMainnetAccountUpdated) GetAddress() string

func (*EventMainnetAccountUpdated) GetProjectId

func (m *EventMainnetAccountUpdated) GetProjectId() uint64

func (*EventMainnetAccountUpdated) GetShares

func (m *EventMainnetAccountUpdated) GetShares() Shares

func (*EventMainnetAccountUpdated) Marshal

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

func (*EventMainnetAccountUpdated) MarshalTo

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

func (*EventMainnetAccountUpdated) MarshalToSizedBuffer

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

func (*EventMainnetAccountUpdated) ProtoMessage

func (*EventMainnetAccountUpdated) ProtoMessage()

func (*EventMainnetAccountUpdated) Reset

func (m *EventMainnetAccountUpdated) Reset()

func (*EventMainnetAccountUpdated) Size

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

func (*EventMainnetAccountUpdated) String

func (m *EventMainnetAccountUpdated) String() string

func (*EventMainnetAccountUpdated) Unmarshal

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

func (*EventMainnetAccountUpdated) XXX_DiscardUnknown

func (m *EventMainnetAccountUpdated) XXX_DiscardUnknown()

func (*EventMainnetAccountUpdated) XXX_Marshal

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

func (*EventMainnetAccountUpdated) XXX_Merge

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

func (*EventMainnetAccountUpdated) XXX_Size

func (m *EventMainnetAccountUpdated) XXX_Size() int

func (*EventMainnetAccountUpdated) XXX_Unmarshal

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

type EventMainnetVestingAccountCreated

type EventMainnetVestingAccountCreated struct {
	ProjectId      uint64              `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address        string              `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	VestingOptions ShareVestingOptions `protobuf:"bytes,3,opt,name=vesting_options,json=vestingOptions,proto3" json:"vesting_options"`
}

func (*EventMainnetVestingAccountCreated) Descriptor

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

func (*EventMainnetVestingAccountCreated) GetAddress

func (m *EventMainnetVestingAccountCreated) GetAddress() string

func (*EventMainnetVestingAccountCreated) GetProjectId

func (m *EventMainnetVestingAccountCreated) GetProjectId() uint64

func (*EventMainnetVestingAccountCreated) GetVestingOptions

func (*EventMainnetVestingAccountCreated) Marshal

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

func (*EventMainnetVestingAccountCreated) MarshalTo

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

func (*EventMainnetVestingAccountCreated) MarshalToSizedBuffer

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

func (*EventMainnetVestingAccountCreated) ProtoMessage

func (*EventMainnetVestingAccountCreated) ProtoMessage()

func (*EventMainnetVestingAccountCreated) Reset

func (*EventMainnetVestingAccountCreated) Size

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

func (*EventMainnetVestingAccountCreated) String

func (*EventMainnetVestingAccountCreated) Unmarshal

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

func (*EventMainnetVestingAccountCreated) XXX_DiscardUnknown

func (m *EventMainnetVestingAccountCreated) XXX_DiscardUnknown()

func (*EventMainnetVestingAccountCreated) XXX_Marshal

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

func (*EventMainnetVestingAccountCreated) XXX_Merge

func (*EventMainnetVestingAccountCreated) XXX_Size

func (m *EventMainnetVestingAccountCreated) XXX_Size() int

func (*EventMainnetVestingAccountCreated) XXX_Unmarshal

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

type EventMainnetVestingAccountUpdated

type EventMainnetVestingAccountUpdated struct {
	ProjectId      uint64              `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address        string              `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	VestingOptions ShareVestingOptions `protobuf:"bytes,3,opt,name=vesting_options,json=vestingOptions,proto3" json:"vesting_options"`
}

func (*EventMainnetVestingAccountUpdated) Descriptor

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

func (*EventMainnetVestingAccountUpdated) GetAddress

func (m *EventMainnetVestingAccountUpdated) GetAddress() string

func (*EventMainnetVestingAccountUpdated) GetProjectId

func (m *EventMainnetVestingAccountUpdated) GetProjectId() uint64

func (*EventMainnetVestingAccountUpdated) GetVestingOptions

func (*EventMainnetVestingAccountUpdated) Marshal

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

func (*EventMainnetVestingAccountUpdated) MarshalTo

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

func (*EventMainnetVestingAccountUpdated) MarshalToSizedBuffer

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

func (*EventMainnetVestingAccountUpdated) ProtoMessage

func (*EventMainnetVestingAccountUpdated) ProtoMessage()

func (*EventMainnetVestingAccountUpdated) Reset

func (*EventMainnetVestingAccountUpdated) Size

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

func (*EventMainnetVestingAccountUpdated) String

func (*EventMainnetVestingAccountUpdated) Unmarshal

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

func (*EventMainnetVestingAccountUpdated) XXX_DiscardUnknown

func (m *EventMainnetVestingAccountUpdated) XXX_DiscardUnknown()

func (*EventMainnetVestingAccountUpdated) XXX_Marshal

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

func (*EventMainnetVestingAccountUpdated) XXX_Merge

func (*EventMainnetVestingAccountUpdated) XXX_Size

func (m *EventMainnetVestingAccountUpdated) XXX_Size() int

func (*EventMainnetVestingAccountUpdated) XXX_Unmarshal

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

type EventProjectAuctionCreated

type EventProjectAuctionCreated struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	AuctionId uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*EventProjectAuctionCreated) Descriptor

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

func (*EventProjectAuctionCreated) GetAuctionId

func (m *EventProjectAuctionCreated) GetAuctionId() uint64

func (*EventProjectAuctionCreated) GetProjectId

func (m *EventProjectAuctionCreated) GetProjectId() uint64

func (*EventProjectAuctionCreated) Marshal

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

func (*EventProjectAuctionCreated) MarshalTo

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

func (*EventProjectAuctionCreated) MarshalToSizedBuffer

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

func (*EventProjectAuctionCreated) ProtoMessage

func (*EventProjectAuctionCreated) ProtoMessage()

func (*EventProjectAuctionCreated) Reset

func (m *EventProjectAuctionCreated) Reset()

func (*EventProjectAuctionCreated) Size

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

func (*EventProjectAuctionCreated) String

func (m *EventProjectAuctionCreated) String() string

func (*EventProjectAuctionCreated) Unmarshal

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

func (*EventProjectAuctionCreated) XXX_DiscardUnknown

func (m *EventProjectAuctionCreated) XXX_DiscardUnknown()

func (*EventProjectAuctionCreated) XXX_Marshal

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

func (*EventProjectAuctionCreated) XXX_Merge

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

func (*EventProjectAuctionCreated) XXX_Size

func (m *EventProjectAuctionCreated) XXX_Size() int

func (*EventProjectAuctionCreated) XXX_Unmarshal

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

type EventProjectChainAdded

type EventProjectChainAdded struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	LaunchId  uint64 `protobuf:"varint,2,opt,name=launch_id,json=launchId,proto3" json:"launch_id,omitempty"`
}

func (*EventProjectChainAdded) Descriptor

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

func (*EventProjectChainAdded) GetLaunchId

func (m *EventProjectChainAdded) GetLaunchId() uint64

func (*EventProjectChainAdded) GetProjectId

func (m *EventProjectChainAdded) GetProjectId() uint64

func (*EventProjectChainAdded) Marshal

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

func (*EventProjectChainAdded) MarshalTo

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

func (*EventProjectChainAdded) MarshalToSizedBuffer

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

func (*EventProjectChainAdded) ProtoMessage

func (*EventProjectChainAdded) ProtoMessage()

func (*EventProjectChainAdded) Reset

func (m *EventProjectChainAdded) Reset()

func (*EventProjectChainAdded) Size

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

func (*EventProjectChainAdded) String

func (m *EventProjectChainAdded) String() string

func (*EventProjectChainAdded) Unmarshal

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

func (*EventProjectChainAdded) XXX_DiscardUnknown

func (m *EventProjectChainAdded) XXX_DiscardUnknown()

func (*EventProjectChainAdded) XXX_Marshal

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

func (*EventProjectChainAdded) XXX_Merge

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

func (*EventProjectChainAdded) XXX_Size

func (m *EventProjectChainAdded) XXX_Size() int

func (*EventProjectChainAdded) XXX_Unmarshal

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

type EventProjectCreated

type EventProjectCreated struct {
	ProjectId          uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CoordinatorAddress string `protobuf:"bytes,2,opt,name=coordinator_address,json=coordinatorAddress,proto3" json:"coordinator_address,omitempty"`
	CoordinatorId      uint64 `protobuf:"varint,3,opt,name=coordinator_id,json=coordinatorId,proto3" json:"coordinator_id,omitempty"`
}

func (*EventProjectCreated) Descriptor

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

func (*EventProjectCreated) GetCoordinatorAddress

func (m *EventProjectCreated) GetCoordinatorAddress() string

func (*EventProjectCreated) GetCoordinatorId

func (m *EventProjectCreated) GetCoordinatorId() uint64

func (*EventProjectCreated) GetProjectId

func (m *EventProjectCreated) GetProjectId() uint64

func (*EventProjectCreated) Marshal

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

func (*EventProjectCreated) MarshalTo

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

func (*EventProjectCreated) MarshalToSizedBuffer

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

func (*EventProjectCreated) ProtoMessage

func (*EventProjectCreated) ProtoMessage()

func (*EventProjectCreated) Reset

func (m *EventProjectCreated) Reset()

func (*EventProjectCreated) Size

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

func (*EventProjectCreated) String

func (m *EventProjectCreated) String() string

func (*EventProjectCreated) Unmarshal

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

func (*EventProjectCreated) XXX_DiscardUnknown

func (m *EventProjectCreated) XXX_DiscardUnknown()

func (*EventProjectCreated) XXX_Marshal

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

func (*EventProjectCreated) XXX_Merge

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

func (*EventProjectCreated) XXX_Size

func (m *EventProjectCreated) XXX_Size() int

func (*EventProjectCreated) XXX_Unmarshal

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

type EventProjectInfoUpdated

type EventProjectInfoUpdated struct {
	ProjectId          uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CoordinatorAddress string `protobuf:"bytes,2,opt,name=coordinator_address,json=coordinatorAddress,proto3" json:"coordinator_address,omitempty"`
	ProjectName        string `protobuf:"bytes,3,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	Metadata           []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func (*EventProjectInfoUpdated) Descriptor

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

func (*EventProjectInfoUpdated) GetCoordinatorAddress

func (m *EventProjectInfoUpdated) GetCoordinatorAddress() string

func (*EventProjectInfoUpdated) GetMetadata

func (m *EventProjectInfoUpdated) GetMetadata() []byte

func (*EventProjectInfoUpdated) GetProjectId

func (m *EventProjectInfoUpdated) GetProjectId() uint64

func (*EventProjectInfoUpdated) GetProjectName

func (m *EventProjectInfoUpdated) GetProjectName() string

func (*EventProjectInfoUpdated) Marshal

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

func (*EventProjectInfoUpdated) MarshalTo

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

func (*EventProjectInfoUpdated) MarshalToSizedBuffer

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

func (*EventProjectInfoUpdated) ProtoMessage

func (*EventProjectInfoUpdated) ProtoMessage()

func (*EventProjectInfoUpdated) Reset

func (m *EventProjectInfoUpdated) Reset()

func (*EventProjectInfoUpdated) Size

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

func (*EventProjectInfoUpdated) String

func (m *EventProjectInfoUpdated) String() string

func (*EventProjectInfoUpdated) Unmarshal

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

func (*EventProjectInfoUpdated) XXX_DiscardUnknown

func (m *EventProjectInfoUpdated) XXX_DiscardUnknown()

func (*EventProjectInfoUpdated) XXX_Marshal

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

func (*EventProjectInfoUpdated) XXX_Merge

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

func (*EventProjectInfoUpdated) XXX_Size

func (m *EventProjectInfoUpdated) XXX_Size() int

func (*EventProjectInfoUpdated) XXX_Unmarshal

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

type EventProjectMainnetInitialized

type EventProjectMainnetInitialized struct {
	ProjectId          uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CoordinatorAddress string `protobuf:"bytes,2,opt,name=coordinator_address,json=coordinatorAddress,proto3" json:"coordinator_address,omitempty"`
	MainnetId          uint64 `protobuf:"varint,3,opt,name=mainnet_id,json=mainnetId,proto3" json:"mainnet_id,omitempty"`
}

func (*EventProjectMainnetInitialized) Descriptor

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

func (*EventProjectMainnetInitialized) GetCoordinatorAddress

func (m *EventProjectMainnetInitialized) GetCoordinatorAddress() string

func (*EventProjectMainnetInitialized) GetMainnetId

func (m *EventProjectMainnetInitialized) GetMainnetId() uint64

func (*EventProjectMainnetInitialized) GetProjectId

func (m *EventProjectMainnetInitialized) GetProjectId() uint64

func (*EventProjectMainnetInitialized) Marshal

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

func (*EventProjectMainnetInitialized) MarshalTo

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

func (*EventProjectMainnetInitialized) MarshalToSizedBuffer

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

func (*EventProjectMainnetInitialized) ProtoMessage

func (*EventProjectMainnetInitialized) ProtoMessage()

func (*EventProjectMainnetInitialized) Reset

func (m *EventProjectMainnetInitialized) Reset()

func (*EventProjectMainnetInitialized) Size

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

func (*EventProjectMainnetInitialized) String

func (*EventProjectMainnetInitialized) Unmarshal

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

func (*EventProjectMainnetInitialized) XXX_DiscardUnknown

func (m *EventProjectMainnetInitialized) XXX_DiscardUnknown()

func (*EventProjectMainnetInitialized) XXX_Marshal

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

func (*EventProjectMainnetInitialized) XXX_Merge

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

func (*EventProjectMainnetInitialized) XXX_Size

func (m *EventProjectMainnetInitialized) XXX_Size() int

func (*EventProjectMainnetInitialized) XXX_Unmarshal

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

type EventProjectSharesUpdated

type EventProjectSharesUpdated struct {
	ProjectId          uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CoordinatorAddress string `protobuf:"bytes,2,opt,name=coordinator_address,json=coordinatorAddress,proto3" json:"coordinator_address,omitempty"`
	AllocatedShares    Shares `` /* 165-byte string literal not displayed */
}

func (*EventProjectSharesUpdated) Descriptor

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

func (*EventProjectSharesUpdated) GetAllocatedShares

func (m *EventProjectSharesUpdated) GetAllocatedShares() Shares

func (*EventProjectSharesUpdated) GetCoordinatorAddress

func (m *EventProjectSharesUpdated) GetCoordinatorAddress() string

func (*EventProjectSharesUpdated) GetProjectId

func (m *EventProjectSharesUpdated) GetProjectId() uint64

func (*EventProjectSharesUpdated) Marshal

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

func (*EventProjectSharesUpdated) MarshalTo

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

func (*EventProjectSharesUpdated) MarshalToSizedBuffer

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

func (*EventProjectSharesUpdated) ProtoMessage

func (*EventProjectSharesUpdated) ProtoMessage()

func (*EventProjectSharesUpdated) Reset

func (m *EventProjectSharesUpdated) Reset()

func (*EventProjectSharesUpdated) Size

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

func (*EventProjectSharesUpdated) String

func (m *EventProjectSharesUpdated) String() string

func (*EventProjectSharesUpdated) Unmarshal

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

func (*EventProjectSharesUpdated) XXX_DiscardUnknown

func (m *EventProjectSharesUpdated) XXX_DiscardUnknown()

func (*EventProjectSharesUpdated) XXX_Marshal

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

func (*EventProjectSharesUpdated) XXX_Merge

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

func (*EventProjectSharesUpdated) XXX_Size

func (m *EventProjectSharesUpdated) XXX_Size() int

func (*EventProjectSharesUpdated) XXX_Unmarshal

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

type EventProjectTotalSupplyUpdated

type EventProjectTotalSupplyUpdated struct {
	ProjectId          uint64                                   `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	CoordinatorAddress string                                   `protobuf:"bytes,2,opt,name=coordinator_address,json=coordinatorAddress,proto3" json:"coordinator_address,omitempty"`
	TotalSupply        github_com_cosmos_cosmos_sdk_types.Coins `` /* 187-byte string literal not displayed */
}

func (*EventProjectTotalSupplyUpdated) Descriptor

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

func (*EventProjectTotalSupplyUpdated) GetCoordinatorAddress

func (m *EventProjectTotalSupplyUpdated) GetCoordinatorAddress() string

func (*EventProjectTotalSupplyUpdated) GetProjectId

func (m *EventProjectTotalSupplyUpdated) GetProjectId() uint64

func (*EventProjectTotalSupplyUpdated) GetTotalSupply

func (*EventProjectTotalSupplyUpdated) Marshal

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

func (*EventProjectTotalSupplyUpdated) MarshalTo

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

func (*EventProjectTotalSupplyUpdated) MarshalToSizedBuffer

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

func (*EventProjectTotalSupplyUpdated) ProtoMessage

func (*EventProjectTotalSupplyUpdated) ProtoMessage()

func (*EventProjectTotalSupplyUpdated) Reset

func (m *EventProjectTotalSupplyUpdated) Reset()

func (*EventProjectTotalSupplyUpdated) Size

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

func (*EventProjectTotalSupplyUpdated) String

func (*EventProjectTotalSupplyUpdated) Unmarshal

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

func (*EventProjectTotalSupplyUpdated) XXX_DiscardUnknown

func (m *EventProjectTotalSupplyUpdated) XXX_DiscardUnknown()

func (*EventProjectTotalSupplyUpdated) XXX_Marshal

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

func (*EventProjectTotalSupplyUpdated) XXX_Merge

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

func (*EventProjectTotalSupplyUpdated) XXX_Size

func (m *EventProjectTotalSupplyUpdated) XXX_Size() int

func (*EventProjectTotalSupplyUpdated) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params             Params           `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	ProjectList        []Project        `protobuf:"bytes,2,rep,name=project_list,json=projectList,proto3" json:"project_list"`
	ProjectCount       uint64           `protobuf:"varint,3,opt,name=project_count,json=projectCount,proto3" json:"project_count,omitempty"`
	ProjectChainsList  []ProjectChains  `protobuf:"bytes,4,rep,name=project_chains_list,json=projectChainsList,proto3" json:"project_chains_list"`
	MainnetAccountList []MainnetAccount `protobuf:"bytes,5,rep,name=mainnet_account_list,json=mainnetAccountList,proto3" json:"mainnet_account_list"`
	TotalShares        uint64           `protobuf:"varint,6,opt,name=total_shares,json=totalShares,proto3" json:"total_shares,omitempty"`
}

GenesisState defines the project module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMainnetAccountList

func (m *GenesisState) GetMainnetAccountList() []MainnetAccount

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetProjectChainsList

func (m *GenesisState) GetProjectChainsList() []ProjectChains

func (*GenesisState) GetProjectCount

func (m *GenesisState) GetProjectCount() uint64

func (*GenesisState) GetProjectList

func (m *GenesisState) GetProjectList() []Project

func (*GenesisState) GetTotalShares

func (m *GenesisState) GetTotalShares() uint64

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 MainnetAccount

type MainnetAccount struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Shares    Shares `protobuf:"bytes,3,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func (*MainnetAccount) Descriptor

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

func (*MainnetAccount) GetAddress

func (m *MainnetAccount) GetAddress() string

func (*MainnetAccount) GetProjectId

func (m *MainnetAccount) GetProjectId() uint64

func (*MainnetAccount) GetShares

func (m *MainnetAccount) GetShares() Shares

func (*MainnetAccount) Marshal

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

func (*MainnetAccount) MarshalTo

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

func (*MainnetAccount) MarshalToSizedBuffer

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

func (*MainnetAccount) ProtoMessage

func (*MainnetAccount) ProtoMessage()

func (*MainnetAccount) Reset

func (m *MainnetAccount) Reset()

func (*MainnetAccount) Size

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

func (*MainnetAccount) String

func (m *MainnetAccount) String() string

func (*MainnetAccount) Unmarshal

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

func (*MainnetAccount) XXX_DiscardUnknown

func (m *MainnetAccount) XXX_DiscardUnknown()

func (*MainnetAccount) XXX_Marshal

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

func (*MainnetAccount) XXX_Merge

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

func (*MainnetAccount) XXX_Size

func (m *MainnetAccount) XXX_Size() int

func (*MainnetAccount) XXX_Unmarshal

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

type MainnetAccountBalance

type MainnetAccountBalance struct {
	ProjectId uint64                                   `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string                                   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Coins     github_com_cosmos_cosmos_sdk_types.Coins `` /* 156-byte string literal not displayed */
}

func (*MainnetAccountBalance) Descriptor

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

func (*MainnetAccountBalance) GetAddress

func (m *MainnetAccountBalance) GetAddress() string

func (*MainnetAccountBalance) GetCoins

func (*MainnetAccountBalance) GetProjectId

func (m *MainnetAccountBalance) GetProjectId() uint64

func (*MainnetAccountBalance) Marshal

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

func (*MainnetAccountBalance) MarshalTo

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

func (*MainnetAccountBalance) MarshalToSizedBuffer

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

func (*MainnetAccountBalance) ProtoMessage

func (*MainnetAccountBalance) ProtoMessage()

func (*MainnetAccountBalance) Reset

func (m *MainnetAccountBalance) Reset()

func (*MainnetAccountBalance) Size

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

func (*MainnetAccountBalance) String

func (m *MainnetAccountBalance) String() string

func (*MainnetAccountBalance) Unmarshal

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

func (*MainnetAccountBalance) XXX_DiscardUnknown

func (m *MainnetAccountBalance) XXX_DiscardUnknown()

func (*MainnetAccountBalance) XXX_Marshal

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

func (*MainnetAccountBalance) XXX_Merge

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

func (*MainnetAccountBalance) XXX_Size

func (m *MainnetAccountBalance) XXX_Size() int

func (*MainnetAccountBalance) XXX_Unmarshal

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

type MsgBurnVouchers

type MsgBurnVouchers struct {
	Sender    string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ProjectId uint64                                   `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Vouchers  github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */
}

func NewMsgBurnVouchers

func NewMsgBurnVouchers(sender string, projectID uint64, vouchers sdk.Coins) *MsgBurnVouchers

func (*MsgBurnVouchers) Descriptor

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

func (*MsgBurnVouchers) GetProjectId

func (m *MsgBurnVouchers) GetProjectId() uint64

func (*MsgBurnVouchers) GetSender

func (m *MsgBurnVouchers) GetSender() string

func (*MsgBurnVouchers) GetVouchers

func (*MsgBurnVouchers) Marshal

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

func (*MsgBurnVouchers) MarshalTo

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

func (*MsgBurnVouchers) MarshalToSizedBuffer

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

func (*MsgBurnVouchers) ProtoMessage

func (*MsgBurnVouchers) ProtoMessage()

func (*MsgBurnVouchers) Reset

func (m *MsgBurnVouchers) Reset()

func (*MsgBurnVouchers) Size

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

func (*MsgBurnVouchers) String

func (m *MsgBurnVouchers) String() string

func (MsgBurnVouchers) Type

func (msg MsgBurnVouchers) Type() string

func (*MsgBurnVouchers) Unmarshal

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

func (*MsgBurnVouchers) ValidateBasic

func (msg *MsgBurnVouchers) ValidateBasic() error

func (*MsgBurnVouchers) XXX_DiscardUnknown

func (m *MsgBurnVouchers) XXX_DiscardUnknown()

func (*MsgBurnVouchers) XXX_Marshal

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

func (*MsgBurnVouchers) XXX_Merge

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

func (*MsgBurnVouchers) XXX_Size

func (m *MsgBurnVouchers) XXX_Size() int

func (*MsgBurnVouchers) XXX_Unmarshal

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

type MsgBurnVouchersResponse

type MsgBurnVouchersResponse struct {
}

func (*MsgBurnVouchersResponse) Descriptor

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

func (*MsgBurnVouchersResponse) Marshal

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

func (*MsgBurnVouchersResponse) MarshalTo

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

func (*MsgBurnVouchersResponse) MarshalToSizedBuffer

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

func (*MsgBurnVouchersResponse) ProtoMessage

func (*MsgBurnVouchersResponse) ProtoMessage()

func (*MsgBurnVouchersResponse) Reset

func (m *MsgBurnVouchersResponse) Reset()

func (*MsgBurnVouchersResponse) Size

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

func (*MsgBurnVouchersResponse) String

func (m *MsgBurnVouchersResponse) String() string

func (*MsgBurnVouchersResponse) Unmarshal

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

func (*MsgBurnVouchersResponse) XXX_DiscardUnknown

func (m *MsgBurnVouchersResponse) XXX_DiscardUnknown()

func (*MsgBurnVouchersResponse) XXX_Marshal

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

func (*MsgBurnVouchersResponse) XXX_Merge

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

func (*MsgBurnVouchersResponse) XXX_Size

func (m *MsgBurnVouchersResponse) XXX_Size() int

func (*MsgBurnVouchersResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error)
	EditProject(ctx context.Context, in *MsgEditProject, opts ...grpc.CallOption) (*MsgEditProjectResponse, error)
	UpdateTotalSupply(ctx context.Context, in *MsgUpdateTotalSupply, opts ...grpc.CallOption) (*MsgUpdateTotalSupplyResponse, error)
	UpdateSpecialAllocations(ctx context.Context, in *MsgUpdateSpecialAllocations, opts ...grpc.CallOption) (*MsgUpdateSpecialAllocationsResponse, error)
	InitializeMainnet(ctx context.Context, in *MsgInitializeMainnet, opts ...grpc.CallOption) (*MsgInitializeMainnetResponse, error)
	MintVouchers(ctx context.Context, in *MsgMintVouchers, opts ...grpc.CallOption) (*MsgMintVouchersResponse, error)
	BurnVouchers(ctx context.Context, in *MsgBurnVouchers, opts ...grpc.CallOption) (*MsgBurnVouchersResponse, error)
	RedeemVouchers(ctx context.Context, in *MsgRedeemVouchers, opts ...grpc.CallOption) (*MsgRedeemVouchersResponse, error)
	UnredeemVouchers(ctx context.Context, in *MsgUnredeemVouchers, opts ...grpc.CallOption) (*MsgUnredeemVouchersResponse, 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 MsgCreateProject

type MsgCreateProject struct {
	Coordinator string                                   `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectName string                                   `protobuf:"bytes,2,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	TotalSupply github_com_cosmos_cosmos_sdk_types.Coins `` /* 187-byte string literal not displayed */
	Metadata    []byte                                   `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func NewMsgCreateProject

func NewMsgCreateProject(coordinator string, projectName string, totalSupply sdk.Coins, metadata []byte) *MsgCreateProject

func (*MsgCreateProject) Descriptor

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

func (*MsgCreateProject) GetCoordinator

func (m *MsgCreateProject) GetCoordinator() string

func (*MsgCreateProject) GetMetadata

func (m *MsgCreateProject) GetMetadata() []byte

func (*MsgCreateProject) GetProjectName

func (m *MsgCreateProject) GetProjectName() string

func (*MsgCreateProject) GetTotalSupply

func (*MsgCreateProject) Marshal

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

func (*MsgCreateProject) MarshalTo

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

func (*MsgCreateProject) MarshalToSizedBuffer

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

func (*MsgCreateProject) ProtoMessage

func (*MsgCreateProject) ProtoMessage()

func (*MsgCreateProject) Reset

func (m *MsgCreateProject) Reset()

func (*MsgCreateProject) Size

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

func (*MsgCreateProject) String

func (m *MsgCreateProject) String() string

func (MsgCreateProject) Type

func (msg MsgCreateProject) Type() string

func (*MsgCreateProject) Unmarshal

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

func (*MsgCreateProject) ValidateBasic

func (msg *MsgCreateProject) ValidateBasic() error

func (*MsgCreateProject) XXX_DiscardUnknown

func (m *MsgCreateProject) XXX_DiscardUnknown()

func (*MsgCreateProject) XXX_Marshal

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

func (*MsgCreateProject) XXX_Merge

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

func (*MsgCreateProject) XXX_Size

func (m *MsgCreateProject) XXX_Size() int

func (*MsgCreateProject) XXX_Unmarshal

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

type MsgCreateProjectResponse

type MsgCreateProjectResponse struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}

func (*MsgCreateProjectResponse) Descriptor

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

func (*MsgCreateProjectResponse) GetProjectId

func (m *MsgCreateProjectResponse) GetProjectId() uint64

func (*MsgCreateProjectResponse) Marshal

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

func (*MsgCreateProjectResponse) MarshalTo

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

func (*MsgCreateProjectResponse) MarshalToSizedBuffer

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

func (*MsgCreateProjectResponse) ProtoMessage

func (*MsgCreateProjectResponse) ProtoMessage()

func (*MsgCreateProjectResponse) Reset

func (m *MsgCreateProjectResponse) Reset()

func (*MsgCreateProjectResponse) Size

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

func (*MsgCreateProjectResponse) String

func (m *MsgCreateProjectResponse) String() string

func (*MsgCreateProjectResponse) Unmarshal

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

func (*MsgCreateProjectResponse) XXX_DiscardUnknown

func (m *MsgCreateProjectResponse) XXX_DiscardUnknown()

func (*MsgCreateProjectResponse) XXX_Marshal

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

func (*MsgCreateProjectResponse) XXX_Merge

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

func (*MsgCreateProjectResponse) XXX_Size

func (m *MsgCreateProjectResponse) XXX_Size() int

func (*MsgCreateProjectResponse) XXX_Unmarshal

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

type MsgEditProject

type MsgEditProject struct {
	Coordinator string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectId   uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Metadata    []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func NewMsgEditProject

func NewMsgEditProject(coordinator string, projectID uint64, name string, metadata []byte) *MsgEditProject

func (*MsgEditProject) Descriptor

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

func (*MsgEditProject) GetCoordinator

func (m *MsgEditProject) GetCoordinator() string

func (*MsgEditProject) GetMetadata

func (m *MsgEditProject) GetMetadata() []byte

func (*MsgEditProject) GetName

func (m *MsgEditProject) GetName() string

func (*MsgEditProject) GetProjectId

func (m *MsgEditProject) GetProjectId() uint64

func (*MsgEditProject) Marshal

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

func (*MsgEditProject) MarshalTo

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

func (*MsgEditProject) MarshalToSizedBuffer

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

func (*MsgEditProject) ProtoMessage

func (*MsgEditProject) ProtoMessage()

func (*MsgEditProject) Reset

func (m *MsgEditProject) Reset()

func (*MsgEditProject) Size

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

func (*MsgEditProject) String

func (m *MsgEditProject) String() string

func (MsgEditProject) Type

func (msg MsgEditProject) Type() string

func (*MsgEditProject) Unmarshal

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

func (*MsgEditProject) ValidateBasic

func (msg *MsgEditProject) ValidateBasic() error

func (*MsgEditProject) XXX_DiscardUnknown

func (m *MsgEditProject) XXX_DiscardUnknown()

func (*MsgEditProject) XXX_Marshal

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

func (*MsgEditProject) XXX_Merge

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

func (*MsgEditProject) XXX_Size

func (m *MsgEditProject) XXX_Size() int

func (*MsgEditProject) XXX_Unmarshal

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

type MsgEditProjectResponse

type MsgEditProjectResponse struct {
}

func (*MsgEditProjectResponse) Descriptor

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

func (*MsgEditProjectResponse) Marshal

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

func (*MsgEditProjectResponse) MarshalTo

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

func (*MsgEditProjectResponse) MarshalToSizedBuffer

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

func (*MsgEditProjectResponse) ProtoMessage

func (*MsgEditProjectResponse) ProtoMessage()

func (*MsgEditProjectResponse) Reset

func (m *MsgEditProjectResponse) Reset()

func (*MsgEditProjectResponse) Size

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

func (*MsgEditProjectResponse) String

func (m *MsgEditProjectResponse) String() string

func (*MsgEditProjectResponse) Unmarshal

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

func (*MsgEditProjectResponse) XXX_DiscardUnknown

func (m *MsgEditProjectResponse) XXX_DiscardUnknown()

func (*MsgEditProjectResponse) XXX_Marshal

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

func (*MsgEditProjectResponse) XXX_Merge

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

func (*MsgEditProjectResponse) XXX_Size

func (m *MsgEditProjectResponse) XXX_Size() int

func (*MsgEditProjectResponse) XXX_Unmarshal

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

type MsgInitializeMainnet

type MsgInitializeMainnet struct {
	Coordinator    string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectId      uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	SourceUrl      string `protobuf:"bytes,3,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"`
	SourceHash     string `protobuf:"bytes,4,opt,name=source_hash,json=sourceHash,proto3" json:"source_hash,omitempty"`
	MainnetChainId string `protobuf:"bytes,5,opt,name=mainnet_chain_id,json=mainnetChainId,proto3" json:"mainnet_chain_id,omitempty"`
}

func NewMsgInitializeMainnet

func NewMsgInitializeMainnet(coordinator string, projectID uint64, sourceURL string, sourceHash string, mainnetChainID string) *MsgInitializeMainnet

func (*MsgInitializeMainnet) Descriptor

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

func (*MsgInitializeMainnet) GetCoordinator

func (m *MsgInitializeMainnet) GetCoordinator() string

func (*MsgInitializeMainnet) GetMainnetChainId

func (m *MsgInitializeMainnet) GetMainnetChainId() string

func (*MsgInitializeMainnet) GetProjectId

func (m *MsgInitializeMainnet) GetProjectId() uint64

func (*MsgInitializeMainnet) GetSourceHash

func (m *MsgInitializeMainnet) GetSourceHash() string

func (*MsgInitializeMainnet) GetSourceUrl

func (m *MsgInitializeMainnet) GetSourceUrl() string

func (*MsgInitializeMainnet) Marshal

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

func (*MsgInitializeMainnet) MarshalTo

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

func (*MsgInitializeMainnet) MarshalToSizedBuffer

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

func (*MsgInitializeMainnet) ProtoMessage

func (*MsgInitializeMainnet) ProtoMessage()

func (*MsgInitializeMainnet) Reset

func (m *MsgInitializeMainnet) Reset()

func (*MsgInitializeMainnet) Size

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

func (*MsgInitializeMainnet) String

func (m *MsgInitializeMainnet) String() string

func (MsgInitializeMainnet) Type

func (msg MsgInitializeMainnet) Type() string

func (*MsgInitializeMainnet) Unmarshal

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

func (*MsgInitializeMainnet) ValidateBasic

func (msg *MsgInitializeMainnet) ValidateBasic() error

func (*MsgInitializeMainnet) XXX_DiscardUnknown

func (m *MsgInitializeMainnet) XXX_DiscardUnknown()

func (*MsgInitializeMainnet) XXX_Marshal

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

func (*MsgInitializeMainnet) XXX_Merge

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

func (*MsgInitializeMainnet) XXX_Size

func (m *MsgInitializeMainnet) XXX_Size() int

func (*MsgInitializeMainnet) XXX_Unmarshal

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

type MsgInitializeMainnetResponse

type MsgInitializeMainnetResponse struct {
	MainnetId uint64 `protobuf:"varint,1,opt,name=mainnet_id,json=mainnetId,proto3" json:"mainnet_id,omitempty"`
}

func (*MsgInitializeMainnetResponse) Descriptor

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

func (*MsgInitializeMainnetResponse) GetMainnetId

func (m *MsgInitializeMainnetResponse) GetMainnetId() uint64

func (*MsgInitializeMainnetResponse) Marshal

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

func (*MsgInitializeMainnetResponse) MarshalTo

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

func (*MsgInitializeMainnetResponse) MarshalToSizedBuffer

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

func (*MsgInitializeMainnetResponse) ProtoMessage

func (*MsgInitializeMainnetResponse) ProtoMessage()

func (*MsgInitializeMainnetResponse) Reset

func (m *MsgInitializeMainnetResponse) Reset()

func (*MsgInitializeMainnetResponse) Size

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

func (*MsgInitializeMainnetResponse) String

func (*MsgInitializeMainnetResponse) Unmarshal

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

func (*MsgInitializeMainnetResponse) XXX_DiscardUnknown

func (m *MsgInitializeMainnetResponse) XXX_DiscardUnknown()

func (*MsgInitializeMainnetResponse) XXX_Marshal

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

func (*MsgInitializeMainnetResponse) XXX_Merge

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

func (*MsgInitializeMainnetResponse) XXX_Size

func (m *MsgInitializeMainnetResponse) XXX_Size() int

func (*MsgInitializeMainnetResponse) XXX_Unmarshal

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

type MsgMintVouchers

type MsgMintVouchers struct {
	Coordinator string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectId   uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Shares      Shares `protobuf:"bytes,3,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func NewMsgMintVouchers

func NewMsgMintVouchers(coordinator string, projectID uint64, shares Shares) *MsgMintVouchers

func (*MsgMintVouchers) Descriptor

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

func (*MsgMintVouchers) GetCoordinator

func (m *MsgMintVouchers) GetCoordinator() string

func (*MsgMintVouchers) GetProjectId

func (m *MsgMintVouchers) GetProjectId() uint64

func (*MsgMintVouchers) GetShares

func (m *MsgMintVouchers) GetShares() Shares

func (*MsgMintVouchers) Marshal

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

func (*MsgMintVouchers) MarshalTo

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

func (*MsgMintVouchers) MarshalToSizedBuffer

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

func (*MsgMintVouchers) ProtoMessage

func (*MsgMintVouchers) ProtoMessage()

func (*MsgMintVouchers) Reset

func (m *MsgMintVouchers) Reset()

func (*MsgMintVouchers) Size

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

func (*MsgMintVouchers) String

func (m *MsgMintVouchers) String() string

func (MsgMintVouchers) Type

func (msg MsgMintVouchers) Type() string

func (*MsgMintVouchers) Unmarshal

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

func (*MsgMintVouchers) ValidateBasic

func (msg *MsgMintVouchers) ValidateBasic() error

func (*MsgMintVouchers) XXX_DiscardUnknown

func (m *MsgMintVouchers) XXX_DiscardUnknown()

func (*MsgMintVouchers) XXX_Marshal

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

func (*MsgMintVouchers) XXX_Merge

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

func (*MsgMintVouchers) XXX_Size

func (m *MsgMintVouchers) XXX_Size() int

func (*MsgMintVouchers) XXX_Unmarshal

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

type MsgMintVouchersResponse

type MsgMintVouchersResponse struct {
}

func (*MsgMintVouchersResponse) Descriptor

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

func (*MsgMintVouchersResponse) Marshal

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

func (*MsgMintVouchersResponse) MarshalTo

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

func (*MsgMintVouchersResponse) MarshalToSizedBuffer

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

func (*MsgMintVouchersResponse) ProtoMessage

func (*MsgMintVouchersResponse) ProtoMessage()

func (*MsgMintVouchersResponse) Reset

func (m *MsgMintVouchersResponse) Reset()

func (*MsgMintVouchersResponse) Size

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

func (*MsgMintVouchersResponse) String

func (m *MsgMintVouchersResponse) String() string

func (*MsgMintVouchersResponse) Unmarshal

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

func (*MsgMintVouchersResponse) XXX_DiscardUnknown

func (m *MsgMintVouchersResponse) XXX_DiscardUnknown()

func (*MsgMintVouchersResponse) XXX_Marshal

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

func (*MsgMintVouchersResponse) XXX_Merge

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

func (*MsgMintVouchersResponse) XXX_Size

func (m *MsgMintVouchersResponse) XXX_Size() int

func (*MsgMintVouchersResponse) XXX_Unmarshal

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

type MsgRedeemVouchers

type MsgRedeemVouchers struct {
	Sender    string                                   `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ProjectId uint64                                   `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Account   string                                   `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	Vouchers  github_com_cosmos_cosmos_sdk_types.Coins `` /* 162-byte string literal not displayed */
}

func NewMsgRedeemVouchers

func NewMsgRedeemVouchers(sender string, projectID uint64, account string, vouchers sdk.Coins) *MsgRedeemVouchers

func (*MsgRedeemVouchers) Descriptor

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

func (*MsgRedeemVouchers) GetAccount

func (m *MsgRedeemVouchers) GetAccount() string

func (*MsgRedeemVouchers) GetProjectId

func (m *MsgRedeemVouchers) GetProjectId() uint64

func (*MsgRedeemVouchers) GetSender

func (m *MsgRedeemVouchers) GetSender() string

func (*MsgRedeemVouchers) GetVouchers

func (*MsgRedeemVouchers) Marshal

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

func (*MsgRedeemVouchers) MarshalTo

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

func (*MsgRedeemVouchers) MarshalToSizedBuffer

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

func (*MsgRedeemVouchers) ProtoMessage

func (*MsgRedeemVouchers) ProtoMessage()

func (*MsgRedeemVouchers) Reset

func (m *MsgRedeemVouchers) Reset()

func (*MsgRedeemVouchers) Size

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

func (*MsgRedeemVouchers) String

func (m *MsgRedeemVouchers) String() string

func (MsgRedeemVouchers) Type

func (msg MsgRedeemVouchers) Type() string

func (*MsgRedeemVouchers) Unmarshal

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

func (*MsgRedeemVouchers) ValidateBasic

func (msg *MsgRedeemVouchers) ValidateBasic() error

func (*MsgRedeemVouchers) XXX_DiscardUnknown

func (m *MsgRedeemVouchers) XXX_DiscardUnknown()

func (*MsgRedeemVouchers) XXX_Marshal

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

func (*MsgRedeemVouchers) XXX_Merge

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

func (*MsgRedeemVouchers) XXX_Size

func (m *MsgRedeemVouchers) XXX_Size() int

func (*MsgRedeemVouchers) XXX_Unmarshal

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

type MsgRedeemVouchersResponse

type MsgRedeemVouchersResponse struct {
}

func (*MsgRedeemVouchersResponse) Descriptor

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

func (*MsgRedeemVouchersResponse) Marshal

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

func (*MsgRedeemVouchersResponse) MarshalTo

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

func (*MsgRedeemVouchersResponse) MarshalToSizedBuffer

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

func (*MsgRedeemVouchersResponse) ProtoMessage

func (*MsgRedeemVouchersResponse) ProtoMessage()

func (*MsgRedeemVouchersResponse) Reset

func (m *MsgRedeemVouchersResponse) Reset()

func (*MsgRedeemVouchersResponse) Size

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

func (*MsgRedeemVouchersResponse) String

func (m *MsgRedeemVouchersResponse) String() string

func (*MsgRedeemVouchersResponse) Unmarshal

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

func (*MsgRedeemVouchersResponse) XXX_DiscardUnknown

func (m *MsgRedeemVouchersResponse) XXX_DiscardUnknown()

func (*MsgRedeemVouchersResponse) XXX_Marshal

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

func (*MsgRedeemVouchersResponse) XXX_Merge

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

func (*MsgRedeemVouchersResponse) XXX_Size

func (m *MsgRedeemVouchersResponse) XXX_Size() int

func (*MsgRedeemVouchersResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error)
	EditProject(context.Context, *MsgEditProject) (*MsgEditProjectResponse, error)
	UpdateTotalSupply(context.Context, *MsgUpdateTotalSupply) (*MsgUpdateTotalSupplyResponse, error)
	UpdateSpecialAllocations(context.Context, *MsgUpdateSpecialAllocations) (*MsgUpdateSpecialAllocationsResponse, error)
	InitializeMainnet(context.Context, *MsgInitializeMainnet) (*MsgInitializeMainnetResponse, error)
	MintVouchers(context.Context, *MsgMintVouchers) (*MsgMintVouchersResponse, error)
	BurnVouchers(context.Context, *MsgBurnVouchers) (*MsgBurnVouchersResponse, error)
	RedeemVouchers(context.Context, *MsgRedeemVouchers) (*MsgRedeemVouchersResponse, error)
	UnredeemVouchers(context.Context, *MsgUnredeemVouchers) (*MsgUnredeemVouchersResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUnredeemVouchers

type MsgUnredeemVouchers struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ProjectId uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Shares    Shares `protobuf:"bytes,3,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func NewMsgUnredeemVouchers

func NewMsgUnredeemVouchers(sender string, projectID uint64, shares Shares) *MsgUnredeemVouchers

func (*MsgUnredeemVouchers) Descriptor

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

func (*MsgUnredeemVouchers) GetProjectId

func (m *MsgUnredeemVouchers) GetProjectId() uint64

func (*MsgUnredeemVouchers) GetSender

func (m *MsgUnredeemVouchers) GetSender() string

func (*MsgUnredeemVouchers) GetShares

func (m *MsgUnredeemVouchers) GetShares() Shares

func (*MsgUnredeemVouchers) Marshal

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

func (*MsgUnredeemVouchers) MarshalTo

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

func (*MsgUnredeemVouchers) MarshalToSizedBuffer

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

func (*MsgUnredeemVouchers) ProtoMessage

func (*MsgUnredeemVouchers) ProtoMessage()

func (*MsgUnredeemVouchers) Reset

func (m *MsgUnredeemVouchers) Reset()

func (*MsgUnredeemVouchers) Size

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

func (*MsgUnredeemVouchers) String

func (m *MsgUnredeemVouchers) String() string

func (MsgUnredeemVouchers) Type

func (msg MsgUnredeemVouchers) Type() string

func (*MsgUnredeemVouchers) Unmarshal

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

func (*MsgUnredeemVouchers) ValidateBasic

func (msg *MsgUnredeemVouchers) ValidateBasic() error

func (*MsgUnredeemVouchers) XXX_DiscardUnknown

func (m *MsgUnredeemVouchers) XXX_DiscardUnknown()

func (*MsgUnredeemVouchers) XXX_Marshal

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

func (*MsgUnredeemVouchers) XXX_Merge

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

func (*MsgUnredeemVouchers) XXX_Size

func (m *MsgUnredeemVouchers) XXX_Size() int

func (*MsgUnredeemVouchers) XXX_Unmarshal

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

type MsgUnredeemVouchersResponse

type MsgUnredeemVouchersResponse struct {
}

func (*MsgUnredeemVouchersResponse) Descriptor

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

func (*MsgUnredeemVouchersResponse) Marshal

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

func (*MsgUnredeemVouchersResponse) MarshalTo

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

func (*MsgUnredeemVouchersResponse) MarshalToSizedBuffer

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

func (*MsgUnredeemVouchersResponse) ProtoMessage

func (*MsgUnredeemVouchersResponse) ProtoMessage()

func (*MsgUnredeemVouchersResponse) Reset

func (m *MsgUnredeemVouchersResponse) Reset()

func (*MsgUnredeemVouchersResponse) Size

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

func (*MsgUnredeemVouchersResponse) String

func (m *MsgUnredeemVouchersResponse) String() string

func (*MsgUnredeemVouchersResponse) Unmarshal

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

func (*MsgUnredeemVouchersResponse) XXX_DiscardUnknown

func (m *MsgUnredeemVouchersResponse) XXX_DiscardUnknown()

func (*MsgUnredeemVouchersResponse) XXX_Marshal

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

func (*MsgUnredeemVouchersResponse) XXX_Merge

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

func (*MsgUnredeemVouchersResponse) XXX_Size

func (m *MsgUnredeemVouchersResponse) XXX_Size() int

func (*MsgUnredeemVouchersResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgUpdateSpecialAllocations

type MsgUpdateSpecialAllocations struct {
	Coordinator        string             `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectId          uint64             `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	SpecialAllocations SpecialAllocations `protobuf:"bytes,3,opt,name=special_allocations,json=specialAllocations,proto3" json:"special_allocations"`
}

func NewMsgUpdateSpecialAllocations

func NewMsgUpdateSpecialAllocations(coordinator string, projectID uint64, specialAllocations SpecialAllocations) *MsgUpdateSpecialAllocations

func (*MsgUpdateSpecialAllocations) Descriptor

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

func (*MsgUpdateSpecialAllocations) GetCoordinator

func (m *MsgUpdateSpecialAllocations) GetCoordinator() string

func (*MsgUpdateSpecialAllocations) GetProjectId

func (m *MsgUpdateSpecialAllocations) GetProjectId() uint64

func (*MsgUpdateSpecialAllocations) GetSpecialAllocations

func (m *MsgUpdateSpecialAllocations) GetSpecialAllocations() SpecialAllocations

func (*MsgUpdateSpecialAllocations) Marshal

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

func (*MsgUpdateSpecialAllocations) MarshalTo

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

func (*MsgUpdateSpecialAllocations) MarshalToSizedBuffer

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

func (*MsgUpdateSpecialAllocations) ProtoMessage

func (*MsgUpdateSpecialAllocations) ProtoMessage()

func (*MsgUpdateSpecialAllocations) Reset

func (m *MsgUpdateSpecialAllocations) Reset()

func (*MsgUpdateSpecialAllocations) Size

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

func (*MsgUpdateSpecialAllocations) String

func (m *MsgUpdateSpecialAllocations) String() string

func (MsgUpdateSpecialAllocations) Type

func (*MsgUpdateSpecialAllocations) Unmarshal

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

func (*MsgUpdateSpecialAllocations) ValidateBasic

func (msg *MsgUpdateSpecialAllocations) ValidateBasic() error

func (*MsgUpdateSpecialAllocations) XXX_DiscardUnknown

func (m *MsgUpdateSpecialAllocations) XXX_DiscardUnknown()

func (*MsgUpdateSpecialAllocations) XXX_Marshal

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

func (*MsgUpdateSpecialAllocations) XXX_Merge

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

func (*MsgUpdateSpecialAllocations) XXX_Size

func (m *MsgUpdateSpecialAllocations) XXX_Size() int

func (*MsgUpdateSpecialAllocations) XXX_Unmarshal

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

type MsgUpdateSpecialAllocationsResponse

type MsgUpdateSpecialAllocationsResponse struct {
}

func (*MsgUpdateSpecialAllocationsResponse) Descriptor

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

func (*MsgUpdateSpecialAllocationsResponse) Marshal

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

func (*MsgUpdateSpecialAllocationsResponse) MarshalTo

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

func (*MsgUpdateSpecialAllocationsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateSpecialAllocationsResponse) ProtoMessage

func (*MsgUpdateSpecialAllocationsResponse) ProtoMessage()

func (*MsgUpdateSpecialAllocationsResponse) Reset

func (*MsgUpdateSpecialAllocationsResponse) Size

func (*MsgUpdateSpecialAllocationsResponse) String

func (*MsgUpdateSpecialAllocationsResponse) Unmarshal

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

func (*MsgUpdateSpecialAllocationsResponse) XXX_DiscardUnknown

func (m *MsgUpdateSpecialAllocationsResponse) XXX_DiscardUnknown()

func (*MsgUpdateSpecialAllocationsResponse) XXX_Marshal

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

func (*MsgUpdateSpecialAllocationsResponse) XXX_Merge

func (*MsgUpdateSpecialAllocationsResponse) XXX_Size

func (*MsgUpdateSpecialAllocationsResponse) XXX_Unmarshal

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

type MsgUpdateTotalSupply

type MsgUpdateTotalSupply struct {
	Coordinator       string                                   `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	ProjectId         uint64                                   `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	TotalSupplyUpdate github_com_cosmos_cosmos_sdk_types.Coins `` /* 207-byte string literal not displayed */
}

func NewMsgUpdateTotalSupply

func NewMsgUpdateTotalSupply(coordinator string, projectID uint64, totalSupplyUpdate sdk.Coins) *MsgUpdateTotalSupply

func (*MsgUpdateTotalSupply) Descriptor

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

func (*MsgUpdateTotalSupply) GetCoordinator

func (m *MsgUpdateTotalSupply) GetCoordinator() string

func (*MsgUpdateTotalSupply) GetProjectId

func (m *MsgUpdateTotalSupply) GetProjectId() uint64

func (*MsgUpdateTotalSupply) GetTotalSupplyUpdate

func (*MsgUpdateTotalSupply) Marshal

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

func (*MsgUpdateTotalSupply) MarshalTo

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

func (*MsgUpdateTotalSupply) MarshalToSizedBuffer

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

func (*MsgUpdateTotalSupply) ProtoMessage

func (*MsgUpdateTotalSupply) ProtoMessage()

func (*MsgUpdateTotalSupply) Reset

func (m *MsgUpdateTotalSupply) Reset()

func (*MsgUpdateTotalSupply) Size

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

func (*MsgUpdateTotalSupply) String

func (m *MsgUpdateTotalSupply) String() string

func (MsgUpdateTotalSupply) Type

func (msg MsgUpdateTotalSupply) Type() string

func (*MsgUpdateTotalSupply) Unmarshal

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

func (*MsgUpdateTotalSupply) ValidateBasic

func (msg *MsgUpdateTotalSupply) ValidateBasic() error

func (*MsgUpdateTotalSupply) XXX_DiscardUnknown

func (m *MsgUpdateTotalSupply) XXX_DiscardUnknown()

func (*MsgUpdateTotalSupply) XXX_Marshal

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

func (*MsgUpdateTotalSupply) XXX_Merge

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

func (*MsgUpdateTotalSupply) XXX_Size

func (m *MsgUpdateTotalSupply) XXX_Size() int

func (*MsgUpdateTotalSupply) XXX_Unmarshal

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

type MsgUpdateTotalSupplyResponse

type MsgUpdateTotalSupplyResponse struct {
}

func (*MsgUpdateTotalSupplyResponse) Descriptor

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

func (*MsgUpdateTotalSupplyResponse) Marshal

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

func (*MsgUpdateTotalSupplyResponse) MarshalTo

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

func (*MsgUpdateTotalSupplyResponse) MarshalToSizedBuffer

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

func (*MsgUpdateTotalSupplyResponse) ProtoMessage

func (*MsgUpdateTotalSupplyResponse) ProtoMessage()

func (*MsgUpdateTotalSupplyResponse) Reset

func (m *MsgUpdateTotalSupplyResponse) Reset()

func (*MsgUpdateTotalSupplyResponse) Size

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

func (*MsgUpdateTotalSupplyResponse) String

func (*MsgUpdateTotalSupplyResponse) Unmarshal

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

func (*MsgUpdateTotalSupplyResponse) XXX_DiscardUnknown

func (m *MsgUpdateTotalSupplyResponse) XXX_DiscardUnknown()

func (*MsgUpdateTotalSupplyResponse) XXX_Marshal

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

func (*MsgUpdateTotalSupplyResponse) XXX_Merge

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

func (*MsgUpdateTotalSupplyResponse) XXX_Size

func (m *MsgUpdateTotalSupplyResponse) XXX_Size() int

func (*MsgUpdateTotalSupplyResponse) XXX_Unmarshal

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

type ParamSubspace

type ParamSubspace interface {
	Get(context.Context, []byte, interface{})
	Set(context.Context, []byte, interface{})
}

ParamSubspace defines the expected Subspace interface for parameters.

type Params

type Params struct {
	TotalSupplyRange   TotalSupplyRange                         `protobuf:"bytes,1,opt,name=total_supply_range,json=totalSupplyRange,proto3" json:"total_supply_range"`
	ProjectCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 210-byte string literal not displayed */
	MaxMetadataLength  uint64                                   `protobuf:"varint,3,opt,name=max_metadata_length,json=maxMetadataLength,proto3" json:"max_metadata_length,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default project parameters

func NewParams

func NewParams(
	minTotalSupply,
	maxTotalSupply sdkmath.Int,
	projectCreationFee sdk.Coins,
	maxMetadataLength uint64,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetMaxMetadataLength

func (m *Params) GetMaxMetadataLength() uint64

func (*Params) GetProjectCreationFee

func (m *Params) GetProjectCreationFee() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) GetTotalSupplyRange

func (m *Params) GetTotalSupplyRange() TotalSupplyRange

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

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

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 ProfileKeeper

type ProfileKeeper interface {
	CoordinatorIDFromAddress(ctx context.Context, address sdk.AccAddress) (uint64, error)
	GetCoordinator(ctx context.Context, coordinatorID uint64) (profiletypes.Coordinator, error)
	Coordinators(ctx context.Context) ([]profiletypes.Coordinator, error)
}

type Project

type Project struct {
	ProjectId          uint64                                   `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	ProjectName        string                                   `protobuf:"bytes,2,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
	CoordinatorId      uint64                                   `protobuf:"varint,3,opt,name=coordinator_id,json=coordinatorId,proto3" json:"coordinator_id,omitempty"`
	CreatedAt          int64                                    `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	MainnetId          uint64                                   `protobuf:"varint,5,opt,name=mainnet_id,json=mainnetId,proto3" json:"mainnet_id,omitempty"`
	MainnetInitialized bool                                     `protobuf:"varint,6,opt,name=mainnet_initialized,json=mainnetInitialized,proto3" json:"mainnet_initialized,omitempty"`
	TotalSupply        github_com_cosmos_cosmos_sdk_types.Coins `` /* 187-byte string literal not displayed */
	AllocatedShares    Shares                                   `` /* 165-byte string literal not displayed */
	SpecialAllocations SpecialAllocations                       `protobuf:"bytes,9,opt,name=special_allocations,json=specialAllocations,proto3" json:"special_allocations"`
	Metadata           []byte                                   `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func NewProject

func NewProject(
	projectID uint64,
	projectName string,
	coordinatorID uint64,
	totalSupply sdk.Coins,
	metadata []byte,
	createdAt int64,
) Project

NewProject returns a new initialized project

func (*Project) Descriptor

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

func (*Project) GetAllocatedShares

func (m *Project) GetAllocatedShares() Shares

func (*Project) GetCoordinatorId

func (m *Project) GetCoordinatorId() uint64

func (*Project) GetCreatedAt

func (m *Project) GetCreatedAt() int64

func (*Project) GetMainnetId

func (m *Project) GetMainnetId() uint64

func (*Project) GetMainnetInitialized

func (m *Project) GetMainnetInitialized() bool

func (*Project) GetMetadata

func (m *Project) GetMetadata() []byte

func (*Project) GetProjectId

func (m *Project) GetProjectId() uint64

func (*Project) GetProjectName

func (m *Project) GetProjectName() string

func (*Project) GetSpecialAllocations

func (m *Project) GetSpecialAllocations() SpecialAllocations

func (*Project) GetTotalSupply

func (m *Project) GetTotalSupply() github_com_cosmos_cosmos_sdk_types.Coins

func (*Project) Marshal

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

func (*Project) MarshalTo

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

func (*Project) MarshalToSizedBuffer

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

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) Size

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

func (*Project) String

func (m *Project) String() string

func (*Project) Unmarshal

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

func (Project) Validate

func (m Project) Validate(totalShareNumber uint64) error

Validate checks the project is valid

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

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

func (*Project) XXX_Merge

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

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

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

type ProjectChains

type ProjectChains struct {
	ProjectId uint64   `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Chains    []uint64 `protobuf:"varint,2,rep,packed,name=chains,proto3" json:"chains,omitempty"`
}

func (*ProjectChains) Descriptor

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

func (*ProjectChains) GetChains

func (m *ProjectChains) GetChains() []uint64

func (*ProjectChains) GetProjectId

func (m *ProjectChains) GetProjectId() uint64

func (*ProjectChains) Marshal

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

func (*ProjectChains) MarshalTo

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

func (*ProjectChains) MarshalToSizedBuffer

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

func (*ProjectChains) ProtoMessage

func (*ProjectChains) ProtoMessage()

func (*ProjectChains) Reset

func (m *ProjectChains) Reset()

func (*ProjectChains) Size

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

func (*ProjectChains) String

func (m *ProjectChains) String() string

func (*ProjectChains) Unmarshal

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

func (*ProjectChains) XXX_DiscardUnknown

func (m *ProjectChains) XXX_DiscardUnknown()

func (*ProjectChains) XXX_Marshal

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

func (*ProjectChains) XXX_Merge

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

func (*ProjectChains) XXX_Size

func (m *ProjectChains) XXX_Size() int

func (*ProjectChains) XXX_Unmarshal

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

type QueryAllMainnetAccountRequest

type QueryAllMainnetAccountRequest struct {
	ProjectId  uint64             `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllMainnetAccountRequest) Descriptor

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

func (*QueryAllMainnetAccountRequest) GetPagination

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

func (*QueryAllMainnetAccountRequest) GetProjectId

func (m *QueryAllMainnetAccountRequest) GetProjectId() uint64

func (*QueryAllMainnetAccountRequest) Marshal

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

func (*QueryAllMainnetAccountRequest) MarshalTo

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

func (*QueryAllMainnetAccountRequest) MarshalToSizedBuffer

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

func (*QueryAllMainnetAccountRequest) ProtoMessage

func (*QueryAllMainnetAccountRequest) ProtoMessage()

func (*QueryAllMainnetAccountRequest) Reset

func (m *QueryAllMainnetAccountRequest) Reset()

func (*QueryAllMainnetAccountRequest) Size

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

func (*QueryAllMainnetAccountRequest) String

func (*QueryAllMainnetAccountRequest) Unmarshal

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

func (*QueryAllMainnetAccountRequest) XXX_DiscardUnknown

func (m *QueryAllMainnetAccountRequest) XXX_DiscardUnknown()

func (*QueryAllMainnetAccountRequest) XXX_Marshal

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

func (*QueryAllMainnetAccountRequest) XXX_Merge

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

func (*QueryAllMainnetAccountRequest) XXX_Size

func (m *QueryAllMainnetAccountRequest) XXX_Size() int

func (*QueryAllMainnetAccountRequest) XXX_Unmarshal

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

type QueryAllMainnetAccountResponse

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

func (*QueryAllMainnetAccountResponse) Descriptor

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

func (*QueryAllMainnetAccountResponse) GetMainnetAccount

func (m *QueryAllMainnetAccountResponse) GetMainnetAccount() []MainnetAccount

func (*QueryAllMainnetAccountResponse) GetPagination

func (*QueryAllMainnetAccountResponse) Marshal

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

func (*QueryAllMainnetAccountResponse) MarshalTo

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

func (*QueryAllMainnetAccountResponse) MarshalToSizedBuffer

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

func (*QueryAllMainnetAccountResponse) ProtoMessage

func (*QueryAllMainnetAccountResponse) ProtoMessage()

func (*QueryAllMainnetAccountResponse) Reset

func (m *QueryAllMainnetAccountResponse) Reset()

func (*QueryAllMainnetAccountResponse) Size

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

func (*QueryAllMainnetAccountResponse) String

func (*QueryAllMainnetAccountResponse) Unmarshal

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

func (*QueryAllMainnetAccountResponse) XXX_DiscardUnknown

func (m *QueryAllMainnetAccountResponse) XXX_DiscardUnknown()

func (*QueryAllMainnetAccountResponse) XXX_Marshal

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

func (*QueryAllMainnetAccountResponse) XXX_Merge

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

func (*QueryAllMainnetAccountResponse) XXX_Size

func (m *QueryAllMainnetAccountResponse) XXX_Size() int

func (*QueryAllMainnetAccountResponse) XXX_Unmarshal

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

type QueryAllProjectRequest

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

func (*QueryAllProjectRequest) Descriptor

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

func (*QueryAllProjectRequest) GetPagination

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

func (*QueryAllProjectRequest) Marshal

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

func (*QueryAllProjectRequest) MarshalTo

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

func (*QueryAllProjectRequest) MarshalToSizedBuffer

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

func (*QueryAllProjectRequest) ProtoMessage

func (*QueryAllProjectRequest) ProtoMessage()

func (*QueryAllProjectRequest) Reset

func (m *QueryAllProjectRequest) Reset()

func (*QueryAllProjectRequest) Size

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

func (*QueryAllProjectRequest) String

func (m *QueryAllProjectRequest) String() string

func (*QueryAllProjectRequest) Unmarshal

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

func (*QueryAllProjectRequest) XXX_DiscardUnknown

func (m *QueryAllProjectRequest) XXX_DiscardUnknown()

func (*QueryAllProjectRequest) XXX_Marshal

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

func (*QueryAllProjectRequest) XXX_Merge

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

func (*QueryAllProjectRequest) XXX_Size

func (m *QueryAllProjectRequest) XXX_Size() int

func (*QueryAllProjectRequest) XXX_Unmarshal

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

type QueryAllProjectResponse

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

func (*QueryAllProjectResponse) Descriptor

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

func (*QueryAllProjectResponse) GetPagination

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

func (*QueryAllProjectResponse) GetProject

func (m *QueryAllProjectResponse) GetProject() []Project

func (*QueryAllProjectResponse) Marshal

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

func (*QueryAllProjectResponse) MarshalTo

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

func (*QueryAllProjectResponse) MarshalToSizedBuffer

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

func (*QueryAllProjectResponse) ProtoMessage

func (*QueryAllProjectResponse) ProtoMessage()

func (*QueryAllProjectResponse) Reset

func (m *QueryAllProjectResponse) Reset()

func (*QueryAllProjectResponse) Size

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

func (*QueryAllProjectResponse) String

func (m *QueryAllProjectResponse) String() string

func (*QueryAllProjectResponse) Unmarshal

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

func (*QueryAllProjectResponse) XXX_DiscardUnknown

func (m *QueryAllProjectResponse) XXX_DiscardUnknown()

func (*QueryAllProjectResponse) XXX_Marshal

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

func (*QueryAllProjectResponse) XXX_Merge

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

func (*QueryAllProjectResponse) XXX_Size

func (m *QueryAllProjectResponse) XXX_Size() int

func (*QueryAllProjectResponse) XXX_Unmarshal

func (m *QueryAllProjectResponse) 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)
	// Queries a list of MainnetAccount items.
	GetMainnetAccount(ctx context.Context, in *QueryGetMainnetAccountRequest, opts ...grpc.CallOption) (*QueryGetMainnetAccountResponse, error)
	ListMainnetAccount(ctx context.Context, in *QueryAllMainnetAccountRequest, opts ...grpc.CallOption) (*QueryAllMainnetAccountResponse, error)
	// Queries a list of Project items.
	GetProject(ctx context.Context, in *QueryGetProjectRequest, opts ...grpc.CallOption) (*QueryGetProjectResponse, error)
	ListProject(ctx context.Context, in *QueryAllProjectRequest, opts ...grpc.CallOption) (*QueryAllProjectResponse, error)
	// Queries a list of ProjectChains items.
	GetProjectChains(ctx context.Context, in *QueryGetProjectChainsRequest, opts ...grpc.CallOption) (*QueryGetProjectChainsResponse, error)
	// Queries a list of SpecialAllocationsBalance items.
	SpecialAllocationsBalance(ctx context.Context, in *QuerySpecialAllocationsBalanceRequest, opts ...grpc.CallOption) (*QuerySpecialAllocationsBalanceResponse, error)
	// Queries a list of MainnetAccountBalance items.
	MainnetAccountBalance(ctx context.Context, in *QueryMainnetAccountBalanceRequest, opts ...grpc.CallOption) (*QueryMainnetAccountBalanceResponse, error)
	// Queries a list of ListMainnetAccountBalance items.
	ListMainnetAccountBalance(ctx context.Context, in *QueryListMainnetAccountBalanceRequest, opts ...grpc.CallOption) (*QueryListMainnetAccountBalanceResponse, error)
	// Queries a list of TotalShares items.
	TotalShares(ctx context.Context, in *QueryTotalSharesRequest, opts ...grpc.CallOption) (*QueryTotalSharesResponse, 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 QueryGetMainnetAccountRequest

type QueryGetMainnetAccountRequest struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetMainnetAccountRequest) Descriptor

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

func (*QueryGetMainnetAccountRequest) GetAddress

func (m *QueryGetMainnetAccountRequest) GetAddress() string

func (*QueryGetMainnetAccountRequest) GetProjectId

func (m *QueryGetMainnetAccountRequest) GetProjectId() uint64

func (*QueryGetMainnetAccountRequest) Marshal

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

func (*QueryGetMainnetAccountRequest) MarshalTo

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

func (*QueryGetMainnetAccountRequest) MarshalToSizedBuffer

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

func (*QueryGetMainnetAccountRequest) ProtoMessage

func (*QueryGetMainnetAccountRequest) ProtoMessage()

func (*QueryGetMainnetAccountRequest) Reset

func (m *QueryGetMainnetAccountRequest) Reset()

func (*QueryGetMainnetAccountRequest) Size

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

func (*QueryGetMainnetAccountRequest) String

func (*QueryGetMainnetAccountRequest) Unmarshal

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

func (*QueryGetMainnetAccountRequest) XXX_DiscardUnknown

func (m *QueryGetMainnetAccountRequest) XXX_DiscardUnknown()

func (*QueryGetMainnetAccountRequest) XXX_Marshal

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

func (*QueryGetMainnetAccountRequest) XXX_Merge

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

func (*QueryGetMainnetAccountRequest) XXX_Size

func (m *QueryGetMainnetAccountRequest) XXX_Size() int

func (*QueryGetMainnetAccountRequest) XXX_Unmarshal

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

type QueryGetMainnetAccountResponse

type QueryGetMainnetAccountResponse struct {
	MainnetAccount MainnetAccount `protobuf:"bytes,1,opt,name=mainnet_account,json=mainnetAccount,proto3" json:"mainnet_account"`
}

func (*QueryGetMainnetAccountResponse) Descriptor

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

func (*QueryGetMainnetAccountResponse) GetMainnetAccount

func (m *QueryGetMainnetAccountResponse) GetMainnetAccount() MainnetAccount

func (*QueryGetMainnetAccountResponse) Marshal

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

func (*QueryGetMainnetAccountResponse) MarshalTo

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

func (*QueryGetMainnetAccountResponse) MarshalToSizedBuffer

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

func (*QueryGetMainnetAccountResponse) ProtoMessage

func (*QueryGetMainnetAccountResponse) ProtoMessage()

func (*QueryGetMainnetAccountResponse) Reset

func (m *QueryGetMainnetAccountResponse) Reset()

func (*QueryGetMainnetAccountResponse) Size

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

func (*QueryGetMainnetAccountResponse) String

func (*QueryGetMainnetAccountResponse) Unmarshal

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

func (*QueryGetMainnetAccountResponse) XXX_DiscardUnknown

func (m *QueryGetMainnetAccountResponse) XXX_DiscardUnknown()

func (*QueryGetMainnetAccountResponse) XXX_Marshal

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

func (*QueryGetMainnetAccountResponse) XXX_Merge

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

func (*QueryGetMainnetAccountResponse) XXX_Size

func (m *QueryGetMainnetAccountResponse) XXX_Size() int

func (*QueryGetMainnetAccountResponse) XXX_Unmarshal

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

type QueryGetProjectChainsRequest

type QueryGetProjectChainsRequest struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}

func (*QueryGetProjectChainsRequest) Descriptor

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

func (*QueryGetProjectChainsRequest) GetProjectId

func (m *QueryGetProjectChainsRequest) GetProjectId() uint64

func (*QueryGetProjectChainsRequest) Marshal

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

func (*QueryGetProjectChainsRequest) MarshalTo

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

func (*QueryGetProjectChainsRequest) MarshalToSizedBuffer

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

func (*QueryGetProjectChainsRequest) ProtoMessage

func (*QueryGetProjectChainsRequest) ProtoMessage()

func (*QueryGetProjectChainsRequest) Reset

func (m *QueryGetProjectChainsRequest) Reset()

func (*QueryGetProjectChainsRequest) Size

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

func (*QueryGetProjectChainsRequest) String

func (*QueryGetProjectChainsRequest) Unmarshal

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

func (*QueryGetProjectChainsRequest) XXX_DiscardUnknown

func (m *QueryGetProjectChainsRequest) XXX_DiscardUnknown()

func (*QueryGetProjectChainsRequest) XXX_Marshal

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

func (*QueryGetProjectChainsRequest) XXX_Merge

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

func (*QueryGetProjectChainsRequest) XXX_Size

func (m *QueryGetProjectChainsRequest) XXX_Size() int

func (*QueryGetProjectChainsRequest) XXX_Unmarshal

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

type QueryGetProjectChainsResponse

type QueryGetProjectChainsResponse struct {
	ProjectChains ProjectChains `protobuf:"bytes,1,opt,name=project_chains,json=projectChains,proto3" json:"project_chains"`
}

func (*QueryGetProjectChainsResponse) Descriptor

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

func (*QueryGetProjectChainsResponse) GetProjectChains

func (m *QueryGetProjectChainsResponse) GetProjectChains() ProjectChains

func (*QueryGetProjectChainsResponse) Marshal

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

func (*QueryGetProjectChainsResponse) MarshalTo

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

func (*QueryGetProjectChainsResponse) MarshalToSizedBuffer

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

func (*QueryGetProjectChainsResponse) ProtoMessage

func (*QueryGetProjectChainsResponse) ProtoMessage()

func (*QueryGetProjectChainsResponse) Reset

func (m *QueryGetProjectChainsResponse) Reset()

func (*QueryGetProjectChainsResponse) Size

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

func (*QueryGetProjectChainsResponse) String

func (*QueryGetProjectChainsResponse) Unmarshal

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

func (*QueryGetProjectChainsResponse) XXX_DiscardUnknown

func (m *QueryGetProjectChainsResponse) XXX_DiscardUnknown()

func (*QueryGetProjectChainsResponse) XXX_Marshal

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

func (*QueryGetProjectChainsResponse) XXX_Merge

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

func (*QueryGetProjectChainsResponse) XXX_Size

func (m *QueryGetProjectChainsResponse) XXX_Size() int

func (*QueryGetProjectChainsResponse) XXX_Unmarshal

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

type QueryGetProjectRequest

type QueryGetProjectRequest struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}

func (*QueryGetProjectRequest) Descriptor

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

func (*QueryGetProjectRequest) GetProjectId

func (m *QueryGetProjectRequest) GetProjectId() uint64

func (*QueryGetProjectRequest) Marshal

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

func (*QueryGetProjectRequest) MarshalTo

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

func (*QueryGetProjectRequest) MarshalToSizedBuffer

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

func (*QueryGetProjectRequest) ProtoMessage

func (*QueryGetProjectRequest) ProtoMessage()

func (*QueryGetProjectRequest) Reset

func (m *QueryGetProjectRequest) Reset()

func (*QueryGetProjectRequest) Size

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

func (*QueryGetProjectRequest) String

func (m *QueryGetProjectRequest) String() string

func (*QueryGetProjectRequest) Unmarshal

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

func (*QueryGetProjectRequest) XXX_DiscardUnknown

func (m *QueryGetProjectRequest) XXX_DiscardUnknown()

func (*QueryGetProjectRequest) XXX_Marshal

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

func (*QueryGetProjectRequest) XXX_Merge

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

func (*QueryGetProjectRequest) XXX_Size

func (m *QueryGetProjectRequest) XXX_Size() int

func (*QueryGetProjectRequest) XXX_Unmarshal

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

type QueryGetProjectResponse

type QueryGetProjectResponse struct {
	Project Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project"`
}

func (*QueryGetProjectResponse) Descriptor

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

func (*QueryGetProjectResponse) GetProject

func (m *QueryGetProjectResponse) GetProject() Project

func (*QueryGetProjectResponse) Marshal

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

func (*QueryGetProjectResponse) MarshalTo

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

func (*QueryGetProjectResponse) MarshalToSizedBuffer

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

func (*QueryGetProjectResponse) ProtoMessage

func (*QueryGetProjectResponse) ProtoMessage()

func (*QueryGetProjectResponse) Reset

func (m *QueryGetProjectResponse) Reset()

func (*QueryGetProjectResponse) Size

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

func (*QueryGetProjectResponse) String

func (m *QueryGetProjectResponse) String() string

func (*QueryGetProjectResponse) Unmarshal

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

func (*QueryGetProjectResponse) XXX_DiscardUnknown

func (m *QueryGetProjectResponse) XXX_DiscardUnknown()

func (*QueryGetProjectResponse) XXX_Marshal

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

func (*QueryGetProjectResponse) XXX_Merge

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

func (*QueryGetProjectResponse) XXX_Size

func (m *QueryGetProjectResponse) XXX_Size() int

func (*QueryGetProjectResponse) XXX_Unmarshal

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

type QueryListMainnetAccountBalanceRequest

type QueryListMainnetAccountBalanceRequest struct {
	ProjectId  uint64             `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryListMainnetAccountBalanceRequest) Descriptor

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

func (*QueryListMainnetAccountBalanceRequest) GetPagination

func (*QueryListMainnetAccountBalanceRequest) GetProjectId

func (*QueryListMainnetAccountBalanceRequest) Marshal

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

func (*QueryListMainnetAccountBalanceRequest) MarshalTo

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

func (*QueryListMainnetAccountBalanceRequest) MarshalToSizedBuffer

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

func (*QueryListMainnetAccountBalanceRequest) ProtoMessage

func (*QueryListMainnetAccountBalanceRequest) ProtoMessage()

func (*QueryListMainnetAccountBalanceRequest) Reset

func (*QueryListMainnetAccountBalanceRequest) Size

func (*QueryListMainnetAccountBalanceRequest) String

func (*QueryListMainnetAccountBalanceRequest) Unmarshal

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

func (*QueryListMainnetAccountBalanceRequest) XXX_DiscardUnknown

func (m *QueryListMainnetAccountBalanceRequest) XXX_DiscardUnknown()

func (*QueryListMainnetAccountBalanceRequest) XXX_Marshal

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

func (*QueryListMainnetAccountBalanceRequest) XXX_Merge

func (*QueryListMainnetAccountBalanceRequest) XXX_Size

func (*QueryListMainnetAccountBalanceRequest) XXX_Unmarshal

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

type QueryListMainnetAccountBalanceResponse

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

func (*QueryListMainnetAccountBalanceResponse) Descriptor

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

func (*QueryListMainnetAccountBalanceResponse) GetMainnetAccountBalance

func (m *QueryListMainnetAccountBalanceResponse) GetMainnetAccountBalance() []MainnetAccountBalance

func (*QueryListMainnetAccountBalanceResponse) GetPagination

func (*QueryListMainnetAccountBalanceResponse) Marshal

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

func (*QueryListMainnetAccountBalanceResponse) MarshalTo

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

func (*QueryListMainnetAccountBalanceResponse) MarshalToSizedBuffer

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

func (*QueryListMainnetAccountBalanceResponse) ProtoMessage

func (*QueryListMainnetAccountBalanceResponse) Reset

func (*QueryListMainnetAccountBalanceResponse) Size

func (*QueryListMainnetAccountBalanceResponse) String

func (*QueryListMainnetAccountBalanceResponse) Unmarshal

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

func (*QueryListMainnetAccountBalanceResponse) XXX_DiscardUnknown

func (m *QueryListMainnetAccountBalanceResponse) XXX_DiscardUnknown()

func (*QueryListMainnetAccountBalanceResponse) XXX_Marshal

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

func (*QueryListMainnetAccountBalanceResponse) XXX_Merge

func (*QueryListMainnetAccountBalanceResponse) XXX_Size

func (*QueryListMainnetAccountBalanceResponse) XXX_Unmarshal

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

type QueryMainnetAccountBalanceRequest

type QueryMainnetAccountBalanceRequest struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryMainnetAccountBalanceRequest) Descriptor

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

func (*QueryMainnetAccountBalanceRequest) GetAddress

func (m *QueryMainnetAccountBalanceRequest) GetAddress() string

func (*QueryMainnetAccountBalanceRequest) GetProjectId

func (m *QueryMainnetAccountBalanceRequest) GetProjectId() uint64

func (*QueryMainnetAccountBalanceRequest) Marshal

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

func (*QueryMainnetAccountBalanceRequest) MarshalTo

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

func (*QueryMainnetAccountBalanceRequest) MarshalToSizedBuffer

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

func (*QueryMainnetAccountBalanceRequest) ProtoMessage

func (*QueryMainnetAccountBalanceRequest) ProtoMessage()

func (*QueryMainnetAccountBalanceRequest) Reset

func (*QueryMainnetAccountBalanceRequest) Size

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

func (*QueryMainnetAccountBalanceRequest) String

func (*QueryMainnetAccountBalanceRequest) Unmarshal

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

func (*QueryMainnetAccountBalanceRequest) XXX_DiscardUnknown

func (m *QueryMainnetAccountBalanceRequest) XXX_DiscardUnknown()

func (*QueryMainnetAccountBalanceRequest) XXX_Marshal

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

func (*QueryMainnetAccountBalanceRequest) XXX_Merge

func (*QueryMainnetAccountBalanceRequest) XXX_Size

func (m *QueryMainnetAccountBalanceRequest) XXX_Size() int

func (*QueryMainnetAccountBalanceRequest) XXX_Unmarshal

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

type QueryMainnetAccountBalanceResponse

type QueryMainnetAccountBalanceResponse struct {
	MainnetAccountBalance MainnetAccountBalance `protobuf:"bytes,1,opt,name=mainnet_account_balance,json=mainnetAccountBalance,proto3" json:"mainnet_account_balance"`
}

func (*QueryMainnetAccountBalanceResponse) Descriptor

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

func (*QueryMainnetAccountBalanceResponse) GetMainnetAccountBalance

func (m *QueryMainnetAccountBalanceResponse) GetMainnetAccountBalance() MainnetAccountBalance

func (*QueryMainnetAccountBalanceResponse) Marshal

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

func (*QueryMainnetAccountBalanceResponse) MarshalTo

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

func (*QueryMainnetAccountBalanceResponse) MarshalToSizedBuffer

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

func (*QueryMainnetAccountBalanceResponse) ProtoMessage

func (*QueryMainnetAccountBalanceResponse) ProtoMessage()

func (*QueryMainnetAccountBalanceResponse) Reset

func (*QueryMainnetAccountBalanceResponse) Size

func (*QueryMainnetAccountBalanceResponse) String

func (*QueryMainnetAccountBalanceResponse) Unmarshal

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

func (*QueryMainnetAccountBalanceResponse) XXX_DiscardUnknown

func (m *QueryMainnetAccountBalanceResponse) XXX_DiscardUnknown()

func (*QueryMainnetAccountBalanceResponse) XXX_Marshal

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

func (*QueryMainnetAccountBalanceResponse) XXX_Merge

func (*QueryMainnetAccountBalanceResponse) XXX_Size

func (*QueryMainnetAccountBalanceResponse) XXX_Unmarshal

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

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)
	// Queries a list of MainnetAccount items.
	GetMainnetAccount(context.Context, *QueryGetMainnetAccountRequest) (*QueryGetMainnetAccountResponse, error)
	ListMainnetAccount(context.Context, *QueryAllMainnetAccountRequest) (*QueryAllMainnetAccountResponse, error)
	// Queries a list of Project items.
	GetProject(context.Context, *QueryGetProjectRequest) (*QueryGetProjectResponse, error)
	ListProject(context.Context, *QueryAllProjectRequest) (*QueryAllProjectResponse, error)
	// Queries a list of ProjectChains items.
	GetProjectChains(context.Context, *QueryGetProjectChainsRequest) (*QueryGetProjectChainsResponse, error)
	// Queries a list of SpecialAllocationsBalance items.
	SpecialAllocationsBalance(context.Context, *QuerySpecialAllocationsBalanceRequest) (*QuerySpecialAllocationsBalanceResponse, error)
	// Queries a list of MainnetAccountBalance items.
	MainnetAccountBalance(context.Context, *QueryMainnetAccountBalanceRequest) (*QueryMainnetAccountBalanceResponse, error)
	// Queries a list of ListMainnetAccountBalance items.
	ListMainnetAccountBalance(context.Context, *QueryListMainnetAccountBalanceRequest) (*QueryListMainnetAccountBalanceResponse, error)
	// Queries a list of TotalShares items.
	TotalShares(context.Context, *QueryTotalSharesRequest) (*QueryTotalSharesResponse, error)
}

QueryServer is the server API for Query service.

type QuerySpecialAllocationsBalanceRequest

type QuerySpecialAllocationsBalanceRequest struct {
	ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
}

func (*QuerySpecialAllocationsBalanceRequest) Descriptor

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

func (*QuerySpecialAllocationsBalanceRequest) GetProjectId

func (*QuerySpecialAllocationsBalanceRequest) Marshal

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

func (*QuerySpecialAllocationsBalanceRequest) MarshalTo

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

func (*QuerySpecialAllocationsBalanceRequest) MarshalToSizedBuffer

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

func (*QuerySpecialAllocationsBalanceRequest) ProtoMessage

func (*QuerySpecialAllocationsBalanceRequest) ProtoMessage()

func (*QuerySpecialAllocationsBalanceRequest) Reset

func (*QuerySpecialAllocationsBalanceRequest) Size

func (*QuerySpecialAllocationsBalanceRequest) String

func (*QuerySpecialAllocationsBalanceRequest) Unmarshal

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

func (*QuerySpecialAllocationsBalanceRequest) XXX_DiscardUnknown

func (m *QuerySpecialAllocationsBalanceRequest) XXX_DiscardUnknown()

func (*QuerySpecialAllocationsBalanceRequest) XXX_Marshal

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

func (*QuerySpecialAllocationsBalanceRequest) XXX_Merge

func (*QuerySpecialAllocationsBalanceRequest) XXX_Size

func (*QuerySpecialAllocationsBalanceRequest) XXX_Unmarshal

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

type QuerySpecialAllocationsBalanceResponse

type QuerySpecialAllocationsBalanceResponse struct {
	GenesisDistribution github_com_cosmos_cosmos_sdk_types.Coins `` /* 211-byte string literal not displayed */
	ClaimableAirdrop    github_com_cosmos_cosmos_sdk_types.Coins `` /* 202-byte string literal not displayed */
}

func (*QuerySpecialAllocationsBalanceResponse) Descriptor

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

func (*QuerySpecialAllocationsBalanceResponse) GetClaimableAirdrop

func (*QuerySpecialAllocationsBalanceResponse) GetGenesisDistribution

func (*QuerySpecialAllocationsBalanceResponse) Marshal

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

func (*QuerySpecialAllocationsBalanceResponse) MarshalTo

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

func (*QuerySpecialAllocationsBalanceResponse) MarshalToSizedBuffer

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

func (*QuerySpecialAllocationsBalanceResponse) ProtoMessage

func (*QuerySpecialAllocationsBalanceResponse) Reset

func (*QuerySpecialAllocationsBalanceResponse) Size

func (*QuerySpecialAllocationsBalanceResponse) String

func (*QuerySpecialAllocationsBalanceResponse) Unmarshal

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

func (*QuerySpecialAllocationsBalanceResponse) XXX_DiscardUnknown

func (m *QuerySpecialAllocationsBalanceResponse) XXX_DiscardUnknown()

func (*QuerySpecialAllocationsBalanceResponse) XXX_Marshal

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

func (*QuerySpecialAllocationsBalanceResponse) XXX_Merge

func (*QuerySpecialAllocationsBalanceResponse) XXX_Size

func (*QuerySpecialAllocationsBalanceResponse) XXX_Unmarshal

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

type QueryTotalSharesRequest

type QueryTotalSharesRequest struct {
}

func (*QueryTotalSharesRequest) Descriptor

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

func (*QueryTotalSharesRequest) Marshal

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

func (*QueryTotalSharesRequest) MarshalTo

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

func (*QueryTotalSharesRequest) MarshalToSizedBuffer

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

func (*QueryTotalSharesRequest) ProtoMessage

func (*QueryTotalSharesRequest) ProtoMessage()

func (*QueryTotalSharesRequest) Reset

func (m *QueryTotalSharesRequest) Reset()

func (*QueryTotalSharesRequest) Size

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

func (*QueryTotalSharesRequest) String

func (m *QueryTotalSharesRequest) String() string

func (*QueryTotalSharesRequest) Unmarshal

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

func (*QueryTotalSharesRequest) XXX_DiscardUnknown

func (m *QueryTotalSharesRequest) XXX_DiscardUnknown()

func (*QueryTotalSharesRequest) XXX_Marshal

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

func (*QueryTotalSharesRequest) XXX_Merge

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

func (*QueryTotalSharesRequest) XXX_Size

func (m *QueryTotalSharesRequest) XXX_Size() int

func (*QueryTotalSharesRequest) XXX_Unmarshal

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

type QueryTotalSharesResponse

type QueryTotalSharesResponse struct {
	TotalShares uint64 `protobuf:"varint,1,opt,name=total_shares,json=totalShares,proto3" json:"total_shares,omitempty"`
}

func (*QueryTotalSharesResponse) Descriptor

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

func (*QueryTotalSharesResponse) GetTotalShares

func (m *QueryTotalSharesResponse) GetTotalShares() uint64

func (*QueryTotalSharesResponse) Marshal

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

func (*QueryTotalSharesResponse) MarshalTo

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

func (*QueryTotalSharesResponse) MarshalToSizedBuffer

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

func (*QueryTotalSharesResponse) ProtoMessage

func (*QueryTotalSharesResponse) ProtoMessage()

func (*QueryTotalSharesResponse) Reset

func (m *QueryTotalSharesResponse) Reset()

func (*QueryTotalSharesResponse) Size

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

func (*QueryTotalSharesResponse) String

func (m *QueryTotalSharesResponse) String() string

func (*QueryTotalSharesResponse) Unmarshal

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

func (*QueryTotalSharesResponse) XXX_DiscardUnknown

func (m *QueryTotalSharesResponse) XXX_DiscardUnknown()

func (*QueryTotalSharesResponse) XXX_Marshal

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

func (*QueryTotalSharesResponse) XXX_Merge

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

func (*QueryTotalSharesResponse) XXX_Size

func (m *QueryTotalSharesResponse) XXX_Size() int

func (*QueryTotalSharesResponse) XXX_Unmarshal

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

type ShareDelayedVesting

type ShareDelayedVesting struct {
	TotalShares Shares    `` /* 153-byte string literal not displayed */
	Vesting     Shares    `` /* 126-byte string literal not displayed */
	EndTime     time.Time `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"`
}

ShareDelayedVesting represents options for share delayed vesting Delayed vesting is the type of vesting where all vesting coins are vested once end time is reached

func (*ShareDelayedVesting) Descriptor

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

func (*ShareDelayedVesting) GetEndTime

func (m *ShareDelayedVesting) GetEndTime() time.Time

func (*ShareDelayedVesting) GetTotalShares

func (m *ShareDelayedVesting) GetTotalShares() Shares

func (*ShareDelayedVesting) GetVesting

func (m *ShareDelayedVesting) GetVesting() Shares

func (*ShareDelayedVesting) Marshal

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

func (*ShareDelayedVesting) MarshalTo

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

func (*ShareDelayedVesting) MarshalToSizedBuffer

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

func (*ShareDelayedVesting) ProtoMessage

func (*ShareDelayedVesting) ProtoMessage()

func (*ShareDelayedVesting) Reset

func (m *ShareDelayedVesting) Reset()

func (*ShareDelayedVesting) Size

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

func (*ShareDelayedVesting) String

func (m *ShareDelayedVesting) String() string

func (*ShareDelayedVesting) Unmarshal

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

func (*ShareDelayedVesting) XXX_DiscardUnknown

func (m *ShareDelayedVesting) XXX_DiscardUnknown()

func (*ShareDelayedVesting) XXX_Marshal

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

func (*ShareDelayedVesting) XXX_Merge

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

func (*ShareDelayedVesting) XXX_Size

func (m *ShareDelayedVesting) XXX_Size() int

func (*ShareDelayedVesting) XXX_Unmarshal

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

type ShareVestingOptions

type ShareVestingOptions struct {
	// Types that are valid to be assigned to Options:
	//	*ShareVestingOptions_DelayedVesting
	Options isShareVestingOptions_Options `protobuf_oneof:"options"`
}

func NewShareDelayedVesting

func NewShareDelayedVesting(totalShare, vesting Shares, endTime time.Time) *ShareVestingOptions

NewShareDelayedVesting return the ShareVestingOptions

func (*ShareVestingOptions) Descriptor

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

func (*ShareVestingOptions) GetDelayedVesting

func (m *ShareVestingOptions) GetDelayedVesting() *ShareDelayedVesting

func (*ShareVestingOptions) GetOptions

func (m *ShareVestingOptions) GetOptions() isShareVestingOptions_Options

func (*ShareVestingOptions) Marshal

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

func (*ShareVestingOptions) MarshalTo

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

func (*ShareVestingOptions) MarshalToSizedBuffer

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

func (*ShareVestingOptions) ProtoMessage

func (*ShareVestingOptions) ProtoMessage()

func (*ShareVestingOptions) Reset

func (m *ShareVestingOptions) Reset()

func (*ShareVestingOptions) Size

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

func (*ShareVestingOptions) String

func (m *ShareVestingOptions) String() string

func (*ShareVestingOptions) Unmarshal

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

func (ShareVestingOptions) Validate

func (m ShareVestingOptions) Validate() error

Validate check the ShareDelayedVesting object

func (*ShareVestingOptions) XXX_DiscardUnknown

func (m *ShareVestingOptions) XXX_DiscardUnknown()

func (*ShareVestingOptions) XXX_Marshal

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

func (*ShareVestingOptions) XXX_Merge

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

func (*ShareVestingOptions) XXX_OneofWrappers

func (*ShareVestingOptions) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ShareVestingOptions) XXX_Size

func (m *ShareVestingOptions) XXX_Size() int

func (*ShareVestingOptions) XXX_Unmarshal

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

type ShareVestingOptions_DelayedVesting

type ShareVestingOptions_DelayedVesting struct {
	DelayedVesting *ShareDelayedVesting `protobuf:"bytes,1,opt,name=delayed_vesting,json=delayedVesting,proto3,oneof" json:"delayed_vesting,omitempty"`
}

func (*ShareVestingOptions_DelayedVesting) MarshalTo

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

func (*ShareVestingOptions_DelayedVesting) MarshalToSizedBuffer

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

func (*ShareVestingOptions_DelayedVesting) Size

type Shares

type Shares sdk.Coins

Shares represents the portion of a supply

func DecreaseShares

func DecreaseShares(shares, toDecrease Shares) (Shares, error)

DecreaseShares decreases the number of shares or returns a error if shares can't be decreased

func EmptyShares

func EmptyShares() Shares

EmptyShares returns shares object that contains no share

func IncreaseShares

func IncreaseShares(shares, newShares Shares) Shares

IncreaseShares increases the number of shares

func NewShares

func NewShares(str string) (Shares, error)

NewShares returns new shares from comma-separated coins (100atom,200iris...)

func NewSharesFromCoins

func NewSharesFromCoins(coins sdk.Coins) Shares

NewSharesFromCoins returns new shares from the coins representation

func VouchersToShares

func VouchersToShares(vouchers sdk.Coins, projectID uint64) (Shares, error)

VouchersToShares returns new Shares from the Coins vouchers representation

func (Shares) AmountOf

func (shares Shares) AmountOf(denom string) int64

AmountOf returns the amount of a denom from shares

func (Shares) CoinsFromTotalSupply

func (shares Shares) CoinsFromTotalSupply(totalSupply sdk.Coins, totalShareNumber uint64) (coins sdk.Coins, err error)

CoinsFromTotalSupply returns the coins from a total supply reflected by the shares

func (Shares) Empty

func (shares Shares) Empty() bool

Empty returns true if there are no coins and false otherwise.

func (Shares) IsAllLTE

func (shares Shares) IsAllLTE(cmpShares Shares) bool

IsAllLTE returns true iff for every denom in shares, the denom is present at a smaller or equal amount in sharesB.

func (Shares) String

func (shares Shares) String() string

String returns all shares comma separated

type SpecialAllocations

type SpecialAllocations struct {
	GenesisDistribution Shares `` /* 177-byte string literal not displayed */
	ClaimableAirdrop    Shares `` /* 168-byte string literal not displayed */
}

func EmptySpecialAllocations

func EmptySpecialAllocations() SpecialAllocations

EmptySpecialAllocations returns special allocation with empty shares

func NewSpecialAllocations

func NewSpecialAllocations(genesisDistribution, claimableAirdrop Shares) SpecialAllocations

NewSpecialAllocations returns new special allocations

func (*SpecialAllocations) Descriptor

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

func (*SpecialAllocations) GetClaimableAirdrop

func (m *SpecialAllocations) GetClaimableAirdrop() Shares

func (*SpecialAllocations) GetGenesisDistribution

func (m *SpecialAllocations) GetGenesisDistribution() Shares

func (*SpecialAllocations) Marshal

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

func (*SpecialAllocations) MarshalTo

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

func (*SpecialAllocations) MarshalToSizedBuffer

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

func (*SpecialAllocations) ProtoMessage

func (*SpecialAllocations) ProtoMessage()

func (*SpecialAllocations) Reset

func (m *SpecialAllocations) Reset()

func (*SpecialAllocations) Size

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

func (*SpecialAllocations) String

func (m *SpecialAllocations) String() string

func (SpecialAllocations) TotalShares

func (sa SpecialAllocations) TotalShares() Shares

TotalShares returns the total amount of shares for the special allocations

func (*SpecialAllocations) Unmarshal

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

func (SpecialAllocations) Validate

func (sa SpecialAllocations) Validate() error

Validate validates the special allocation structure

func (*SpecialAllocations) XXX_DiscardUnknown

func (m *SpecialAllocations) XXX_DiscardUnknown()

func (*SpecialAllocations) XXX_Marshal

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

func (*SpecialAllocations) XXX_Merge

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

func (*SpecialAllocations) XXX_Size

func (m *SpecialAllocations) XXX_Size() int

func (*SpecialAllocations) XXX_Unmarshal

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

type TotalSupplyRange

type TotalSupplyRange struct {
	MinTotalSupply cosmossdk_io_math.Int `` /* 128-byte string literal not displayed */
	MaxTotalSupply cosmossdk_io_math.Int `` /* 128-byte string literal not displayed */
}

TotalSupplyRange defines the range of allowed values for total supply

func DefaultTotalSupplyRange

func DefaultTotalSupplyRange() TotalSupplyRange

DefaultTotalSupplyRange returns default total supply range.

func NewTotalSupplyRange

func NewTotalSupplyRange(minTotalSupply, maxTotalSupply sdkmath.Int) TotalSupplyRange

NewTotalSupplyRange creates a new TotalSupplyRange instance

func (*TotalSupplyRange) Descriptor

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

func (*TotalSupplyRange) Equal

func (sr *TotalSupplyRange) Equal(cmp *TotalSupplyRange) bool

func (*TotalSupplyRange) Marshal

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

func (*TotalSupplyRange) MarshalTo

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

func (*TotalSupplyRange) MarshalToSizedBuffer

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

func (*TotalSupplyRange) ProtoMessage

func (*TotalSupplyRange) ProtoMessage()

func (*TotalSupplyRange) Reset

func (m *TotalSupplyRange) Reset()

func (*TotalSupplyRange) Size

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

func (*TotalSupplyRange) String

func (m *TotalSupplyRange) String() string

func (*TotalSupplyRange) Unmarshal

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

func (TotalSupplyRange) ValidateBasic

func (sr TotalSupplyRange) ValidateBasic() error

ValidateBasic performs basic validation on an instance of TotalSupplyRange

func (*TotalSupplyRange) XXX_DiscardUnknown

func (m *TotalSupplyRange) XXX_DiscardUnknown()

func (*TotalSupplyRange) XXX_Marshal

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

func (*TotalSupplyRange) XXX_Merge

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

func (*TotalSupplyRange) XXX_Size

func (m *TotalSupplyRange) XXX_Size() int

func (*TotalSupplyRange) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnVouchers

func (*UnimplementedMsgServer) CreateProject

func (*UnimplementedMsgServer) EditProject

func (*UnimplementedMsgServer) InitializeMainnet

func (*UnimplementedMsgServer) MintVouchers

func (*UnimplementedMsgServer) RedeemVouchers

func (*UnimplementedMsgServer) UnredeemVouchers

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdateSpecialAllocations

func (*UnimplementedMsgServer) UpdateTotalSupply

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetMainnetAccount

func (*UnimplementedQueryServer) GetProject

func (*UnimplementedQueryServer) GetProjectChains

func (*UnimplementedQueryServer) ListMainnetAccount

func (*UnimplementedQueryServer) ListProject

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalShares

Jump to

Keyboard shortcuts

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