Skip to content

Commit

Permalink
Update request types for sending native USDC
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Dec 13, 2023
1 parent 61869ea commit 937cddf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion client/PublicRequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 6 additions & 1 deletion src/lib/RequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

/**
Expand Down

0 comments on commit 937cddf

Please sign in to comment.