Skip to content

Commit 9bbdda6

Browse files
committed
feat: 🎸 initial poap tapp and contract
1 parent e4d7323 commit 9bbdda6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+19345
-0
lines changed

‎poap/.eslintignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

‎poap/.eslintrc.cjs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'eslint:recommended',
5+
'plugin:@typescript-eslint/recommended',
6+
'plugin:svelte/recommended',
7+
'prettier'
8+
],
9+
parser: '@typescript-eslint/parser',
10+
plugins: ['@typescript-eslint'],
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020,
14+
extraFileExtensions: ['.svelte']
15+
},
16+
env: {
17+
browser: true,
18+
es2017: true,
19+
node: true
20+
},
21+
overrides: [
22+
{
23+
files: ['*.svelte'],
24+
parser: 'svelte-eslint-parser',
25+
parserOptions: {
26+
parser: '@typescript-eslint/parser'
27+
}
28+
}
29+
]
30+
};

‎poap/.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/dist
5+
/.svelte-kit
6+
/package
7+
.env
8+
.env.*
9+
!.env.example
10+
vite.config.js.timestamp-*
11+
vite.config.ts.timestamp-*
12+
*.key
13+
*.pub

‎poap/.prettierignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock

‎poap/.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"pluginSearchDirs": ["."],
8+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
9+
}

‎poap/README.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Svelte Project Template
2+
3+
## Development
4+
5+
### Exploring the project directory
6+
7+
- `/tokenscript.xml` defines project's the views, actions and props in correlation with the Svelte application. Each view should be defined inside the `TokenScript.xml` and within the Svelte application.
8+
9+
- `/App.svelte` is an entry point which new views can be added to the Svelte application.
10+
11+
- `/src/routes/` contains example views `Mint` and `Info` which can be built upon or used as a reference towards your project.
12+
13+
- `/out/tokenscript.tsml` is the finalised project output. This is generated when you start or build this application.
14+
15+
### Start
16+
17+
`npm run start`
18+
19+
### Build
20+
21+
`npm run build`
22+
23+
### Test
24+
25+
Import the output `/out/tokenscript.tsml` file into a supported platform
26+
27+
- [TokenScript Viewer](https://viewer.tokenscript.org/)
28+
- [TokenScript Launch Pad](https://launchpad.smartlayer.network/)
29+
- [Joy.id](https://joy.id/)
30+
- [AlphaWallet](https://alphawallet.com/)
31+
32+
### Deploy
33+
34+
Email us at <[email protected]>
35+
36+
## Docs and Resources
37+
38+
- [Smart Token Launch Pad Docs](https://launchpad-doc.vercel.app/)
39+
- [Smart Token Launch Pad](https://launchpad.smartlayer.network/)
40+
- [Smart Token Layer](https://www.smartlayer.network/)
41+
- [TokenScript](https://www.tokenscript.org/)
42+
43+
44+

‎poap/contract/.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts/"
3+
}

‎poap/contract/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
node_modules
2+
.env
3+
coverage
4+
coverage.json
5+
typechain
6+
typechain-types
7+
8+
# Hardhat files
9+
cache
10+
artifacts
11+

‎poap/contract/.prettierrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('gts/.prettierrc.json')
3+
}

‎poap/contract/.solhint.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"rules": {
3+
"no-unused-vars": "error",
4+
"const-name-snakecase": "error",
5+
"contract-name-camelcase": "error",
6+
"event-name-camelcase": "error",
7+
"func-name-mixedcase": "warn",
8+
"func-param-name-mixedcase": "error",
9+
"modifier-name-mixedcase": "error",
10+
"private-vars-leading-underscore": "error",
11+
"var-name-mixedcase": "error",
12+
"imports-on-top": "error",
13+
"max-line-length": "warn",
14+
"avoid-suicide": "error",
15+
"avoid-sha3": "warn"
16+
}
17+
}

‎poap/contract/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Sample Hardhat Project
2+
3+
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.
4+
5+
Try running some of the following tasks:
6+
7+
```shell
8+
npx hardhat help
9+
npx hardhat test
10+
REPORT_GAS=true npx hardhat test
11+
npx hardhat node
12+
npx hardhat run scripts/deploy.ts
13+
```
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false
4+
}

0 commit comments

Comments
 (0)