types

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName   = "vault"
	QuerierRoute = ModuleName
	RouterKey    = ModuleName
	StoreKey     = ModuleName
)

Variables

View Source
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")
)
View Source
var (
	ErrorAssetDoesNotExist             = errors.Register(ModuleName, 201, "asset does not exist")
	ErrorVaultDoesNotExist             = errors.Register(ModuleName, 202, "vault does not exist")
	ErrorUnauthorized                  = errors.Register(ModuleName, 203, "unauthorized")
	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")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	TypeMsgCreateRequest    = ModuleName + ":create"
	TypeMsgDepositRequest   = ModuleName + ":deposit"
	TypeMsgWithdrawRequest  = ModuleName + ":withdraw"
	TypeMsgDrawRequest      = ModuleName + ":draw"
	TypeMsgRepayRequest     = ModuleName + ":repay"
	TypeMsgLiquidateRequest = ModuleName + ":liquidate"
)
View Source
var (
	IDKey                          = []byte{0x00}
	VaultKeyPrefix                 = []byte{0x10}
	VaultForAddressByPairKeyPrefix = []byte{0x20}
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVault        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVault          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVault = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrorUnknownMsgType = errors.Register(ModuleName, 301, "unknown message type")
)

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

func VaultKey

func VaultKey(id 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) MarshalTo

func (m *EventCloseVault) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventCreateVault) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventDrawDebt) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventRepayDebt) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgCloseRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgCloseResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgDrawRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgDrawResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgRepayRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgRepayResponse) MarshalTo(dAtA []byte) (int, 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

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

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) MsgCreate

func (*UnimplementedMsgServiceServer) MsgDeposit

func (*UnimplementedMsgServiceServer) MsgDraw

func (*UnimplementedMsgServiceServer) MsgRepay

func (*UnimplementedMsgServiceServer) MsgWithdraw

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryAllVaults added in v0.0.3

func (*UnimplementedQueryServiceServer) QueryVault

func (*UnimplementedQueryServiceServer) QueryVaults

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) Descriptor() ([]byte, []int)

func (*Vault) Marshal

func (m *Vault) Marshal() (dAtA []byte, err error)

func (*Vault) MarshalTo

func (m *Vault) MarshalTo(dAtA []byte) (int, error)

func (*Vault) MarshalToSizedBuffer

func (m *Vault) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Vault) ProtoMessage

func (*Vault) ProtoMessage()

func (*Vault) Reset

func (m *Vault) Reset()

func (*Vault) Size

func (m *Vault) Size() (n int)

func (*Vault) String

func (m *Vault) String() string

func (*Vault) Unmarshal

func (m *Vault) Unmarshal(dAtA []byte) error

func (*Vault) Validate

func (m *Vault) Validate() error

func (*Vault) XXX_DiscardUnknown

func (m *Vault) XXX_DiscardUnknown()

func (*Vault) XXX_Marshal

func (m *Vault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vault) XXX_Merge

func (m *Vault) XXX_Merge(src proto.Message)

func (*Vault) XXX_Size

func (m *Vault) XXX_Size() int

func (*Vault) XXX_Unmarshal

func (m *Vault) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*VaultInfo) Marshal

func (m *VaultInfo) Marshal() (dAtA []byte, err error)

func (*VaultInfo) MarshalTo

func (m *VaultInfo) MarshalTo(dAtA []byte) (int, error)

func (*VaultInfo) MarshalToSizedBuffer

func (m *VaultInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VaultInfo) ProtoMessage

func (*VaultInfo) ProtoMessage()

func (*VaultInfo) Reset

func (m *VaultInfo) Reset()

func (*VaultInfo) Size

func (m *VaultInfo) Size() (n int)

func (*VaultInfo) String

func (m *VaultInfo) String() string

func (*VaultInfo) Unmarshal

func (m *VaultInfo) Unmarshal(dAtA []byte) error

func (*VaultInfo) XXX_DiscardUnknown

func (m *VaultInfo) XXX_DiscardUnknown()

func (*VaultInfo) XXX_Marshal

func (m *VaultInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VaultInfo) XXX_Merge

func (m *VaultInfo) XXX_Merge(src proto.Message)

func (*VaultInfo) XXX_Size

func (m *VaultInfo) XXX_Size() int

func (*VaultInfo) XXX_Unmarshal

func (m *VaultInfo) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL