Skip to content

Commit

Permalink
integration test: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ramilexe committed Apr 16, 2021
1 parent 31cbaec commit 141b3ea
Show file tree
Hide file tree
Showing 9 changed files with 27,342 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/contract/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules

#Hardhat files
cache
artifacts
21 changes: 21 additions & 0 deletions test/contract/contracts/Greeter.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.7.0;

contract Greeter {
string greeting;

event Greet(string value);

constructor(string memory _greeting) {
greeting = _greeting;
}

function greet() public view returns (string memory) {
return greeting;
}

function setGreeting(string memory _greeting) public {
greeting = _greeting;
emit Greet(greeting);
}
}
28 changes: 28 additions & 0 deletions test/contract/hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
require("@nomiclabs/hardhat-waffle");

// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();

for (const account of accounts) {
console.log(account.address);
}
});

// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more

/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.7.3",
networks: {
local: {
url: 'http://127.0.0.1:8545',
chainId: 4
}
}
};

Loading

0 comments on commit 141b3ea

Please sign in to comment.