Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)deprecated
- 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 Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (m *Balance) GetAddress() string
- func (m *Balance) GetCoins() github_com_cosmos_cosmos_sdk_types.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 (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 EventFundsHeld
- func (*EventFundsHeld) Descriptor() ([]byte, []int)
- func (m *EventFundsHeld) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *EventFundsHeld) GetSource() Source
- func (m *EventFundsHeld) GetWallet() string
- func (m *EventFundsHeld) Marshal() (dAtA []byte, err error)
- func (m *EventFundsHeld) MarshalTo(dAtA []byte) (int, error)
- func (m *EventFundsHeld) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventFundsHeld) ProtoMessage()
- func (m *EventFundsHeld) Reset()
- func (m *EventFundsHeld) Size() (n int)
- func (m *EventFundsHeld) String() string
- func (m *EventFundsHeld) Unmarshal(dAtA []byte) error
- func (m *EventFundsHeld) XXX_DiscardUnknown()
- func (m *EventFundsHeld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventFundsHeld) XXX_Merge(src proto.Message)
- func (m *EventFundsHeld) XXX_Size() int
- func (m *EventFundsHeld) XXX_Unmarshal(b []byte) error
- type EventHoldFailed
- func (*EventHoldFailed) Descriptor() ([]byte, []int)
- func (m *EventHoldFailed) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *EventHoldFailed) GetReason() string
- func (m *EventHoldFailed) GetWallet() string
- func (m *EventHoldFailed) Marshal() (dAtA []byte, err error)
- func (m *EventHoldFailed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventHoldFailed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventHoldFailed) ProtoMessage()
- func (m *EventHoldFailed) Reset()
- func (m *EventHoldFailed) Size() (n int)
- func (m *EventHoldFailed) String() string
- func (m *EventHoldFailed) Unmarshal(dAtA []byte) error
- func (m *EventHoldFailed) XXX_DiscardUnknown()
- func (m *EventHoldFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventHoldFailed) XXX_Merge(src proto.Message)
- func (m *EventHoldFailed) XXX_Size() int
- func (m *EventHoldFailed) XXX_Unmarshal(b []byte) error
- type EventPendingWalletAdded
- func (*EventPendingWalletAdded) Descriptor() ([]byte, []int)
- func (m *EventPendingWalletAdded) GetWallet() string
- func (m *EventPendingWalletAdded) Marshal() (dAtA []byte, err error)
- func (m *EventPendingWalletAdded) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPendingWalletAdded) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPendingWalletAdded) ProtoMessage()
- func (m *EventPendingWalletAdded) Reset()
- func (m *EventPendingWalletAdded) Size() (n int)
- func (m *EventPendingWalletAdded) String() string
- func (m *EventPendingWalletAdded) Unmarshal(dAtA []byte) error
- func (m *EventPendingWalletAdded) XXX_DiscardUnknown()
- func (m *EventPendingWalletAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPendingWalletAdded) XXX_Merge(src proto.Message)
- func (m *EventPendingWalletAdded) XXX_Size() int
- func (m *EventPendingWalletAdded) XXX_Unmarshal(b []byte) error
- type EventWithdrawAddressReset
- func (*EventWithdrawAddressReset) Descriptor() ([]byte, []int)
- func (m *EventWithdrawAddressReset) GetPrevious() string
- func (m *EventWithdrawAddressReset) GetWallet() string
- func (m *EventWithdrawAddressReset) Marshal() (dAtA []byte, err error)
- func (m *EventWithdrawAddressReset) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdrawAddressReset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdrawAddressReset) ProtoMessage()
- func (m *EventWithdrawAddressReset) Reset()
- func (m *EventWithdrawAddressReset) Size() (n int)
- func (m *EventWithdrawAddressReset) String() string
- func (m *EventWithdrawAddressReset) Unmarshal(dAtA []byte) error
- func (m *EventWithdrawAddressReset) XXX_DiscardUnknown()
- func (m *EventWithdrawAddressReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdrawAddressReset) XXX_Merge(src proto.Message)
- func (m *EventWithdrawAddressReset) XXX_Size() int
- func (m *EventWithdrawAddressReset) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBalances() []Balance
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPendingWallets() []string
- 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 (g *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 (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) GetSignBytes() []bytedeprecated
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- 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 (m *MsgUpdateParams) Route() stringdeprecated
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) 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 (m *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 QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) GetAddress() string
- 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() Balance
- func (m *QueryBalanceResponse) GetPending() bool
- 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 QueryBalancesRequest
- func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalancesRequest) GetPagination() *query.PageRequest
- func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesRequest) ProtoMessage()
- func (m *QueryBalancesRequest) Reset()
- func (m *QueryBalancesRequest) Size() (n int)
- func (m *QueryBalancesRequest) String() string
- func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalancesRequest) XXX_Size() int
- func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryBalancesResponse
- func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalancesResponse) GetBalances() []Balance
- func (m *QueryBalancesResponse) GetPagination() *query.PageResponse
- func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesResponse) ProtoMessage()
- func (m *QueryBalancesResponse) Reset()
- func (m *QueryBalancesResponse) Size() (n int)
- func (m *QueryBalancesResponse) String() string
- func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalancesResponse) XXX_Size() int
- func (m *QueryBalancesResponse) 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 QueryPendingWalletsRequest
- func (*QueryPendingWalletsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPendingWalletsRequest) GetPagination() *query.PageRequest
- func (m *QueryPendingWalletsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingWalletsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingWalletsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingWalletsRequest) ProtoMessage()
- func (m *QueryPendingWalletsRequest) Reset()
- func (m *QueryPendingWalletsRequest) Size() (n int)
- func (m *QueryPendingWalletsRequest) String() string
- func (m *QueryPendingWalletsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPendingWalletsRequest) XXX_DiscardUnknown()
- func (m *QueryPendingWalletsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingWalletsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPendingWalletsRequest) XXX_Size() int
- func (m *QueryPendingWalletsRequest) XXX_Unmarshal(b []byte) error
- type QueryPendingWalletsResponse
- func (*QueryPendingWalletsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPendingWalletsResponse) GetPagination() *query.PageResponse
- func (m *QueryPendingWalletsResponse) GetWallets() []string
- func (m *QueryPendingWalletsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPendingWalletsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPendingWalletsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPendingWalletsResponse) ProtoMessage()
- func (m *QueryPendingWalletsResponse) Reset()
- func (m *QueryPendingWalletsResponse) Size() (n int)
- func (m *QueryPendingWalletsResponse) String() string
- func (m *QueryPendingWalletsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPendingWalletsResponse) XXX_DiscardUnknown()
- func (m *QueryPendingWalletsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPendingWalletsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPendingWalletsResponse) XXX_Size() int
- func (m *QueryPendingWalletsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Source
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) Balances(ctx context.Context, req *QueryBalancesRequest) (*QueryBalancesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PendingWallets(ctx context.Context, req *QueryPendingWalletsRequest) (*QueryPendingWalletsResponse, error)
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "hold" // StoreKey is the store key string for deployment StoreKey = ModuleName // RouterKey is the message route for deployment RouterKey = ModuleName TStoreKey = "hold_transient" )
Variables ¶
var ( // ErrInvalidParam indicates an invalid chain parameter ErrInvalidParam = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidParam, codes.InvalidArgument, "parameter invalid") // ErrInvalidGenesis indicates an invalid genesis state ErrInvalidGenesis = sdkerrors.RegisterWithGRPCCode(ModuleName, errInvalidGenesis, codes.InvalidArgument, "invalid genesis state") // ErrPendingWallet indicates an operation a pending wallet may not perform ErrPendingWallet = sdkerrors.RegisterWithGRPCCode(ModuleName, errPendingWallet, codes.FailedPrecondition, "wallet is pending hold") )
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 ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParamsmsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParamsmsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParamsmsg = 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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/deployment module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/deployment and // defined at the application level. // // Deprecated: ModuleCdc use is deprecated ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
var Source_name = map[int32]string{
0: "SOURCE_UNSPECIFIED",
1: "SOURCE_UNBONDING",
2: "SOURCE_DISTRIBUTION",
}
var Source_value = map[string]int32{
"SOURCE_UNSPECIFIED": 0,
"SOURCE_UNBONDING": 1,
"SOURCE_DISTRIBUTION": 2,
}
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/provider interfaces types with the interface registry
func RegisterLegacyAminoCodec
deprecated
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec register concrete types on codec
Deprecated: RegisterLegacyAminoCodec is deprecated
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 Balance ¶
type Balance struct {
// Address is the wallet the coins are held for.
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address" yaml:"address"`
// Coins is the amount held.
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" yaml:"coins"`
}
Balance is the amount held for one wallet.
func (*Balance) Descriptor ¶
func (*Balance) GetAddress ¶
func (*Balance) GetCoins ¶
func (m *Balance) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
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 EventFundsHeld ¶
type EventFundsHeld struct {
// Wallet is the pending wallet the coins are held for.
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
// Amount is the coins held.
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
// Source is the payout the coins came from.
Source Source `protobuf:"varint,3,opt,name=source,proto3,enum=akash.hold.v1.Source" json:"source" yaml:"source"`
}
EventFundsHeld is emitted when coins meant for a pending wallet move to the hold module account.
func (*EventFundsHeld) Descriptor ¶
func (*EventFundsHeld) Descriptor() ([]byte, []int)
func (*EventFundsHeld) GetAmount ¶
func (m *EventFundsHeld) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*EventFundsHeld) GetSource ¶
func (m *EventFundsHeld) GetSource() Source
func (*EventFundsHeld) GetWallet ¶
func (m *EventFundsHeld) GetWallet() string
func (*EventFundsHeld) Marshal ¶
func (m *EventFundsHeld) Marshal() (dAtA []byte, err error)
func (*EventFundsHeld) MarshalToSizedBuffer ¶
func (m *EventFundsHeld) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventFundsHeld) ProtoMessage ¶
func (*EventFundsHeld) ProtoMessage()
func (*EventFundsHeld) Reset ¶
func (m *EventFundsHeld) Reset()
func (*EventFundsHeld) Size ¶
func (m *EventFundsHeld) Size() (n int)
func (*EventFundsHeld) String ¶
func (m *EventFundsHeld) String() string
func (*EventFundsHeld) Unmarshal ¶
func (m *EventFundsHeld) Unmarshal(dAtA []byte) error
func (*EventFundsHeld) XXX_DiscardUnknown ¶
func (m *EventFundsHeld) XXX_DiscardUnknown()
func (*EventFundsHeld) XXX_Marshal ¶
func (m *EventFundsHeld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventFundsHeld) XXX_Merge ¶
func (m *EventFundsHeld) XXX_Merge(src proto.Message)
func (*EventFundsHeld) XXX_Size ¶
func (m *EventFundsHeld) XXX_Size() int
func (*EventFundsHeld) XXX_Unmarshal ¶
func (m *EventFundsHeld) XXX_Unmarshal(b []byte) error
type EventHoldFailed ¶
type EventHoldFailed struct {
// Wallet is the delegator as staking reported it; it may be empty or
// malformed when the staking event itself was.
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
// Amount is the coins that were not moved, when they could be parsed.
Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"`
// Reason describes the failure.
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason" yaml:"reason"`
}
EventHoldFailed is emitted when the unbonded coins of a pending wallet could not be moved to the hold module account. The coins stay in the wallet.
func (*EventHoldFailed) Descriptor ¶
func (*EventHoldFailed) Descriptor() ([]byte, []int)
func (*EventHoldFailed) GetAmount ¶
func (m *EventHoldFailed) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*EventHoldFailed) GetReason ¶
func (m *EventHoldFailed) GetReason() string
func (*EventHoldFailed) GetWallet ¶
func (m *EventHoldFailed) GetWallet() string
func (*EventHoldFailed) Marshal ¶
func (m *EventHoldFailed) Marshal() (dAtA []byte, err error)
func (*EventHoldFailed) MarshalToSizedBuffer ¶
func (m *EventHoldFailed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventHoldFailed) ProtoMessage ¶
func (*EventHoldFailed) ProtoMessage()
func (*EventHoldFailed) Reset ¶
func (m *EventHoldFailed) Reset()
func (*EventHoldFailed) Size ¶
func (m *EventHoldFailed) Size() (n int)
func (*EventHoldFailed) String ¶
func (m *EventHoldFailed) String() string
func (*EventHoldFailed) Unmarshal ¶
func (m *EventHoldFailed) Unmarshal(dAtA []byte) error
func (*EventHoldFailed) XXX_DiscardUnknown ¶
func (m *EventHoldFailed) XXX_DiscardUnknown()
func (*EventHoldFailed) XXX_Marshal ¶
func (m *EventHoldFailed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventHoldFailed) XXX_Merge ¶
func (m *EventHoldFailed) XXX_Merge(src proto.Message)
func (*EventHoldFailed) XXX_Size ¶
func (m *EventHoldFailed) XXX_Size() int
func (*EventHoldFailed) XXX_Unmarshal ¶
func (m *EventHoldFailed) XXX_Unmarshal(b []byte) error
type EventPendingWalletAdded ¶
type EventPendingWalletAdded struct {
// Wallet is the wallet added.
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
}
EventPendingWalletAdded is emitted when a wallet joins the pending list.
func (*EventPendingWalletAdded) Descriptor ¶
func (*EventPendingWalletAdded) Descriptor() ([]byte, []int)
func (*EventPendingWalletAdded) GetWallet ¶
func (m *EventPendingWalletAdded) GetWallet() string
func (*EventPendingWalletAdded) Marshal ¶
func (m *EventPendingWalletAdded) Marshal() (dAtA []byte, err error)
func (*EventPendingWalletAdded) MarshalTo ¶
func (m *EventPendingWalletAdded) MarshalTo(dAtA []byte) (int, error)
func (*EventPendingWalletAdded) MarshalToSizedBuffer ¶
func (m *EventPendingWalletAdded) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPendingWalletAdded) ProtoMessage ¶
func (*EventPendingWalletAdded) ProtoMessage()
func (*EventPendingWalletAdded) Reset ¶
func (m *EventPendingWalletAdded) Reset()
func (*EventPendingWalletAdded) Size ¶
func (m *EventPendingWalletAdded) Size() (n int)
func (*EventPendingWalletAdded) String ¶
func (m *EventPendingWalletAdded) String() string
func (*EventPendingWalletAdded) Unmarshal ¶
func (m *EventPendingWalletAdded) Unmarshal(dAtA []byte) error
func (*EventPendingWalletAdded) XXX_DiscardUnknown ¶
func (m *EventPendingWalletAdded) XXX_DiscardUnknown()
func (*EventPendingWalletAdded) XXX_Marshal ¶
func (m *EventPendingWalletAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPendingWalletAdded) XXX_Merge ¶
func (m *EventPendingWalletAdded) XXX_Merge(src proto.Message)
func (*EventPendingWalletAdded) XXX_Size ¶
func (m *EventPendingWalletAdded) XXX_Size() int
func (*EventPendingWalletAdded) XXX_Unmarshal ¶
func (m *EventPendingWalletAdded) XXX_Unmarshal(b []byte) error
type EventWithdrawAddressReset ¶
type EventWithdrawAddressReset struct {
// Wallet is the pending wallet.
Wallet string `protobuf:"bytes,1,opt,name=wallet,proto3" json:"wallet" yaml:"wallet"`
// Previous is the withdraw address that was cleared.
Previous string `protobuf:"bytes,2,opt,name=previous,proto3" json:"previous" yaml:"previous"`
}
EventWithdrawAddressReset is emitted when a wallet joining the pending list had a custom withdraw address, which is cleared so its rewards go to the wallet itself.
func (*EventWithdrawAddressReset) Descriptor ¶
func (*EventWithdrawAddressReset) Descriptor() ([]byte, []int)
func (*EventWithdrawAddressReset) GetPrevious ¶
func (m *EventWithdrawAddressReset) GetPrevious() string
func (*EventWithdrawAddressReset) GetWallet ¶
func (m *EventWithdrawAddressReset) GetWallet() string
func (*EventWithdrawAddressReset) Marshal ¶
func (m *EventWithdrawAddressReset) Marshal() (dAtA []byte, err error)
func (*EventWithdrawAddressReset) MarshalTo ¶
func (m *EventWithdrawAddressReset) MarshalTo(dAtA []byte) (int, error)
func (*EventWithdrawAddressReset) MarshalToSizedBuffer ¶
func (m *EventWithdrawAddressReset) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdrawAddressReset) ProtoMessage ¶
func (*EventWithdrawAddressReset) ProtoMessage()
func (*EventWithdrawAddressReset) Reset ¶
func (m *EventWithdrawAddressReset) Reset()
func (*EventWithdrawAddressReset) Size ¶
func (m *EventWithdrawAddressReset) Size() (n int)
func (*EventWithdrawAddressReset) String ¶
func (m *EventWithdrawAddressReset) String() string
func (*EventWithdrawAddressReset) Unmarshal ¶
func (m *EventWithdrawAddressReset) Unmarshal(dAtA []byte) error
func (*EventWithdrawAddressReset) XXX_DiscardUnknown ¶
func (m *EventWithdrawAddressReset) XXX_DiscardUnknown()
func (*EventWithdrawAddressReset) XXX_Marshal ¶
func (m *EventWithdrawAddressReset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdrawAddressReset) XXX_Merge ¶
func (m *EventWithdrawAddressReset) XXX_Merge(src proto.Message)
func (*EventWithdrawAddressReset) XXX_Size ¶
func (m *EventWithdrawAddressReset) XXX_Size() int
func (*EventWithdrawAddressReset) XXX_Unmarshal ¶
func (m *EventWithdrawAddressReset) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
// Params holds parameters of the genesis of hold.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
// PendingWallets lists the wallets whose staking and distribution payouts
// are held.
PendingWallets []string `protobuf:"bytes,2,rep,name=pending_wallets,json=pendingWallets,proto3" json:"pending_wallets" yaml:"pending_wallets"`
// Balances lists the coins held for each wallet.
Balances []Balance `protobuf:"bytes,3,rep,name=balances,proto3" json:"balances" yaml:"balances"`
}
GenesisState stores the hold module state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns default params with no pending wallets and no held balances.
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) GetPendingWallets ¶
func (m *GenesisState) GetPendingWallets() []string
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 (g *GenesisState) Validate() error
Validate checks that every address is valid and listed once, comparing decoded bytes so case variants of one address collide, and that every balance holds a valid, non-empty set of coins.
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 {
// UpdateParams defines a governance operation for updating the x/hold module
// parameters. The authority is hard-coded to the x/gov module account.
//
// Since: akash v2.3.0
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 {
// UpdateParams defines a governance operation for updating the x/hold module
// parameters. The authority is hard-coded to the x/gov module account.
//
// Since: akash v2.3.0
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address of the governance account.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the x/hold parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams is the Msg/UpdateParams request type.
Since: akash v2.3.0
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSignBytes
deprecated
func (m *MsgUpdateParams) GetSignBytes() []byte
GetSignBytes encodes the message for signing
Deprecated: GetSignBytes is deprecated
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route
deprecated
func (m *MsgUpdateParams) Route() string
Route implements the sdk.Msg interface
Deprecated: Route is deprecated
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶
func (m *MsgUpdateParams) Type() string
Type implements the sdk.Msg interface
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: akash v2.3.0
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
}
Params defines the parameters for the x/hold package.
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
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 QueryBalanceRequest ¶
type QueryBalanceRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address" yaml:"address"`
}
QueryBalanceRequest selects one wallet.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceRequest) GetAddress ¶
func (m *QueryBalanceRequest) GetAddress() string
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 Balance `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance" yaml:"balance"`
Pending bool `protobuf:"varint,2,opt,name=pending,proto3" json:"pending" yaml:"pending"`
}
QueryBalanceResponse returns the coins held for a wallet and whether its payouts are held. A wallet with nothing held has empty coins.
func (*QueryBalanceResponse) Descriptor ¶
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse) GetBalance ¶
func (m *QueryBalanceResponse) GetBalance() Balance
func (*QueryBalanceResponse) GetPending ¶
func (m *QueryBalanceResponse) GetPending() bool
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 QueryBalancesRequest ¶
type QueryBalancesRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination" yaml:"pagination"`
}
QueryBalancesRequest selects a page of held balances.
func (*QueryBalancesRequest) Descriptor ¶
func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
func (*QueryBalancesRequest) GetPagination ¶
func (m *QueryBalancesRequest) GetPagination() *query.PageRequest
func (*QueryBalancesRequest) Marshal ¶
func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalancesRequest) MarshalTo ¶
func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesRequest) MarshalToSizedBuffer ¶
func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesRequest) ProtoMessage ¶
func (*QueryBalancesRequest) ProtoMessage()
func (*QueryBalancesRequest) Reset ¶
func (m *QueryBalancesRequest) Reset()
func (*QueryBalancesRequest) Size ¶
func (m *QueryBalancesRequest) Size() (n int)
func (*QueryBalancesRequest) String ¶
func (m *QueryBalancesRequest) String() string
func (*QueryBalancesRequest) Unmarshal ¶
func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
func (*QueryBalancesRequest) XXX_DiscardUnknown ¶
func (m *QueryBalancesRequest) XXX_DiscardUnknown()
func (*QueryBalancesRequest) XXX_Marshal ¶
func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesRequest) XXX_Merge ¶
func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
func (*QueryBalancesRequest) XXX_Size ¶
func (m *QueryBalancesRequest) XXX_Size() int
func (*QueryBalancesRequest) XXX_Unmarshal ¶
func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
type QueryBalancesResponse ¶
type QueryBalancesResponse struct {
Balances []Balance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances" yaml:"balances"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination" yaml:"pagination"`
}
QueryBalancesResponse returns held balances in key order.
func (*QueryBalancesResponse) Descriptor ¶
func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryBalancesResponse) GetBalances ¶
func (m *QueryBalancesResponse) GetBalances() []Balance
func (*QueryBalancesResponse) GetPagination ¶
func (m *QueryBalancesResponse) GetPagination() *query.PageResponse
func (*QueryBalancesResponse) Marshal ¶
func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalancesResponse) MarshalTo ¶
func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesResponse) ProtoMessage ¶
func (*QueryBalancesResponse) ProtoMessage()
func (*QueryBalancesResponse) Reset ¶
func (m *QueryBalancesResponse) Reset()
func (*QueryBalancesResponse) Size ¶
func (m *QueryBalancesResponse) Size() (n int)
func (*QueryBalancesResponse) String ¶
func (m *QueryBalancesResponse) String() string
func (*QueryBalancesResponse) Unmarshal ¶
func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryBalancesResponse) XXX_DiscardUnknown()
func (*QueryBalancesResponse) XXX_Marshal ¶
func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesResponse) XXX_Merge ¶
func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryBalancesResponse) XXX_Size ¶
func (m *QueryBalancesResponse) XXX_Size() int
func (*QueryBalancesResponse) XXX_Unmarshal ¶
func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// Params returns the hold parameters.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// PendingWallets returns the wallets whose payouts are held.
PendingWallets(ctx context.Context, in *QueryPendingWalletsRequest, opts ...grpc.CallOption) (*QueryPendingWalletsResponse, error)
// Balance returns the coins held for one wallet.
Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
// Balances returns the coins held for every wallet.
Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, 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 the 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 defines the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the 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 QueryPendingWalletsRequest ¶
type QueryPendingWalletsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination" yaml:"pagination"`
}
QueryPendingWalletsRequest selects a page of pending wallets.
func (*QueryPendingWalletsRequest) Descriptor ¶
func (*QueryPendingWalletsRequest) Descriptor() ([]byte, []int)
func (*QueryPendingWalletsRequest) GetPagination ¶
func (m *QueryPendingWalletsRequest) GetPagination() *query.PageRequest
func (*QueryPendingWalletsRequest) Marshal ¶
func (m *QueryPendingWalletsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPendingWalletsRequest) MarshalTo ¶
func (m *QueryPendingWalletsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingWalletsRequest) MarshalToSizedBuffer ¶
func (m *QueryPendingWalletsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingWalletsRequest) ProtoMessage ¶
func (*QueryPendingWalletsRequest) ProtoMessage()
func (*QueryPendingWalletsRequest) Reset ¶
func (m *QueryPendingWalletsRequest) Reset()
func (*QueryPendingWalletsRequest) Size ¶
func (m *QueryPendingWalletsRequest) Size() (n int)
func (*QueryPendingWalletsRequest) String ¶
func (m *QueryPendingWalletsRequest) String() string
func (*QueryPendingWalletsRequest) Unmarshal ¶
func (m *QueryPendingWalletsRequest) Unmarshal(dAtA []byte) error
func (*QueryPendingWalletsRequest) XXX_DiscardUnknown ¶
func (m *QueryPendingWalletsRequest) XXX_DiscardUnknown()
func (*QueryPendingWalletsRequest) XXX_Marshal ¶
func (m *QueryPendingWalletsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingWalletsRequest) XXX_Merge ¶
func (m *QueryPendingWalletsRequest) XXX_Merge(src proto.Message)
func (*QueryPendingWalletsRequest) XXX_Size ¶
func (m *QueryPendingWalletsRequest) XXX_Size() int
func (*QueryPendingWalletsRequest) XXX_Unmarshal ¶
func (m *QueryPendingWalletsRequest) XXX_Unmarshal(b []byte) error
type QueryPendingWalletsResponse ¶
type QueryPendingWalletsResponse struct {
Wallets []string `protobuf:"bytes,1,rep,name=wallets,proto3" json:"wallets" yaml:"wallets"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination" yaml:"pagination"`
}
QueryPendingWalletsResponse returns pending wallets in key order.
func (*QueryPendingWalletsResponse) Descriptor ¶
func (*QueryPendingWalletsResponse) Descriptor() ([]byte, []int)
func (*QueryPendingWalletsResponse) GetPagination ¶
func (m *QueryPendingWalletsResponse) GetPagination() *query.PageResponse
func (*QueryPendingWalletsResponse) GetWallets ¶
func (m *QueryPendingWalletsResponse) GetWallets() []string
func (*QueryPendingWalletsResponse) Marshal ¶
func (m *QueryPendingWalletsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPendingWalletsResponse) MarshalTo ¶
func (m *QueryPendingWalletsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPendingWalletsResponse) MarshalToSizedBuffer ¶
func (m *QueryPendingWalletsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPendingWalletsResponse) ProtoMessage ¶
func (*QueryPendingWalletsResponse) ProtoMessage()
func (*QueryPendingWalletsResponse) Reset ¶
func (m *QueryPendingWalletsResponse) Reset()
func (*QueryPendingWalletsResponse) Size ¶
func (m *QueryPendingWalletsResponse) Size() (n int)
func (*QueryPendingWalletsResponse) String ¶
func (m *QueryPendingWalletsResponse) String() string
func (*QueryPendingWalletsResponse) Unmarshal ¶
func (m *QueryPendingWalletsResponse) Unmarshal(dAtA []byte) error
func (*QueryPendingWalletsResponse) XXX_DiscardUnknown ¶
func (m *QueryPendingWalletsResponse) XXX_DiscardUnknown()
func (*QueryPendingWalletsResponse) XXX_Marshal ¶
func (m *QueryPendingWalletsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPendingWalletsResponse) XXX_Merge ¶
func (m *QueryPendingWalletsResponse) XXX_Merge(src proto.Message)
func (*QueryPendingWalletsResponse) XXX_Size ¶
func (m *QueryPendingWalletsResponse) XXX_Size() int
func (*QueryPendingWalletsResponse) XXX_Unmarshal ¶
func (m *QueryPendingWalletsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// Params returns the hold parameters.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// PendingWallets returns the wallets whose payouts are held.
PendingWallets(context.Context, *QueryPendingWalletsRequest) (*QueryPendingWalletsResponse, error)
// Balance returns the coins held for one wallet.
Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
// Balances returns the coins held for every wallet.
Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error)
}
QueryServer is the server API for Query service.
type Source ¶
type Source int32
Source names the payout that sent coins to the hold module account.
func (Source) EnumDescriptor ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Balance ¶
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) Balances ¶
func (*UnimplementedQueryServer) Balances(ctx context.Context, req *QueryBalancesRequest) (*QueryBalancesResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PendingWallets ¶
func (*UnimplementedQueryServer) PendingWallets(ctx context.Context, req *QueryPendingWalletsRequest) (*QueryPendingWalletsResponse, error)