diff --git a/.github/workflows/taikoon.yml b/.github/workflows/taikoon.yml deleted file mode 100644 index 87f0eb680ad..00000000000 --- a/.github/workflows/taikoon.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Taikoon - -on: - push: - branches: [main] - paths: - - "packages/taikoon/**" - pull_request: - paths: - - "packages/taikoon/**" - -jobs: - build: - runs-on: [taiko-runner] - steps: - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly-2cb875799419c907cc3709e586ece2559e6b340e - - - name: Install pnpm dependencies - uses: ./.github/actions/install-pnpm-dependencies - - - name: Check formatting - working-directory: ./packages/taikoon - run: forge fmt --check - - - name: Unit Tests - working-directory: ./packages/taikoon - run: pnpm clean && pnpm test diff --git a/.github/workflows/validate-pr-title.yml b/.github/workflows/validate-pr-title.yml index 3c5591376e6..f6003619150 100644 --- a/.github/workflows/validate-pr-title.yml +++ b/.github/workflows/validate-pr-title.yml @@ -39,7 +39,6 @@ jobs: guardian-prover-health-check-ui protocol relayer - taikoon opcontracts requireScope: true subjectPattern: ^(?![A-Z]).+$ # Require lowercase PR title diff --git a/packages/taikoon/.eslintignore b/packages/taikoon/.eslintignore deleted file mode 100644 index fcece9835f3..00000000000 --- a/packages/taikoon/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -artifacts -cache -coverage -lib \ No newline at end of file diff --git a/packages/taikoon/.eslintrc.js b/packages/taikoon/.eslintrc.js deleted file mode 100644 index 4c6326c83b5..00000000000 --- a/packages/taikoon/.eslintrc.js +++ /dev/null @@ -1,30 +0,0 @@ -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-unpublished-require": "off", - "node/no-unpublished-import": "off", - "node/no-missing-import": "off", - "node/no-missing-require": "off", - "no-unused-expressions": "off", - "no-global-import": "off", - }, -}; diff --git a/packages/taikoon/.gitignore b/packages/taikoon/.gitignore deleted file mode 100644 index c99ed87a51c..00000000000 --- a/packages/taikoon/.gitignore +++ /dev/null @@ -1,33 +0,0 @@ -node_modules -.env -coverage -coverage.json -.gas-snapshot -typechain -abis -abi -deployments/*.json -bin -yarn.lock -yarn-debug.log* -yarn-error.log* -package-lock.json -npm-debug.log* -typechain-types - -# Hardhat files -cache -artifacts -cache -cache_forge -cache_hardhat -out - -# Foundry -broadcast - -# Editors -.vscode - -#coverage -lcov.info diff --git a/packages/taikoon/.prettierignore b/packages/taikoon/.prettierignore deleted file mode 100644 index 3fadde88a77..00000000000 --- a/packages/taikoon/.prettierignore +++ /dev/null @@ -1,6 +0,0 @@ -node_modules -lib -artifacts -cache -coverage* -gasReporterOutput.json diff --git a/packages/taikoon/.prettierrc.json b/packages/taikoon/.prettierrc.json deleted file mode 100644 index c9b8e0fb772..00000000000 --- a/packages/taikoon/.prettierrc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "overrides": [ - { - "files": ["*.ts"], - "options": { - "tabWidth": 4 - } - } - ] -} diff --git a/packages/taikoon/.solhint.json b/packages/taikoon/.solhint.json deleted file mode 100644 index 047afd0e5b4..00000000000 --- a/packages/taikoon/.solhint.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "extends": "solhint:recommended", - "rules": { - "avoid-low-level-calls": "off", - "avoid-tx-origin": "off", - "compiler-version": ["error", "0.8.24"], - "func-name-mixedcase": "off", - "func-visibility": ["error", { "ignoreConstructors": true }], - "max-line-length": ["error", 120], - "no-empty-blocks": "off", - "named-parameters-mapping": "warn", - "no-console": "off", - "no-global-import": "off", - "no-inline-assembly": "off", - "not-rely-on-time": "off", - "one-contract-per-file": "off" - } -} diff --git a/packages/taikoon/.solhintignore b/packages/taikoon/.solhintignore deleted file mode 100644 index c18ed016a7f..00000000000 --- a/packages/taikoon/.solhintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -lib/ \ No newline at end of file diff --git a/packages/taikoon/README.md b/packages/taikoon/README.md deleted file mode 100644 index 03f2b8ca48f..00000000000 --- a/packages/taikoon/README.md +++ /dev/null @@ -1 +0,0 @@ -# Taikoon NFT diff --git a/packages/taikoon/contracts/TaikoonToken.sol b/packages/taikoon/contracts/TaikoonToken.sol deleted file mode 100644 index 93771511ad0..00000000000 --- a/packages/taikoon/contracts/TaikoonToken.sol +++ /dev/null @@ -1,4 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0 -pragma solidity ^0.8.24; - -contract TaikoonToken { } diff --git a/packages/taikoon/foundry.toml b/packages/taikoon/foundry.toml deleted file mode 100644 index fdbe124480a..00000000000 --- a/packages/taikoon/foundry.toml +++ /dev/null @@ -1,49 +0,0 @@ -[profile.default] -src = "contracts" -out = "out" -test = "test" -script = "script" -gas_price = 10_000_000_000 # 10 Gwei -gas_limit = "18446744073709551615" # u64::MAX -optimizer = true -optimizer_runs = 200 -ffi = true -memory_limit = 2_073_741_824 -solc_version = "0.8.24" -evm_version = "cancun" -remappings = [ - "@openzeppelin/contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/", - "@openzeppelin/contracts/=node_modules/@openzeppelin/contracts/", - "solady/=node_modules/solady/", - "forge-std/=node_modules/forge-std/", - "ds-test/=node_modules/ds-test/src/", - "p256-verifier/=node_modules/p256-verifier/", -] - -# Do not change the block_gas_limit value, TaikoL2.t.sol depends on it. -# For mainnet_mock tokenomics test we need a huge value to run lots of iterations. -# Use 30M for TaikoL2.t.sol related tests, only use this number with mainnet simulation. -block_gas_limit = 80_000_000 - -fs_permissions = [ - { access = "read", path = "./out" }, - { access = "read-write", path = "./deployments" }, - { access = "read", path = "./test" }, - { access = "read", path = "./genesis" }, -] - -# 2394: Transient storage warning -# 3860: Contract initcode size is xxx bytes and exceeds 49152 bytes -# 5574: Contract code size is xxx bytes and exceeds 24576 byte -ignored_error_codes = [2394, 3860, 5574] - -[fuzz] -runs = 200 - -[fmt] -bracket_spacing = true -line_length = 100 -multiline_func_header = "all" -number_underscore = "thousands" -wrap_comments = true - diff --git a/packages/taikoon/package.json b/packages/taikoon/package.json deleted file mode 100644 index 064e963835c..00000000000 --- a/packages/taikoon/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@taiko/taikoon", - "version": "1.0.0", - "private": true, - "scripts": { - "clean": "rm -rf abis cache* && forge clean", - "compile": "forge build --build-info --extra-output storage-layout", - "eslint": "pnpm exec eslint --ignore-path .eslintignore --ext .js,.ts .", - "fmt:sol": "forge fmt", - "lint:sol": "forge fmt && pnpm solhint 'contracts/**/*.sol'", - "test": "forge test -vvv --match-path test/*.t.sol" - }, - "devDependencies": { - "@types/node": "^20.11.20", - "@typescript-eslint/eslint-plugin": "^7.4.0", - "@typescript-eslint/parser": "^7.7.0", - "eslint": "^8.51.0", - "eslint-config-prettier": "^9.1.0", - "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.28.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-prettier": "^5.1.3", - "eslint-plugin-promise": "^6.1.1", - "ethers": "^5.7.2", - "solc": "0.7.3", - "solhint": "^4.5.4", - "ts-node": "^10.9.2", - "typescript": "^5.2.2" - }, - "dependencies": { - "@openzeppelin/contracts": "4.9.6", - "@openzeppelin/contracts-upgradeable": "4.9.6", - "ds-test": "github:dapphub/ds-test#e282159d5170298eb2455a6c05280ab5a73a4ef0", - "forge-std": "github:foundry-rs/forge-std#v1.7.5", - "merkletreejs": "^0.3.11", - "p256-verifier": "github:taikoxyz/p256-verifier#v0.1.0", - "solady": "github:Vectorized/solady#v0.0.167" - } -} diff --git a/packages/taikoon/slither.config.json b/packages/taikoon/slither.config.json deleted file mode 100644 index f6358bea537..00000000000 --- a/packages/taikoon/slither.config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "detectors_to_exclude": "incorrect-equality,naming-convention", - "exclude_dependencies": true, - "exclude_informational": true, - "exclude_low": true, - "exclude_optimization": true, - "fail_on": "none", - "filter_paths": "(node_modules)" -}