Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckAccountType(account Account) bool
- func CheckPercentShareSumIsGTEThen100(destination Destination) bool
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetId() string
- func (m *Account) GetType() string
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountKeeper
- type BankKeeper
- type BurnShare
- func (*BurnShare) Descriptor() ([]byte, []int)
- func (m *BurnShare) Marshal() (dAtA []byte, err error)
- func (m *BurnShare) MarshalTo(dAtA []byte) (int, error)
- func (m *BurnShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BurnShare) ProtoMessage()
- func (m *BurnShare) Reset()
- func (m *BurnShare) Size() (n int)
- func (m *BurnShare) String() string
- func (m *BurnShare) Unmarshal(dAtA []byte) error
- func (m *BurnShare) XXX_DiscardUnknown()
- func (m *BurnShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurnShare) XXX_Merge(src proto.Message)
- func (m *BurnShare) XXX_Size() int
- func (m *BurnShare) XXX_Unmarshal(b []byte) error
- type Destination
- func (*Destination) Descriptor() ([]byte, []int)
- func (m *Destination) GetAccount() Account
- func (m *Destination) GetBurnShare() *BurnShare
- func (m *Destination) GetShare() []*Share
- func (m *Destination) Marshal() (dAtA []byte, err error)
- func (m *Destination) MarshalTo(dAtA []byte) (int, error)
- func (m *Destination) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Destination) ProtoMessage()
- func (m *Destination) Reset()
- func (m *Destination) Size() (n int)
- func (m *Destination) String() string
- func (m *Destination) Unmarshal(dAtA []byte) error
- func (m *Destination) XXX_DiscardUnknown()
- func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Destination) XXX_Merge(src proto.Message)
- func (m *Destination) XXX_Size() int
- func (m *Destination) XXX_Unmarshal(b []byte) error
- type DistributionResult
- func (*DistributionResult) Descriptor() ([]byte, []int)
- func (m *DistributionResult) GetCoinSend() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *DistributionResult) GetDestination() *Account
- func (m *DistributionResult) GetSource() []*Account
- func (m *DistributionResult) Marshal() (dAtA []byte, err error)
- func (m *DistributionResult) MarshalTo(dAtA []byte) (int, error)
- func (m *DistributionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DistributionResult) ProtoMessage()
- func (m *DistributionResult) Reset()
- func (m *DistributionResult) Size() (n int)
- func (m *DistributionResult) String() string
- func (m *DistributionResult) Unmarshal(dAtA []byte) error
- func (m *DistributionResult) XXX_DiscardUnknown()
- func (m *DistributionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DistributionResult) XXX_Merge(src proto.Message)
- func (m *DistributionResult) XXX_Size() int
- func (m *DistributionResult) XXX_Unmarshal(b []byte) error
- type DistributionsResult
- func (*DistributionsResult) Descriptor() ([]byte, []int)
- func (m *DistributionsResult) GetDistributionResult() []*DistributionResult
- func (m *DistributionsResult) Marshal() (dAtA []byte, err error)
- func (m *DistributionsResult) MarshalTo(dAtA []byte) (int, error)
- func (m *DistributionsResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DistributionsResult) ProtoMessage()
- func (m *DistributionsResult) Reset()
- func (m *DistributionsResult) Size() (n int)
- func (m *DistributionsResult) String() string
- func (m *DistributionsResult) Unmarshal(dAtA []byte) error
- func (m *DistributionsResult) XXX_DiscardUnknown()
- func (m *DistributionsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DistributionsResult) XXX_Merge(src proto.Message)
- func (m *DistributionsResult) XXX_Size() int
- func (m *DistributionsResult) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetStates() []*State
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetSubDistributors() []SubDistributor
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryStatesRequest
- func (*QueryStatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryStatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryStatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryStatesRequest) ProtoMessage()
- func (m *QueryStatesRequest) Reset()
- func (m *QueryStatesRequest) Size() (n int)
- func (m *QueryStatesRequest) String() string
- func (m *QueryStatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryStatesRequest) XXX_DiscardUnknown()
- func (m *QueryStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryStatesRequest) XXX_Size() int
- func (m *QueryStatesRequest) XXX_Unmarshal(b []byte) error
- type QueryStatesResponse
- func (*QueryStatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryStatesResponse) GetCoinsOnDistributorAccount() []types.Coin
- func (m *QueryStatesResponse) GetStates() []State
- func (m *QueryStatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryStatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryStatesResponse) ProtoMessage()
- func (m *QueryStatesResponse) Reset()
- func (m *QueryStatesResponse) Size() (n int)
- func (m *QueryStatesResponse) String() string
- func (m *QueryStatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryStatesResponse) XXX_DiscardUnknown()
- func (m *QueryStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryStatesResponse) XXX_Size() int
- func (m *QueryStatesResponse) XXX_Unmarshal(b []byte) error
- type Share
- func (*Share) Descriptor() ([]byte, []int)
- func (m *Share) GetAccount() Account
- func (m *Share) GetName() string
- func (m *Share) Marshal() (dAtA []byte, err error)
- func (m *Share) MarshalTo(dAtA []byte) (int, error)
- func (m *Share) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Share) ProtoMessage()
- func (m *Share) Reset()
- func (m *Share) Size() (n int)
- func (m *Share) String() string
- func (m *Share) Unmarshal(dAtA []byte) error
- func (m *Share) XXX_DiscardUnknown()
- func (m *Share) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Share) XXX_Merge(src proto.Message)
- func (m *Share) XXX_Size() int
- func (m *Share) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAccount() *Account
- func (m *State) GetBurn() bool
- func (m *State) GetCoinsStates() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type SubDistributor
- func (*SubDistributor) Descriptor() ([]byte, []int)
- func (m *SubDistributor) GetDestination() Destination
- func (m *SubDistributor) GetName() string
- func (m *SubDistributor) GetSources() []*Account
- func (m *SubDistributor) Marshal() (dAtA []byte, err error)
- func (m *SubDistributor) MarshalTo(dAtA []byte) (int, error)
- func (m *SubDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubDistributor) ProtoMessage()
- func (m *SubDistributor) Reset()
- func (m *SubDistributor) Size() (n int)
- func (m *SubDistributor) String() string
- func (m *SubDistributor) Unmarshal(dAtA []byte) error
- func (s SubDistributor) Validate() error
- func (m *SubDistributor) XXX_DiscardUnknown()
- func (m *SubDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubDistributor) XXX_Merge(src proto.Message)
- func (m *SubDistributor) XXX_Size() int
- func (m *SubDistributor) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "cfedistributor" // 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_cfedistributor" DistributorMainAccount = "distributor_main_account" ValidatorsRewardsCollector = "validators_rewards_collector" GreenEnergyBoosterCollector = "green_energy_booster_collector" GovernanceBoosterCollector = "governance_booster_collector" BurnStateKey = "burn_state_key" BurnDestination = "burn_destination" DenomToTrace = "uc4e" )
const ( INTERNAL_ACCOUNT string = "INTERNAL_ACCOUNT" MODULE_ACCOUNT = "MODULE_ACCOUNT" MAIN = "MAIN" BASE_ACCOUNT = "BASE_ACCOUNT" UNKNOWN_ACCOUNT = "Unknown" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeySubDistributors = []byte("SubDistributors") DefaultSubDistributors []SubDistributor )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSubDistributor = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSubDistributor = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSubDistributor = fmt.Errorf("proto: unexpected end of group") )
var (
ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")
)
x/cfedistributor module sentinel errors
var RemainsKeyPrefix = []byte{0x04}
var RemainsMapKey = []byte{0x03}
Functions ¶
func CheckAccountType ¶
func CheckPercentShareSumIsGTEThen100 ¶
func CheckPercentShareSumIsGTEThen100(destination Destination) bool
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` }
func (*Account) Descriptor ¶
func (*Account) MarshalToSizedBuffer ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI // Methods imported from account should be defined here GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins // Methods imported from bank should be defined here SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type BurnShare ¶
type BurnShare struct { github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=percent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"percent" yaml:"percent"` }Percent
func (*BurnShare) Descriptor ¶
func (*BurnShare) MarshalToSizedBuffer ¶
func (*BurnShare) ProtoMessage ¶
func (*BurnShare) ProtoMessage()
func (*BurnShare) XXX_DiscardUnknown ¶
func (m *BurnShare) XXX_DiscardUnknown()
func (*BurnShare) XXX_Marshal ¶
func (*BurnShare) XXX_Unmarshal ¶
type Destination ¶
type Destination struct { Account Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` }
func (*Destination) Descriptor ¶
func (*Destination) Descriptor() ([]byte, []int)
func (*Destination) GetAccount ¶
func (m *Destination) GetAccount() Account
func (*Destination) GetBurnShare ¶
func (m *Destination) GetBurnShare() *BurnShare
func (*Destination) GetShare ¶
func (m *Destination) GetShare() []*Share
func (*Destination) Marshal ¶
func (m *Destination) Marshal() (dAtA []byte, err error)
func (*Destination) MarshalToSizedBuffer ¶
func (m *Destination) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) Reset ¶
func (m *Destination) Reset()
func (*Destination) Size ¶
func (m *Destination) Size() (n int)
func (*Destination) String ¶
func (m *Destination) String() string
func (*Destination) Unmarshal ¶
func (m *Destination) Unmarshal(dAtA []byte) error
func (*Destination) XXX_DiscardUnknown ¶
func (m *Destination) XXX_DiscardUnknown()
func (*Destination) XXX_Marshal ¶
func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Destination) XXX_Merge ¶
func (m *Destination) XXX_Merge(src proto.Message)
func (*Destination) XXX_Size ¶
func (m *Destination) XXX_Size() int
func (*Destination) XXX_Unmarshal ¶
func (m *Destination) XXX_Unmarshal(b []byte) error
type DistributionResult ¶
type DistributionResult struct { Source []*Account `protobuf:"bytes,1,rep,name=source,proto3" json:"source,omitempty"` Destination *Account `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` CoinSend github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 133-byte string literal not displayed */ }
func (*DistributionResult) Descriptor ¶
func (*DistributionResult) Descriptor() ([]byte, []int)
func (*DistributionResult) GetCoinSend ¶
func (m *DistributionResult) GetCoinSend() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*DistributionResult) GetDestination ¶
func (m *DistributionResult) GetDestination() *Account
func (*DistributionResult) GetSource ¶
func (m *DistributionResult) GetSource() []*Account
func (*DistributionResult) Marshal ¶
func (m *DistributionResult) Marshal() (dAtA []byte, err error)
func (*DistributionResult) MarshalTo ¶
func (m *DistributionResult) MarshalTo(dAtA []byte) (int, error)
func (*DistributionResult) MarshalToSizedBuffer ¶
func (m *DistributionResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DistributionResult) ProtoMessage ¶
func (*DistributionResult) ProtoMessage()
func (*DistributionResult) Reset ¶
func (m *DistributionResult) Reset()
func (*DistributionResult) Size ¶
func (m *DistributionResult) Size() (n int)
func (*DistributionResult) String ¶
func (m *DistributionResult) String() string
func (*DistributionResult) Unmarshal ¶
func (m *DistributionResult) Unmarshal(dAtA []byte) error
func (*DistributionResult) XXX_DiscardUnknown ¶
func (m *DistributionResult) XXX_DiscardUnknown()
func (*DistributionResult) XXX_Marshal ¶
func (m *DistributionResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistributionResult) XXX_Merge ¶
func (m *DistributionResult) XXX_Merge(src proto.Message)
func (*DistributionResult) XXX_Size ¶
func (m *DistributionResult) XXX_Size() int
func (*DistributionResult) XXX_Unmarshal ¶
func (m *DistributionResult) XXX_Unmarshal(b []byte) error
type DistributionsResult ¶
type DistributionsResult struct {
DistributionResult []*DistributionResult `protobuf:"bytes,1,rep,name=distributionResult,proto3" json:"distributionResult,omitempty"`
}
func (*DistributionsResult) Descriptor ¶
func (*DistributionsResult) Descriptor() ([]byte, []int)
func (*DistributionsResult) GetDistributionResult ¶
func (m *DistributionsResult) GetDistributionResult() []*DistributionResult
func (*DistributionsResult) Marshal ¶
func (m *DistributionsResult) Marshal() (dAtA []byte, err error)
func (*DistributionsResult) MarshalTo ¶
func (m *DistributionsResult) MarshalTo(dAtA []byte) (int, error)
func (*DistributionsResult) MarshalToSizedBuffer ¶
func (m *DistributionsResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DistributionsResult) ProtoMessage ¶
func (*DistributionsResult) ProtoMessage()
func (*DistributionsResult) Reset ¶
func (m *DistributionsResult) Reset()
func (*DistributionsResult) Size ¶
func (m *DistributionsResult) Size() (n int)
func (*DistributionsResult) String ¶
func (m *DistributionsResult) String() string
func (*DistributionsResult) Unmarshal ¶
func (m *DistributionsResult) Unmarshal(dAtA []byte) error
func (*DistributionsResult) XXX_DiscardUnknown ¶
func (m *DistributionsResult) XXX_DiscardUnknown()
func (*DistributionsResult) XXX_Marshal ¶
func (m *DistributionsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DistributionsResult) XXX_Merge ¶
func (m *DistributionsResult) XXX_Merge(src proto.Message)
func (*DistributionsResult) XXX_Size ¶
func (m *DistributionsResult) XXX_Size() int
func (*DistributionsResult) XXX_Unmarshal ¶
func (m *DistributionsResult) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // this line is used by starport scaffolding # genesis/proto/state States []*State `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"` }
GenesisState defines the cfedistributor module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetStates ¶
func (m *GenesisState) GetStates() []*State
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
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 Params ¶
type Params struct {
SubDistributors []SubDistributor `protobuf:"bytes,1,rep,name=sub_distributors,json=subDistributors,proto3" json:"sub_distributors"`
}
Params defines the parameters for the module.
func NewParams ¶
func NewParams(subDistributors []SubDistributor) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetSubDistributors ¶
func (m *Params) GetSubDistributors() []SubDistributor
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a list of States items. States(ctx context.Context, in *QueryStatesRequest, opts ...grpc.CallOption) (*QueryStatesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a list of States items. States(context.Context, *QueryStatesRequest) (*QueryStatesResponse, error) }
QueryServer is the server API for Query service.
type QueryStatesRequest ¶
type QueryStatesRequest struct { }
func (*QueryStatesRequest) Descriptor ¶
func (*QueryStatesRequest) Descriptor() ([]byte, []int)
func (*QueryStatesRequest) Marshal ¶
func (m *QueryStatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryStatesRequest) MarshalTo ¶
func (m *QueryStatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryStatesRequest) MarshalToSizedBuffer ¶
func (m *QueryStatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryStatesRequest) ProtoMessage ¶
func (*QueryStatesRequest) ProtoMessage()
func (*QueryStatesRequest) Reset ¶
func (m *QueryStatesRequest) Reset()
func (*QueryStatesRequest) Size ¶
func (m *QueryStatesRequest) Size() (n int)
func (*QueryStatesRequest) String ¶
func (m *QueryStatesRequest) String() string
func (*QueryStatesRequest) Unmarshal ¶
func (m *QueryStatesRequest) Unmarshal(dAtA []byte) error
func (*QueryStatesRequest) XXX_DiscardUnknown ¶
func (m *QueryStatesRequest) XXX_DiscardUnknown()
func (*QueryStatesRequest) XXX_Marshal ¶
func (m *QueryStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStatesRequest) XXX_Merge ¶
func (m *QueryStatesRequest) XXX_Merge(src proto.Message)
func (*QueryStatesRequest) XXX_Size ¶
func (m *QueryStatesRequest) XXX_Size() int
func (*QueryStatesRequest) XXX_Unmarshal ¶
func (m *QueryStatesRequest) XXX_Unmarshal(b []byte) error
type QueryStatesResponse ¶
type QueryStatesResponse struct { States []State `protobuf:"bytes,1,rep,name=states,proto3" json:"states"` CoinsOnDistributorAccount []types.Coin `` /* 130-byte string literal not displayed */ }
func (*QueryStatesResponse) Descriptor ¶
func (*QueryStatesResponse) Descriptor() ([]byte, []int)
func (*QueryStatesResponse) GetCoinsOnDistributorAccount ¶
func (m *QueryStatesResponse) GetCoinsOnDistributorAccount() []types.Coin
func (*QueryStatesResponse) GetStates ¶
func (m *QueryStatesResponse) GetStates() []State
func (*QueryStatesResponse) Marshal ¶
func (m *QueryStatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryStatesResponse) MarshalTo ¶
func (m *QueryStatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryStatesResponse) MarshalToSizedBuffer ¶
func (m *QueryStatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryStatesResponse) ProtoMessage ¶
func (*QueryStatesResponse) ProtoMessage()
func (*QueryStatesResponse) Reset ¶
func (m *QueryStatesResponse) Reset()
func (*QueryStatesResponse) Size ¶
func (m *QueryStatesResponse) Size() (n int)
func (*QueryStatesResponse) String ¶
func (m *QueryStatesResponse) String() string
func (*QueryStatesResponse) Unmarshal ¶
func (m *QueryStatesResponse) Unmarshal(dAtA []byte) error
func (*QueryStatesResponse) XXX_DiscardUnknown ¶
func (m *QueryStatesResponse) XXX_DiscardUnknown()
func (*QueryStatesResponse) XXX_Marshal ¶
func (m *QueryStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStatesResponse) XXX_Merge ¶
func (m *QueryStatesResponse) XXX_Merge(src proto.Message)
func (*QueryStatesResponse) XXX_Size ¶
func (m *QueryStatesResponse) XXX_Size() int
func (*QueryStatesResponse) XXX_Unmarshal ¶
func (m *QueryStatesResponse) XXX_Unmarshal(b []byte) error
type Share ¶
type Share struct { // float percent = 2; }
func (*Share) Descriptor ¶
func (*Share) GetAccount ¶
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) XXX_DiscardUnknown ¶
func (m *Share) XXX_DiscardUnknown()
func (*Share) XXX_Marshal ¶
func (*Share) XXX_Unmarshal ¶
type State ¶
type State struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Burn bool `protobuf:"varint,2,opt,name=burn,proto3" json:"burn,omitempty"` CoinsStates github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 159-byte string literal not displayed */ }
func (*State) Descriptor ¶
func (*State) GetAccount ¶
func (*State) GetCoinsStates ¶
func (m *State) GetCoinsStates() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type SubDistributor ¶
type SubDistributor struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Sources []*Account `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"` Destination Destination `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination"` }
func (*SubDistributor) Descriptor ¶
func (*SubDistributor) Descriptor() ([]byte, []int)
func (*SubDistributor) GetDestination ¶
func (m *SubDistributor) GetDestination() Destination
func (*SubDistributor) GetName ¶
func (m *SubDistributor) GetName() string
func (*SubDistributor) GetSources ¶
func (m *SubDistributor) GetSources() []*Account
func (*SubDistributor) Marshal ¶
func (m *SubDistributor) Marshal() (dAtA []byte, err error)
func (*SubDistributor) MarshalToSizedBuffer ¶
func (m *SubDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubDistributor) ProtoMessage ¶
func (*SubDistributor) ProtoMessage()
func (*SubDistributor) Reset ¶
func (m *SubDistributor) Reset()
func (*SubDistributor) Size ¶
func (m *SubDistributor) Size() (n int)
func (*SubDistributor) String ¶
func (m *SubDistributor) String() string
func (*SubDistributor) Unmarshal ¶
func (m *SubDistributor) Unmarshal(dAtA []byte) error
func (SubDistributor) Validate ¶
func (s SubDistributor) Validate() error
func (*SubDistributor) XXX_DiscardUnknown ¶
func (m *SubDistributor) XXX_DiscardUnknown()
func (*SubDistributor) XXX_Marshal ¶
func (m *SubDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubDistributor) XXX_Merge ¶
func (m *SubDistributor) XXX_Merge(src proto.Message)
func (*SubDistributor) XXX_Size ¶
func (m *SubDistributor) XXX_Size() int
func (*SubDistributor) XXX_Unmarshal ¶
func (m *SubDistributor) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) States ¶
func (*UnimplementedQueryServer) States(ctx context.Context, req *QueryStatesRequest) (*QueryStatesResponse, error)