types

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 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")
	ErrRowanAsCollateralNotAllowed = sdkerrors.Register(ModuleName, 13, "using rowan as collateral asset is not allowed")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	MTPPrefix          = []byte{0x01}
	MTPCountPrefix     = []byte{0x02}
	ParamsPrefix       = []byte{0x03}
	OpenMTPCountPrefix = []byte{0x04}
	WhitelistPrefix    = []byte{0x05}
	SQBeginBlockPrefix = []byte{0x06}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
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 added in v1.4.0

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

func GetMTPPrefixForAddress added in v1.4.0

func GetMTPPrefixForAddress(address string) []byte

func GetSQBeginBlockKey added in v1.4.0

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

func GetSettlementAsset added in v1.4.0

func GetSettlementAsset() string

func GetUint64Bytes added in v1.4.0

func GetUint64Bytes(ID uint64) []byte

GetUint64Bytes returns the byte representation of the ID

func GetUint64FromBytes added in v1.4.0

func GetUint64FromBytes(bz []byte) uint64

GetUint64FromBytes returns ID in uint64 format from a byte array

func GetWhitelistKey added in v1.4.0

func GetWhitelistKey(address string) []byte

func IsValidPosition added in v1.4.0

func IsValidPosition(position Position) bool

func ParamKeyTable added in v1.4.0

func ParamKeyTable() paramtypes.KeyTable

func RegisterInterfaces added in v1.4.0

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v1.4.0

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 added in v1.4.0

func StringCompare(a, b string) bool

func Validate added in v1.4.0

func Validate(asset string) bool

Types

type BankKeeper added in v1.4.0

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 added in v1.4.0

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"`
	MtpList []*MTP  `protobuf:"bytes,2,rep,name=mtp_list,json=mtpList,proto3" json:"mtp_list,omitempty"`
}

func DefaultGenesis added in v1.4.0

func DefaultGenesis() *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMtpList added in v1.4.0

func (m *GenesisState) GetMtpList() []*MTP

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 added in v0.16.0

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

func (*IsWhitelistedRequest) Descriptor added in v0.16.0

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

func (*IsWhitelistedRequest) GetAddress added in v0.16.0

func (m *IsWhitelistedRequest) GetAddress() string

func (*IsWhitelistedRequest) Marshal added in v0.16.0

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

func (*IsWhitelistedRequest) MarshalTo added in v0.16.0

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

func (*IsWhitelistedRequest) MarshalToSizedBuffer added in v0.16.0

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

func (*IsWhitelistedRequest) ProtoMessage added in v0.16.0

func (*IsWhitelistedRequest) ProtoMessage()

func (*IsWhitelistedRequest) Reset added in v0.16.0

func (m *IsWhitelistedRequest) Reset()

func (*IsWhitelistedRequest) Size added in v0.16.0

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

func (*IsWhitelistedRequest) String added in v0.16.0

func (m *IsWhitelistedRequest) String() string

func (*IsWhitelistedRequest) Unmarshal added in v0.16.0

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

func (*IsWhitelistedRequest) XXX_DiscardUnknown added in v0.16.0

func (m *IsWhitelistedRequest) XXX_DiscardUnknown()

func (*IsWhitelistedRequest) XXX_Marshal added in v0.16.0

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

func (*IsWhitelistedRequest) XXX_Merge added in v0.16.0

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

func (*IsWhitelistedRequest) XXX_Size added in v0.16.0

func (m *IsWhitelistedRequest) XXX_Size() int

func (*IsWhitelistedRequest) XXX_Unmarshal added in v0.16.0

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

type IsWhitelistedResponse added in v0.16.0

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 added in v0.16.0

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

func (*IsWhitelistedResponse) GetAddress added in v0.16.0

func (m *IsWhitelistedResponse) GetAddress() string

func (*IsWhitelistedResponse) GetIsWhitelisted added in v0.16.0

func (m *IsWhitelistedResponse) GetIsWhitelisted() bool

func (*IsWhitelistedResponse) Marshal added in v0.16.0

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

func (*IsWhitelistedResponse) MarshalTo added in v0.16.0

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

func (*IsWhitelistedResponse) MarshalToSizedBuffer added in v0.16.0

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

func (*IsWhitelistedResponse) ProtoMessage added in v0.16.0

func (*IsWhitelistedResponse) ProtoMessage()

func (*IsWhitelistedResponse) Reset added in v0.16.0

func (m *IsWhitelistedResponse) Reset()

func (*IsWhitelistedResponse) Size added in v0.16.0

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

func (*IsWhitelistedResponse) String added in v0.16.0

func (m *IsWhitelistedResponse) String() string

func (*IsWhitelistedResponse) Unmarshal added in v0.16.0

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

func (*IsWhitelistedResponse) XXX_DiscardUnknown added in v0.16.0

func (m *IsWhitelistedResponse) XXX_DiscardUnknown()

func (*IsWhitelistedResponse) XXX_Marshal added in v0.16.0

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

func (*IsWhitelistedResponse) XXX_Merge added in v0.16.0

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

func (*IsWhitelistedResponse) XXX_Size added in v0.16.0

func (m *IsWhitelistedResponse) XXX_Size() int

func (*IsWhitelistedResponse) XXX_Unmarshal added in v0.16.0

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

type Keeper added in v1.4.0

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
	IsRowanCollateralEnabled(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=sifnode.margin.v1.Position" json:"position,omitempty"`
	Id                       uint64                                  `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMTP added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

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

func (*MsgAdminClose) GetId added in v1.4.0

func (m *MsgAdminClose) GetId() uint64

func (*MsgAdminClose) GetMtpAddress added in v1.4.0

func (m *MsgAdminClose) GetMtpAddress() string

func (MsgAdminClose) GetSignBytes added in v1.4.0

func (m MsgAdminClose) GetSignBytes() []byte

func (*MsgAdminClose) GetSigner added in v1.4.0

func (m *MsgAdminClose) GetSigner() string

func (MsgAdminClose) GetSigners added in v1.4.0

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

func (*MsgAdminClose) GetTakeMarginFund added in v1.4.0

func (m *MsgAdminClose) GetTakeMarginFund() bool

func (*MsgAdminClose) Marshal added in v1.4.0

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

func (*MsgAdminClose) MarshalTo added in v1.4.0

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

func (*MsgAdminClose) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgAdminClose) ProtoMessage added in v1.4.0

func (*MsgAdminClose) ProtoMessage()

func (*MsgAdminClose) Reset added in v1.4.0

func (m *MsgAdminClose) Reset()

func (MsgAdminClose) Route added in v1.4.0

func (m MsgAdminClose) Route() string

func (*MsgAdminClose) Size added in v1.4.0

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

func (*MsgAdminClose) String added in v1.4.0

func (m *MsgAdminClose) String() string

func (MsgAdminClose) Type added in v1.4.0

func (m MsgAdminClose) Type() string

func (*MsgAdminClose) Unmarshal added in v1.4.0

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

func (MsgAdminClose) ValidateBasic added in v1.4.0

func (m MsgAdminClose) ValidateBasic() error

func (*MsgAdminClose) XXX_DiscardUnknown added in v1.4.0

func (m *MsgAdminClose) XXX_DiscardUnknown()

func (*MsgAdminClose) XXX_Marshal added in v1.4.0

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

func (*MsgAdminClose) XXX_Merge added in v1.4.0

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

func (*MsgAdminClose) XXX_Size added in v1.4.0

func (m *MsgAdminClose) XXX_Size() int

func (*MsgAdminClose) XXX_Unmarshal added in v1.4.0

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

type MsgAdminCloseAll added in v1.4.0

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 added in v1.4.0

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

func (MsgAdminCloseAll) GetSignBytes added in v1.4.0

func (m MsgAdminCloseAll) GetSignBytes() []byte

func (*MsgAdminCloseAll) GetSigner added in v1.4.0

func (m *MsgAdminCloseAll) GetSigner() string

func (MsgAdminCloseAll) GetSigners added in v1.4.0

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

func (*MsgAdminCloseAll) GetTakeMarginFund added in v1.4.0

func (m *MsgAdminCloseAll) GetTakeMarginFund() bool

func (*MsgAdminCloseAll) Marshal added in v1.4.0

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

func (*MsgAdminCloseAll) MarshalTo added in v1.4.0

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

func (*MsgAdminCloseAll) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgAdminCloseAll) ProtoMessage added in v1.4.0

func (*MsgAdminCloseAll) ProtoMessage()

func (*MsgAdminCloseAll) Reset added in v1.4.0

func (m *MsgAdminCloseAll) Reset()

func (MsgAdminCloseAll) Route added in v1.4.0

func (m MsgAdminCloseAll) Route() string

func (*MsgAdminCloseAll) Size added in v1.4.0

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

func (*MsgAdminCloseAll) String added in v1.4.0

func (m *MsgAdminCloseAll) String() string

func (MsgAdminCloseAll) Type added in v1.4.0

func (m MsgAdminCloseAll) Type() string

func (*MsgAdminCloseAll) Unmarshal added in v1.4.0

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

func (MsgAdminCloseAll) ValidateBasic added in v1.4.0

func (m MsgAdminCloseAll) ValidateBasic() error

func (*MsgAdminCloseAll) XXX_DiscardUnknown added in v1.4.0

func (m *MsgAdminCloseAll) XXX_DiscardUnknown()

func (*MsgAdminCloseAll) XXX_Marshal added in v1.4.0

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

func (*MsgAdminCloseAll) XXX_Merge added in v1.4.0

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

func (*MsgAdminCloseAll) XXX_Size added in v1.4.0

func (m *MsgAdminCloseAll) XXX_Size() int

func (*MsgAdminCloseAll) XXX_Unmarshal added in v1.4.0

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

type MsgAdminCloseAllResponse added in v1.4.0

type MsgAdminCloseAllResponse struct {
}

func (*MsgAdminCloseAllResponse) Descriptor added in v1.4.0

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

func (*MsgAdminCloseAllResponse) Marshal added in v1.4.0

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

func (*MsgAdminCloseAllResponse) MarshalTo added in v1.4.0

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

func (*MsgAdminCloseAllResponse) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgAdminCloseAllResponse) ProtoMessage added in v1.4.0

func (*MsgAdminCloseAllResponse) ProtoMessage()

func (*MsgAdminCloseAllResponse) Reset added in v1.4.0

func (m *MsgAdminCloseAllResponse) Reset()

func (*MsgAdminCloseAllResponse) Size added in v1.4.0

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

func (*MsgAdminCloseAllResponse) String added in v1.4.0

func (m *MsgAdminCloseAllResponse) String() string

func (*MsgAdminCloseAllResponse) Unmarshal added in v1.4.0

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

func (*MsgAdminCloseAllResponse) XXX_DiscardUnknown added in v1.4.0

func (m *MsgAdminCloseAllResponse) XXX_DiscardUnknown()

func (*MsgAdminCloseAllResponse) XXX_Marshal added in v1.4.0

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

func (*MsgAdminCloseAllResponse) XXX_Merge added in v1.4.0

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

func (*MsgAdminCloseAllResponse) XXX_Size added in v1.4.0

func (m *MsgAdminCloseAllResponse) XXX_Size() int

func (*MsgAdminCloseAllResponse) XXX_Unmarshal added in v1.4.0

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

type MsgAdminCloseResponse added in v1.4.0

type MsgAdminCloseResponse struct {
}

func (*MsgAdminCloseResponse) Descriptor added in v1.4.0

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

func (*MsgAdminCloseResponse) Marshal added in v1.4.0

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

func (*MsgAdminCloseResponse) MarshalTo added in v1.4.0

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

func (*MsgAdminCloseResponse) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgAdminCloseResponse) ProtoMessage added in v1.4.0

func (*MsgAdminCloseResponse) ProtoMessage()

func (*MsgAdminCloseResponse) Reset added in v1.4.0

func (m *MsgAdminCloseResponse) Reset()

func (*MsgAdminCloseResponse) Size added in v1.4.0

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

func (*MsgAdminCloseResponse) String added in v1.4.0

func (m *MsgAdminCloseResponse) String() string

func (*MsgAdminCloseResponse) Unmarshal added in v1.4.0

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

func (*MsgAdminCloseResponse) XXX_DiscardUnknown added in v1.4.0

func (m *MsgAdminCloseResponse) XXX_DiscardUnknown()

func (*MsgAdminCloseResponse) XXX_Marshal added in v1.4.0

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

func (*MsgAdminCloseResponse) XXX_Merge added in v1.4.0

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

func (*MsgAdminCloseResponse) XXX_Size added in v1.4.0

func (m *MsgAdminCloseResponse) XXX_Size() int

func (*MsgAdminCloseResponse) XXX_Unmarshal added in v1.4.0

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 added in v1.4.0

func (m MsgClose) GetSignBytes() []byte

func (*MsgClose) GetSigner

func (m *MsgClose) GetSigner() string

func (MsgClose) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgClose) Type() string

func (*MsgClose) Unmarshal

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

func (MsgClose) ValidateBasic added in v1.4.0

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 added in v1.4.0

func (m MsgDewhitelist) GetSignBytes() []byte

func (*MsgDewhitelist) GetSigner

func (m *MsgDewhitelist) GetSigner() string

func (MsgDewhitelist) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgDewhitelist) Type() string

func (*MsgDewhitelist) Unmarshal

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

func (MsgDewhitelist) ValidateBasic added in v1.4.0

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 added in v1.4.0

func (m MsgForceClose) GetSignBytes() []byte

func (*MsgForceClose) GetSigner

func (m *MsgForceClose) GetSigner() string

func (MsgForceClose) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgForceClose) Type() string

func (*MsgForceClose) Unmarshal

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

func (MsgForceClose) ValidateBasic added in v1.4.0

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=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) GetSignBytes added in v1.4.0

func (m MsgOpen) GetSignBytes() []byte

func (*MsgOpen) GetSigner

func (m *MsgOpen) GetSigner() string

func (MsgOpen) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgOpen) Type() string

func (*MsgOpen) Unmarshal

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

func (MsgOpen) ValidateBasic added in v1.4.0

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 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 added in v1.4.0

func (m MsgUpdateParams) GetSignBytes() []byte

func (*MsgUpdateParams) GetSigner

func (m *MsgUpdateParams) GetSigner() string

func (MsgUpdateParams) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal

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

func (MsgUpdateParams) ValidateBasic added in v1.4.0

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 added in v1.4.0

func (m MsgUpdatePools) GetSignBytes() []byte

func (*MsgUpdatePools) GetSigner

func (m *MsgUpdatePools) GetSigner() string

func (MsgUpdatePools) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgUpdatePools) Type() string

func (*MsgUpdatePools) Unmarshal

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

func (MsgUpdatePools) ValidateBasic added in v1.4.0

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 MsgUpdateRowanCollateral added in v1.4.0

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

func (*MsgUpdateRowanCollateral) Descriptor added in v1.4.0

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

func (*MsgUpdateRowanCollateral) GetRowanCollateralEnabled added in v1.4.0

func (m *MsgUpdateRowanCollateral) GetRowanCollateralEnabled() bool

func (MsgUpdateRowanCollateral) GetSignBytes added in v1.4.0

func (m MsgUpdateRowanCollateral) GetSignBytes() []byte

func (*MsgUpdateRowanCollateral) GetSigner added in v1.4.0

func (m *MsgUpdateRowanCollateral) GetSigner() string

func (MsgUpdateRowanCollateral) GetSigners added in v1.4.0

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

func (*MsgUpdateRowanCollateral) Marshal added in v1.4.0

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

func (*MsgUpdateRowanCollateral) MarshalTo added in v1.4.0

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

func (*MsgUpdateRowanCollateral) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgUpdateRowanCollateral) ProtoMessage added in v1.4.0

func (*MsgUpdateRowanCollateral) ProtoMessage()

func (*MsgUpdateRowanCollateral) Reset added in v1.4.0

func (m *MsgUpdateRowanCollateral) Reset()

func (MsgUpdateRowanCollateral) Route added in v1.4.0

func (m MsgUpdateRowanCollateral) Route() string

func (*MsgUpdateRowanCollateral) Size added in v1.4.0

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

func (*MsgUpdateRowanCollateral) String added in v1.4.0

func (m *MsgUpdateRowanCollateral) String() string

func (MsgUpdateRowanCollateral) Type added in v1.4.0

func (*MsgUpdateRowanCollateral) Unmarshal added in v1.4.0

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

func (MsgUpdateRowanCollateral) ValidateBasic added in v1.4.0

func (m MsgUpdateRowanCollateral) ValidateBasic() error

func (*MsgUpdateRowanCollateral) XXX_DiscardUnknown added in v1.4.0

func (m *MsgUpdateRowanCollateral) XXX_DiscardUnknown()

func (*MsgUpdateRowanCollateral) XXX_Marshal added in v1.4.0

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

func (*MsgUpdateRowanCollateral) XXX_Merge added in v1.4.0

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

func (*MsgUpdateRowanCollateral) XXX_Size added in v1.4.0

func (m *MsgUpdateRowanCollateral) XXX_Size() int

func (*MsgUpdateRowanCollateral) XXX_Unmarshal added in v1.4.0

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

type MsgUpdateRowanCollateralResponse added in v1.4.0

type MsgUpdateRowanCollateralResponse struct {
}

func (*MsgUpdateRowanCollateralResponse) Descriptor added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) Marshal added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) MarshalTo added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) MarshalToSizedBuffer added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) ProtoMessage added in v1.4.0

func (*MsgUpdateRowanCollateralResponse) ProtoMessage()

func (*MsgUpdateRowanCollateralResponse) Reset added in v1.4.0

func (*MsgUpdateRowanCollateralResponse) Size added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) String added in v1.4.0

func (*MsgUpdateRowanCollateralResponse) Unmarshal added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) XXX_DiscardUnknown added in v1.4.0

func (m *MsgUpdateRowanCollateralResponse) XXX_DiscardUnknown()

func (*MsgUpdateRowanCollateralResponse) XXX_Marshal added in v1.4.0

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

func (*MsgUpdateRowanCollateralResponse) XXX_Merge added in v1.4.0

func (*MsgUpdateRowanCollateralResponse) XXX_Size added in v1.4.0

func (m *MsgUpdateRowanCollateralResponse) XXX_Size() int

func (*MsgUpdateRowanCollateralResponse) XXX_Unmarshal added in v1.4.0

func (m *MsgUpdateRowanCollateralResponse) 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 added in v1.4.0

func (m MsgWhitelist) GetSignBytes() []byte

func (*MsgWhitelist) GetSigner

func (m *MsgWhitelist) GetSigner() string

func (MsgWhitelist) GetSigners added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (m MsgWhitelist) Type() string

func (*MsgWhitelist) Unmarshal

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

func (MsgWhitelist) ValidateBasic added in v1.4.0

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"`
	RowanCollateralEnabled                   bool                                   `` /* 131-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 added in v1.4.0

func (m *Params) GetForceCloseFundAddress() string

func (*Params) GetIncrementalInterestPaymentEnabled

func (m *Params) GetIncrementalInterestPaymentEnabled() bool

func (*Params) GetIncrementalInterestPaymentFundAddress added in v1.4.0

func (m *Params) GetIncrementalInterestPaymentFundAddress() string

func (*Params) GetMaxOpenPositions

func (m *Params) GetMaxOpenPositions() uint64

func (*Params) GetPools

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

func (*Params) GetRowanCollateralEnabled added in v1.4.0

func (m *Params) GetRowanCollateralEnabled() bool

func (*Params) GetWhitelistingEnabled added in v0.16.0

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 added in v1.4.0

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 added in v1.4.0

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 added in v1.4.0

func (*UnimplementedMsgServer) AdminCloseAll added in v1.4.0

func (*UnimplementedMsgServer) Close

func (*UnimplementedMsgServer) Dewhitelist

func (*UnimplementedMsgServer) ForceClose

func (*UnimplementedMsgServer) Open

func (*UnimplementedMsgServer) UpdateParams

func (*UnimplementedMsgServer) UpdatePools

func (*UnimplementedMsgServer) UpdateRowanCollateral added in v1.4.0

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 added in v0.16.0

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