Skip to content

Commit e38ad89

Browse files
muhammadausclaude
andcommitted
Add ParaSwap swapExactAmountIn (0xe3ead59e) function
- Selector: 0xe3ead59e - Signature: swapExactAmountIn(address,tuple,uint256,bytes,bytes) - Added ABI with tuple components (srcToken, destToken, fromAmount, toAmount, etc.) - Added display format with interpolatedIntent 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5cddde5 commit e38ad89

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

tests/fixtures/metadata/protocols/paraswap-augustus-v6.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,30 @@
8181
]
8282
}
8383
]
84+
},
85+
{
86+
"type": "function",
87+
"name": "swapExactAmountIn",
88+
"selector": "0xe3ead59e",
89+
"inputs": [
90+
{ "name": "executor", "type": "address" },
91+
{
92+
"name": "swapData",
93+
"type": "tuple",
94+
"components": [
95+
{ "name": "srcToken", "type": "address" },
96+
{ "name": "destToken", "type": "address" },
97+
{ "name": "fromAmount", "type": "uint256" },
98+
{ "name": "toAmount", "type": "uint256" },
99+
{ "name": "quotedAmount", "type": "uint256" },
100+
{ "name": "metadata", "type": "bytes32" },
101+
{ "name": "beneficiary", "type": "address" }
102+
]
103+
},
104+
{ "name": "partnerAndFee", "type": "uint256" },
105+
{ "name": "permit", "type": "bytes" },
106+
{ "name": "executorData", "type": "bytes" }
107+
]
84108
}
85109
]
86110
}
@@ -128,6 +152,17 @@
128152
{ "path": "data.toAmount", "label": "Min Amount Out", "format": "raw" },
129153
{ "path": "data.beneficiary", "label": "Recipient", "format": "addressName" }
130154
]
155+
},
156+
"swapExactAmountIn(address,tuple,uint256,bytes,bytes)": {
157+
"intent": "Swap via ParaSwap",
158+
"interpolatedIntent": "Swap {swapData.fromAmount} via ParaSwap",
159+
"fields": [
160+
{ "path": "swapData.srcToken", "label": "From Token", "format": "addressName" },
161+
{ "path": "swapData.destToken", "label": "To Token", "format": "addressName" },
162+
{ "path": "swapData.fromAmount", "label": "Amount In", "format": "tokenAmount", "params": { "tokenPath": "swapData.srcToken" } },
163+
{ "path": "swapData.toAmount", "label": "Min Amount Out", "format": "tokenAmount", "params": { "tokenPath": "swapData.destToken" } },
164+
{ "path": "swapData.beneficiary", "label": "Recipient", "format": "addressName" }
165+
]
131166
}
132167
}
133168
}

0 commit comments

Comments
 (0)