types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateCdp         = "create_cdp"
	EventTypeCdpDeposit        = "cdp_deposit"
	EventTypeCdpDraw           = "cdp_draw"
	EventTypeCdpRepay          = "cdp_repayment"
	EventTypeCdpClose          = "cdp_close"
	EventTypeCdpWithdrawal     = "cdp_withdrawal"
	EventTypeCdpLiquidation    = "cdp_liquidation"
	EventTypeBeginBlockerFatal = "cdp_begin_block_error"

	AttributeKeyCdpID      = "cdp_id"
	AttributeKeyDeposit    = "deposit"
	AttributeValueCategory = "cdp"
	AttributeKeyError      = "error_message"
)

Event types for cdp module

View Source
const (
	// ModuleName defines the module name
	ModuleName = "cdp"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_capability"

	// LiquidatorMacc module account for liquidator
	LiquidatorMacc = "liquidator"
)
View Source
const (
	ParamsKey            = "Params-value-"
	CdpKey               = "Cdp-value-"
	CdpCountKey          = "Cdp-count-"
	CdpIDKey             = "CdpID-value-"
	CollateralRatioIndex = "CollateralRatio-index-"
	NextCdpID            = "NextCdpID"
	DebtDenom            = "DebtDenom"
	GovDenom             = "GovDenom"
	DepositKey           = "Deposit-value-"
	PrincipalKey         = "Principal-value-"
	PricefeedStatusKey   = "PricefeedStatus-value-"
	PreviousAccrualTime  = "PreviousAccrualTime-"
	InterestFactor       = "InterestFactor-"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthCdp        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCdp          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCdp = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ErrCdpAlreadyExists error for duplicate cdps
	ErrCdpAlreadyExists = sdkerrors.Register(ModuleName, 2, "cdp already exists")
	// ErrInvalidCollateralLength error for invalid collateral input length
	ErrInvalidCollateralLength = sdkerrors.Register(ModuleName, 3, "only one collateral type per cdp")
	// ErrCollateralNotSupported error for unsupported collateral
	ErrCollateralNotSupported = sdkerrors.Register(ModuleName, 4, "collateral not supported")
	// ErrDebtNotSupported error for unsupported debt
	ErrDebtNotSupported = sdkerrors.Register(ModuleName, 5, "debt not supported")
	// ErrExceedsDebtLimit error for attempted draws that exceed debt limit
	ErrExceedsDebtLimit = sdkerrors.Register(ModuleName, 6, "proposed debt increase would exceed debt limit")
	// ErrInvalidCollateralRatio error for attempted draws that are below liquidation ratio
	ErrInvalidCollateralRatio = sdkerrors.Register(ModuleName, 7, "proposed collateral ratio is below liquidation ratio")
	// ErrCdpNotFound error cdp not found
	ErrCdpNotFound = sdkerrors.Register(ModuleName, 8, "cdp not found")
	// ErrDepositNotFound error for deposit not found
	ErrDepositNotFound = sdkerrors.Register(ModuleName, 9, "deposit not found")
	// ErrInvalidDeposit error for invalid deposit
	ErrInvalidDeposit = sdkerrors.Register(ModuleName, 10, "invalid deposit")
	// ErrInvalidPayment error for invalid payment
	ErrInvalidPayment = sdkerrors.Register(ModuleName, 11, "invalid payment")
	//ErrDepositNotAvailable error for withdrawing deposits in liquidation
	ErrDepositNotAvailable = sdkerrors.Register(ModuleName, 12, "deposit in liquidation")
	// ErrInvalidWithdrawAmount error for invalid withdrawal amount
	ErrInvalidWithdrawAmount = sdkerrors.Register(ModuleName, 13, "withdrawal amount exceeds deposit")
	//ErrCdpNotAvailable error for depositing to a Cdp in liquidation
	ErrCdpNotAvailable = sdkerrors.Register(ModuleName, 14, "cannot modify cdp in liquidation")
	// ErrBelowDebtFloor error for creating a cdp with debt below the minimum
	ErrBelowDebtFloor = sdkerrors.Register(ModuleName, 15, "proposed cdp debt is below minimum")
	// ErrLoadingAugmentedCdp error loading augmented cdp
	ErrLoadingAugmentedCdp = sdkerrors.Register(ModuleName, 16, "augmented cdp could not be loaded from cdp")
	// ErrInvalidDebtRequest error for invalid principal input length
	ErrInvalidDebtRequest = sdkerrors.Register(ModuleName, 17, "only one principal type per cdp")
	// ErrDenomPrefixNotFound error for denom prefix not found
	ErrDenomPrefixNotFound = sdkerrors.Register(ModuleName, 18, "denom prefix not found")
	// ErrPricefeedDown error for when a price for the input denom is not found
	ErrPricefeedDown = sdkerrors.Register(ModuleName, 19, "no price found for collateral")
	// ErrInvalidCollateral error for when the input collateral denom does not match the expected collateral denom
	ErrInvalidCollateral = sdkerrors.Register(ModuleName, 20, "invalid collateral for input collateral type")
	// ErrAccountNotFound error for when no account is found for an input address
	ErrAccountNotFound = sdkerrors.Register(ModuleName, 21, "account not found")
	// ErrInsufficientBalance error for when an account does not have enough funds
	ErrInsufficientBalance = sdkerrors.Register(ModuleName, 22, "insufficient balance")
	// ErrNotLiquidatable error for when an cdp is not liquidatable
	ErrNotLiquidatable = sdkerrors.Register(ModuleName, 23, "cdp collateral ratio not below liquidation ratio")
)
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 (
	KeyGlobalDebtLimit      = []byte("GlobalDebtLimit")
	KeyCollateralParams     = []byte("CollateralParams")
	KeyDebtParam            = []byte("DebtParam")
	KeyCircuitBreaker       = []byte("CircuitBreaker")
	KeyDebtThreshold        = []byte("DebtThreshold")
	KeyDebtLot              = []byte("DebtLot")
	KeySurplusThreshold     = []byte("SurplusThreshold")
	KeySurplusLot           = []byte("SurplusLot")
	DefaultGlobalDebt       = sdk.NewCoin(DefaultStableDenom, sdk.ZeroInt())
	DefaultCircuitBreaker   = false
	DefaultCollateralParams = CollateralParams{}
	DefaultDebtParam        = DebtParam{
		Denom:            "eurx",
		ReferenceAsset:   "eur",
		ConversionFactor: sdk.NewInt(6),
		DebtFloor:        sdk.NewInt(10000000),
	}
	DefaultCdpStartingID    = uint64(1)
	DefaultDebtDenom        = "debt"
	DefaultGovDenom         = "uestm"
	DefaultStableDenom      = "eurx"
	DefaultSurplusThreshold = sdk.NewInt(500000000000)
	DefaultDebtThreshold    = sdk.NewInt(100000000000)
	DefaultSurplusLot       = sdk.NewInt(10000000000)
	DefaultDebtLot          = sdk.NewInt(10000000000)
)

Parameter keys

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 MaxSortableDec = sdk.OneDec().Quo(sdk.SmallestDec())

MaxSortableDec largest sortable sdk.Dec

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func CdpKeySuffix added in v0.2.0

func CdpKeySuffix(denomByte byte, cdpID uint64) []byte

CdpKeySuffix key of a specific cdp in the store

func CollateralRatioBytes

func CollateralRatioBytes(ratio sdk.Dec) []byte

CollateralRatioBytes returns the liquidation ratio as sortable bytes

func CollateralRatioIterKey

func CollateralRatioIterKey(denomByte byte, ratio sdk.Dec) []byte

CollateralRatioIterKey returns the key for iterating over cdps by denom and liquidation ratio

func CollateralRatioKey

func CollateralRatioKey(denomByte byte, cdpID uint64, ratio sdk.Dec) []byte

CollateralRatioKey returns the key for querying a cdp by its liquidation ratio

func DenomIterKey

func DenomIterKey(denomByte byte) []byte

DenomIterKey returns the key for iterating over cdps of a certain denom in the store

func DepositIterKey

func DepositIterKey(cdpID uint64) []byte

DepositIterKey returns the prefix key for iterating over deposits to a cdp

func DepositKeySuffix added in v0.2.0

func DepositKeySuffix(cdpID uint64, depositor sdk.AccAddress) []byte

DepositKeySuffix key of a specific deposit in the store

func GetCdpIDBytes

func GetCdpIDBytes(cdpID uint64) (cdpIDBz []byte)

GetCdpIDBytes returns the byte representation of the cdpID

func GetCdpIDFromBytes

func GetCdpIDFromBytes(bz []byte) (cdpID uint64)

GetCdpIDFromBytes returns cdpID in uint64 format from a byte array

func KeyPrefix added in v0.2.0

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramstype.KeyTable

ParamKeyTable Key declaration for parameters

func ParseDecBytes

func ParseDecBytes(db []byte) (sdk.Dec, error)

ParseDecBytes parses a []byte encoded using SortableDecBytes back to sdk.Dec

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces added in v0.2.0

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterQueryHandler added in v0.2.0

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

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

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

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.2.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RelativePow

func RelativePow(x sdk.Int, n sdk.Int, b sdk.Int) (z sdk.Int)

RelativePow raises x to the power of n, where x (and the result, z) are scaled by factor b. For example, RelativePow(210, 2, 100) = 441 (2.1^2 = 4.41) Only defined for positive ints.

func SortableDecBytes

func SortableDecBytes(dec sdk.Dec) []byte

SortableDecBytes returns a byte slice representation of a Dec that can be sorted. Left and right pads with 0s so there are 18 digits to left and right of the decimal point. For this reason, there is a maximum and minimum value for this, enforced by ValidSortableDec.

func SplitCdpKey

func SplitCdpKey(key []byte) (byte, uint64)

SplitCdpKey returns the component parts of a cdp key

func SplitCollateralRatioIterKey

func SplitCollateralRatioIterKey(key []byte) (denom byte, ratio sdk.Dec)

SplitCollateralRatioIterKey split the collateral ratio key and return the denom, cdp id, and collateral:debt ratio

func SplitCollateralRatioKey

func SplitCollateralRatioKey(key []byte) (denom byte, cdpID uint64, ratio sdk.Dec)

SplitCollateralRatioKey split the collateral ratio key and return the denom, cdp id, and collateral:debt ratio

func SplitDenomIterKey

func SplitDenomIterKey(key []byte) byte

SplitDenomIterKey returns the component part of a key for iterating over cdps by denom

func SplitDepositIterKey

func SplitDepositIterKey(key []byte) (cdpID uint64)

SplitDepositIterKey returns the component parts of a key for iterating over deposits on a cdp

func SplitDepositKey

func SplitDepositKey(key []byte) (uint64, sdk.AccAddress)

SplitDepositKey returns the component parts of a deposit key

func ValidSortableDec

func ValidSortableDec(dec sdk.Dec) bool

ValidSortableDec sdk.Dec can't have precision of less than 10^-18

Types

type AccountKeeper

type AccountKeeper interface {
	// Return a new account with the next account number and the specified address. Does not save the new account to the store.
	NewAccountWithAddress(sdk.Context, sdk.AccAddress) authtypes.AccountI

	// Return a new account with the next account number. Does not save the new account to the store.
	NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI

	// Retrieve an account from the store.
	GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI

	// Set an account in the store.
	SetAccount(sdk.Context, authtypes.AccountI)

	// Remove an account from the store.
	RemoveAccount(sdk.Context, authtypes.AccountI)

	// Iterate over all accounts, calling the provided function. Stop iteraiton when it returns false.
	IterateAccounts(sdk.Context, func(authtypes.AccountI) bool)

	// Fetch the public key of an account at a specified address
	GetPubKey(sdk.Context, sdk.AccAddress) (cryptotypes.PubKey, error)

	// Fetch the sequence of an account at a specified address.
	GetSequence(sdk.Context, sdk.AccAddress) (uint64, error)

	// Fetch the next account number, and increment the internal counter.
	GetNextAccountNumber(sdk.Context) uint64

	GetModuleAddress(moduleName string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

AccountKeeper expected interface for the account keeper (noalias)

type AuctionKeeper

type AuctionKeeper interface {
	StartSurplusAuction(ctx sdk.Context, seller string, lot sdk.Coin, bidDenom string) (uint64, error)
	StartDebtAuction(ctx sdk.Context, buyer string, bid sdk.Coin, initialLot sdk.Coin, debt sdk.Coin) (uint64, error)
	StartCollateralAuction(ctx sdk.Context, seller string, lot sdk.Coin, maxBid sdk.Coin, lotReturnAddrs []sdk.AccAddress, lotReturnWeights []sdk.Int, debt sdk.Coin) (uint64, error)
}

AuctionKeeper expected interface for the auction keeper (noalias)

type AugmentedCdp added in v0.3.0

type AugmentedCdp struct {
	Cdp                    `protobuf:"bytes,1,opt,name=cdp,proto3,embedded=cdp" json:"cdp" yaml:"cdp"`
	CollateralValue        types.Coin                             `protobuf:"bytes,2,opt,name=collateral_value,json=collateralValue,proto3" json:"collateral_value" yaml:"collateral_value"`
	CollateralizationRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 198-byte string literal not displayed */
}

func NewAugmentedCdp added in v0.3.0

func NewAugmentedCdp(cdp Cdp, collateralValue sdk.Coin, collateralizationRatio sdk.Dec) AugmentedCdp

NewAugmentedCdp creates a new AugmentedCdp object

func (*AugmentedCdp) Descriptor added in v0.3.0

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

func (*AugmentedCdp) GetCollateralValue added in v0.3.0

func (m *AugmentedCdp) GetCollateralValue() types.Coin

func (*AugmentedCdp) Marshal added in v0.3.0

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

func (*AugmentedCdp) MarshalTo added in v0.3.0

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

func (*AugmentedCdp) MarshalToSizedBuffer added in v0.3.0

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

func (*AugmentedCdp) ProtoMessage added in v0.3.0

func (*AugmentedCdp) ProtoMessage()

func (*AugmentedCdp) Reset added in v0.3.0

func (m *AugmentedCdp) Reset()

func (*AugmentedCdp) Size added in v0.3.0

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

func (*AugmentedCdp) String added in v0.3.0

func (m *AugmentedCdp) String() string

func (*AugmentedCdp) Unmarshal added in v0.3.0

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

func (*AugmentedCdp) XXX_DiscardUnknown added in v0.3.0

func (m *AugmentedCdp) XXX_DiscardUnknown()

func (*AugmentedCdp) XXX_Marshal added in v0.3.0

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

func (*AugmentedCdp) XXX_Merge added in v0.3.0

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

func (*AugmentedCdp) XXX_Size added in v0.3.0

func (m *AugmentedCdp) XXX_Size() int

func (*AugmentedCdp) XXX_Unmarshal added in v0.3.0

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

type AugmentedCdps added in v0.3.0

type AugmentedCdps []AugmentedCdp

AugmentedCdps a collection of AugmentedCdp objects

func (AugmentedCdps) String added in v0.3.0

func (augcdps AugmentedCdps) String() string

String implements stringer

type BankKeeper added in v0.2.0

type BankKeeper interface {
	// View
	ValidateBalance(ctx sdk.Context, addr sdk.AccAddress) error
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool

	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetAccountsBalances(ctx sdk.Context) []banktypes.Balance
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(coin sdk.Coin) (stop bool))
	IterateAllBalances(ctx sdk.Context, cb func(address sdk.AccAddress, coin sdk.Coin) (stop bool))

	// Send
	InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

	GetParams(ctx sdk.Context) banktypes.Params
	SetParams(ctx sdk.Context, params banktypes.Params)

	SendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool
	SendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error

	BlockedAddr(addr sdk.AccAddress) bool

	//
	InitGenesis(sdk.Context, *banktypes.GenesisState)
	ExportGenesis(sdk.Context) *banktypes.GenesisState

	GetSupply(ctx sdk.Context) exported.SupplyI
	SetSupply(ctx sdk.Context, supply exported.SupplyI)

	GetDenomMetaData(ctx sdk.Context, denom string) banktypes.Metadata
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
	IterateAllDenomMetaData(ctx sdk.Context, cb func(banktypes.Metadata) bool)

	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error

	DelegateCoins(ctx sdk.Context, delegatorAddr, moduleAccAddr sdk.AccAddress, amt sdk.Coins) error
	UndelegateCoins(ctx sdk.Context, moduleAccAddr, delegatorAddr sdk.AccAddress, amt sdk.Coins) error
	MarshalSupply(supplyI exported.SupplyI) ([]byte, error)
	UnmarshalSupply(bz []byte) (exported.SupplyI, error)
}

type Cdp added in v0.3.0

type Cdp struct {
	Id              uint64                                       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Owner           github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,2,opt,name=owner,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"owner" yaml:"owner"`
	Type            string                                       `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty" yaml:"type"`
	Collateral      types.Coin                                   `protobuf:"bytes,4,opt,name=collateral,proto3" json:"collateral" yaml:"collateral"`
	Principal       types.Coin                                   `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal" yaml:"principal"`
	AccumulatedFees types.Coin                                   `protobuf:"bytes,6,opt,name=accumulated_fees,json=accumulatedFees,proto3" json:"accumulated_fees" yaml:"accumulated_fees"`
	FeesUpdated     time.Time                                    `protobuf:"bytes,7,opt,name=fees_updated,json=feesUpdated,proto3,stdtime" json:"fees_updated" yaml:"fees_updated"`
	InterestFactor  github_com_cosmos_cosmos_sdk_types.Dec       `` /* 166-byte string literal not displayed */
}

func NewCdp added in v0.3.0

func NewCdp(id uint64, owner sdk.AccAddress, collateral sdk.Coin, collateralType string, principal sdk.Coin, time time.Time, interestFactor sdk.Dec) Cdp

NewCdp creates a new Cdp object

func NewCdpWithFees added in v0.3.0

func NewCdpWithFees(id uint64, owner sdk.AccAddress, collateral sdk.Coin, collateralType string, principal, fees sdk.Coin, time time.Time, interestFactor sdk.Dec) Cdp

NewCdpWithFees creates a new Cdp object, for use during migration

func (*Cdp) Descriptor added in v0.3.0

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

func (*Cdp) GetAccumulatedFees added in v0.3.0

func (m *Cdp) GetAccumulatedFees() types.Coin

func (*Cdp) GetCollateral added in v0.3.0

func (m *Cdp) GetCollateral() types.Coin

func (*Cdp) GetFeesUpdated added in v0.3.0

func (m *Cdp) GetFeesUpdated() time.Time

func (*Cdp) GetId added in v0.3.0

func (m *Cdp) GetId() uint64

func (*Cdp) GetPrincipal added in v0.3.0

func (m *Cdp) GetPrincipal() types.Coin

func (Cdp) GetTotalPrincipal added in v0.3.0

func (cdp Cdp) GetTotalPrincipal() sdk.Coin

GetTotalPrincipal returns the total principle for the cdp

func (*Cdp) GetType added in v0.3.0

func (m *Cdp) GetType() string

func (*Cdp) Marshal added in v0.3.0

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

func (*Cdp) MarshalTo added in v0.3.0

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

func (*Cdp) MarshalToSizedBuffer added in v0.3.0

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

func (*Cdp) ProtoMessage added in v0.3.0

func (*Cdp) ProtoMessage()

func (*Cdp) Reset added in v0.3.0

func (m *Cdp) Reset()

func (*Cdp) Size added in v0.3.0

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

func (*Cdp) String added in v0.3.0

func (m *Cdp) String() string

func (*Cdp) Unmarshal added in v0.3.0

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

func (Cdp) Validate added in v0.3.0

func (cdp Cdp) Validate() error

Validate performs a basic validation of the Cdp fields.

func (*Cdp) XXX_DiscardUnknown added in v0.3.0

func (m *Cdp) XXX_DiscardUnknown()

func (*Cdp) XXX_Marshal added in v0.3.0

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

func (*Cdp) XXX_Merge added in v0.3.0

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

func (*Cdp) XXX_Size added in v0.3.0

func (m *Cdp) XXX_Size() int

func (*Cdp) XXX_Unmarshal added in v0.3.0

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

type CdpHooks added in v0.3.0

type CdpHooks interface {
	AfterCdpCreated(ctx sdk.Context, cdp Cdp)
	BeforeCdpModified(ctx sdk.Context, cdp Cdp)
}

CdpHooks event hooks for other keepers to run code in response to Cdp modifications

type Cdps added in v0.3.0

type Cdps []Cdp

Cdps a collection of Cdp objects

func (Cdps) String added in v0.3.0

func (cdps Cdps) String() string

String implements stringer

func (Cdps) Validate added in v0.3.0

func (cdps Cdps) Validate() error

Validate validates each Cdp

type CollateralParam

type CollateralParam struct {
	Denom                            string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	Type                             string                                 `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty" yaml:"type"`
	LiquidationRatio                 github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */
	DebtLimit                        types.Coin                             `protobuf:"bytes,4,opt,name=debt_limit,json=debtLimit,proto3" json:"debt_limit" yaml:"debt_limit"`
	StabilityFee                     github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	AuctionSize                      github_com_cosmos_cosmos_sdk_types.Int `` /* 154-byte string literal not displayed */
	LiquidationPenalty               github_com_cosmos_cosmos_sdk_types.Dec `` /* 182-byte string literal not displayed */
	Prefix                           uint32                                 `protobuf:"varint,8,opt,name=prefix,proto3" json:"prefix,omitempty" yaml:"prefix"`
	SpotMarketId                     string                                 `protobuf:"bytes,9,opt,name=spot_market_id,json=spotMarketId,proto3" json:"spot_market_id,omitempty" yaml:"spot_market_id"`
	LiquidationMarketId              string                                 `` /* 150-byte string literal not displayed */
	KeeperRewardPercentage           github_com_cosmos_cosmos_sdk_types.Dec `` /* 202-byte string literal not displayed */
	CheckCollateralizationIndexCount github_com_cosmos_cosmos_sdk_types.Int `` /* 245-byte string literal not displayed */
	ConversionFactor                 github_com_cosmos_cosmos_sdk_types.Int `` /* 175-byte string literal not displayed */
}

func NewCollateralParam added in v0.2.0

func NewCollateralParam(
	denom, ctype string, liqRatio sdk.Dec, debtLimit sdk.Coin, stabilityFee sdk.Dec, auctionSize sdk.Int,
	liqPenalty sdk.Dec, prefix byte, spotMarketID, liquidationMarketID string, keeperReward sdk.Dec, checkIndexCount sdk.Int, conversionFactor sdk.Int) CollateralParam

NewCollateralParam returns a new CollateralParam

func (*CollateralParam) Descriptor added in v0.2.0

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

func (*CollateralParam) GetDebtLimit added in v0.2.0

func (m *CollateralParam) GetDebtLimit() types.Coin

func (*CollateralParam) GetDenom added in v0.2.0

func (m *CollateralParam) GetDenom() string

func (*CollateralParam) GetLiquidationMarketId added in v0.2.0

func (m *CollateralParam) GetLiquidationMarketId() string

func (*CollateralParam) GetPrefix added in v0.2.0

func (m *CollateralParam) GetPrefix() uint32

func (*CollateralParam) GetSpotMarketId added in v0.2.0

func (m *CollateralParam) GetSpotMarketId() string

func (*CollateralParam) GetType added in v0.2.0

func (m *CollateralParam) GetType() string

func (*CollateralParam) Marshal added in v0.2.0

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

func (*CollateralParam) MarshalTo added in v0.2.0

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

func (*CollateralParam) MarshalToSizedBuffer added in v0.2.0

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

func (*CollateralParam) ProtoMessage added in v0.2.0

func (*CollateralParam) ProtoMessage()

func (*CollateralParam) Reset added in v0.2.0

func (m *CollateralParam) Reset()

func (*CollateralParam) Size added in v0.2.0

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

func (*CollateralParam) String

func (m *CollateralParam) String() string

func (*CollateralParam) Unmarshal added in v0.2.0

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

func (*CollateralParam) XXX_DiscardUnknown added in v0.2.0

func (m *CollateralParam) XXX_DiscardUnknown()

func (*CollateralParam) XXX_Marshal added in v0.2.0

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

func (*CollateralParam) XXX_Merge added in v0.2.0

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

func (*CollateralParam) XXX_Size added in v0.2.0

func (m *CollateralParam) XXX_Size() int

func (*CollateralParam) XXX_Unmarshal added in v0.2.0

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

type CollateralParams

type CollateralParams []CollateralParam

CollateralParams array of CollateralParam

func (CollateralParams) String

func (cps CollateralParams) String() string

String implements fmt.Stringer

type DebtParam

type DebtParam struct {
	Denom            string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	ReferenceAsset   string                                 `` /* 126-byte string literal not displayed */
	ConversionFactor github_com_cosmos_cosmos_sdk_types.Int `` /* 174-byte string literal not displayed */
	DebtFloor        github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
}

func NewDebtParam added in v0.2.0

func NewDebtParam(denom, refAsset string, conversionFactor, debtFloor sdk.Int) DebtParam

NewDebtParam returns a new DebtParam

func (*DebtParam) Descriptor added in v0.2.0

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

func (*DebtParam) GetDenom added in v0.2.0

func (m *DebtParam) GetDenom() string

func (*DebtParam) GetReferenceAsset added in v0.2.0

func (m *DebtParam) GetReferenceAsset() string

func (*DebtParam) Marshal added in v0.2.0

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

func (*DebtParam) MarshalTo added in v0.2.0

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

func (*DebtParam) MarshalToSizedBuffer added in v0.2.0

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

func (*DebtParam) ProtoMessage added in v0.2.0

func (*DebtParam) ProtoMessage()

func (*DebtParam) Reset added in v0.2.0

func (m *DebtParam) Reset()

func (*DebtParam) Size added in v0.2.0

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

func (*DebtParam) String

func (m *DebtParam) String() string

func (*DebtParam) Unmarshal added in v0.2.0

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

func (*DebtParam) XXX_DiscardUnknown added in v0.2.0

func (m *DebtParam) XXX_DiscardUnknown()

func (*DebtParam) XXX_Marshal added in v0.2.0

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

func (*DebtParam) XXX_Merge added in v0.2.0

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

func (*DebtParam) XXX_Size added in v0.2.0

func (m *DebtParam) XXX_Size() int

func (*DebtParam) XXX_Unmarshal added in v0.2.0

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

type DebtParams

type DebtParams []DebtParam

DebtParams array of DebtParam

func (DebtParams) String

func (dps DebtParams) String() string

String implements fmt.Stringer

type Deposit

type Deposit struct {
	CdpId     uint64                                       `protobuf:"varint,1,opt,name=cdp_id,json=cdpId,proto3" json:"cdp_id,omitempty" yaml:"cdp_id"`
	Depositor github_com_lcnem_eurx_types.StringAccAddress `` /* 134-byte string literal not displayed */
	Amount    types.Coin                                   `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount" yaml:"amount"`
}

func NewDeposit

func NewDeposit(cdpID uint64, depositor sdk.AccAddress, amount sdk.Coin) Deposit

NewDeposit creates a new Deposit object

func (*Deposit) Descriptor added in v0.2.0

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

func (Deposit) Empty

func (d Deposit) Empty() bool

Empty returns whether a deposit is empty.

func (Deposit) Equals

func (d Deposit) Equals(comp Deposit) bool

Equals returns whether two deposits are equal.

func (*Deposit) GetAmount added in v0.2.0

func (m *Deposit) GetAmount() types.Coin

func (*Deposit) GetCdpId added in v0.2.0

func (m *Deposit) GetCdpId() uint64

func (*Deposit) Marshal added in v0.2.0

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

func (*Deposit) MarshalTo added in v0.2.0

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

func (*Deposit) MarshalToSizedBuffer added in v0.2.0

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

func (*Deposit) ProtoMessage added in v0.2.0

func (*Deposit) ProtoMessage()

func (*Deposit) Reset added in v0.2.0

func (m *Deposit) Reset()

func (*Deposit) Size added in v0.2.0

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

func (*Deposit) String

func (m *Deposit) String() string

func (*Deposit) Unmarshal added in v0.2.0

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

func (Deposit) Validate

func (d Deposit) Validate() error

Validate performs a basic validation of the deposit fields.

func (*Deposit) XXX_DiscardUnknown added in v0.2.0

func (m *Deposit) XXX_DiscardUnknown()

func (*Deposit) XXX_Marshal added in v0.2.0

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

func (*Deposit) XXX_Merge added in v0.2.0

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

func (*Deposit) XXX_Size added in v0.2.0

func (m *Deposit) XXX_Size() int

func (*Deposit) XXX_Unmarshal added in v0.2.0

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

type Deposits

type Deposits []Deposit

Deposits a collection of Deposit objects

func (Deposits) String

func (ds Deposits) String() string

String implements fmt.Stringer

func (Deposits) SumCollateral

func (ds Deposits) SumCollateral() (sum sdk.Int)

SumCollateral returns the total amount of collateral in the input deposits

func (Deposits) Validate

func (ds Deposits) Validate() error

Validate validates each deposit

type GenesisAccumulationTime added in v0.2.0

type GenesisAccumulationTime struct {
	CollateralType           string                                 `` /* 126-byte string literal not displayed */
	PreviousAccumulationTime time.Time                              `` /* 167-byte string literal not displayed */
	InterestFactor           github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */
}

func NewGenesisAccumulationTime added in v0.2.0

func NewGenesisAccumulationTime(ctype string, prevTime time.Time, factor sdk.Dec) GenesisAccumulationTime

NewGenesisAccumulationTime returns a new GenesisAccumulationTime

func (*GenesisAccumulationTime) Descriptor added in v0.2.0

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

func (*GenesisAccumulationTime) GetCollateralType added in v0.2.0

func (m *GenesisAccumulationTime) GetCollateralType() string

func (*GenesisAccumulationTime) GetPreviousAccumulationTime added in v0.2.0

func (m *GenesisAccumulationTime) GetPreviousAccumulationTime() time.Time

func (*GenesisAccumulationTime) Marshal added in v0.2.0

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

func (*GenesisAccumulationTime) MarshalTo added in v0.2.0

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

func (*GenesisAccumulationTime) MarshalToSizedBuffer added in v0.2.0

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

func (*GenesisAccumulationTime) ProtoMessage added in v0.2.0

func (*GenesisAccumulationTime) ProtoMessage()

func (*GenesisAccumulationTime) Reset added in v0.2.0

func (m *GenesisAccumulationTime) Reset()

func (*GenesisAccumulationTime) Size added in v0.2.0

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

func (*GenesisAccumulationTime) String added in v0.2.0

func (m *GenesisAccumulationTime) String() string

func (*GenesisAccumulationTime) Unmarshal added in v0.2.0

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

func (GenesisAccumulationTime) Validate added in v0.2.0

func (gat GenesisAccumulationTime) Validate() error

Validate performs validation of GenesisAccumulationTime

func (*GenesisAccumulationTime) XXX_DiscardUnknown added in v0.2.0

func (m *GenesisAccumulationTime) XXX_DiscardUnknown()

func (*GenesisAccumulationTime) XXX_Marshal added in v0.2.0

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

func (*GenesisAccumulationTime) XXX_Merge added in v0.2.0

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

func (*GenesisAccumulationTime) XXX_Size added in v0.2.0

func (m *GenesisAccumulationTime) XXX_Size() int

func (*GenesisAccumulationTime) XXX_Unmarshal added in v0.2.0

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

type GenesisAccumulationTimes added in v0.2.0

type GenesisAccumulationTimes []GenesisAccumulationTime

GenesisAccumulationTimes slice of GenesisAccumulationTime

func (GenesisAccumulationTimes) Validate added in v0.2.0

func (gats GenesisAccumulationTimes) Validate() error

Validate performs validation of GenesisAccumulationTimes

type GenesisState

type GenesisState struct {
	Params                    Params                    `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
	Cdps                      []Cdp                     `protobuf:"bytes,2,rep,name=cdps,proto3" json:"cdps" yaml:"cdps"`
	Deposits                  []Deposit                 `protobuf:"bytes,3,rep,name=deposits,proto3" json:"deposits" yaml:"deposits"`
	StartingCdpId             uint64                    `` /* 126-byte string literal not displayed */
	DebtDenom                 string                    `protobuf:"bytes,5,opt,name=debt_denom,json=debtDenom,proto3" json:"debt_denom,omitempty" yaml:"debt_denom"`
	GovDenom                  string                    `protobuf:"bytes,6,opt,name=gov_denom,json=govDenom,proto3" json:"gov_denom,omitempty" yaml:"gov_denom"`
	PreviousAccumulationTimes []GenesisAccumulationTime `` /* 163-byte string literal not displayed */
	TotalPrincipals           []GenesisTotalPrincipal   `protobuf:"bytes,8,rep,name=total_principals,json=totalPrincipals,proto3" json:"total_principals" yaml:"total_principals"`
}

GenesisState defines the cdp module's genesis state.

func DefaultGenesis added in v0.2.0

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func NewGenesisState

func NewGenesisState(params Params, cdps Cdps, deposits Deposits, startingCdpID uint64,
	debtDenom, govDenom string, prevAccumTimes GenesisAccumulationTimes,
	totalPrincipals GenesisTotalPrincipals) GenesisState

func (*GenesisState) Descriptor added in v0.2.0

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

func (GenesisState) Equal

func (gs GenesisState) Equal(gs2 GenesisState) bool

Equal checks whether two gov GenesisState structs are equivalent

func (*GenesisState) GetCdps added in v0.2.0

func (m *GenesisState) GetCdps() []Cdp

func (*GenesisState) GetDebtDenom added in v0.2.0

func (m *GenesisState) GetDebtDenom() string

func (*GenesisState) GetDeposits added in v0.2.0

func (m *GenesisState) GetDeposits() []Deposit

func (*GenesisState) GetGovDenom added in v0.2.0

func (m *GenesisState) GetGovDenom() string

func (*GenesisState) GetParams added in v0.2.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPreviousAccumulationTimes added in v0.2.0

func (m *GenesisState) GetPreviousAccumulationTimes() []GenesisAccumulationTime

func (*GenesisState) GetStartingCdpId added in v0.2.0

func (m *GenesisState) GetStartingCdpId() uint64

func (*GenesisState) GetTotalPrincipals added in v0.2.0

func (m *GenesisState) GetTotalPrincipals() []GenesisTotalPrincipal

func (GenesisState) IsEmpty

func (gs GenesisState) IsEmpty() bool

IsEmpty returns true if a GenesisState is empty

func (*GenesisState) Marshal added in v0.2.0

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

func (*GenesisState) MarshalTo added in v0.2.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.2.0

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

func (*GenesisState) ProtoMessage added in v0.2.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.2.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.2.0

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

func (*GenesisState) String added in v0.2.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.2.0

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown added in v0.2.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.2.0

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

func (*GenesisState) XXX_Merge added in v0.2.0

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

func (*GenesisState) XXX_Size added in v0.2.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.2.0

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

type GenesisTotalPrincipal added in v0.2.0

type GenesisTotalPrincipal struct {
	CollateralType string                                 `` /* 126-byte string literal not displayed */
	TotalPrincipal github_com_cosmos_cosmos_sdk_types.Int `` /* 166-byte string literal not displayed */
}

func NewGenesisTotalPrincipal added in v0.2.0

func NewGenesisTotalPrincipal(ctype string, principal sdk.Int) GenesisTotalPrincipal

NewGenesisTotalPrincipal returns a new GenesisTotalPrincipal

func (*GenesisTotalPrincipal) Descriptor added in v0.2.0

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

func (*GenesisTotalPrincipal) GetCollateralType added in v0.2.0

func (m *GenesisTotalPrincipal) GetCollateralType() string

func (*GenesisTotalPrincipal) Marshal added in v0.2.0

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

func (*GenesisTotalPrincipal) MarshalTo added in v0.2.0

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

func (*GenesisTotalPrincipal) MarshalToSizedBuffer added in v0.2.0

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

func (*GenesisTotalPrincipal) ProtoMessage added in v0.2.0

func (*GenesisTotalPrincipal) ProtoMessage()

func (*GenesisTotalPrincipal) Reset added in v0.2.0

func (m *GenesisTotalPrincipal) Reset()

func (*GenesisTotalPrincipal) Size added in v0.2.0

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

func (*GenesisTotalPrincipal) String added in v0.2.0

func (m *GenesisTotalPrincipal) String() string

func (*GenesisTotalPrincipal) Unmarshal added in v0.2.0

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

func (GenesisTotalPrincipal) Validate added in v0.2.0

func (gtp GenesisTotalPrincipal) Validate() error

Validate performs validation of GenesisTotalPrincipal

func (*GenesisTotalPrincipal) XXX_DiscardUnknown added in v0.2.0

func (m *GenesisTotalPrincipal) XXX_DiscardUnknown()

func (*GenesisTotalPrincipal) XXX_Marshal added in v0.2.0

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

func (*GenesisTotalPrincipal) XXX_Merge added in v0.2.0

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

func (*GenesisTotalPrincipal) XXX_Size added in v0.2.0

func (m *GenesisTotalPrincipal) XXX_Size() int

func (*GenesisTotalPrincipal) XXX_Unmarshal added in v0.2.0

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

type GenesisTotalPrincipals added in v0.2.0

type GenesisTotalPrincipals []GenesisTotalPrincipal

GenesisTotalPrincipals slice of GenesisTotalPrincipal

func (GenesisTotalPrincipals) Validate added in v0.2.0

func (gtps GenesisTotalPrincipals) Validate() error

Validate performs validation of GenesisTotalPrincipals

type MsgCreateCdp added in v0.3.0

type MsgCreateCdp struct {
	Sender         github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,opt,name=sender,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"sender" yaml:"sender"`
	Collateral     types.Coin                                   `protobuf:"bytes,2,opt,name=collateral,proto3" json:"collateral" yaml:"collateral"`
	Principal      types.Coin                                   `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal" yaml:"principal"`
	CollateralType string                                       `` /* 126-byte string literal not displayed */
}

func NewMsgCreateCdp added in v0.3.0

func NewMsgCreateCdp(sender sdk.AccAddress, collateral sdk.Coin, principal sdk.Coin, collateralType string) MsgCreateCdp

NewMsgCreateCdp returns a new MsgPlaceBid.

func (*MsgCreateCdp) Descriptor added in v0.3.0

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

func (*MsgCreateCdp) GetCollateral added in v0.3.0

func (m *MsgCreateCdp) GetCollateral() types.Coin

func (*MsgCreateCdp) GetCollateralType added in v0.3.0

func (m *MsgCreateCdp) GetCollateralType() string

func (*MsgCreateCdp) GetPrincipal added in v0.3.0

func (m *MsgCreateCdp) GetPrincipal() types.Coin

func (MsgCreateCdp) GetSignBytes added in v0.3.0

func (msg MsgCreateCdp) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgCreateCdp) GetSigners added in v0.3.0

func (msg MsgCreateCdp) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgCreateCdp) Marshal added in v0.3.0

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

func (*MsgCreateCdp) MarshalTo added in v0.3.0

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

func (*MsgCreateCdp) MarshalToSizedBuffer added in v0.3.0

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

func (*MsgCreateCdp) ProtoMessage added in v0.3.0

func (*MsgCreateCdp) ProtoMessage()

func (*MsgCreateCdp) Reset added in v0.3.0

func (m *MsgCreateCdp) Reset()

func (MsgCreateCdp) Route added in v0.3.0

func (msg MsgCreateCdp) Route() string

Route return the message type used for routing the message.

func (*MsgCreateCdp) Size added in v0.3.0

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

func (*MsgCreateCdp) String added in v0.3.0

func (m *MsgCreateCdp) String() string

func (MsgCreateCdp) Type added in v0.3.0

func (msg MsgCreateCdp) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgCreateCdp) Unmarshal added in v0.3.0

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

func (MsgCreateCdp) ValidateBasic added in v0.3.0

func (msg MsgCreateCdp) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgCreateCdp) XXX_DiscardUnknown added in v0.3.0

func (m *MsgCreateCdp) XXX_DiscardUnknown()

func (*MsgCreateCdp) XXX_Marshal added in v0.3.0

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

func (*MsgCreateCdp) XXX_Merge added in v0.3.0

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

func (*MsgCreateCdp) XXX_Size added in v0.3.0

func (m *MsgCreateCdp) XXX_Size() int

func (*MsgCreateCdp) XXX_Unmarshal added in v0.3.0

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

type MsgDeposit

type MsgDeposit struct {
	Depositor      github_com_lcnem_eurx_types.StringAccAddress `` /* 134-byte string literal not displayed */
	Owner          github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,2,opt,name=owner,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"owner" yaml:"owner"`
	Collateral     types.Coin                                   `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral" yaml:"collateral"`
	CollateralType string                                       `` /* 126-byte string literal not displayed */
}

func NewMsgDeposit

func NewMsgDeposit(owner sdk.AccAddress, depositor sdk.AccAddress, collateral sdk.Coin, collateralType string) MsgDeposit

NewMsgDeposit returns a new MsgDeposit

func (*MsgDeposit) Descriptor added in v0.2.0

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

func (*MsgDeposit) GetCollateral added in v0.2.0

func (m *MsgDeposit) GetCollateral() types.Coin

func (*MsgDeposit) GetCollateralType added in v0.2.0

func (m *MsgDeposit) GetCollateralType() string

func (MsgDeposit) GetSignBytes

func (msg MsgDeposit) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgDeposit) GetSigners

func (msg MsgDeposit) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgDeposit) Marshal added in v0.2.0

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

func (*MsgDeposit) MarshalTo added in v0.2.0

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

func (*MsgDeposit) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgDeposit) ProtoMessage added in v0.2.0

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset added in v0.2.0

func (m *MsgDeposit) Reset()

func (MsgDeposit) Route

func (msg MsgDeposit) Route() string

Route return the message type used for routing the message.

func (*MsgDeposit) Size added in v0.2.0

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

func (*MsgDeposit) String

func (m *MsgDeposit) String() string

func (MsgDeposit) Type

func (msg MsgDeposit) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgDeposit) Unmarshal added in v0.2.0

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

func (MsgDeposit) ValidateBasic

func (msg MsgDeposit) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgDeposit) XXX_DiscardUnknown added in v0.2.0

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal added in v0.2.0

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

func (*MsgDeposit) XXX_Merge added in v0.2.0

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

func (*MsgDeposit) XXX_Size added in v0.2.0

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal added in v0.2.0

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

type MsgDrawDebt

type MsgDrawDebt struct {
	Sender         github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,opt,name=sender,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"sender" yaml:"sender"`
	CollateralType string                                       `` /* 126-byte string literal not displayed */
	Principal      types.Coin                                   `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal" yaml:"principal"`
}

func NewMsgDrawDebt

func NewMsgDrawDebt(sender sdk.AccAddress, collateralType string, principal sdk.Coin) MsgDrawDebt

NewMsgDrawDebt returns a new MsgDrawDebt

func (*MsgDrawDebt) Descriptor added in v0.2.0

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

func (*MsgDrawDebt) GetCollateralType added in v0.2.0

func (m *MsgDrawDebt) GetCollateralType() string

func (*MsgDrawDebt) GetPrincipal added in v0.2.0

func (m *MsgDrawDebt) GetPrincipal() types.Coin

func (MsgDrawDebt) GetSignBytes

func (msg MsgDrawDebt) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgDrawDebt) GetSigners

func (msg MsgDrawDebt) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgDrawDebt) Marshal added in v0.2.0

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

func (*MsgDrawDebt) MarshalTo added in v0.2.0

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

func (*MsgDrawDebt) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgDrawDebt) ProtoMessage added in v0.2.0

func (*MsgDrawDebt) ProtoMessage()

func (*MsgDrawDebt) Reset added in v0.2.0

func (m *MsgDrawDebt) Reset()

func (MsgDrawDebt) Route

func (msg MsgDrawDebt) Route() string

Route return the message type used for routing the message.

func (*MsgDrawDebt) Size added in v0.2.0

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

func (*MsgDrawDebt) String

func (m *MsgDrawDebt) String() string

func (MsgDrawDebt) Type

func (msg MsgDrawDebt) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgDrawDebt) Unmarshal added in v0.2.0

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

func (MsgDrawDebt) ValidateBasic

func (msg MsgDrawDebt) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgDrawDebt) XXX_DiscardUnknown added in v0.2.0

func (m *MsgDrawDebt) XXX_DiscardUnknown()

func (*MsgDrawDebt) XXX_Marshal added in v0.2.0

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

func (*MsgDrawDebt) XXX_Merge added in v0.2.0

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

func (*MsgDrawDebt) XXX_Size added in v0.2.0

func (m *MsgDrawDebt) XXX_Size() int

func (*MsgDrawDebt) XXX_Unmarshal added in v0.2.0

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

type MsgLiquidate added in v0.2.0

type MsgLiquidate struct {
	Keeper         github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,opt,name=keeper,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"keeper" yaml:"keeper"`
	Borrower       github_com_lcnem_eurx_types.StringAccAddress `` /* 131-byte string literal not displayed */
	CollateralType string                                       `` /* 126-byte string literal not displayed */
}

func NewMsgLiquidate added in v0.2.0

func NewMsgLiquidate(keeper, borrower sdk.AccAddress, ctype string) MsgLiquidate

NewMsgLiquidate returns a new MsgLiquidate

func (*MsgLiquidate) Descriptor added in v0.2.0

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

func (*MsgLiquidate) GetCollateralType added in v0.2.0

func (m *MsgLiquidate) GetCollateralType() string

func (MsgLiquidate) GetSignBytes added in v0.2.0

func (msg MsgLiquidate) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgLiquidate) GetSigners added in v0.2.0

func (msg MsgLiquidate) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgLiquidate) Marshal added in v0.2.0

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

func (*MsgLiquidate) MarshalTo added in v0.2.0

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

func (*MsgLiquidate) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgLiquidate) ProtoMessage added in v0.2.0

func (*MsgLiquidate) ProtoMessage()

func (*MsgLiquidate) Reset added in v0.2.0

func (m *MsgLiquidate) Reset()

func (MsgLiquidate) Route added in v0.2.0

func (msg MsgLiquidate) Route() string

Route return the message type used for routing the message.

func (*MsgLiquidate) Size added in v0.2.0

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

func (*MsgLiquidate) String added in v0.2.0

func (m *MsgLiquidate) String() string

func (MsgLiquidate) Type added in v0.2.0

func (msg MsgLiquidate) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgLiquidate) Unmarshal added in v0.2.0

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

func (MsgLiquidate) ValidateBasic added in v0.2.0

func (msg MsgLiquidate) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgLiquidate) XXX_DiscardUnknown added in v0.2.0

func (m *MsgLiquidate) XXX_DiscardUnknown()

func (*MsgLiquidate) XXX_Marshal added in v0.2.0

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

func (*MsgLiquidate) XXX_Merge added in v0.2.0

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

func (*MsgLiquidate) XXX_Size added in v0.2.0

func (m *MsgLiquidate) XXX_Size() int

func (*MsgLiquidate) XXX_Unmarshal added in v0.2.0

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

type MsgRepayDebt

type MsgRepayDebt struct {
	Sender         github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,opt,name=sender,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"sender" yaml:"sender"`
	CollateralType string                                       `` /* 126-byte string literal not displayed */
	Payment        types.Coin                                   `protobuf:"bytes,3,opt,name=payment,proto3" json:"payment" yaml:"payment"`
}

func NewMsgRepayDebt

func NewMsgRepayDebt(sender sdk.AccAddress, collateralType string, payment sdk.Coin) MsgRepayDebt

NewMsgRepayDebt returns a new MsgRepayDebt

func (*MsgRepayDebt) Descriptor added in v0.2.0

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

func (*MsgRepayDebt) GetCollateralType added in v0.2.0

func (m *MsgRepayDebt) GetCollateralType() string

func (*MsgRepayDebt) GetPayment added in v0.2.0

func (m *MsgRepayDebt) GetPayment() types.Coin

func (MsgRepayDebt) GetSignBytes

func (msg MsgRepayDebt) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgRepayDebt) GetSigners

func (msg MsgRepayDebt) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgRepayDebt) Marshal added in v0.2.0

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

func (*MsgRepayDebt) MarshalTo added in v0.2.0

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

func (*MsgRepayDebt) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgRepayDebt) ProtoMessage added in v0.2.0

func (*MsgRepayDebt) ProtoMessage()

func (*MsgRepayDebt) Reset added in v0.2.0

func (m *MsgRepayDebt) Reset()

func (MsgRepayDebt) Route

func (msg MsgRepayDebt) Route() string

Route return the message type used for routing the message.

func (*MsgRepayDebt) Size added in v0.2.0

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

func (*MsgRepayDebt) String

func (m *MsgRepayDebt) String() string

func (MsgRepayDebt) Type

func (msg MsgRepayDebt) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgRepayDebt) Unmarshal added in v0.2.0

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

func (MsgRepayDebt) ValidateBasic

func (msg MsgRepayDebt) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgRepayDebt) XXX_DiscardUnknown added in v0.2.0

func (m *MsgRepayDebt) XXX_DiscardUnknown()

func (*MsgRepayDebt) XXX_Marshal added in v0.2.0

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

func (*MsgRepayDebt) XXX_Merge added in v0.2.0

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

func (*MsgRepayDebt) XXX_Size added in v0.2.0

func (m *MsgRepayDebt) XXX_Size() int

func (*MsgRepayDebt) XXX_Unmarshal added in v0.2.0

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

type MsgWithdraw

type MsgWithdraw struct {
	Depositor      github_com_lcnem_eurx_types.StringAccAddress `` /* 134-byte string literal not displayed */
	Owner          github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,2,opt,name=owner,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"owner" yaml:"owner"`
	Collateral     types.Coin                                   `protobuf:"bytes,3,opt,name=collateral,proto3" json:"collateral" yaml:"collateral"`
	CollateralType string                                       `` /* 126-byte string literal not displayed */
}

func NewMsgWithdraw

func NewMsgWithdraw(owner sdk.AccAddress, depositor sdk.AccAddress, collateral sdk.Coin, collateralType string) MsgWithdraw

NewMsgWithdraw returns a new MsgDeposit

func (*MsgWithdraw) Descriptor added in v0.2.0

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

func (*MsgWithdraw) GetCollateral added in v0.2.0

func (m *MsgWithdraw) GetCollateral() types.Coin

func (*MsgWithdraw) GetCollateralType added in v0.2.0

func (m *MsgWithdraw) GetCollateralType() string

func (MsgWithdraw) GetSignBytes

func (msg MsgWithdraw) GetSignBytes() []byte

GetSignBytes gets the canonical byte representation of the Msg.

func (MsgWithdraw) GetSigners

func (msg MsgWithdraw) GetSigners() []sdk.AccAddress

GetSigners returns the addresses of signers that must sign.

func (*MsgWithdraw) Marshal added in v0.2.0

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

func (*MsgWithdraw) MarshalTo added in v0.2.0

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

func (*MsgWithdraw) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgWithdraw) ProtoMessage added in v0.2.0

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset added in v0.2.0

func (m *MsgWithdraw) Reset()

func (MsgWithdraw) Route

func (msg MsgWithdraw) Route() string

Route return the message type used for routing the message.

func (*MsgWithdraw) Size added in v0.2.0

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

func (*MsgWithdraw) String

func (m *MsgWithdraw) String() string

func (MsgWithdraw) Type

func (msg MsgWithdraw) Type() string

Type returns a human-readable string for the message, intended for utilization within tags.

func (*MsgWithdraw) Unmarshal added in v0.2.0

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

func (MsgWithdraw) ValidateBasic

func (msg MsgWithdraw) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgWithdraw) XXX_DiscardUnknown added in v0.2.0

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal added in v0.2.0

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

func (*MsgWithdraw) XXX_Merge added in v0.2.0

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

func (*MsgWithdraw) XXX_Size added in v0.2.0

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal added in v0.2.0

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

type MultiCdpHooks added in v0.3.0

type MultiCdpHooks []CdpHooks

MultiCdpHooks combine multiple cdp hooks, all hook functions are run in array sequence

func NewMultiCdpHooks added in v0.3.0

func NewMultiCdpHooks(hooks ...CdpHooks) MultiCdpHooks

NewMultiCdpHooks returns a new MultiCdpHooks

func (MultiCdpHooks) AfterCdpCreated added in v0.3.0

func (h MultiCdpHooks) AfterCdpCreated(ctx sdk.Context, cdp Cdp)

AfterCdpCreated runs before a cdp is created

func (MultiCdpHooks) BeforeCdpModified added in v0.3.0

func (h MultiCdpHooks) BeforeCdpModified(ctx sdk.Context, cdp Cdp)

BeforeCdpModified runs before a cdp is modified

type Params

type Params struct {
	CollateralParams        []CollateralParam                      `protobuf:"bytes,1,rep,name=collateral_params,json=collateralParams,proto3" json:"collateral_params" yaml:"collateral_params"`
	DebtParam               DebtParam                              `protobuf:"bytes,2,opt,name=debt_param,json=debtParam,proto3" json:"debt_param" yaml:"debt_param"`
	GlobalDebtLimit         types.Coin                             `protobuf:"bytes,3,opt,name=global_debt_limit,json=globalDebtLimit,proto3" json:"global_debt_limit" yaml:"global_debt_limit"`
	SurplusAuctionThreshold github_com_cosmos_cosmos_sdk_types.Int `` /* 205-byte string literal not displayed */
	SurplusAuctionLot       github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */
	DebtAuctionThreshold    github_com_cosmos_cosmos_sdk_types.Int `` /* 193-byte string literal not displayed */
	DebtAuctionLot          github_com_cosmos_cosmos_sdk_types.Int `` /* 169-byte string literal not displayed */
	CircuitBreaker          bool                                   `` /* 127-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default params for cdp module

func NewParams

func NewParams(
	debtLimit sdk.Coin, collateralParams CollateralParams, debtParam DebtParam, surplusThreshold,
	surplusLot, debtThreshold, debtLot sdk.Int, breaker bool,
) Params

NewParams returns a new params object

func (*Params) Descriptor added in v0.2.0

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

func (*Params) GetCircuitBreaker added in v0.2.0

func (m *Params) GetCircuitBreaker() bool

func (*Params) GetCollateralParams added in v0.2.0

func (m *Params) GetCollateralParams() []CollateralParam

func (*Params) GetDebtParam added in v0.2.0

func (m *Params) GetDebtParam() DebtParam

func (*Params) GetGlobalDebtLimit added in v0.2.0

func (m *Params) GetGlobalDebtLimit() types.Coin

func (*Params) Marshal added in v0.2.0

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

func (*Params) MarshalTo added in v0.2.0

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

func (*Params) MarshalToSizedBuffer added in v0.2.0

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

func (*Params) ParamSetPairs

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

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters. nolint

func (*Params) ProtoMessage added in v0.2.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.2.0

func (m *Params) Reset()

func (*Params) Size added in v0.2.0

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.2.0

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

func (Params) Validate

func (p Params) Validate() error

Validate checks that the parameters have valid values.

func (*Params) XXX_DiscardUnknown added in v0.2.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.2.0

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

func (*Params) XXX_Merge added in v0.2.0

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

func (*Params) XXX_Size added in v0.2.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.2.0

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

type PricefeedKeeper

type PricefeedKeeper interface {
	GetCurrentPrice(sdk.Context, string) (pftypes.CurrentPrice, error)
	GetParams(sdk.Context) pftypes.Params
	// These are used for testing TODO replace mockApp with keeper in tests to remove these
	SetParams(sdk.Context, pftypes.Params)
	SetPrice(sdk.Context, sdk.AccAddress, string, sdk.Dec, time.Time) (pftypes.PostedPrice, error)
	SetCurrentPrices(sdk.Context, string) error
}

PricefeedKeeper defines the expected interface for the pricefeed (noalias)

type QueryAllAccountRequest added in v0.3.0

type QueryAllAccountRequest struct {
}

func (*QueryAllAccountRequest) Descriptor added in v0.3.0

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

func (*QueryAllAccountRequest) Marshal added in v0.3.0

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

func (*QueryAllAccountRequest) MarshalTo added in v0.3.0

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

func (*QueryAllAccountRequest) MarshalToSizedBuffer added in v0.3.0

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

func (*QueryAllAccountRequest) ProtoMessage added in v0.3.0

func (*QueryAllAccountRequest) ProtoMessage()

func (*QueryAllAccountRequest) Reset added in v0.3.0

func (m *QueryAllAccountRequest) Reset()

func (*QueryAllAccountRequest) Size added in v0.3.0

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

func (*QueryAllAccountRequest) String added in v0.3.0

func (m *QueryAllAccountRequest) String() string

func (*QueryAllAccountRequest) Unmarshal added in v0.3.0

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

func (*QueryAllAccountRequest) XXX_DiscardUnknown added in v0.3.0

func (m *QueryAllAccountRequest) XXX_DiscardUnknown()

func (*QueryAllAccountRequest) XXX_Marshal added in v0.3.0

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

func (*QueryAllAccountRequest) XXX_Merge added in v0.3.0

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

func (*QueryAllAccountRequest) XXX_Size added in v0.3.0

func (m *QueryAllAccountRequest) XXX_Size() int

func (*QueryAllAccountRequest) XXX_Unmarshal added in v0.3.0

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

type QueryAllAccountResponse added in v0.3.0

type QueryAllAccountResponse struct {
	Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}

func (*QueryAllAccountResponse) Descriptor added in v0.3.0

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

func (*QueryAllAccountResponse) GetAccounts added in v0.3.0

func (m *QueryAllAccountResponse) GetAccounts() []*types.Any

func (*QueryAllAccountResponse) Marshal added in v0.3.0

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

func (*QueryAllAccountResponse) MarshalTo added in v0.3.0

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

func (*QueryAllAccountResponse) MarshalToSizedBuffer added in v0.3.0

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

func (*QueryAllAccountResponse) ProtoMessage added in v0.3.0

func (*QueryAllAccountResponse) ProtoMessage()

func (*QueryAllAccountResponse) Reset added in v0.3.0

func (m *QueryAllAccountResponse) Reset()

func (*QueryAllAccountResponse) Size added in v0.3.0

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

func (*QueryAllAccountResponse) String added in v0.3.0

func (m *QueryAllAccountResponse) String() string

func (*QueryAllAccountResponse) Unmarshal added in v0.3.0

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

func (*QueryAllAccountResponse) XXX_DiscardUnknown added in v0.3.0

func (m *QueryAllAccountResponse) XXX_DiscardUnknown()

func (*QueryAllAccountResponse) XXX_Marshal added in v0.3.0

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

func (*QueryAllAccountResponse) XXX_Merge added in v0.3.0

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

func (*QueryAllAccountResponse) XXX_Size added in v0.3.0

func (m *QueryAllAccountResponse) XXX_Size() int

func (*QueryAllAccountResponse) XXX_Unmarshal added in v0.3.0

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

type QueryAllCdpRequest added in v0.2.0

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

func (*QueryAllCdpRequest) Descriptor added in v0.2.0

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

func (*QueryAllCdpRequest) GetPagination added in v0.2.0

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

func (*QueryAllCdpRequest) Marshal added in v0.2.0

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

func (*QueryAllCdpRequest) MarshalTo added in v0.2.0

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

func (*QueryAllCdpRequest) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryAllCdpRequest) ProtoMessage added in v0.2.0

func (*QueryAllCdpRequest) ProtoMessage()

func (*QueryAllCdpRequest) Reset added in v0.2.0

func (m *QueryAllCdpRequest) Reset()

func (*QueryAllCdpRequest) Size added in v0.2.0

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

func (*QueryAllCdpRequest) String added in v0.2.0

func (m *QueryAllCdpRequest) String() string

func (*QueryAllCdpRequest) Unmarshal added in v0.2.0

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

func (*QueryAllCdpRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllCdpRequest) XXX_DiscardUnknown()

func (*QueryAllCdpRequest) XXX_Marshal added in v0.2.0

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

func (*QueryAllCdpRequest) XXX_Merge added in v0.2.0

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

func (*QueryAllCdpRequest) XXX_Size added in v0.2.0

func (m *QueryAllCdpRequest) XXX_Size() int

func (*QueryAllCdpRequest) XXX_Unmarshal added in v0.2.0

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

type QueryAllCdpResponse added in v0.2.0

type QueryAllCdpResponse struct {
	Cdp        []AugmentedCdp      `protobuf:"bytes,1,rep,name=cdp,proto3" json:"cdp"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllCdpResponse) Descriptor added in v0.2.0

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

func (*QueryAllCdpResponse) GetCdp added in v0.2.0

func (m *QueryAllCdpResponse) GetCdp() []AugmentedCdp

func (*QueryAllCdpResponse) GetPagination added in v0.2.0

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

func (*QueryAllCdpResponse) Marshal added in v0.2.0

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

func (*QueryAllCdpResponse) MarshalTo added in v0.2.0

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

func (*QueryAllCdpResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryAllCdpResponse) ProtoMessage added in v0.2.0

func (*QueryAllCdpResponse) ProtoMessage()

func (*QueryAllCdpResponse) Reset added in v0.2.0

func (m *QueryAllCdpResponse) Reset()

func (*QueryAllCdpResponse) Size added in v0.2.0

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

func (*QueryAllCdpResponse) String added in v0.2.0

func (m *QueryAllCdpResponse) String() string

func (*QueryAllCdpResponse) Unmarshal added in v0.2.0

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

func (*QueryAllCdpResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllCdpResponse) XXX_DiscardUnknown()

func (*QueryAllCdpResponse) XXX_Marshal added in v0.2.0

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

func (*QueryAllCdpResponse) XXX_Merge added in v0.2.0

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

func (*QueryAllCdpResponse) XXX_Size added in v0.2.0

func (m *QueryAllCdpResponse) XXX_Size() int

func (*QueryAllCdpResponse) XXX_Unmarshal added in v0.2.0

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

type QueryAllDepositRequest added in v0.3.0

type QueryAllDepositRequest struct {
	Owner          string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
}

func (*QueryAllDepositRequest) Descriptor added in v0.3.0

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

func (*QueryAllDepositRequest) GetCollateralType added in v0.3.0

func (m *QueryAllDepositRequest) GetCollateralType() string

func (*QueryAllDepositRequest) GetOwner added in v0.3.0

func (m *QueryAllDepositRequest) GetOwner() string

func (*QueryAllDepositRequest) Marshal added in v0.3.0

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

func (*QueryAllDepositRequest) MarshalTo added in v0.3.0

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

func (*QueryAllDepositRequest) MarshalToSizedBuffer added in v0.3.0

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

func (*QueryAllDepositRequest) ProtoMessage added in v0.3.0

func (*QueryAllDepositRequest) ProtoMessage()

func (*QueryAllDepositRequest) Reset added in v0.3.0

func (m *QueryAllDepositRequest) Reset()

func (*QueryAllDepositRequest) Size added in v0.3.0

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

func (*QueryAllDepositRequest) String added in v0.3.0

func (m *QueryAllDepositRequest) String() string

func (*QueryAllDepositRequest) Unmarshal added in v0.3.0

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

func (*QueryAllDepositRequest) XXX_DiscardUnknown added in v0.3.0

func (m *QueryAllDepositRequest) XXX_DiscardUnknown()

func (*QueryAllDepositRequest) XXX_Marshal added in v0.3.0

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

func (*QueryAllDepositRequest) XXX_Merge added in v0.3.0

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

func (*QueryAllDepositRequest) XXX_Size added in v0.3.0

func (m *QueryAllDepositRequest) XXX_Size() int

func (*QueryAllDepositRequest) XXX_Unmarshal added in v0.3.0

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

type QueryAllDepositResponse added in v0.3.0

type QueryAllDepositResponse struct {
	Deposits []Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"`
}

func (*QueryAllDepositResponse) Descriptor added in v0.3.0

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

func (*QueryAllDepositResponse) GetDeposits added in v0.3.0

func (m *QueryAllDepositResponse) GetDeposits() []Deposit

func (*QueryAllDepositResponse) Marshal added in v0.3.0

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

func (*QueryAllDepositResponse) MarshalTo added in v0.3.0

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

func (*QueryAllDepositResponse) MarshalToSizedBuffer added in v0.3.0

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

func (*QueryAllDepositResponse) ProtoMessage added in v0.3.0

func (*QueryAllDepositResponse) ProtoMessage()

func (*QueryAllDepositResponse) Reset added in v0.3.0

func (m *QueryAllDepositResponse) Reset()

func (*QueryAllDepositResponse) Size added in v0.3.0

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

func (*QueryAllDepositResponse) String added in v0.3.0

func (m *QueryAllDepositResponse) String() string

func (*QueryAllDepositResponse) Unmarshal added in v0.3.0

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

func (*QueryAllDepositResponse) XXX_DiscardUnknown added in v0.3.0

func (m *QueryAllDepositResponse) XXX_DiscardUnknown()

func (*QueryAllDepositResponse) XXX_Marshal added in v0.3.0

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

func (*QueryAllDepositResponse) XXX_Merge added in v0.3.0

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

func (*QueryAllDepositResponse) XXX_Size added in v0.3.0

func (m *QueryAllDepositResponse) XXX_Size() int

func (*QueryAllDepositResponse) XXX_Unmarshal added in v0.3.0

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

type QueryClient added in v0.2.0

type QueryClient interface {
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// this line is used by starport scaffolding # 2
	Cdp(ctx context.Context, in *QueryGetCdpRequest, opts ...grpc.CallOption) (*QueryGetCdpResponse, error)
	CdpAll(ctx context.Context, in *QueryAllCdpRequest, opts ...grpc.CallOption) (*QueryAllCdpResponse, error)
	AccountAll(ctx context.Context, in *QueryAllAccountRequest, opts ...grpc.CallOption) (*QueryAllAccountResponse, error)
	DepositAll(ctx context.Context, in *QueryAllDepositRequest, opts ...grpc.CallOption) (*QueryAllDepositResponse, 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 added in v0.2.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetCdpRequest added in v0.2.0

type QueryGetCdpRequest struct {
	Owner          string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	CollateralType string `protobuf:"bytes,2,opt,name=collateral_type,json=collateralType,proto3" json:"collateral_type,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryGetCdpRequest) Descriptor added in v0.2.0

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

func (*QueryGetCdpRequest) GetCollateralType added in v0.2.0

func (m *QueryGetCdpRequest) GetCollateralType() string

func (*QueryGetCdpRequest) GetOwner added in v0.3.0

func (m *QueryGetCdpRequest) GetOwner() string

func (*QueryGetCdpRequest) Marshal added in v0.2.0

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

func (*QueryGetCdpRequest) MarshalTo added in v0.2.0

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

func (*QueryGetCdpRequest) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryGetCdpRequest) ProtoMessage added in v0.2.0

func (*QueryGetCdpRequest) ProtoMessage()

func (*QueryGetCdpRequest) Reset added in v0.2.0

func (m *QueryGetCdpRequest) Reset()

func (*QueryGetCdpRequest) Size added in v0.2.0

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

func (*QueryGetCdpRequest) String added in v0.2.0

func (m *QueryGetCdpRequest) String() string

func (*QueryGetCdpRequest) Unmarshal added in v0.2.0

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

func (*QueryGetCdpRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryGetCdpRequest) XXX_DiscardUnknown()

func (*QueryGetCdpRequest) XXX_Marshal added in v0.2.0

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

func (*QueryGetCdpRequest) XXX_Merge added in v0.2.0

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

func (*QueryGetCdpRequest) XXX_Size added in v0.2.0

func (m *QueryGetCdpRequest) XXX_Size() int

func (*QueryGetCdpRequest) XXX_Unmarshal added in v0.2.0

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

type QueryGetCdpResponse added in v0.2.0

type QueryGetCdpResponse struct {
	Cdp AugmentedCdp `protobuf:"bytes,1,opt,name=cdp,proto3" json:"cdp"`
}

func (*QueryGetCdpResponse) Descriptor added in v0.2.0

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

func (*QueryGetCdpResponse) GetCdp added in v0.2.0

func (m *QueryGetCdpResponse) GetCdp() AugmentedCdp

func (*QueryGetCdpResponse) Marshal added in v0.2.0

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

func (*QueryGetCdpResponse) MarshalTo added in v0.2.0

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

func (*QueryGetCdpResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryGetCdpResponse) ProtoMessage added in v0.2.0

func (*QueryGetCdpResponse) ProtoMessage()

func (*QueryGetCdpResponse) Reset added in v0.2.0

func (m *QueryGetCdpResponse) Reset()

func (*QueryGetCdpResponse) Size added in v0.2.0

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

func (*QueryGetCdpResponse) String added in v0.2.0

func (m *QueryGetCdpResponse) String() string

func (*QueryGetCdpResponse) Unmarshal added in v0.2.0

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

func (*QueryGetCdpResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryGetCdpResponse) XXX_DiscardUnknown()

func (*QueryGetCdpResponse) XXX_Marshal added in v0.2.0

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

func (*QueryGetCdpResponse) XXX_Merge added in v0.2.0

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

func (*QueryGetCdpResponse) XXX_Size added in v0.2.0

func (m *QueryGetCdpResponse) XXX_Size() int

func (*QueryGetCdpResponse) XXX_Unmarshal added in v0.2.0

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

type QueryParamsRequest added in v0.2.0

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor added in v0.2.0

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

func (*QueryParamsRequest) Marshal added in v0.2.0

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

func (*QueryParamsRequest) MarshalTo added in v0.2.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryParamsRequest) ProtoMessage added in v0.2.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.2.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.2.0

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

func (*QueryParamsRequest) String added in v0.2.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.2.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.2.0

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

func (*QueryParamsRequest) XXX_Merge added in v0.2.0

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

func (*QueryParamsRequest) XXX_Size added in v0.2.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.2.0

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

type QueryParamsResponse added in v0.2.0

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

func (*QueryParamsResponse) Descriptor added in v0.2.0

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

func (*QueryParamsResponse) GetParams added in v0.2.0

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal added in v0.2.0

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

func (*QueryParamsResponse) MarshalTo added in v0.2.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*QueryParamsResponse) ProtoMessage added in v0.2.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.2.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.2.0

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

func (*QueryParamsResponse) String added in v0.2.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.2.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.2.0

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

func (*QueryParamsResponse) XXX_Merge added in v0.2.0

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

func (*QueryParamsResponse) XXX_Size added in v0.2.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.2.0

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

type QueryServer added in v0.2.0

QueryServer is the server API for Query service.

type UnimplementedQueryServer added in v0.2.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountAll added in v0.3.0

func (*UnimplementedQueryServer) Cdp added in v0.2.0

func (*UnimplementedQueryServer) CdpAll added in v0.2.0

func (*UnimplementedQueryServer) DepositAll added in v0.3.0

func (*UnimplementedQueryServer) Params added in v0.2.0

Jump to

Keyboard shortcuts

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