initial commit

This commit is contained in:
User 1 2023-08-13 09:15:58 -04:00
commit 9548409ca9
9 changed files with 9741 additions and 0 deletions

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
node_modules
.env
coverage
coverage.json
typechain
typechain-types
# Hardhat files
cache
artifacts

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
*.js

15
.prettierrc Normal file
View File

@ -0,0 +1,15 @@
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 150,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false,
"explicitTypes": "always"
}
}
]
}

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# 10grans-NG
10grans on Arbitrum chain, with a bridge to Ethereum.
```shell
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
```

8
hardhat.config.ts Normal file
View File

@ -0,0 +1,8 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
const config: HardhatUserConfig = {
solidity: "0.8.19",
};
export default config;

9642
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

30
package.json Normal file
View File

@ -0,0 +1,30 @@
{
"name": "10grans-ng",
"version": "1.0.0",
"description": "10grans on Arbitrum",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "ssh://git@git.shipoclu.com:2222/moon/10grans-ng.git"
},
"keywords": [
"cryptocurrency",
"erc-20",
"token",
"solidity"
],
"author": "moon@shipoclu.com",
"license": "ISC",
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"hardhat": "^2.17.1",
"prettier": "^3.0.1",
"prettier-plugin-solidity": "^1.1.3"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.3"
}
}

12
scripts/deploy.ts Normal file
View File

@ -0,0 +1,12 @@
import { ethers } from "hardhat";
async function main() {
// Do stuff here.
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});

11
tsconfig.json Normal file
View File

@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true
}
}