rest

package
v0.17.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestOwner = "owner"
	RestDenom = "denom"
	RestName  = "name"
)

REST variable names nolint

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx client.Context, r *mux.Router)

RegisterRoutes registers hard-related REST handlers to a router

Types

type PostBorrowReq

type PostBorrowReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	From    sdk.AccAddress `json:"from" yaml:"from"`
	Amount  sdk.Coins      `json:"amount" yaml:"amount"`
}

PostBorrowReq defines the properties of a borrow request's body

type PostCreateDepositReq

type PostCreateDepositReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	From    sdk.AccAddress `json:"from" yaml:"from"`
	Amount  sdk.Coins      `json:"amount" yaml:"amount"`
}

PostCreateDepositReq defines the properties of a deposit create request's body

type PostCreateWithdrawReq

type PostCreateWithdrawReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	From    sdk.AccAddress `json:"from" yaml:"from"`
	Amount  sdk.Coins      `json:"amount" yaml:"amount"`
}

PostCreateWithdrawReq defines the properties of a deposit withdraw request's body

type PostLiquidateReq

type PostLiquidateReq struct {
	BaseReq  rest.BaseReq   `json:"base_req" yaml:"base_req"`
	From     sdk.AccAddress `json:"from" yaml:"from"`
	Borrower sdk.AccAddress `json:"borrower" yaml:"borrower"`
}

PostLiquidateReq defines the properties of a liquidate request's body

type PostRepayReq

type PostRepayReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	From    sdk.AccAddress `json:"from" yaml:"from"`
	Owner   sdk.AccAddress `json:"owner" yaml:"owner"`
	Amount  sdk.Coins      `json:"amount" yaml:"amount"`
}

PostRepayReq defines the properties of a repay request's body

Jump to

Keyboard shortcuts

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