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 ¶
func (svc *ApprovalService) GetTokenRecoverApproval(req *GetTokenRecoverApprovalRequest) (*GetTokenRecoverApprovalResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.