rest

package
v0.18.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TxLink                    = "link"
	TxConfirmDeposit          = "confirm-deposit"
	TxExecutePendingTransfers = "execute-pending"
	TxRegisterIBCPath         = "register-path"
	TxAddCosmosBasedChain     = "add-cosmos-based-chain"
	TxRegisterAsset           = "register-asset"
	TxRegisterFeeCollector    = "register-fee-collector"
	TxRouteIBCTransfers       = "route-ibc-transfers"
)

rest routes

Variables

This section is empty.

Functions

func RegisterRoutes

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

RegisterRoutes registers this module's REST routes with the given router

func TxHandlerAddCosmosBasedChain

func TxHandlerAddCosmosBasedChain(cliCtx client.Context) http.HandlerFunc

TxHandlerAddCosmosBasedChain returns the handler to add a cosmos based chain to nexus

func TxHandlerConfirmDeposit

func TxHandlerConfirmDeposit(cliCtx client.Context) http.HandlerFunc

TxHandlerConfirmDeposit returns the handler to confirm a deposit

func TxHandlerExecutePendingTransfers

func TxHandlerExecutePendingTransfers(cliCtx client.Context) http.HandlerFunc

TxHandlerExecutePendingTransfers returns the handler to execute pending transfers to Axelar

func TxHandlerLink(cliCtx client.Context) http.HandlerFunc

TxHandlerLink returns the handler to link an Axelar address to a cross-chain address

func TxHandlerRegisterAsset

func TxHandlerRegisterAsset(cliCtx client.Context) http.HandlerFunc

TxHandlerRegisterAsset returns the handler to register an asset to a cosmos based chain

func TxHandlerRegisterFeeCollector

func TxHandlerRegisterFeeCollector(cliCtx client.Context) http.HandlerFunc

TxHandlerRegisterFeeCollector returns the handler to register fee collector account

func TxHandlerRegisterIBCPath

func TxHandlerRegisterIBCPath(cliCtx client.Context) http.HandlerFunc

TxHandlerRegisterIBCPath returns the handler to register an IBC tracing path for a cosmos chain

func TxHandlerRouteIBCTransfers added in v0.8.2

func TxHandlerRouteIBCTransfers(cliCtx client.Context) http.HandlerFunc

TxHandlerRouteIBCTransfers returns the handler to route IBC transfers to cosmos chains

Types

type ReqAddCosmosBasedChain

type ReqAddCosmosBasedChain struct {
	BaseReq      rest.BaseReq  `json:"base_req" yaml:"base_req"`
	Name         string        `json:"name" yaml:"name"`
	AddrPrefix   string        `json:"addr_prefix" yaml:"addr_prefix"`
	NativeAssets []nexus.Asset `json:"native_assets" yaml:"native_assets"`
}

ReqAddCosmosBasedChain represents a request to add a cosmos based chain to nexus

type ReqConfirmDeposit

type ReqConfirmDeposit struct {
	BaseReq        rest.BaseReq `json:"base_req" yaml:"base_req"`
	Denom          string       `json:"denom" yaml:"denom"`
	DepositAddress string       `json:"deposit_address" yaml:"deposit_address"`
}

ReqConfirmDeposit represents a request to confirm a deposit

type ReqExecutePendingTransfers

type ReqExecutePendingTransfers struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
}

ReqExecutePendingTransfers represents a request to execute pending token transfers

type ReqLink struct {
	BaseReq        rest.BaseReq `json:"base_req" yaml:"base_req"`
	RecipientChain string       `json:"chain" yaml:"chain"`
	RecipientAddr  string       `json:"recipient" yaml:"recipient"`
	Asset          string       `json:"asset" yaml:"asset"`
}

ReqLink represents a request to link a cross-chain address to an EVM chain address

type ReqRegisterAsset

type ReqRegisterAsset struct {
	BaseReq       rest.BaseReq `json:"base_req" yaml:"base_req"`
	Chain         string       `json:"chain" yaml:"chain"`
	Denom         string       `json:"denom" yaml:"denom"`
	IsNativeAsset bool         `json:"is_native_asset" yaml:"is_native_asset"`
}

ReqRegisterAsset represents a request to register an asset to a cosmos based chain

type ReqRegisterFeeCollector

type ReqRegisterFeeCollector struct {
	BaseReq      rest.BaseReq `json:"base_req" yaml:"base_req"`
	FeeCollector string       `json:"fee_collector" yaml:"fee_collector"`
}

ReqRegisterFeeCollector represents a request to register axelarnet fee collector account

type ReqRegisterIBCPath

type ReqRegisterIBCPath struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Chain   string       `json:"chain" yaml:"chain"`
	Path    string       `json:"path" yaml:"path"`
}

ReqRegisterIBCPath represents a request to register an IBC tracing path for a cosmos chain

type ReqRouteIBCTransfers added in v0.8.2

type ReqRouteIBCTransfers struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
}

ReqRouteIBCTransfers represents a request to route IBC transfers

Jump to

Keyboard shortcuts

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