Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add multichain permit2 allowance UI #1

Open
wants to merge 147 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 128 commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
de7c732
Initial commit
molecula451 Mar 1, 2024
1c4195c
refactor: onboard.ubq.fi (#1)
molecula451 Mar 2, 2024
3510c8f
Update README.md
molecula451 Mar 2, 2024
4ffd7d2
fix: default configuration undefined value (#7)
Mar 4, 2024
93bf89a
Create CODEOWNERS (#8)
molecula451 Mar 4, 2024
4210087
feat: added instructions and Cypress test
gentlementlegen Mar 6, 2024
02a7716
chore: enabled all tests
gentlementlegen Mar 6, 2024
22c40df
chore: added extension to testing with chrome
gentlementlegen Mar 6, 2024
11b7e7b
chore: headless chrome test
gentlementlegen Mar 6, 2024
83033b9
chore: updated yarn.lock
gentlementlegen Mar 6, 2024
c175f52
chore: added missing env keys
gentlementlegen Mar 6, 2024
316a062
chore: added missing env keys
gentlementlegen Mar 6, 2024
caf4224
chore: fixed env typo
gentlementlegen Mar 6, 2024
cbd3c00
Update README.md
0x4007 Mar 6, 2024
fa5f76a
Update README.md
0x4007 Mar 6, 2024
046718b
Update README.md
Mar 6, 2024
899bd93
Merge pull request #9 from FernandVEYRIER/feat/readme
0x4007 Mar 6, 2024
5451a5b
feat: oauth login
gentlementlegen Mar 8, 2024
ceb7046
chore: fixed creation sequence with OAuth
gentlementlegen Mar 11, 2024
822fa94
chore: fixed action run triggers
gentlementlegen Mar 11, 2024
8e48a64
fix: cypress tests fixtures
gentlementlegen Mar 11, 2024
00ad9b1
chore: replaced for .. in loop with object entries
gentlementlegen Mar 12, 2024
e172beb
chore: updated esbuild-build file
gentlementlegen Mar 12, 2024
d34c628
chore: renamed ins to installation for clarity
gentlementlegen Mar 12, 2024
67e03e8
chore: split user interface into separate files
gentlementlegen Mar 12, 2024
b1d0adb
chore: type cast on html elements
gentlementlegen Mar 12, 2024
2cc6281
chore: renamed setBtn to setButton
gentlementlegen Mar 12, 2024
1579b6e
Merge pull request #10 from FernandVEYRIER/feat/config-generation
0x4007 Mar 12, 2024
29316be
fix: cypress now defaults to chrome for testing in the Action file
gentlementlegen Mar 12, 2024
b4f41ba
Merge pull request #11 from FernandVEYRIER/development
Mar 12, 2024
d8aba50
Update CODEOWNERS
0x4007 Mar 13, 2024
8a618f3
ci: pass cloudflare credentials
rndquu Mar 13, 2024
a662dcc
Merge pull request #15 from rndquu/ci/pass-cloudflare-credentials
rndquu Mar 13, 2024
8f276fd
ci: fix cspell
rndquu Mar 13, 2024
4a54593
fix(cspell): add inline ignore comments
rndquu Mar 14, 2024
66b2bcb
Merge pull request #17 from rndquu/ci/cspell-fix
0x4007 Mar 14, 2024
27152e0
chore: fix knip warnings in onboarding repository
gitcoindev Mar 18, 2024
a492edc
Merge pull request #19 from gitcoindev/fix-knip-warnings-for-onboarding
rndquu Mar 18, 2024
72dab64
ci: use latest cloudflare deploy
rndquu Mar 19, 2024
648f4c2
ci: rename build workflow
rndquu Mar 19, 2024
a30b5f6
Merge pull request #20 from rndquu/ci/deploy-v2
rndquu Mar 19, 2024
b63bb3b
ci: update deploy.yml
rndquu Mar 19, 2024
85d9d05
chore: purge rewards and format
Keyrxng Mar 13, 2024
686c98f
fix: remove lib
Keyrxng Mar 13, 2024
15865b1
fix: knip
Keyrxng Mar 13, 2024
177c74e
chore: cspell
Keyrxng Mar 14, 2024
71f93b4
chore: cspell
Keyrxng Mar 14, 2024
b6456f2
ci: remove unused
Keyrxng Mar 20, 2024
902ff2b
Merge pull request #14 from ubq-testing/development
gitcoindev Apr 23, 2024
dbccca7
fix: added knip reported and removed target trigger
gentlementlegen Aug 19, 2024
92d7388
chore: fixed cspell
gentlementlegen Aug 19, 2024
d727bfe
chore: fixed knip
gentlementlegen Aug 19, 2024
bc08606
Merge branch 'development' into fix/pull-request-action
gentlementlegen Aug 19, 2024
572de16
Merge pull request #23 from gentlementlegen/fix/pull-request-action
gentlementlegen Aug 19, 2024
0b42983
Add sync-template.yml workflow
Sep 8, 2024
df9787d
Merge pull request #24 from zyrafal/development
0x4007 Sep 10, 2024
14ad314
Revert "PR #24"
0x4007 Oct 22, 2024
bfcecea
Merge pull request #26 from ubiquity/revert-pr-24-1729591075454
0x4007 Oct 22, 2024
fd8ab65
Revert "Add sync-template.yml workflow that synchronizes the repo wit…
0x4007 Oct 22, 2024
ac0e16d
Merge pull request #27 from ubiquity/revert-24-development
0x4007 Oct 22, 2024
1337fb0
revert: remove sync-template https://github.com/ubiquity/ts-template/…
0x4007 Oct 22, 2024
98551df
Merge pull request #28 from ubiquity/cleanup-20241022193450
0x4007 Oct 22, 2024
bc37549
feat: rollback to template
zugdev Nov 20, 2024
6719d29
chore: install dependencies
zugdev Nov 21, 2024
dc3aaaa
feat: base UI
zugdev Nov 21, 2024
68e1715
feat: add network button
zugdev Nov 21, 2024
a220ca3
feat: add chains
zugdev Nov 21, 2024
f6a4e17
chore: format
zugdev Nov 21, 2024
4571b5e
feat: basic styiling and form
zugdev Nov 21, 2024
287505d
feat: add current allowance
zugdev Nov 21, 2024
a3caa79
feat: add neon border
zugdev Nov 26, 2024
9634f81
feat: add token-selector and change expected allowance
zugdev Nov 26, 2024
edd0772
feat: fix token selector
zugdev Nov 26, 2024
3befb07
feat: update dropdown tokens based on network
zugdev Nov 26, 2024
03b9dcf
feat: add erc20 abi
zugdev Nov 26, 2024
6fd952e
feat: rollback to current allowance
zugdev Nov 26, 2024
9d1ffb8
feat: add permit2 address table
zugdev Nov 26, 2024
19f3bbf
feat: add web3 integration
zugdev Nov 26, 2024
5b93446
feat: initially disabled
zugdev Nov 26, 2024
5f48675
feat: better error modal
zugdev Nov 26, 2024
18adb4e
feat: all providers
zugdev Dec 13, 2024
1337208
chore: pull alchemy key from secrets on build
zugdev Dec 13, 2024
3c77a03
chore: yarn
zugdev Dec 18, 2024
6478209
feat: make ALCHEMY_KEY optional
zugdev Dec 18, 2024
4605da3
feat: enable anvil in localhost
zugdev Dec 18, 2024
e2149ad
chore: prettier
zugdev Dec 18, 2024
89b0f04
feat: batch update
zugdev Dec 21, 2024
ba36a2c
feat: responsivity
zugdev Dec 21, 2024
6bec149
chore: fix eslint version
zugdev Dec 21, 2024
1f81afa
Merge branch 'development' of https://github.com/zugdev/onboard.ubq.f…
zugdev Dec 21, 2024
8ea7037
chore: unlog
zugdev Dec 21, 2024
7878d48
feat: fix signer
zugdev Dec 21, 2024
fa44c95
feat: loading while minting tx
zugdev Dec 21, 2024
f421786
feat: capitalize
zugdev Dec 21, 2024
c526d60
feat: get rid of chainId
zugdev Dec 21, 2024
b5c844a
feat: remove button setup
zugdev Dec 21, 2024
f801b95
feat: better naming
zugdev Dec 21, 2024
3ffcf15
feat: add reference for zksync permit2 address
zugdev Dec 21, 2024
bded1b3
feat: use actions/create-github-app-token
zugdev Dec 21, 2024
8f8fa38
feat: getAllowance on address only
zugdev Dec 21, 2024
c22af00
feat: add success modal
zugdev Dec 21, 2024
c0ca66d
feat: success pop up
zugdev Dec 21, 2024
228f7d1
chore: fix jest
zugdev Dec 26, 2024
834b8dd
feat: add explorers map
zugdev Dec 26, 2024
1bd7ca8
feat: render success in revoke
zugdev Dec 26, 2024
8105aab
feat: add tx linkback in success
zugdev Dec 26, 2024
9299ea3
feat: remove alchemy from deploy
zugdev Dec 26, 2024
23f3344
chore: fix knip
zugdev Dec 26, 2024
f04f3d1
chore: typo
zugdev Dec 26, 2024
656e862
chore: missing div
zugdev Dec 26, 2024
58edb53
Merge branch 'development' of github.com:zugdev/onboard.ubq.fi into d…
zugdev Dec 26, 2024
c906697
feat: const
zugdev Jan 9, 2025
78fb771
chore: delete outdated
zugdev Jan 9, 2025
b525724
feat: feedback on erc20 fail
zugdev Jan 9, 2025
326dbc2
chore: cspell
zugdev Jan 9, 2025
c99f741
feat: add anvil support
zugdev Feb 2, 2025
ac0d6c5
feat: better current allowance text
zugdev Feb 2, 2025
37ac268
feat: better css
zugdev Feb 2, 2025
e70367f
Merge branch 'development' of github.com:zugdev/permit2-allowance.ubq…
zugdev Feb 3, 2025
ba4a30f
chore: +x
zugdev Feb 3, 2025
8d177cb
feat: update addresses
zugdev Feb 4, 2025
f71c43b
chore: clean left over
zugdev Feb 4, 2025
4c786b5
feat: exclude from string check
zugdev Feb 4, 2025
ab7e6a7
feat: fix path
zugdev Feb 4, 2025
15024dd
chore: knip
zugdev Feb 4, 2025
a390cb1
feat: fix empty strings
zugdev Feb 4, 2025
b828161
feat: fix knip
zugdev Feb 4, 2025
ed60b76
feat: better message in rpc error case
zugdev Feb 5, 2025
007b2cd
chore: install rpc handler
zugdev Feb 8, 2025
f6ac2ca
feat: fix error modal
zugdev Feb 8, 2025
22a1f00
feat: use rpc-handler
zugdev Feb 8, 2025
b92fcd0
feat: remove comment
zugdev Feb 8, 2025
8419300
chore: capitalize
zugdev Feb 11, 2025
322a004
feat: number in map
zugdev Feb 11, 2025
5b88ec2
feat: fix empty strings
zugdev Feb 11, 2025
779cc5d
chore: prettier
zugdev Feb 11, 2025
652283d
Merge branch 'development' of github.com:zugdev/permit2-allowance.ubq…
zugdev Feb 11, 2025
3294883
feat: rename reown config to new web name
zugdev Feb 11, 2025
d8f557c
chore: fix knip
zugdev Feb 11, 2025
e1dc866
feat: bun install
zugdev Feb 11, 2025
82c7aa1
feat: fix void and husky
zugdev Feb 11, 2025
cb4b974
feat: fix handlers
zugdev Feb 11, 2025
a25f967
chore: use bun and knip
zugdev Feb 11, 2025
f20643f
chore: yarn on .github/workflows
zugdev Feb 11, 2025
f314212
chore: small fix
zugdev Feb 11, 2025
28e2bc0
feat: fix knip
zugdev Feb 11, 2025
04587e0
chore: small fix
zugdev Feb 11, 2025
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
2 changes: 1 addition & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"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"],
"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"],
ignoreBinaries: ["cypress/scripts/anvil.sh"],
eslint: true,
};

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.

4 changes: 4 additions & 0 deletions cypress/scripts/anvil.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# start anvil
anvil --block-time 5 --chain-id 31337 --rpc-url https://rpc.ankr.com/eth
18 changes: 13 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-template",
"version": "0.0.0",
"description": "Template repository with TypeScript support.",
"name": "permit2-allowance-ubq",
"version": "1.0.0",
"description": "Ubiquity permit2 allowance page for partners.",
"main": "build/index.ts",
"author": "Ubiquity DAO",
"license": "MIT",
Expand All @@ -20,7 +20,8 @@
"prepare": "husky install",
"test": "jest --setupFiles dotenv/config --coverage",
"cy:open": "cypress open",
"cy:run": "cypress run"
"cy:run": "cypress run",
"test:anvil": "cypress/scripts/anvil.sh"
},
"keywords": [
"typescript",
Expand All @@ -30,7 +31,11 @@
"open-source"
],
"dependencies": {
"dotenv": "^16.4.4"
"@coinbase/wallet-sdk": "^4.2.3",
"@reown/appkit": "^1.5.0",
"@reown/appkit-adapter-ethers5": "^1.5.0",
"dotenv": "16.4.4",
"ethers": "5"
},
"devDependencies": {
"@actions/core": "^1.11.1",
Expand Down Expand Up @@ -77,5 +82,8 @@
"extends": [
"@commitlint/config-conventional"
]
},
"bin": {
"anvil": "./cypress/scripts/anvil.sh"
}
}
3 changes: 0 additions & 3 deletions src/components/component1.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/components/component2.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/home.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/controllers/404.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/controllers/home.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/controllers/page1.ts

This file was deleted.

14 changes: 0 additions & 14 deletions src/controllers/page2.ts

This file was deleted.

23 changes: 0 additions & 23 deletions src/main.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/on-load.ts

This file was deleted.

41 changes: 0 additions & 41 deletions src/router.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/shared/types.ts

This file was deleted.

Loading