From 937cddf3cf38570a63218e0e330da877eb1c4e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren?= Date: Thu, 16 Nov 2023 22:08:48 -0600 Subject: [PATCH] Update request types for sending native USDC --- client/PublicRequestTypes.ts | 9 ++++++++- src/lib/RequestTypes.ts | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/client/PublicRequestTypes.ts b/client/PublicRequestTypes.ts index f6dedc11..60b0c937 100644 --- a/client/PublicRequestTypes.ts +++ b/client/PublicRequestTypes.ts @@ -612,11 +612,18 @@ export interface SignPolygonTransactionRequest extends BasicRequest, RelayReques recipientLabel?: string; /** * The sender's nonce in the token contract, required when calling the - * contract function `executeWithApproval`. + * contract function `transferWithApproval`. */ approval?: { tokenNonce: number, }; + /** + * The sender's nonce in the token contract, required when calling the + * contract function `transferWithPermit`. + */ + permit?: { + tokenNonce: number, + }; } export interface SignedPolygonTransaction { diff --git a/src/lib/RequestTypes.ts b/src/lib/RequestTypes.ts index 74c1610f..7fa425da 100644 --- a/src/lib/RequestTypes.ts +++ b/src/lib/RequestTypes.ts @@ -154,7 +154,12 @@ export interface ParsedAddBtcAddressesRequest extends ParsedSimpleRequest { export interface ParsedSignPolygonTransactionRequest extends ParsedBasicRequest, RelayRequest { recipientLabel?: string; - tokenApprovalNonce?: number; + approval?: { + tokenNonce: number, + }; + permit?: { + tokenNonce: number, + }; } /**