types

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 35 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 = "campaign"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_campaign"

	// CampaignKey is the prefix to retrieve all Campaign
	CampaignKey = "Campaign/value/"

	// CampaignCounterKey is the prefix to store campaign count
	CampaignCounterKey = "Campaign/count/"

	// TotalSharesKey is the prefix to retrieve TotalShares
	TotalSharesKey = "TotalShares/value/"

	// CampaignChainsKeyPrefix is the prefix to retrieve all CampaignChains
	CampaignChainsKeyPrefix = "CampaignChains/value/"

	// MainnetAccountKeyPrefix is the prefix to retrieve all MainnetAccount
	MainnetAccountKeyPrefix = "MainnetAccount/value/"

	// MainnetVestingAccountKeyPrefix is the prefix to retrieve all MainnetVestingAccount
	MainnetVestingAccountKeyPrefix = "MainnetVestingAccount/value/"
)
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 (
	CampaignNameMaxLength = 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/"
)
View Source
const TypeMsgAddShares = "add_shares"
View Source
const TypeMsgAddVestingOptions = "add_vesting_options"
View Source
const TypeMsgBurnVouchers = "burn_vouchers"
View Source
const TypeMsgCreateCampaign = "create_campaign"
View Source
const TypeMsgInitializeMainnet = "initialize_mainnet"
View Source
const TypeMsgMintVouchers = "mint_vouchers"
View Source
const TypeMsgRedeemVouchers = "redeem_vouchers"
View Source
const TypeMsgUnredeemVouchers = "unredeem_vouchers"
View Source
const TypeMsgUpdateTotalSupply = "update_total_supply"

Variables

View Source
var (
	ErrInvalidLengthCampaign        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCampaign          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCampaign = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCampaignChains        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCampaignChains          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCampaignChains = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthCampaignSummary        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCampaignSummary          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCampaignSummary = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidTotalSupply     = sdkerrors.Register(ModuleName, 2, "invalid total supply")
	ErrCampaignNotFound       = sdkerrors.Register(ModuleName, 3, "campaign not found")
	ErrMainnetInitialized     = sdkerrors.Register(ModuleName, 4, "mainnet initialized")
	ErrInvalidShares          = sdkerrors.Register(ModuleName, 5, "invalid shares")
	ErrTotalSharesLimit       = sdkerrors.Register(ModuleName, 6, "allocated shares greater than total shares")
	ErrAccountNotFound        = sdkerrors.Register(ModuleName, 7, "account not found")
	ErrSharesDecrease         = sdkerrors.Register(ModuleName, 8, "shares can't be decreased")
	ErrVouchersMinting        = sdkerrors.Register(ModuleName, 9, "vouchers can't be minted")
	ErrInvalidVouchers        = sdkerrors.Register(ModuleName, 10, "invalid vouchers")
	ErrNoMatchVouchers        = sdkerrors.Register(ModuleName, 11, "vouchers don't match to campaign")
	ErrInsufficientVouchers   = sdkerrors.Register(ModuleName, 12, "account with insufficient vouchers")
	ErrInvalidCampaignName    = sdkerrors.Register(ModuleName, 13, "invalid campaign name")
	ErrInvalidSupplyRange     = sdkerrors.Register(ModuleName, 14, "invalid total supply range")
	ErrInvalidMetadataLength  = sdkerrors.Register(ModuleName, 15, "metadata field too long")
	ErrMainnetLaunchTriggered = sdkerrors.Register(ModuleName, 16, "mainnet launch already triggered")
)

x/campaign module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	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 (
	ErrInvalidLengthMainnetVestingAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMainnetVestingAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMainnetVestingAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMinTotalSupply      = sdk.NewInt(100)                   // One hundred
	DefaultMaxTotalSupply      = sdk.NewInt(1_000_000_000_000_000) // One Quadrillion
	DefaultCampaignCreationFee = sdk.Coins(nil)                    // EmptyCoins

	KeyTotalSupplyRange    = []byte("TotalSupplyRange")
	KeyCampaignCreationFee = []byte("CampaignCreationFee")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AccountKeyPath added in v0.2.1

func AccountKeyPath(campaignID uint64, address string) []byte

AccountKeyPath returns the store key path without prefix for an account defined by a campaign ID and an address

func CampaignChainsKey

func CampaignChainsKey(campaignID uint64) []byte

CampaignChainsKey returns the store key to retrieve a CampaignChains from the index fields

func CheckCampaignName

func CheckCampaignName(campaignName string) error

CheckCampaignName verifies the name is valid as a campaign name

func CheckShares

func CheckShares(shares Shares) error

CheckShares checks if given shares are valid shares

func CheckVouchers

func CheckVouchers(vouchers sdk.Coins, campaignID 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 KeyPrefix

func KeyPrefix(p string) []byte

func MainnetAccountAllKey

func MainnetAccountAllKey(campaignID uint64) []byte

MainnetAccountAllKey returns the store key to retrieve all MainnetAccount by campaign id

func MainnetVestingAccountAllKey

func MainnetVestingAccountAllKey(campaignID uint64) []byte

MainnetVestingAccountAllKey returns the store key to retrieve all MainnetVestingAccount by campaign id

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SharesToVouchers

func SharesToVouchers(shares Shares, campaignID 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 VoucherCampaign

func VoucherCampaign(denom string) (uint64, error)

VoucherCampaign returns the campaign associated to a voucher denom

func VoucherDenom

func VoucherDenom(campaignID uint64, denom string) string

VoucherDenom returns the Voucher name with prefix

func VoucherToShareDenom

func VoucherToShareDenom(campaignID uint64, denom string) string

VoucherToShareDenom remove the voucher prefix and add the share prefix

Types

type AccountKeeper

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

type BankKeeper

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

type Campaign

type Campaign struct {
	CampaignID         uint64                                   `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	CampaignName       string                                   `protobuf:"bytes,2,opt,name=campaignName,proto3" json:"campaignName,omitempty"`
	CoordinatorID      uint64                                   `protobuf:"varint,3,opt,name=coordinatorID,proto3" json:"coordinatorID,omitempty"`
	MainnetID          uint64                                   `protobuf:"varint,4,opt,name=mainnetID,proto3" json:"mainnetID,omitempty"`
	MainnetInitialized bool                                     `protobuf:"varint,5,opt,name=mainnetInitialized,proto3" json:"mainnetInitialized,omitempty"`
	TotalSupply        github_com_cosmos_cosmos_sdk_types.Coins `` /* 168-byte string literal not displayed */
	AllocatedShares    Shares                                   `` /* 142-byte string literal not displayed */
	Metadata           []byte                                   `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func NewCampaign

func NewCampaign(campaignID uint64, campaignName string, coordinatorID uint64, totalSupply sdk.Coins, metadata []byte) Campaign

NewCampaign returns a new initialized campaign

func (*Campaign) Descriptor

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

func (*Campaign) GetAllocatedShares

func (m *Campaign) GetAllocatedShares() Shares

func (*Campaign) GetCampaignID

func (m *Campaign) GetCampaignID() uint64

func (*Campaign) GetCampaignName

func (m *Campaign) GetCampaignName() string

func (*Campaign) GetCoordinatorID

func (m *Campaign) GetCoordinatorID() uint64

func (*Campaign) GetMainnetID

func (m *Campaign) GetMainnetID() uint64

func (*Campaign) GetMainnetInitialized

func (m *Campaign) GetMainnetInitialized() bool

func (*Campaign) GetMetadata

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

func (*Campaign) GetTotalSupply

func (*Campaign) Marshal

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

func (*Campaign) MarshalTo

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

func (*Campaign) MarshalToSizedBuffer

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

func (*Campaign) ProtoMessage

func (*Campaign) ProtoMessage()

func (*Campaign) Reset

func (m *Campaign) Reset()

func (*Campaign) Size

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

func (*Campaign) String

func (m *Campaign) String() string

func (*Campaign) Unmarshal

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

func (Campaign) Validate

func (m Campaign) Validate(totalShareNumber uint64) error

Validate checks the campaign is valid

func (*Campaign) XXX_DiscardUnknown

func (m *Campaign) XXX_DiscardUnknown()

func (*Campaign) XXX_Marshal

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

func (*Campaign) XXX_Merge

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

func (*Campaign) XXX_Size

func (m *Campaign) XXX_Size() int

func (*Campaign) XXX_Unmarshal

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

type CampaignChains

type CampaignChains struct {
	CampaignID uint64   `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Chains     []uint64 `protobuf:"varint,2,rep,packed,name=chains,proto3" json:"chains,omitempty"`
}

func (*CampaignChains) Descriptor

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

func (*CampaignChains) GetCampaignID

func (m *CampaignChains) GetCampaignID() uint64

func (*CampaignChains) GetChains

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

func (*CampaignChains) Marshal

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

func (*CampaignChains) MarshalTo

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

func (*CampaignChains) MarshalToSizedBuffer

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

func (*CampaignChains) ProtoMessage

func (*CampaignChains) ProtoMessage()

func (*CampaignChains) Reset

func (m *CampaignChains) Reset()

func (*CampaignChains) Size

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

func (*CampaignChains) String

func (m *CampaignChains) String() string

func (*CampaignChains) Unmarshal

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

func (*CampaignChains) XXX_DiscardUnknown

func (m *CampaignChains) XXX_DiscardUnknown()

func (*CampaignChains) XXX_Marshal

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

func (*CampaignChains) XXX_Merge

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

func (*CampaignChains) XXX_Size

func (m *CampaignChains) XXX_Size() int

func (*CampaignChains) XXX_Unmarshal

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

type CampaignSummary

type CampaignSummary struct {
	Campaign           Campaign                                 `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign"`
	HasMostRecentChain bool                                     `protobuf:"varint,2,opt,name=hasMostRecentChain,proto3" json:"hasMostRecentChain,omitempty"`
	MostRecentChain    MostRecentChain                          `protobuf:"bytes,3,opt,name=mostRecentChain,proto3" json:"mostRecentChain"`
	Incentivized       bool                                     `protobuf:"varint,4,opt,name=incentivized,proto3" json:"incentivized,omitempty"`
	Rewards            github_com_cosmos_cosmos_sdk_types.Coins `` /* 160-byte string literal not displayed */
	RewardsDistributed bool                                     `protobuf:"varint,6,opt,name=rewardsDistributed,proto3" json:"rewardsDistributed,omitempty"`
	PreviousRewards    github_com_cosmos_cosmos_sdk_types.Coins `` /* 176-byte string literal not displayed */
}

func (*CampaignSummary) Descriptor

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

func (*CampaignSummary) GetCampaign

func (m *CampaignSummary) GetCampaign() Campaign

func (*CampaignSummary) GetHasMostRecentChain

func (m *CampaignSummary) GetHasMostRecentChain() bool

func (*CampaignSummary) GetIncentivized

func (m *CampaignSummary) GetIncentivized() bool

func (*CampaignSummary) GetMostRecentChain

func (m *CampaignSummary) GetMostRecentChain() MostRecentChain

func (*CampaignSummary) GetPreviousRewards

func (*CampaignSummary) GetRewards

func (*CampaignSummary) GetRewardsDistributed

func (m *CampaignSummary) GetRewardsDistributed() bool

func (*CampaignSummary) Marshal

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

func (*CampaignSummary) MarshalTo

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

func (*CampaignSummary) MarshalToSizedBuffer

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

func (*CampaignSummary) ProtoMessage

func (*CampaignSummary) ProtoMessage()

func (*CampaignSummary) Reset

func (m *CampaignSummary) Reset()

func (*CampaignSummary) Size

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

func (*CampaignSummary) String

func (m *CampaignSummary) String() string

func (*CampaignSummary) Unmarshal

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

func (*CampaignSummary) XXX_DiscardUnknown

func (m *CampaignSummary) XXX_DiscardUnknown()

func (*CampaignSummary) XXX_Marshal

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

func (*CampaignSummary) XXX_Merge

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

func (*CampaignSummary) XXX_Size

func (m *CampaignSummary) XXX_Size() int

func (*CampaignSummary) XXX_Unmarshal

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

type DistributionKeeper

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

type GenesisState

type GenesisState struct {
	CampaignList              []Campaign              `protobuf:"bytes,1,rep,name=campaignList,proto3" json:"campaignList"`
	CampaignCounter           uint64                  `protobuf:"varint,2,opt,name=campaignCounter,proto3" json:"campaignCounter,omitempty"`
	CampaignChainsList        []CampaignChains        `protobuf:"bytes,3,rep,name=campaignChainsList,proto3" json:"campaignChainsList"`
	MainnetAccountList        []MainnetAccount        `protobuf:"bytes,4,rep,name=mainnetAccountList,proto3" json:"mainnetAccountList"`
	MainnetVestingAccountList []MainnetVestingAccount `protobuf:"bytes,5,rep,name=mainnetVestingAccountList,proto3" json:"mainnetVestingAccountList"`
	TotalShares               uint64                  `protobuf:"varint,6,opt,name=totalShares,proto3" json:"totalShares,omitempty"`
	Params                    Params                  `protobuf:"bytes,7,opt,name=params,proto3" json:"params"`
}

GenesisState defines the campaign module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCampaignChainsList

func (m *GenesisState) GetCampaignChainsList() []CampaignChains

func (*GenesisState) GetCampaignCounter

func (m *GenesisState) GetCampaignCounter() uint64

func (*GenesisState) GetCampaignList

func (m *GenesisState) GetCampaignList() []Campaign

func (*GenesisState) GetMainnetAccountList

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

func (*GenesisState) GetMainnetVestingAccountList

func (m *GenesisState) GetMainnetVestingAccountList() []MainnetVestingAccount

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,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) GetCampaignID

func (m *MainnetAccount) GetCampaignID() 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 MainnetVestingAccount

type MainnetVestingAccount struct {
	CampaignID     uint64              `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Address        string              `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	VestingOptions ShareVestingOptions `protobuf:"bytes,3,opt,name=vestingOptions,proto3" json:"vestingOptions"`
}

func (*MainnetVestingAccount) Descriptor

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

func (*MainnetVestingAccount) GetAddress

func (m *MainnetVestingAccount) GetAddress() string

func (*MainnetVestingAccount) GetCampaignID

func (m *MainnetVestingAccount) GetCampaignID() uint64

func (MainnetVestingAccount) GetTotalShares

func (m MainnetVestingAccount) GetTotalShares() (Shares, error)

GetTotalShares return total shares for account and delayed vesting options

func (*MainnetVestingAccount) GetVestingOptions

func (m *MainnetVestingAccount) GetVestingOptions() ShareVestingOptions

func (*MainnetVestingAccount) Marshal

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

func (*MainnetVestingAccount) MarshalTo

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

func (*MainnetVestingAccount) MarshalToSizedBuffer

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

func (*MainnetVestingAccount) ProtoMessage

func (*MainnetVestingAccount) ProtoMessage()

func (*MainnetVestingAccount) Reset

func (m *MainnetVestingAccount) Reset()

func (*MainnetVestingAccount) Size

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

func (*MainnetVestingAccount) String

func (m *MainnetVestingAccount) String() string

func (*MainnetVestingAccount) Unmarshal

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

func (*MainnetVestingAccount) XXX_DiscardUnknown

func (m *MainnetVestingAccount) XXX_DiscardUnknown()

func (*MainnetVestingAccount) XXX_Marshal

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

func (*MainnetVestingAccount) XXX_Merge

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

func (*MainnetVestingAccount) XXX_Size

func (m *MainnetVestingAccount) XXX_Size() int

func (*MainnetVestingAccount) XXX_Unmarshal

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

type MostRecentChain

type MostRecentChain struct {
	LaunchID        uint64 `protobuf:"varint,1,opt,name=launchID,proto3" json:"launchID,omitempty"`
	LaunchTriggered bool   `protobuf:"varint,2,opt,name=launchTriggered,proto3" json:"launchTriggered,omitempty"`
	SourceURL       string `protobuf:"bytes,3,opt,name=sourceURL,proto3" json:"sourceURL,omitempty"`
	SourceHash      string `protobuf:"bytes,4,opt,name=sourceHash,proto3" json:"sourceHash,omitempty"`
	RequestNb       uint64 `protobuf:"varint,5,opt,name=requestNb,proto3" json:"requestNb,omitempty"`
	ValidatorNb     uint64 `protobuf:"varint,6,opt,name=validatorNb,proto3" json:"validatorNb,omitempty"`
}

func (*MostRecentChain) Descriptor

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

func (*MostRecentChain) GetLaunchID

func (m *MostRecentChain) GetLaunchID() uint64

func (*MostRecentChain) GetLaunchTriggered

func (m *MostRecentChain) GetLaunchTriggered() bool

func (*MostRecentChain) GetRequestNb

func (m *MostRecentChain) GetRequestNb() uint64

func (*MostRecentChain) GetSourceHash

func (m *MostRecentChain) GetSourceHash() string

func (*MostRecentChain) GetSourceURL

func (m *MostRecentChain) GetSourceURL() string

func (*MostRecentChain) GetValidatorNb

func (m *MostRecentChain) GetValidatorNb() uint64

func (*MostRecentChain) Marshal

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

func (*MostRecentChain) MarshalTo

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

func (*MostRecentChain) MarshalToSizedBuffer

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

func (*MostRecentChain) ProtoMessage

func (*MostRecentChain) ProtoMessage()

func (*MostRecentChain) Reset

func (m *MostRecentChain) Reset()

func (*MostRecentChain) Size

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

func (*MostRecentChain) String

func (m *MostRecentChain) String() string

func (*MostRecentChain) Unmarshal

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

func (*MostRecentChain) XXX_DiscardUnknown

func (m *MostRecentChain) XXX_DiscardUnknown()

func (*MostRecentChain) XXX_Marshal

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

func (*MostRecentChain) XXX_Merge

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

func (*MostRecentChain) XXX_Size

func (m *MostRecentChain) XXX_Size() int

func (*MostRecentChain) XXX_Unmarshal

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

type MsgAddShares

type MsgAddShares struct {
	Coordinator string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	CampaignID  uint64 `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Address     string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Shares      Shares `protobuf:"bytes,4,rep,name=shares,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin,castrepeated=Shares" json:"shares"`
}

func NewMsgAddShares

func NewMsgAddShares(campaignID uint64, coordinator, address string, shares Shares) *MsgAddShares

func (*MsgAddShares) Descriptor

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

func (*MsgAddShares) GetAddress

func (m *MsgAddShares) GetAddress() string

func (*MsgAddShares) GetCampaignID

func (m *MsgAddShares) GetCampaignID() uint64

func (*MsgAddShares) GetCoordinator

func (m *MsgAddShares) GetCoordinator() string

func (*MsgAddShares) GetShares

func (m *MsgAddShares) GetShares() Shares

func (*MsgAddShares) GetSignBytes

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

func (*MsgAddShares) GetSigners

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

func (*MsgAddShares) Marshal

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

func (*MsgAddShares) MarshalTo

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

func (*MsgAddShares) MarshalToSizedBuffer

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

func (*MsgAddShares) ProtoMessage

func (*MsgAddShares) ProtoMessage()

func (*MsgAddShares) Reset

func (m *MsgAddShares) Reset()

func (*MsgAddShares) Route

func (msg *MsgAddShares) Route() string

func (*MsgAddShares) Size

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

func (*MsgAddShares) String

func (m *MsgAddShares) String() string

func (*MsgAddShares) Type

func (msg *MsgAddShares) Type() string

func (*MsgAddShares) Unmarshal

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

func (*MsgAddShares) ValidateBasic

func (msg *MsgAddShares) ValidateBasic() error

func (*MsgAddShares) XXX_DiscardUnknown

func (m *MsgAddShares) XXX_DiscardUnknown()

func (*MsgAddShares) XXX_Marshal

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

func (*MsgAddShares) XXX_Merge

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

func (*MsgAddShares) XXX_Size

func (m *MsgAddShares) XXX_Size() int

func (*MsgAddShares) XXX_Unmarshal

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

type MsgAddSharesResponse

type MsgAddSharesResponse struct {
}

func (*MsgAddSharesResponse) Descriptor

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

func (*MsgAddSharesResponse) Marshal

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

func (*MsgAddSharesResponse) MarshalTo

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

func (*MsgAddSharesResponse) MarshalToSizedBuffer

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

func (*MsgAddSharesResponse) ProtoMessage

func (*MsgAddSharesResponse) ProtoMessage()

func (*MsgAddSharesResponse) Reset

func (m *MsgAddSharesResponse) Reset()

func (*MsgAddSharesResponse) Size

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

func (*MsgAddSharesResponse) String

func (m *MsgAddSharesResponse) String() string

func (*MsgAddSharesResponse) Unmarshal

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

func (*MsgAddSharesResponse) XXX_DiscardUnknown

func (m *MsgAddSharesResponse) XXX_DiscardUnknown()

func (*MsgAddSharesResponse) XXX_Marshal

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

func (*MsgAddSharesResponse) XXX_Merge

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

func (*MsgAddSharesResponse) XXX_Size

func (m *MsgAddSharesResponse) XXX_Size() int

func (*MsgAddSharesResponse) XXX_Unmarshal

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

type MsgAddVestingOptions

type MsgAddVestingOptions struct {
	Coordinator    string              `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	CampaignID     uint64              `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Address        string              `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	VestingOptions ShareVestingOptions `protobuf:"bytes,4,opt,name=vestingOptions,proto3" json:"vestingOptions"`
}

func NewMsgAddVestingOptions

func NewMsgAddVestingOptions(
	campaignID uint64,
	coordinator,
	address string,
	options ShareVestingOptions,
) *MsgAddVestingOptions

func (*MsgAddVestingOptions) Descriptor

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

func (*MsgAddVestingOptions) GetAddress

func (m *MsgAddVestingOptions) GetAddress() string

func (*MsgAddVestingOptions) GetCampaignID

func (m *MsgAddVestingOptions) GetCampaignID() uint64

func (*MsgAddVestingOptions) GetCoordinator

func (m *MsgAddVestingOptions) GetCoordinator() string

func (*MsgAddVestingOptions) GetSignBytes

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

func (*MsgAddVestingOptions) GetSigners

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

func (*MsgAddVestingOptions) GetVestingOptions

func (m *MsgAddVestingOptions) GetVestingOptions() ShareVestingOptions

func (*MsgAddVestingOptions) Marshal

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

func (*MsgAddVestingOptions) MarshalTo

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

func (*MsgAddVestingOptions) MarshalToSizedBuffer

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

func (*MsgAddVestingOptions) ProtoMessage

func (*MsgAddVestingOptions) ProtoMessage()

func (*MsgAddVestingOptions) Reset

func (m *MsgAddVestingOptions) Reset()

func (*MsgAddVestingOptions) Route

func (msg *MsgAddVestingOptions) Route() string

func (*MsgAddVestingOptions) Size

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

func (*MsgAddVestingOptions) String

func (m *MsgAddVestingOptions) String() string

func (*MsgAddVestingOptions) Type

func (msg *MsgAddVestingOptions) Type() string

func (*MsgAddVestingOptions) Unmarshal

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

func (*MsgAddVestingOptions) ValidateBasic

func (msg *MsgAddVestingOptions) ValidateBasic() error

func (*MsgAddVestingOptions) XXX_DiscardUnknown

func (m *MsgAddVestingOptions) XXX_DiscardUnknown()

func (*MsgAddVestingOptions) XXX_Marshal

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

func (*MsgAddVestingOptions) XXX_Merge

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

func (*MsgAddVestingOptions) XXX_Size

func (m *MsgAddVestingOptions) XXX_Size() int

func (*MsgAddVestingOptions) XXX_Unmarshal

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

type MsgAddVestingOptionsResponse

type MsgAddVestingOptionsResponse struct {
}

func (*MsgAddVestingOptionsResponse) Descriptor

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

func (*MsgAddVestingOptionsResponse) Marshal

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

func (*MsgAddVestingOptionsResponse) MarshalTo

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

func (*MsgAddVestingOptionsResponse) MarshalToSizedBuffer

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

func (*MsgAddVestingOptionsResponse) ProtoMessage

func (*MsgAddVestingOptionsResponse) ProtoMessage()

func (*MsgAddVestingOptionsResponse) Reset

func (m *MsgAddVestingOptionsResponse) Reset()

func (*MsgAddVestingOptionsResponse) Size

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

func (*MsgAddVestingOptionsResponse) String

func (*MsgAddVestingOptionsResponse) Unmarshal

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

func (*MsgAddVestingOptionsResponse) XXX_DiscardUnknown

func (m *MsgAddVestingOptionsResponse) XXX_DiscardUnknown()

func (*MsgAddVestingOptionsResponse) XXX_Marshal

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

func (*MsgAddVestingOptionsResponse) XXX_Merge

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

func (*MsgAddVestingOptionsResponse) XXX_Size

func (m *MsgAddVestingOptionsResponse) XXX_Size() int

func (*MsgAddVestingOptionsResponse) XXX_Unmarshal

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

type MsgBurnVouchers

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

func NewMsgBurnVouchers

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

func (*MsgBurnVouchers) Descriptor

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

func (*MsgBurnVouchers) GetCampaignID

func (m *MsgBurnVouchers) GetCampaignID() uint64

func (*MsgBurnVouchers) GetSender

func (m *MsgBurnVouchers) GetSender() string

func (*MsgBurnVouchers) GetSignBytes

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

func (*MsgBurnVouchers) GetSigners

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

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

func (msg *MsgBurnVouchers) Route() string

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

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 MsgCreateCampaign

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

func NewMsgCreateCampaign

func NewMsgCreateCampaign(
	coordinator string,
	campaignName string,
	totalSupply sdk.Coins,
	metadata []byte,
) *MsgCreateCampaign

func (*MsgCreateCampaign) Descriptor

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

func (*MsgCreateCampaign) GetCampaignName

func (m *MsgCreateCampaign) GetCampaignName() string

func (*MsgCreateCampaign) GetCoordinator

func (m *MsgCreateCampaign) GetCoordinator() string

func (*MsgCreateCampaign) GetMetadata

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

func (*MsgCreateCampaign) GetSignBytes

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

func (*MsgCreateCampaign) GetSigners

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

func (*MsgCreateCampaign) GetTotalSupply

func (*MsgCreateCampaign) Marshal

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

func (*MsgCreateCampaign) MarshalTo

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

func (*MsgCreateCampaign) MarshalToSizedBuffer

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

func (*MsgCreateCampaign) ProtoMessage

func (*MsgCreateCampaign) ProtoMessage()

func (*MsgCreateCampaign) Reset

func (m *MsgCreateCampaign) Reset()

func (*MsgCreateCampaign) Route

func (msg *MsgCreateCampaign) Route() string

func (*MsgCreateCampaign) Size

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

func (*MsgCreateCampaign) String

func (m *MsgCreateCampaign) String() string

func (*MsgCreateCampaign) Type

func (msg *MsgCreateCampaign) Type() string

func (*MsgCreateCampaign) Unmarshal

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

func (*MsgCreateCampaign) ValidateBasic

func (msg *MsgCreateCampaign) ValidateBasic() error

func (*MsgCreateCampaign) XXX_DiscardUnknown

func (m *MsgCreateCampaign) XXX_DiscardUnknown()

func (*MsgCreateCampaign) XXX_Marshal

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

func (*MsgCreateCampaign) XXX_Merge

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

func (*MsgCreateCampaign) XXX_Size

func (m *MsgCreateCampaign) XXX_Size() int

func (*MsgCreateCampaign) XXX_Unmarshal

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

type MsgCreateCampaignResponse

type MsgCreateCampaignResponse struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
}

func (*MsgCreateCampaignResponse) Descriptor

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

func (*MsgCreateCampaignResponse) GetCampaignID

func (m *MsgCreateCampaignResponse) GetCampaignID() uint64

func (*MsgCreateCampaignResponse) Marshal

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

func (*MsgCreateCampaignResponse) MarshalTo

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

func (*MsgCreateCampaignResponse) MarshalToSizedBuffer

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

func (*MsgCreateCampaignResponse) ProtoMessage

func (*MsgCreateCampaignResponse) ProtoMessage()

func (*MsgCreateCampaignResponse) Reset

func (m *MsgCreateCampaignResponse) Reset()

func (*MsgCreateCampaignResponse) Size

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

func (*MsgCreateCampaignResponse) String

func (m *MsgCreateCampaignResponse) String() string

func (*MsgCreateCampaignResponse) Unmarshal

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

func (*MsgCreateCampaignResponse) XXX_DiscardUnknown

func (m *MsgCreateCampaignResponse) XXX_DiscardUnknown()

func (*MsgCreateCampaignResponse) XXX_Marshal

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

func (*MsgCreateCampaignResponse) XXX_Merge

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

func (*MsgCreateCampaignResponse) XXX_Size

func (m *MsgCreateCampaignResponse) XXX_Size() int

func (*MsgCreateCampaignResponse) XXX_Unmarshal

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

type MsgEditCampaign

type MsgEditCampaign struct {
	Coordinator string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	CampaignID  uint64 `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,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 NewMsgEditCampaign

func NewMsgEditCampaign(coordinator, name string, campaignID uint64, metadata []byte) *MsgEditCampaign

func (*MsgEditCampaign) Descriptor

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

func (*MsgEditCampaign) GetCampaignID

func (m *MsgEditCampaign) GetCampaignID() uint64

func (*MsgEditCampaign) GetCoordinator

func (m *MsgEditCampaign) GetCoordinator() string

func (*MsgEditCampaign) GetMetadata

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

func (*MsgEditCampaign) GetName

func (m *MsgEditCampaign) GetName() string

func (*MsgEditCampaign) GetSignBytes

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

func (*MsgEditCampaign) GetSigners

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

func (*MsgEditCampaign) Marshal

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

func (*MsgEditCampaign) MarshalTo

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

func (*MsgEditCampaign) MarshalToSizedBuffer

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

func (*MsgEditCampaign) ProtoMessage

func (*MsgEditCampaign) ProtoMessage()

func (*MsgEditCampaign) Reset

func (m *MsgEditCampaign) Reset()

func (*MsgEditCampaign) Route

func (msg *MsgEditCampaign) Route() string

func (*MsgEditCampaign) Size

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

func (*MsgEditCampaign) String

func (m *MsgEditCampaign) String() string

func (*MsgEditCampaign) Type

func (msg *MsgEditCampaign) Type() string

func (*MsgEditCampaign) Unmarshal

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

func (*MsgEditCampaign) ValidateBasic

func (msg *MsgEditCampaign) ValidateBasic() error

func (*MsgEditCampaign) XXX_DiscardUnknown

func (m *MsgEditCampaign) XXX_DiscardUnknown()

func (*MsgEditCampaign) XXX_Marshal

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

func (*MsgEditCampaign) XXX_Merge

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

func (*MsgEditCampaign) XXX_Size

func (m *MsgEditCampaign) XXX_Size() int

func (*MsgEditCampaign) XXX_Unmarshal

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

type MsgEditCampaignResponse

type MsgEditCampaignResponse struct {
}

func (*MsgEditCampaignResponse) Descriptor

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

func (*MsgEditCampaignResponse) Marshal

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

func (*MsgEditCampaignResponse) MarshalTo

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

func (*MsgEditCampaignResponse) MarshalToSizedBuffer

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

func (*MsgEditCampaignResponse) ProtoMessage

func (*MsgEditCampaignResponse) ProtoMessage()

func (*MsgEditCampaignResponse) Reset

func (m *MsgEditCampaignResponse) Reset()

func (*MsgEditCampaignResponse) Size

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

func (*MsgEditCampaignResponse) String

func (m *MsgEditCampaignResponse) String() string

func (*MsgEditCampaignResponse) Unmarshal

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

func (*MsgEditCampaignResponse) XXX_DiscardUnknown

func (m *MsgEditCampaignResponse) XXX_DiscardUnknown()

func (*MsgEditCampaignResponse) XXX_Marshal

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

func (*MsgEditCampaignResponse) XXX_Merge

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

func (*MsgEditCampaignResponse) XXX_Size

func (m *MsgEditCampaignResponse) XXX_Size() int

func (*MsgEditCampaignResponse) XXX_Unmarshal

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

type MsgInitializeMainnet

type MsgInitializeMainnet struct {
	Coordinator    string `protobuf:"bytes,1,opt,name=coordinator,proto3" json:"coordinator,omitempty"`
	CampaignID     uint64 `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	SourceURL      string `protobuf:"bytes,3,opt,name=sourceURL,proto3" json:"sourceURL,omitempty"`
	SourceHash     string `protobuf:"bytes,4,opt,name=sourceHash,proto3" json:"sourceHash,omitempty"`
	MainnetChainID string `protobuf:"bytes,5,opt,name=mainnetChainID,proto3" json:"mainnetChainID,omitempty"`
}

func NewMsgInitializeMainnet

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

func (*MsgInitializeMainnet) Descriptor

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

func (*MsgInitializeMainnet) GetCampaignID

func (m *MsgInitializeMainnet) GetCampaignID() uint64

func (*MsgInitializeMainnet) GetCoordinator

func (m *MsgInitializeMainnet) GetCoordinator() string

func (*MsgInitializeMainnet) GetMainnetChainID

func (m *MsgInitializeMainnet) GetMainnetChainID() string

func (*MsgInitializeMainnet) GetSignBytes

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

func (*MsgInitializeMainnet) GetSigners

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

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

func (msg *MsgInitializeMainnet) Route() string

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=mainnetID,proto3" json:"mainnetID,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"`
	CampaignID  uint64 `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,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, campaignID uint64, shares Shares) *MsgMintVouchers

func (*MsgMintVouchers) Descriptor

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

func (*MsgMintVouchers) GetCampaignID

func (m *MsgMintVouchers) GetCampaignID() uint64

func (*MsgMintVouchers) GetCoordinator

func (m *MsgMintVouchers) GetCoordinator() string

func (*MsgMintVouchers) GetShares

func (m *MsgMintVouchers) GetShares() Shares

func (*MsgMintVouchers) GetSignBytes

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

func (*MsgMintVouchers) GetSigners

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

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

func (msg *MsgMintVouchers) Route() string

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"`
	CampaignID uint64                                   `protobuf:"varint,2,opt,name=campaignID,proto3" json:"campaignID,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, account string, campaignID uint64, vouchers sdk.Coins) *MsgRedeemVouchers

func (*MsgRedeemVouchers) Descriptor

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

func (*MsgRedeemVouchers) GetAccount

func (m *MsgRedeemVouchers) GetAccount() string

func (*MsgRedeemVouchers) GetCampaignID

func (m *MsgRedeemVouchers) GetCampaignID() uint64

func (*MsgRedeemVouchers) GetSender

func (m *MsgRedeemVouchers) GetSender() string

func (*MsgRedeemVouchers) GetSignBytes

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

func (*MsgRedeemVouchers) GetSigners

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

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

func (msg *MsgRedeemVouchers) Route() string

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 MsgUnredeemVouchers

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

func NewMsgUnredeemVouchers

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

func (*MsgUnredeemVouchers) Descriptor

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

func (*MsgUnredeemVouchers) GetCampaignID

func (m *MsgUnredeemVouchers) GetCampaignID() uint64

func (*MsgUnredeemVouchers) GetSender

func (m *MsgUnredeemVouchers) GetSender() string

func (*MsgUnredeemVouchers) GetShares

func (m *MsgUnredeemVouchers) GetShares() Shares

func (*MsgUnredeemVouchers) GetSignBytes

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

func (*MsgUnredeemVouchers) GetSigners

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

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

func (msg *MsgUnredeemVouchers) Route() string

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 MsgUpdateTotalSupply

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

func NewMsgUpdateTotalSupply

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

func (*MsgUpdateTotalSupply) Descriptor

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

func (*MsgUpdateTotalSupply) GetCampaignID

func (m *MsgUpdateTotalSupply) GetCampaignID() uint64

func (*MsgUpdateTotalSupply) GetCoordinator

func (m *MsgUpdateTotalSupply) GetCoordinator() string

func (*MsgUpdateTotalSupply) GetSignBytes

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

func (*MsgUpdateTotalSupply) GetSigners

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

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

func (msg *MsgUpdateTotalSupply) Route() string

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 Params

type Params struct {
	TotalSupplyRange    TotalSupplyRange                         `protobuf:"bytes,1,opt,name=totalSupplyRange,proto3" json:"totalSupplyRange"`
	CampaignCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 184-byte string literal not displayed */
}

Params defines the set of params for the campaign module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default campaign parameters

func NewParams

func NewParams(minTotalSupply, maxTotalSupply sdk.Int, campaignCreationFee sdk.Coins) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetCampaignCreationFee

func (m *Params) GetCampaignCreationFee() 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) ParamSetPairs

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

ParamSetPairs returns the parameter set pairs.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements stringer interface

func (*Params) Unmarshal

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

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on campaign parameters.

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 {
	GetAllCoordinator(ctx sdk.Context) []profiletypes.Coordinator
	GetCoordinator(ctx sdk.Context, id uint64) (val profiletypes.Coordinator, found bool)
	CoordinatorIDFromAddress(ctx sdk.Context, address string) (id uint64, err error)
}

type QueryAllCampaignRequest

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

func (*QueryAllCampaignRequest) Descriptor

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

func (*QueryAllCampaignRequest) GetPagination

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

func (*QueryAllCampaignRequest) Marshal

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

func (*QueryAllCampaignRequest) MarshalTo

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

func (*QueryAllCampaignRequest) MarshalToSizedBuffer

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

func (*QueryAllCampaignRequest) ProtoMessage

func (*QueryAllCampaignRequest) ProtoMessage()

func (*QueryAllCampaignRequest) Reset

func (m *QueryAllCampaignRequest) Reset()

func (*QueryAllCampaignRequest) Size

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

func (*QueryAllCampaignRequest) String

func (m *QueryAllCampaignRequest) String() string

func (*QueryAllCampaignRequest) Unmarshal

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

func (*QueryAllCampaignRequest) XXX_DiscardUnknown

func (m *QueryAllCampaignRequest) XXX_DiscardUnknown()

func (*QueryAllCampaignRequest) XXX_Marshal

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

func (*QueryAllCampaignRequest) XXX_Merge

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

func (*QueryAllCampaignRequest) XXX_Size

func (m *QueryAllCampaignRequest) XXX_Size() int

func (*QueryAllCampaignRequest) XXX_Unmarshal

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

type QueryAllCampaignResponse

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

func (*QueryAllCampaignResponse) Descriptor

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

func (*QueryAllCampaignResponse) GetCampaign

func (m *QueryAllCampaignResponse) GetCampaign() []Campaign

func (*QueryAllCampaignResponse) GetPagination

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

func (*QueryAllCampaignResponse) Marshal

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

func (*QueryAllCampaignResponse) MarshalTo

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

func (*QueryAllCampaignResponse) MarshalToSizedBuffer

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

func (*QueryAllCampaignResponse) ProtoMessage

func (*QueryAllCampaignResponse) ProtoMessage()

func (*QueryAllCampaignResponse) Reset

func (m *QueryAllCampaignResponse) Reset()

func (*QueryAllCampaignResponse) Size

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

func (*QueryAllCampaignResponse) String

func (m *QueryAllCampaignResponse) String() string

func (*QueryAllCampaignResponse) Unmarshal

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

func (*QueryAllCampaignResponse) XXX_DiscardUnknown

func (m *QueryAllCampaignResponse) XXX_DiscardUnknown()

func (*QueryAllCampaignResponse) XXX_Marshal

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

func (*QueryAllCampaignResponse) XXX_Merge

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

func (*QueryAllCampaignResponse) XXX_Size

func (m *QueryAllCampaignResponse) XXX_Size() int

func (*QueryAllCampaignResponse) XXX_Unmarshal

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

type QueryAllMainnetAccountRequest

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

func (*QueryAllMainnetAccountRequest) Descriptor

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

func (*QueryAllMainnetAccountRequest) GetCampaignID

func (m *QueryAllMainnetAccountRequest) GetCampaignID() uint64

func (*QueryAllMainnetAccountRequest) GetPagination

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

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=mainnetAccount,proto3" json:"mainnetAccount"`
	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 QueryAllMainnetVestingAccountRequest

type QueryAllMainnetVestingAccountRequest struct {
	CampaignID uint64             `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllMainnetVestingAccountRequest) Descriptor

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

func (*QueryAllMainnetVestingAccountRequest) GetCampaignID

func (m *QueryAllMainnetVestingAccountRequest) GetCampaignID() uint64

func (*QueryAllMainnetVestingAccountRequest) GetPagination

func (*QueryAllMainnetVestingAccountRequest) Marshal

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

func (*QueryAllMainnetVestingAccountRequest) MarshalTo

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

func (*QueryAllMainnetVestingAccountRequest) MarshalToSizedBuffer

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

func (*QueryAllMainnetVestingAccountRequest) ProtoMessage

func (*QueryAllMainnetVestingAccountRequest) ProtoMessage()

func (*QueryAllMainnetVestingAccountRequest) Reset

func (*QueryAllMainnetVestingAccountRequest) Size

func (*QueryAllMainnetVestingAccountRequest) String

func (*QueryAllMainnetVestingAccountRequest) Unmarshal

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

func (*QueryAllMainnetVestingAccountRequest) XXX_DiscardUnknown

func (m *QueryAllMainnetVestingAccountRequest) XXX_DiscardUnknown()

func (*QueryAllMainnetVestingAccountRequest) XXX_Marshal

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

func (*QueryAllMainnetVestingAccountRequest) XXX_Merge

func (*QueryAllMainnetVestingAccountRequest) XXX_Size

func (*QueryAllMainnetVestingAccountRequest) XXX_Unmarshal

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

type QueryAllMainnetVestingAccountResponse

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

func (*QueryAllMainnetVestingAccountResponse) Descriptor

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

func (*QueryAllMainnetVestingAccountResponse) GetMainnetVestingAccount

func (m *QueryAllMainnetVestingAccountResponse) GetMainnetVestingAccount() []MainnetVestingAccount

func (*QueryAllMainnetVestingAccountResponse) GetPagination

func (*QueryAllMainnetVestingAccountResponse) Marshal

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

func (*QueryAllMainnetVestingAccountResponse) MarshalTo

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

func (*QueryAllMainnetVestingAccountResponse) MarshalToSizedBuffer

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

func (*QueryAllMainnetVestingAccountResponse) ProtoMessage

func (*QueryAllMainnetVestingAccountResponse) ProtoMessage()

func (*QueryAllMainnetVestingAccountResponse) Reset

func (*QueryAllMainnetVestingAccountResponse) Size

func (*QueryAllMainnetVestingAccountResponse) String

func (*QueryAllMainnetVestingAccountResponse) Unmarshal

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

func (*QueryAllMainnetVestingAccountResponse) XXX_DiscardUnknown

func (m *QueryAllMainnetVestingAccountResponse) XXX_DiscardUnknown()

func (*QueryAllMainnetVestingAccountResponse) XXX_Marshal

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

func (*QueryAllMainnetVestingAccountResponse) XXX_Merge

func (*QueryAllMainnetVestingAccountResponse) XXX_Size

func (*QueryAllMainnetVestingAccountResponse) XXX_Unmarshal

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

type QueryCampaignSummariesRequest

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

func (*QueryCampaignSummariesRequest) Descriptor

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

func (*QueryCampaignSummariesRequest) GetPagination

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

func (*QueryCampaignSummariesRequest) Marshal

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

func (*QueryCampaignSummariesRequest) MarshalTo

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

func (*QueryCampaignSummariesRequest) MarshalToSizedBuffer

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

func (*QueryCampaignSummariesRequest) ProtoMessage

func (*QueryCampaignSummariesRequest) ProtoMessage()

func (*QueryCampaignSummariesRequest) Reset

func (m *QueryCampaignSummariesRequest) Reset()

func (*QueryCampaignSummariesRequest) Size

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

func (*QueryCampaignSummariesRequest) String

func (*QueryCampaignSummariesRequest) Unmarshal

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

func (*QueryCampaignSummariesRequest) XXX_DiscardUnknown

func (m *QueryCampaignSummariesRequest) XXX_DiscardUnknown()

func (*QueryCampaignSummariesRequest) XXX_Marshal

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

func (*QueryCampaignSummariesRequest) XXX_Merge

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

func (*QueryCampaignSummariesRequest) XXX_Size

func (m *QueryCampaignSummariesRequest) XXX_Size() int

func (*QueryCampaignSummariesRequest) XXX_Unmarshal

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

type QueryCampaignSummariesResponse

type QueryCampaignSummariesResponse struct {
	CampaignSummaries []CampaignSummary   `protobuf:"bytes,1,rep,name=campaignSummaries,proto3" json:"campaignSummaries"`
	Pagination        *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryCampaignSummariesResponse) Descriptor

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

func (*QueryCampaignSummariesResponse) GetCampaignSummaries

func (m *QueryCampaignSummariesResponse) GetCampaignSummaries() []CampaignSummary

func (*QueryCampaignSummariesResponse) GetPagination

func (*QueryCampaignSummariesResponse) Marshal

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

func (*QueryCampaignSummariesResponse) MarshalTo

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

func (*QueryCampaignSummariesResponse) MarshalToSizedBuffer

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

func (*QueryCampaignSummariesResponse) ProtoMessage

func (*QueryCampaignSummariesResponse) ProtoMessage()

func (*QueryCampaignSummariesResponse) Reset

func (m *QueryCampaignSummariesResponse) Reset()

func (*QueryCampaignSummariesResponse) Size

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

func (*QueryCampaignSummariesResponse) String

func (*QueryCampaignSummariesResponse) Unmarshal

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

func (*QueryCampaignSummariesResponse) XXX_DiscardUnknown

func (m *QueryCampaignSummariesResponse) XXX_DiscardUnknown()

func (*QueryCampaignSummariesResponse) XXX_Marshal

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

func (*QueryCampaignSummariesResponse) XXX_Merge

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

func (*QueryCampaignSummariesResponse) XXX_Size

func (m *QueryCampaignSummariesResponse) XXX_Size() int

func (*QueryCampaignSummariesResponse) XXX_Unmarshal

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

type QueryCampaignSummaryRequest

type QueryCampaignSummaryRequest struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
}

func (*QueryCampaignSummaryRequest) Descriptor

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

func (*QueryCampaignSummaryRequest) GetCampaignID

func (m *QueryCampaignSummaryRequest) GetCampaignID() uint64

func (*QueryCampaignSummaryRequest) Marshal

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

func (*QueryCampaignSummaryRequest) MarshalTo

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

func (*QueryCampaignSummaryRequest) MarshalToSizedBuffer

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

func (*QueryCampaignSummaryRequest) ProtoMessage

func (*QueryCampaignSummaryRequest) ProtoMessage()

func (*QueryCampaignSummaryRequest) Reset

func (m *QueryCampaignSummaryRequest) Reset()

func (*QueryCampaignSummaryRequest) Size

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

func (*QueryCampaignSummaryRequest) String

func (m *QueryCampaignSummaryRequest) String() string

func (*QueryCampaignSummaryRequest) Unmarshal

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

func (*QueryCampaignSummaryRequest) XXX_DiscardUnknown

func (m *QueryCampaignSummaryRequest) XXX_DiscardUnknown()

func (*QueryCampaignSummaryRequest) XXX_Marshal

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

func (*QueryCampaignSummaryRequest) XXX_Merge

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

func (*QueryCampaignSummaryRequest) XXX_Size

func (m *QueryCampaignSummaryRequest) XXX_Size() int

func (*QueryCampaignSummaryRequest) XXX_Unmarshal

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

type QueryCampaignSummaryResponse

type QueryCampaignSummaryResponse struct {
	CampaignSummary CampaignSummary `protobuf:"bytes,1,opt,name=campaignSummary,proto3" json:"campaignSummary"`
}

func (*QueryCampaignSummaryResponse) Descriptor

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

func (*QueryCampaignSummaryResponse) GetCampaignSummary

func (m *QueryCampaignSummaryResponse) GetCampaignSummary() CampaignSummary

func (*QueryCampaignSummaryResponse) Marshal

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

func (*QueryCampaignSummaryResponse) MarshalTo

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

func (*QueryCampaignSummaryResponse) MarshalToSizedBuffer

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

func (*QueryCampaignSummaryResponse) ProtoMessage

func (*QueryCampaignSummaryResponse) ProtoMessage()

func (*QueryCampaignSummaryResponse) Reset

func (m *QueryCampaignSummaryResponse) Reset()

func (*QueryCampaignSummaryResponse) Size

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

func (*QueryCampaignSummaryResponse) String

func (*QueryCampaignSummaryResponse) Unmarshal

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

func (*QueryCampaignSummaryResponse) XXX_DiscardUnknown

func (m *QueryCampaignSummaryResponse) XXX_DiscardUnknown()

func (*QueryCampaignSummaryResponse) XXX_Marshal

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

func (*QueryCampaignSummaryResponse) XXX_Merge

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

func (*QueryCampaignSummaryResponse) XXX_Size

func (m *QueryCampaignSummaryResponse) XXX_Size() int

func (*QueryCampaignSummaryResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a campaign by id.
	Campaign(ctx context.Context, in *QueryGetCampaignRequest, opts ...grpc.CallOption) (*QueryGetCampaignResponse, error)
	// Queries a list of campaign items.
	CampaignAll(ctx context.Context, in *QueryAllCampaignRequest, opts ...grpc.CallOption) (*QueryAllCampaignResponse, error)
	// Queries a campaignChains by index.
	CampaignChains(ctx context.Context, in *QueryGetCampaignChainsRequest, opts ...grpc.CallOption) (*QueryGetCampaignChainsResponse, error)
	// Queries a mainnetAccount by index.
	MainnetAccount(ctx context.Context, in *QueryGetMainnetAccountRequest, opts ...grpc.CallOption) (*QueryGetMainnetAccountResponse, error)
	// Queries a list of mainnetAccount items.
	MainnetAccountAll(ctx context.Context, in *QueryAllMainnetAccountRequest, opts ...grpc.CallOption) (*QueryAllMainnetAccountResponse, error)
	// Queries a mainnetVestingAccount by index.
	MainnetVestingAccount(ctx context.Context, in *QueryGetMainnetVestingAccountRequest, opts ...grpc.CallOption) (*QueryGetMainnetVestingAccountResponse, error)
	// Queries a list of mainnetVestingAccount items.
	MainnetVestingAccountAll(ctx context.Context, in *QueryAllMainnetVestingAccountRequest, opts ...grpc.CallOption) (*QueryAllMainnetVestingAccountResponse, error)
	// Queries a campaign summary
	CampaignSummary(ctx context.Context, in *QueryCampaignSummaryRequest, opts ...grpc.CallOption) (*QueryCampaignSummaryResponse, error)
	// Queries a list of campaign summaries
	CampaignSummaries(ctx context.Context, in *QueryCampaignSummariesRequest, opts ...grpc.CallOption) (*QueryCampaignSummariesResponse, error)
	// Params queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries the TotalShares value
	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 QueryGetCampaignChainsRequest

type QueryGetCampaignChainsRequest struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
}

func (*QueryGetCampaignChainsRequest) Descriptor

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

func (*QueryGetCampaignChainsRequest) GetCampaignID

func (m *QueryGetCampaignChainsRequest) GetCampaignID() uint64

func (*QueryGetCampaignChainsRequest) Marshal

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

func (*QueryGetCampaignChainsRequest) MarshalTo

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

func (*QueryGetCampaignChainsRequest) MarshalToSizedBuffer

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

func (*QueryGetCampaignChainsRequest) ProtoMessage

func (*QueryGetCampaignChainsRequest) ProtoMessage()

func (*QueryGetCampaignChainsRequest) Reset

func (m *QueryGetCampaignChainsRequest) Reset()

func (*QueryGetCampaignChainsRequest) Size

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

func (*QueryGetCampaignChainsRequest) String

func (*QueryGetCampaignChainsRequest) Unmarshal

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

func (*QueryGetCampaignChainsRequest) XXX_DiscardUnknown

func (m *QueryGetCampaignChainsRequest) XXX_DiscardUnknown()

func (*QueryGetCampaignChainsRequest) XXX_Marshal

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

func (*QueryGetCampaignChainsRequest) XXX_Merge

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

func (*QueryGetCampaignChainsRequest) XXX_Size

func (m *QueryGetCampaignChainsRequest) XXX_Size() int

func (*QueryGetCampaignChainsRequest) XXX_Unmarshal

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

type QueryGetCampaignChainsResponse

type QueryGetCampaignChainsResponse struct {
	CampaignChains CampaignChains `protobuf:"bytes,1,opt,name=campaignChains,proto3" json:"campaignChains"`
}

func (*QueryGetCampaignChainsResponse) Descriptor

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

func (*QueryGetCampaignChainsResponse) GetCampaignChains

func (m *QueryGetCampaignChainsResponse) GetCampaignChains() CampaignChains

func (*QueryGetCampaignChainsResponse) Marshal

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

func (*QueryGetCampaignChainsResponse) MarshalTo

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

func (*QueryGetCampaignChainsResponse) MarshalToSizedBuffer

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

func (*QueryGetCampaignChainsResponse) ProtoMessage

func (*QueryGetCampaignChainsResponse) ProtoMessage()

func (*QueryGetCampaignChainsResponse) Reset

func (m *QueryGetCampaignChainsResponse) Reset()

func (*QueryGetCampaignChainsResponse) Size

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

func (*QueryGetCampaignChainsResponse) String

func (*QueryGetCampaignChainsResponse) Unmarshal

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

func (*QueryGetCampaignChainsResponse) XXX_DiscardUnknown

func (m *QueryGetCampaignChainsResponse) XXX_DiscardUnknown()

func (*QueryGetCampaignChainsResponse) XXX_Marshal

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

func (*QueryGetCampaignChainsResponse) XXX_Merge

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

func (*QueryGetCampaignChainsResponse) XXX_Size

func (m *QueryGetCampaignChainsResponse) XXX_Size() int

func (*QueryGetCampaignChainsResponse) XXX_Unmarshal

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

type QueryGetCampaignRequest

type QueryGetCampaignRequest struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
}

func (*QueryGetCampaignRequest) Descriptor

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

func (*QueryGetCampaignRequest) GetCampaignID

func (m *QueryGetCampaignRequest) GetCampaignID() uint64

func (*QueryGetCampaignRequest) Marshal

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

func (*QueryGetCampaignRequest) MarshalTo

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

func (*QueryGetCampaignRequest) MarshalToSizedBuffer

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

func (*QueryGetCampaignRequest) ProtoMessage

func (*QueryGetCampaignRequest) ProtoMessage()

func (*QueryGetCampaignRequest) Reset

func (m *QueryGetCampaignRequest) Reset()

func (*QueryGetCampaignRequest) Size

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

func (*QueryGetCampaignRequest) String

func (m *QueryGetCampaignRequest) String() string

func (*QueryGetCampaignRequest) Unmarshal

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

func (*QueryGetCampaignRequest) XXX_DiscardUnknown

func (m *QueryGetCampaignRequest) XXX_DiscardUnknown()

func (*QueryGetCampaignRequest) XXX_Marshal

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

func (*QueryGetCampaignRequest) XXX_Merge

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

func (*QueryGetCampaignRequest) XXX_Size

func (m *QueryGetCampaignRequest) XXX_Size() int

func (*QueryGetCampaignRequest) XXX_Unmarshal

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

type QueryGetCampaignResponse

type QueryGetCampaignResponse struct {
	Campaign Campaign `protobuf:"bytes,1,opt,name=campaign,proto3" json:"campaign"`
}

func (*QueryGetCampaignResponse) Descriptor

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

func (*QueryGetCampaignResponse) GetCampaign

func (m *QueryGetCampaignResponse) GetCampaign() Campaign

func (*QueryGetCampaignResponse) Marshal

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

func (*QueryGetCampaignResponse) MarshalTo

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

func (*QueryGetCampaignResponse) MarshalToSizedBuffer

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

func (*QueryGetCampaignResponse) ProtoMessage

func (*QueryGetCampaignResponse) ProtoMessage()

func (*QueryGetCampaignResponse) Reset

func (m *QueryGetCampaignResponse) Reset()

func (*QueryGetCampaignResponse) Size

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

func (*QueryGetCampaignResponse) String

func (m *QueryGetCampaignResponse) String() string

func (*QueryGetCampaignResponse) Unmarshal

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

func (*QueryGetCampaignResponse) XXX_DiscardUnknown

func (m *QueryGetCampaignResponse) XXX_DiscardUnknown()

func (*QueryGetCampaignResponse) XXX_Marshal

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

func (*QueryGetCampaignResponse) XXX_Merge

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

func (*QueryGetCampaignResponse) XXX_Size

func (m *QueryGetCampaignResponse) XXX_Size() int

func (*QueryGetCampaignResponse) XXX_Unmarshal

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

type QueryGetMainnetAccountRequest

type QueryGetMainnetAccountRequest struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,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) GetCampaignID

func (m *QueryGetMainnetAccountRequest) GetCampaignID() 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=mainnetAccount,proto3" json:"mainnetAccount"`
}

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 QueryGetMainnetVestingAccountRequest

type QueryGetMainnetVestingAccountRequest struct {
	CampaignID uint64 `protobuf:"varint,1,opt,name=campaignID,proto3" json:"campaignID,omitempty"`
	Address    string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetMainnetVestingAccountRequest) Descriptor

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

func (*QueryGetMainnetVestingAccountRequest) GetAddress

func (*QueryGetMainnetVestingAccountRequest) GetCampaignID

func (m *QueryGetMainnetVestingAccountRequest) GetCampaignID() uint64

func (*QueryGetMainnetVestingAccountRequest) Marshal

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

func (*QueryGetMainnetVestingAccountRequest) MarshalTo

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

func (*QueryGetMainnetVestingAccountRequest) MarshalToSizedBuffer

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

func (*QueryGetMainnetVestingAccountRequest) ProtoMessage

func (*QueryGetMainnetVestingAccountRequest) ProtoMessage()

func (*QueryGetMainnetVestingAccountRequest) Reset

func (*QueryGetMainnetVestingAccountRequest) Size

func (*QueryGetMainnetVestingAccountRequest) String

func (*QueryGetMainnetVestingAccountRequest) Unmarshal

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

func (*QueryGetMainnetVestingAccountRequest) XXX_DiscardUnknown

func (m *QueryGetMainnetVestingAccountRequest) XXX_DiscardUnknown()

func (*QueryGetMainnetVestingAccountRequest) XXX_Marshal

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

func (*QueryGetMainnetVestingAccountRequest) XXX_Merge

func (*QueryGetMainnetVestingAccountRequest) XXX_Size

func (*QueryGetMainnetVestingAccountRequest) XXX_Unmarshal

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

type QueryGetMainnetVestingAccountResponse

type QueryGetMainnetVestingAccountResponse struct {
	MainnetVestingAccount MainnetVestingAccount `protobuf:"bytes,1,opt,name=mainnetVestingAccount,proto3" json:"mainnetVestingAccount"`
}

func (*QueryGetMainnetVestingAccountResponse) Descriptor

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

func (*QueryGetMainnetVestingAccountResponse) GetMainnetVestingAccount

func (m *QueryGetMainnetVestingAccountResponse) GetMainnetVestingAccount() MainnetVestingAccount

func (*QueryGetMainnetVestingAccountResponse) Marshal

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

func (*QueryGetMainnetVestingAccountResponse) MarshalTo

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

func (*QueryGetMainnetVestingAccountResponse) MarshalToSizedBuffer

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

func (*QueryGetMainnetVestingAccountResponse) ProtoMessage

func (*QueryGetMainnetVestingAccountResponse) ProtoMessage()

func (*QueryGetMainnetVestingAccountResponse) Reset

func (*QueryGetMainnetVestingAccountResponse) Size

func (*QueryGetMainnetVestingAccountResponse) String

func (*QueryGetMainnetVestingAccountResponse) Unmarshal

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

func (*QueryGetMainnetVestingAccountResponse) XXX_DiscardUnknown

func (m *QueryGetMainnetVestingAccountResponse) XXX_DiscardUnknown()

func (*QueryGetMainnetVestingAccountResponse) XXX_Marshal

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

func (*QueryGetMainnetVestingAccountResponse) XXX_Merge

func (*QueryGetMainnetVestingAccountResponse) XXX_Size

func (*QueryGetMainnetVestingAccountResponse) XXX_Unmarshal

func (m *QueryGetMainnetVestingAccountResponse) 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 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 {
	// Queries a campaign by id.
	Campaign(context.Context, *QueryGetCampaignRequest) (*QueryGetCampaignResponse, error)
	// Queries a list of campaign items.
	CampaignAll(context.Context, *QueryAllCampaignRequest) (*QueryAllCampaignResponse, error)
	// Queries a campaignChains by index.
	CampaignChains(context.Context, *QueryGetCampaignChainsRequest) (*QueryGetCampaignChainsResponse, error)
	// Queries a mainnetAccount by index.
	MainnetAccount(context.Context, *QueryGetMainnetAccountRequest) (*QueryGetMainnetAccountResponse, error)
	// Queries a list of mainnetAccount items.
	MainnetAccountAll(context.Context, *QueryAllMainnetAccountRequest) (*QueryAllMainnetAccountResponse, error)
	// Queries a mainnetVestingAccount by index.
	MainnetVestingAccount(context.Context, *QueryGetMainnetVestingAccountRequest) (*QueryGetMainnetVestingAccountResponse, error)
	// Queries a list of mainnetVestingAccount items.
	MainnetVestingAccountAll(context.Context, *QueryAllMainnetVestingAccountRequest) (*QueryAllMainnetVestingAccountResponse, error)
	// Queries a campaign summary
	CampaignSummary(context.Context, *QueryCampaignSummaryRequest) (*QueryCampaignSummaryResponse, error)
	// Queries a list of campaign summaries
	CampaignSummaries(context.Context, *QueryCampaignSummariesRequest) (*QueryCampaignSummariesResponse, error)
	// Params queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries the TotalShares value
	TotalShares(context.Context, *QueryTotalSharesRequest) (*QueryTotalSharesResponse, error)
}

QueryServer is the server API for Query service.

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=totalShares,proto3" json:"totalShares,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 `` /* 134-byte string literal not displayed */
	Vesting     Shares `` /* 126-byte string literal not displayed */
	EndTime     int64  `protobuf:"varint,3,opt,name=endTime,proto3" json:"endTime,omitempty"`
}

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() int64

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 int64) *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=delayedVesting,proto3,oneof" json:"delayedVesting,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, campaignID 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) 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 coins comma separated

type TotalSupplyRange

type TotalSupplyRange struct {
	MinTotalSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=minTotalSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"minTotalSupply"`
	MaxTotalSupply github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=maxTotalSupply,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxTotalSupply"`
}

TotalSupplyRange defines the range of allowed values for total supply

func NewTotalSupplyRange

func NewTotalSupplyRange(minTotalSupply, maxTotalSupply sdk.Int) TotalSupplyRange

NewTotalSupplyRange creates a new TotalSupplyRange instance

func (*TotalSupplyRange) Descriptor

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

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

func (*UnimplementedMsgServer) AddVestingOptions

func (*UnimplementedMsgServer) BurnVouchers

func (*UnimplementedMsgServer) CreateCampaign

func (*UnimplementedMsgServer) EditCampaign

func (*UnimplementedMsgServer) InitializeMainnet

func (*UnimplementedMsgServer) MintVouchers

func (*UnimplementedMsgServer) RedeemVouchers

func (*UnimplementedMsgServer) UnredeemVouchers

func (*UnimplementedMsgServer) UpdateTotalSupply

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Campaign

func (*UnimplementedQueryServer) CampaignAll

func (*UnimplementedQueryServer) CampaignChains

func (*UnimplementedQueryServer) CampaignSummaries

func (*UnimplementedQueryServer) CampaignSummary

func (*UnimplementedQueryServer) MainnetAccount

func (*UnimplementedQueryServer) MainnetAccountAll

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalShares

Jump to

Keyboard shortcuts

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