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

refactor: move to automated checks #62

Merged
merged 76 commits into from
May 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
4eab520
organize script folder
mds1 Apr 13, 2024
da1e104
init bun scripts
mds1 Apr 13, 2024
9f13306
style: init biome
mds1 Apr 14, 2024
a260ceb
save metadata to json
mds1 Apr 14, 2024
b750baf
feat: check opcodes
mds1 Apr 15, 2024
e7561d9
chore: sort keys
mds1 Apr 15, 2024
033d101
feat: slice by feature
mds1 Apr 15, 2024
78a98b2
build: generate data with 'bun main {chainId}'
mds1 Apr 15, 2024
2191b42
chore: slim down opcode output
mds1 Apr 15, 2024
f5f82fa
refactor: change to arrays
mds1 Apr 16, 2024
03699bd
feat: add deployed contracts checks
mds1 Apr 17, 2024
7c4228c
improve ux
mds1 Apr 17, 2024
6ebc8d8
feat: precompile support
mds1 Apr 17, 2024
de92994
refactor: move to checks folder
mds1 Apr 17, 2024
a135007
chore: remove log
mds1 Apr 18, 2024
f140c55
chore: split up lint and fmt jobs
mds1 Apr 18, 2024
9339ceb
feat: add addresses that uniquely identify an evm stack
mds1 Apr 19, 2024
6b0840a
build: fix lint error
mds1 Apr 25, 2024
4dd3804
start UI work
mds1 Apr 28, 2024
df8838d
feat: add opcodes back to UI
mds1 Apr 29, 2024
2aa413e
add deployed contracts to UI
mds1 Apr 30, 2024
11f3fe0
add precompiles to UI
mds1 Apr 30, 2024
9d63605
add stack addrs to UI
mds1 May 1, 2024
d354f41
style: reduce row spacing
mds1 May 1, 2024
77b0d48
build: fix lint errors
mds1 May 1, 2024
4953eb3
build: move from pnpm to bun
mds1 May 1, 2024
b548b12
style: switch from prettier to biome
mds1 May 2, 2024
3f264c7
chore: unify dirs
mds1 May 5, 2024
39f0412
chore: some fixes
mds1 May 5, 2024
eaf9e3e
build: watch mode
mds1 May 5, 2024
81d322b
chore: remove old comments
mds1 May 5, 2024
308aa3b
feat: add Base
mds1 May 5, 2024
ad0cc85
feat: load in new chains
mds1 May 5, 2024
3c03669
style: some info/UX cleanup
mds1 May 5, 2024
54b1803
feat: json diffs
mds1 May 5, 2024
d5d77f7
style: add logos
mds1 May 6, 2024
c0c28f5
style: change toggle
mds1 May 6, 2024
27cd41e
feat: query params
mds1 May 8, 2024
666c6e8
update contributing
mds1 May 8, 2024
baf24d7
style: loading spinner
mds1 May 8, 2024
906eee9
style: move things from footer to header
mds1 May 8, 2024
8414d06
style: diff scroll improvements
mds1 May 9, 2024
241a825
ci: update for bun
mds1 May 9, 2024
016bac8
ci: fix?
mds1 May 10, 2024
6a31e00
ci: add node
mds1 May 10, 2024
ffdbd46
ci: remove jq from build pipeline since vercel has no jq
mds1 May 10, 2024
d244555
ci: revert ci as test
mds1 May 10, 2024
d956ea9
ci: back to bun
mds1 May 10, 2024
da3e9ad
Merge branch 'main' into refactor/automated
mds1 May 10, 2024
e9b635e
ci/style: fmt after merge, add node
mds1 May 10, 2024
52efdc1
ci: fix build command
mds1 May 10, 2024
7105c80
chore: clarify copy
mds1 May 10, 2024
084add4
feat: opcode support for features view
mds1 May 11, 2024
26f7c24
feat: metadata and opcodes feature comparison
mds1 May 13, 2024
e270bef
feat: back button
mds1 May 13, 2024
7940a80
feat: more diff tables
mds1 May 14, 2024
4c95e57
feat: add chains
mds1 May 15, 2024
4c2fb99
cleanup
mds1 May 16, 2024
6e4fef8
refactor home page
mds1 May 16, 2024
085a607
tweaks
mds1 May 16, 2024
b4f9b9a
remove old code
mds1 May 16, 2024
2e30906
fixes
mds1 May 16, 2024
df78ecf
add features to the comparison table
mds1 May 16, 2024
1a26ca1
style: fmt
mds1 May 16, 2024
20297a9
Add precompile test for secp256r1 (#65)
fvictorio May 16, 2024
9b253bb
doc: add API key note
mds1 May 18, 2024
531385f
chore: dynamic branch name
mds1 May 18, 2024
d31c013
refactor: dedupe feature declarations
mds1 May 18, 2024
f04a9c0
refactor: more cleanup
mds1 May 18, 2024
cb10a9d
cleanup
mds1 May 20, 2024
c7e9252
style: fmt
mds1 May 20, 2024
8cc2d10
ci: add hourly job to check data
mds1 May 20, 2024
46ac93e
ci: add workflow dispatch
mds1 May 20, 2024
9020e9b
ci: limit diff to script/data
mds1 May 20, 2024
ff00fee
ci: tweak label
mds1 May 20, 2024
3c4eed7
funding.yml
mds1 May 21, 2024
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
Prev Previous commit
Next Next commit
feat: back button
mds1 committed May 13, 2024
commit e270bef20001d32169e8cd96bee434df5f6edc8d
3 changes: 2 additions & 1 deletion src/components/features/FeatureTable.tsx
Original file line number Diff line number Diff line change
@@ -113,7 +113,8 @@ export const FeatureTable = ({
useEffect(() => {
const fetchData = async () => {
try {
const metadataUrl = `https://raw.githubusercontent.com/mds1/evm-diff/refactor/automated/script/data/feature/metadata.json`;
const metadataUrl =
'https://raw.githubusercontent.com/mds1/evm-diff/refactor/automated/script/data/feature/metadata.json';
const metadataRes = await fetch(metadataUrl);
const metadata = await metadataRes.json();
setMetadata(metadata);
29 changes: 19 additions & 10 deletions src/pages/features.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { ExclamationTriangleIcon } from '@heroicons/react/20/solid';
import { ArrowLeftIcon, ExclamationTriangleIcon } from '@heroicons/react/20/solid';
import { FeatureTable } from '@/components/features/FeatureTable';
import { BaseCombobox } from '@/components/ui/BaseCombobox';
import features from '@/lib/features.json';
@@ -50,10 +50,12 @@ const Features = () => {

const onSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
router.push({
pathname: '/features',
query: { feature: option.key },
});
router.push({ pathname: '/features', query: { feature: option.key } });
};

const onBack = (e: React.MouseEvent) => {
e.preventDefault();
router.push({ pathname: '/features' });
};

// --- Selector Div ---
@@ -88,12 +90,19 @@ const Features = () => {
<h2 className="mx-auto max-w-2xl text-center text-3xl font-bold tracking-tight text-zinc-1000 dark:text-zinc-0 sm:text-4xl">
Comparison of {featureMap[feature as keyof typeof featureMap].title}
</h2>

<div className="flex flex-col items-center">
<FeatureTable
feature={feature as string}
featureMap={featureMap}
className="mt-8 max-w-prose"
/>
<div className="mt-8 max-w-screen-lg">
<button
onClick={onBack}
className="mb-4 text-zinc-600 dark:text-zinc-400 hover:text-zinc-800 dark:hover:text-zinc-200"
>
<ArrowLeftIcon width="1.1rem" className="mr-1 inline-block" /> Back
</button>

<FeatureTable feature={feature as string} featureMap={featureMap} className="w-full" />
</div>

<p className="text-secondary mx-auto mt-4 max-w-sm text-sm">
<ExclamationTriangleIcon width="1rem" className="mr-2 inline-block text-amber-500" />
There may still be diffs between chains with the same support level. Be sure to{' '}