Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDepositKey(depositorAddr string, sportEventUID string, participationIndex uint64) []byte
- func GetDepositListPrefix(depositorAddr string) []byte
- func GetWithdrawalKey(depositorAddr string, sportEventUID string, participationIndex uint64, ...) []byte
- func GetWithdrawalListPrefix(depositorAddr string) []byte
- func MustMarshalWithdrawal(cdc codec.BinaryCodec, withdrawal Withdrawal) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Deposit
- func (*Deposit) Descriptor() ([]byte, []int)
- func (m *Deposit) Marshal() (dAtA []byte, err error)
- func (m *Deposit) MarshalTo(dAtA []byte) (int, error)
- func (m *Deposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Deposit) ProtoMessage()
- func (m *Deposit) Reset()
- func (d *Deposit) SetHouseParticipationFee(feePercentage sdk.Dec)
- func (m *Deposit) Size() (n int)
- func (d Deposit) String() string
- func (m *Deposit) Unmarshal(dAtA []byte) error
- func (m *Deposit) XXX_DiscardUnknown()
- func (m *Deposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Deposit) XXX_Merge(src proto.Message)
- func (m *Deposit) XXX_Size() int
- func (m *Deposit) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDepositList() []Deposit
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetWithdrawalList() []Withdrawal
- 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 MsgDeposit
- func (*MsgDeposit) Descriptor() ([]byte, []int)
- func (msg *MsgDeposit) GetSignBytes() []byte
- func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
- func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
- func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeposit) ProtoMessage()
- func (m *MsgDeposit) Reset()
- func (msg *MsgDeposit) Route() string
- func (m *MsgDeposit) Size() (n int)
- func (m *MsgDeposit) String() string
- func (msg *MsgDeposit) Type() string
- func (m *MsgDeposit) Unmarshal(dAtA []byte) error
- func (msg *MsgDeposit) ValidateBasic() error
- func (m *MsgDeposit) XXX_DiscardUnknown()
- func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeposit) XXX_Merge(src proto.Message)
- func (m *MsgDeposit) XXX_Size() int
- func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
- type MsgDepositResponse
- func (*MsgDepositResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositResponse) GetParticipationIndex() uint64
- func (m *MsgDepositResponse) GetSportEventUID() string
- func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositResponse) ProtoMessage()
- func (m *MsgDepositResponse) Reset()
- func (m *MsgDepositResponse) Size() (n int)
- func (m *MsgDepositResponse) String() string
- func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositResponse) XXX_DiscardUnknown()
- func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositResponse) XXX_Size() int
- func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdraw
- func (*MsgWithdraw) Descriptor() ([]byte, []int)
- func (msg *MsgWithdraw) GetSignBytes() []byte
- func (msg *MsgWithdraw) GetSigners() []sdk.AccAddress
- func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdraw) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdraw) ProtoMessage()
- func (m *MsgWithdraw) Reset()
- func (msg *MsgWithdraw) Route() string
- func (m *MsgWithdraw) Size() (n int)
- func (m *MsgWithdraw) String() string
- func (msg *MsgWithdraw) Type() string
- func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdraw) ValidateBasic() error
- func (m *MsgWithdraw) XXX_DiscardUnknown()
- func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdraw) XXX_Merge(src proto.Message)
- func (m *MsgWithdraw) XXX_Size() int
- func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
- type MsgWithdrawResponse
- func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawResponse) GetID() uint64
- func (m *MsgWithdrawResponse) GetParticipationIndex() uint64
- func (m *MsgWithdrawResponse) GetSportEventUID() string
- func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawResponse) ProtoMessage()
- func (m *MsgWithdrawResponse) Reset()
- func (m *MsgWithdrawResponse) Size() (n int)
- func (m *MsgWithdrawResponse) String() string
- func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawResponse) XXX_Size() int
- func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
- type OrderBookKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDepositorDepositsRequest
- func (*QueryDepositorDepositsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDepositorDepositsRequest) GetDepositorAddress() string
- func (m *QueryDepositorDepositsRequest) GetPagination() *query.PageRequest
- func (m *QueryDepositorDepositsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositorDepositsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositorDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositorDepositsRequest) ProtoMessage()
- func (m *QueryDepositorDepositsRequest) Reset()
- func (m *QueryDepositorDepositsRequest) Size() (n int)
- func (m *QueryDepositorDepositsRequest) String() string
- func (m *QueryDepositorDepositsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDepositorDepositsRequest) XXX_DiscardUnknown()
- func (m *QueryDepositorDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositorDepositsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDepositorDepositsRequest) XXX_Size() int
- func (m *QueryDepositorDepositsRequest) XXX_Unmarshal(b []byte) error
- type QueryDepositorDepositsResponse
- func (*QueryDepositorDepositsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDepositorDepositsResponse) GetDeposits() []Deposit
- func (m *QueryDepositorDepositsResponse) GetPagination() *query.PageResponse
- func (m *QueryDepositorDepositsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositorDepositsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositorDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositorDepositsResponse) ProtoMessage()
- func (m *QueryDepositorDepositsResponse) Reset()
- func (m *QueryDepositorDepositsResponse) Size() (n int)
- func (m *QueryDepositorDepositsResponse) String() string
- func (m *QueryDepositorDepositsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDepositorDepositsResponse) XXX_DiscardUnknown()
- func (m *QueryDepositorDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositorDepositsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDepositorDepositsResponse) XXX_Size() int
- func (m *QueryDepositorDepositsResponse) XXX_Unmarshal(b []byte) error
- type QueryDepositorWithdrawalsRequest
- func (*QueryDepositorWithdrawalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDepositorWithdrawalsRequest) GetDepositorAddress() string
- func (m *QueryDepositorWithdrawalsRequest) GetPagination() *query.PageRequest
- func (m *QueryDepositorWithdrawalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositorWithdrawalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositorWithdrawalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositorWithdrawalsRequest) ProtoMessage()
- func (m *QueryDepositorWithdrawalsRequest) Reset()
- func (m *QueryDepositorWithdrawalsRequest) Size() (n int)
- func (m *QueryDepositorWithdrawalsRequest) String() string
- func (m *QueryDepositorWithdrawalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDepositorWithdrawalsRequest) XXX_DiscardUnknown()
- func (m *QueryDepositorWithdrawalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositorWithdrawalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDepositorWithdrawalsRequest) XXX_Size() int
- func (m *QueryDepositorWithdrawalsRequest) XXX_Unmarshal(b []byte) error
- type QueryDepositorWithdrawalsResponse
- func (*QueryDepositorWithdrawalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDepositorWithdrawalsResponse) GetPagination() *query.PageResponse
- func (m *QueryDepositorWithdrawalsResponse) GetWithdrawals() []Withdrawal
- func (m *QueryDepositorWithdrawalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositorWithdrawalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositorWithdrawalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositorWithdrawalsResponse) ProtoMessage()
- func (m *QueryDepositorWithdrawalsResponse) Reset()
- func (m *QueryDepositorWithdrawalsResponse) Size() (n int)
- func (m *QueryDepositorWithdrawalsResponse) String() string
- func (m *QueryDepositorWithdrawalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDepositorWithdrawalsResponse) XXX_DiscardUnknown()
- func (m *QueryDepositorWithdrawalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositorWithdrawalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDepositorWithdrawalsResponse) XXX_Size() int
- func (m *QueryDepositorWithdrawalsResponse) XXX_Unmarshal(b []byte) error
- type QueryDepositsRequest
- func (*QueryDepositsRequest) Descriptor() ([]byte, []int)
- func (m *QueryDepositsRequest) GetPagination() *query.PageRequest
- func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositsRequest) ProtoMessage()
- func (m *QueryDepositsRequest) Reset()
- func (m *QueryDepositsRequest) Size() (n int)
- func (m *QueryDepositsRequest) String() string
- func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDepositsRequest) XXX_DiscardUnknown()
- func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositsRequest) XXX_Merge(src proto.Message)
- func (m *QueryDepositsRequest) XXX_Size() int
- func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error
- type QueryDepositsResponse
- func (*QueryDepositsResponse) Descriptor() ([]byte, []int)
- func (m *QueryDepositsResponse) GetDeposits() []Deposit
- func (m *QueryDepositsResponse) GetPagination() *query.PageResponse
- func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDepositsResponse) ProtoMessage()
- func (m *QueryDepositsResponse) Reset()
- func (m *QueryDepositsResponse) Size() (n int)
- func (m *QueryDepositsResponse) String() string
- func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDepositsResponse) XXX_DiscardUnknown()
- func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDepositsResponse) XXX_Merge(src proto.Message)
- func (m *QueryDepositsResponse) XXX_Size() int
- func (m *QueryDepositsResponse) 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 UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) DepositorDeposits(ctx context.Context, req *QueryDepositorDepositsRequest) (*QueryDepositorDepositsResponse, error)
- func (*UnimplementedQueryServer) DepositorWithdrawals(ctx context.Context, req *QueryDepositorWithdrawalsRequest) (*QueryDepositorWithdrawalsResponse, error)
- func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type Withdrawal
- func (*Withdrawal) Descriptor() ([]byte, []int)
- func (m *Withdrawal) Marshal() (dAtA []byte, err error)
- func (m *Withdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdrawal) ProtoMessage()
- func (m *Withdrawal) Reset()
- func (m *Withdrawal) Size() (n int)
- func (w Withdrawal) String() string
- func (m *Withdrawal) Unmarshal(dAtA []byte) error
- func (m *Withdrawal) XXX_DiscardUnknown()
- func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdrawal) XXX_Merge(src proto.Message)
- func (m *Withdrawal) XXX_Size() int
- func (m *Withdrawal) XXX_Unmarshal(b []byte) error
- type WithdrawalMode
Constants ¶
const ( AttributeKeyParticipationIndex = "deposit_participation_index" // AttributeValueCategory is the event attribute for category as module name AttributeValueCategory = ModuleName )
const ( // ModuleName is the name of the house module ModuleName = "house" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the house module QuerierRoute = ModuleName // RouterKey is the msg router key for the house module RouterKey = ModuleName )
const ( // Default minimum deposit acceptable. DefaultMinDeposit int64 = 100 // Default house participation fee. DefaultHouseParticipationFee string = "0.1" )
House params default values
const (
ErrTextInvalidDepositor = "invalid depositor address (%s)"
)
const (
// HouseParticipationFeeName defines the account name for house participation fee
HouseParticipationFeeName = "house_participation_fee_pool"
)
module accounts constants
const (
TypeMsgDeposit = "create_deposit"
)
Variables ¶
var ( // Amino is the legacy aminto codec Amino = codec.NewLegacyAmino() // ModuleCdc is the codec of the module ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthDeposit = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDeposit = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDeposit = fmt.Errorf("proto: unexpected end of group") )
var ( ErrEmptyDepositorAddr = sdkerrors.Register(ModuleName, 5001, "empty depositor address") ErrInvalidSportEventUID = sdkerrors.Register(ModuleName, 5002, "invalid sport event uid") ErrInvalidWithdrawMode = sdkerrors.Register(ModuleName, 5003, "invalid withdrawal mode") ErrInvalidIndex = sdkerrors.Register(ModuleName, 5004, "invalid participant index") ErrInvalidAmount = sdkerrors.Register(ModuleName, 5005, "valid amount should be provided") ErrDepositTooSmall = sdkerrors.Register(ModuleName, 5006, "deposit is not greater than minimum deposit amount") ErrOrderBookDepositProcessing = sdkerrors.Register(ModuleName, 5007, "internal error in processing deposit in OB") ErrDepositSetting = sdkerrors.Register(ModuleName, 5008, "internal error in setting deposit") ErrInvalidparticipationIndex = sdkerrors.Register(ModuleName, 5009, "invalid participant index") ErrInvalidMode = sdkerrors.Register(ModuleName, 5010, "invalid withdrawal mode") ErrDepositNotFound = sdkerrors.Register(ModuleName, 5011, "deposit not found") ErrWithdrawalTooLarge = sdkerrors.Register(ModuleName, 5012, "withdrawal is more than unused amount") ErrOrderBookLiquidateProcessing = sdkerrors.Register(ModuleName, 5013, "internal error in processing liquidation in OB") ErrWrongWithdrawCreator = sdkerrors.Register(ModuleName, 5014, "withdrawal is only allowed from the depositor account") )
x/house module sentinel errors
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 ( DepositKeyPrefix = []byte{0x00} // prefix for keys that store deposits WithdrawalKeyPrefix = []byte{0x01} // prefix for keys that store withdrawals )
var ( KeyMinDeposit = []byte("MinDeposit") KeyHouseParticipationFee = []byte("HouseParticipationFee") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthWithdraw = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowWithdraw = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupWithdraw = fmt.Errorf("proto: unexpected end of group") )
var WithdrawalMode_name = map[int32]string{
0: "WITHDRAWAL_MODE_UNSPECIFIED",
1: "WITHDRAWAL_MODE_FULL",
2: "WITHDRAWAL_MODE_PARTIAL",
}
var WithdrawalMode_value = map[string]int32{
"WITHDRAWAL_MODE_UNSPECIFIED": 0,
"WITHDRAWAL_MODE_FULL": 1,
"WITHDRAWAL_MODE_PARTIAL": 2,
}
Functions ¶
func GetDepositKey ¶
GetDepositKey creates the key for deposit bond with sport event and participation
func GetDepositListPrefix ¶
GetDepositListPrefix creates the key for deposit bond with sport event
func GetWithdrawalKey ¶
func GetWithdrawalKey(depositorAddr string, sportEventUID string, participationIndex uint64, id uint64) []byte
GetWithdrawalKey creates the key for withdrawal bond with sport event and deposit
func GetWithdrawalListPrefix ¶
GetWithdrawalListPrefix creates the key for withdrawals bond with sport event
func MustMarshalWithdrawal ¶
func MustMarshalWithdrawal(cdc codec.BinaryCodec, withdrawal Withdrawal) []byte
MustMarshalWithdrawal returns the withdrawal bytes. Panics if fails
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/house interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/house interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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 Deposit ¶
type Deposit struct { // creator is the bech32-encoded address of the depositor. Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` // sport_event_uid is the uid of sport event against which deposit is being // made. SportEventUID string `protobuf:"bytes,2,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` // participation_index index corresponding to the book participation ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // amount is the amount being deposited. Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` // fee is deducted from the amount on deposition. Fee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=fee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"fee" yaml:"fee"` // liquidity is the liquidity being provided to the house after fee deduction. Liquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ // withdrawal_count is the total count of the withdrawal attempts WithdrawalCount uint64 `` /* 126-byte string literal not displayed */ // total_withdrawal_amount is the total amount of withdrawal attempts TotalWithdrawalAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 197-byte string literal not displayed */ }
Deposit represents the deposit against a sport event held by an account.
func NewDeposit ¶
func NewDeposit(creator, sportEventUID string, amount, totalAmount sdk.Int, withdrawalCount uint64) Deposit
NewDeposit creates a new deposit object
func (*Deposit) Descriptor ¶
func (*Deposit) MarshalToSizedBuffer ¶
func (*Deposit) ProtoMessage ¶
func (*Deposit) ProtoMessage()
func (*Deposit) SetHouseParticipationFee ¶
func (*Deposit) XXX_DiscardUnknown ¶
func (m *Deposit) XXX_DiscardUnknown()
func (*Deposit) XXX_Marshal ¶
func (*Deposit) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { // params defines all the parameters related to deposit. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // deposit_list defines the deposits active at genesis. DepositList []Deposit `protobuf:"bytes,2,rep,name=deposit_list,json=depositList,proto3" json:"deposit_list"` // withdrawal_list defines the withdrawals active at genesis. WithdrawalList []Withdrawal `protobuf:"bytes,3,rep,name=withdrawal_list,json=withdrawalList,proto3" json:"withdrawal_list"` }
GenesisState defines the house module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDepositList ¶
func (m *GenesisState) GetDepositList() []Deposit
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetWithdrawalList ¶
func (m *GenesisState) GetWithdrawalList() []Withdrawal
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Deposit defines a method for performing a deposit of coins to become part // of the house corresponding to a sport event. Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) // Withdraw defines a method for performing a withdrawal of coins of unused // amount corresponding to a deposit. Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, 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 MsgDeposit ¶
type MsgDeposit struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` SportEventUID string `protobuf:"bytes,2,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
MsgDeposit defines a SDK message for performing a deposit of coins to become part of the house corresponding to a sport event.
func NewMsgDeposit ¶
func NewMsgDeposit(creator, sportEventUID string, amount sdk.Int) *MsgDeposit
NewMsgDeposit creates the new input for adding deposit to blockchain
func (*MsgDeposit) Descriptor ¶
func (*MsgDeposit) Descriptor() ([]byte, []int)
func (*MsgDeposit) GetSignBytes ¶
func (msg *MsgDeposit) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgDeposit) GetSigners ¶
func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgDeposit) Marshal ¶
func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
func (*MsgDeposit) MarshalToSizedBuffer ¶
func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeposit) ProtoMessage ¶
func (*MsgDeposit) ProtoMessage()
func (*MsgDeposit) Reset ¶
func (m *MsgDeposit) Reset()
func (*MsgDeposit) Route ¶
func (msg *MsgDeposit) Route() string
Route return the message route for slashing
func (*MsgDeposit) Size ¶
func (m *MsgDeposit) Size() (n int)
func (*MsgDeposit) String ¶
func (m *MsgDeposit) String() string
func (*MsgDeposit) Unmarshal ¶
func (m *MsgDeposit) Unmarshal(dAtA []byte) error
func (*MsgDeposit) ValidateBasic ¶
func (msg *MsgDeposit) ValidateBasic() error
ValidateBasic validates the input creation event
func (*MsgDeposit) XXX_DiscardUnknown ¶
func (m *MsgDeposit) XXX_DiscardUnknown()
func (*MsgDeposit) XXX_Marshal ¶
func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeposit) XXX_Merge ¶
func (m *MsgDeposit) XXX_Merge(src proto.Message)
func (*MsgDeposit) XXX_Size ¶
func (m *MsgDeposit) XXX_Size() int
func (*MsgDeposit) XXX_Unmarshal ¶
func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
type MsgDepositResponse ¶
type MsgDepositResponse struct { SportEventUID string `protobuf:"bytes,1,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ }
MsgDepositResponse defines the Msg/Deposit response type.
func (*MsgDepositResponse) Descriptor ¶
func (*MsgDepositResponse) Descriptor() ([]byte, []int)
func (*MsgDepositResponse) GetParticipationIndex ¶
func (m *MsgDepositResponse) GetParticipationIndex() uint64
func (*MsgDepositResponse) GetSportEventUID ¶
func (m *MsgDepositResponse) GetSportEventUID() string
func (*MsgDepositResponse) Marshal ¶
func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositResponse) MarshalTo ¶
func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositResponse) MarshalToSizedBuffer ¶
func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositResponse) ProtoMessage ¶
func (*MsgDepositResponse) ProtoMessage()
func (*MsgDepositResponse) Reset ¶
func (m *MsgDepositResponse) Reset()
func (*MsgDepositResponse) Size ¶
func (m *MsgDepositResponse) Size() (n int)
func (*MsgDepositResponse) String ¶
func (m *MsgDepositResponse) String() string
func (*MsgDepositResponse) Unmarshal ¶
func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositResponse) XXX_DiscardUnknown ¶
func (m *MsgDepositResponse) XXX_DiscardUnknown()
func (*MsgDepositResponse) XXX_Marshal ¶
func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositResponse) XXX_Merge ¶
func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
func (*MsgDepositResponse) XXX_Size ¶
func (m *MsgDepositResponse) XXX_Size() int
func (*MsgDepositResponse) XXX_Unmarshal ¶
func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Deposit defines a method for performing a deposit of coins to become part // of the house corresponding to a sport event. Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) // Withdraw defines a method for performing a withdrawal of coins of unused // amount corresponding to a deposit. Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdraw ¶
type MsgWithdraw struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` SportEventUID string `protobuf:"bytes,2,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ Mode WithdrawalMode `protobuf:"varint,4,opt,name=mode,proto3,enum=merlinnetwork.fury.house.WithdrawalMode" json:"mode,omitempty" yaml:"mode"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` }
MsgWithdraw defines a SDK message for performing a withdrawal of coins of unused amount corresponding to a deposit.
func NewMsgWithdraw ¶
func NewMsgWithdraw(creator string, sportEventUID string, amount sdk.Int, participationIndex uint64, mode WithdrawalMode) *MsgWithdraw
NewMsgWithdraw creates the new input for withdrawal of a deposit
func (*MsgWithdraw) Descriptor ¶
func (*MsgWithdraw) Descriptor() ([]byte, []int)
func (*MsgWithdraw) GetSignBytes ¶
func (msg *MsgWithdraw) GetSignBytes() []byte
GetSignBytes return the marshalled bytes of the msg
func (*MsgWithdraw) GetSigners ¶
func (msg *MsgWithdraw) GetSigners() []sdk.AccAddress
GetSigners return the creators address
func (*MsgWithdraw) Marshal ¶
func (m *MsgWithdraw) Marshal() (dAtA []byte, err error)
func (*MsgWithdraw) MarshalToSizedBuffer ¶
func (m *MsgWithdraw) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdraw) ProtoMessage ¶
func (*MsgWithdraw) ProtoMessage()
func (*MsgWithdraw) Reset ¶
func (m *MsgWithdraw) Reset()
func (*MsgWithdraw) Route ¶
func (msg *MsgWithdraw) Route() string
Route return the message route for slashing
func (*MsgWithdraw) Size ¶
func (m *MsgWithdraw) Size() (n int)
func (*MsgWithdraw) String ¶
func (m *MsgWithdraw) String() string
func (*MsgWithdraw) Type ¶
func (msg *MsgWithdraw) Type() string
Type returns the msg add event type
func (*MsgWithdraw) Unmarshal ¶
func (m *MsgWithdraw) Unmarshal(dAtA []byte) error
func (*MsgWithdraw) ValidateBasic ¶
func (msg *MsgWithdraw) ValidateBasic() error
ValidateBasic validates the input creation event
func (*MsgWithdraw) XXX_DiscardUnknown ¶
func (m *MsgWithdraw) XXX_DiscardUnknown()
func (*MsgWithdraw) XXX_Marshal ¶
func (m *MsgWithdraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdraw) XXX_Merge ¶
func (m *MsgWithdraw) XXX_Merge(src proto.Message)
func (*MsgWithdraw) XXX_Size ¶
func (m *MsgWithdraw) XXX_Size() int
func (*MsgWithdraw) XXX_Unmarshal ¶
func (m *MsgWithdraw) XXX_Unmarshal(b []byte) error
type MsgWithdrawResponse ¶
type MsgWithdrawResponse struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" yaml:"id"` SportEventUID string `protobuf:"bytes,2,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ }
MsgWithdrawResponse defines the Msg/Withdraw response type.
func (*MsgWithdrawResponse) Descriptor ¶
func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawResponse) GetID ¶
func (m *MsgWithdrawResponse) GetID() uint64
func (*MsgWithdrawResponse) GetParticipationIndex ¶
func (m *MsgWithdrawResponse) GetParticipationIndex() uint64
func (*MsgWithdrawResponse) GetSportEventUID ¶
func (m *MsgWithdrawResponse) GetSportEventUID() string
func (*MsgWithdrawResponse) Marshal ¶
func (m *MsgWithdrawResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawResponse) MarshalTo ¶
func (m *MsgWithdrawResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawResponse) ProtoMessage ¶
func (*MsgWithdrawResponse) ProtoMessage()
func (*MsgWithdrawResponse) Reset ¶
func (m *MsgWithdrawResponse) Reset()
func (*MsgWithdrawResponse) Size ¶
func (m *MsgWithdrawResponse) Size() (n int)
func (*MsgWithdrawResponse) String ¶
func (m *MsgWithdrawResponse) String() string
func (*MsgWithdrawResponse) Unmarshal ¶
func (m *MsgWithdrawResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawResponse) XXX_DiscardUnknown()
func (*MsgWithdrawResponse) XXX_Marshal ¶
func (m *MsgWithdrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawResponse) XXX_Merge ¶
func (m *MsgWithdrawResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawResponse) XXX_Size ¶
func (m *MsgWithdrawResponse) XXX_Size() int
func (*MsgWithdrawResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawResponse) XXX_Unmarshal(b []byte) error
type OrderBookKeeper ¶
type OrderBookKeeper interface { InitiateBookParticipation(ctx sdk.Context, addr sdk.AccAddress, bookUID string, liquidity, fee sdk.Int) (uint64, error) LiquidateBookParticipation(ctx sdk.Context, depAddr, bookUID string, bpNumber uint64, mode WithdrawalMode, amount sdk.Int) (sdk.Int, error) }
OrderBookKeeper defines the expected orderbook keeper.
type Params ¶
type Params struct { // min_deposit is the minimum amount of acceptable deposit. MinDeposit github_com_cosmos_cosmos_sdk_types.Int `` /* 150-byte string literal not displayed */ // house_participation_fee is the % of the deposit to be paid for a house // participation by the user HouseParticipationFee github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */ }
Params define the parameters for the house module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Deposits queries all deposits. Deposits(ctx context.Context, in *QueryDepositsRequest, opts ...grpc.CallOption) (*QueryDepositsResponse, error) // DepositorDeposits queries deposits info for given depositor. DepositorDeposits(ctx context.Context, in *QueryDepositorDepositsRequest, opts ...grpc.CallOption) (*QueryDepositorDepositsResponse, error) // DepositorWithdrawals queries withdrawals info for given depositor. DepositorWithdrawals(ctx context.Context, in *QueryDepositorWithdrawalsRequest, opts ...grpc.CallOption) (*QueryDepositorWithdrawalsResponse, 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 QueryDepositorDepositsRequest ¶
type QueryDepositorDepositsRequest struct { // depositor_addr defines the depositor address to query for. DepositorAddress string `protobuf:"bytes,1,opt,name=depositor_address,json=depositorAddress,proto3" json:"depositor_address,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositorDepositsRequest is request type for Query/DepositorDeposits RPC method.
func (*QueryDepositorDepositsRequest) Descriptor ¶
func (*QueryDepositorDepositsRequest) Descriptor() ([]byte, []int)
func (*QueryDepositorDepositsRequest) GetDepositorAddress ¶
func (m *QueryDepositorDepositsRequest) GetDepositorAddress() string
func (*QueryDepositorDepositsRequest) GetPagination ¶
func (m *QueryDepositorDepositsRequest) GetPagination() *query.PageRequest
func (*QueryDepositorDepositsRequest) Marshal ¶
func (m *QueryDepositorDepositsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDepositorDepositsRequest) MarshalTo ¶
func (m *QueryDepositorDepositsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositorDepositsRequest) MarshalToSizedBuffer ¶
func (m *QueryDepositorDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositorDepositsRequest) ProtoMessage ¶
func (*QueryDepositorDepositsRequest) ProtoMessage()
func (*QueryDepositorDepositsRequest) Reset ¶
func (m *QueryDepositorDepositsRequest) Reset()
func (*QueryDepositorDepositsRequest) Size ¶
func (m *QueryDepositorDepositsRequest) Size() (n int)
func (*QueryDepositorDepositsRequest) String ¶
func (m *QueryDepositorDepositsRequest) String() string
func (*QueryDepositorDepositsRequest) Unmarshal ¶
func (m *QueryDepositorDepositsRequest) Unmarshal(dAtA []byte) error
func (*QueryDepositorDepositsRequest) XXX_DiscardUnknown ¶
func (m *QueryDepositorDepositsRequest) XXX_DiscardUnknown()
func (*QueryDepositorDepositsRequest) XXX_Marshal ¶
func (m *QueryDepositorDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositorDepositsRequest) XXX_Merge ¶
func (m *QueryDepositorDepositsRequest) XXX_Merge(src proto.Message)
func (*QueryDepositorDepositsRequest) XXX_Size ¶
func (m *QueryDepositorDepositsRequest) XXX_Size() int
func (*QueryDepositorDepositsRequest) XXX_Unmarshal ¶
func (m *QueryDepositorDepositsRequest) XXX_Unmarshal(b []byte) error
type QueryDepositorDepositsResponse ¶
type QueryDepositorDepositsResponse struct { // deposits contains all the queried deposits. Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositorDepositsResponse is response type for the Query/DepositorDeposits RPC method
func (*QueryDepositorDepositsResponse) Descriptor ¶
func (*QueryDepositorDepositsResponse) Descriptor() ([]byte, []int)
func (*QueryDepositorDepositsResponse) GetDeposits ¶
func (m *QueryDepositorDepositsResponse) GetDeposits() []Deposit
func (*QueryDepositorDepositsResponse) GetPagination ¶
func (m *QueryDepositorDepositsResponse) GetPagination() *query.PageResponse
func (*QueryDepositorDepositsResponse) Marshal ¶
func (m *QueryDepositorDepositsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDepositorDepositsResponse) MarshalTo ¶
func (m *QueryDepositorDepositsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositorDepositsResponse) MarshalToSizedBuffer ¶
func (m *QueryDepositorDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositorDepositsResponse) ProtoMessage ¶
func (*QueryDepositorDepositsResponse) ProtoMessage()
func (*QueryDepositorDepositsResponse) Reset ¶
func (m *QueryDepositorDepositsResponse) Reset()
func (*QueryDepositorDepositsResponse) Size ¶
func (m *QueryDepositorDepositsResponse) Size() (n int)
func (*QueryDepositorDepositsResponse) String ¶
func (m *QueryDepositorDepositsResponse) String() string
func (*QueryDepositorDepositsResponse) Unmarshal ¶
func (m *QueryDepositorDepositsResponse) Unmarshal(dAtA []byte) error
func (*QueryDepositorDepositsResponse) XXX_DiscardUnknown ¶
func (m *QueryDepositorDepositsResponse) XXX_DiscardUnknown()
func (*QueryDepositorDepositsResponse) XXX_Marshal ¶
func (m *QueryDepositorDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositorDepositsResponse) XXX_Merge ¶
func (m *QueryDepositorDepositsResponse) XXX_Merge(src proto.Message)
func (*QueryDepositorDepositsResponse) XXX_Size ¶
func (m *QueryDepositorDepositsResponse) XXX_Size() int
func (*QueryDepositorDepositsResponse) XXX_Unmarshal ¶
func (m *QueryDepositorDepositsResponse) XXX_Unmarshal(b []byte) error
type QueryDepositorWithdrawalsRequest ¶
type QueryDepositorWithdrawalsRequest struct { // depositor_addr defines the depositor address to query for. DepositorAddress string `protobuf:"bytes,1,opt,name=depositor_address,json=depositorAddress,proto3" json:"depositor_address,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositorWithdrawalsRequest is request type for Query/DepositorWithdrawals RPC method.
func (*QueryDepositorWithdrawalsRequest) Descriptor ¶
func (*QueryDepositorWithdrawalsRequest) Descriptor() ([]byte, []int)
func (*QueryDepositorWithdrawalsRequest) GetDepositorAddress ¶
func (m *QueryDepositorWithdrawalsRequest) GetDepositorAddress() string
func (*QueryDepositorWithdrawalsRequest) GetPagination ¶
func (m *QueryDepositorWithdrawalsRequest) GetPagination() *query.PageRequest
func (*QueryDepositorWithdrawalsRequest) Marshal ¶
func (m *QueryDepositorWithdrawalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDepositorWithdrawalsRequest) MarshalTo ¶
func (m *QueryDepositorWithdrawalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositorWithdrawalsRequest) MarshalToSizedBuffer ¶
func (m *QueryDepositorWithdrawalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositorWithdrawalsRequest) ProtoMessage ¶
func (*QueryDepositorWithdrawalsRequest) ProtoMessage()
func (*QueryDepositorWithdrawalsRequest) Reset ¶
func (m *QueryDepositorWithdrawalsRequest) Reset()
func (*QueryDepositorWithdrawalsRequest) Size ¶
func (m *QueryDepositorWithdrawalsRequest) Size() (n int)
func (*QueryDepositorWithdrawalsRequest) String ¶
func (m *QueryDepositorWithdrawalsRequest) String() string
func (*QueryDepositorWithdrawalsRequest) Unmarshal ¶
func (m *QueryDepositorWithdrawalsRequest) Unmarshal(dAtA []byte) error
func (*QueryDepositorWithdrawalsRequest) XXX_DiscardUnknown ¶
func (m *QueryDepositorWithdrawalsRequest) XXX_DiscardUnknown()
func (*QueryDepositorWithdrawalsRequest) XXX_Marshal ¶
func (m *QueryDepositorWithdrawalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositorWithdrawalsRequest) XXX_Merge ¶
func (m *QueryDepositorWithdrawalsRequest) XXX_Merge(src proto.Message)
func (*QueryDepositorWithdrawalsRequest) XXX_Size ¶
func (m *QueryDepositorWithdrawalsRequest) XXX_Size() int
func (*QueryDepositorWithdrawalsRequest) XXX_Unmarshal ¶
func (m *QueryDepositorWithdrawalsRequest) XXX_Unmarshal(b []byte) error
type QueryDepositorWithdrawalsResponse ¶
type QueryDepositorWithdrawalsResponse struct { // withdrawals contains all the queried withdrawals. Withdrawals []Withdrawal `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositorWithdrawalsResponse is response type for the Query/DepositorWithdrawals RPC method
func (*QueryDepositorWithdrawalsResponse) Descriptor ¶
func (*QueryDepositorWithdrawalsResponse) Descriptor() ([]byte, []int)
func (*QueryDepositorWithdrawalsResponse) GetPagination ¶
func (m *QueryDepositorWithdrawalsResponse) GetPagination() *query.PageResponse
func (*QueryDepositorWithdrawalsResponse) GetWithdrawals ¶
func (m *QueryDepositorWithdrawalsResponse) GetWithdrawals() []Withdrawal
func (*QueryDepositorWithdrawalsResponse) Marshal ¶
func (m *QueryDepositorWithdrawalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDepositorWithdrawalsResponse) MarshalTo ¶
func (m *QueryDepositorWithdrawalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositorWithdrawalsResponse) MarshalToSizedBuffer ¶
func (m *QueryDepositorWithdrawalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositorWithdrawalsResponse) ProtoMessage ¶
func (*QueryDepositorWithdrawalsResponse) ProtoMessage()
func (*QueryDepositorWithdrawalsResponse) Reset ¶
func (m *QueryDepositorWithdrawalsResponse) Reset()
func (*QueryDepositorWithdrawalsResponse) Size ¶
func (m *QueryDepositorWithdrawalsResponse) Size() (n int)
func (*QueryDepositorWithdrawalsResponse) String ¶
func (m *QueryDepositorWithdrawalsResponse) String() string
func (*QueryDepositorWithdrawalsResponse) Unmarshal ¶
func (m *QueryDepositorWithdrawalsResponse) Unmarshal(dAtA []byte) error
func (*QueryDepositorWithdrawalsResponse) XXX_DiscardUnknown ¶
func (m *QueryDepositorWithdrawalsResponse) XXX_DiscardUnknown()
func (*QueryDepositorWithdrawalsResponse) XXX_Marshal ¶
func (m *QueryDepositorWithdrawalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositorWithdrawalsResponse) XXX_Merge ¶
func (m *QueryDepositorWithdrawalsResponse) XXX_Merge(src proto.Message)
func (*QueryDepositorWithdrawalsResponse) XXX_Size ¶
func (m *QueryDepositorWithdrawalsResponse) XXX_Size() int
func (*QueryDepositorWithdrawalsResponse) XXX_Unmarshal ¶
func (m *QueryDepositorWithdrawalsResponse) XXX_Unmarshal(b []byte) error
type QueryDepositsRequest ¶
type QueryDepositsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositsRequest is request type for Query/Deposits RPC method.
func (*QueryDepositsRequest) Descriptor ¶
func (*QueryDepositsRequest) Descriptor() ([]byte, []int)
func (*QueryDepositsRequest) GetPagination ¶
func (m *QueryDepositsRequest) GetPagination() *query.PageRequest
func (*QueryDepositsRequest) Marshal ¶
func (m *QueryDepositsRequest) Marshal() (dAtA []byte, err error)
func (*QueryDepositsRequest) MarshalTo ¶
func (m *QueryDepositsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositsRequest) MarshalToSizedBuffer ¶
func (m *QueryDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositsRequest) ProtoMessage ¶
func (*QueryDepositsRequest) ProtoMessage()
func (*QueryDepositsRequest) Reset ¶
func (m *QueryDepositsRequest) Reset()
func (*QueryDepositsRequest) Size ¶
func (m *QueryDepositsRequest) Size() (n int)
func (*QueryDepositsRequest) String ¶
func (m *QueryDepositsRequest) String() string
func (*QueryDepositsRequest) Unmarshal ¶
func (m *QueryDepositsRequest) Unmarshal(dAtA []byte) error
func (*QueryDepositsRequest) XXX_DiscardUnknown ¶
func (m *QueryDepositsRequest) XXX_DiscardUnknown()
func (*QueryDepositsRequest) XXX_Marshal ¶
func (m *QueryDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositsRequest) XXX_Merge ¶
func (m *QueryDepositsRequest) XXX_Merge(src proto.Message)
func (*QueryDepositsRequest) XXX_Size ¶
func (m *QueryDepositsRequest) XXX_Size() int
func (*QueryDepositsRequest) XXX_Unmarshal ¶
func (m *QueryDepositsRequest) XXX_Unmarshal(b []byte) error
type QueryDepositsResponse ¶
type QueryDepositsResponse struct { // deposits contains all the queried deposits. Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryDepositsResponse is response type for the Query/Deposits RPC method
func (*QueryDepositsResponse) Descriptor ¶
func (*QueryDepositsResponse) Descriptor() ([]byte, []int)
func (*QueryDepositsResponse) GetDeposits ¶
func (m *QueryDepositsResponse) GetDeposits() []Deposit
func (*QueryDepositsResponse) GetPagination ¶
func (m *QueryDepositsResponse) GetPagination() *query.PageResponse
func (*QueryDepositsResponse) Marshal ¶
func (m *QueryDepositsResponse) Marshal() (dAtA []byte, err error)
func (*QueryDepositsResponse) MarshalTo ¶
func (m *QueryDepositsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryDepositsResponse) MarshalToSizedBuffer ¶
func (m *QueryDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDepositsResponse) ProtoMessage ¶
func (*QueryDepositsResponse) ProtoMessage()
func (*QueryDepositsResponse) Reset ¶
func (m *QueryDepositsResponse) Reset()
func (*QueryDepositsResponse) Size ¶
func (m *QueryDepositsResponse) Size() (n int)
func (*QueryDepositsResponse) String ¶
func (m *QueryDepositsResponse) String() string
func (*QueryDepositsResponse) Unmarshal ¶
func (m *QueryDepositsResponse) Unmarshal(dAtA []byte) error
func (*QueryDepositsResponse) XXX_DiscardUnknown ¶
func (m *QueryDepositsResponse) XXX_DiscardUnknown()
func (*QueryDepositsResponse) XXX_Marshal ¶
func (m *QueryDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDepositsResponse) XXX_Merge ¶
func (m *QueryDepositsResponse) XXX_Merge(src proto.Message)
func (*QueryDepositsResponse) XXX_Size ¶
func (m *QueryDepositsResponse) XXX_Size() int
func (*QueryDepositsResponse) XXX_Unmarshal ¶
func (m *QueryDepositsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method. Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Deposits queries all deposits. Deposits(context.Context, *QueryDepositsRequest) (*QueryDepositsResponse, error) // DepositorDeposits queries deposits info for given depositor. DepositorDeposits(context.Context, *QueryDepositorDepositsRequest) (*QueryDepositorDepositsResponse, error) // DepositorWithdrawals queries withdrawals info for given depositor. DepositorWithdrawals(context.Context, *QueryDepositorWithdrawalsRequest) (*QueryDepositorWithdrawalsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Deposit ¶
func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error)
func (*UnimplementedMsgServer) Withdraw ¶
func (*UnimplementedMsgServer) Withdraw(ctx context.Context, req *MsgWithdraw) (*MsgWithdrawResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) DepositorDeposits ¶
func (*UnimplementedQueryServer) DepositorDeposits(ctx context.Context, req *QueryDepositorDepositsRequest) (*QueryDepositorDepositsResponse, error)
func (*UnimplementedQueryServer) DepositorWithdrawals ¶
func (*UnimplementedQueryServer) DepositorWithdrawals(ctx context.Context, req *QueryDepositorWithdrawalsRequest) (*QueryDepositorWithdrawalsResponse, error)
func (*UnimplementedQueryServer) Deposits ¶
func (*UnimplementedQueryServer) Deposits(ctx context.Context, req *QueryDepositsRequest) (*QueryDepositsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type Withdrawal ¶
type Withdrawal struct { // withdrawal is the withdrawal attempt id. ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" yaml:"id"` // depositorAddress is the bech32-encoded address of the depositor. DepositorAddress string `` /* 134-byte string literal not displayed */ // sport_event_uid is the uid of sport-event against which the deposit is // being made. SportEventUID string `protobuf:"bytes,3,opt,name=sport_event_uid,proto3" json:"sport_event_uid"` // participation_index is the id corresponding to the book participation ParticipationIndex uint64 `` /* 143-byte string literal not displayed */ // mode is the withdrawal mode enum value Mode WithdrawalMode `protobuf:"varint,5,opt,name=mode,proto3,enum=merlinnetwork.fury.house.WithdrawalMode" json:"mode,omitempty" yaml:"mode"` // amount is the amount being withdrawn. Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"` }
Withdrawal represents the withdrawal against a deposit.
func NewWithdrawal ¶
func NewWithdrawal(id uint64, depositorAddr, sportEventUID string, participationIndex uint64, amount sdk.Int, mode WithdrawalMode) Withdrawal
NewWithdrawal creates a new withdrawal object
func UnmarshalWithdrawal ¶
func UnmarshalWithdrawal(cdc codec.BinaryCodec, value []byte) (withdrawal Withdrawal, err error)
return the withdrawal
func (*Withdrawal) Descriptor ¶
func (*Withdrawal) Descriptor() ([]byte, []int)
func (*Withdrawal) Marshal ¶
func (m *Withdrawal) Marshal() (dAtA []byte, err error)
func (*Withdrawal) MarshalToSizedBuffer ¶
func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Withdrawal) ProtoMessage ¶
func (*Withdrawal) ProtoMessage()
func (*Withdrawal) Reset ¶
func (m *Withdrawal) Reset()
func (*Withdrawal) Size ¶
func (m *Withdrawal) Size() (n int)
func (Withdrawal) String ¶
func (w Withdrawal) String() string
String returns a human readable string representation of a Withdrawal.
func (*Withdrawal) Unmarshal ¶
func (m *Withdrawal) Unmarshal(dAtA []byte) error
func (*Withdrawal) XXX_DiscardUnknown ¶
func (m *Withdrawal) XXX_DiscardUnknown()
func (*Withdrawal) XXX_Marshal ¶
func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Withdrawal) XXX_Merge ¶
func (m *Withdrawal) XXX_Merge(src proto.Message)
func (*Withdrawal) XXX_Size ¶
func (m *Withdrawal) XXX_Size() int
func (*Withdrawal) XXX_Unmarshal ¶
func (m *Withdrawal) XXX_Unmarshal(b []byte) error
type WithdrawalMode ¶
type WithdrawalMode int32
WithdrawalMode is the enum type for the withdrawal mode.
const ( // invalid WithdrawalMode_WITHDRAWAL_MODE_UNSPECIFIED WithdrawalMode = 0 // full WithdrawalMode_WITHDRAWAL_MODE_FULL WithdrawalMode = 1 // partial WithdrawalMode_WITHDRAWAL_MODE_PARTIAL WithdrawalMode = 2 )
func (WithdrawalMode) EnumDescriptor ¶
func (WithdrawalMode) EnumDescriptor() ([]byte, []int)
func (WithdrawalMode) String ¶
func (x WithdrawalMode) String() string