Swap-Aggregator-Subgraph/node_modules/@graphprotocol/graph-cli/examples/basic-event-handlers/truffle.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

35 lines
753 B
JavaScript

require('babel-register')
require('babel-polyfill')
const HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
},
ropsten: {
provider: function() {
return new HDWalletProvider(
process.env.MNEMONIC,
`https://ropsten.infura.io/v3/${process.env.ROPSTEN_INFURA_API_KEY}`,
)
},
network_id: '3',
},
test: {
host: 'localhost',
port: 18545,
network_id: '*',
gas: '100000000000',
gasPrice: '1',
},
},
compilers: {
solc: {
version: '0.4.25', // Fetch exact version from solc-bin (default: truffle's version)
},
},
}