Skip to content

Commit 0510b57

Browse files
committed
base commit
0 parents  commit 0510b57

60 files changed

Lines changed: 21278 additions & 0 deletions

Some content is hidden

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

.eslintrc.cjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true,
6+
jest: true,
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/eslint-recommended',
11+
'plugin:@typescript-eslint/recommended',
12+
'plugin:o1js/recommended',
13+
],
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
ecmaVersion: 'latest',
17+
},
18+
plugins: ['@typescript-eslint', 'o1js'],
19+
rules: {
20+
'no-constant-condition': 'off',
21+
'prefer-const': 'off',
22+
},
23+
};

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Use line endings appropriate for the system. This prevents Git from
2+
# complaining about project template line endings when committing on Windows.
3+
* text=auto eol=lf

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: zkApp tests
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch: {}
6+
jobs:
7+
test:
8+
timeout-minutes: 30
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
node: [18, 20]
14+
os: [ubuntu-latest]
15+
#
16+
# Enable the following block if you also want to use the Lightnet in your tests.
17+
#
18+
# services:
19+
# mina-local-network:
20+
# image: o1labs/mina-local-network:compatible-latest-lightnet
21+
# env:
22+
# NETWORK_TYPE: 'single-node'
23+
# PROOF_LEVEL: 'none'
24+
# LOG_LEVEL: 'Info'
25+
# ports:
26+
# - 3085:3085
27+
# - 5432:5432
28+
# - 8080:8080
29+
# - 8181:8181
30+
# - 8282:8282
31+
# volumes:
32+
# - /tmp:/root/logs
33+
steps:
34+
#
35+
# Enable the following block if you also want to use the Lightnet in your tests.
36+
#
37+
# - name: Wait for Mina network readiness
38+
# uses: o1-labs/wait-for-mina-network-action@v1
39+
# with:
40+
# mina-graphql-port: 8080
41+
# max-attempts: 60
42+
# polling-interval-ms: 10000
43+
- name: Set up NodeJS
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: ${{ matrix.node }}
47+
- name: Git checkout
48+
uses: actions/checkout@v4
49+
- name: NPM ci, build, & test
50+
run: |
51+
npm ci
52+
npm run build --if-present
53+
npm test
54+
env:
55+
CI: true
56+
#
57+
# Enable the following block if you also want to use the Lightnet in your tests.
58+
#
59+
# - name: Upload Mina logs
60+
# uses: actions/upload-artifact@v4
61+
# continue-on-error: true
62+
# if: always()
63+
# with:
64+
# if-no-files-found: ignore
65+
# name: mina-logs-node${{ matrix.node }}-${{ matrix.os }}
66+
# path: /tmp/*.log
67+
# retention-days: 5

.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# NodeJS
2+
build
3+
node_modules
4+
coverage
5+
6+
# Editor
7+
.vscode
8+
9+
# System
10+
.DS_Store
11+
12+
# Never commit keys to Git!
13+
keys
14+
15+
# o1js cache
16+
cache
17+
18+
# Resources & Chats
19+
resources/
20+
_resources/
21+
**/resources/
22+
chats/
23+
**/chats/
24+
25+
# Logs (comprehensive)
26+
*.log
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
pnpm-debug.log*
31+
.pnpm-debug.log*
32+
33+
# Environment files
34+
.env
35+
.env.local
36+
.env.development.local
37+
.env.test.local
38+
.env.production.local
39+
.env*.local
40+
41+
# TypeScript
42+
*.tsbuildinfo
43+
44+
# Testing (extended)
45+
.nyc_output/
46+
47+
# Package Manager Cache
48+
.yarn/cache
49+
.yarn/unplugged
50+
.yarn/build-state.yml
51+
.yarn/install-state.gz
52+
.pnpm-store/
53+
.pnpm/
54+
55+
# IDE (extended)
56+
.idea/
57+
*.swp
58+
*.swo
59+
*~
60+
.LSP*
61+
*.iml
62+
63+
# OS Files (extended)
64+
Thumbs.db
65+
.AppleDouble
66+
.LSOverride
67+
68+
# Temporary files
69+
*.tmp
70+
*.temp

.npmignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Source files
2+
src
3+
4+
node_modules
5+
coverage
6+
7+
# Editor
8+
.vscode
9+
10+
# System
11+
.DS_Store
12+
13+
# Never reveal your keys!
14+
keys

.prettierignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# NodeJS
2+
node_modules
3+
build
4+
coverage
5+
.husky
6+
7+
# Editor
8+
.vscode
9+
10+
# System
11+
.DS_Store
12+
13+
# Misc
14+
LICENSE

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5"
6+
}

0 commit comments

Comments
 (0)