types

package
v0.13.3-margin.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Position_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "LONG",
	2: "SHORT",
}
View Source
var Position_value = map[string]int32{
	"UNSPECIFIED": 0,
	"LONG":        1,
	"SHORT":       2,
}

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type GenesisState

type GenesisState struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *Params

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

type MTP struct {
	Address          string                                  `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	CollateralAsset  string                                  `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"`
	CollateralAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 150-byte string literal not displayed */
	LiabilitiesP     github_com_cosmos_cosmos_sdk_types.Uint `` /* 138-byte string literal not displayed */
	LiabilitiesI     github_com_cosmos_cosmos_sdk_types.Uint `` /* 138-byte string literal not displayed */
	CustodyAsset     string                                  `protobuf:"bytes,6,opt,name=custody_asset,json=custodyAsset,proto3" json:"custody_asset,omitempty"`
	CustodyAmount    github_com_cosmos_cosmos_sdk_types.Uint `` /* 141-byte string literal not displayed */
	Leverage         github_com_cosmos_cosmos_sdk_types.Dec  `protobuf:"bytes,8,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
	MtpHealth        github_com_cosmos_cosmos_sdk_types.Dec  `` /* 128-byte string literal not displayed */
	Position         Position                                `protobuf:"varint,10,opt,name=position,proto3,enum=sifnode.margin.v1.Position" json:"position,omitempty"`
	Id               uint64                                  `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MTP) Descriptor

func (*MTP) Descriptor() ([]byte, []int)

func (*MTP) GetAddress

func (m *MTP) GetAddress() string

func (*MTP) GetCollateralAsset

func (m *MTP) GetCollateralAsset() string

func (*MTP) GetCustodyAsset

func (m *MTP) GetCustodyAsset() string

func (*MTP) GetId

func (m *MTP) GetId() uint64

func (*MTP) GetPosition

func (m *MTP) GetPosition() Position

func (*MTP) Marshal

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

func (*MTP) MarshalTo

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

func (*MTP) MarshalToSizedBuffer

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

func (*MTP) ProtoMessage

func (*MTP) ProtoMessage()

func (*MTP) Reset

func (m *MTP) Reset()

func (*MTP) Size

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

func (*MTP) String

func (m *MTP) String() string

func (*MTP) Unmarshal

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

func (*MTP) XXX_DiscardUnknown

func (m *MTP) XXX_DiscardUnknown()

func (*MTP) XXX_Marshal

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

func (*MTP) XXX_Merge

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

func (*MTP) XXX_Size

func (m *MTP) XXX_Size() int

func (*MTP) XXX_Unmarshal

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

type MTPRequest

type MTPRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Id      uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MTPRequest) Descriptor

func (*MTPRequest) Descriptor() ([]byte, []int)

func (*MTPRequest) GetAddress

func (m *MTPRequest) GetAddress() string

func (*MTPRequest) GetId

func (m *MTPRequest) GetId() uint64

func (*MTPRequest) Marshal

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

func (*MTPRequest) MarshalTo

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

func (*MTPRequest) MarshalToSizedBuffer

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

func (*MTPRequest) ProtoMessage

func (*MTPRequest) ProtoMessage()

func (*MTPRequest) Reset

func (m *MTPRequest) Reset()

func (*MTPRequest) Size

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

func (*MTPRequest) String

func (m *MTPRequest) String() string

func (*MTPRequest) Unmarshal

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

func (*MTPRequest) XXX_DiscardUnknown

func (m *MTPRequest) XXX_DiscardUnknown()

func (*MTPRequest) XXX_Marshal

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

func (*MTPRequest) XXX_Merge

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

func (*MTPRequest) XXX_Size

func (m *MTPRequest) XXX_Size() int

func (*MTPRequest) XXX_Unmarshal

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

type MTPResponse

type MTPResponse struct {
	Mtp *MTP `protobuf:"bytes,1,opt,name=mtp,proto3" json:"mtp,omitempty"`
}

func (*MTPResponse) Descriptor

func (*MTPResponse) Descriptor() ([]byte, []int)

func (*MTPResponse) GetMtp

func (m *MTPResponse) GetMtp() *MTP

func (*MTPResponse) Marshal

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

func (*MTPResponse) MarshalTo

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

func (*MTPResponse) MarshalToSizedBuffer

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

func (*MTPResponse) ProtoMessage

func (*MTPResponse) ProtoMessage()

func (*MTPResponse) Reset

func (m *MTPResponse) Reset()

func (*MTPResponse) Size

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

func (*MTPResponse) String

func (m *MTPResponse) String() string

func (*MTPResponse) Unmarshal

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

func (*MTPResponse) XXX_DiscardUnknown

func (m *MTPResponse) XXX_DiscardUnknown()

func (*MTPResponse) XXX_Marshal

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

func (*MTPResponse) XXX_Merge

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

func (*MTPResponse) XXX_Size

func (m *MTPResponse) XXX_Size() int

func (*MTPResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	Open(ctx context.Context, in *MsgOpen, opts ...grpc.CallOption) (*MsgOpenResponse, error)
	Close(ctx context.Context, in *MsgClose, opts ...grpc.CallOption) (*MsgCloseResponse, error)
	ForceClose(ctx context.Context, in *MsgForceClose, opts ...grpc.CallOption) (*MsgForceCloseResponse, error)
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	UpdatePools(ctx context.Context, in *MsgUpdatePools, opts ...grpc.CallOption) (*MsgUpdatePoolsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgClose

type MsgClose struct {
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	Id     uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgClose) Descriptor

func (*MsgClose) Descriptor() ([]byte, []int)

func (*MsgClose) GetId

func (m *MsgClose) GetId() uint64

func (*MsgClose) GetSigner

func (m *MsgClose) GetSigner() string

func (*MsgClose) Marshal

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

func (*MsgClose) MarshalTo

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

func (*MsgClose) MarshalToSizedBuffer

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

func (*MsgClose) ProtoMessage

func (*MsgClose) ProtoMessage()

func (*MsgClose) Reset

func (m *MsgClose) Reset()

func (*MsgClose) Size

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

func (*MsgClose) String

func (m *MsgClose) String() string

func (*MsgClose) Unmarshal

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

func (*MsgClose) XXX_DiscardUnknown

func (m *MsgClose) XXX_DiscardUnknown()

func (*MsgClose) XXX_Marshal

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

func (*MsgClose) XXX_Merge

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

func (*MsgClose) XXX_Size

func (m *MsgClose) XXX_Size() int

func (*MsgClose) XXX_Unmarshal

func (m *MsgClose) 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 MsgForceClose

type MsgForceClose struct {
	Signer     string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	MtpAddress string `protobuf:"bytes,2,opt,name=mtp_address,json=mtpAddress,proto3" json:"mtp_address,omitempty"`
	Id         uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgForceClose) Descriptor

func (*MsgForceClose) Descriptor() ([]byte, []int)

func (*MsgForceClose) GetId

func (m *MsgForceClose) GetId() uint64

func (*MsgForceClose) GetMtpAddress

func (m *MsgForceClose) GetMtpAddress() string

func (*MsgForceClose) GetSigner

func (m *MsgForceClose) GetSigner() string

func (*MsgForceClose) Marshal

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

func (*MsgForceClose) MarshalTo

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

func (*MsgForceClose) MarshalToSizedBuffer

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

func (*MsgForceClose) ProtoMessage

func (*MsgForceClose) ProtoMessage()

func (*MsgForceClose) Reset

func (m *MsgForceClose) Reset()

func (*MsgForceClose) Size

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

func (*MsgForceClose) String

func (m *MsgForceClose) String() string

func (*MsgForceClose) Unmarshal

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

func (*MsgForceClose) XXX_DiscardUnknown

func (m *MsgForceClose) XXX_DiscardUnknown()

func (*MsgForceClose) XXX_Marshal

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

func (*MsgForceClose) XXX_Merge

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

func (*MsgForceClose) XXX_Size

func (m *MsgForceClose) XXX_Size() int

func (*MsgForceClose) XXX_Unmarshal

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

type MsgForceCloseResponse

type MsgForceCloseResponse struct {
}

func (*MsgForceCloseResponse) Descriptor

func (*MsgForceCloseResponse) Descriptor() ([]byte, []int)

func (*MsgForceCloseResponse) Marshal

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

func (*MsgForceCloseResponse) MarshalTo

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

func (*MsgForceCloseResponse) MarshalToSizedBuffer

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

func (*MsgForceCloseResponse) ProtoMessage

func (*MsgForceCloseResponse) ProtoMessage()

func (*MsgForceCloseResponse) Reset

func (m *MsgForceCloseResponse) Reset()

func (*MsgForceCloseResponse) Size

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

func (*MsgForceCloseResponse) String

func (m *MsgForceCloseResponse) String() string

func (*MsgForceCloseResponse) Unmarshal

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

func (*MsgForceCloseResponse) XXX_DiscardUnknown

func (m *MsgForceCloseResponse) XXX_DiscardUnknown()

func (*MsgForceCloseResponse) XXX_Marshal

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

func (*MsgForceCloseResponse) XXX_Merge

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

func (*MsgForceCloseResponse) XXX_Size

func (m *MsgForceCloseResponse) XXX_Size() int

func (*MsgForceCloseResponse) XXX_Unmarshal

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

type MsgOpen

type MsgOpen struct {
	Signer           string                                  `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	CollateralAsset  string                                  `protobuf:"bytes,2,opt,name=collateral_asset,json=collateralAsset,proto3" json:"collateral_asset,omitempty"`
	CollateralAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 150-byte string literal not displayed */
	BorrowAsset      string                                  `protobuf:"bytes,4,opt,name=borrow_asset,json=borrowAsset,proto3" json:"borrow_asset,omitempty"`
	Position         Position                                `protobuf:"varint,5,opt,name=position,proto3,enum=sifnode.margin.v1.Position" json:"position,omitempty"`
	Leverage         github_com_cosmos_cosmos_sdk_types.Dec  `protobuf:"bytes,6,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
}

func (*MsgOpen) Descriptor

func (*MsgOpen) Descriptor() ([]byte, []int)

func (*MsgOpen) GetBorrowAsset

func (m *MsgOpen) GetBorrowAsset() string

func (*MsgOpen) GetCollateralAsset

func (m *MsgOpen) GetCollateralAsset() string

func (*MsgOpen) GetPosition

func (m *MsgOpen) GetPosition() Position

func (*MsgOpen) GetSigner

func (m *MsgOpen) GetSigner() string

func (*MsgOpen) Marshal

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

func (*MsgOpen) MarshalTo

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

func (*MsgOpen) MarshalToSizedBuffer

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

func (*MsgOpen) ProtoMessage

func (*MsgOpen) ProtoMessage()

func (*MsgOpen) Reset

func (m *MsgOpen) Reset()

func (*MsgOpen) Size

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

func (*MsgOpen) String

func (m *MsgOpen) String() string

func (*MsgOpen) Unmarshal

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

func (*MsgOpen) XXX_DiscardUnknown

func (m *MsgOpen) XXX_DiscardUnknown()

func (*MsgOpen) XXX_Marshal

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

func (*MsgOpen) XXX_Merge

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

func (*MsgOpen) XXX_Size

func (m *MsgOpen) XXX_Size() int

func (*MsgOpen) XXX_Unmarshal

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

type MsgOpenResponse

type MsgOpenResponse struct {
}

func (*MsgOpenResponse) Descriptor

func (*MsgOpenResponse) Descriptor() ([]byte, []int)

func (*MsgOpenResponse) Marshal

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

func (*MsgOpenResponse) MarshalTo

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

func (*MsgOpenResponse) MarshalToSizedBuffer

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

func (*MsgOpenResponse) ProtoMessage

func (*MsgOpenResponse) ProtoMessage()

func (*MsgOpenResponse) Reset

func (m *MsgOpenResponse) Reset()

func (*MsgOpenResponse) Size

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

func (*MsgOpenResponse) String

func (m *MsgOpenResponse) String() string

func (*MsgOpenResponse) Unmarshal

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

func (*MsgOpenResponse) XXX_DiscardUnknown

func (m *MsgOpenResponse) XXX_DiscardUnknown()

func (*MsgOpenResponse) XXX_Marshal

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

func (*MsgOpenResponse) XXX_Merge

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

func (*MsgOpenResponse) XXX_Size

func (m *MsgOpenResponse) XXX_Size() int

func (*MsgOpenResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	Signer string  `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
}

func (*MsgUpdateParams) Descriptor

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) GetSigner

func (m *MsgUpdateParams) GetSigner() string

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgUpdatePools

type MsgUpdatePools struct {
	Signer string   `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	Pools  []string `protobuf:"bytes,2,rep,name=pools,proto3" json:"pools,omitempty"`
}

func (*MsgUpdatePools) Descriptor

func (*MsgUpdatePools) Descriptor() ([]byte, []int)

func (*MsgUpdatePools) GetPools

func (m *MsgUpdatePools) GetPools() []string

func (*MsgUpdatePools) GetSigner

func (m *MsgUpdatePools) GetSigner() string

func (*MsgUpdatePools) Marshal

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

func (*MsgUpdatePools) MarshalTo

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

func (*MsgUpdatePools) MarshalToSizedBuffer

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

func (*MsgUpdatePools) ProtoMessage

func (*MsgUpdatePools) ProtoMessage()

func (*MsgUpdatePools) Reset

func (m *MsgUpdatePools) Reset()

func (*MsgUpdatePools) Size

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

func (*MsgUpdatePools) String

func (m *MsgUpdatePools) String() string

func (*MsgUpdatePools) Unmarshal

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

func (*MsgUpdatePools) XXX_DiscardUnknown

func (m *MsgUpdatePools) XXX_DiscardUnknown()

func (*MsgUpdatePools) XXX_Marshal

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

func (*MsgUpdatePools) XXX_Merge

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

func (*MsgUpdatePools) XXX_Size

func (m *MsgUpdatePools) XXX_Size() int

func (*MsgUpdatePools) XXX_Unmarshal

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

type MsgUpdatePoolsResponse

type MsgUpdatePoolsResponse struct {
}

func (*MsgUpdatePoolsResponse) Descriptor

func (*MsgUpdatePoolsResponse) Descriptor() ([]byte, []int)

func (*MsgUpdatePoolsResponse) Marshal

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

func (*MsgUpdatePoolsResponse) MarshalTo

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

func (*MsgUpdatePoolsResponse) MarshalToSizedBuffer

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

func (*MsgUpdatePoolsResponse) ProtoMessage

func (*MsgUpdatePoolsResponse) ProtoMessage()

func (*MsgUpdatePoolsResponse) Reset

func (m *MsgUpdatePoolsResponse) Reset()

func (*MsgUpdatePoolsResponse) Size

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

func (*MsgUpdatePoolsResponse) String

func (m *MsgUpdatePoolsResponse) String() string

func (*MsgUpdatePoolsResponse) Unmarshal

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

func (*MsgUpdatePoolsResponse) XXX_DiscardUnknown

func (m *MsgUpdatePoolsResponse) XXX_DiscardUnknown()

func (*MsgUpdatePoolsResponse) XXX_Marshal

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

func (*MsgUpdatePoolsResponse) XXX_Merge

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

func (*MsgUpdatePoolsResponse) XXX_Size

func (m *MsgUpdatePoolsResponse) XXX_Size() int

func (*MsgUpdatePoolsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	LeverageMax           github_com_cosmos_cosmos_sdk_types.Dec `` /* 134-byte string literal not displayed */
	InterestRateMax       github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */
	InterestRateMin       github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */
	InterestRateIncrease  github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
	InterestRateDecrease  github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
	HealthGainFactor      github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-byte string literal not displayed */
	EpochLength           int64                                  `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"`
	Pools                 []string                               `protobuf:"bytes,8,rep,name=pools,proto3" json:"pools,omitempty"`
	ForceCloseThreshold   github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */
	RemovalQueueThreshold github_com_cosmos_cosmos_sdk_types.Dec `` /* 167-byte string literal not displayed */
}

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetEpochLength

func (m *Params) GetEpochLength() int64

func (*Params) GetPools

func (m *Params) GetPools() []string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type ParamsRequest

type ParamsRequest struct {
}

func (*ParamsRequest) Descriptor

func (*ParamsRequest) Descriptor() ([]byte, []int)

func (*ParamsRequest) Marshal

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

func (*ParamsRequest) MarshalTo

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

func (*ParamsRequest) MarshalToSizedBuffer

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

func (*ParamsRequest) ProtoMessage

func (*ParamsRequest) ProtoMessage()

func (*ParamsRequest) Reset

func (m *ParamsRequest) Reset()

func (*ParamsRequest) Size

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

func (*ParamsRequest) String

func (m *ParamsRequest) String() string

func (*ParamsRequest) Unmarshal

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

func (*ParamsRequest) XXX_DiscardUnknown

func (m *ParamsRequest) XXX_DiscardUnknown()

func (*ParamsRequest) XXX_Marshal

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

func (*ParamsRequest) XXX_Merge

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

func (*ParamsRequest) XXX_Size

func (m *ParamsRequest) XXX_Size() int

func (*ParamsRequest) XXX_Unmarshal

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

type ParamsResponse

type ParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*ParamsResponse) Descriptor

func (*ParamsResponse) Descriptor() ([]byte, []int)

func (*ParamsResponse) GetParams

func (m *ParamsResponse) GetParams() *Params

func (*ParamsResponse) Marshal

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

func (*ParamsResponse) MarshalTo

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

func (*ParamsResponse) MarshalToSizedBuffer

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

func (*ParamsResponse) ProtoMessage

func (*ParamsResponse) ProtoMessage()

func (*ParamsResponse) Reset

func (m *ParamsResponse) Reset()

func (*ParamsResponse) Size

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

func (*ParamsResponse) String

func (m *ParamsResponse) String() string

func (*ParamsResponse) Unmarshal

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

func (*ParamsResponse) XXX_DiscardUnknown

func (m *ParamsResponse) XXX_DiscardUnknown()

func (*ParamsResponse) XXX_Marshal

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

func (*ParamsResponse) XXX_Merge

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

func (*ParamsResponse) XXX_Size

func (m *ParamsResponse) XXX_Size() int

func (*ParamsResponse) XXX_Unmarshal

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

type Position

type Position int32
const (
	Position_UNSPECIFIED Position = 0
	Position_LONG        Position = 1
	Position_SHORT       Position = 2
)

func (Position) EnumDescriptor

func (Position) EnumDescriptor() ([]byte, []int)

func (Position) String

func (x Position) String() string

type PositionsForAddressRequest

type PositionsForAddressRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*PositionsForAddressRequest) Descriptor

func (*PositionsForAddressRequest) Descriptor() ([]byte, []int)

func (*PositionsForAddressRequest) GetAddress

func (m *PositionsForAddressRequest) GetAddress() string

func (*PositionsForAddressRequest) Marshal

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

func (*PositionsForAddressRequest) MarshalTo

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

func (*PositionsForAddressRequest) MarshalToSizedBuffer

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

func (*PositionsForAddressRequest) ProtoMessage

func (*PositionsForAddressRequest) ProtoMessage()

func (*PositionsForAddressRequest) Reset

func (m *PositionsForAddressRequest) Reset()

func (*PositionsForAddressRequest) Size

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

func (*PositionsForAddressRequest) String

func (m *PositionsForAddressRequest) String() string

func (*PositionsForAddressRequest) Unmarshal

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

func (*PositionsForAddressRequest) XXX_DiscardUnknown

func (m *PositionsForAddressRequest) XXX_DiscardUnknown()

func (*PositionsForAddressRequest) XXX_Marshal

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

func (*PositionsForAddressRequest) XXX_Merge

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

func (*PositionsForAddressRequest) XXX_Size

func (m *PositionsForAddressRequest) XXX_Size() int

func (*PositionsForAddressRequest) XXX_Unmarshal

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

type PositionsForAddressResponse

type PositionsForAddressResponse struct {
	Mtps []*MTP `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"`
}

func (*PositionsForAddressResponse) Descriptor

func (*PositionsForAddressResponse) Descriptor() ([]byte, []int)

func (*PositionsForAddressResponse) GetMtps

func (m *PositionsForAddressResponse) GetMtps() []*MTP

func (*PositionsForAddressResponse) Marshal

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

func (*PositionsForAddressResponse) MarshalTo

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

func (*PositionsForAddressResponse) MarshalToSizedBuffer

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

func (*PositionsForAddressResponse) ProtoMessage

func (*PositionsForAddressResponse) ProtoMessage()

func (*PositionsForAddressResponse) Reset

func (m *PositionsForAddressResponse) Reset()

func (*PositionsForAddressResponse) Size

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

func (*PositionsForAddressResponse) String

func (m *PositionsForAddressResponse) String() string

func (*PositionsForAddressResponse) Unmarshal

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

func (*PositionsForAddressResponse) XXX_DiscardUnknown

func (m *PositionsForAddressResponse) XXX_DiscardUnknown()

func (*PositionsForAddressResponse) XXX_Marshal

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

func (*PositionsForAddressResponse) XXX_Merge

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

func (*PositionsForAddressResponse) XXX_Size

func (m *PositionsForAddressResponse) XXX_Size() int

func (*PositionsForAddressResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	GetMTP(ctx context.Context, in *MTPRequest, opts ...grpc.CallOption) (*MTPResponse, error)
	GetPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error)
	GetParams(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryServer

type QueryServer interface {
	GetMTP(context.Context, *MTPRequest) (*MTPResponse, error)
	GetPositionsForAddress(context.Context, *PositionsForAddressRequest) (*PositionsForAddressResponse, error)
	GetParams(context.Context, *ParamsRequest) (*ParamsResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Close

func (*UnimplementedMsgServer) ForceClose

func (*UnimplementedMsgServer) Open

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdatePools

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetMTP

func (*UnimplementedQueryServer) GetParams

func (*UnimplementedQueryServer) GetPositionsForAddress

Jump to

Keyboard shortcuts

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