Skip to content

Commit

Permalink
V1
Browse files Browse the repository at this point in the history
  • Loading branch information
likhonsible committed Jan 19, 2024
1 parent 97e681b commit 01b6e2b
Show file tree
Hide file tree
Showing 46 changed files with 96,529 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
artifacts
cache
coverage
25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
env: {
browser: false,
es2021: true,
mocha: true,
node: true,
},
plugins: ["@typescript-eslint"],
extends: [
"standard",
"plugin:prettier/recommended",
"plugin:node/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
},
rules: {
"node/no-unsupported-features/es-syntax": [
"error",
{ ignores: ["modules"] },
],
"node/no-missing-import": "off",
},
};
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hardhat.config.ts
scripts
test
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
artifacts
cache
coverage*
gasReporterOutput.json
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
7 changes: 7 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["warn", { "ignoreConstructors": true }]
}
}
2 changes: 2 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
cache
8 changes: 8 additions & 0 deletions arguments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = [
"TKN",
"Token",
ethers.utils.parseEther("1000000000"),
ethers.utils.parseEther("0"),
["0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D", "0xd464C335A6EeCC565E2e904a65b44DA5789e8780", "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"],
[0, 0, 0, 0, 0, 0]
];
13 changes: 13 additions & 0 deletions common/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const escape_markdown = (text) => {
return text.replace(/([\.\+\-\|\(\)\#\_\[\]\~\=\{\}\,\!\`\>\<])/g, "\\$1").replaceAll('"','`')
}

const format_number = (number, decimals = 2) => {
const str = Number(number).toFixed(decimals)
return str.replace(/\.?0+$/g, '')
}

module.exports = {
escape_markdown,
format_number,
}
Loading

0 comments on commit 01b6e2b

Please sign in to comment.