upgrade to ethermint v0.21.0 #99
11
tests/integration_tests/contracts/.gitignore
vendored
11
tests/integration_tests/contracts/.gitignore
vendored
@ -1,11 +0,0 @@
|
||||
node_modules
|
||||
.env
|
||||
coverage
|
||||
coverage.json
|
||||
typechain
|
||||
typechain-types
|
||||
|
||||
#Hardhat files
|
||||
cache
|
||||
artifacts
|
||||
|
@ -1,13 +0,0 @@
|
||||
# Sample Hardhat Project
|
||||
|
||||
This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
|
||||
|
||||
Try running some of the following tasks:
|
||||
|
||||
```shell
|
||||
npx hardhat help
|
||||
npx hardhat test
|
||||
GAS_REPORT=true npx hardhat test
|
||||
npx hardhat node
|
||||
npx hardhat run scripts/deploy.js
|
||||
```
|
@ -1,20 +0,0 @@
|
||||
pragma solidity >0.5.0;
|
||||
|
||||
contract Greeter {
|
||||
string public greeting;
|
||||
|
||||
event ChangeGreeting(address from, string value);
|
||||
|
||||
constructor() public {
|
||||
greeting = "Hello";
|
||||
}
|
||||
|
||||
function setGreeting(string memory _greeting) public {
|
||||
greeting = _greeting;
|
||||
emit ChangeGreeting(msg.sender, _greeting);
|
||||
}
|
||||
|
||||
function greet() public view returns (string memory) {
|
||||
return greeting;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
pragma solidity 0.8.10;
|
||||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
||||
|
||||
contract TestERC20A is ERC20 {
|
||||
|
||||
constructor() public ERC20("TestERC20", "Test") {
|
||||
_mint(msg.sender, 100000000000000000000000000);
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
import { HardhatUserConfig } from "hardhat/config";
|
||||
import "hardhat-typechain";
|
||||
|
||||
const config: HardhatUserConfig = {
|
||||
solidity: {
|
||||
compilers: [
|
||||
{
|
||||
version: "0.8.10",
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
typechain: {
|
||||
outDir: "typechain",
|
||||
target: "ethers-v5",
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
26597
tests/integration_tests/contracts/package-lock.json
generated
26597
tests/integration_tests/contracts/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,26 +0,0 @@
|
||||
{
|
||||
"name": "contracts",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"typechain": "npx hardhat typechain"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@nomiclabs/hardhat-ethers": "^2.1.0",
|
||||
"@nomiclabs/hardhat-waffle": "^2.0.3",
|
||||
"@openzeppelin/contracts": "^4.7.0",
|
||||
"@typechain/ethers-v5": "^5.0.0",
|
||||
"hardhat": "^2.10.1",
|
||||
"hardhat-typechain": "^0.3.5",
|
||||
"ts-generator": "^0.1.1",
|
||||
"typechain": "^4.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.7.4"
|
||||
}
|
||||
}
|
@ -1,10 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"skipLibCheck": true
|
||||
}
|
||||
}
|
@ -213,11 +213,12 @@ func NewCLILogger(cmd *cobra.Command) CLILogger {
|
||||
}
|
||||
|
||||
// New creates a new Network for integration tests or in-process testnets run via the CLI
|
||||
// nosemgrep: missing-unlock-before-return
|
||||
func New(l Logger, baseDir string, cfg Config) (*Network, error) {
|
||||
// only one caller/test can create and use a network at a time
|
||||
l.Log("acquiring test network lock")
|
||||
lock.Lock()
|
||||
defer lock.Unlock()
|
||||
// defer lock.Unlock()
|
||||
|
||||
if !ethermint.IsValidChainID(cfg.ChainID) {
|
||||
return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID)
|
||||
|
Loading…
Reference in New Issue
Block a user