Skip to content

Commit

Permalink
Forward relevant fields to Keyguard for standalone USDC redeem transa…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
sisou committed Mar 4, 2024
1 parent 35eb801 commit 5ae9b5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions client/PublicRequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/RequestTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ export interface ParsedSignPolygonTransactionRequest extends ParsedBasicRequest,
permit?: {
tokenNonce: number,
};
amount?: number;
senderLabel?: string;
}

/**
Expand Down

0 comments on commit 5ae9b5d

Please sign in to comment.