types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	QueryMTP            = "mtp"
	QueryMTPsForAddress = "mtps-for-address"
	QueryParams         = "params"
)
View Source
const (
	ModuleName = "margin"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the querier route
	QuerierRoute = ModuleName

	// RouterKey is the msg router key
	RouterKey = ModuleName
)
View Source
const AttributeKeyMarginParams = "margin_params"
View Source
const AttributeKeyPoolInterestRate = "margin_pool_interest_rate"
View Source
const EventAboveRemovalThreshold = "margin/above_removal_threshold"
View Source
const EventAdminClose = "margin/mtp_admin_close"
View Source
const EventAdminCloseAll = "margin/mtp_admin_close_all"
View Source
const EventBelowRemovalThreshold = "margin/below_removal_threshold"
View Source
const EventClose = "margin/mtp_close"
View Source
const EventForceClose = "margin/mtp_force_close"
View Source
const EventIncrementalPayFund = "margin/incremental_pay_fund"
View Source
const EventInterestRateComputation = "margin/interest_rate_computation"
View Source
const EventMarginUpdateParams = "margin/update_params"
View Source
const EventOpen = "margin/mtp_open"
View Source
const EventRepayFund = "margin/repay_fund"

Variables

View Source
var (
	ErrMTPDoesNotExist            = sdkerrors.Register(ModuleName, 1, "mtp not found")
	ErrMTPInvalid                 = sdkerrors.Register(ModuleName, 2, "mtp invalid")
	ErrMTPDisabled                = sdkerrors.Register(ModuleName, 3, "margin not enabled for pool")
	ErrUnknownRequest             = sdkerrors.Register(ModuleName, 4, "unknown request")
	ErrMTPHealthy                 = sdkerrors.Register(ModuleName, 5, "mtp health above force close threshold")
	ErrInvalidPosition            = sdkerrors.Register(ModuleName, 6, "mtp position invalid")
	ErrMaxOpenPositions           = sdkerrors.Register(ModuleName, 7, "max open positions reached")
	ErrUnauthorised               = sdkerrors.Register(ModuleName, 8, "address not on whitelist")
	ErrBorrowTooLow               = sdkerrors.Register(ModuleName, 9, "borrowed amount is too low")
	ErrBorrowTooHigh              = sdkerrors.Register(ModuleName, 10, "borrowed amount is higher than pool depth")
	ErrCustodyTooHigh             = sdkerrors.Register(ModuleName, 11, "custody amount is higher than pool depth")
	ErrMTPUnhealthy               = sdkerrors.Register(ModuleName, 12, "mtp health would be too low for safety factor")
	ErrFuryAsCollateralNotAllowed = sdkerrors.Register(ModuleName, 13, "using fury as collateral asset is not allowed")
)
View Source
var (
	MTPPrefix          = []byte{0x01}
	MTPCountPrefix     = []byte{0x02}
	ParamsPrefix       = []byte{0x03}
	OpenMTPCountPrefix = []byte{0x04}
	WhitelistPrefix    = []byte{0x05}
	SQBeginBlockPrefix = []byte{0x06}
)
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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)
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 GetMTPKey

func GetMTPKey(address string, id uint64) []byte

func GetMTPPrefixForAddress

func GetMTPPrefixForAddress(address string) []byte

func GetSQBeginBlockKey

func GetSQBeginBlockKey(pool *clptypes.Pool) []byte

func GetSettlementAsset

func GetSettlementAsset() string

func GetUint64Bytes

func GetUint64Bytes(ID uint64) []byte

GetUint64Bytes returns the byte representation of the ID

func GetUint64FromBytes

func GetUint64FromBytes(bz []byte) uint64

GetUint64FromBytes returns ID in uint64 format from a byte array

func GetWhitelistKey

func GetWhitelistKey(address string) []byte

func IsValidPosition

func IsValidPosition(position Position) bool

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the Amino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func StringCompare

func StringCompare(a, b string) bool

func Validate

func Validate(asset string) bool

Types

type BankKeeper

type BankKeeper interface {
	//SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

type CLPKeeper

type CLPKeeper interface {
	GetPools(ctx sdk.Context) []*clptypes.Pool
	GetPool(ctx sdk.Context, symbol string) (clptypes.Pool, error)
	SetPool(ctx sdk.Context, pool *clptypes.Pool) error

	CLPCalcSwap(ctx sdk.Context, sentAmount sdk.Uint, to clptypes.Asset, pool clptypes.Pool, marginEnabled bool) (sdk.Uint, error)

	GetPmtpRateParams(ctx sdk.Context) clptypes.PmtpRateParams

	GetRemovalQueue(ctx sdk.Context, symbol string) clptypes.RemovalQueue

	SingleExternalBalanceModuleAccountCheck(externalAsset string) sdk.Invariant
}

type GenesisState

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

func DefaultGenesis

func DefaultGenesis() *GenesisState

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 GetSQParamsRequest

type GetSQParamsRequest struct {
	Pool string `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
}

func (*GetSQParamsRequest) Descriptor

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

func (*GetSQParamsRequest) GetPool

func (m *GetSQParamsRequest) GetPool() string

func (*GetSQParamsRequest) Marshal

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

func (*GetSQParamsRequest) MarshalTo

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

func (*GetSQParamsRequest) MarshalToSizedBuffer

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

func (*GetSQParamsRequest) ProtoMessage

func (*GetSQParamsRequest) ProtoMessage()

func (*GetSQParamsRequest) Reset

func (m *GetSQParamsRequest) Reset()

func (*GetSQParamsRequest) Size

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

func (*GetSQParamsRequest) String

func (m *GetSQParamsRequest) String() string

func (*GetSQParamsRequest) Unmarshal

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

func (*GetSQParamsRequest) XXX_DiscardUnknown

func (m *GetSQParamsRequest) XXX_DiscardUnknown()

func (*GetSQParamsRequest) XXX_Marshal

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

func (*GetSQParamsRequest) XXX_Merge

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

func (*GetSQParamsRequest) XXX_Size

func (m *GetSQParamsRequest) XXX_Size() int

func (*GetSQParamsRequest) XXX_Unmarshal

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

type GetSQParamsResponse

type GetSQParamsResponse struct {
	BeginBlock int64 `protobuf:"varint,1,opt,name=begin_block,json=beginBlock,proto3" json:"begin_block,omitempty"`
}

func (*GetSQParamsResponse) Descriptor

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

func (*GetSQParamsResponse) GetBeginBlock

func (m *GetSQParamsResponse) GetBeginBlock() int64

func (*GetSQParamsResponse) Marshal

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

func (*GetSQParamsResponse) MarshalTo

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

func (*GetSQParamsResponse) MarshalToSizedBuffer

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

func (*GetSQParamsResponse) ProtoMessage

func (*GetSQParamsResponse) ProtoMessage()

func (*GetSQParamsResponse) Reset

func (m *GetSQParamsResponse) Reset()

func (*GetSQParamsResponse) Size

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

func (*GetSQParamsResponse) String

func (m *GetSQParamsResponse) String() string

func (*GetSQParamsResponse) Unmarshal

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

func (*GetSQParamsResponse) XXX_DiscardUnknown

func (m *GetSQParamsResponse) XXX_DiscardUnknown()

func (*GetSQParamsResponse) XXX_Marshal

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

func (*GetSQParamsResponse) XXX_Merge

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

func (*GetSQParamsResponse) XXX_Size

func (m *GetSQParamsResponse) XXX_Size() int

func (*GetSQParamsResponse) XXX_Unmarshal

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

type IsWhitelistedRequest

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

func (*IsWhitelistedRequest) Descriptor

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

func (*IsWhitelistedRequest) GetAddress

func (m *IsWhitelistedRequest) GetAddress() string

func (*IsWhitelistedRequest) Marshal

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

func (*IsWhitelistedRequest) MarshalTo

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

func (*IsWhitelistedRequest) MarshalToSizedBuffer

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

func (*IsWhitelistedRequest) ProtoMessage

func (*IsWhitelistedRequest) ProtoMessage()

func (*IsWhitelistedRequest) Reset

func (m *IsWhitelistedRequest) Reset()

func (*IsWhitelistedRequest) Size

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

func (*IsWhitelistedRequest) String

func (m *IsWhitelistedRequest) String() string

func (*IsWhitelistedRequest) Unmarshal

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

func (*IsWhitelistedRequest) XXX_DiscardUnknown

func (m *IsWhitelistedRequest) XXX_DiscardUnknown()

func (*IsWhitelistedRequest) XXX_Marshal

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

func (*IsWhitelistedRequest) XXX_Merge

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

func (*IsWhitelistedRequest) XXX_Size

func (m *IsWhitelistedRequest) XXX_Size() int

func (*IsWhitelistedRequest) XXX_Unmarshal

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

type IsWhitelistedResponse

type IsWhitelistedResponse struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	IsWhitelisted bool   `protobuf:"varint,2,opt,name=is_whitelisted,json=isWhitelisted,proto3" json:"is_whitelisted,omitempty"`
}

func (*IsWhitelistedResponse) Descriptor

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

func (*IsWhitelistedResponse) GetAddress

func (m *IsWhitelistedResponse) GetAddress() string

func (*IsWhitelistedResponse) GetIsWhitelisted

func (m *IsWhitelistedResponse) GetIsWhitelisted() bool

func (*IsWhitelistedResponse) Marshal

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

func (*IsWhitelistedResponse) MarshalTo

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

func (*IsWhitelistedResponse) MarshalToSizedBuffer

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

func (*IsWhitelistedResponse) ProtoMessage

func (*IsWhitelistedResponse) ProtoMessage()

func (*IsWhitelistedResponse) Reset

func (m *IsWhitelistedResponse) Reset()

func (*IsWhitelistedResponse) Size

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

func (*IsWhitelistedResponse) String

func (m *IsWhitelistedResponse) String() string

func (*IsWhitelistedResponse) Unmarshal

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

func (*IsWhitelistedResponse) XXX_DiscardUnknown

func (m *IsWhitelistedResponse) XXX_DiscardUnknown()

func (*IsWhitelistedResponse) XXX_Marshal

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

func (*IsWhitelistedResponse) XXX_Merge

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

func (*IsWhitelistedResponse) XXX_Size

func (m *IsWhitelistedResponse) XXX_Size() int

func (*IsWhitelistedResponse) XXX_Unmarshal

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

type Keeper

type Keeper interface {
	InitGenesis(ctx sdk.Context, data GenesisState) []types.ValidatorUpdate
	ExportGenesis(sdk.Context) *GenesisState
	BeginBlocker(sdk.Context)

	ClpKeeper() CLPKeeper
	BankKeeper() BankKeeper
	AdminKeeper() adminkeeper.Keeper

	GetParams(sdk.Context) Params
	SetParams(sdk.Context, *Params)

	GetMTPCount(ctx sdk.Context) uint64
	GetOpenMTPCount(ctx sdk.Context) uint64
	SetMTP(ctx sdk.Context, mtp *MTP) error
	GetMTP(ctx sdk.Context, mtpAddress string, id uint64) (MTP, error)
	GetMTPIterator(ctx sdk.Context) sdk.Iterator
	GetMTPs(ctx sdk.Context, pagination *query.PageRequest) ([]*MTP, *query.PageResponse, error)
	GetMTPsForPool(ctx sdk.Context, asset string, pagination *query.PageRequest) ([]*MTP, *query.PageResponse, error)
	GetMTPsForAddress(ctx sdk.Context, mtpAddress sdk.Address, pagination *query.PageRequest) ([]*MTP, *query.PageResponse, error)
	DestroyMTP(ctx sdk.Context, mtpAddress string, id uint64) error

	IsWhitelisted(ctx sdk.Context, address string) bool
	WhitelistAddress(ctx sdk.Context, address string)
	DewhitelistAddress(ctx sdk.Context, address string)
	GetWhitelist(ctx sdk.Context, pagination *query.PageRequest) ([]string, *query.PageResponse, error)

	GetMaxLeverageParam(sdk.Context) sdk.Dec
	GetInterestRateMax(sdk.Context) sdk.Dec
	GetInterestRateMin(ctx sdk.Context) sdk.Dec
	GetInterestRateIncrease(ctx sdk.Context) sdk.Dec
	GetInterestRateDecrease(ctx sdk.Context) sdk.Dec
	GetHealthGainFactor(ctx sdk.Context) sdk.Dec
	GetEpochLength(ctx sdk.Context) int64
	GetPoolOpenThreshold(ctx sdk.Context) sdk.Dec
	GetRemovalQueueThreshold(ctx sdk.Context) sdk.Dec
	GetMaxOpenPositions(ctx sdk.Context) uint64
	GetEnabledPools(ctx sdk.Context) []string
	SetEnabledPools(ctx sdk.Context, pools []string)
	IsPoolEnabled(ctx sdk.Context, asset string) bool
	IsPoolClosed(ctx sdk.Context, asset string) bool
	IsWhitelistingEnabled(ctx sdk.Context) bool
	IsFuryCollateralEnabled(ctx sdk.Context) bool

	CLPSwap(ctx sdk.Context, sentAmount sdk.Uint, to string, pool clptypes.Pool) (sdk.Uint, error)
	Borrow(ctx sdk.Context, collateralAsset string, collateralAmount sdk.Uint, custodyAmount sdk.Uint, mtp *MTP, pool *clptypes.Pool, eta sdk.Dec) error
	TakeInCustody(ctx sdk.Context, mtp MTP, pool *clptypes.Pool) error
	TakeOutCustody(ctx sdk.Context, mtp MTP, pool *clptypes.Pool) error
	Repay(ctx sdk.Context, mtp *MTP, pool *clptypes.Pool, repayAmount sdk.Uint, takeFundPayment bool) error
	InterestRateComputation(ctx sdk.Context, pool clptypes.Pool) (sdk.Dec, error)
	CheckMinLiabilities(ctx sdk.Context, collateralAmount sdk.Uint, eta sdk.Dec, pool clptypes.Pool, custodyAsset string) error
	HandleInterestPayment(ctx sdk.Context, interestPayment sdk.Uint, mtp *MTP, pool *clptypes.Pool) sdk.Uint

	CalculatePoolHealth(pool *clptypes.Pool) sdk.Dec

	UpdatePoolHealth(ctx sdk.Context, pool *clptypes.Pool) error
	UpdateMTPHealth(ctx sdk.Context, mtp MTP, pool clptypes.Pool) (sdk.Dec, error)

	TrackSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool)
	GetSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool) uint64
	SetSQBeginBlock(ctx sdk.Context, pool *clptypes.Pool, height uint64)

	ForceCloseLong(ctx sdk.Context, mtp *MTP, pool *clptypes.Pool, isAdminClose bool, takeFundPayment bool) (sdk.Uint, error)

	EmitAdminClose(ctx sdk.Context, mtp *MTP, repayAmount sdk.Uint, closer string)
	EmitAdminCloseAll(ctx sdk.Context, takeMarginFund bool)

	GetSQFromQueue(ctx sdk.Context, pool clptypes.Pool) sdk.Dec
	GetSafetyFactor(ctx sdk.Context) sdk.Dec
}

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 */
	Liabilities              github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,4,opt,name=liabilities,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"liabilities"`
	InterestPaidCollateral   github_com_cosmos_cosmos_sdk_types.Uint `` /* 170-byte string literal not displayed */
	InterestPaidCustody      github_com_cosmos_cosmos_sdk_types.Uint `` /* 161-byte string literal not displayed */
	InterestUnpaidCollateral github_com_cosmos_cosmos_sdk_types.Uint `` /* 176-byte string literal not displayed */
	CustodyAsset             string                                  `protobuf:"bytes,8,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,10,opt,name=leverage,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"leverage"`
	MtpHealth                github_com_cosmos_cosmos_sdk_types.Dec  `` /* 129-byte string literal not displayed */
	Position                 Position                                `protobuf:"varint,12,opt,name=position,proto3,enum=gridnode.margin.v1.Position" json:"position,omitempty"`
	Id                       uint64                                  `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMTP

func NewMTP(signer string, collateralAsset string, borrowAsset string, position Position, leverage sdk.Dec) *MTP

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

func (mtp MTP) Validate() 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 MsgAdminClose

type MsgAdminClose 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"`
	TakeMarginFund bool   `protobuf:"varint,4,opt,name=take_margin_fund,json=takeMarginFund,proto3" json:"take_margin_fund,omitempty"`
}

func (*MsgAdminClose) Descriptor

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

func (*MsgAdminClose) GetId

func (m *MsgAdminClose) GetId() uint64

func (*MsgAdminClose) GetMtpAddress

func (m *MsgAdminClose) GetMtpAddress() string

func (MsgAdminClose) GetSignBytes

func (m MsgAdminClose) GetSignBytes() []byte

func (*MsgAdminClose) GetSigner

func (m *MsgAdminClose) GetSigner() string

func (MsgAdminClose) GetSigners

func (m MsgAdminClose) GetSigners() []sdk.AccAddress

func (*MsgAdminClose) GetTakeMarginFund

func (m *MsgAdminClose) GetTakeMarginFund() bool

func (*MsgAdminClose) Marshal

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

func (*MsgAdminClose) MarshalTo

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

func (*MsgAdminClose) MarshalToSizedBuffer

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

func (*MsgAdminClose) ProtoMessage

func (*MsgAdminClose) ProtoMessage()

func (*MsgAdminClose) Reset

func (m *MsgAdminClose) Reset()

func (MsgAdminClose) Route

func (m MsgAdminClose) Route() string

func (*MsgAdminClose) Size

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

func (*MsgAdminClose) String

func (m *MsgAdminClose) String() string

func (MsgAdminClose) Type

func (m MsgAdminClose) Type() string

func (*MsgAdminClose) Unmarshal

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

func (MsgAdminClose) ValidateBasic

func (m MsgAdminClose) ValidateBasic() error

func (*MsgAdminClose) XXX_DiscardUnknown

func (m *MsgAdminClose) XXX_DiscardUnknown()

func (*MsgAdminClose) XXX_Marshal

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

func (*MsgAdminClose) XXX_Merge

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

func (*MsgAdminClose) XXX_Size

func (m *MsgAdminClose) XXX_Size() int

func (*MsgAdminClose) XXX_Unmarshal

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

type MsgAdminCloseAll

type MsgAdminCloseAll struct {
	Signer         string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	TakeMarginFund bool   `protobuf:"varint,2,opt,name=take_margin_fund,json=takeMarginFund,proto3" json:"take_margin_fund,omitempty"`
}

func (*MsgAdminCloseAll) Descriptor

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

func (MsgAdminCloseAll) GetSignBytes

func (m MsgAdminCloseAll) GetSignBytes() []byte

func (*MsgAdminCloseAll) GetSigner

func (m *MsgAdminCloseAll) GetSigner() string

func (MsgAdminCloseAll) GetSigners

func (m MsgAdminCloseAll) GetSigners() []sdk.AccAddress

func (*MsgAdminCloseAll) GetTakeMarginFund

func (m *MsgAdminCloseAll) GetTakeMarginFund() bool

func (*MsgAdminCloseAll) Marshal

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

func (*MsgAdminCloseAll) MarshalTo

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

func (*MsgAdminCloseAll) MarshalToSizedBuffer

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

func (*MsgAdminCloseAll) ProtoMessage

func (*MsgAdminCloseAll) ProtoMessage()

func (*MsgAdminCloseAll) Reset

func (m *MsgAdminCloseAll) Reset()

func (MsgAdminCloseAll) Route

func (m MsgAdminCloseAll) Route() string

func (*MsgAdminCloseAll) Size

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

func (*MsgAdminCloseAll) String

func (m *MsgAdminCloseAll) String() string

func (MsgAdminCloseAll) Type

func (m MsgAdminCloseAll) Type() string

func (*MsgAdminCloseAll) Unmarshal

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

func (MsgAdminCloseAll) ValidateBasic

func (m MsgAdminCloseAll) ValidateBasic() error

func (*MsgAdminCloseAll) XXX_DiscardUnknown

func (m *MsgAdminCloseAll) XXX_DiscardUnknown()

func (*MsgAdminCloseAll) XXX_Marshal

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

func (*MsgAdminCloseAll) XXX_Merge

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

func (*MsgAdminCloseAll) XXX_Size

func (m *MsgAdminCloseAll) XXX_Size() int

func (*MsgAdminCloseAll) XXX_Unmarshal

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

type MsgAdminCloseAllResponse

type MsgAdminCloseAllResponse struct {
}

func (*MsgAdminCloseAllResponse) Descriptor

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

func (*MsgAdminCloseAllResponse) Marshal

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

func (*MsgAdminCloseAllResponse) MarshalTo

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

func (*MsgAdminCloseAllResponse) MarshalToSizedBuffer

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

func (*MsgAdminCloseAllResponse) ProtoMessage

func (*MsgAdminCloseAllResponse) ProtoMessage()

func (*MsgAdminCloseAllResponse) Reset

func (m *MsgAdminCloseAllResponse) Reset()

func (*MsgAdminCloseAllResponse) Size

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

func (*MsgAdminCloseAllResponse) String

func (m *MsgAdminCloseAllResponse) String() string

func (*MsgAdminCloseAllResponse) Unmarshal

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

func (*MsgAdminCloseAllResponse) XXX_DiscardUnknown

func (m *MsgAdminCloseAllResponse) XXX_DiscardUnknown()

func (*MsgAdminCloseAllResponse) XXX_Marshal

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

func (*MsgAdminCloseAllResponse) XXX_Merge

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

func (*MsgAdminCloseAllResponse) XXX_Size

func (m *MsgAdminCloseAllResponse) XXX_Size() int

func (*MsgAdminCloseAllResponse) XXX_Unmarshal

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

type MsgAdminCloseResponse

type MsgAdminCloseResponse struct {
}

func (*MsgAdminCloseResponse) Descriptor

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

func (*MsgAdminCloseResponse) Marshal

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

func (*MsgAdminCloseResponse) MarshalTo

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

func (*MsgAdminCloseResponse) MarshalToSizedBuffer

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

func (*MsgAdminCloseResponse) ProtoMessage

func (*MsgAdminCloseResponse) ProtoMessage()

func (*MsgAdminCloseResponse) Reset

func (m *MsgAdminCloseResponse) Reset()

func (*MsgAdminCloseResponse) Size

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

func (*MsgAdminCloseResponse) String

func (m *MsgAdminCloseResponse) String() string

func (*MsgAdminCloseResponse) Unmarshal

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

func (*MsgAdminCloseResponse) XXX_DiscardUnknown

func (m *MsgAdminCloseResponse) XXX_DiscardUnknown()

func (*MsgAdminCloseResponse) XXX_Marshal

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

func (*MsgAdminCloseResponse) XXX_Merge

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

func (*MsgAdminCloseResponse) XXX_Size

func (m *MsgAdminCloseResponse) XXX_Size() int

func (*MsgAdminCloseResponse) XXX_Unmarshal

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

type MsgClient

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

func (m MsgClose) GetSignBytes() []byte

func (*MsgClose) GetSigner

func (m *MsgClose) GetSigner() string

func (MsgClose) GetSigners

func (m MsgClose) GetSigners() []sdk.AccAddress

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

func (m MsgClose) Route() string

func (*MsgClose) Size

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

func (*MsgClose) String

func (m *MsgClose) String() string

func (MsgClose) Type

func (m MsgClose) Type() string

func (*MsgClose) Unmarshal

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

func (MsgClose) ValidateBasic

func (m MsgClose) ValidateBasic() 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 MsgDewhitelist

type MsgDewhitelist struct {
	Signer             string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"`
}

func (*MsgDewhitelist) Descriptor

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

func (MsgDewhitelist) GetSignBytes

func (m MsgDewhitelist) GetSignBytes() []byte

func (*MsgDewhitelist) GetSigner

func (m *MsgDewhitelist) GetSigner() string

func (MsgDewhitelist) GetSigners

func (m MsgDewhitelist) GetSigners() []sdk.AccAddress

func (*MsgDewhitelist) GetWhitelistedAddress

func (m *MsgDewhitelist) GetWhitelistedAddress() string

func (*MsgDewhitelist) Marshal

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

func (*MsgDewhitelist) MarshalTo

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

func (*MsgDewhitelist) MarshalToSizedBuffer

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

func (*MsgDewhitelist) ProtoMessage

func (*MsgDewhitelist) ProtoMessage()

func (*MsgDewhitelist) Reset

func (m *MsgDewhitelist) Reset()

func (MsgDewhitelist) Route

func (m MsgDewhitelist) Route() string

func (*MsgDewhitelist) Size

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

func (*MsgDewhitelist) String

func (m *MsgDewhitelist) String() string

func (MsgDewhitelist) Type

func (m MsgDewhitelist) Type() string

func (*MsgDewhitelist) Unmarshal

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

func (MsgDewhitelist) ValidateBasic

func (m MsgDewhitelist) ValidateBasic() error

func (*MsgDewhitelist) XXX_DiscardUnknown

func (m *MsgDewhitelist) XXX_DiscardUnknown()

func (*MsgDewhitelist) XXX_Marshal

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

func (*MsgDewhitelist) XXX_Merge

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

func (*MsgDewhitelist) XXX_Size

func (m *MsgDewhitelist) XXX_Size() int

func (*MsgDewhitelist) XXX_Unmarshal

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

type MsgDewhitelistResponse

type MsgDewhitelistResponse struct {
}

func (*MsgDewhitelistResponse) Descriptor

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

func (*MsgDewhitelistResponse) Marshal

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

func (*MsgDewhitelistResponse) MarshalTo

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

func (*MsgDewhitelistResponse) MarshalToSizedBuffer

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

func (*MsgDewhitelistResponse) ProtoMessage

func (*MsgDewhitelistResponse) ProtoMessage()

func (*MsgDewhitelistResponse) Reset

func (m *MsgDewhitelistResponse) Reset()

func (*MsgDewhitelistResponse) Size

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

func (*MsgDewhitelistResponse) String

func (m *MsgDewhitelistResponse) String() string

func (*MsgDewhitelistResponse) Unmarshal

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

func (*MsgDewhitelistResponse) XXX_DiscardUnknown

func (m *MsgDewhitelistResponse) XXX_DiscardUnknown()

func (*MsgDewhitelistResponse) XXX_Marshal

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

func (*MsgDewhitelistResponse) XXX_Merge

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

func (*MsgDewhitelistResponse) XXX_Size

func (m *MsgDewhitelistResponse) XXX_Size() int

func (*MsgDewhitelistResponse) XXX_Unmarshal

func (m *MsgDewhitelistResponse) 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) GetSignBytes

func (m MsgForceClose) GetSignBytes() []byte

func (*MsgForceClose) GetSigner

func (m *MsgForceClose) GetSigner() string

func (MsgForceClose) GetSigners

func (m MsgForceClose) GetSigners() []sdk.AccAddress

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

func (m MsgForceClose) Route() string

func (*MsgForceClose) Size

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

func (*MsgForceClose) String

func (m *MsgForceClose) String() string

func (MsgForceClose) Type

func (m MsgForceClose) Type() string

func (*MsgForceClose) Unmarshal

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

func (MsgForceClose) ValidateBasic

func (m MsgForceClose) ValidateBasic() 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=gridnode.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) GetSignBytes

func (m MsgOpen) GetSignBytes() []byte

func (*MsgOpen) GetSigner

func (m *MsgOpen) GetSigner() string

func (MsgOpen) GetSigners

func (m MsgOpen) GetSigners() []sdk.AccAddress

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

func (m MsgOpen) Route() string

func (*MsgOpen) Size

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

func (*MsgOpen) String

func (m *MsgOpen) String() string

func (MsgOpen) Type

func (m MsgOpen) Type() string

func (*MsgOpen) Unmarshal

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

func (MsgOpen) ValidateBasic

func (m MsgOpen) ValidateBasic() 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 MsgUpdateFuryCollateral

type MsgUpdateFuryCollateral struct {
	Signer                string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	FuryCollateralEnabled bool   `` /* 127-byte string literal not displayed */
}

func (*MsgUpdateFuryCollateral) Descriptor

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

func (*MsgUpdateFuryCollateral) GetFuryCollateralEnabled

func (m *MsgUpdateFuryCollateral) GetFuryCollateralEnabled() bool

func (MsgUpdateFuryCollateral) GetSignBytes

func (m MsgUpdateFuryCollateral) GetSignBytes() []byte

func (*MsgUpdateFuryCollateral) GetSigner

func (m *MsgUpdateFuryCollateral) GetSigner() string

func (MsgUpdateFuryCollateral) GetSigners

func (m MsgUpdateFuryCollateral) GetSigners() []sdk.AccAddress

func (*MsgUpdateFuryCollateral) Marshal

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

func (*MsgUpdateFuryCollateral) MarshalTo

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

func (*MsgUpdateFuryCollateral) MarshalToSizedBuffer

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

func (*MsgUpdateFuryCollateral) ProtoMessage

func (*MsgUpdateFuryCollateral) ProtoMessage()

func (*MsgUpdateFuryCollateral) Reset

func (m *MsgUpdateFuryCollateral) Reset()

func (MsgUpdateFuryCollateral) Route

func (m MsgUpdateFuryCollateral) Route() string

func (*MsgUpdateFuryCollateral) Size

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

func (*MsgUpdateFuryCollateral) String

func (m *MsgUpdateFuryCollateral) String() string

func (MsgUpdateFuryCollateral) Type

func (*MsgUpdateFuryCollateral) Unmarshal

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

func (MsgUpdateFuryCollateral) ValidateBasic

func (m MsgUpdateFuryCollateral) ValidateBasic() error

func (*MsgUpdateFuryCollateral) XXX_DiscardUnknown

func (m *MsgUpdateFuryCollateral) XXX_DiscardUnknown()

func (*MsgUpdateFuryCollateral) XXX_Marshal

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

func (*MsgUpdateFuryCollateral) XXX_Merge

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

func (*MsgUpdateFuryCollateral) XXX_Size

func (m *MsgUpdateFuryCollateral) XXX_Size() int

func (*MsgUpdateFuryCollateral) XXX_Unmarshal

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

type MsgUpdateFuryCollateralResponse

type MsgUpdateFuryCollateralResponse struct {
}

func (*MsgUpdateFuryCollateralResponse) Descriptor

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

func (*MsgUpdateFuryCollateralResponse) Marshal

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

func (*MsgUpdateFuryCollateralResponse) MarshalTo

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

func (*MsgUpdateFuryCollateralResponse) MarshalToSizedBuffer

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

func (*MsgUpdateFuryCollateralResponse) ProtoMessage

func (*MsgUpdateFuryCollateralResponse) ProtoMessage()

func (*MsgUpdateFuryCollateralResponse) Reset

func (*MsgUpdateFuryCollateralResponse) Size

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

func (*MsgUpdateFuryCollateralResponse) String

func (*MsgUpdateFuryCollateralResponse) Unmarshal

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

func (*MsgUpdateFuryCollateralResponse) XXX_DiscardUnknown

func (m *MsgUpdateFuryCollateralResponse) XXX_DiscardUnknown()

func (*MsgUpdateFuryCollateralResponse) XXX_Marshal

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

func (*MsgUpdateFuryCollateralResponse) XXX_Merge

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

func (*MsgUpdateFuryCollateralResponse) XXX_Size

func (m *MsgUpdateFuryCollateralResponse) XXX_Size() int

func (*MsgUpdateFuryCollateralResponse) XXX_Unmarshal

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

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

func (m MsgUpdateParams) GetSignBytes() []byte

func (*MsgUpdateParams) GetSigner

func (m *MsgUpdateParams) GetSigner() string

func (MsgUpdateParams) GetSigners

func (m MsgUpdateParams) GetSigners() []sdk.AccAddress

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

func (m MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (MsgUpdateParams) Type

func (m MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal

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

func (MsgUpdateParams) ValidateBasic

func (m MsgUpdateParams) ValidateBasic() 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"`
	ClosedPools []string `protobuf:"bytes,3,rep,name=closed_pools,json=closedPools,proto3" json:"closed_pools,omitempty"`
}

func (*MsgUpdatePools) Descriptor

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

func (*MsgUpdatePools) GetClosedPools

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

func (*MsgUpdatePools) GetPools

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

func (MsgUpdatePools) GetSignBytes

func (m MsgUpdatePools) GetSignBytes() []byte

func (*MsgUpdatePools) GetSigner

func (m *MsgUpdatePools) GetSigner() string

func (MsgUpdatePools) GetSigners

func (m MsgUpdatePools) GetSigners() []sdk.AccAddress

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

func (m MsgUpdatePools) Route() string

func (*MsgUpdatePools) Size

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

func (*MsgUpdatePools) String

func (m *MsgUpdatePools) String() string

func (MsgUpdatePools) Type

func (m MsgUpdatePools) Type() string

func (*MsgUpdatePools) Unmarshal

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

func (MsgUpdatePools) ValidateBasic

func (m MsgUpdatePools) ValidateBasic() 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 MsgWhitelist

type MsgWhitelist struct {
	Signer             string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	WhitelistedAddress string `protobuf:"bytes,2,opt,name=whitelisted_address,json=whitelistedAddress,proto3" json:"whitelisted_address,omitempty"`
}

func (*MsgWhitelist) Descriptor

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

func (MsgWhitelist) GetSignBytes

func (m MsgWhitelist) GetSignBytes() []byte

func (*MsgWhitelist) GetSigner

func (m *MsgWhitelist) GetSigner() string

func (MsgWhitelist) GetSigners

func (m MsgWhitelist) GetSigners() []sdk.AccAddress

func (*MsgWhitelist) GetWhitelistedAddress

func (m *MsgWhitelist) GetWhitelistedAddress() string

func (*MsgWhitelist) Marshal

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

func (*MsgWhitelist) MarshalTo

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

func (*MsgWhitelist) MarshalToSizedBuffer

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

func (*MsgWhitelist) ProtoMessage

func (*MsgWhitelist) ProtoMessage()

func (*MsgWhitelist) Reset

func (m *MsgWhitelist) Reset()

func (MsgWhitelist) Route

func (m MsgWhitelist) Route() string

func (*MsgWhitelist) Size

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

func (*MsgWhitelist) String

func (m *MsgWhitelist) String() string

func (MsgWhitelist) Type

func (m MsgWhitelist) Type() string

func (*MsgWhitelist) Unmarshal

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

func (MsgWhitelist) ValidateBasic

func (m MsgWhitelist) ValidateBasic() error

func (*MsgWhitelist) XXX_DiscardUnknown

func (m *MsgWhitelist) XXX_DiscardUnknown()

func (*MsgWhitelist) XXX_Marshal

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

func (*MsgWhitelist) XXX_Merge

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

func (*MsgWhitelist) XXX_Size

func (m *MsgWhitelist) XXX_Size() int

func (*MsgWhitelist) XXX_Unmarshal

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

type MsgWhitelistResponse

type MsgWhitelistResponse struct {
}

func (*MsgWhitelistResponse) Descriptor

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

func (*MsgWhitelistResponse) Marshal

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

func (*MsgWhitelistResponse) MarshalTo

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

func (*MsgWhitelistResponse) MarshalToSizedBuffer

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

func (*MsgWhitelistResponse) ProtoMessage

func (*MsgWhitelistResponse) ProtoMessage()

func (*MsgWhitelistResponse) Reset

func (m *MsgWhitelistResponse) Reset()

func (*MsgWhitelistResponse) Size

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

func (*MsgWhitelistResponse) String

func (m *MsgWhitelistResponse) String() string

func (*MsgWhitelistResponse) Unmarshal

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

func (*MsgWhitelistResponse) XXX_DiscardUnknown

func (m *MsgWhitelistResponse) XXX_DiscardUnknown()

func (*MsgWhitelistResponse) XXX_Marshal

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

func (*MsgWhitelistResponse) XXX_Merge

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

func (*MsgWhitelistResponse) XXX_Size

func (m *MsgWhitelistResponse) XXX_Size() int

func (*MsgWhitelistResponse) XXX_Unmarshal

func (m *MsgWhitelistResponse) 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"`
	RemovalQueueThreshold                    github_com_cosmos_cosmos_sdk_types.Dec `` /* 167-byte string literal not displayed */
	MaxOpenPositions                         uint64                                 `protobuf:"varint,11,opt,name=max_open_positions,json=maxOpenPositions,proto3" json:"max_open_positions,omitempty"`
	PoolOpenThreshold                        github_com_cosmos_cosmos_sdk_types.Dec `` /* 155-byte string literal not displayed */
	ForceCloseFundPercentage                 github_com_cosmos_cosmos_sdk_types.Dec `` /* 178-byte string literal not displayed */
	ForceCloseFundAddress                    string                                 `` /* 129-byte string literal not displayed */
	IncrementalInterestPaymentFundPercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 228-byte string literal not displayed */
	IncrementalInterestPaymentFundAddress    string                                 `` /* 179-byte string literal not displayed */
	SqModifier                               github_com_cosmos_cosmos_sdk_types.Dec `` /* 132-byte string literal not displayed */
	SafetyFactor                             github_com_cosmos_cosmos_sdk_types.Dec `` /* 138-byte string literal not displayed */
	ClosedPools                              []string                               `protobuf:"bytes,19,rep,name=closed_pools,json=closedPools,proto3" json:"closed_pools,omitempty"`
	IncrementalInterestPaymentEnabled        bool                                   `` /* 166-byte string literal not displayed */
	WhitelistingEnabled                      bool                                   `protobuf:"varint,21,opt,name=whitelisting_enabled,json=whitelistingEnabled,proto3" json:"whitelisting_enabled,omitempty"`
	FuryCollateralEnabled                    bool                                   `` /* 128-byte string literal not displayed */
}

func (*Params) Descriptor

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

func (*Params) GetClosedPools

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

func (*Params) GetEpochLength

func (m *Params) GetEpochLength() int64

func (*Params) GetForceCloseFundAddress

func (m *Params) GetForceCloseFundAddress() string

func (*Params) GetFuryCollateralEnabled

func (m *Params) GetFuryCollateralEnabled() bool

func (*Params) GetIncrementalInterestPaymentEnabled

func (m *Params) GetIncrementalInterestPaymentEnabled() bool

func (*Params) GetIncrementalInterestPaymentFundAddress

func (m *Params) GetIncrementalInterestPaymentFundAddress() string

func (*Params) GetMaxOpenPositions

func (m *Params) GetMaxOpenPositions() uint64

func (*Params) GetPools

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

func (*Params) GetWhitelistingEnabled

func (m *Params) GetWhitelistingEnabled() bool

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

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

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 GetPositionFromString

func GetPositionFromString(s string) Position

func (Position) EnumDescriptor

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

func (Position) String

func (x Position) String() string

type PositionsByPoolRequest

type PositionsByPoolRequest struct {
	Asset      string             `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsByPoolRequest) Descriptor

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

func (*PositionsByPoolRequest) GetAsset

func (m *PositionsByPoolRequest) GetAsset() string

func (*PositionsByPoolRequest) GetPagination

func (m *PositionsByPoolRequest) GetPagination() *query.PageRequest

func (*PositionsByPoolRequest) Marshal

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

func (*PositionsByPoolRequest) MarshalTo

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

func (*PositionsByPoolRequest) MarshalToSizedBuffer

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

func (*PositionsByPoolRequest) ProtoMessage

func (*PositionsByPoolRequest) ProtoMessage()

func (*PositionsByPoolRequest) Reset

func (m *PositionsByPoolRequest) Reset()

func (*PositionsByPoolRequest) Size

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

func (*PositionsByPoolRequest) String

func (m *PositionsByPoolRequest) String() string

func (*PositionsByPoolRequest) Unmarshal

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

func (*PositionsByPoolRequest) XXX_DiscardUnknown

func (m *PositionsByPoolRequest) XXX_DiscardUnknown()

func (*PositionsByPoolRequest) XXX_Marshal

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

func (*PositionsByPoolRequest) XXX_Merge

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

func (*PositionsByPoolRequest) XXX_Size

func (m *PositionsByPoolRequest) XXX_Size() int

func (*PositionsByPoolRequest) XXX_Unmarshal

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

type PositionsByPoolResponse

type PositionsByPoolResponse struct {
	Mtps       []*MTP              `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsByPoolResponse) Descriptor

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

func (*PositionsByPoolResponse) GetMtps

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

func (*PositionsByPoolResponse) GetPagination

func (m *PositionsByPoolResponse) GetPagination() *query.PageResponse

func (*PositionsByPoolResponse) Marshal

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

func (*PositionsByPoolResponse) MarshalTo

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

func (*PositionsByPoolResponse) MarshalToSizedBuffer

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

func (*PositionsByPoolResponse) ProtoMessage

func (*PositionsByPoolResponse) ProtoMessage()

func (*PositionsByPoolResponse) Reset

func (m *PositionsByPoolResponse) Reset()

func (*PositionsByPoolResponse) Size

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

func (*PositionsByPoolResponse) String

func (m *PositionsByPoolResponse) String() string

func (*PositionsByPoolResponse) Unmarshal

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

func (*PositionsByPoolResponse) XXX_DiscardUnknown

func (m *PositionsByPoolResponse) XXX_DiscardUnknown()

func (*PositionsByPoolResponse) XXX_Marshal

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

func (*PositionsByPoolResponse) XXX_Merge

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

func (*PositionsByPoolResponse) XXX_Size

func (m *PositionsByPoolResponse) XXX_Size() int

func (*PositionsByPoolResponse) XXX_Unmarshal

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

type PositionsForAddressRequest

type PositionsForAddressRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsForAddressRequest) Descriptor

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

func (*PositionsForAddressRequest) GetAddress

func (m *PositionsForAddressRequest) GetAddress() string

func (*PositionsForAddressRequest) GetPagination

func (m *PositionsForAddressRequest) GetPagination() *query.PageRequest

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"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsForAddressResponse) Descriptor

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

func (*PositionsForAddressResponse) GetMtps

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

func (*PositionsForAddressResponse) GetPagination

func (m *PositionsForAddressResponse) GetPagination() *query.PageResponse

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 PositionsRequest

type PositionsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsRequest) Descriptor

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

func (*PositionsRequest) GetPagination

func (m *PositionsRequest) GetPagination() *query.PageRequest

func (*PositionsRequest) Marshal

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

func (*PositionsRequest) MarshalTo

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

func (*PositionsRequest) MarshalToSizedBuffer

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

func (*PositionsRequest) ProtoMessage

func (*PositionsRequest) ProtoMessage()

func (*PositionsRequest) Reset

func (m *PositionsRequest) Reset()

func (*PositionsRequest) Size

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

func (*PositionsRequest) String

func (m *PositionsRequest) String() string

func (*PositionsRequest) Unmarshal

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

func (*PositionsRequest) XXX_DiscardUnknown

func (m *PositionsRequest) XXX_DiscardUnknown()

func (*PositionsRequest) XXX_Marshal

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

func (*PositionsRequest) XXX_Merge

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

func (*PositionsRequest) XXX_Size

func (m *PositionsRequest) XXX_Size() int

func (*PositionsRequest) XXX_Unmarshal

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

type PositionsResponse

type PositionsResponse struct {
	Mtps       []*MTP              `protobuf:"bytes,1,rep,name=mtps,proto3" json:"mtps,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*PositionsResponse) Descriptor

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

func (*PositionsResponse) GetMtps

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

func (*PositionsResponse) GetPagination

func (m *PositionsResponse) GetPagination() *query.PageResponse

func (*PositionsResponse) Marshal

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

func (*PositionsResponse) MarshalTo

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

func (*PositionsResponse) MarshalToSizedBuffer

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

func (*PositionsResponse) ProtoMessage

func (*PositionsResponse) ProtoMessage()

func (*PositionsResponse) Reset

func (m *PositionsResponse) Reset()

func (*PositionsResponse) Size

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

func (*PositionsResponse) String

func (m *PositionsResponse) String() string

func (*PositionsResponse) Unmarshal

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

func (*PositionsResponse) XXX_DiscardUnknown

func (m *PositionsResponse) XXX_DiscardUnknown()

func (*PositionsResponse) XXX_Marshal

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

func (*PositionsResponse) XXX_Merge

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

func (*PositionsResponse) XXX_Size

func (m *PositionsResponse) XXX_Size() int

func (*PositionsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	GetMTP(ctx context.Context, in *MTPRequest, opts ...grpc.CallOption) (*MTPResponse, error)
	GetPositions(ctx context.Context, in *PositionsRequest, opts ...grpc.CallOption) (*PositionsResponse, error)
	GetPositionsForAddress(ctx context.Context, in *PositionsForAddressRequest, opts ...grpc.CallOption) (*PositionsForAddressResponse, error)
	GetPositionsByPool(ctx context.Context, in *PositionsByPoolRequest, opts ...grpc.CallOption) (*PositionsByPoolResponse, error)
	GetParams(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
	GetStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	GetSQParams(ctx context.Context, in *GetSQParamsRequest, opts ...grpc.CallOption) (*GetSQParamsResponse, error)
	GetWhitelist(ctx context.Context, in *WhitelistRequest, opts ...grpc.CallOption) (*WhitelistResponse, error)
	IsWhitelisted(ctx context.Context, in *IsWhitelistedRequest, opts ...grpc.CallOption) (*IsWhitelistedResponse, 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 StatusRequest

type StatusRequest struct {
}

func (*StatusRequest) Descriptor

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

func (*StatusRequest) Marshal

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

func (*StatusRequest) MarshalTo

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

func (*StatusRequest) MarshalToSizedBuffer

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

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) Reset

func (m *StatusRequest) Reset()

func (*StatusRequest) Size

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

func (*StatusRequest) String

func (m *StatusRequest) String() string

func (*StatusRequest) Unmarshal

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

func (*StatusRequest) XXX_DiscardUnknown

func (m *StatusRequest) XXX_DiscardUnknown()

func (*StatusRequest) XXX_Marshal

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

func (*StatusRequest) XXX_Merge

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

func (*StatusRequest) XXX_Size

func (m *StatusRequest) XXX_Size() int

func (*StatusRequest) XXX_Unmarshal

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

type StatusResponse

type StatusResponse struct {
	OpenMtpCount     uint64 `protobuf:"varint,1,opt,name=open_mtp_count,json=openMtpCount,proto3" json:"open_mtp_count,omitempty"`
	LifetimeMtpCount uint64 `protobuf:"varint,2,opt,name=lifetime_mtp_count,json=lifetimeMtpCount,proto3" json:"lifetime_mtp_count,omitempty"`
}

func (*StatusResponse) Descriptor

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

func (*StatusResponse) GetLifetimeMtpCount

func (m *StatusResponse) GetLifetimeMtpCount() uint64

func (*StatusResponse) GetOpenMtpCount

func (m *StatusResponse) GetOpenMtpCount() uint64

func (*StatusResponse) Marshal

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

func (*StatusResponse) MarshalTo

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

func (*StatusResponse) MarshalToSizedBuffer

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

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) Reset

func (m *StatusResponse) Reset()

func (*StatusResponse) Size

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

func (*StatusResponse) String

func (m *StatusResponse) String() string

func (*StatusResponse) Unmarshal

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

func (*StatusResponse) XXX_DiscardUnknown

func (m *StatusResponse) XXX_DiscardUnknown()

func (*StatusResponse) XXX_Marshal

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

func (*StatusResponse) XXX_Merge

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

func (*StatusResponse) XXX_Size

func (m *StatusResponse) XXX_Size() int

func (*StatusResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AdminClose

func (*UnimplementedMsgServer) AdminCloseAll

func (*UnimplementedMsgServer) Close

func (*UnimplementedMsgServer) Dewhitelist

func (*UnimplementedMsgServer) ForceClose

func (*UnimplementedMsgServer) Open

func (*UnimplementedMsgServer) UpdateFuryCollateral

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdatePools

func (*UnimplementedMsgServer) Whitelist

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetMTP

func (*UnimplementedQueryServer) GetParams

func (*UnimplementedQueryServer) GetPositions

func (*UnimplementedQueryServer) GetPositionsByPool

func (*UnimplementedQueryServer) GetPositionsForAddress

func (*UnimplementedQueryServer) GetSQParams

func (*UnimplementedQueryServer) GetStatus

func (*UnimplementedQueryServer) GetWhitelist

func (*UnimplementedQueryServer) IsWhitelisted

type WhitelistRequest

type WhitelistRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*WhitelistRequest) Descriptor

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

func (*WhitelistRequest) GetPagination

func (m *WhitelistRequest) GetPagination() *query.PageRequest

func (*WhitelistRequest) Marshal

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

func (*WhitelistRequest) MarshalTo

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

func (*WhitelistRequest) MarshalToSizedBuffer

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

func (*WhitelistRequest) ProtoMessage

func (*WhitelistRequest) ProtoMessage()

func (*WhitelistRequest) Reset

func (m *WhitelistRequest) Reset()

func (*WhitelistRequest) Size

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

func (*WhitelistRequest) String

func (m *WhitelistRequest) String() string

func (*WhitelistRequest) Unmarshal

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

func (*WhitelistRequest) XXX_DiscardUnknown

func (m *WhitelistRequest) XXX_DiscardUnknown()

func (*WhitelistRequest) XXX_Marshal

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

func (*WhitelistRequest) XXX_Merge

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

func (*WhitelistRequest) XXX_Size

func (m *WhitelistRequest) XXX_Size() int

func (*WhitelistRequest) XXX_Unmarshal

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

type WhitelistResponse

type WhitelistResponse struct {
	Whitelist  []string            `protobuf:"bytes,1,rep,name=whitelist,proto3" json:"whitelist,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*WhitelistResponse) Descriptor

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

func (*WhitelistResponse) GetPagination

func (m *WhitelistResponse) GetPagination() *query.PageResponse

func (*WhitelistResponse) GetWhitelist

func (m *WhitelistResponse) GetWhitelist() []string

func (*WhitelistResponse) Marshal

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

func (*WhitelistResponse) MarshalTo

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

func (*WhitelistResponse) MarshalToSizedBuffer

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

func (*WhitelistResponse) ProtoMessage

func (*WhitelistResponse) ProtoMessage()

func (*WhitelistResponse) Reset

func (m *WhitelistResponse) Reset()

func (*WhitelistResponse) Size

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

func (*WhitelistResponse) String

func (m *WhitelistResponse) String() string

func (*WhitelistResponse) Unmarshal

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

func (*WhitelistResponse) XXX_DiscardUnknown

func (m *WhitelistResponse) XXX_DiscardUnknown()

func (*WhitelistResponse) XXX_Marshal

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

func (*WhitelistResponse) XXX_Merge

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

func (*WhitelistResponse) XXX_Size

func (m *WhitelistResponse) XXX_Size() int

func (*WhitelistResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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