create_pool_from_prices uses generated ABI

This commit is contained in:
tim
2025-11-17 12:37:15 -04:00
parent c905217004
commit d5c40b9667
3 changed files with 131 additions and 61 deletions

View File

@@ -110,6 +110,85 @@ const IPartyPlannerABI = [
],
"stateMutability": "view"
},
{
"type": "function",
"name": "newPool",
"inputs": [
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "symbol",
"type": "string",
"internalType": "string"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "contract IERC20[]"
},
{
"name": "kappa",
"type": "int128",
"internalType": "int128"
},
{
"name": "swapFeesPpm",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "flashFeePpm",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "stable",
"type": "bool",
"internalType": "bool"
},
{
"name": "payer",
"type": "address",
"internalType": "address"
},
{
"name": "receiver",
"type": "address",
"internalType": "address"
},
{
"name": "initialDeposits",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "initialLpAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "pool",
"type": "address",
"internalType": "contract IPartyPool"
},
{
"name": "lpAmount",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "newPool",

View File

@@ -324,25 +324,6 @@ const IPartyPoolABI = [
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getToken",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialMint",
@@ -516,7 +497,7 @@ const IPartyPoolABI = [
"internalType": "address"
},
{
"name": "selector",
"name": "fundingSelector",
"type": "bytes4",
"internalType": "bytes4"
},
@@ -554,6 +535,11 @@ const IPartyPoolABI = [
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "cbData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
@@ -677,6 +663,11 @@ const IPartyPoolABI = [
"type": "address",
"internalType": "address"
},
{
"name": "fundingSelector",
"type": "bytes4",
"internalType": "bytes4"
},
{
"name": "receiver",
"type": "address",
@@ -706,6 +697,11 @@ const IPartyPoolABI = [
"name": "unwrap",
"type": "bool",
"internalType": "bool"
},
{
"name": "cbData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
@@ -740,6 +736,25 @@ const IPartyPoolABI = [
],
"stateMutability": "view"
},
{
"type": "function",
"name": "token",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",