Truffle
Truffle is a world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier.
Truffle Configuration for Lycan
const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
lycan: {
provider: () => new HDWalletProvider(mnemonic, "https://rpc.lycanchain.com"),
network_id: '*', // Lycan Chain's network id
gas: 4500000, // Gas limit
gasPrice: 10000000000 // 10 Gwei
},
},
compilers: {
solc: {
version: "0.8.4", // Fetch exact version from solc-bin (default: truffle's version)
}
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
}
};
Compile your contract
Deploy your contract
Last updated