Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- func VaultForAddressByPair(address sdk.AccAddress, pairID uint64) []byte
- func VaultKey(id uint64) []byte
- type EventCloseVault
- func (*EventCloseVault) Descriptor() ([]byte, []int)
- func (m *EventCloseVault) GetCollateralType() string
- func (m *EventCloseVault) GetOwner() string
- func (m *EventCloseVault) Marshal() (dAtA []byte, err error)
- func (m *EventCloseVault) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCloseVault) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCloseVault) ProtoMessage()
- func (m *EventCloseVault) Reset()
- func (m *EventCloseVault) Size() (n int)
- func (m *EventCloseVault) String() string
- func (m *EventCloseVault) Unmarshal(dAtA []byte) error
- func (m *EventCloseVault) XXX_DiscardUnknown()
- func (m *EventCloseVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCloseVault) XXX_Merge(src proto.Message)
- func (m *EventCloseVault) XXX_Size() int
- func (m *EventCloseVault) XXX_Unmarshal(b []byte) error
- type EventCreateVault
- func (*EventCreateVault) Descriptor() ([]byte, []int)
- func (m *EventCreateVault) GetCollateralType() string
- func (m *EventCreateVault) GetSender() string
- func (m *EventCreateVault) Marshal() (dAtA []byte, err error)
- func (m *EventCreateVault) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateVault) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateVault) ProtoMessage()
- func (m *EventCreateVault) Reset()
- func (m *EventCreateVault) Size() (n int)
- func (m *EventCreateVault) String() string
- func (m *EventCreateVault) Unmarshal(dAtA []byte) error
- func (m *EventCreateVault) XXX_DiscardUnknown()
- func (m *EventCreateVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateVault) XXX_Merge(src proto.Message)
- func (m *EventCreateVault) XXX_Size() int
- func (m *EventCreateVault) XXX_Unmarshal(b []byte) error
- type EventDepositCollateral
- func (*EventDepositCollateral) Descriptor() ([]byte, []int)
- func (m *EventDepositCollateral) GetCollateral() types.Coin
- func (m *EventDepositCollateral) GetCollateralType() string
- func (m *EventDepositCollateral) GetOwner() string
- func (m *EventDepositCollateral) Marshal() (dAtA []byte, err error)
- func (m *EventDepositCollateral) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDepositCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDepositCollateral) ProtoMessage()
- func (m *EventDepositCollateral) Reset()
- func (m *EventDepositCollateral) Size() (n int)
- func (m *EventDepositCollateral) String() string
- func (m *EventDepositCollateral) Unmarshal(dAtA []byte) error
- func (m *EventDepositCollateral) XXX_DiscardUnknown()
- func (m *EventDepositCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDepositCollateral) XXX_Merge(src proto.Message)
- func (m *EventDepositCollateral) XXX_Size() int
- func (m *EventDepositCollateral) XXX_Unmarshal(b []byte) error
- type EventDrawDebt
- func (*EventDrawDebt) Descriptor() ([]byte, []int)
- func (m *EventDrawDebt) GetCollateralType() string
- func (m *EventDrawDebt) GetDebt() types.Coin
- func (m *EventDrawDebt) GetOwner() string
- func (m *EventDrawDebt) Marshal() (dAtA []byte, err error)
- func (m *EventDrawDebt) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDrawDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDrawDebt) ProtoMessage()
- func (m *EventDrawDebt) Reset()
- func (m *EventDrawDebt) Size() (n int)
- func (m *EventDrawDebt) String() string
- func (m *EventDrawDebt) Unmarshal(dAtA []byte) error
- func (m *EventDrawDebt) XXX_DiscardUnknown()
- func (m *EventDrawDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDrawDebt) XXX_Merge(src proto.Message)
- func (m *EventDrawDebt) XXX_Size() int
- func (m *EventDrawDebt) XXX_Unmarshal(b []byte) error
- type EventRepayDebt
- func (*EventRepayDebt) Descriptor() ([]byte, []int)
- func (m *EventRepayDebt) GetCollateralType() string
- func (m *EventRepayDebt) GetDebt() types.Coin
- func (m *EventRepayDebt) GetOwner() string
- func (m *EventRepayDebt) Marshal() (dAtA []byte, err error)
- func (m *EventRepayDebt) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRepayDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRepayDebt) ProtoMessage()
- func (m *EventRepayDebt) Reset()
- func (m *EventRepayDebt) Size() (n int)
- func (m *EventRepayDebt) String() string
- func (m *EventRepayDebt) Unmarshal(dAtA []byte) error
- func (m *EventRepayDebt) XXX_DiscardUnknown()
- func (m *EventRepayDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRepayDebt) XXX_Merge(src proto.Message)
- func (m *EventRepayDebt) XXX_Size() int
- func (m *EventRepayDebt) XXX_Unmarshal(b []byte) error
- type EventWithdrawCollateral
- func (*EventWithdrawCollateral) Descriptor() ([]byte, []int)
- func (m *EventWithdrawCollateral) GetCollateral() types.Coin
- func (m *EventWithdrawCollateral) GetCollateralType() string
- func (m *EventWithdrawCollateral) GetOwner() string
- func (m *EventWithdrawCollateral) Marshal() (dAtA []byte, err error)
- func (m *EventWithdrawCollateral) MarshalTo(dAtA []byte) (int, error)
- func (m *EventWithdrawCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventWithdrawCollateral) ProtoMessage()
- func (m *EventWithdrawCollateral) Reset()
- func (m *EventWithdrawCollateral) Size() (n int)
- func (m *EventWithdrawCollateral) String() string
- func (m *EventWithdrawCollateral) Unmarshal(dAtA []byte) error
- func (m *EventWithdrawCollateral) XXX_DiscardUnknown()
- func (m *EventWithdrawCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventWithdrawCollateral) XXX_Merge(src proto.Message)
- func (m *EventWithdrawCollateral) XXX_Size() int
- func (m *EventWithdrawCollateral) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (m *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 MsgCloseRequest
- func (*MsgCloseRequest) Descriptor() ([]byte, []int)
- func (m *MsgCloseRequest) GetSignBytes() []byte
- func (m *MsgCloseRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCloseRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseRequest) ProtoMessage()
- func (m *MsgCloseRequest) Reset()
- func (m *MsgCloseRequest) Route() string
- func (m *MsgCloseRequest) Size() (n int)
- func (m *MsgCloseRequest) String() string
- func (m *MsgCloseRequest) Type() string
- func (m *MsgCloseRequest) Unmarshal(dAtA []byte) error
- func (m *MsgCloseRequest) ValidateBasic() error
- func (m *MsgCloseRequest) XXX_DiscardUnknown()
- func (m *MsgCloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseRequest) XXX_Merge(src proto.Message)
- func (m *MsgCloseRequest) XXX_Size() int
- func (m *MsgCloseRequest) XXX_Unmarshal(b []byte) error
- type MsgCloseResponse
- func (*MsgCloseResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseResponse) ProtoMessage()
- func (m *MsgCloseResponse) Reset()
- func (m *MsgCloseResponse) Size() (n int)
- func (m *MsgCloseResponse) String() string
- func (m *MsgCloseResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseResponse) XXX_DiscardUnknown()
- func (m *MsgCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseResponse) XXX_Size() int
- func (m *MsgCloseResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateRequest
- func (*MsgCreateRequest) Descriptor() ([]byte, []int)
- func (m *MsgCreateRequest) GetSignBytes() []byte
- func (m *MsgCreateRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRequest) ProtoMessage()
- func (m *MsgCreateRequest) Reset()
- func (m *MsgCreateRequest) Route() string
- func (m *MsgCreateRequest) Size() (n int)
- func (m *MsgCreateRequest) String() string
- func (m *MsgCreateRequest) Type() string
- func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
- func (m *MsgCreateRequest) ValidateBasic() error
- func (m *MsgCreateRequest) XXX_DiscardUnknown()
- func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
- func (m *MsgCreateRequest) XXX_Size() int
- func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
- type MsgCreateResponse
- func (*MsgCreateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResponse) ProtoMessage()
- func (m *MsgCreateResponse) Reset()
- func (m *MsgCreateResponse) Size() (n int)
- func (m *MsgCreateResponse) String() string
- func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResponse) XXX_Size() int
- func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
- type MsgDepositRequest
- func (*MsgDepositRequest) Descriptor() ([]byte, []int)
- func (m *MsgDepositRequest) GetSignBytes() []byte
- func (m *MsgDepositRequest) GetSigners() []sdk.AccAddress
- func (m *MsgDepositRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositRequest) ProtoMessage()
- func (m *MsgDepositRequest) Reset()
- func (m *MsgDepositRequest) Route() string
- func (m *MsgDepositRequest) Size() (n int)
- func (m *MsgDepositRequest) String() string
- func (m *MsgDepositRequest) Type() string
- func (m *MsgDepositRequest) Unmarshal(dAtA []byte) error
- func (m *MsgDepositRequest) ValidateBasic() error
- func (m *MsgDepositRequest) XXX_DiscardUnknown()
- func (m *MsgDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositRequest) XXX_Merge(src proto.Message)
- func (m *MsgDepositRequest) XXX_Size() int
- func (m *MsgDepositRequest) XXX_Unmarshal(b []byte) error
- type MsgDepositResponse
- func (*MsgDepositResponse) Descriptor() ([]byte, []int)
- 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 MsgDrawRequest
- func (*MsgDrawRequest) Descriptor() ([]byte, []int)
- func (m *MsgDrawRequest) GetSignBytes() []byte
- func (m *MsgDrawRequest) GetSigners() []sdk.AccAddress
- func (m *MsgDrawRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgDrawRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDrawRequest) ProtoMessage()
- func (m *MsgDrawRequest) Reset()
- func (m *MsgDrawRequest) Route() string
- func (m *MsgDrawRequest) Size() (n int)
- func (m *MsgDrawRequest) String() string
- func (m *MsgDrawRequest) Type() string
- func (m *MsgDrawRequest) Unmarshal(dAtA []byte) error
- func (m *MsgDrawRequest) ValidateBasic() error
- func (m *MsgDrawRequest) XXX_DiscardUnknown()
- func (m *MsgDrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDrawRequest) XXX_Merge(src proto.Message)
- func (m *MsgDrawRequest) XXX_Size() int
- func (m *MsgDrawRequest) XXX_Unmarshal(b []byte) error
- type MsgDrawResponse
- func (*MsgDrawResponse) Descriptor() ([]byte, []int)
- func (m *MsgDrawResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDrawResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDrawResponse) ProtoMessage()
- func (m *MsgDrawResponse) Reset()
- func (m *MsgDrawResponse) Size() (n int)
- func (m *MsgDrawResponse) String() string
- func (m *MsgDrawResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDrawResponse) XXX_DiscardUnknown()
- func (m *MsgDrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDrawResponse) XXX_Merge(src proto.Message)
- func (m *MsgDrawResponse) XXX_Size() int
- func (m *MsgDrawResponse) XXX_Unmarshal(b []byte) error
- type MsgRepayRequest
- func (*MsgRepayRequest) Descriptor() ([]byte, []int)
- func (m *MsgRepayRequest) GetSignBytes() []byte
- func (m *MsgRepayRequest) GetSigners() []sdk.AccAddress
- func (m *MsgRepayRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgRepayRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepayRequest) ProtoMessage()
- func (m *MsgRepayRequest) Reset()
- func (m *MsgRepayRequest) Route() string
- func (m *MsgRepayRequest) Size() (n int)
- func (m *MsgRepayRequest) String() string
- func (m *MsgRepayRequest) Type() string
- func (m *MsgRepayRequest) Unmarshal(dAtA []byte) error
- func (m *MsgRepayRequest) ValidateBasic() error
- func (m *MsgRepayRequest) XXX_DiscardUnknown()
- func (m *MsgRepayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepayRequest) XXX_Merge(src proto.Message)
- func (m *MsgRepayRequest) XXX_Size() int
- func (m *MsgRepayRequest) XXX_Unmarshal(b []byte) error
- type MsgRepayResponse
- func (*MsgRepayResponse) Descriptor() ([]byte, []int)
- func (m *MsgRepayResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRepayResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRepayResponse) ProtoMessage()
- func (m *MsgRepayResponse) Reset()
- func (m *MsgRepayResponse) Size() (n int)
- func (m *MsgRepayResponse) String() string
- func (m *MsgRepayResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRepayResponse) XXX_DiscardUnknown()
- func (m *MsgRepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRepayResponse) XXX_Merge(src proto.Message)
- func (m *MsgRepayResponse) XXX_Size() int
- func (m *MsgRepayResponse) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type MsgWithdrawRequest
- func (*MsgWithdrawRequest) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawRequest) GetSignBytes() []byte
- func (m *MsgWithdrawRequest) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawRequest) ProtoMessage()
- func (m *MsgWithdrawRequest) Reset()
- func (m *MsgWithdrawRequest) Route() string
- func (m *MsgWithdrawRequest) Size() (n int)
- func (m *MsgWithdrawRequest) String() string
- func (m *MsgWithdrawRequest) Type() string
- func (m *MsgWithdrawRequest) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawRequest) ValidateBasic() error
- func (m *MsgWithdrawRequest) XXX_DiscardUnknown()
- func (m *MsgWithdrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawRequest) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawRequest) XXX_Size() int
- func (m *MsgWithdrawRequest) XXX_Unmarshal(b []byte) error
- type MsgWithdrawResponse
- func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
- 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 QueryAllVaultsRequest
- func (*QueryAllVaultsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllVaultsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllVaultsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllVaultsRequest) ProtoMessage()
- func (m *QueryAllVaultsRequest) Reset()
- func (m *QueryAllVaultsRequest) Size() (n int)
- func (m *QueryAllVaultsRequest) String() string
- func (m *QueryAllVaultsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllVaultsRequest) XXX_DiscardUnknown()
- func (m *QueryAllVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllVaultsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllVaultsRequest) XXX_Size() int
- func (m *QueryAllVaultsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllVaultsResponse
- func (*QueryAllVaultsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllVaultsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllVaultsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllVaultsResponse) ProtoMessage()
- func (m *QueryAllVaultsResponse) Reset()
- func (m *QueryAllVaultsResponse) Size() (n int)
- func (m *QueryAllVaultsResponse) String() string
- func (m *QueryAllVaultsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllVaultsResponse) XXX_DiscardUnknown()
- func (m *QueryAllVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllVaultsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllVaultsResponse) XXX_Size() int
- func (m *QueryAllVaultsResponse) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type QueryVaultRequest
- func (*QueryVaultRequest) Descriptor() ([]byte, []int)
- func (m *QueryVaultRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVaultRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVaultRequest) ProtoMessage()
- func (m *QueryVaultRequest) Reset()
- func (m *QueryVaultRequest) Size() (n int)
- func (m *QueryVaultRequest) String() string
- func (m *QueryVaultRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVaultRequest) XXX_DiscardUnknown()
- func (m *QueryVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVaultRequest) XXX_Merge(src proto.Message)
- func (m *QueryVaultRequest) XXX_Size() int
- func (m *QueryVaultRequest) XXX_Unmarshal(b []byte) error
- type QueryVaultResponse
- func (*QueryVaultResponse) Descriptor() ([]byte, []int)
- func (m *QueryVaultResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVaultResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVaultResponse) ProtoMessage()
- func (m *QueryVaultResponse) Reset()
- func (m *QueryVaultResponse) Size() (n int)
- func (m *QueryVaultResponse) String() string
- func (m *QueryVaultResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVaultResponse) XXX_DiscardUnknown()
- func (m *QueryVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVaultResponse) XXX_Merge(src proto.Message)
- func (m *QueryVaultResponse) XXX_Size() int
- func (m *QueryVaultResponse) XXX_Unmarshal(b []byte) error
- type QueryVaultsRequest
- func (*QueryVaultsRequest) Descriptor() ([]byte, []int)
- func (m *QueryVaultsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVaultsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVaultsRequest) ProtoMessage()
- func (m *QueryVaultsRequest) Reset()
- func (m *QueryVaultsRequest) Size() (n int)
- func (m *QueryVaultsRequest) String() string
- func (m *QueryVaultsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVaultsRequest) XXX_DiscardUnknown()
- func (m *QueryVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVaultsRequest) XXX_Merge(src proto.Message)
- func (m *QueryVaultsRequest) XXX_Size() int
- func (m *QueryVaultsRequest) XXX_Unmarshal(b []byte) error
- type QueryVaultsResponse
- func (*QueryVaultsResponse) Descriptor() ([]byte, []int)
- func (m *QueryVaultsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVaultsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVaultsResponse) ProtoMessage()
- func (m *QueryVaultsResponse) Reset()
- func (m *QueryVaultsResponse) Size() (n int)
- func (m *QueryVaultsResponse) String() string
- func (m *QueryVaultsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVaultsResponse) XXX_DiscardUnknown()
- func (m *QueryVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVaultsResponse) XXX_Merge(src proto.Message)
- func (m *QueryVaultsResponse) XXX_Size() int
- func (m *QueryVaultsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServiceServer
- func (*UnimplementedMsgServiceServer) MsgClose(ctx context.Context, req *MsgCloseRequest) (*MsgCloseResponse, error)
- func (*UnimplementedMsgServiceServer) MsgCreate(ctx context.Context, req *MsgCreateRequest) (*MsgCreateResponse, error)
- func (*UnimplementedMsgServiceServer) MsgDeposit(ctx context.Context, req *MsgDepositRequest) (*MsgDepositResponse, error)
- func (*UnimplementedMsgServiceServer) MsgDraw(ctx context.Context, req *MsgDrawRequest) (*MsgDrawResponse, error)
- func (*UnimplementedMsgServiceServer) MsgRepay(ctx context.Context, req *MsgRepayRequest) (*MsgRepayResponse, error)
- func (*UnimplementedMsgServiceServer) MsgWithdraw(ctx context.Context, req *MsgWithdrawRequest) (*MsgWithdrawResponse, error)
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryAllVaults(ctx context.Context, req *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error)
- func (*UnimplementedQueryServiceServer) QueryVault(ctx context.Context, req *QueryVaultRequest) (*QueryVaultResponse, error)
- func (*UnimplementedQueryServiceServer) QueryVaults(ctx context.Context, req *QueryVaultsRequest) (*QueryVaultsResponse, error)
- type Vault
- func (*Vault) Descriptor() ([]byte, []int)
- func (m *Vault) Marshal() (dAtA []byte, err error)
- func (m *Vault) MarshalTo(dAtA []byte) (int, error)
- func (m *Vault) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Vault) ProtoMessage()
- func (m *Vault) Reset()
- func (m *Vault) Size() (n int)
- func (m *Vault) String() string
- func (m *Vault) Unmarshal(dAtA []byte) error
- func (m *Vault) Validate() error
- func (m *Vault) XXX_DiscardUnknown()
- func (m *Vault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vault) XXX_Merge(src proto.Message)
- func (m *Vault) XXX_Size() int
- func (m *Vault) XXX_Unmarshal(b []byte) error
- type VaultInfo
- func (*VaultInfo) Descriptor() ([]byte, []int)
- func (m *VaultInfo) Marshal() (dAtA []byte, err error)
- func (m *VaultInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *VaultInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VaultInfo) ProtoMessage()
- func (m *VaultInfo) Reset()
- func (m *VaultInfo) Size() (n int)
- func (m *VaultInfo) String() string
- func (m *VaultInfo) Unmarshal(dAtA []byte) error
- func (m *VaultInfo) XXX_DiscardUnknown()
- func (m *VaultInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VaultInfo) XXX_Merge(src proto.Message)
- func (m *VaultInfo) XXX_Size() int
- func (m *VaultInfo) XXX_Unmarshal(b []byte) error
Constants ¶
const ( ModuleName = "vault" QuerierRoute = ModuleName RouterKey = ModuleName StoreKey = ModuleName )
Variables ¶
var ( ErrorInvalidAmount = errors.Register(ModuleName, 101, "invalid amount") ErrorInvalidAmountIn = errors.Register(ModuleName, 102, "invalid amount_in") ErrorInvalidAmountOut = errors.Register(ModuleName, 103, "invalid amount_out") ErrorInvalidFrom = errors.Register(ModuleName, 104, "invalid from") ErrorInvalidID = errors.Register(ModuleName, 105, "invalid id") )
var ( ErrorAssetDoesNotExist = errors.Register(ModuleName, 201, "asset does not exist") ErrorVaultDoesNotExist = errors.Register(ModuleName, 202, "vault does not exist") ErrorDuplicateVault = errors.Register(ModuleName, 204, "duplicate vault") ErrorInvalidCollateralizationRatio = errors.Register(ModuleName, 205, "invalid collateralization ratio") ErrorPairDoesNotExist = errors.Register(ModuleName, 206, "pair does not exist") ErrorPriceDoesNotExist = errors.Register(ModuleName, 207, "price does not exist") )
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 ( TypeMsgCreateRequest = ModuleName + ":create" TypeMsgDepositRequest = ModuleName + ":deposit" TypeMsgWithdrawRequest = ModuleName + ":withdraw" TypeMsgDrawRequest = ModuleName + ":draw" TypeMsgRepayRequest = ModuleName + ":repay" TypeMsgLiquidateRequest = ModuleName + ":liquidate" )
var ( IDKey = []byte{0x00} VaultKeyPrefix = []byte{0x10} VaultForAddressByPairKeyPrefix = []byte{0x20} )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuerier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuerier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthVault = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVault = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVault = fmt.Errorf("proto: unexpected end of group") )
var (
ErrorUnknownMsgType = errors.Register(ModuleName, 301, "unknown message type")
)
var (
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterMsgServiceServer ¶
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer 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 RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
func VaultForAddressByPair ¶
func VaultForAddressByPair(address sdk.AccAddress, pairID uint64) []byte
Types ¶
type EventCloseVault ¶
type EventCloseVault struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` }
func (*EventCloseVault) Descriptor ¶
func (*EventCloseVault) Descriptor() ([]byte, []int)
func (*EventCloseVault) GetCollateralType ¶
func (m *EventCloseVault) GetCollateralType() string
func (*EventCloseVault) GetOwner ¶
func (m *EventCloseVault) GetOwner() string
func (*EventCloseVault) Marshal ¶
func (m *EventCloseVault) Marshal() (dAtA []byte, err error)
func (*EventCloseVault) MarshalToSizedBuffer ¶
func (m *EventCloseVault) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCloseVault) ProtoMessage ¶
func (*EventCloseVault) ProtoMessage()
func (*EventCloseVault) Reset ¶
func (m *EventCloseVault) Reset()
func (*EventCloseVault) Size ¶
func (m *EventCloseVault) Size() (n int)
func (*EventCloseVault) String ¶
func (m *EventCloseVault) String() string
func (*EventCloseVault) Unmarshal ¶
func (m *EventCloseVault) Unmarshal(dAtA []byte) error
func (*EventCloseVault) XXX_DiscardUnknown ¶
func (m *EventCloseVault) XXX_DiscardUnknown()
func (*EventCloseVault) XXX_Marshal ¶
func (m *EventCloseVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCloseVault) XXX_Merge ¶
func (m *EventCloseVault) XXX_Merge(src proto.Message)
func (*EventCloseVault) XXX_Size ¶
func (m *EventCloseVault) XXX_Size() int
func (*EventCloseVault) XXX_Unmarshal ¶
func (m *EventCloseVault) XXX_Unmarshal(b []byte) error
type EventCreateVault ¶
type EventCreateVault struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` }
func (*EventCreateVault) Descriptor ¶
func (*EventCreateVault) Descriptor() ([]byte, []int)
func (*EventCreateVault) GetCollateralType ¶
func (m *EventCreateVault) GetCollateralType() string
func (*EventCreateVault) GetSender ¶
func (m *EventCreateVault) GetSender() string
func (*EventCreateVault) Marshal ¶
func (m *EventCreateVault) Marshal() (dAtA []byte, err error)
func (*EventCreateVault) MarshalToSizedBuffer ¶
func (m *EventCreateVault) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateVault) ProtoMessage ¶
func (*EventCreateVault) ProtoMessage()
func (*EventCreateVault) Reset ¶
func (m *EventCreateVault) Reset()
func (*EventCreateVault) Size ¶
func (m *EventCreateVault) Size() (n int)
func (*EventCreateVault) String ¶
func (m *EventCreateVault) String() string
func (*EventCreateVault) Unmarshal ¶
func (m *EventCreateVault) Unmarshal(dAtA []byte) error
func (*EventCreateVault) XXX_DiscardUnknown ¶
func (m *EventCreateVault) XXX_DiscardUnknown()
func (*EventCreateVault) XXX_Marshal ¶
func (m *EventCreateVault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateVault) XXX_Merge ¶
func (m *EventCreateVault) XXX_Merge(src proto.Message)
func (*EventCreateVault) XXX_Size ¶
func (m *EventCreateVault) XXX_Size() int
func (*EventCreateVault) XXX_Unmarshal ¶
func (m *EventCreateVault) XXX_Unmarshal(b []byte) error
type EventDepositCollateral ¶
type EventDepositCollateral struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Collateral types.Coin `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral" yaml:"payment"` }
func (*EventDepositCollateral) Descriptor ¶
func (*EventDepositCollateral) Descriptor() ([]byte, []int)
func (*EventDepositCollateral) GetCollateral ¶
func (m *EventDepositCollateral) GetCollateral() types.Coin
func (*EventDepositCollateral) GetCollateralType ¶
func (m *EventDepositCollateral) GetCollateralType() string
func (*EventDepositCollateral) GetOwner ¶
func (m *EventDepositCollateral) GetOwner() string
func (*EventDepositCollateral) Marshal ¶
func (m *EventDepositCollateral) Marshal() (dAtA []byte, err error)
func (*EventDepositCollateral) MarshalTo ¶
func (m *EventDepositCollateral) MarshalTo(dAtA []byte) (int, error)
func (*EventDepositCollateral) MarshalToSizedBuffer ¶
func (m *EventDepositCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDepositCollateral) ProtoMessage ¶
func (*EventDepositCollateral) ProtoMessage()
func (*EventDepositCollateral) Reset ¶
func (m *EventDepositCollateral) Reset()
func (*EventDepositCollateral) Size ¶
func (m *EventDepositCollateral) Size() (n int)
func (*EventDepositCollateral) String ¶
func (m *EventDepositCollateral) String() string
func (*EventDepositCollateral) Unmarshal ¶
func (m *EventDepositCollateral) Unmarshal(dAtA []byte) error
func (*EventDepositCollateral) XXX_DiscardUnknown ¶
func (m *EventDepositCollateral) XXX_DiscardUnknown()
func (*EventDepositCollateral) XXX_Marshal ¶
func (m *EventDepositCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDepositCollateral) XXX_Merge ¶
func (m *EventDepositCollateral) XXX_Merge(src proto.Message)
func (*EventDepositCollateral) XXX_Size ¶
func (m *EventDepositCollateral) XXX_Size() int
func (*EventDepositCollateral) XXX_Unmarshal ¶
func (m *EventDepositCollateral) XXX_Unmarshal(b []byte) error
type EventDrawDebt ¶
type EventDrawDebt struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Debt types.Coin `protobuf:"bytes,3,opt,name=debt,proto3" json:"debt" yaml:"payment"` }
func (*EventDrawDebt) Descriptor ¶
func (*EventDrawDebt) Descriptor() ([]byte, []int)
func (*EventDrawDebt) GetCollateralType ¶
func (m *EventDrawDebt) GetCollateralType() string
func (*EventDrawDebt) GetDebt ¶
func (m *EventDrawDebt) GetDebt() types.Coin
func (*EventDrawDebt) GetOwner ¶
func (m *EventDrawDebt) GetOwner() string
func (*EventDrawDebt) Marshal ¶
func (m *EventDrawDebt) Marshal() (dAtA []byte, err error)
func (*EventDrawDebt) MarshalToSizedBuffer ¶
func (m *EventDrawDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDrawDebt) ProtoMessage ¶
func (*EventDrawDebt) ProtoMessage()
func (*EventDrawDebt) Reset ¶
func (m *EventDrawDebt) Reset()
func (*EventDrawDebt) Size ¶
func (m *EventDrawDebt) Size() (n int)
func (*EventDrawDebt) String ¶
func (m *EventDrawDebt) String() string
func (*EventDrawDebt) Unmarshal ¶
func (m *EventDrawDebt) Unmarshal(dAtA []byte) error
func (*EventDrawDebt) XXX_DiscardUnknown ¶
func (m *EventDrawDebt) XXX_DiscardUnknown()
func (*EventDrawDebt) XXX_Marshal ¶
func (m *EventDrawDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDrawDebt) XXX_Merge ¶
func (m *EventDrawDebt) XXX_Merge(src proto.Message)
func (*EventDrawDebt) XXX_Size ¶
func (m *EventDrawDebt) XXX_Size() int
func (*EventDrawDebt) XXX_Unmarshal ¶
func (m *EventDrawDebt) XXX_Unmarshal(b []byte) error
type EventRepayDebt ¶
type EventRepayDebt struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Debt types.Coin `protobuf:"bytes,3,opt,name=debt,proto3" json:"debt" yaml:"payment"` }
func (*EventRepayDebt) Descriptor ¶
func (*EventRepayDebt) Descriptor() ([]byte, []int)
func (*EventRepayDebt) GetCollateralType ¶
func (m *EventRepayDebt) GetCollateralType() string
func (*EventRepayDebt) GetDebt ¶
func (m *EventRepayDebt) GetDebt() types.Coin
func (*EventRepayDebt) GetOwner ¶
func (m *EventRepayDebt) GetOwner() string
func (*EventRepayDebt) Marshal ¶
func (m *EventRepayDebt) Marshal() (dAtA []byte, err error)
func (*EventRepayDebt) MarshalToSizedBuffer ¶
func (m *EventRepayDebt) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRepayDebt) ProtoMessage ¶
func (*EventRepayDebt) ProtoMessage()
func (*EventRepayDebt) Reset ¶
func (m *EventRepayDebt) Reset()
func (*EventRepayDebt) Size ¶
func (m *EventRepayDebt) Size() (n int)
func (*EventRepayDebt) String ¶
func (m *EventRepayDebt) String() string
func (*EventRepayDebt) Unmarshal ¶
func (m *EventRepayDebt) Unmarshal(dAtA []byte) error
func (*EventRepayDebt) XXX_DiscardUnknown ¶
func (m *EventRepayDebt) XXX_DiscardUnknown()
func (*EventRepayDebt) XXX_Marshal ¶
func (m *EventRepayDebt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRepayDebt) XXX_Merge ¶
func (m *EventRepayDebt) XXX_Merge(src proto.Message)
func (*EventRepayDebt) XXX_Size ¶
func (m *EventRepayDebt) XXX_Size() int
func (*EventRepayDebt) XXX_Unmarshal ¶
func (m *EventRepayDebt) XXX_Unmarshal(b []byte) error
type EventWithdrawCollateral ¶
type EventWithdrawCollateral struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"` Collateral types.Coin `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral" yaml:"payment"` }
func (*EventWithdrawCollateral) Descriptor ¶
func (*EventWithdrawCollateral) Descriptor() ([]byte, []int)
func (*EventWithdrawCollateral) GetCollateral ¶
func (m *EventWithdrawCollateral) GetCollateral() types.Coin
func (*EventWithdrawCollateral) GetCollateralType ¶
func (m *EventWithdrawCollateral) GetCollateralType() string
func (*EventWithdrawCollateral) GetOwner ¶
func (m *EventWithdrawCollateral) GetOwner() string
func (*EventWithdrawCollateral) Marshal ¶
func (m *EventWithdrawCollateral) Marshal() (dAtA []byte, err error)
func (*EventWithdrawCollateral) MarshalTo ¶
func (m *EventWithdrawCollateral) MarshalTo(dAtA []byte) (int, error)
func (*EventWithdrawCollateral) MarshalToSizedBuffer ¶
func (m *EventWithdrawCollateral) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventWithdrawCollateral) ProtoMessage ¶
func (*EventWithdrawCollateral) ProtoMessage()
func (*EventWithdrawCollateral) Reset ¶
func (m *EventWithdrawCollateral) Reset()
func (*EventWithdrawCollateral) Size ¶
func (m *EventWithdrawCollateral) Size() (n int)
func (*EventWithdrawCollateral) String ¶
func (m *EventWithdrawCollateral) String() string
func (*EventWithdrawCollateral) Unmarshal ¶
func (m *EventWithdrawCollateral) Unmarshal(dAtA []byte) error
func (*EventWithdrawCollateral) XXX_DiscardUnknown ¶
func (m *EventWithdrawCollateral) XXX_DiscardUnknown()
func (*EventWithdrawCollateral) XXX_Marshal ¶
func (m *EventWithdrawCollateral) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventWithdrawCollateral) XXX_Merge ¶
func (m *EventWithdrawCollateral) XXX_Merge(src proto.Message)
func (*EventWithdrawCollateral) XXX_Size ¶
func (m *EventWithdrawCollateral) XXX_Size() int
func (*EventWithdrawCollateral) XXX_Unmarshal ¶
func (m *EventWithdrawCollateral) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Vaults []Vault `protobuf:"bytes,1,rep,name=vaults,proto3" json:"vaults" yaml:"vaults"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(vaults []Vault) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 (m *GenesisState) Validate() error
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 MsgCloseRequest ¶
type MsgCloseRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` }
func NewMsgLiquidateRequest ¶
func NewMsgLiquidateRequest(from sdk.AccAddress, id uint64) *MsgCloseRequest
func (*MsgCloseRequest) Descriptor ¶
func (*MsgCloseRequest) Descriptor() ([]byte, []int)
func (*MsgCloseRequest) GetSignBytes ¶
func (m *MsgCloseRequest) GetSignBytes() []byte
func (*MsgCloseRequest) GetSigners ¶
func (m *MsgCloseRequest) GetSigners() []sdk.AccAddress
func (*MsgCloseRequest) Marshal ¶
func (m *MsgCloseRequest) Marshal() (dAtA []byte, err error)
func (*MsgCloseRequest) MarshalToSizedBuffer ¶
func (m *MsgCloseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseRequest) ProtoMessage ¶
func (*MsgCloseRequest) ProtoMessage()
func (*MsgCloseRequest) Reset ¶
func (m *MsgCloseRequest) Reset()
func (*MsgCloseRequest) Route ¶
func (m *MsgCloseRequest) Route() string
func (*MsgCloseRequest) Size ¶
func (m *MsgCloseRequest) Size() (n int)
func (*MsgCloseRequest) String ¶
func (m *MsgCloseRequest) String() string
func (*MsgCloseRequest) Type ¶
func (m *MsgCloseRequest) Type() string
func (*MsgCloseRequest) Unmarshal ¶
func (m *MsgCloseRequest) Unmarshal(dAtA []byte) error
func (*MsgCloseRequest) ValidateBasic ¶
func (m *MsgCloseRequest) ValidateBasic() error
func (*MsgCloseRequest) XXX_DiscardUnknown ¶
func (m *MsgCloseRequest) XXX_DiscardUnknown()
func (*MsgCloseRequest) XXX_Marshal ¶
func (m *MsgCloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseRequest) XXX_Merge ¶
func (m *MsgCloseRequest) XXX_Merge(src proto.Message)
func (*MsgCloseRequest) XXX_Size ¶
func (m *MsgCloseRequest) XXX_Size() int
func (*MsgCloseRequest) XXX_Unmarshal ¶
func (m *MsgCloseRequest) XXX_Unmarshal(b []byte) error
type MsgCloseResponse ¶
type MsgCloseResponse struct { }
func (*MsgCloseResponse) Descriptor ¶
func (*MsgCloseResponse) Descriptor() ([]byte, []int)
func (*MsgCloseResponse) Marshal ¶
func (m *MsgCloseResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseResponse) MarshalToSizedBuffer ¶
func (m *MsgCloseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseResponse) ProtoMessage ¶
func (*MsgCloseResponse) ProtoMessage()
func (*MsgCloseResponse) Reset ¶
func (m *MsgCloseResponse) Reset()
func (*MsgCloseResponse) Size ¶
func (m *MsgCloseResponse) Size() (n int)
func (*MsgCloseResponse) String ¶
func (m *MsgCloseResponse) String() string
func (*MsgCloseResponse) Unmarshal ¶
func (m *MsgCloseResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseResponse) XXX_DiscardUnknown ¶
func (m *MsgCloseResponse) XXX_DiscardUnknown()
func (*MsgCloseResponse) XXX_Marshal ¶
func (m *MsgCloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseResponse) XXX_Merge ¶
func (m *MsgCloseResponse) XXX_Merge(src proto.Message)
func (*MsgCloseResponse) XXX_Size ¶
func (m *MsgCloseResponse) XXX_Size() int
func (*MsgCloseResponse) XXX_Unmarshal ¶
func (m *MsgCloseResponse) XXX_Unmarshal(b []byte) error
type MsgCreateRequest ¶
type MsgCreateRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` PairID uint64 `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty" yaml:"pair_id"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */ AmountOut github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ }
func NewMsgCreateRequest ¶
func NewMsgCreateRequest(from sdk.AccAddress, pairID uint64, amountIn, amountOut sdk.Int) *MsgCreateRequest
func (*MsgCreateRequest) Descriptor ¶
func (*MsgCreateRequest) Descriptor() ([]byte, []int)
func (*MsgCreateRequest) GetSignBytes ¶
func (m *MsgCreateRequest) GetSignBytes() []byte
func (*MsgCreateRequest) GetSigners ¶
func (m *MsgCreateRequest) GetSigners() []sdk.AccAddress
func (*MsgCreateRequest) Marshal ¶
func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
func (*MsgCreateRequest) MarshalToSizedBuffer ¶
func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRequest) ProtoMessage ¶
func (*MsgCreateRequest) ProtoMessage()
func (*MsgCreateRequest) Reset ¶
func (m *MsgCreateRequest) Reset()
func (*MsgCreateRequest) Route ¶
func (m *MsgCreateRequest) Route() string
func (*MsgCreateRequest) Size ¶
func (m *MsgCreateRequest) Size() (n int)
func (*MsgCreateRequest) String ¶
func (m *MsgCreateRequest) String() string
func (*MsgCreateRequest) Type ¶
func (m *MsgCreateRequest) Type() string
func (*MsgCreateRequest) Unmarshal ¶
func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
func (*MsgCreateRequest) ValidateBasic ¶
func (m *MsgCreateRequest) ValidateBasic() error
func (*MsgCreateRequest) XXX_DiscardUnknown ¶
func (m *MsgCreateRequest) XXX_DiscardUnknown()
func (*MsgCreateRequest) XXX_Marshal ¶
func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRequest) XXX_Merge ¶
func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
func (*MsgCreateRequest) XXX_Size ¶
func (m *MsgCreateRequest) XXX_Size() int
func (*MsgCreateRequest) XXX_Unmarshal ¶
func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
type MsgCreateResponse ¶
type MsgCreateResponse struct { }
func (*MsgCreateResponse) Descriptor ¶
func (*MsgCreateResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResponse) Marshal ¶
func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateResponse) MarshalTo ¶
func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResponse) ProtoMessage ¶
func (*MsgCreateResponse) ProtoMessage()
func (*MsgCreateResponse) Reset ¶
func (m *MsgCreateResponse) Reset()
func (*MsgCreateResponse) Size ¶
func (m *MsgCreateResponse) Size() (n int)
func (*MsgCreateResponse) String ¶
func (m *MsgCreateResponse) String() string
func (*MsgCreateResponse) Unmarshal ¶
func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateResponse) XXX_DiscardUnknown()
func (*MsgCreateResponse) XXX_Marshal ¶
func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResponse) XXX_Merge ¶
func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
func (*MsgCreateResponse) XXX_Size ¶
func (m *MsgCreateResponse) XXX_Size() int
func (*MsgCreateResponse) XXX_Unmarshal ¶
func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
type MsgDepositRequest ¶
type MsgDepositRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` 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" yaml:"amount"` }
func NewMsgDepositRequest ¶
func NewMsgDepositRequest(from sdk.AccAddress, id uint64, amount sdk.Int) *MsgDepositRequest
func (*MsgDepositRequest) Descriptor ¶
func (*MsgDepositRequest) Descriptor() ([]byte, []int)
func (*MsgDepositRequest) GetSignBytes ¶
func (m *MsgDepositRequest) GetSignBytes() []byte
func (*MsgDepositRequest) GetSigners ¶
func (m *MsgDepositRequest) GetSigners() []sdk.AccAddress
func (*MsgDepositRequest) Marshal ¶
func (m *MsgDepositRequest) Marshal() (dAtA []byte, err error)
func (*MsgDepositRequest) MarshalTo ¶
func (m *MsgDepositRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositRequest) MarshalToSizedBuffer ¶
func (m *MsgDepositRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositRequest) ProtoMessage ¶
func (*MsgDepositRequest) ProtoMessage()
func (*MsgDepositRequest) Reset ¶
func (m *MsgDepositRequest) Reset()
func (*MsgDepositRequest) Route ¶
func (m *MsgDepositRequest) Route() string
func (*MsgDepositRequest) Size ¶
func (m *MsgDepositRequest) Size() (n int)
func (*MsgDepositRequest) String ¶
func (m *MsgDepositRequest) String() string
func (*MsgDepositRequest) Type ¶
func (m *MsgDepositRequest) Type() string
func (*MsgDepositRequest) Unmarshal ¶
func (m *MsgDepositRequest) Unmarshal(dAtA []byte) error
func (*MsgDepositRequest) ValidateBasic ¶
func (m *MsgDepositRequest) ValidateBasic() error
func (*MsgDepositRequest) XXX_DiscardUnknown ¶
func (m *MsgDepositRequest) XXX_DiscardUnknown()
func (*MsgDepositRequest) XXX_Marshal ¶
func (m *MsgDepositRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositRequest) XXX_Merge ¶
func (m *MsgDepositRequest) XXX_Merge(src proto.Message)
func (*MsgDepositRequest) XXX_Size ¶
func (m *MsgDepositRequest) XXX_Size() int
func (*MsgDepositRequest) XXX_Unmarshal ¶
func (m *MsgDepositRequest) XXX_Unmarshal(b []byte) error
type MsgDepositResponse ¶
type MsgDepositResponse struct { }
func (*MsgDepositResponse) Descriptor ¶
func (*MsgDepositResponse) Descriptor() ([]byte, []int)
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 MsgDrawRequest ¶
type MsgDrawRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` 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" yaml:"amount"` }
func NewMsgDrawRequest ¶
func NewMsgDrawRequest(from sdk.AccAddress, id uint64, amount sdk.Int) *MsgDrawRequest
func (*MsgDrawRequest) Descriptor ¶
func (*MsgDrawRequest) Descriptor() ([]byte, []int)
func (*MsgDrawRequest) GetSignBytes ¶
func (m *MsgDrawRequest) GetSignBytes() []byte
func (*MsgDrawRequest) GetSigners ¶
func (m *MsgDrawRequest) GetSigners() []sdk.AccAddress
func (*MsgDrawRequest) Marshal ¶
func (m *MsgDrawRequest) Marshal() (dAtA []byte, err error)
func (*MsgDrawRequest) MarshalToSizedBuffer ¶
func (m *MsgDrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDrawRequest) ProtoMessage ¶
func (*MsgDrawRequest) ProtoMessage()
func (*MsgDrawRequest) Reset ¶
func (m *MsgDrawRequest) Reset()
func (*MsgDrawRequest) Route ¶
func (m *MsgDrawRequest) Route() string
func (*MsgDrawRequest) Size ¶
func (m *MsgDrawRequest) Size() (n int)
func (*MsgDrawRequest) String ¶
func (m *MsgDrawRequest) String() string
func (*MsgDrawRequest) Type ¶
func (m *MsgDrawRequest) Type() string
func (*MsgDrawRequest) Unmarshal ¶
func (m *MsgDrawRequest) Unmarshal(dAtA []byte) error
func (*MsgDrawRequest) ValidateBasic ¶
func (m *MsgDrawRequest) ValidateBasic() error
func (*MsgDrawRequest) XXX_DiscardUnknown ¶
func (m *MsgDrawRequest) XXX_DiscardUnknown()
func (*MsgDrawRequest) XXX_Marshal ¶
func (m *MsgDrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDrawRequest) XXX_Merge ¶
func (m *MsgDrawRequest) XXX_Merge(src proto.Message)
func (*MsgDrawRequest) XXX_Size ¶
func (m *MsgDrawRequest) XXX_Size() int
func (*MsgDrawRequest) XXX_Unmarshal ¶
func (m *MsgDrawRequest) XXX_Unmarshal(b []byte) error
type MsgDrawResponse ¶
type MsgDrawResponse struct { }
func (*MsgDrawResponse) Descriptor ¶
func (*MsgDrawResponse) Descriptor() ([]byte, []int)
func (*MsgDrawResponse) Marshal ¶
func (m *MsgDrawResponse) Marshal() (dAtA []byte, err error)
func (*MsgDrawResponse) MarshalToSizedBuffer ¶
func (m *MsgDrawResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDrawResponse) ProtoMessage ¶
func (*MsgDrawResponse) ProtoMessage()
func (*MsgDrawResponse) Reset ¶
func (m *MsgDrawResponse) Reset()
func (*MsgDrawResponse) Size ¶
func (m *MsgDrawResponse) Size() (n int)
func (*MsgDrawResponse) String ¶
func (m *MsgDrawResponse) String() string
func (*MsgDrawResponse) Unmarshal ¶
func (m *MsgDrawResponse) Unmarshal(dAtA []byte) error
func (*MsgDrawResponse) XXX_DiscardUnknown ¶
func (m *MsgDrawResponse) XXX_DiscardUnknown()
func (*MsgDrawResponse) XXX_Marshal ¶
func (m *MsgDrawResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDrawResponse) XXX_Merge ¶
func (m *MsgDrawResponse) XXX_Merge(src proto.Message)
func (*MsgDrawResponse) XXX_Size ¶
func (m *MsgDrawResponse) XXX_Size() int
func (*MsgDrawResponse) XXX_Unmarshal ¶
func (m *MsgDrawResponse) XXX_Unmarshal(b []byte) error
type MsgRepayRequest ¶
type MsgRepayRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` 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" yaml:"amount"` }
func NewMsgRepayRequest ¶
func NewMsgRepayRequest(from sdk.AccAddress, id uint64, amount sdk.Int) *MsgRepayRequest
func (*MsgRepayRequest) Descriptor ¶
func (*MsgRepayRequest) Descriptor() ([]byte, []int)
func (*MsgRepayRequest) GetSignBytes ¶
func (m *MsgRepayRequest) GetSignBytes() []byte
func (*MsgRepayRequest) GetSigners ¶
func (m *MsgRepayRequest) GetSigners() []sdk.AccAddress
func (*MsgRepayRequest) Marshal ¶
func (m *MsgRepayRequest) Marshal() (dAtA []byte, err error)
func (*MsgRepayRequest) MarshalToSizedBuffer ¶
func (m *MsgRepayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRepayRequest) ProtoMessage ¶
func (*MsgRepayRequest) ProtoMessage()
func (*MsgRepayRequest) Reset ¶
func (m *MsgRepayRequest) Reset()
func (*MsgRepayRequest) Route ¶
func (m *MsgRepayRequest) Route() string
func (*MsgRepayRequest) Size ¶
func (m *MsgRepayRequest) Size() (n int)
func (*MsgRepayRequest) String ¶
func (m *MsgRepayRequest) String() string
func (*MsgRepayRequest) Type ¶
func (m *MsgRepayRequest) Type() string
func (*MsgRepayRequest) Unmarshal ¶
func (m *MsgRepayRequest) Unmarshal(dAtA []byte) error
func (*MsgRepayRequest) ValidateBasic ¶
func (m *MsgRepayRequest) ValidateBasic() error
func (*MsgRepayRequest) XXX_DiscardUnknown ¶
func (m *MsgRepayRequest) XXX_DiscardUnknown()
func (*MsgRepayRequest) XXX_Marshal ¶
func (m *MsgRepayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRepayRequest) XXX_Merge ¶
func (m *MsgRepayRequest) XXX_Merge(src proto.Message)
func (*MsgRepayRequest) XXX_Size ¶
func (m *MsgRepayRequest) XXX_Size() int
func (*MsgRepayRequest) XXX_Unmarshal ¶
func (m *MsgRepayRequest) XXX_Unmarshal(b []byte) error
type MsgRepayResponse ¶
type MsgRepayResponse struct { }
func (*MsgRepayResponse) Descriptor ¶
func (*MsgRepayResponse) Descriptor() ([]byte, []int)
func (*MsgRepayResponse) Marshal ¶
func (m *MsgRepayResponse) Marshal() (dAtA []byte, err error)
func (*MsgRepayResponse) MarshalToSizedBuffer ¶
func (m *MsgRepayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRepayResponse) ProtoMessage ¶
func (*MsgRepayResponse) ProtoMessage()
func (*MsgRepayResponse) Reset ¶
func (m *MsgRepayResponse) Reset()
func (*MsgRepayResponse) Size ¶
func (m *MsgRepayResponse) Size() (n int)
func (*MsgRepayResponse) String ¶
func (m *MsgRepayResponse) String() string
func (*MsgRepayResponse) Unmarshal ¶
func (m *MsgRepayResponse) Unmarshal(dAtA []byte) error
func (*MsgRepayResponse) XXX_DiscardUnknown ¶
func (m *MsgRepayResponse) XXX_DiscardUnknown()
func (*MsgRepayResponse) XXX_Marshal ¶
func (m *MsgRepayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRepayResponse) XXX_Merge ¶
func (m *MsgRepayResponse) XXX_Merge(src proto.Message)
func (*MsgRepayResponse) XXX_Size ¶
func (m *MsgRepayResponse) XXX_Size() int
func (*MsgRepayResponse) XXX_Unmarshal ¶
func (m *MsgRepayResponse) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶
type MsgServiceClient interface { MsgCreate(ctx context.Context, in *MsgCreateRequest, opts ...grpc.CallOption) (*MsgCreateResponse, error) MsgDeposit(ctx context.Context, in *MsgDepositRequest, opts ...grpc.CallOption) (*MsgDepositResponse, error) MsgWithdraw(ctx context.Context, in *MsgWithdrawRequest, opts ...grpc.CallOption) (*MsgWithdrawResponse, error) MsgDraw(ctx context.Context, in *MsgDrawRequest, opts ...grpc.CallOption) (*MsgDrawResponse, error) MsgRepay(ctx context.Context, in *MsgRepayRequest, opts ...grpc.CallOption) (*MsgRepayResponse, error) MsgClose(ctx context.Context, in *MsgCloseRequest, opts ...grpc.CallOption) (*MsgCloseResponse, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶
type MsgServiceServer interface { MsgCreate(context.Context, *MsgCreateRequest) (*MsgCreateResponse, error) MsgDeposit(context.Context, *MsgDepositRequest) (*MsgDepositResponse, error) MsgWithdraw(context.Context, *MsgWithdrawRequest) (*MsgWithdrawResponse, error) MsgDraw(context.Context, *MsgDrawRequest) (*MsgDrawResponse, error) MsgRepay(context.Context, *MsgRepayRequest) (*MsgRepayResponse, error) MsgClose(context.Context, *MsgCloseRequest) (*MsgCloseResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgWithdrawRequest ¶
type MsgWithdrawRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` 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" yaml:"amount"` }
func NewMsgWithdrawRequest ¶
func NewMsgWithdrawRequest(from sdk.AccAddress, id uint64, amount sdk.Int) *MsgWithdrawRequest
func (*MsgWithdrawRequest) Descriptor ¶
func (*MsgWithdrawRequest) Descriptor() ([]byte, []int)
func (*MsgWithdrawRequest) GetSignBytes ¶
func (m *MsgWithdrawRequest) GetSignBytes() []byte
func (*MsgWithdrawRequest) GetSigners ¶
func (m *MsgWithdrawRequest) GetSigners() []sdk.AccAddress
func (*MsgWithdrawRequest) Marshal ¶
func (m *MsgWithdrawRequest) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawRequest) MarshalTo ¶
func (m *MsgWithdrawRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawRequest) MarshalToSizedBuffer ¶
func (m *MsgWithdrawRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawRequest) ProtoMessage ¶
func (*MsgWithdrawRequest) ProtoMessage()
func (*MsgWithdrawRequest) Reset ¶
func (m *MsgWithdrawRequest) Reset()
func (*MsgWithdrawRequest) Route ¶
func (m *MsgWithdrawRequest) Route() string
func (*MsgWithdrawRequest) Size ¶
func (m *MsgWithdrawRequest) Size() (n int)
func (*MsgWithdrawRequest) String ¶
func (m *MsgWithdrawRequest) String() string
func (*MsgWithdrawRequest) Type ¶
func (m *MsgWithdrawRequest) Type() string
func (*MsgWithdrawRequest) Unmarshal ¶
func (m *MsgWithdrawRequest) Unmarshal(dAtA []byte) error
func (*MsgWithdrawRequest) ValidateBasic ¶
func (m *MsgWithdrawRequest) ValidateBasic() error
func (*MsgWithdrawRequest) XXX_DiscardUnknown ¶
func (m *MsgWithdrawRequest) XXX_DiscardUnknown()
func (*MsgWithdrawRequest) XXX_Marshal ¶
func (m *MsgWithdrawRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawRequest) XXX_Merge ¶
func (m *MsgWithdrawRequest) XXX_Merge(src proto.Message)
func (*MsgWithdrawRequest) XXX_Size ¶
func (m *MsgWithdrawRequest) XXX_Size() int
func (*MsgWithdrawRequest) XXX_Unmarshal ¶
func (m *MsgWithdrawRequest) XXX_Unmarshal(b []byte) error
type MsgWithdrawResponse ¶
type MsgWithdrawResponse struct { }
func (*MsgWithdrawResponse) Descriptor ¶
func (*MsgWithdrawResponse) Descriptor() ([]byte, []int)
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 QueryAllVaultsRequest ¶ added in v0.0.3
type QueryAllVaultsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"`
}
func (*QueryAllVaultsRequest) Descriptor ¶ added in v0.0.3
func (*QueryAllVaultsRequest) Descriptor() ([]byte, []int)
func (*QueryAllVaultsRequest) Marshal ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllVaultsRequest) MarshalTo ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllVaultsRequest) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllVaultsRequest) ProtoMessage ¶ added in v0.0.3
func (*QueryAllVaultsRequest) ProtoMessage()
func (*QueryAllVaultsRequest) Reset ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) Reset()
func (*QueryAllVaultsRequest) Size ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) Size() (n int)
func (*QueryAllVaultsRequest) String ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) String() string
func (*QueryAllVaultsRequest) Unmarshal ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllVaultsRequest) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) XXX_DiscardUnknown()
func (*QueryAllVaultsRequest) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllVaultsRequest) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) XXX_Merge(src proto.Message)
func (*QueryAllVaultsRequest) XXX_Size ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) XXX_Size() int
func (*QueryAllVaultsRequest) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllVaultsRequest) XXX_Unmarshal(b []byte) error
type QueryAllVaultsResponse ¶ added in v0.0.3
type QueryAllVaultsResponse struct { VaultsInfo []VaultInfo `protobuf:"bytes,1,rep,name=vaultsInfo,proto3" json:"vaultsInfo" yaml:"vaultsInfo"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` }
func (*QueryAllVaultsResponse) Descriptor ¶ added in v0.0.3
func (*QueryAllVaultsResponse) Descriptor() ([]byte, []int)
func (*QueryAllVaultsResponse) Marshal ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllVaultsResponse) MarshalTo ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllVaultsResponse) MarshalToSizedBuffer ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllVaultsResponse) ProtoMessage ¶ added in v0.0.3
func (*QueryAllVaultsResponse) ProtoMessage()
func (*QueryAllVaultsResponse) Reset ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) Reset()
func (*QueryAllVaultsResponse) Size ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) Size() (n int)
func (*QueryAllVaultsResponse) String ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) String() string
func (*QueryAllVaultsResponse) Unmarshal ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllVaultsResponse) XXX_DiscardUnknown ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) XXX_DiscardUnknown()
func (*QueryAllVaultsResponse) XXX_Marshal ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllVaultsResponse) XXX_Merge ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) XXX_Merge(src proto.Message)
func (*QueryAllVaultsResponse) XXX_Size ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) XXX_Size() int
func (*QueryAllVaultsResponse) XXX_Unmarshal ¶ added in v0.0.3
func (m *QueryAllVaultsResponse) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶
type QueryServiceClient interface { QueryVault(ctx context.Context, in *QueryVaultRequest, opts ...grpc.CallOption) (*QueryVaultResponse, error) QueryVaults(ctx context.Context, in *QueryVaultsRequest, opts ...grpc.CallOption) (*QueryVaultsResponse, error) QueryAllVaults(ctx context.Context, in *QueryAllVaultsRequest, opts ...grpc.CallOption) (*QueryAllVaultsResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { QueryVault(context.Context, *QueryVaultRequest) (*QueryVaultResponse, error) QueryVaults(context.Context, *QueryVaultsRequest) (*QueryVaultsResponse, error) QueryAllVaults(context.Context, *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type QueryVaultRequest ¶
type QueryVaultRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
}
func (*QueryVaultRequest) Descriptor ¶
func (*QueryVaultRequest) Descriptor() ([]byte, []int)
func (*QueryVaultRequest) Marshal ¶
func (m *QueryVaultRequest) Marshal() (dAtA []byte, err error)
func (*QueryVaultRequest) MarshalTo ¶
func (m *QueryVaultRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVaultRequest) MarshalToSizedBuffer ¶
func (m *QueryVaultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVaultRequest) ProtoMessage ¶
func (*QueryVaultRequest) ProtoMessage()
func (*QueryVaultRequest) Reset ¶
func (m *QueryVaultRequest) Reset()
func (*QueryVaultRequest) Size ¶
func (m *QueryVaultRequest) Size() (n int)
func (*QueryVaultRequest) String ¶
func (m *QueryVaultRequest) String() string
func (*QueryVaultRequest) Unmarshal ¶
func (m *QueryVaultRequest) Unmarshal(dAtA []byte) error
func (*QueryVaultRequest) XXX_DiscardUnknown ¶
func (m *QueryVaultRequest) XXX_DiscardUnknown()
func (*QueryVaultRequest) XXX_Marshal ¶
func (m *QueryVaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVaultRequest) XXX_Merge ¶
func (m *QueryVaultRequest) XXX_Merge(src proto.Message)
func (*QueryVaultRequest) XXX_Size ¶
func (m *QueryVaultRequest) XXX_Size() int
func (*QueryVaultRequest) XXX_Unmarshal ¶
func (m *QueryVaultRequest) XXX_Unmarshal(b []byte) error
type QueryVaultResponse ¶
type QueryVaultResponse struct {
VaultInfo VaultInfo `protobuf:"bytes,1,opt,name=vaultInfo,proto3" json:"vaultInfo" yaml:"vaultInfo"`
}
func (*QueryVaultResponse) Descriptor ¶
func (*QueryVaultResponse) Descriptor() ([]byte, []int)
func (*QueryVaultResponse) Marshal ¶
func (m *QueryVaultResponse) Marshal() (dAtA []byte, err error)
func (*QueryVaultResponse) MarshalTo ¶
func (m *QueryVaultResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVaultResponse) MarshalToSizedBuffer ¶
func (m *QueryVaultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVaultResponse) ProtoMessage ¶
func (*QueryVaultResponse) ProtoMessage()
func (*QueryVaultResponse) Reset ¶
func (m *QueryVaultResponse) Reset()
func (*QueryVaultResponse) Size ¶
func (m *QueryVaultResponse) Size() (n int)
func (*QueryVaultResponse) String ¶
func (m *QueryVaultResponse) String() string
func (*QueryVaultResponse) Unmarshal ¶
func (m *QueryVaultResponse) Unmarshal(dAtA []byte) error
func (*QueryVaultResponse) XXX_DiscardUnknown ¶
func (m *QueryVaultResponse) XXX_DiscardUnknown()
func (*QueryVaultResponse) XXX_Marshal ¶
func (m *QueryVaultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVaultResponse) XXX_Merge ¶
func (m *QueryVaultResponse) XXX_Merge(src proto.Message)
func (*QueryVaultResponse) XXX_Size ¶
func (m *QueryVaultResponse) XXX_Size() int
func (*QueryVaultResponse) XXX_Unmarshal ¶
func (m *QueryVaultResponse) XXX_Unmarshal(b []byte) error
type QueryVaultsRequest ¶
type QueryVaultsRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` }
func (*QueryVaultsRequest) Descriptor ¶
func (*QueryVaultsRequest) Descriptor() ([]byte, []int)
func (*QueryVaultsRequest) Marshal ¶
func (m *QueryVaultsRequest) Marshal() (dAtA []byte, err error)
func (*QueryVaultsRequest) MarshalTo ¶
func (m *QueryVaultsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVaultsRequest) MarshalToSizedBuffer ¶
func (m *QueryVaultsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVaultsRequest) ProtoMessage ¶
func (*QueryVaultsRequest) ProtoMessage()
func (*QueryVaultsRequest) Reset ¶
func (m *QueryVaultsRequest) Reset()
func (*QueryVaultsRequest) Size ¶
func (m *QueryVaultsRequest) Size() (n int)
func (*QueryVaultsRequest) String ¶
func (m *QueryVaultsRequest) String() string
func (*QueryVaultsRequest) Unmarshal ¶
func (m *QueryVaultsRequest) Unmarshal(dAtA []byte) error
func (*QueryVaultsRequest) XXX_DiscardUnknown ¶
func (m *QueryVaultsRequest) XXX_DiscardUnknown()
func (*QueryVaultsRequest) XXX_Marshal ¶
func (m *QueryVaultsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVaultsRequest) XXX_Merge ¶
func (m *QueryVaultsRequest) XXX_Merge(src proto.Message)
func (*QueryVaultsRequest) XXX_Size ¶
func (m *QueryVaultsRequest) XXX_Size() int
func (*QueryVaultsRequest) XXX_Unmarshal ¶
func (m *QueryVaultsRequest) XXX_Unmarshal(b []byte) error
type QueryVaultsResponse ¶
type QueryVaultsResponse struct { VaultsInfo []VaultInfo `protobuf:"bytes,1,rep,name=vaultsInfo,proto3" json:"vaultsInfo" yaml:"vaultsInfo"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"` }
func (*QueryVaultsResponse) Descriptor ¶
func (*QueryVaultsResponse) Descriptor() ([]byte, []int)
func (*QueryVaultsResponse) Marshal ¶
func (m *QueryVaultsResponse) Marshal() (dAtA []byte, err error)
func (*QueryVaultsResponse) MarshalTo ¶
func (m *QueryVaultsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVaultsResponse) MarshalToSizedBuffer ¶
func (m *QueryVaultsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVaultsResponse) ProtoMessage ¶
func (*QueryVaultsResponse) ProtoMessage()
func (*QueryVaultsResponse) Reset ¶
func (m *QueryVaultsResponse) Reset()
func (*QueryVaultsResponse) Size ¶
func (m *QueryVaultsResponse) Size() (n int)
func (*QueryVaultsResponse) String ¶
func (m *QueryVaultsResponse) String() string
func (*QueryVaultsResponse) Unmarshal ¶
func (m *QueryVaultsResponse) Unmarshal(dAtA []byte) error
func (*QueryVaultsResponse) XXX_DiscardUnknown ¶
func (m *QueryVaultsResponse) XXX_DiscardUnknown()
func (*QueryVaultsResponse) XXX_Marshal ¶
func (m *QueryVaultsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVaultsResponse) XXX_Merge ¶
func (m *QueryVaultsResponse) XXX_Merge(src proto.Message)
func (*QueryVaultsResponse) XXX_Size ¶
func (m *QueryVaultsResponse) XXX_Size() int
func (*QueryVaultsResponse) XXX_Unmarshal ¶
func (m *QueryVaultsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServiceServer ¶
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgClose ¶
func (*UnimplementedMsgServiceServer) MsgClose(ctx context.Context, req *MsgCloseRequest) (*MsgCloseResponse, error)
func (*UnimplementedMsgServiceServer) MsgCreate ¶
func (*UnimplementedMsgServiceServer) MsgCreate(ctx context.Context, req *MsgCreateRequest) (*MsgCreateResponse, error)
func (*UnimplementedMsgServiceServer) MsgDeposit ¶
func (*UnimplementedMsgServiceServer) MsgDeposit(ctx context.Context, req *MsgDepositRequest) (*MsgDepositResponse, error)
func (*UnimplementedMsgServiceServer) MsgDraw ¶
func (*UnimplementedMsgServiceServer) MsgDraw(ctx context.Context, req *MsgDrawRequest) (*MsgDrawResponse, error)
func (*UnimplementedMsgServiceServer) MsgRepay ¶
func (*UnimplementedMsgServiceServer) MsgRepay(ctx context.Context, req *MsgRepayRequest) (*MsgRepayResponse, error)
func (*UnimplementedMsgServiceServer) MsgWithdraw ¶
func (*UnimplementedMsgServiceServer) MsgWithdraw(ctx context.Context, req *MsgWithdrawRequest) (*MsgWithdrawResponse, error)
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryAllVaults ¶ added in v0.0.3
func (*UnimplementedQueryServiceServer) QueryAllVaults(ctx context.Context, req *QueryAllVaultsRequest) (*QueryAllVaultsResponse, error)
func (*UnimplementedQueryServiceServer) QueryVault ¶
func (*UnimplementedQueryServiceServer) QueryVault(ctx context.Context, req *QueryVaultRequest) (*QueryVaultResponse, error)
func (*UnimplementedQueryServiceServer) QueryVaults ¶
func (*UnimplementedQueryServiceServer) QueryVaults(ctx context.Context, req *QueryVaultsRequest) (*QueryVaultsResponse, error)
type Vault ¶
type Vault struct { ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` PairID uint64 `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty" yaml:"pair_id"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */ AmountOut github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ }
func (*Vault) Descriptor ¶
func (*Vault) ProtoMessage ¶
func (*Vault) ProtoMessage()
func (*Vault) XXX_DiscardUnknown ¶
func (m *Vault) XXX_DiscardUnknown()
func (*Vault) XXX_Marshal ¶
func (*Vault) XXX_Unmarshal ¶
type VaultInfo ¶
type VaultInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PairID uint64 `protobuf:"varint,2,opt,name=pair_id,json=pairId,proto3" json:"pair_id,omitempty" yaml:"pair_id"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` Collateral types.Coin `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral" yaml:"collateral"` Debt types.Coin `protobuf:"bytes,5,opt,name=debt,proto3" json:"debt" yaml:"debt"` CollateralizationRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 198-byte string literal not displayed */ }
func (*VaultInfo) Descriptor ¶
func (*VaultInfo) MarshalToSizedBuffer ¶
func (*VaultInfo) ProtoMessage ¶
func (*VaultInfo) ProtoMessage()
func (*VaultInfo) XXX_DiscardUnknown ¶
func (m *VaultInfo) XXX_DiscardUnknown()