Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- func SetMaccPerms(perms map[string][]string)
- func StateSumIsInteger(states []State) (sdk.Coins, error)
- func ValidateSubDistributors(subDistributors []SubDistributor) error
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (account Account) GetAccountKey() string
- 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 (account Account) Validate() 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 DestinationShare
- func (*DestinationShare) Descriptor() ([]byte, []int)
- func (m *DestinationShare) GetDestination() Account
- func (m *DestinationShare) GetName() string
- func (m *DestinationShare) Marshal() (dAtA []byte, err error)
- func (m *DestinationShare) MarshalTo(dAtA []byte) (int, error)
- func (m *DestinationShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DestinationShare) ProtoMessage()
- func (m *DestinationShare) Reset()
- func (m *DestinationShare) Size() (n int)
- func (m *DestinationShare) String() string
- func (m *DestinationShare) Unmarshal(dAtA []byte) error
- func (m *DestinationShare) XXX_DiscardUnknown()
- func (m *DestinationShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DestinationShare) XXX_Merge(src proto.Message)
- func (m *DestinationShare) XXX_Size() int
- func (m *DestinationShare) XXX_Unmarshal(b []byte) error
- type Destinations
- func (destinations Destinations) CheckIfSharesSumIsBetween0And1() error
- func (*Destinations) Descriptor() ([]byte, []int)
- func (m *Destinations) GetPrimaryShare() Account
- func (m *Destinations) GetShares() []*DestinationShare
- func (m *Destinations) Marshal() (dAtA []byte, err error)
- func (m *Destinations) MarshalTo(dAtA []byte) (int, error)
- func (m *Destinations) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Destinations) ProtoMessage()
- func (m *Destinations) Reset()
- func (m *Destinations) Size() (n int)
- func (m *Destinations) String() string
- func (m *Destinations) Unmarshal(dAtA []byte) error
- func (destinations Destinations) Validate(primaryShareName string) error
- func (m *Destinations) XXX_DiscardUnknown()
- func (m *Destinations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Destinations) XXX_Merge(src proto.Message)
- func (m *Destinations) XXX_Size() int
- func (m *Destinations) XXX_Unmarshal(b []byte) error
- type EventDistribution
- func (*EventDistribution) Descriptor() ([]byte, []int)
- func (m *EventDistribution) GetAmount() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *EventDistribution) GetDestination() *Account
- func (m *EventDistribution) GetShareName() string
- func (m *EventDistribution) GetSources() []*Account
- func (m *EventDistribution) GetSubdistributor() string
- func (m *EventDistribution) Marshal() (dAtA []byte, err error)
- func (m *EventDistribution) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDistribution) ProtoMessage()
- func (m *EventDistribution) Reset()
- func (m *EventDistribution) Size() (n int)
- func (m *EventDistribution) String() string
- func (m *EventDistribution) Unmarshal(dAtA []byte) error
- func (m *EventDistribution) XXX_DiscardUnknown()
- func (m *EventDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDistribution) XXX_Merge(src proto.Message)
- func (m *EventDistribution) XXX_Size() int
- func (m *EventDistribution) XXX_Unmarshal(b []byte) error
- type EventDistributionBurn
- func (*EventDistributionBurn) Descriptor() ([]byte, []int)
- func (m *EventDistributionBurn) GetAmount() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *EventDistributionBurn) GetSources() []*Account
- func (m *EventDistributionBurn) GetSubdistributor() string
- func (m *EventDistributionBurn) Marshal() (dAtA []byte, err error)
- func (m *EventDistributionBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDistributionBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDistributionBurn) ProtoMessage()
- func (m *EventDistributionBurn) Reset()
- func (m *EventDistributionBurn) Size() (n int)
- func (m *EventDistributionBurn) String() string
- func (m *EventDistributionBurn) Unmarshal(dAtA []byte) error
- func (m *EventDistributionBurn) XXX_DiscardUnknown()
- func (m *EventDistributionBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDistributionBurn) XXX_Merge(src proto.Message)
- func (m *EventDistributionBurn) XXX_Size() int
- func (m *EventDistributionBurn) 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 MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (msg *MsgUpdateParams) GetSignBytes() []byte
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) GetSubDistributors() []SubDistributor
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorBurnShareParam
- func (*MsgUpdateSubDistributorBurnShareParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorBurnShareParam) GetAuthority() string
- func (msg *MsgUpdateSubDistributorBurnShareParam) GetSignBytes() []byte
- func (msg *MsgUpdateSubDistributorBurnShareParam) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName() string
- func (m *MsgUpdateSubDistributorBurnShareParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorBurnShareParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorBurnShareParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage()
- func (m *MsgUpdateSubDistributorBurnShareParam) Reset()
- func (msg *MsgUpdateSubDistributorBurnShareParam) Route() string
- func (m *MsgUpdateSubDistributorBurnShareParam) Size() (n int)
- func (m *MsgUpdateSubDistributorBurnShareParam) String() string
- func (msg *MsgUpdateSubDistributorBurnShareParam) Type() string
- func (m *MsgUpdateSubDistributorBurnShareParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSubDistributorBurnShareParam) ValidateBasic() error
- func (m *MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Size() int
- func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorBurnShareParamResponse
- func (*MsgUpdateSubDistributorBurnShareParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorBurnShareParamResponse) ProtoMessage()
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) Reset()
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) Size() (n int)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) String() string
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Size() int
- func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorDestinationShareParam
- func (*MsgUpdateSubDistributorDestinationShareParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorDestinationShareParam) GetAuthority() string
- func (m *MsgUpdateSubDistributorDestinationShareParam) GetDestinationName() string
- func (msg *MsgUpdateSubDistributorDestinationShareParam) GetSignBytes() []byte
- func (msg *MsgUpdateSubDistributorDestinationShareParam) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName() string
- func (m *MsgUpdateSubDistributorDestinationShareParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorDestinationShareParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorDestinationShareParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorDestinationShareParam) ProtoMessage()
- func (m *MsgUpdateSubDistributorDestinationShareParam) Reset()
- func (msg *MsgUpdateSubDistributorDestinationShareParam) Route() string
- func (m *MsgUpdateSubDistributorDestinationShareParam) Size() (n int)
- func (m *MsgUpdateSubDistributorDestinationShareParam) String() string
- func (msg *MsgUpdateSubDistributorDestinationShareParam) Type() string
- func (m *MsgUpdateSubDistributorDestinationShareParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSubDistributorDestinationShareParam) ValidateBasic() error
- func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Size() int
- func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorDestinationShareParamResponse
- func (*MsgUpdateSubDistributorDestinationShareParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorDestinationShareParamResponse) ProtoMessage()
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Reset()
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Size() (n int)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) String() string
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Size() int
- func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorParam
- func (*MsgUpdateSubDistributorParam) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorParam) GetAuthority() string
- func (msg *MsgUpdateSubDistributorParam) GetSignBytes() []byte
- func (msg *MsgUpdateSubDistributorParam) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateSubDistributorParam) GetSubDistributor() *SubDistributor
- func (m *MsgUpdateSubDistributorParam) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorParam) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorParam) ProtoMessage()
- func (m *MsgUpdateSubDistributorParam) Reset()
- func (msg *MsgUpdateSubDistributorParam) Route() string
- func (m *MsgUpdateSubDistributorParam) Size() (n int)
- func (m *MsgUpdateSubDistributorParam) String() string
- func (msg *MsgUpdateSubDistributorParam) Type() string
- func (m *MsgUpdateSubDistributorParam) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateSubDistributorParam) ValidateBasic() error
- func (m *MsgUpdateSubDistributorParam) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorParam) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorParam) XXX_Size() int
- func (m *MsgUpdateSubDistributorParam) XXX_Unmarshal(b []byte) error
- type MsgUpdateSubDistributorParamResponse
- func (*MsgUpdateSubDistributorParamResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateSubDistributorParamResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateSubDistributorParamResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateSubDistributorParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateSubDistributorParamResponse) ProtoMessage()
- func (m *MsgUpdateSubDistributorParamResponse) Reset()
- func (m *MsgUpdateSubDistributorParamResponse) Size() (n int)
- func (m *MsgUpdateSubDistributorParamResponse) String() string
- func (m *MsgUpdateSubDistributorParamResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateSubDistributorParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateSubDistributorParamResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateSubDistributorParamResponse) XXX_Size() int
- func (m *MsgUpdateSubDistributorParamResponse) XXX_Unmarshal(b []byte) error
- 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 (*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 State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAccount() *Account
- func (m *State) GetBurn() bool
- func (m *State) GetRemains() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (state State) GetStateKey() string
- func (s State) IsNegative() error
- 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 (s State) Validate() 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) GetDestinations() Destinations
- func (m *SubDistributor) GetName() string
- func (subdistributor SubDistributor) GetPrimaryShareName() 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 (subdistributor 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
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdateSubDistributorBurnShareParam(ctx context.Context, req *MsgUpdateSubDistributorBurnShareParam) (*MsgUpdateSubDistributorBurnShareParamResponse, error)
- func (*UnimplementedMsgServer) UpdateSubDistributorDestinationShareParam(ctx context.Context, req *MsgUpdateSubDistributorDestinationShareParam) (*MsgUpdateSubDistributorDestinationShareParamResponse, error)
- func (*UnimplementedMsgServer) UpdateSubDistributorParam(ctx context.Context, req *MsgUpdateSubDistributorParam) (*MsgUpdateSubDistributorParamResponse, error)
- 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" )
const ( // Account Types InternalAccount = "INTERNAL_ACCOUNT" ModuleAccount = "MODULE_ACCOUNT" Main = "MAIN" BaseAccount = "BASE_ACCOUNT" // Other consts UnknownAccount = "Unknown" Burn = "BURN" Destination = "DESTINATION" Source = "SOURCE" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgUpdateParams = "update_params"
const TypeMsgUpdateSubDistributorParam = "update_single_subdistributor_param"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
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 ( ParamsKey = []byte{0x00} StateKeyPrefix = []byte{0x04} )
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultSubDistributors = []SubDistributor{ { Name: "default_distributor", Destinations: Destinations{ PrimaryShare: Account{ Id: ValidatorsRewardsCollector, Type: ModuleAccount, }, BurnShare: sdk.ZeroDec(), }, Sources: []*Account{ { Id: "", Type: Main, }, }, }, } )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v1.3.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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)
func SetMaccPerms ¶ added in v1.1.0
func ValidateSubDistributors ¶ added in v1.1.0
func ValidateSubDistributors(subDistributors []SubDistributor) error
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) GetAccountKey ¶ added in v1.1.0
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 DestinationShare ¶ added in v1.1.0
type DestinationShare struct {}
func (*DestinationShare) Descriptor ¶ added in v1.1.0
func (*DestinationShare) Descriptor() ([]byte, []int)
func (*DestinationShare) GetDestination ¶ added in v1.1.0
func (m *DestinationShare) GetDestination() Account
func (*DestinationShare) GetName ¶ added in v1.1.0
func (m *DestinationShare) GetName() string
func (*DestinationShare) Marshal ¶ added in v1.1.0
func (m *DestinationShare) Marshal() (dAtA []byte, err error)
func (*DestinationShare) MarshalTo ¶ added in v1.1.0
func (m *DestinationShare) MarshalTo(dAtA []byte) (int, error)
func (*DestinationShare) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *DestinationShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DestinationShare) ProtoMessage ¶ added in v1.1.0
func (*DestinationShare) ProtoMessage()
func (*DestinationShare) Reset ¶ added in v1.1.0
func (m *DestinationShare) Reset()
func (*DestinationShare) Size ¶ added in v1.1.0
func (m *DestinationShare) Size() (n int)
func (*DestinationShare) String ¶ added in v1.1.0
func (m *DestinationShare) String() string
func (*DestinationShare) Unmarshal ¶ added in v1.1.0
func (m *DestinationShare) Unmarshal(dAtA []byte) error
func (*DestinationShare) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *DestinationShare) XXX_DiscardUnknown()
func (*DestinationShare) XXX_Marshal ¶ added in v1.1.0
func (m *DestinationShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DestinationShare) XXX_Merge ¶ added in v1.1.0
func (m *DestinationShare) XXX_Merge(src proto.Message)
func (*DestinationShare) XXX_Size ¶ added in v1.1.0
func (m *DestinationShare) XXX_Size() int
func (*DestinationShare) XXX_Unmarshal ¶ added in v1.1.0
func (m *DestinationShare) XXX_Unmarshal(b []byte) error
type Destinations ¶ added in v1.1.0
type Destinations struct {}
func (Destinations) CheckIfSharesSumIsBetween0And1 ¶ added in v1.1.0
func (destinations Destinations) CheckIfSharesSumIsBetween0And1() error
func (*Destinations) Descriptor ¶ added in v1.1.0
func (*Destinations) Descriptor() ([]byte, []int)
func (*Destinations) GetPrimaryShare ¶ added in v1.1.0
func (m *Destinations) GetPrimaryShare() Account
func (*Destinations) GetShares ¶ added in v1.1.0
func (m *Destinations) GetShares() []*DestinationShare
func (*Destinations) Marshal ¶ added in v1.1.0
func (m *Destinations) Marshal() (dAtA []byte, err error)
func (*Destinations) MarshalTo ¶ added in v1.1.0
func (m *Destinations) MarshalTo(dAtA []byte) (int, error)
func (*Destinations) MarshalToSizedBuffer ¶ added in v1.1.0
func (m *Destinations) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Destinations) ProtoMessage ¶ added in v1.1.0
func (*Destinations) ProtoMessage()
func (*Destinations) Reset ¶ added in v1.1.0
func (m *Destinations) Reset()
func (*Destinations) Size ¶ added in v1.1.0
func (m *Destinations) Size() (n int)
func (*Destinations) String ¶ added in v1.1.0
func (m *Destinations) String() string
func (*Destinations) Unmarshal ¶ added in v1.1.0
func (m *Destinations) Unmarshal(dAtA []byte) error
func (Destinations) Validate ¶ added in v1.1.0
func (destinations Destinations) Validate(primaryShareName string) error
func (*Destinations) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Destinations) XXX_DiscardUnknown()
func (*Destinations) XXX_Marshal ¶ added in v1.1.0
func (m *Destinations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Destinations) XXX_Merge ¶ added in v1.1.0
func (m *Destinations) XXX_Merge(src proto.Message)
func (*Destinations) XXX_Size ¶ added in v1.1.0
func (m *Destinations) XXX_Size() int
func (*Destinations) XXX_Unmarshal ¶ added in v1.1.0
func (m *Destinations) XXX_Unmarshal(b []byte) error
type EventDistribution ¶ added in v1.3.0
type EventDistribution struct { Subdistributor string `protobuf:"bytes,1,opt,name=subdistributor,proto3" json:"subdistributor,omitempty"` Sources []*Account `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"` Destination *Account `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 126-byte string literal not displayed */ }
func (*EventDistribution) Descriptor ¶ added in v1.3.0
func (*EventDistribution) Descriptor() ([]byte, []int)
func (*EventDistribution) GetAmount ¶ added in v1.3.0
func (m *EventDistribution) GetAmount() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*EventDistribution) GetDestination ¶ added in v1.3.0
func (m *EventDistribution) GetDestination() *Account
func (*EventDistribution) GetShareName ¶ added in v1.3.0
func (m *EventDistribution) GetShareName() string
func (*EventDistribution) GetSources ¶ added in v1.3.0
func (m *EventDistribution) GetSources() []*Account
func (*EventDistribution) GetSubdistributor ¶ added in v1.3.0
func (m *EventDistribution) GetSubdistributor() string
func (*EventDistribution) Marshal ¶ added in v1.3.0
func (m *EventDistribution) Marshal() (dAtA []byte, err error)
func (*EventDistribution) MarshalTo ¶ added in v1.3.0
func (m *EventDistribution) MarshalTo(dAtA []byte) (int, error)
func (*EventDistribution) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *EventDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDistribution) ProtoMessage ¶ added in v1.3.0
func (*EventDistribution) ProtoMessage()
func (*EventDistribution) Reset ¶ added in v1.3.0
func (m *EventDistribution) Reset()
func (*EventDistribution) Size ¶ added in v1.3.0
func (m *EventDistribution) Size() (n int)
func (*EventDistribution) String ¶ added in v1.3.0
func (m *EventDistribution) String() string
func (*EventDistribution) Unmarshal ¶ added in v1.3.0
func (m *EventDistribution) Unmarshal(dAtA []byte) error
func (*EventDistribution) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *EventDistribution) XXX_DiscardUnknown()
func (*EventDistribution) XXX_Marshal ¶ added in v1.3.0
func (m *EventDistribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDistribution) XXX_Merge ¶ added in v1.3.0
func (m *EventDistribution) XXX_Merge(src proto.Message)
func (*EventDistribution) XXX_Size ¶ added in v1.3.0
func (m *EventDistribution) XXX_Size() int
func (*EventDistribution) XXX_Unmarshal ¶ added in v1.3.0
func (m *EventDistribution) XXX_Unmarshal(b []byte) error
type EventDistributionBurn ¶ added in v1.3.0
type EventDistributionBurn struct { Subdistributor string `protobuf:"bytes,1,opt,name=subdistributor,proto3" json:"subdistributor,omitempty"` Sources []*Account `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 126-byte string literal not displayed */ }
func (*EventDistributionBurn) Descriptor ¶ added in v1.3.0
func (*EventDistributionBurn) Descriptor() ([]byte, []int)
func (*EventDistributionBurn) GetAmount ¶ added in v1.3.0
func (m *EventDistributionBurn) GetAmount() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*EventDistributionBurn) GetSources ¶ added in v1.3.0
func (m *EventDistributionBurn) GetSources() []*Account
func (*EventDistributionBurn) GetSubdistributor ¶ added in v1.3.0
func (m *EventDistributionBurn) GetSubdistributor() string
func (*EventDistributionBurn) Marshal ¶ added in v1.3.0
func (m *EventDistributionBurn) Marshal() (dAtA []byte, err error)
func (*EventDistributionBurn) MarshalTo ¶ added in v1.3.0
func (m *EventDistributionBurn) MarshalTo(dAtA []byte) (int, error)
func (*EventDistributionBurn) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *EventDistributionBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDistributionBurn) ProtoMessage ¶ added in v1.3.0
func (*EventDistributionBurn) ProtoMessage()
func (*EventDistributionBurn) Reset ¶ added in v1.3.0
func (m *EventDistributionBurn) Reset()
func (*EventDistributionBurn) Size ¶ added in v1.3.0
func (m *EventDistributionBurn) Size() (n int)
func (*EventDistributionBurn) String ¶ added in v1.3.0
func (m *EventDistributionBurn) String() string
func (*EventDistributionBurn) Unmarshal ¶ added in v1.3.0
func (m *EventDistributionBurn) Unmarshal(dAtA []byte) error
func (*EventDistributionBurn) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *EventDistributionBurn) XXX_DiscardUnknown()
func (*EventDistributionBurn) XXX_Marshal ¶ added in v1.3.0
func (m *EventDistributionBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDistributionBurn) XXX_Merge ¶ added in v1.3.0
func (m *EventDistributionBurn) XXX_Merge(src proto.Message)
func (*EventDistributionBurn) XXX_Size ¶ added in v1.3.0
func (m *EventDistributionBurn) XXX_Size() int
func (*EventDistributionBurn) XXX_Unmarshal ¶ added in v1.3.0
func (m *EventDistributionBurn) 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 { // this line is used by starport scaffolding # proto/tx/rpc UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) UpdateSubDistributorParam(ctx context.Context, in *MsgUpdateSubDistributorParam, opts ...grpc.CallOption) (*MsgUpdateSubDistributorParamResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface { // this line is used by starport scaffolding # proto/tx/rpc UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) UpdateSubDistributorParam(context.Context, *MsgUpdateSubDistributorParam) (*MsgUpdateSubDistributorParamResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v1.2.0
type MsgUpdateParams struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` SubDistributors []SubDistributor `protobuf:"bytes,2,rep,name=sub_distributors,json=subDistributors,proto3" json:"sub_distributors"` }
func (*MsgUpdateParams) Descriptor ¶ added in v1.2.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v1.2.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetSignBytes ¶ added in v1.2.0
func (msg *MsgUpdateParams) GetSignBytes() []byte
func (*MsgUpdateParams) GetSigners ¶ added in v1.2.0
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) GetSubDistributors ¶ added in v1.2.0
func (m *MsgUpdateParams) GetSubDistributors() []SubDistributor
func (*MsgUpdateParams) Marshal ¶ added in v1.2.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.2.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶ added in v1.2.0
func (msg *MsgUpdateParams) Route() string
func (*MsgUpdateParams) Size ¶ added in v1.2.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.2.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶ added in v1.2.0
func (msg *MsgUpdateParams) Type() string
func (*MsgUpdateParams) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.2.0
func (msg *MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.2.0
type MsgUpdateParamsResponse struct { }
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.2.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorBurnShareParam ¶ added in v1.2.0
type MsgUpdateSubDistributorBurnShareParam struct {}
func (*MsgUpdateSubDistributorBurnShareParam) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorBurnShareParam) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorBurnShareParam) GetAuthority ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) GetAuthority() string
func (*MsgUpdateSubDistributorBurnShareParam) GetSignBytes ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorBurnShareParam) GetSignBytes() []byte
func (*MsgUpdateSubDistributorBurnShareParam) GetSigners ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorBurnShareParam) GetSigners() []sdk.AccAddress
func (*MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName() string
func (*MsgUpdateSubDistributorBurnShareParam) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorBurnShareParam) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorBurnShareParam) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage()
func (*MsgUpdateSubDistributorBurnShareParam) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) Reset()
func (*MsgUpdateSubDistributorBurnShareParam) Route ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorBurnShareParam) Route() string
func (*MsgUpdateSubDistributorBurnShareParam) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) Size() (n int)
func (*MsgUpdateSubDistributorBurnShareParam) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) String() string
func (*MsgUpdateSubDistributorBurnShareParam) Type ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorBurnShareParam) Type() string
func (*MsgUpdateSubDistributorBurnShareParam) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorBurnShareParam) ValidateBasic ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorBurnShareParam) ValidateBasic() error
func (*MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorBurnShareParam) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorBurnShareParam) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorBurnShareParam) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Size() int
func (*MsgUpdateSubDistributorBurnShareParam) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParam) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorBurnShareParamResponse ¶ added in v1.2.0
type MsgUpdateSubDistributorBurnShareParamResponse struct { }
func (*MsgUpdateSubDistributorBurnShareParamResponse) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorBurnShareParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorBurnShareParamResponse) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorBurnShareParamResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorBurnShareParamResponse) ProtoMessage()
func (*MsgUpdateSubDistributorBurnShareParamResponse) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) Reset()
func (*MsgUpdateSubDistributorBurnShareParamResponse) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) Size() (n int)
func (*MsgUpdateSubDistributorBurnShareParamResponse) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) String() string
func (*MsgUpdateSubDistributorBurnShareParamResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Size() int
func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorDestinationShareParam ¶ added in v1.2.0
type MsgUpdateSubDistributorDestinationShareParam struct {}
func (*MsgUpdateSubDistributorDestinationShareParam) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorDestinationShareParam) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorDestinationShareParam) GetAuthority ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) GetAuthority() string
func (*MsgUpdateSubDistributorDestinationShareParam) GetDestinationName ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) GetDestinationName() string
func (*MsgUpdateSubDistributorDestinationShareParam) GetSignBytes ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorDestinationShareParam) GetSignBytes() []byte
func (*MsgUpdateSubDistributorDestinationShareParam) GetSigners ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorDestinationShareParam) GetSigners() []sdk.AccAddress
func (*MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName() string
func (*MsgUpdateSubDistributorDestinationShareParam) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorDestinationShareParam) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorDestinationShareParam) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorDestinationShareParam) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorDestinationShareParam) ProtoMessage()
func (*MsgUpdateSubDistributorDestinationShareParam) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) Reset()
func (*MsgUpdateSubDistributorDestinationShareParam) Route ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorDestinationShareParam) Route() string
func (*MsgUpdateSubDistributorDestinationShareParam) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) Size() (n int)
func (*MsgUpdateSubDistributorDestinationShareParam) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) String() string
func (*MsgUpdateSubDistributorDestinationShareParam) Type ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorDestinationShareParam) Type() string
func (*MsgUpdateSubDistributorDestinationShareParam) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorDestinationShareParam) ValidateBasic ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorDestinationShareParam) ValidateBasic() error
func (*MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Size() int
func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorDestinationShareParamResponse ¶ added in v1.2.0
type MsgUpdateSubDistributorDestinationShareParamResponse struct { }
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorDestinationShareParamResponse) ProtoMessage()
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Reset()
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Size() (n int)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) String() string
func (*MsgUpdateSubDistributorDestinationShareParamResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Size() int
func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorParam ¶ added in v1.2.0
type MsgUpdateSubDistributorParam struct { // authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` SubDistributor *SubDistributor `protobuf:"bytes,2,opt,name=sub_distributor,json=subDistributor,proto3" json:"sub_distributor,omitempty"` }
func (*MsgUpdateSubDistributorParam) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorParam) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorParam) GetAuthority ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) GetAuthority() string
func (*MsgUpdateSubDistributorParam) GetSignBytes ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorParam) GetSignBytes() []byte
func (*MsgUpdateSubDistributorParam) GetSigners ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorParam) GetSigners() []sdk.AccAddress
func (*MsgUpdateSubDistributorParam) GetSubDistributor ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) GetSubDistributor() *SubDistributor
func (*MsgUpdateSubDistributorParam) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorParam) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorParam) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorParam) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorParam) ProtoMessage()
func (*MsgUpdateSubDistributorParam) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) Reset()
func (*MsgUpdateSubDistributorParam) Route ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorParam) Route() string
func (*MsgUpdateSubDistributorParam) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) Size() (n int)
func (*MsgUpdateSubDistributorParam) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) String() string
func (*MsgUpdateSubDistributorParam) Type ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorParam) Type() string
func (*MsgUpdateSubDistributorParam) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorParam) ValidateBasic ¶ added in v1.2.0
func (msg *MsgUpdateSubDistributorParam) ValidateBasic() error
func (*MsgUpdateSubDistributorParam) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorParam) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorParam) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorParam) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) XXX_Size() int
func (*MsgUpdateSubDistributorParam) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParam) XXX_Unmarshal(b []byte) error
type MsgUpdateSubDistributorParamResponse ¶ added in v1.2.0
type MsgUpdateSubDistributorParamResponse struct { }
func (*MsgUpdateSubDistributorParamResponse) Descriptor ¶ added in v1.2.0
func (*MsgUpdateSubDistributorParamResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateSubDistributorParamResponse) Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateSubDistributorParamResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorParamResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateSubDistributorParamResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgUpdateSubDistributorParamResponse) ProtoMessage()
func (*MsgUpdateSubDistributorParamResponse) Reset ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) Reset()
func (*MsgUpdateSubDistributorParamResponse) Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) Size() (n int)
func (*MsgUpdateSubDistributorParamResponse) String ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) String() string
func (*MsgUpdateSubDistributorParamResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown()
func (*MsgUpdateSubDistributorParamResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateSubDistributorParamResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateSubDistributorParamResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) XXX_Size() int
func (*MsgUpdateSubDistributorParamResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgUpdateSubDistributorParamResponse) XXX_Unmarshal(b []byte) error
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) 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 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"` Remains github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 129-byte string literal not displayed */ }
func (*State) Descriptor ¶
func (*State) GetAccount ¶
func (*State) GetRemains ¶ added in v1.1.0
func (m *State) GetRemains() github_com_cosmos_cosmos_sdk_types.DecCoins
func (State) GetStateKey ¶ added in v1.1.0
func (State) IsNegative ¶ added in v1.1.0
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"` Destinations Destinations `protobuf:"bytes,3,opt,name=destinations,proto3" json:"destinations"` }
func (*SubDistributor) Descriptor ¶
func (*SubDistributor) Descriptor() ([]byte, []int)
func (*SubDistributor) GetDestinations ¶ added in v1.1.0
func (m *SubDistributor) GetDestinations() Destinations
func (*SubDistributor) GetName ¶
func (m *SubDistributor) GetName() string
func (SubDistributor) GetPrimaryShareName ¶ added in v1.1.0
func (subdistributor SubDistributor) GetPrimaryShareName() 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 (subdistributor 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.
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.2.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdateSubDistributorBurnShareParam ¶ added in v1.2.0
func (*UnimplementedMsgServer) UpdateSubDistributorBurnShareParam(ctx context.Context, req *MsgUpdateSubDistributorBurnShareParam) (*MsgUpdateSubDistributorBurnShareParamResponse, error)
func (*UnimplementedMsgServer) UpdateSubDistributorDestinationShareParam ¶ added in v1.2.0
func (*UnimplementedMsgServer) UpdateSubDistributorDestinationShareParam(ctx context.Context, req *MsgUpdateSubDistributorDestinationShareParam) (*MsgUpdateSubDistributorDestinationShareParamResponse, error)
func (*UnimplementedMsgServer) UpdateSubDistributorParam ¶ added in v1.2.0
func (*UnimplementedMsgServer) UpdateSubDistributorParam(ctx context.Context, req *MsgUpdateSubDistributorParam) (*MsgUpdateSubDistributorParamResponse, error)
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)