rest

package
v0.0.0-...-07bb99b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type BidOnAuctionReq

type BidOnAuctionReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID     string `json:"token_id"`
	Beneficiary string `json:"beneficiary"`
	Bid         string `json:"bid"`
	Commission  string `json:"commission,omitempty"`
}

type BurnFTReq

type BurnFTReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	Denom  string `json:"denom"`
	Amount int64  `json:"amount"`
}

type BuyReq

type BuyReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID     string `json:"token_id"`
	Beneficiary string `json:"beneficiary"`
	Commission  string `json:"commission,omitempty"`
}

type BuyoutAuctionReq

type BuyoutAuctionReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID     string `json:"token_id"`
	Beneficiary string `json:"beneficiary"`
	Commission  string `json:"commission,omitempty"`
}

type CreateFTReq

type CreateFTReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	Denom  string `json:"denom"`
	Amount int64  `json:"amount"`
}

type FinishAuctionReq

type FinishAuctionReq RemoveNFTFromMarketReq

type MintReq

type MintReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID    string `json:"token_id"`
	TokenDenom string `json:"token_denom"`
	TokenURI   string `json:"token_uri"`
}

type PutOnAuctionReq

type PutOnAuctionReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID      string `json:"token_id"`
	Beneficiary  string `json:"beneficiary"`
	OpeningPrice string `json:"opening_price"`
	BuyoutPrice  string `json:"buyout_price,omitempty"`
	Duration     string `json:"duration"`
}

type PutOnMarketReq

type PutOnMarketReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID     string `json:"token_id"`
	Beneficiary string `json:"beneficiary"`
	Price       string `json:"price"`
}

type RemoveNFTFromAuctionReq

type RemoveNFTFromAuctionReq RemoveNFTFromMarketReq

type RemoveNFTFromMarketReq

type RemoveNFTFromMarketReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID string `json:"token_id"`
}

type TransferFTReq

type TransferFTReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	Denom     string `json:"denom"`
	Amount    int64  `json:"amount"`
	Recipient string `json:"recipient"`
}

type TransferReq

type TransferReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID    string `json:"token_id"`
	TokenDenom string `json:"token_denom"`
	Recipient  string `json:"recipient"`
}

type UpdateParamsReq

type UpdateParamsReq struct {
	BaseReq rest.BaseReq `json:"base_req"`

	Name     string `json:"name"`
	Password string `json:"password"`

	TokenID     string `json:"token_id"`
	Price       string `json:"price,omitempty"`
	TokenName   string `json:"token_name,omitempty"`
	Image       string `json:"image,omitempty"`
	TokenUri    string `json:"token_uri,omitempty"`
	Description string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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