approval

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PubKeyLength    = 33
	SignatureLength = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalService

type ApprovalService struct {
	// contains filtered or unexported fields
}

func NewApprovalService

func NewApprovalService(config *config.Config, km keymanager.KeyManager, store store.Store, metrics metrics.Metrics, logger *zerolog.Logger) (*ApprovalService, error)

func (*ApprovalService) GetTokenRecoverApproval

type GetTokenRecoverApprovalRequest

type GetTokenRecoverApprovalRequest struct {
	TokenSymbol    string         `json:"token_symbol" validate:"required"`
	OwnerPubKey    string         `json:"owner_pub_key" validate:"required"`
	OwnerSignature string         `json:"owner_signature" validate:"required"`
	ClaimAddress   common.Address `json:"claim_address" validate:"required"`
}

func (*GetTokenRecoverApprovalRequest) Validate

func (req *GetTokenRecoverApprovalRequest) Validate() error

type GetTokenRecoverApprovalResponse

type GetTokenRecoverApprovalResponse struct {
	Amount            *big.Int `json:"amount"`
	Proofs            [][]byte `json:"proofs"`
	ApprovalSignature []byte   `json:"approval_signature"`
}

func (*GetTokenRecoverApprovalResponse) MarshalJSON

func (resp *GetTokenRecoverApprovalResponse) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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