Skip to content

Commit 598488b

Browse files
authored
Initial commit
0 parents  commit 598488b

18 files changed

+11842
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.sol linguist-language=Solidity
2+
*.vy linguist-language=Python
3+
*.ts linguist-detectable=false

.gitignore

+274
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,274 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel
35+
36+
37+
38+
__pycache__
39+
.env
40+
.history
41+
.secrets
42+
.hypothesis/
43+
reports/
44+
cache/
45+
.venv
46+
47+
# Created by https://www.toptal.com/developers/gitignore/api/macos,solidity,soliditytruffle,visualstudiocode,yarn
48+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,solidity,soliditytruffle,visualstudiocode,yarn
49+
50+
### macOS ###
51+
# General
52+
.DS_Store
53+
.AppleDouble
54+
.LSOverride
55+
56+
# Icon must end with two \r
57+
Icon
58+
59+
60+
# Thumbnails
61+
._*
62+
63+
# Files that might appear in the root of a volume
64+
.DocumentRevisions-V100
65+
.fseventsd
66+
.Spotlight-V100
67+
.TemporaryItems
68+
.Trashes
69+
.VolumeIcon.icns
70+
.com.apple.timemachine.donotpresent
71+
72+
# Directories potentially created on remote AFP share
73+
.AppleDB
74+
.AppleDesktop
75+
Network Trash Folder
76+
Temporary Items
77+
.apdisk
78+
79+
### Solidity ###
80+
# Logs
81+
logs
82+
*.log
83+
npm-debug.log*
84+
yarn-debug.log*
85+
yarn-error.log*
86+
lerna-debug.log*
87+
.pnpm-debug.log*
88+
89+
# Diagnostic reports (https://nodejs.org/api/report.html)
90+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
91+
92+
# Runtime data
93+
pids
94+
*.pid
95+
*.seed
96+
*.pid.lock
97+
98+
# Directory for instrumented libs generated by jscoverage/JSCover
99+
lib-cov
100+
101+
# Coverage directory used by tools like istanbul
102+
coverage
103+
*.lcov
104+
105+
# nyc test coverage
106+
.nyc_output
107+
108+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
109+
.grunt
110+
111+
# Bower dependency directory (https://bower.io/)
112+
bower_components
113+
114+
# node-waf configuration
115+
.lock-wscript
116+
117+
# Compiled binary addons (https://nodejs.org/api/addons.html)
118+
build/Release
119+
120+
# Dependency directories
121+
node_modules/
122+
jspm_packages/
123+
124+
# Snowpack dependency directory (https://snowpack.dev/)
125+
web_modules/
126+
127+
# TypeScript cache
128+
*.tsbuildinfo
129+
130+
# Optional npm cache directory
131+
.npm
132+
133+
# Optional eslint cache
134+
.eslintcache
135+
136+
# Optional stylelint cache
137+
.stylelintcache
138+
139+
# Microbundle cache
140+
.rpt2_cache/
141+
.rts2_cache_cjs/
142+
.rts2_cache_es/
143+
.rts2_cache_umd/
144+
145+
# Optional REPL history
146+
.node_repl_history
147+
148+
# Output of 'npm pack'
149+
*.tgz
150+
151+
# Yarn Integrity file
152+
.yarn-integrity
153+
154+
# dotenv environment variable files
155+
.env
156+
.env.development.local
157+
.env.test.local
158+
.env.production.local
159+
.env.local
160+
161+
# parcel-bundler cache (https://parceljs.org/)
162+
.cache
163+
.parcel-cache
164+
165+
# Next.js build output
166+
.next
167+
out
168+
169+
# Nuxt.js build / generate output
170+
.nuxt
171+
dist
172+
173+
# Gatsby files
174+
.cache/
175+
# Comment in the public line in if your project uses Gatsby and not Next.js
176+
# https://nextjs.org/blog/next-9-1#public-directory-support
177+
# public
178+
179+
# vuepress build output
180+
.vuepress/dist
181+
182+
# vuepress v2.x temp and cache directory
183+
.temp
184+
185+
# Docusaurus cache and generated files
186+
.docusaurus
187+
188+
# Serverless directories
189+
.serverless/
190+
191+
# FuseBox cache
192+
.fusebox/
193+
194+
# DynamoDB Local files
195+
.dynamodb/
196+
197+
# TernJS port file
198+
.tern-port
199+
200+
# Stores VSCode versions used for testing VSCode extensions
201+
.vscode-test
202+
203+
# yarn v2
204+
.yarn/cache
205+
.yarn/unplugged
206+
.yarn/build-state.yml
207+
.yarn/install-state.gz
208+
.pnp.*
209+
210+
### SolidityTruffle ###
211+
# depedencies
212+
node_modules
213+
214+
# testing
215+
216+
# production
217+
build_webpack
218+
219+
# misc
220+
npm-debug.log
221+
.truffle-solidity-loader
222+
.vagrant/**
223+
blockchain/geth/**
224+
blockchain/keystore/**
225+
blockchain/history
226+
227+
#truffle
228+
yarn.lock
229+
package-lock.json
230+
231+
### VisualStudioCode ###
232+
.vscode/*
233+
!.vscode/settings.json
234+
!.vscode/tasks.json
235+
!.vscode/launch.json
236+
!.vscode/extensions.json
237+
!.vscode/*.code-snippets
238+
239+
# Local History for Visual Studio Code
240+
.history/
241+
242+
# Built Visual Studio Code Extensions
243+
*.vsix
244+
245+
### VisualStudioCode Patch ###
246+
# Ignore all local history of files
247+
.history
248+
.ionide
249+
250+
# Support for Project snippet scope
251+
252+
### yarn ###
253+
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
254+
255+
.yarn/*
256+
!.yarn/releases
257+
!.yarn/patches
258+
!.yarn/plugins
259+
!.yarn/sdks
260+
!.yarn/versions
261+
262+
# if you are NOT using Zero-installs, then:
263+
# comment the following lines
264+
!.yarn/cache
265+
266+
# and uncomment the following lines
267+
# .pnp.*
268+
269+
# End of https://www.toptal.com/developers/gitignore/api/macos,solidity,soliditytruffle,visualstudiocode,yarn
270+
271+
artifacts/
272+
build/
273+
types/typechain
274+
bin/

.prettierrc.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": "*.sol",
5+
"options": {
6+
"printWidth": 120,
7+
"tabWidth": 4,
8+
"useTabs": false,
9+
"singleQuote": false,
10+
"bracketSpacing": false,
11+
"explicitTypes": "always"
12+
}
13+
}
14+
]
15+
}
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Place your crypto_playlist workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
"Instert storage": {
19+
"body": ["MultipassStorageStruct ms = MultipassStorage();"]
20+
}
21+
}

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[typescriptreact]": {
4+
// for .tsx files
5+
"editor.defaultFormatter": "esbenp.prettier-vscode",
6+
"editor.formatOnSave": true
7+
}
8+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Tim Pechersky
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Template repository

deploy/deploy_token.ts

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { HardhatRuntimeEnvironment } from "hardhat/types";
2+
import { DeployFunction } from "hardhat-deploy/types";
3+
4+
const func: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
5+
const { deployments, getNamedAccounts } = hre;
6+
const { deploy } = deployments;
7+
8+
const { deployer, owner } = await getNamedAccounts();
9+
10+
const result = await deploy("MockERC20", {
11+
from: deployer,
12+
args: ["TokenName", "TokenSymbol", owner],
13+
skipIfAlreadyDeployed: true,
14+
});
15+
console.log("deployed at", result.address);
16+
};
17+
18+
export default func;
19+
func.tags = ["mockERC20_token"];

0 commit comments

Comments
 (0)