This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(velodrome-v2): Add pools (#2793)
- Loading branch information
Showing
18 changed files
with
5,540 additions
and
43 deletions.
There are no files selected for viewing
317 changes: 317 additions & 0 deletions
317
src/apps/velodrome-v2/contracts/abis/velodrome-v-2-pool-factory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,317 @@ | ||
[ | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_implementation", "type": "address" }], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ "inputs": [], "name": "FeeInvalid", "type": "error" }, | ||
{ "inputs": [], "name": "FeeTooHigh", "type": "error" }, | ||
{ "inputs": [], "name": "InvalidPool", "type": "error" }, | ||
{ "inputs": [], "name": "NotFeeManager", "type": "error" }, | ||
{ "inputs": [], "name": "NotPauser", "type": "error" }, | ||
{ "inputs": [], "name": "NotSinkConverter", "type": "error" }, | ||
{ "inputs": [], "name": "NotVoter", "type": "error" }, | ||
{ "inputs": [], "name": "PoolAlreadyExists", "type": "error" }, | ||
{ "inputs": [], "name": "SameAddress", "type": "error" }, | ||
{ "inputs": [], "name": "ZeroAddress", "type": "error" }, | ||
{ "inputs": [], "name": "ZeroFee", "type": "error" }, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "token0", "type": "address" }, | ||
{ "indexed": true, "internalType": "address", "name": "token1", "type": "address" }, | ||
{ "indexed": true, "internalType": "bool", "name": "stable", "type": "bool" }, | ||
{ "indexed": false, "internalType": "address", "name": "pool", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "", "type": "uint256" } | ||
], | ||
"name": "PoolCreated", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, | ||
{ "indexed": false, "internalType": "uint256", "name": "fee", "type": "uint256" } | ||
], | ||
"name": "SetCustomFee", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "feeManager", "type": "address" }], | ||
"name": "SetFeeManager", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "bool", "name": "state", "type": "bool" }], | ||
"name": "SetPauseState", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "pauser", "type": "address" }], | ||
"name": "SetPauser", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [{ "indexed": false, "internalType": "address", "name": "voter", "type": "address" }], | ||
"name": "SetVoter", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "MAX_FEE", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "ZERO_FEE_INDICATOR", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"name": "allPools", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "allPoolsLength", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "bool", "name": "stable", "type": "bool" } | ||
], | ||
"name": "createPair", | ||
"outputs": [{ "internalType": "address", "name": "pool", "type": "address" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "bool", "name": "stable", "type": "bool" } | ||
], | ||
"name": "createPool", | ||
"outputs": [{ "internalType": "address", "name": "pool", "type": "address" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "uint24", "name": "fee", "type": "uint24" } | ||
], | ||
"name": "createPool", | ||
"outputs": [{ "internalType": "address", "name": "pool", "type": "address" }], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"name": "customFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "feeManager", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "pool", "type": "address" }, | ||
{ "internalType": "bool", "name": "_stable", "type": "bool" } | ||
], | ||
"name": "getFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "bool", "name": "stable", "type": "bool" } | ||
], | ||
"name": "getPair", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "uint24", "name": "fee", "type": "uint24" } | ||
], | ||
"name": "getPool", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "tokenA", "type": "address" }, | ||
{ "internalType": "address", "name": "tokenB", "type": "address" }, | ||
{ "internalType": "bool", "name": "stable", "type": "bool" } | ||
], | ||
"name": "getPool", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "implementation", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "pool", "type": "address" }], | ||
"name": "isPair", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "isPaused", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "pool", "type": "address" }], | ||
"name": "isPool", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "pauser", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "pool", "type": "address" }, | ||
{ "internalType": "uint256", "name": "fee", "type": "uint256" } | ||
], | ||
"name": "setCustomFee", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "bool", "name": "_stable", "type": "bool" }, | ||
{ "internalType": "uint256", "name": "_fee", "type": "uint256" } | ||
], | ||
"name": "setFee", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_feeManager", "type": "address" }], | ||
"name": "setFeeManager", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "bool", "name": "_state", "type": "bool" }], | ||
"name": "setPauseState", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_pauser", "type": "address" }], | ||
"name": "setPauser", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "_sinkConverter", "type": "address" }, | ||
{ "internalType": "address", "name": "_velo", "type": "address" }, | ||
{ "internalType": "address", "name": "_veloV2", "type": "address" } | ||
], | ||
"name": "setSinkConverter", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "_voter", "type": "address" }], | ||
"name": "setVoter", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "sinkConverter", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "stableFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "velo", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "veloV2", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "volatileFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "voter", | ||
"outputs": [{ "internalType": "address", "name": "", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
Oops, something went wrong.