Skip to content

Commit

Permalink
Merge pull request #1 from zugdev/development
Browse files Browse the repository at this point in the history
add multichain permit2 allowance UI
  • Loading branch information
rndquu authored Feb 14, 2025
2 parents 571392b + 04587e0 commit 8d7d7ab
Show file tree
Hide file tree
Showing 42 changed files with 4,324 additions and 13,634 deletions.
18 changes: 17 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@
"ignorePaths": ["**/*.json", "**/*.css", "node_modules", "**/*.log"],
"useGitignore": true,
"language": "en",
"words": ["dataurl", "devpool", "outdir", "servedir"],
"words": [
"dataurl",
"devpool",
"outdir",
"servedir",
"TYPEHASH",
"noopener",
"noreferrer",
"reown",
"appkit",
"zksync",
"worldchain",
"Caip",
"UUSD",
"ethersproject",
"Rpcs"
],
"dictionaries": ["typescript", "node", "software-terms"],
"import": ["@cspell/dict-typescript/cspell-ext.json", "@cspell/dict-node/cspell-ext.json", "@cspell/dict-software-terms"],
"ignoreRegExpList": ["[0-9a-fA-F]{6}"]
Expand Down
1 change: 1 addition & 0 deletions .github/empty-string-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const excludedFiles: string[] = process.env.EXCLUDED_FILES
.map((file) => file.trim())
.filter(Boolean)
: [];
excludedFiles.push("static/abis.ts");

if (!token || !owner || !repo || pullNumber === "0" || !baseRef) {
core.setFailed("Missing required environment variables.");
Expand Down
5 changes: 3 additions & 2 deletions .github/knip.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type { KnipConfig } from "knip";

const config: KnipConfig = {
entry: ["build/index.ts", ".github/empty-string-checker.ts"],
entry: ["static/main.ts", ".github/empty-string-checker.ts"],
project: ["src/**/*.ts"],
ignore: ["src/types/config.ts", "**/__mocks__/**", "**/__fixtures__/**", "eslint.config.mjs"],
ignoreExportsUsedInFile: true,
// eslint can also be safely ignored as per the docs: https://knip.dev/guides/handling-issues#eslint--jest
ignoreDependencies: ["eslint-config-prettier", "eslint-plugin-prettier", "@types/jest", "@mswjs/data"],
ignoreDependencies: ["dotenv", "@mswjs/data", "@ubiquity-dao/rpc-handler"],
ignoreBinaries: ["cypress/scripts/anvil.sh"],
eslint: true,
};

Expand Down
5 changes: 3 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!---
<!---
Insert the issue number of the task you are completing if within this repository, or paste the url of the task.
// EXAMPLE
Expand All @@ -9,7 +9,7 @@ Resolves #

<!---
We advise that you give a brief description of your changes, either that it meets
the specification exactly as described or what you had to do outwith the spec to resolve it.
the specification exactly as described or what you had to do outwith the spec to resolve it.
This is not required but again, it is advised.
// EXAMPLE
Expand Down Expand Up @@ -48,4 +48,5 @@ Example: https://github.com/ubiquity/pay.ubq.fi/pull/226#issue-2290493538
-->

How to QA and setup:

- ...
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Build
run: |
yarn
yarn install
yarn build
- name: Upload build artifact
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cspell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
run: yarn add cspell

- name: Run cspell
run: yarn format:cspell
run: yarn run format:cspell
2 changes: 1 addition & 1 deletion .github/workflows/cypress-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
install-command: yarn install
build: yarn run build
start: yarn start
start: yarn run start
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Jest With Coverage
run: yarn install --immutable --immutable-cache --check-cache && yarn test
run: yarn install --immutable --immutable-cache --check-cache && yarn run test

- name: Add Jest Report to Summary
if: always()
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

# needed to use yarn v4
- name: Enable corepack
run: corepack enable

Expand All @@ -26,7 +25,7 @@ jobs:
run: echo ${{ github.event.number }} > pr-number.txt

- name: Run Knip
run: yarn knip || yarn knip --reporter json > knip-results.json
run: yarn run knip || yarn run knip --reporter json > knip-results.json

- name: Upload knip result
if: failure()
Expand Down
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit "$1"
bun commitlint --edit "$1"
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
bun lint-staged
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ This template repository includes support for the following:
To test with Cypress Studio UI, run

```shell
yarn cy:open
bun cy:open
```

Otherwise, to simply run the tests through the console, run

```shell
yarn cy:run
bun cy:run
```

### Jest

To start Jest tests, run

```shell
yarn test
bun test
```

## Sync any repository to latest `ts-template`
Expand Down
2 changes: 1 addition & 1 deletion build/esbuild-build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import esbuild, { BuildOptions } from "esbuild";

const typescriptEntries = ["src/main.ts"];
const typescriptEntries = ["static/main.ts"];
const cssEntries = ["static/style.css"];
const entries = [...typescriptEntries, ...cssEntries];

Expand Down
4 changes: 0 additions & 4 deletions build/index.ts

This file was deleted.

Loading

0 comments on commit 8d7d7ab

Please sign in to comment.