handlers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupNonce

func SetupNonce(e *echo.Echo, config *config.Config)

func SetupSigNonce

func SetupSigNonce(e *echo.Echo, config *config.Config)

func SetupSigner

func SetupSigner(e *echo.Echo, config *config.Config)

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

type NonceHandler

type NonceHandler struct{}

func (NonceHandler) GetNonce

func (nh NonceHandler) GetNonce(ctx echo.Context, chainId uint64, address string) error

func (NonceHandler) GetNonceWithSigner

func (nh NonceHandler) GetNonceWithSigner(ctx echo.Context, chainId uint64, address string, params nonceServer.GetNonceWithSignerParams) error

func (NonceHandler) ReturnNonce

func (nh NonceHandler) ReturnNonce(ctx echo.Context, chainId uint64, address string, nonceI uint64) error

func (NonceHandler) ReturnNonceWithSigner

func (nh NonceHandler) ReturnNonceWithSigner(ctx echo.Context, chainId uint64, address string, nonceI uint64, params nonceServer.ReturnNonceWithSignerParams) error

func (NonceHandler) SyncNonce

func (nh NonceHandler) SyncNonce(ctx echo.Context, chainId uint64, address string) error

type SigNonceHandler

type SigNonceHandler struct{}

func (SigNonceHandler) GetNonce

func (nh SigNonceHandler) GetNonce(ctx echo.Context, contract string, chainId uint64, address string) error

func (SigNonceHandler) GetNonceWithSigner

func (nh SigNonceHandler) GetNonceWithSigner(ctx echo.Context, contract string, chainId uint64, address string, params signonceServer.GetNonceWithSignerParams) error

func (SigNonceHandler) ReturnNonce

func (nh SigNonceHandler) ReturnNonce(ctx echo.Context, contract string, chainId uint64, address string, nonceI uint64) error

func (SigNonceHandler) ReturnNonceWithSigner

func (nh SigNonceHandler) ReturnNonceWithSigner(ctx echo.Context, contract string, chainId uint64, address string, nonceI uint64, params signonceServer.ReturnNonceWithSignerParams) error

func (SigNonceHandler) SyncNonce

func (nh SigNonceHandler) SyncNonce(ctx echo.Context, contract string, chainId uint64, address string) error

type SignerHandlers

type SignerHandlers struct{}

func (SignerHandlers) Health

func (sn SignerHandlers) Health(ctx echo.Context) error

func (SignerHandlers) NewSigner

func (sh SignerHandlers) NewSigner(ctx echo.Context) error

func (SignerHandlers) ReplaceKey

func (sn SignerHandlers) ReplaceKey(ctx echo.Context, address signer.Address, params signer.ReplaceKeyParams) error

func (SignerHandlers) SignBytes

func (sn SignerHandlers) SignBytes(ctx echo.Context, address signer.Address, params signer.SignBytesParams) error

Jump to

Keyboard shortcuts

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