Remember to include changes to Uniswap deployment
const { readFileSync } = require('fs')
const { join } = require('path')
-// const abis = {
-// exchange: require('./contracts-vyper/abi/uniswap_exchange.json'),
-// factory: require('./contracts-vyper/abi/uniswap_factory.json')
-// }
+const abis = {
+ exchange: require('./contracts-vyper/abi/uniswap_exchange.json'),
+ factory: require('./contracts-vyper/abi/uniswap_factory.json')
+}
-// const bytecode = {
-// exchange: readFileSync(require.resolve('./contracts-vyper/bytecode/exchange.txt'), 'utf-8').slice(2).trim(),
-// factory: readFileSync(require.resolve('./contracts-vyper/bytecode/factory.txt'), 'utf-8').slice(2).trim()
-// }
+const bytecode = {
+ exchange: readFileSync(require.resolve('./contracts-vyper/bytecode/exchange.txt'), 'utf-8').slice(2).trim(),
+ factory: readFileSync(require.resolve('./contracts-vyper/bytecode/factory.txt'), 'utf-8').slice(2).trim()
+}
function getDeployment(name) {
try {
@@ -30,5 +30,7 @@ function getDeployments() {
}
module.exports = {
- getDeployments
+ getDeployments,
+ abis,
+ bytecode
}
\ No newline at end of file
