706 lines
14 KiB
JSON
706 lines
14 KiB
JSON
[
|
|
{
|
|
"type": "constructor",
|
|
"inputs": [
|
|
{
|
|
"name": "owner_",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "wrapper_",
|
|
"type": "address",
|
|
"internalType": "contract NativeWrapper"
|
|
},
|
|
{
|
|
"name": "swapImpl_",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolSwapImpl"
|
|
},
|
|
{
|
|
"name": "mintImpl_",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolMintImpl"
|
|
},
|
|
{
|
|
"name": "poolInitCodeStorage_",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolInitCode"
|
|
},
|
|
{
|
|
"name": "balancedPairInitCodeStorage_",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolBalancedPairInitCode"
|
|
},
|
|
{
|
|
"name": "protocolFeePpm_",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "protocolFeeAddress_",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "getAllPools",
|
|
"inputs": [
|
|
{
|
|
"name": "offset",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "pools",
|
|
"type": "address[]",
|
|
"internalType": "contract IPartyPool[]"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "getAllTokens",
|
|
"inputs": [
|
|
{
|
|
"name": "offset",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "tokens",
|
|
"type": "address[]",
|
|
"internalType": "address[]"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "getPoolSupported",
|
|
"inputs": [
|
|
{
|
|
"name": "pool",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "bool",
|
|
"internalType": "bool"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "getPoolsByToken",
|
|
"inputs": [
|
|
{
|
|
"name": "token",
|
|
"type": "address",
|
|
"internalType": "contract IERC20"
|
|
},
|
|
{
|
|
"name": "offset",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "pools",
|
|
"type": "address[]",
|
|
"internalType": "contract IPartyPool[]"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "mintImpl",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolMintImpl"
|
|
}
|
|
],
|
|
"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",
|
|
"inputs": [
|
|
{
|
|
"name": "name_",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "symbol_",
|
|
"type": "string",
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "tokens_",
|
|
"type": "address[]",
|
|
"internalType": "contract IERC20[]"
|
|
},
|
|
{
|
|
"name": "tradeFrac_",
|
|
"type": "int128",
|
|
"internalType": "int128"
|
|
},
|
|
{
|
|
"name": "targetSlippage_",
|
|
"type": "int128",
|
|
"internalType": "int128"
|
|
},
|
|
{
|
|
"name": "swapFeePpm_",
|
|
"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",
|
|
"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": "swapFeePpm_",
|
|
"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": "owner",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "params",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "tuple",
|
|
"internalType": "struct IPartyPoolDeployer.DeployParams",
|
|
"components": [
|
|
{
|
|
"name": "nonce",
|
|
"type": "bytes32",
|
|
"internalType": "bytes32"
|
|
},
|
|
{
|
|
"name": "owner",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"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": "fees",
|
|
"type": "uint256[]",
|
|
"internalType": "uint256[]"
|
|
},
|
|
{
|
|
"name": "flashFeePpm",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "protocolFeePpm",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
},
|
|
{
|
|
"name": "protocolFeeAddress",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "wrapper",
|
|
"type": "address",
|
|
"internalType": "contract NativeWrapper"
|
|
},
|
|
{
|
|
"name": "swapImpl",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolSwapImpl"
|
|
},
|
|
{
|
|
"name": "mintImpl",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolMintImpl"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "poolCount",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "poolsByTokenCount",
|
|
"inputs": [
|
|
{
|
|
"name": "token",
|
|
"type": "address",
|
|
"internalType": "contract IERC20"
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "protocolFeeAddress",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "protocolFeePpm",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "renounceOwnership",
|
|
"inputs": [],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "setProtocolFeeAddress",
|
|
"inputs": [
|
|
{
|
|
"name": "feeAddress",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "swapImpl",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "contract PartyPoolSwapImpl"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "tokenCount",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "uint256",
|
|
"internalType": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "transferOwnership",
|
|
"inputs": [
|
|
{
|
|
"name": "newOwner",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"stateMutability": "nonpayable"
|
|
},
|
|
{
|
|
"type": "function",
|
|
"name": "wrapper",
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "",
|
|
"type": "address",
|
|
"internalType": "contract NativeWrapper"
|
|
}
|
|
],
|
|
"stateMutability": "view"
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "OwnershipTransferred",
|
|
"inputs": [
|
|
{
|
|
"name": "previousOwner",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
},
|
|
{
|
|
"name": "newOwner",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "address"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "event",
|
|
"name": "PartyStarted",
|
|
"inputs": [
|
|
{
|
|
"name": "pool",
|
|
"type": "address",
|
|
"indexed": true,
|
|
"internalType": "contract IPartyPool"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"type": "string",
|
|
"indexed": false,
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "symbol",
|
|
"type": "string",
|
|
"indexed": false,
|
|
"internalType": "string"
|
|
},
|
|
{
|
|
"name": "tokens",
|
|
"type": "address[]",
|
|
"indexed": false,
|
|
"internalType": "contract IERC20[]"
|
|
}
|
|
],
|
|
"anonymous": false
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "OwnableInvalidOwner",
|
|
"inputs": [
|
|
{
|
|
"name": "owner",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "OwnableUnauthorizedAccount",
|
|
"inputs": [
|
|
{
|
|
"name": "account",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "error",
|
|
"name": "SafeERC20FailedOperation",
|
|
"inputs": [
|
|
{
|
|
"name": "token",
|
|
"type": "address",
|
|
"internalType": "address"
|
|
}
|
|
]
|
|
}
|
|
]
|