Skip to content

Commit

Permalink
feat: add token approval endpoint types
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumGrindle committed Feb 12, 2025
1 parent f499fbb commit c8a62ef
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/types",
"version": "16.8.1",
"version": "16.9.0-beta.0",
"description": "Types for the LI.FI stack",
"keywords": [
"sdk",
Expand Down
27 changes: 27 additions & 0 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,3 +718,30 @@ export interface TransferSummariesResponse
export interface GetStepRequest {
stepId: string
}

export interface GetTokenApprovalRequest {
tokenContractAddress: string
chainId: string
userWalletAddress: string
requiredAmount: string
}
export interface GetTokenApprovalResponse {
isApproved: boolean
approvedAmount: string
approvalTransaction: {
to?: string
from?: string
nonce?: string
gasLimit?: string
gasPrice?: string
data?: string
value?: string
chainId?: number
type?: number
accessList?: { address: string; storageKeys: string[] }[]
maxPriorityFeePerGas?: string
maxFeePerGas?: string
customData?: string
ccipReadEnabled?: boolean
}
}

0 comments on commit c8a62ef

Please sign in to comment.