f8fb6f524e
* moved contracts from gitlab to main codebase * added missing event param * removed erroneous from description * updates: * changed maths of token -> MB conversion * new tests for changed maths * length check on cosmos address * begun code doc * code documentation * small comment cleanup * cont. w tests, may have found bug in maths re: using not whole tokens: investigating * finished code doc * included requested changes to contract * change to maths operations, shrunk test error to < .9 * updates: * updated tests * updated readme * removed commented out code, changed variable name to be more informative * removed unnecessary byte32 length check
34 lines
836 B
JavaScript
34 lines
836 B
JavaScript
require("@nomiclabs/hardhat-etherscan");
|
|
require("@nomiclabs/hardhat-truffle5");
|
|
require("@nomiclabs/hardhat-web3");
|
|
require('dotenv').config({ path: require('find-config')('.env') });
|
|
|
|
/**
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
*/
|
|
module.exports = {
|
|
solidity: {
|
|
version: "0.6.6",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true
|
|
}
|
|
} },
|
|
paths: {
|
|
artifacts: "./artifacts/contracts"
|
|
},
|
|
networks: {
|
|
// rinkeby: {
|
|
// url: process.env.RINKEBY_URL, //Infura url with projectId
|
|
// accounts: [process.env.PRIV_KEY], // private key of account used for contract interaction
|
|
// gas: "auto",
|
|
// gasPrice: "auto"
|
|
// },
|
|
},
|
|
etherscan: {
|
|
// Your API key for Etherscan
|
|
// Obtain one at https://etherscan.io/
|
|
apiKey: process.env.ETHERSCAN_API_KEY
|
|
}
|
|
};
|