Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c9265ed
docs: update dev doc
MJLNSN Feb 25, 2026
4794942
feat: MVP contract + frontend — deploy to PAS testnet
MJLNSN Feb 25, 2026
60096ac
test: add more unit tests
MJLNSN Feb 26, 2026
6501287
docs: update readme
MJLNSN Feb 26, 2026
b586663
ci: add github ci
MJLNSN Feb 26, 2026
fd7c7a2
ci: trigger on firstVersion branch
MJLNSN Feb 26, 2026
a8c1e4e
ci: add dev branch trigger
MJLNSN Feb 26, 2026
4a176dc
Merge pull request #2 from easyshellworld/firstVersion
easyshellworld Feb 26, 2026
9d6a2f0
fix:docs
Feb 26, 2026
d349f74
refactor(frontend): modularize architecture per dev_doc.md
MJLNSN Feb 26, 2026
4a012de
Merge pull request #3 from easyshellworld/v1.0.2
easyshellworld Feb 27, 2026
1872aa1
feat:contracts
Feb 27, 2026
61a3976
fix:setup-node.sh
Feb 27, 2026
b120fa2
fix:ci.yml back
Feb 27, 2026
d3ba17e
fix:ci.yml
Feb 27, 2026
ab9898d
fix: polish ui
MJLNSN Mar 1, 2026
6c2b8b5
Merge pull request #4 from easyshellworld/v1.1.1
MJLNSN Mar 1, 2026
1c48626
fix: fix ci
MJLNSN Mar 1, 2026
88c1ad5
Merge pull request #5 from easyshellworld/v1.1.1
MJLNSN Mar 1, 2026
f1acce7
test: add scripts for e2e test
MJLNSN Mar 1, 2026
97333bf
Merge pull request #6 from easyshellworld/v1.1.1
MJLNSN Mar 1, 2026
3017e1e
fix: double check security
MJLNSN Mar 1, 2026
2113de1
Merge pull request #7 from easyshellworld/v1.1.1
MJLNSN Mar 1, 2026
6ba19af
feat(frontend): implement governance proposal workflow; replace ether…
Mar 2, 2026
79316e0
fix: multiple changes, done by opus4.6maxthinking, haven't been revie…
MJLNSN Mar 2, 2026
bc462fa
fix: fix ui
MJLNSN Mar 2, 2026
4fe7664
fix:readme && add RPC_doc.md && add test ppt.html
Mar 3, 2026
00bcebf
fix: fix multiple things
MJLNSN Mar 3, 2026
bcfb9fa
fix: polish ui
MJLNSN Mar 3, 2026
274860e
fix: xin da ya
MJLNSN Mar 3, 2026
e126677
fix: ai did some fix, while i knew nothing except for the ui part
MJLNSN Mar 4, 2026
9bf64aa
refactor: tokenomics 2.0
MJLNSN Mar 4, 2026
72945fb
docs: update tekenomics
MJLNSN Mar 4, 2026
78dbbfd
docs: update 2.0 docs
MJLNSN Mar 4, 2026
7308a79
fix: i havn't check what opus has done but it seems like it has done …
MJLNSN Mar 4, 2026
baeb6dc
fix:ppt.html
Mar 4, 2026
b32eee3
fix:ppt.html
Mar 4, 2026
dd77a0b
updata:v3
Mar 8, 2026
65dbcaf
updata:v3
Mar 8, 2026
289a129
fix:ci bug
Mar 8, 2026
a8faf49
fix:CI bug
Mar 8, 2026
c05f710
ci: stabilize polkadot node workflow with smoke gating
Mar 8, 2026
7b6a7b8
fix:ppt
Mar 8, 2026
8168d41
fix:frontend
Mar 9, 2026
c575332
fix:bug
Mar 9, 2026
59e2f2b
fix:ppt
Mar 9, 2026
0deed4c
fix:frontend governance bug
Mar 11, 2026
892bc21
fix:ci
Mar 11, 2026
ca4972d
fix: polish ui
MJLNSN Mar 12, 2026
d609a40
Enhance frontend hooks and i18n; optimize CI workflows; improve docum…
Mar 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: CI

on:
push:
branches: [main, dev]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# ─── Contracts: compile + unit + integration tests ───────────────────────
contracts:
name: Contracts — compile & test (v3.4)
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./contracts

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: contracts/package-lock.json

- name: Check for package-lock.json
run: |
if [ ! -f package-lock.json ]; then
echo "⚠️ package-lock.json not found, generating from package.json"
npm install --package-lock-only
fi

- name: Install dependencies
run: npm install

- name: Compile contracts
run: npx hardhat compile

- name: Run unit tests (Hardhat Network)
run: npx hardhat test test/unit/*.test.ts --network hardhat
continue-on-error: false

- name: Run integration tests (Hardhat Network)
run: npx hardhat test test/integration/*.test.ts --network hardhat
continue-on-error: false

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: contracts-test-results
path: test-results
if-no-files-found: warn



# ─── Frontend: lint + type-check + build ────────────────────────────────
frontend:
name: Frontend — lint & build
runs-on: ubuntu-latest

defaults:
run:
working-directory: frontend

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Lint
run: npx eslint .

- name: Type check
run: npx tsc -b

- name: Unit tests
run: npx jest --ci --coverage

- name: Build
run: npx vite build
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Dependencies
node_modules/
frontend/node_modules/

# Build artifacts
artifacts/
cache/
typechain-types/
frontend/dist/
frontend/dist-ssr/

# Local node binaries (downloaded by scripts/setup-node.sh)
bin/

# Environment & secrets
.env
.env.*
!.env.example

# Generated deployment output
deployed-addresses.json

# Logs
*.log
npm-debug.log*
yarn-debug.log*

# Editor & OS
.vscode/
.idea/
.DS_Store
*.suo
*.sw?
*.local

# Coverage & reports
coverage/
coverage.json
gasReporterOutput.json
[empty]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 PolkaClaw

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 9 additions & 0 deletions contracts/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Deployer private key (hex, with 0x prefix)
PRIVATE_KEY=0xYOUR_PRIVATE_KEY_HERE

# Testing: mnemonic phrase + HD derivation index (m/44'/60'/0'/0/{index})
# PRIVATE_KEY_FOR_TESTING=your twelve word mnemonic phrase here
# DERIVATION_INDEX=0

# Optional: Gas reporter
REPORT_GAS=false
Loading
Loading