From 3504e772bbab30ddbec7722e765b4412b6c024f2 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 0d3e8094..ac0b7826 100644 --- a/client/PublicRequestTypes.ts +++ b/client/PublicRequestTypes.ts @@ -611,11 +611,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 3415dfd3..a811c415 100644 --- a/src/lib/RequestTypes.ts +++ b/src/lib/RequestTypes.ts @@ -153,7 +153,12 @@ export interface ParsedAddBtcAddressesRequest extends ParsedSimpleRequest { export interface ParsedSignPolygonTransactionRequest extends ParsedBasicRequest, RelayRequest { recipientLabel?: string; - tokenApprovalNonce?: number; + approval?: { + tokenNonce: number, + }; + permit?: { + tokenNonce: number, + }; } /**