Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddressAndDenomFromBalancesStore(key []byte) (sdk.AccAddress, string, error)
- func AddressFromHoldersStore(key []byte) (sdk.AccAddress, error)
- func CreateAccountBalancesPrefix(addr []byte) []byte
- func CreateDenomAddressPrefix(denom string) []byte
- func RegisterInterfaces(registry codectypes.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)
- type AccountKeeper
- type AllowedCollateral
- func (*AllowedCollateral) Descriptor() ([]byte, []int)
- func (m *AllowedCollateral) GetType() CollateralValueType
- func (m *AllowedCollateral) GetValue() string
- func (m *AllowedCollateral) Marshal() (dAtA []byte, err error)
- func (m *AllowedCollateral) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowedCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllowedCollateral) ProtoMessage()
- func (m *AllowedCollateral) Reset()
- func (m *AllowedCollateral) Size() (n int)
- func (m *AllowedCollateral) String() string
- func (m *AllowedCollateral) Unmarshal(dAtA []byte) error
- func (m *AllowedCollateral) XXX_DiscardUnknown()
- func (m *AllowedCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowedCollateral) XXX_Merge(src proto.Message)
- func (m *AllowedCollateral) XXX_Size() int
- func (m *AllowedCollateral) XXX_Unmarshal(b []byte) error
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (b Balance) GetAddress() sdk.AccAddress
- func (b Balance) GetCoins() sdk.Coins
- func (m *Balance) Marshal() (dAtA []byte, err error)
- func (m *Balance) MarshalTo(dAtA []byte) (int, error)
- func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Balance) ProtoMessage()
- func (m *Balance) Reset()
- func (m *Balance) Size() (n int)
- func (m *Balance) String() string
- func (m *Balance) Unmarshal(dAtA []byte) error
- func (b Balance) Validate() error
- func (m *Balance) XXX_DiscardUnknown()
- func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Balance) XXX_Merge(src proto.Message)
- func (m *Balance) XXX_Size() int
- func (m *Balance) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type CollateralValueType
- type GenesisBalancesIterator
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBalances() []Balance
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTotalBalance() github_com_cosmos_cosmos_sdk_types.Coins
- 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 MsgFund
- func (*MsgFund) Descriptor() ([]byte, []int)
- func (msg MsgFund) GetSignBytes() []byte
- func (msg MsgFund) GetSigners() []sdk.AccAddress
- func (m *MsgFund) Marshal() (dAtA []byte, err error)
- func (m *MsgFund) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFund) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFund) ProtoMessage()
- func (m *MsgFund) Reset()
- func (msg MsgFund) Route() string
- func (m *MsgFund) Size() (n int)
- func (m *MsgFund) String() string
- func (msg MsgFund) Type() string
- func (m *MsgFund) Unmarshal(dAtA []byte) error
- func (msg MsgFund) ValidateBasic() error
- func (m *MsgFund) XXX_DiscardUnknown()
- func (m *MsgFund) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFund) XXX_Merge(src proto.Message)
- func (m *MsgFund) XXX_Size() int
- func (m *MsgFund) XXX_Unmarshal(b []byte) error
- type MsgFundLegacy
- func (*MsgFundLegacy) Descriptor() ([]byte, []int)
- func (msg MsgFundLegacy) GetSignBytes() []byte
- func (msg MsgFundLegacy) GetSigners() []sdk.AccAddress
- func (m *MsgFundLegacy) Marshal() (dAtA []byte, err error)
- func (m *MsgFundLegacy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFundLegacy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFundLegacy) ProtoMessage()
- func (m *MsgFundLegacy) Reset()
- func (msg MsgFundLegacy) Route() string
- func (m *MsgFundLegacy) Size() (n int)
- func (m *MsgFundLegacy) String() string
- func (msg MsgFundLegacy) Type() string
- func (m *MsgFundLegacy) Unmarshal(dAtA []byte) error
- func (msg MsgFundLegacy) ValidateBasic() error
- func (m *MsgFundLegacy) XXX_DiscardUnknown()
- func (m *MsgFundLegacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFundLegacy) XXX_Merge(src proto.Message)
- func (m *MsgFundLegacy) XXX_Size() int
- func (m *MsgFundLegacy) XXX_Unmarshal(b []byte) error
- type MsgFundResponse
- func (*MsgFundResponse) Descriptor() ([]byte, []int)
- func (m *MsgFundResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFundResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFundResponse) ProtoMessage()
- func (m *MsgFundResponse) Reset()
- func (m *MsgFundResponse) Size() (n int)
- func (m *MsgFundResponse) String() string
- func (m *MsgFundResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFundResponse) XXX_DiscardUnknown()
- func (m *MsgFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFundResponse) XXX_Merge(src proto.Message)
- func (m *MsgFundResponse) XXX_Size() int
- func (m *MsgFundResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferOwnership
- func (*MsgTransferOwnership) Descriptor() ([]byte, []int)
- func (msg MsgTransferOwnership) GetSignBytes() []byte
- func (msg MsgTransferOwnership) GetSigners() []sdk.AccAddress
- func (m *MsgTransferOwnership) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnership) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnership) ProtoMessage()
- func (m *MsgTransferOwnership) Reset()
- func (msg MsgTransferOwnership) Route() string
- func (m *MsgTransferOwnership) Size() (n int)
- func (m *MsgTransferOwnership) String() string
- func (msg MsgTransferOwnership) Type() string
- func (m *MsgTransferOwnership) Unmarshal(dAtA []byte) error
- func (msg MsgTransferOwnership) ValidateBasic() error
- func (m *MsgTransferOwnership) XXX_DiscardUnknown()
- func (m *MsgTransferOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnership) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnership) XXX_Size() int
- func (m *MsgTransferOwnership) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnershipResponse
- func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferOwnershipResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnershipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnershipResponse) ProtoMessage()
- func (m *MsgTransferOwnershipResponse) Reset()
- func (m *MsgTransferOwnershipResponse) Size() (n int)
- func (m *MsgTransferOwnershipResponse) String() string
- func (m *MsgTransferOwnershipResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown()
- func (m *MsgTransferOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnershipResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnershipResponse) XXX_Size() int
- func (m *MsgTransferOwnershipResponse) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnershipWithAmount
- func (*MsgTransferOwnershipWithAmount) Descriptor() ([]byte, []int)
- func (msg MsgTransferOwnershipWithAmount) GetSignBytes() []byte
- func (msg MsgTransferOwnershipWithAmount) GetSigners() []sdk.AccAddress
- func (m *MsgTransferOwnershipWithAmount) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnershipWithAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnershipWithAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnershipWithAmount) ProtoMessage()
- func (m *MsgTransferOwnershipWithAmount) Reset()
- func (msg MsgTransferOwnershipWithAmount) Route() string
- func (m *MsgTransferOwnershipWithAmount) Size() (n int)
- func (m *MsgTransferOwnershipWithAmount) String() string
- func (msg MsgTransferOwnershipWithAmount) Type() string
- func (m *MsgTransferOwnershipWithAmount) Unmarshal(dAtA []byte) error
- func (msg MsgTransferOwnershipWithAmount) ValidateBasic() error
- func (m *MsgTransferOwnershipWithAmount) XXX_DiscardUnknown()
- func (m *MsgTransferOwnershipWithAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnershipWithAmount) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnershipWithAmount) XXX_Size() int
- func (m *MsgTransferOwnershipWithAmount) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnershipWithAmountResponse
- func (*MsgTransferOwnershipWithAmountResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferOwnershipWithAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnershipWithAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnershipWithAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnershipWithAmountResponse) ProtoMessage()
- func (m *MsgTransferOwnershipWithAmountResponse) Reset()
- func (m *MsgTransferOwnershipWithAmountResponse) Size() (n int)
- func (m *MsgTransferOwnershipWithAmountResponse) String() string
- func (m *MsgTransferOwnershipWithAmountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferOwnershipWithAmountResponse) XXX_DiscardUnknown()
- func (m *MsgTransferOwnershipWithAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnershipWithAmountResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnershipWithAmountResponse) XXX_Size() int
- func (m *MsgTransferOwnershipWithAmountResponse) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnershipWithRatio
- func (*MsgTransferOwnershipWithRatio) Descriptor() ([]byte, []int)
- func (msg MsgTransferOwnershipWithRatio) GetSignBytes() []byte
- func (msg MsgTransferOwnershipWithRatio) GetSigners() []sdk.AccAddress
- func (m *MsgTransferOwnershipWithRatio) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnershipWithRatio) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnershipWithRatio) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnershipWithRatio) ProtoMessage()
- func (m *MsgTransferOwnershipWithRatio) Reset()
- func (msg MsgTransferOwnershipWithRatio) Route() string
- func (m *MsgTransferOwnershipWithRatio) Size() (n int)
- func (m *MsgTransferOwnershipWithRatio) String() string
- func (msg MsgTransferOwnershipWithRatio) Type() string
- func (m *MsgTransferOwnershipWithRatio) Unmarshal(dAtA []byte) error
- func (msg MsgTransferOwnershipWithRatio) ValidateBasic() error
- func (m *MsgTransferOwnershipWithRatio) XXX_DiscardUnknown()
- func (m *MsgTransferOwnershipWithRatio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnershipWithRatio) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnershipWithRatio) XXX_Size() int
- func (m *MsgTransferOwnershipWithRatio) XXX_Unmarshal(b []byte) error
- type MsgTransferOwnershipWithRatioResponse
- func (*MsgTransferOwnershipWithRatioResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferOwnershipWithRatioResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgTransferOwnershipWithRatioResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferOwnershipWithRatioResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferOwnershipWithRatioResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferOwnershipWithRatioResponse) ProtoMessage()
- func (m *MsgTransferOwnershipWithRatioResponse) Reset()
- func (m *MsgTransferOwnershipWithRatioResponse) Size() (n int)
- func (m *MsgTransferOwnershipWithRatioResponse) String() string
- func (m *MsgTransferOwnershipWithRatioResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferOwnershipWithRatioResponse) XXX_DiscardUnknown()
- func (m *MsgTransferOwnershipWithRatioResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferOwnershipWithRatioResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferOwnershipWithRatioResponse) XXX_Size() int
- func (m *MsgTransferOwnershipWithRatioResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllowedCollaterals() []*AllowedCollateral
- func (m *Params) GetEnableDao() bool
- 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) ValidateBasic() 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 QueryAllBalancesRequest
- func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesRequest) ProtoMessage()
- func (m *QueryAllBalancesRequest) Reset()
- func (m *QueryAllBalancesRequest) Size() (n int)
- func (m *QueryAllBalancesRequest) String() string
- func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesRequest) XXX_Size() int
- func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBalancesResponse
- func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse
- func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesResponse) ProtoMessage()
- func (m *QueryAllBalancesResponse) Reset()
- func (m *QueryAllBalancesResponse) Size() (n int)
- func (m *QueryAllBalancesResponse) String() string
- func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesResponse) XXX_Size() int
- func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceRequest) ProtoMessage()
- func (m *QueryBalanceRequest) Reset()
- func (m *QueryBalanceRequest) Size() (n int)
- func (m *QueryBalanceRequest) String() string
- func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceRequest) XXX_Size() int
- func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse) GetBalance() *types.Coin
- func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse) ProtoMessage()
- func (m *QueryBalanceResponse) Reset()
- func (m *QueryBalanceResponse) Size() (n int)
- func (m *QueryBalanceResponse) String() string
- func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse) XXX_Size() int
- func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryHoldersRequest
- func (*QueryHoldersRequest) Descriptor() ([]byte, []int)
- func (m *QueryHoldersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryHoldersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHoldersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHoldersRequest) ProtoMessage()
- func (m *QueryHoldersRequest) Reset()
- func (m *QueryHoldersRequest) Size() (n int)
- func (m *QueryHoldersRequest) String() string
- func (m *QueryHoldersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryHoldersRequest) XXX_DiscardUnknown()
- func (m *QueryHoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHoldersRequest) XXX_Merge(src proto.Message)
- func (m *QueryHoldersRequest) XXX_Size() int
- func (m *QueryHoldersRequest) XXX_Unmarshal(b []byte) error
- type QueryHoldersResponse
- func (*QueryHoldersResponse) Descriptor() ([]byte, []int)
- func (m *QueryHoldersResponse) GetBalances() []Balance
- func (m *QueryHoldersResponse) GetPagination() *query.PageResponse
- func (m *QueryHoldersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHoldersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHoldersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHoldersResponse) ProtoMessage()
- func (m *QueryHoldersResponse) Reset()
- func (m *QueryHoldersResponse) Size() (n int)
- func (m *QueryHoldersResponse) String() string
- func (m *QueryHoldersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHoldersResponse) XXX_DiscardUnknown()
- func (m *QueryHoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHoldersResponse) XXX_Merge(src proto.Message)
- func (m *QueryHoldersResponse) XXX_Size() int
- func (m *QueryHoldersResponse) XXX_Unmarshal(b []byte) error
- 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 QueryTotalBalanceRequest
- func (*QueryTotalBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalBalanceRequest) ProtoMessage()
- func (m *QueryTotalBalanceRequest) Reset()
- func (m *QueryTotalBalanceRequest) Size() (n int)
- func (m *QueryTotalBalanceRequest) String() string
- func (m *QueryTotalBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryTotalBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalBalanceRequest) XXX_Size() int
- func (m *QueryTotalBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalBalanceResponse
- func (*QueryTotalBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalBalanceResponse) GetPagination() *query.PageResponse
- func (m *QueryTotalBalanceResponse) GetTotalBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalBalanceResponse) ProtoMessage()
- func (m *QueryTotalBalanceResponse) Reset()
- func (m *QueryTotalBalanceResponse) Size() (n int)
- func (m *QueryTotalBalanceResponse) String() string
- func (m *QueryTotalBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryTotalBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalBalanceResponse) XXX_Size() int
- func (m *QueryTotalBalanceResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Fund(ctx context.Context, req *MsgFund) (*MsgFundResponse, error)
- func (*UnimplementedMsgServer) TransferOwnership(ctx context.Context, req *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error)
- func (*UnimplementedMsgServer) TransferOwnershipWithAmount(ctx context.Context, req *MsgTransferOwnershipWithAmount) (*MsgTransferOwnershipWithAmountResponse, error)
- func (*UnimplementedMsgServer) TransferOwnershipWithRatio(ctx context.Context, req *MsgTransferOwnershipWithRatio) (*MsgTransferOwnershipWithRatioResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) Holders(ctx context.Context, req *QueryHoldersRequest) (*QueryHoldersResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalBalance(ctx context.Context, req *QueryTotalBalanceRequest) (*QueryTotalBalanceResponse, error)
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "ucdao" // ModuleOldName is the module old name constant used for store migration ModuleOldName = "dao" // StoreKey is the store key string for distribution StoreKey = ModuleName // RouterKey is the message route for distribution RouterKey = ModuleName )
const ( TypeMsgFund = "fund_dao" TypeMsgTransferOwnership = "transfer_ownership" TypeMsgTransferOwnershipWithRatio = "transfer_ownership_with_ratio" TypeMsgTransferOwnershipWithAmount = "transfer_ownership_with_amount" )
Variables ¶
var ( ErrInvalidKey = sdkerrors.Register(ModuleName, 1, "invalid key") ErrModuleDisabled = sdkerrors.Register(ModuleName, 2, "module is disabled") ErrInvalidDenom = sdkerrors.Register(ModuleName, 3, "invalid denom") ErrNotEligible = sdkerrors.Register(ModuleName, 4, "not eligible") ErrInvalidRatio = sdkerrors.Register(ModuleName, 5, "invalid ratio") ErrInsufficientFunds = sdkerrors.Register(ModuleName, 6, "insufficient funds") )
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 ( TotalBalanceKey = []byte{0x00} // key for global dao state // BalancesPrefix is the prefix for the account balances store. We use a byte // (instead of `[]byte("balances")` to save some disk space). BalancesPrefix = []byte{0x01} DenomAddressPrefix = []byte{0x02} HoldersPrefix = []byte{0x04} // 3 is already occupied by the params key ParamsKey = []byte{0x03} // key for dao module params )
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthUcdao = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUcdao = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUcdao = fmt.Errorf("proto: unexpected end of group") )
var CollateralValueType_name = map[int32]string{
0: "COLLATERAL_VALUE_TYPE_UNSPECIFIED",
1: "COLLATERAL_VALUE_TYPE_STRICT",
2: "COLLATERAL_VALUE_TYPE_MASK",
}
var CollateralValueType_value = map[string]int32{
"COLLATERAL_VALUE_TYPE_UNSPECIFIED": 0,
"COLLATERAL_VALUE_TYPE_STRICT": 1,
"COLLATERAL_VALUE_TYPE_MASK": 2,
}
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func AddressAndDenomFromBalancesStore ¶
func AddressAndDenomFromBalancesStore(key []byte) (sdk.AccAddress, string, error)
AddressAndDenomFromBalancesStore returns an account address and denom from a balances prefix store. The key must not contain the prefix BalancesPrefix as the prefix store iterator discards the actual prefix.
If invalid key is passed, AddressAndDenomFromBalancesStore returns ErrInvalidKey.
func AddressFromHoldersStore ¶ added in v1.8.2
func AddressFromHoldersStore(key []byte) (sdk.AccAddress, error)
AddressFromHoldersStore returns an account address from a holders prefix store. The key must not contain the prefix HoldersPrefix as the prefix store iterator discards the actual prefix.
func CreateAccountBalancesPrefix ¶
CreateAccountBalancesPrefix creates the prefix for an account's balances.
func CreateDenomAddressPrefix ¶
CreateDenomAddressPrefix creates a prefix for a reverse index of denomination to account balance for that denomination.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the interfaces types with the Interface Registry.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the dao module.
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 AccountKeeper ¶
type AccountKeeper interface { NewAccount(sdk.Context, types.AccountI) types.AccountI NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetAllAccounts(ctx sdk.Context) []types.AccountI HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool SetAccount(ctx sdk.Context, acc types.AccountI) IterateAccounts(ctx sdk.Context, process func(types.AccountI) bool) ValidatePermissions(macc types.ModuleAccountI) error GetModuleAddress(moduleName string) sdk.AccAddress GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string) GetModuleAccountAndPermissions(ctx sdk.Context, moduleName string) (types.ModuleAccountI, []string) GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI SetModuleAccount(ctx sdk.Context, macc types.ModuleAccountI) GetModulePermissions() map[string]types.PermissionsForAddress }
AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.
type AllowedCollateral ¶
type AllowedCollateral struct { // value is the allowed collateral value. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // type is the allowed collateral value type. Type CollateralValueType `protobuf:"varint,2,opt,name=type,proto3,enum=haqq.ucdao.v1.CollateralValueType" json:"type,omitempty"` }
func (*AllowedCollateral) Descriptor ¶
func (*AllowedCollateral) Descriptor() ([]byte, []int)
func (*AllowedCollateral) GetType ¶
func (m *AllowedCollateral) GetType() CollateralValueType
func (*AllowedCollateral) GetValue ¶
func (m *AllowedCollateral) GetValue() string
func (*AllowedCollateral) Marshal ¶
func (m *AllowedCollateral) Marshal() (dAtA []byte, err error)
func (*AllowedCollateral) MarshalTo ¶
func (m *AllowedCollateral) MarshalTo(dAtA []byte) (int, error)
func (*AllowedCollateral) MarshalToSizedBuffer ¶
func (m *AllowedCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllowedCollateral) ProtoMessage ¶
func (*AllowedCollateral) ProtoMessage()
func (*AllowedCollateral) Reset ¶
func (m *AllowedCollateral) Reset()
func (*AllowedCollateral) Size ¶
func (m *AllowedCollateral) Size() (n int)
func (*AllowedCollateral) String ¶
func (m *AllowedCollateral) String() string
func (*AllowedCollateral) Unmarshal ¶
func (m *AllowedCollateral) Unmarshal(dAtA []byte) error
func (*AllowedCollateral) XXX_DiscardUnknown ¶
func (m *AllowedCollateral) XXX_DiscardUnknown()
func (*AllowedCollateral) XXX_Marshal ¶
func (m *AllowedCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowedCollateral) XXX_Merge ¶
func (m *AllowedCollateral) XXX_Merge(src proto.Message)
func (*AllowedCollateral) XXX_Size ¶
func (m *AllowedCollateral) XXX_Size() int
func (*AllowedCollateral) XXX_Unmarshal ¶
func (m *AllowedCollateral) XXX_Unmarshal(b []byte) error
type Balance ¶
type Balance struct { // address is the address of the balance holder. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // coins defines the different coins this balance holds. Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
Balance defines an account address and balance pair used in the bank module's genesis state.
func SanitizeGenesisBalances ¶
SanitizeGenesisBalances sorts addresses and coin sets.
func (*Balance) Descriptor ¶
func (Balance) GetAddress ¶
func (b Balance) GetAddress() sdk.AccAddress
GetAddress returns the account address of the Balance object.
func (*Balance) MarshalToSizedBuffer ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) XXX_DiscardUnknown ¶
func (m *Balance) XXX_DiscardUnknown()
func (*Balance) XXX_Marshal ¶
func (*Balance) XXX_Unmarshal ¶
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToModule(ctx sdk.Context, senderModule string, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool }
BankKeeper defines the expected interface needed to retrieve account balances.
type CollateralValueType ¶
type CollateralValueType int32
CollateralValueType defines the type of collateral value.
const ( // COLLATERAL_VALUE_TYPE_UNSPECIFIED is the unspecified collateral value type. CollateralValueType_COLLATERAL_VALUE_TYPE_UNSPECIFIED CollateralValueType = 0 // COLLATERAL_VALUE_TYPE_STRICT is the strict collateral value type. CollateralValueType_COLLATERAL_VALUE_TYPE_STRICT CollateralValueType = 1 // COLLATERAL_VALUE_TYPE_MASK is the mask collateral value type. CollateralValueType_COLLATERAL_VALUE_TYPE_MASK CollateralValueType = 2 )
func (CollateralValueType) EnumDescriptor ¶
func (CollateralValueType) EnumDescriptor() ([]byte, []int)
func (CollateralValueType) String ¶
func (x CollateralValueType) String() string
type GenesisBalancesIterator ¶
type GenesisBalancesIterator struct{}
GenesisBalancesIterator implements genesis account iteration.
func (GenesisBalancesIterator) IterateGenesisBalances ¶
func (GenesisBalancesIterator) IterateGenesisBalances( cdc codec.JSONCodec, appState map[string]json.RawMessage, cb func(exported.GenesisBalance) (stop bool), )
IterateGenesisBalances iterates over all the genesis balances found in appGenesis and invokes a callback on each genesis account. If any call returns true, iteration stops.
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // balances is an array containing the balances of all the ucdao members' accounts. Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` // total_balance represents the total balance of the ucdao module. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. TotalBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ }
GenesisState defines the gov module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default dao module genesis state.
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/dao GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, balances []Balance, total sdk.Coins) *GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBalances ¶
func (m *GenesisState) GetBalances() []Balance
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetTotalBalance ¶
func (m *GenesisState) GetTotalBalance() github_com_cosmos_cosmos_sdk_types.Coins
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 validation of supply genesis data returning an error for any failed validation criteria.
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 { // Fund defines a method to allow an account to directly fund the dao. Fund(ctx context.Context, in *MsgFund, opts ...grpc.CallOption) (*MsgFundResponse, error) // TransferOwnership defines a method to allow an account to transfer the ownership of shares to another account. TransferOwnership(ctx context.Context, in *MsgTransferOwnership, opts ...grpc.CallOption) (*MsgTransferOwnershipResponse, error) // TransferOwnershipWithRatio defines a method to allow an account to transfer the ownership of shares // to another account with ratio. TransferOwnershipWithRatio(ctx context.Context, in *MsgTransferOwnershipWithRatio, opts ...grpc.CallOption) (*MsgTransferOwnershipWithRatioResponse, error) // TransferOwnershipWithAmount defines a method to allow an account to transfer the ownership of shares // to another account with certain amount of coins. TransferOwnershipWithAmount(ctx context.Context, in *MsgTransferOwnershipWithAmount, opts ...grpc.CallOption) (*MsgTransferOwnershipWithAmountResponse, 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 MsgFund ¶
type MsgFund struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` }
MsgFund allows an account to directly fund the ucdao.
func NewMsgFund ¶
func NewMsgFund(amount sdk.Coins, depositor sdk.AccAddress) *MsgFund
NewMsgFund returns a new MsgFund with a sender and a funding amount.
func (*MsgFund) Descriptor ¶
func (MsgFund) GetSignBytes ¶
GetSignBytes returns the raw bytes for a MsgFundCommunityPool message that the expected signer needs to sign.
func (MsgFund) GetSigners ¶
func (msg MsgFund) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgFund) MarshalToSizedBuffer ¶
func (*MsgFund) ProtoMessage ¶
func (*MsgFund) ProtoMessage()
func (MsgFund) ValidateBasic ¶
ValidateBasic performs basic MsgFundCommunityPool message validation.
func (*MsgFund) XXX_DiscardUnknown ¶
func (m *MsgFund) XXX_DiscardUnknown()
func (*MsgFund) XXX_Marshal ¶
func (*MsgFund) XXX_Unmarshal ¶
type MsgFundLegacy ¶ added in v1.8.2
type MsgFundLegacy struct { Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"` }
MsgFundLegacy allows an access history data from storage. Solves the problem of module renaming.
func NewMsgFundLegacy ¶ added in v1.8.2
func NewMsgFundLegacy(amount sdk.Coins, depositor sdk.AccAddress) *MsgFundLegacy
NewMsgFundLegacy returns a new MsgFundLegacy with a sender and a funding amount.
func (*MsgFundLegacy) Descriptor ¶ added in v1.8.2
func (*MsgFundLegacy) Descriptor() ([]byte, []int)
func (MsgFundLegacy) GetSignBytes ¶ added in v1.8.2
func (msg MsgFundLegacy) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgFundCommunityPool message that the expected signer needs to sign.
func (MsgFundLegacy) GetSigners ¶ added in v1.8.2
func (msg MsgFundLegacy) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgFundLegacy) Marshal ¶ added in v1.8.2
func (m *MsgFundLegacy) Marshal() (dAtA []byte, err error)
func (*MsgFundLegacy) MarshalTo ¶ added in v1.8.2
func (m *MsgFundLegacy) MarshalTo(dAtA []byte) (int, error)
func (*MsgFundLegacy) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *MsgFundLegacy) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFundLegacy) ProtoMessage ¶ added in v1.8.2
func (*MsgFundLegacy) ProtoMessage()
func (*MsgFundLegacy) Reset ¶ added in v1.8.2
func (m *MsgFundLegacy) Reset()
func (MsgFundLegacy) Route ¶ added in v1.8.2
func (msg MsgFundLegacy) Route() string
Route returns the MsgFundCommunityPool message route.
func (*MsgFundLegacy) Size ¶ added in v1.8.2
func (m *MsgFundLegacy) Size() (n int)
func (*MsgFundLegacy) String ¶ added in v1.8.2
func (m *MsgFundLegacy) String() string
func (MsgFundLegacy) Type ¶ added in v1.8.2
func (msg MsgFundLegacy) Type() string
Type returns the MsgFundCommunityPool message type.
func (*MsgFundLegacy) Unmarshal ¶ added in v1.8.2
func (m *MsgFundLegacy) Unmarshal(dAtA []byte) error
func (MsgFundLegacy) ValidateBasic ¶ added in v1.8.2
func (msg MsgFundLegacy) ValidateBasic() error
ValidateBasic performs basic MsgFundCommunityPool message validation.
func (*MsgFundLegacy) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *MsgFundLegacy) XXX_DiscardUnknown()
func (*MsgFundLegacy) XXX_Marshal ¶ added in v1.8.2
func (m *MsgFundLegacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFundLegacy) XXX_Merge ¶ added in v1.8.2
func (m *MsgFundLegacy) XXX_Merge(src proto.Message)
func (*MsgFundLegacy) XXX_Size ¶ added in v1.8.2
func (m *MsgFundLegacy) XXX_Size() int
func (*MsgFundLegacy) XXX_Unmarshal ¶ added in v1.8.2
func (m *MsgFundLegacy) XXX_Unmarshal(b []byte) error
type MsgFundResponse ¶
type MsgFundResponse struct { }
MsgFundResponse defines the Msg/Fund response type.
func (*MsgFundResponse) Descriptor ¶
func (*MsgFundResponse) Descriptor() ([]byte, []int)
func (*MsgFundResponse) Marshal ¶
func (m *MsgFundResponse) Marshal() (dAtA []byte, err error)
func (*MsgFundResponse) MarshalToSizedBuffer ¶
func (m *MsgFundResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFundResponse) ProtoMessage ¶
func (*MsgFundResponse) ProtoMessage()
func (*MsgFundResponse) Reset ¶
func (m *MsgFundResponse) Reset()
func (*MsgFundResponse) Size ¶
func (m *MsgFundResponse) Size() (n int)
func (*MsgFundResponse) String ¶
func (m *MsgFundResponse) String() string
func (*MsgFundResponse) Unmarshal ¶
func (m *MsgFundResponse) Unmarshal(dAtA []byte) error
func (*MsgFundResponse) XXX_DiscardUnknown ¶
func (m *MsgFundResponse) XXX_DiscardUnknown()
func (*MsgFundResponse) XXX_Marshal ¶
func (m *MsgFundResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFundResponse) XXX_Merge ¶
func (m *MsgFundResponse) XXX_Merge(src proto.Message)
func (*MsgFundResponse) XXX_Size ¶
func (m *MsgFundResponse) XXX_Size() int
func (*MsgFundResponse) XXX_Unmarshal ¶
func (m *MsgFundResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Fund defines a method to allow an account to directly fund the dao. Fund(context.Context, *MsgFund) (*MsgFundResponse, error) // TransferOwnership defines a method to allow an account to transfer the ownership of shares to another account. TransferOwnership(context.Context, *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error) // TransferOwnershipWithRatio defines a method to allow an account to transfer the ownership of shares // to another account with ratio. TransferOwnershipWithRatio(context.Context, *MsgTransferOwnershipWithRatio) (*MsgTransferOwnershipWithRatioResponse, error) // TransferOwnershipWithAmount defines a method to allow an account to transfer the ownership of shares // to another account with certain amount of coins. TransferOwnershipWithAmount(context.Context, *MsgTransferOwnershipWithAmount) (*MsgTransferOwnershipWithAmountResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransferOwnership ¶
type MsgTransferOwnership struct { // owner is a current owner of the shares in ucdao. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // new_owner is a new owner of the shares in ucdao. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` }
MsgTransferOwnership allows an account transfer the ownership of shares to another account.
func NewMsgTransferOwnership ¶
func NewMsgTransferOwnership(owner, newOwner sdk.AccAddress) *MsgTransferOwnership
NewMsgTransferOwnership returns a new MsgTransferOwnership with an old and new owner addresses.
func (*MsgTransferOwnership) Descriptor ¶
func (*MsgTransferOwnership) Descriptor() ([]byte, []int)
func (MsgTransferOwnership) GetSignBytes ¶
func (msg MsgTransferOwnership) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgTransferOwnership message that the expected signer needs to sign.
func (MsgTransferOwnership) GetSigners ¶
func (msg MsgTransferOwnership) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgTransferOwnership) Marshal ¶
func (m *MsgTransferOwnership) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnership) MarshalTo ¶
func (m *MsgTransferOwnership) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnership) MarshalToSizedBuffer ¶
func (m *MsgTransferOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnership) ProtoMessage ¶
func (*MsgTransferOwnership) ProtoMessage()
func (*MsgTransferOwnership) Reset ¶
func (m *MsgTransferOwnership) Reset()
func (MsgTransferOwnership) Route ¶
func (msg MsgTransferOwnership) Route() string
Route returns the MsgTransferOwnership message route.
func (*MsgTransferOwnership) Size ¶
func (m *MsgTransferOwnership) Size() (n int)
func (*MsgTransferOwnership) String ¶
func (m *MsgTransferOwnership) String() string
func (MsgTransferOwnership) Type ¶
func (msg MsgTransferOwnership) Type() string
Type returns the MsgTransferOwnership message type.
func (*MsgTransferOwnership) Unmarshal ¶
func (m *MsgTransferOwnership) Unmarshal(dAtA []byte) error
func (MsgTransferOwnership) ValidateBasic ¶
func (msg MsgTransferOwnership) ValidateBasic() error
ValidateBasic performs basic MsgTransferOwnership message validation.
func (*MsgTransferOwnership) XXX_DiscardUnknown ¶
func (m *MsgTransferOwnership) XXX_DiscardUnknown()
func (*MsgTransferOwnership) XXX_Marshal ¶
func (m *MsgTransferOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnership) XXX_Merge ¶
func (m *MsgTransferOwnership) XXX_Merge(src proto.Message)
func (*MsgTransferOwnership) XXX_Size ¶
func (m *MsgTransferOwnership) XXX_Size() int
func (*MsgTransferOwnership) XXX_Unmarshal ¶
func (m *MsgTransferOwnership) XXX_Unmarshal(b []byte) error
type MsgTransferOwnershipResponse ¶
type MsgTransferOwnershipResponse struct { }
MsgTransferOwnershipResponse defines the Msg/TransferOwnership response type.
func (*MsgTransferOwnershipResponse) Descriptor ¶
func (*MsgTransferOwnershipResponse) Descriptor() ([]byte, []int)
func (*MsgTransferOwnershipResponse) Marshal ¶
func (m *MsgTransferOwnershipResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnershipResponse) MarshalTo ¶
func (m *MsgTransferOwnershipResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnershipResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnershipResponse) ProtoMessage ¶
func (*MsgTransferOwnershipResponse) ProtoMessage()
func (*MsgTransferOwnershipResponse) Reset ¶
func (m *MsgTransferOwnershipResponse) Reset()
func (*MsgTransferOwnershipResponse) Size ¶
func (m *MsgTransferOwnershipResponse) Size() (n int)
func (*MsgTransferOwnershipResponse) String ¶
func (m *MsgTransferOwnershipResponse) String() string
func (*MsgTransferOwnershipResponse) Unmarshal ¶
func (m *MsgTransferOwnershipResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferOwnershipResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferOwnershipResponse) XXX_DiscardUnknown()
func (*MsgTransferOwnershipResponse) XXX_Marshal ¶
func (m *MsgTransferOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnershipResponse) XXX_Merge ¶
func (m *MsgTransferOwnershipResponse) XXX_Merge(src proto.Message)
func (*MsgTransferOwnershipResponse) XXX_Size ¶
func (m *MsgTransferOwnershipResponse) XXX_Size() int
func (*MsgTransferOwnershipResponse) XXX_Unmarshal ¶
func (m *MsgTransferOwnershipResponse) XXX_Unmarshal(b []byte) error
type MsgTransferOwnershipWithAmount ¶ added in v1.8.2
type MsgTransferOwnershipWithAmount struct { // owner is a current owner of the shares in ucdao. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // new_owner is a new owner of the shares in ucdao. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgTransferOwnershipWithAmount allows an account transfer the ownership of shares to another account with certain amount of coins.
func NewMsgTransferOwnershipWithAmount ¶ added in v1.8.2
func NewMsgTransferOwnershipWithAmount(owner, newOwner sdk.AccAddress, amount sdk.Coins) *MsgTransferOwnershipWithAmount
NewMsgTransferOwnershipWithAmount returns a new MsgTransferOwnershipWithAmount with an old and new owner addresses and ratio.
func (*MsgTransferOwnershipWithAmount) Descriptor ¶ added in v1.8.2
func (*MsgTransferOwnershipWithAmount) Descriptor() ([]byte, []int)
func (MsgTransferOwnershipWithAmount) GetSignBytes ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithAmount) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgTransferOwnershipWithRatio message that the expected signer needs to sign.
func (MsgTransferOwnershipWithAmount) GetSigners ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithAmount) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgTransferOwnershipWithAmount) Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnershipWithAmount) MarshalTo ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithAmount) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithAmount) ProtoMessage ¶ added in v1.8.2
func (*MsgTransferOwnershipWithAmount) ProtoMessage()
func (*MsgTransferOwnershipWithAmount) Reset ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) Reset()
func (MsgTransferOwnershipWithAmount) Route ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithAmount) Route() string
Route returns the MsgTransferOwnershipWithRatio message route.
func (*MsgTransferOwnershipWithAmount) Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) Size() (n int)
func (*MsgTransferOwnershipWithAmount) String ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) String() string
func (MsgTransferOwnershipWithAmount) Type ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithAmount) Type() string
Type returns the MsgTransferOwnershipWithRatio message type.
func (*MsgTransferOwnershipWithAmount) Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) Unmarshal(dAtA []byte) error
func (MsgTransferOwnershipWithAmount) ValidateBasic ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithAmount) ValidateBasic() error
ValidateBasic performs basic MsgTransferOwnership message validation.
func (*MsgTransferOwnershipWithAmount) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) XXX_DiscardUnknown()
func (*MsgTransferOwnershipWithAmount) XXX_Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnershipWithAmount) XXX_Merge ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) XXX_Merge(src proto.Message)
func (*MsgTransferOwnershipWithAmount) XXX_Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) XXX_Size() int
func (*MsgTransferOwnershipWithAmount) XXX_Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmount) XXX_Unmarshal(b []byte) error
type MsgTransferOwnershipWithAmountResponse ¶ added in v1.8.2
type MsgTransferOwnershipWithAmountResponse struct { }
MsgTransferOwnershipWithAmountResponse defines the Msg/MsgTransferOwnershipWithAmount response type.
func (*MsgTransferOwnershipWithAmountResponse) Descriptor ¶ added in v1.8.2
func (*MsgTransferOwnershipWithAmountResponse) Descriptor() ([]byte, []int)
func (*MsgTransferOwnershipWithAmountResponse) Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnershipWithAmountResponse) MarshalTo ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithAmountResponse) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithAmountResponse) ProtoMessage ¶ added in v1.8.2
func (*MsgTransferOwnershipWithAmountResponse) ProtoMessage()
func (*MsgTransferOwnershipWithAmountResponse) Reset ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) Reset()
func (*MsgTransferOwnershipWithAmountResponse) Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) Size() (n int)
func (*MsgTransferOwnershipWithAmountResponse) String ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) String() string
func (*MsgTransferOwnershipWithAmountResponse) Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferOwnershipWithAmountResponse) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) XXX_DiscardUnknown()
func (*MsgTransferOwnershipWithAmountResponse) XXX_Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnershipWithAmountResponse) XXX_Merge ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) XXX_Merge(src proto.Message)
func (*MsgTransferOwnershipWithAmountResponse) XXX_Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) XXX_Size() int
func (*MsgTransferOwnershipWithAmountResponse) XXX_Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithAmountResponse) XXX_Unmarshal(b []byte) error
type MsgTransferOwnershipWithRatio ¶ added in v1.8.2
type MsgTransferOwnershipWithRatio struct { // owner is a current owner of the shares in ucdao. Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // new_owner is a new owner of the shares in ucdao. NewOwner string `protobuf:"bytes,2,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"` Ratio cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=ratio,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"ratio"` }
MsgTransferOwnershipWithRatio allows an account transfer the ownership of shares to another account with ratio.
func NewMsgTransferOwnershipWithRatio ¶ added in v1.8.2
func NewMsgTransferOwnershipWithRatio(owner, newOwner sdk.AccAddress, ratio math.LegacyDec) *MsgTransferOwnershipWithRatio
NewMsgTransferOwnershipWithRatio returns a new MsgTransferOwnershipWithRatio with an old and new owner addresses and ratio.
func (*MsgTransferOwnershipWithRatio) Descriptor ¶ added in v1.8.2
func (*MsgTransferOwnershipWithRatio) Descriptor() ([]byte, []int)
func (MsgTransferOwnershipWithRatio) GetSignBytes ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithRatio) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgTransferOwnershipWithRatio message that the expected signer needs to sign.
func (MsgTransferOwnershipWithRatio) GetSigners ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithRatio) GetSigners() []sdk.AccAddress
GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.
func (*MsgTransferOwnershipWithRatio) Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnershipWithRatio) MarshalTo ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithRatio) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithRatio) ProtoMessage ¶ added in v1.8.2
func (*MsgTransferOwnershipWithRatio) ProtoMessage()
func (*MsgTransferOwnershipWithRatio) Reset ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) Reset()
func (MsgTransferOwnershipWithRatio) Route ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithRatio) Route() string
Route returns the MsgTransferOwnershipWithRatio message route.
func (*MsgTransferOwnershipWithRatio) Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) Size() (n int)
func (*MsgTransferOwnershipWithRatio) String ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) String() string
func (MsgTransferOwnershipWithRatio) Type ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithRatio) Type() string
Type returns the MsgTransferOwnershipWithRatio message type.
func (*MsgTransferOwnershipWithRatio) Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) Unmarshal(dAtA []byte) error
func (MsgTransferOwnershipWithRatio) ValidateBasic ¶ added in v1.8.2
func (msg MsgTransferOwnershipWithRatio) ValidateBasic() error
ValidateBasic performs basic MsgTransferOwnership message validation.
func (*MsgTransferOwnershipWithRatio) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) XXX_DiscardUnknown()
func (*MsgTransferOwnershipWithRatio) XXX_Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnershipWithRatio) XXX_Merge ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) XXX_Merge(src proto.Message)
func (*MsgTransferOwnershipWithRatio) XXX_Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) XXX_Size() int
func (*MsgTransferOwnershipWithRatio) XXX_Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatio) XXX_Unmarshal(b []byte) error
type MsgTransferOwnershipWithRatioResponse ¶ added in v1.8.2
type MsgTransferOwnershipWithRatioResponse struct {
Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}
MsgTransferOwnershipWithRatioResponse defines the Msg/MsgTransferOwnershipWithRatio response type.
func (*MsgTransferOwnershipWithRatioResponse) Descriptor ¶ added in v1.8.2
func (*MsgTransferOwnershipWithRatioResponse) Descriptor() ([]byte, []int)
func (*MsgTransferOwnershipWithRatioResponse) GetCoins ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgTransferOwnershipWithRatioResponse) Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferOwnershipWithRatioResponse) MarshalTo ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithRatioResponse) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferOwnershipWithRatioResponse) ProtoMessage ¶ added in v1.8.2
func (*MsgTransferOwnershipWithRatioResponse) ProtoMessage()
func (*MsgTransferOwnershipWithRatioResponse) Reset ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) Reset()
func (*MsgTransferOwnershipWithRatioResponse) Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) Size() (n int)
func (*MsgTransferOwnershipWithRatioResponse) String ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) String() string
func (*MsgTransferOwnershipWithRatioResponse) Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferOwnershipWithRatioResponse) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) XXX_DiscardUnknown()
func (*MsgTransferOwnershipWithRatioResponse) XXX_Marshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferOwnershipWithRatioResponse) XXX_Merge ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) XXX_Merge(src proto.Message)
func (*MsgTransferOwnershipWithRatioResponse) XXX_Size ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) XXX_Size() int
func (*MsgTransferOwnershipWithRatioResponse) XXX_Unmarshal ¶ added in v1.8.2
func (m *MsgTransferOwnershipWithRatioResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // enable_dao is the parameter to enable the module functionality. EnableDao bool `protobuf:"varint,1,opt,name=enable_dao,json=enableDao,proto3" json:"enable_dao,omitempty"` // allowed_collaterals is the allowed collateral values. AllowedCollaterals []*AllowedCollateral `protobuf:"bytes,2,rep,name=allowed_collaterals,json=allowedCollaterals,proto3" json:"allowed_collaterals,omitempty"` }
Params defines the parameters for the dao module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default distribution parameters
func (*Params) Descriptor ¶
func (*Params) GetAllowedCollaterals ¶
func (m *Params) GetAllowedCollaterals() []*AllowedCollateral
func (*Params) GetEnableDao ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic performs basic validation on distribution parameters.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllBalancesRequest ¶
type QueryAllBalancesRequest struct { // address is the address to query balances for. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalanceRequest is the request type for the Query/AllBalances RPC method.
func NewQueryAllBalancesRequest ¶
func NewQueryAllBalancesRequest(addr sdk.AccAddress, req *query.PageRequest) *QueryAllBalancesRequest
NewQueryAllBalancesRequest creates a new instance of QueryAllBalancesRequest.
func (*QueryAllBalancesRequest) Descriptor ¶
func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)
func (*QueryAllBalancesRequest) Marshal ¶
func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBalancesRequest) MarshalTo ¶
func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBalancesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBalancesRequest) ProtoMessage ¶
func (*QueryAllBalancesRequest) ProtoMessage()
func (*QueryAllBalancesRequest) Reset ¶
func (m *QueryAllBalancesRequest) Reset()
func (*QueryAllBalancesRequest) Size ¶
func (m *QueryAllBalancesRequest) Size() (n int)
func (*QueryAllBalancesRequest) String ¶
func (m *QueryAllBalancesRequest) String() string
func (*QueryAllBalancesRequest) Unmarshal ¶
func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBalancesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()
func (*QueryAllBalancesRequest) XXX_Marshal ¶
func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBalancesRequest) XXX_Merge ¶
func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)
func (*QueryAllBalancesRequest) XXX_Size ¶
func (m *QueryAllBalancesRequest) XXX_Size() int
func (*QueryAllBalancesRequest) XXX_Unmarshal ¶
func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error
type QueryAllBalancesResponse ¶
type QueryAllBalancesResponse struct { // balances is the balances of all the coins. Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.
func (*QueryAllBalancesResponse) Descriptor ¶
func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryAllBalancesResponse) GetBalances ¶
func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryAllBalancesResponse) GetPagination ¶
func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse
func (*QueryAllBalancesResponse) Marshal ¶
func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBalancesResponse) MarshalTo ¶
func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBalancesResponse) ProtoMessage ¶
func (*QueryAllBalancesResponse) ProtoMessage()
func (*QueryAllBalancesResponse) Reset ¶
func (m *QueryAllBalancesResponse) Reset()
func (*QueryAllBalancesResponse) Size ¶
func (m *QueryAllBalancesResponse) Size() (n int)
func (*QueryAllBalancesResponse) String ¶
func (m *QueryAllBalancesResponse) String() string
func (*QueryAllBalancesResponse) Unmarshal ¶
func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()
func (*QueryAllBalancesResponse) XXX_Marshal ¶
func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBalancesResponse) XXX_Merge ¶
func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryAllBalancesResponse) XXX_Size ¶
func (m *QueryAllBalancesResponse) XXX_Size() int
func (*QueryAllBalancesResponse) XXX_Unmarshal ¶
func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryBalanceRequest ¶
type QueryBalanceRequest struct { // address is the address to query balances for. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // denom is the coin denom to query balances for. Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryBalanceRequest is the request type for the Query/Balance RPC method.
func NewQueryBalanceRequest ¶
func NewQueryBalanceRequest(addr sdk.AccAddress, denom string) *QueryBalanceRequest
NewQueryBalanceRequest creates a new instance of QueryBalanceRequest.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceRequest) Marshal ¶
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalanceRequest) MarshalTo ¶
func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceRequest) ProtoMessage ¶
func (*QueryBalanceRequest) ProtoMessage()
func (*QueryBalanceRequest) Reset ¶
func (m *QueryBalanceRequest) Reset()
func (*QueryBalanceRequest) Size ¶
func (m *QueryBalanceRequest) Size() (n int)
func (*QueryBalanceRequest) String ¶
func (m *QueryBalanceRequest) String() string
func (*QueryBalanceRequest) Unmarshal ¶
func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryBalanceRequest) XXX_DiscardUnknown()
func (*QueryBalanceRequest) XXX_Marshal ¶
func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceRequest) XXX_Merge ¶
func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryBalanceRequest) XXX_Size ¶
func (m *QueryBalanceRequest) XXX_Size() int
func (*QueryBalanceRequest) XXX_Unmarshal ¶
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryBalanceResponse ¶
type QueryBalanceResponse struct { // balance is the balance of the coin. Balance *types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` }
QueryBalanceResponse is the response type for the Query/Balance RPC method.
func (*QueryBalanceResponse) Descriptor ¶
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse) GetBalance ¶
func (m *QueryBalanceResponse) GetBalance() *types.Coin
func (*QueryBalanceResponse) Marshal ¶
func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalanceResponse) MarshalTo ¶
func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceResponse) ProtoMessage ¶
func (*QueryBalanceResponse) ProtoMessage()
func (*QueryBalanceResponse) Reset ¶
func (m *QueryBalanceResponse) Reset()
func (*QueryBalanceResponse) Size ¶
func (m *QueryBalanceResponse) Size() (n int)
func (*QueryBalanceResponse) String ¶
func (m *QueryBalanceResponse) String() string
func (*QueryBalanceResponse) Unmarshal ¶
func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryBalanceResponse) XXX_DiscardUnknown()
func (*QueryBalanceResponse) XXX_Marshal ¶
func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceResponse) XXX_Merge ¶
func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryBalanceResponse) XXX_Size ¶
func (m *QueryBalanceResponse) XXX_Size() int
func (*QueryBalanceResponse) XXX_Unmarshal ¶
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Balance queries the balance of a single coin for a single account. Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) // AllBalances queries the balance of all coins for a single account. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) // TotalBalance queries the total balance of all coins locked in the module. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. TotalBalance(ctx context.Context, in *QueryTotalBalanceRequest, opts ...grpc.CallOption) (*QueryTotalBalanceResponse, error) // TokenHolders queries the all balances of all coins locked in the module and group them by account address. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. Holders(ctx context.Context, in *QueryHoldersRequest, opts ...grpc.CallOption) (*QueryHoldersResponse, error) // Params queries the parameters of x/ucdao module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryHoldersRequest ¶ added in v1.8.2
type QueryHoldersRequest struct { // pagination defines an optional pagination for the request. // // Since: cosmos-sdk 0.43 Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryHoldersRequest is the request type for the Query/Holders RPC method.
func (*QueryHoldersRequest) Descriptor ¶ added in v1.8.2
func (*QueryHoldersRequest) Descriptor() ([]byte, []int)
func (*QueryHoldersRequest) Marshal ¶ added in v1.8.2
func (m *QueryHoldersRequest) Marshal() (dAtA []byte, err error)
func (*QueryHoldersRequest) MarshalTo ¶ added in v1.8.2
func (m *QueryHoldersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryHoldersRequest) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *QueryHoldersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHoldersRequest) ProtoMessage ¶ added in v1.8.2
func (*QueryHoldersRequest) ProtoMessage()
func (*QueryHoldersRequest) Reset ¶ added in v1.8.2
func (m *QueryHoldersRequest) Reset()
func (*QueryHoldersRequest) Size ¶ added in v1.8.2
func (m *QueryHoldersRequest) Size() (n int)
func (*QueryHoldersRequest) String ¶ added in v1.8.2
func (m *QueryHoldersRequest) String() string
func (*QueryHoldersRequest) Unmarshal ¶ added in v1.8.2
func (m *QueryHoldersRequest) Unmarshal(dAtA []byte) error
func (*QueryHoldersRequest) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *QueryHoldersRequest) XXX_DiscardUnknown()
func (*QueryHoldersRequest) XXX_Marshal ¶ added in v1.8.2
func (m *QueryHoldersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHoldersRequest) XXX_Merge ¶ added in v1.8.2
func (m *QueryHoldersRequest) XXX_Merge(src proto.Message)
func (*QueryHoldersRequest) XXX_Size ¶ added in v1.8.2
func (m *QueryHoldersRequest) XXX_Size() int
func (*QueryHoldersRequest) XXX_Unmarshal ¶ added in v1.8.2
func (m *QueryHoldersRequest) XXX_Unmarshal(b []byte) error
type QueryHoldersResponse ¶ added in v1.8.2
type QueryHoldersResponse struct { // balances is the balances of all the coins. Balances []Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances"` // pagination defines the pagination in the response. // // Since: cosmos-sdk 0.43 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryHoldersResponse is the response type for the Query/Holders RPC method.
func (*QueryHoldersResponse) Descriptor ¶ added in v1.8.2
func (*QueryHoldersResponse) Descriptor() ([]byte, []int)
func (*QueryHoldersResponse) GetBalances ¶ added in v1.8.2
func (m *QueryHoldersResponse) GetBalances() []Balance
func (*QueryHoldersResponse) GetPagination ¶ added in v1.8.2
func (m *QueryHoldersResponse) GetPagination() *query.PageResponse
func (*QueryHoldersResponse) Marshal ¶ added in v1.8.2
func (m *QueryHoldersResponse) Marshal() (dAtA []byte, err error)
func (*QueryHoldersResponse) MarshalTo ¶ added in v1.8.2
func (m *QueryHoldersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHoldersResponse) MarshalToSizedBuffer ¶ added in v1.8.2
func (m *QueryHoldersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHoldersResponse) ProtoMessage ¶ added in v1.8.2
func (*QueryHoldersResponse) ProtoMessage()
func (*QueryHoldersResponse) Reset ¶ added in v1.8.2
func (m *QueryHoldersResponse) Reset()
func (*QueryHoldersResponse) Size ¶ added in v1.8.2
func (m *QueryHoldersResponse) Size() (n int)
func (*QueryHoldersResponse) String ¶ added in v1.8.2
func (m *QueryHoldersResponse) String() string
func (*QueryHoldersResponse) Unmarshal ¶ added in v1.8.2
func (m *QueryHoldersResponse) Unmarshal(dAtA []byte) error
func (*QueryHoldersResponse) XXX_DiscardUnknown ¶ added in v1.8.2
func (m *QueryHoldersResponse) XXX_DiscardUnknown()
func (*QueryHoldersResponse) XXX_Marshal ¶ added in v1.8.2
func (m *QueryHoldersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHoldersResponse) XXX_Merge ¶ added in v1.8.2
func (m *QueryHoldersResponse) XXX_Merge(src proto.Message)
func (*QueryHoldersResponse) XXX_Size ¶ added in v1.8.2
func (m *QueryHoldersResponse) XXX_Size() int
func (*QueryHoldersResponse) XXX_Unmarshal ¶ added in v1.8.2
func (m *QueryHoldersResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest defines the request type for querying x/ucdao parameters.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response type for querying x/ucdao parameters.
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 { // Balance queries the balance of a single coin for a single account. Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) // AllBalances queries the balance of all coins for a single account. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) // TotalBalance queries the total balance of all coins locked in the module. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. TotalBalance(context.Context, *QueryTotalBalanceRequest) (*QueryTotalBalanceResponse, error) // TokenHolders queries the all balances of all coins locked in the module and group them by account address. // // When called from another module, this query might consume a high amount of // gas if the pagination field is incorrectly set. Holders(context.Context, *QueryHoldersRequest) (*QueryHoldersResponse, error) // Params queries the parameters of x/ucdao module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QueryTotalBalanceRequest ¶
type QueryTotalBalanceRequest struct { // pagination defines an optional pagination for the request. // // Since: cosmos-sdk 0.43 Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTotalBalanceRequest is the request type for the Query/TotalBalance RPC method.
func (*QueryTotalBalanceRequest) Descriptor ¶
func (*QueryTotalBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryTotalBalanceRequest) Marshal ¶
func (m *QueryTotalBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalBalanceRequest) MarshalTo ¶
func (m *QueryTotalBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalBalanceRequest) ProtoMessage ¶
func (*QueryTotalBalanceRequest) ProtoMessage()
func (*QueryTotalBalanceRequest) Reset ¶
func (m *QueryTotalBalanceRequest) Reset()
func (*QueryTotalBalanceRequest) Size ¶
func (m *QueryTotalBalanceRequest) Size() (n int)
func (*QueryTotalBalanceRequest) String ¶
func (m *QueryTotalBalanceRequest) String() string
func (*QueryTotalBalanceRequest) Unmarshal ¶
func (m *QueryTotalBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalBalanceRequest) XXX_DiscardUnknown()
func (*QueryTotalBalanceRequest) XXX_Marshal ¶
func (m *QueryTotalBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalBalanceRequest) XXX_Merge ¶
func (m *QueryTotalBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryTotalBalanceRequest) XXX_Size ¶
func (m *QueryTotalBalanceRequest) XXX_Size() int
func (*QueryTotalBalanceRequest) XXX_Unmarshal ¶
func (m *QueryTotalBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryTotalBalanceResponse ¶
type QueryTotalBalanceResponse struct { // supply is the supply of the coins TotalBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ // pagination defines the pagination in the response. // // Since: cosmos-sdk 0.43 Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTotalBalanceResponse is the response type for the Query/TotalBalance RPC method
func (*QueryTotalBalanceResponse) Descriptor ¶
func (*QueryTotalBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryTotalBalanceResponse) GetPagination ¶
func (m *QueryTotalBalanceResponse) GetPagination() *query.PageResponse
func (*QueryTotalBalanceResponse) GetTotalBalance ¶
func (m *QueryTotalBalanceResponse) GetTotalBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalBalanceResponse) Marshal ¶
func (m *QueryTotalBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalBalanceResponse) MarshalTo ¶
func (m *QueryTotalBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalBalanceResponse) ProtoMessage ¶
func (*QueryTotalBalanceResponse) ProtoMessage()
func (*QueryTotalBalanceResponse) Reset ¶
func (m *QueryTotalBalanceResponse) Reset()
func (*QueryTotalBalanceResponse) Size ¶
func (m *QueryTotalBalanceResponse) Size() (n int)
func (*QueryTotalBalanceResponse) String ¶
func (m *QueryTotalBalanceResponse) String() string
func (*QueryTotalBalanceResponse) Unmarshal ¶
func (m *QueryTotalBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalBalanceResponse) XXX_DiscardUnknown()
func (*QueryTotalBalanceResponse) XXX_Marshal ¶
func (m *QueryTotalBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalBalanceResponse) XXX_Merge ¶
func (m *QueryTotalBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryTotalBalanceResponse) XXX_Size ¶
func (m *QueryTotalBalanceResponse) XXX_Size() int
func (*QueryTotalBalanceResponse) XXX_Unmarshal ¶
func (m *QueryTotalBalanceResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Fund ¶
func (*UnimplementedMsgServer) Fund(ctx context.Context, req *MsgFund) (*MsgFundResponse, error)
func (*UnimplementedMsgServer) TransferOwnership ¶
func (*UnimplementedMsgServer) TransferOwnership(ctx context.Context, req *MsgTransferOwnership) (*MsgTransferOwnershipResponse, error)
func (*UnimplementedMsgServer) TransferOwnershipWithAmount ¶ added in v1.8.2
func (*UnimplementedMsgServer) TransferOwnershipWithAmount(ctx context.Context, req *MsgTransferOwnershipWithAmount) (*MsgTransferOwnershipWithAmountResponse, error)
func (*UnimplementedMsgServer) TransferOwnershipWithRatio ¶ added in v1.8.2
func (*UnimplementedMsgServer) TransferOwnershipWithRatio(ctx context.Context, req *MsgTransferOwnershipWithRatio) (*MsgTransferOwnershipWithRatioResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllBalances ¶
func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
func (*UnimplementedQueryServer) Balance ¶
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) Holders ¶ added in v1.8.2
func (*UnimplementedQueryServer) Holders(ctx context.Context, req *QueryHoldersRequest) (*QueryHoldersResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalBalance ¶
func (*UnimplementedQueryServer) TotalBalance(ctx context.Context, req *QueryTotalBalanceRequest) (*QueryTotalBalanceResponse, error)