adding token from pool logic and updating ABIs to support new smart contracts

This commit is contained in:
2025-10-15 13:36:04 -04:00
parent 64b998d119
commit e2198c9b31
5 changed files with 245 additions and 28 deletions

View File

@@ -147,6 +147,11 @@ const IPartyPoolABI = [
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
@@ -186,6 +191,11 @@ const IPartyPoolABI = [
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
@@ -318,7 +328,7 @@ const IPartyPoolABI = [
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
@@ -365,7 +375,7 @@ const IPartyPoolABI = [
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
@@ -457,6 +467,11 @@ const IPartyPoolABI = [
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
@@ -476,7 +491,51 @@ const IPartyPoolABI = [
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
"name": "swapAmounts",
"inputs": [
{
"name": "inputTokenIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "outputTokenIndex",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxAmountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "limitPrice",
"type": "int128",
"internalType": "int128"
}
],
"outputs": [
{
"name": "amountIn",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amountOut",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
@@ -528,7 +587,7 @@ const IPartyPoolABI = [
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
@@ -563,6 +622,11 @@ const IPartyPoolABI = [
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unwrap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
@@ -582,7 +646,7 @@ const IPartyPoolABI = [
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
"stateMutability": "payable"
},
{
"type": "function",
@@ -663,6 +727,19 @@ const IPartyPoolABI = [
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "wrapperToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IWETH9"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "Approval",