From 5ae9b5d4d45093959910daf3d2d8bfcb10b03911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Fri, 23 Feb 2024 00:47:22 +0100 Subject: [PATCH] Forward relevant fields to Keyguard for standalone USDC redeem transactions --- client/PublicRequestTypes.ts | 11 +++++++++++ src/lib/RequestTypes.ts | 2 ++ 2 files changed, 13 insertions(+) diff --git a/client/PublicRequestTypes.ts b/client/PublicRequestTypes.ts index a7cde705..7865b0ed 100644 --- a/client/PublicRequestTypes.ts +++ b/client/PublicRequestTypes.ts @@ -624,6 +624,17 @@ export interface SignPolygonTransactionRequest extends BasicRequest, RelayReques permit?: { tokenNonce: number, }; + + /** + * The amount of USDC to transfer. Required when calling the contract + * methods 'redeem' and 'redeemWithSecretInData' for HTLCs. + */ + amount?: number; + /** + * The label of the sending address. Required when calling the contract + * methods 'redeem' and 'redeemWithSecretInData' for HTLCs. + */ + senderLabel?: string; } export interface SignedPolygonTransaction { diff --git a/src/lib/RequestTypes.ts b/src/lib/RequestTypes.ts index ada6919c..faf2e35c 100644 --- a/src/lib/RequestTypes.ts +++ b/src/lib/RequestTypes.ts @@ -160,6 +160,8 @@ export interface ParsedSignPolygonTransactionRequest extends ParsedBasicRequest, permit?: { tokenNonce: number, }; + amount?: number; + senderLabel?: string; } /**