Documentation
¶
Index ¶
- func PegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func RequestInvitationRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- func UnpegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
- type PegReq
- type RequestInvitationReq
- type UnpegReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PegRequestHandlerFn ¶
func PegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers proximax-bridge-related REST handlers to a router
func RequestInvitationRequestHandlerFn ¶
func RequestInvitationRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
func UnpegRequestHandlerFn ¶
func UnpegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc
Types ¶
type RequestInvitationReq ¶
type RequestInvitationReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
// TODO: Define more types if needed
Address string `json:"address" yaml:"address"`
NewCosignerPublicKey string `json:"new_cosigner_public_key" yaml:"new_cosigner_public_key"`
FirstCosignerAddress string `json:"first_cosigner_address" yaml:"first_cosigner_address"`
}
type UnpegReq ¶
type UnpegReq struct {
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
// TODO: Define more types if needed
Address string `json:"address" yaml:"address"`
MainchainAddress string `json:"mainchain_address" yaml:"mainchain_address"`
Amount string `json:"amount" yaml:"amount"`
FirstCosignerAddress string `json:"first_cosigner_address" yaml:"first_cosigner_address"`
}
Click to show internal directories.
Click to hide internal directories.