rest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

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

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

Types

type PostBlockAddressReq

type PostBlockAddressReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Address sdk.AccAddress `json:"blocked_address" yaml:"blocked_address"`
	Denom   string         `json:"denom" yaml:"denom"`
}

PostBlockAddressReq defines the properties of a block address request's body

type PostIssueReq

type PostIssueReq struct {
	BaseReq  rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Tokens   sdk.Coin       `json:"tokens" yaml:"tokens"`
	Receiver sdk.AccAddress `json:"receiver" yaml:"receiver"`
}

PostIssueReq defines the properties of an issue token request's body

type PostPauseReq

type PostPauseReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom   string       `json:"denom" yaml:"denom"`
	Status  bool         `json:"status" yaml:"status"`
}

PostPauseReq defines the properties of a pause request's body

type PostRedeemReq

type PostRedeemReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Tokens  sdk.Coin     `json:"tokens" yaml:"tokens"`
}

PostRedeemReq defines the properties of a redeem token request's body

type PostUnblockAddressReq

type PostUnblockAddressReq struct {
	BaseReq rest.BaseReq   `json:"base_req" yaml:"base_req"`
	Address sdk.AccAddress `json:"blocked_address" yaml:"blocked_address"`
	Denom   string         `json:"denom" yaml:"denom"`
}

PostUnblockAddressReq defines the properties of a unblock address request's body

Jump to

Keyboard shortcuts

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