]> git.ardis.lu - event-hashes/log
event-hashes
3 months agoRefactor to delete `try..catch` blocks
Ardis Lu [Fri, 3 Jul 2026 04:01:54 +0000 (21:01 -0700)]
Refactor to delete `try..catch` blocks

Using `try..catch` for control flow is inconsistent with the rest of the code and does not feel idiomatic. The block was also scoped too broadly, including too much code and catching all errors.

3 months agoRefresh fonts
Ardis Lu [Thu, 25 Jun 2026 05:25:27 +0000 (22:25 -0700)]
Refresh fonts

These fonts were created from a fresh download of v20 from Google Fonts and then applying the glyph subset to cover the latest text on the website. This update (1) fixes the accidental "x + number" ligature that was appearing in some hashes, and (2) reduces the file size of both fonts.

3 months agoOptimize image size
Ardis Lu [Thu, 25 Jun 2026 04:59:55 +0000 (21:59 -0700)]
Optimize image size

The GitHub README viewer's max width is 838px, so scale down the intrinsic size of all images to this width to avoid loading extra bytes for no reason.

6 months agoUpdate gist for new Etherscan code editor
Ardis Lu [Fri, 10 Apr 2026 05:45:25 +0000 (22:45 -0700)]
Update gist for new Etherscan code editor

7 months agoRefactor to use `Response.bytes()`, `Uint8Array.toBase64()`, and `Uint8Array.fromBase...
Ardis Lu [Tue, 17 Mar 2026 06:37:32 +0000 (23:37 -0700)]
Refactor to use `Response.bytes()`, `Uint8Array.toBase64()`, and `Uint8Array.fromBase64()`

These functions became baseline in 2025.

10 months agoAdd code repository mirrors
Ardis Lu [Wed, 3 Dec 2025 07:18:53 +0000 (23:18 -0800)]
Add code repository mirrors

10 months agoAdd MIT license
Ardis Lu [Tue, 2 Dec 2025 07:36:06 +0000 (23:36 -0800)]
Add MIT license

16 months agoFix bug where multiline comments were sometimes not handled
Ardis Lu [Thu, 12 Jun 2025 03:45:20 +0000 (20:45 -0700)]
Fix bug where multiline comments were sometimes not handled

Example test case that was previously handled incorrectly:
```solidity
/*
event InsideAComment()
*/
```

16 months agoDo not show copy-permalink button if there is no text in the input
Ardis Lu [Fri, 6 Jun 2025 03:47:34 +0000 (20:47 -0700)]
Do not show copy-permalink button if there is no text in the input

There is no reason to copy a permalink to a blank input, so it is just confusing to be there at all times.

16 months agoFix bug where clear-code button does not disappear after input is manually cleared
Ardis Lu [Fri, 6 Jun 2025 03:42:29 +0000 (20:42 -0700)]
Fix bug where clear-code button does not disappear after input is manually cleared

The early return was preventing the state from being reset.

16 months agoOptimize images
Ardis Lu [Fri, 6 Jun 2025 03:32:35 +0000 (20:32 -0700)]
Optimize images

Using new `oxipng` improvements. Command used:

```
oxipng .github/*.png -o max -Z --strip all
```

17 months agoFix event count
Ardis Lu [Tue, 13 May 2025 05:20:59 +0000 (22:20 -0700)]
Fix event count

18 months agoActually debounce button icon changes
Ardis Lu [Fri, 18 Apr 2025 06:30:59 +0000 (23:30 -0700)]
Actually debounce button icon changes

Previously, clicking a button multiple times within 2 seconds resulted in the icon thrashing as each timeout completed in quick succession. Now the timeouts are debounced so only the last one is run.

18 months agoMove comment trimming to beginning
Ardis Lu [Sun, 13 Apr 2025 07:25:43 +0000 (00:25 -0700)]
Move comment trimming to beginning

This fixes another issue where a parameter comment contains a closing parenthesis `)` which closes the event definition.

18 months agoFix issue where comments for event parameters removed all parameters from the definition
Ardis Lu [Sun, 13 Apr 2025 07:06:21 +0000 (00:06 -0700)]
Fix issue where comments for event parameters removed all parameters from the definition

21 months agoReduce minimum input block size
Ardis Lu [Fri, 20 Dec 2024 02:27:43 +0000 (18:27 -0800)]
Reduce minimum input block size

Better for small screens and showing short inputs

2 years agoFurther minify by mangling props and strings
Ardis Lu [Sat, 5 Oct 2024 05:07:47 +0000 (22:07 -0700)]
Further minify by mangling props and strings

WARNING: this is a breaking change with the library, but OK because the breaking changes do not affect this specific application.

2 years agoDocument button to delete all lines without events
Ardis Lu [Mon, 9 Sep 2024 06:30:41 +0000 (23:30 -0700)]
Document button to delete all lines without events

2 years agoRemove ClipboardItem fallback
Ardis Lu [Wed, 21 Aug 2024 05:17:14 +0000 (22:17 -0700)]
Remove ClipboardItem fallback

ClipboardItem is supported on all modern web browsers as of June 2024

2 years agoUpdate screenshots for new UI
Ardis Lu [Tue, 20 Aug 2024 05:15:28 +0000 (22:15 -0700)]
Update screenshots for new UI

2 years agoAdd button to delete all lines in the Solidity code that do not contain events
Ardis Lu [Thu, 15 Aug 2024 05:39:49 +0000 (22:39 -0700)]
Add button to delete all lines in the Solidity code that do not contain events

This button is useful for identifying the original event definitions and for making permalinks smaller.

2 years agoAdd USDC and USDT as more examples
Ardis Lu [Thu, 1 Aug 2024 05:57:04 +0000 (22:57 -0700)]
Add USDC and USDT as more examples

2 years agoFix <a> hover styling on Safari
Ardis Lu [Tue, 30 Jul 2024 05:47:53 +0000 (22:47 -0700)]
Fix <a> hover styling on Safari

https://bugs.webkit.org/show_bug.cgi?id=230083

2 years agoFix "Copy permalink" button on Safari
Ardis Lu [Sun, 28 Jul 2024 05:21:25 +0000 (22:21 -0700)]
Fix "Copy permalink" button on Safari

This is a workaround for: https://bugs.webkit.org/show_bug.cgi?id=222262

Safari considers the user activation to be expired after an `await`, so `writeText` no longer has permission. Workaround is to avoid `await` and pass a promise instead.

2 years agoParse Etherscan's nonstandard "index_topic_*" keyword
Ardis Lu [Thu, 25 Jul 2024 04:04:37 +0000 (21:04 -0700)]
Parse Etherscan's nonstandard "index_topic_*" keyword

2 years agoRemove unnecessary code
Ardis Lu [Tue, 23 Jul 2024 05:59:24 +0000 (22:59 -0700)]
Remove unnecessary code

2 years agoFix Chrome triple click over-selecting
Ardis Lu [Mon, 22 Jul 2024 03:03:25 +0000 (20:03 -0700)]
Fix Chrome triple click over-selecting

Otherwise, triple click will select a trailing element which results in a trailing tab or newline when pasted.

2 years agoRefactor to organize constants
Ardis Lu [Thu, 18 Jul 2024 04:17:10 +0000 (21:17 -0700)]
Refactor to organize constants

2 years agoFix word
Ardis Lu [Sat, 29 Jun 2024 14:57:02 +0000 (07:57 -0700)]
Fix word

"Issue" implies bug but it's not.

2 years agoClean up examples
Ardis Lu [Wed, 12 Jun 2024 06:16:29 +0000 (23:16 -0700)]
Clean up examples

2 years agoAdd "More examples" section
Ardis Lu [Sun, 9 Jun 2024 22:43:45 +0000 (15:43 -0700)]
Add "More examples" section

2 years agoUpdate copy to use present tense imperative mood
Ardis Lu [Wed, 5 Jun 2024 04:50:10 +0000 (21:50 -0700)]
Update copy to use present tense imperative mood

2 years agoAdd additional tests
Ardis Lu [Thu, 30 May 2024 06:13:21 +0000 (23:13 -0700)]
Add additional tests

De-duplication, ignoring comments, strict mode

2 years agoUse starting-style to transition from display: none instead of using visibility:...
Ardis Lu [Thu, 30 May 2024 05:54:54 +0000 (22:54 -0700)]
Use starting-style to transition from display: none instead of using visibility: hidden

This is more semantically correct, concise, and removes the unintentional margin around the no-events message.

2 years agoImprove focus outline styling
Ardis Lu [Sun, 26 May 2024 05:37:16 +0000 (22:37 -0700)]
Improve focus outline styling

2 years agoAdd keyboard shortcut "/" to jump to textarea
Ardis Lu [Mon, 13 May 2024 02:12:59 +0000 (19:12 -0700)]
Add keyboard shortcut "/" to jump to textarea

2 years agoOptimize bold font size by reducing character set to only those currently used
Ardis Lu [Fri, 5 Apr 2024 05:07:04 +0000 (22:07 -0700)]
Optimize bold font size by reducing character set to only those currently used

2 years agoDo not show "no events" message if input is blank
Ardis Lu [Thu, 4 Apr 2024 05:51:07 +0000 (22:51 -0700)]
Do not show "no events" message if input is blank

It doesn't make sense to say "no events were found" if there is no input. This can be confusing if a user clears their input and expects the tool to revert to its initial state.

2 years agoSkip lookahead if no closing parenthesis is found
Ardis Lu [Thu, 4 Apr 2024 05:43:28 +0000 (22:43 -0700)]
Skip lookahead if no closing parenthesis is found

Fixes issue where an extra event is found while a user is typing an event, because substring(start, -1) captures the entire input and re-captures the first event in the input.

2 years agoUpdate noble-hashes to 1.4.0
Ardis Lu [Thu, 28 Mar 2024 02:53:47 +0000 (19:53 -0700)]
Update noble-hashes to 1.4.0

2 years agoImprove rich text paste into Word
Ardis Lu [Thu, 21 Mar 2024 06:03:51 +0000 (23:03 -0700)]
Improve rich text paste into Word

The vendor prefixes limit scope and enable access to native Word features like theme fonts.

2 years agoExplicitly set <abbr> styling
Ardis Lu [Thu, 21 Mar 2024 04:57:02 +0000 (21:57 -0700)]
Explicitly set <abbr> styling

For Safari (no default style) and mobile (can't hover) users

2 years agoPrevent text wrapping on copied HTML
Ardis Lu [Sun, 17 Mar 2024 04:47:06 +0000 (21:47 -0700)]
Prevent text wrapping on copied HTML

Better presentation when copied into spreadsheets

2 years agoAdd clipboard.writeText fallback for Firefox
Ardis Lu [Sun, 17 Mar 2024 04:16:04 +0000 (21:16 -0700)]
Add clipboard.writeText fallback for Firefox

2 years agoAdd "Useful table tools" section
Ardis Lu [Sat, 16 Mar 2024 05:38:30 +0000 (22:38 -0700)]
Add "Useful table tools" section

2 years agoUpdate screenshots for new UI
Ardis Lu [Sat, 16 Mar 2024 05:31:10 +0000 (22:31 -0700)]
Update screenshots for new UI

2 years agoFix button misalignment on Firefox
Ardis Lu [Thu, 14 Mar 2024 02:52:51 +0000 (19:52 -0700)]
Fix button misalignment on Firefox

Avoids relying on defaults that don't apply on FireFox

2 years agoAdd counter for found and unique events
Ardis Lu [Wed, 13 Mar 2024 05:27:37 +0000 (22:27 -0700)]
Add counter for found and unique events

2 years agoDisable spellcheck on textarea
Ardis Lu [Wed, 13 Mar 2024 05:03:14 +0000 (22:03 -0700)]
Disable spellcheck on textarea

2 years agoAdd buttons to easily download and copy table
Ardis Lu [Sat, 9 Mar 2024 07:17:59 +0000 (23:17 -0800)]
Add buttons to easily download and copy table

2 years agoAdd testing permalink
Ardis Lu [Wed, 6 Mar 2024 05:41:46 +0000 (21:41 -0800)]
Add testing permalink

2 years agoAdd link to docs for anonymous events
Ardis Lu [Wed, 6 Mar 2024 05:40:41 +0000 (21:40 -0800)]
Add link to docs for anonymous events

2 years agoAdd note about anonymous events
Ardis Lu [Fri, 1 Mar 2024 16:17:28 +0000 (08:17 -0800)]
Add note about anonymous events

2 years agoUse clearer term
Ardis Lu [Thu, 29 Feb 2024 14:18:03 +0000 (06:18 -0800)]
Use clearer term

URL hash is confusing in this context

2 years agoFix issue where multi-line definitions with the same name but different types were...
Ardis Lu [Fri, 23 Feb 2024 05:27:41 +0000 (21:27 -0800)]
Fix issue where multi-line definitions with the same name but different types were dropped

Occurs because .indexOf(line) returns the first instance of this line, but there may be multiple instances. Need to track the correct offset to begin the search.

2 years agoReference my copy-all-code.js gist
Ardis Lu [Wed, 21 Feb 2024 07:12:56 +0000 (23:12 -0800)]
Reference my copy-all-code.js gist

2 years agoParse events with space between name and parenthesis
Ardis Lu [Sun, 11 Feb 2024 01:28:38 +0000 (17:28 -0800)]
Parse events with space between name and parenthesis

E.g. "event Example (address,address,uint);"

2 years agoParse multi-line event definitions
Ardis Lu [Sun, 11 Feb 2024 01:20:02 +0000 (17:20 -0800)]
Parse multi-line event definitions

2 years agoDelete duplicate tag
Ardis Lu [Sun, 4 Feb 2024 22:43:03 +0000 (14:43 -0800)]
Delete duplicate tag

2 years agoAdd description of permalink feature
Ardis Lu [Tue, 30 Jan 2024 03:00:41 +0000 (19:00 -0800)]
Add description of permalink feature

2 years agoBump images to match new UI
Ardis Lu [Tue, 30 Jan 2024 02:53:02 +0000 (18:53 -0800)]
Bump images to match new UI

Not converting to WebP because the size savings aren't worth degraded quality and additional effort. The PNGs are already optimized using oxipng.

2 years agoUse newer ERC website instead of EIP website
Ardis Lu [Tue, 30 Jan 2024 02:50:46 +0000 (18:50 -0800)]
Use newer ERC website instead of EIP website

2 years agoAdd message when no events are found
Ardis Lu [Tue, 30 Jan 2024 02:41:12 +0000 (18:41 -0800)]
Add message when no events are found

2 years agoAdd known issue about multi-line definitions
Ardis Lu [Tue, 30 Jan 2024 02:34:33 +0000 (18:34 -0800)]
Add known issue about multi-line definitions

2 years agoShow green check on successful copy
Ardis Lu [Thu, 25 Jan 2024 17:30:17 +0000 (09:30 -0800)]
Show green check on successful copy

2 years agoExpand strict mode criteria
Ardis Lu [Tue, 16 Jan 2024 04:29:14 +0000 (20:29 -0800)]
Expand strict mode criteria

2 years agoAdd "Copy permalink to clipboard" button
Ardis Lu [Tue, 16 Jan 2024 04:26:09 +0000 (20:26 -0800)]
Add "Copy permalink to clipboard" button

2 years agoAdd "Features" section
Ardis Lu [Mon, 15 Jan 2024 03:58:58 +0000 (19:58 -0800)]
Add "Features" section

2 years agoAdd strict mode
Ardis Lu [Tue, 9 Jan 2024 06:33:28 +0000 (22:33 -0800)]
Add strict mode

2 years agoAdd fade in transition to table
Ardis Lu [Tue, 9 Jan 2024 06:27:09 +0000 (22:27 -0800)]
Add fade in transition to table

2 years agoUpdate screenshot to reflect new UI
Ardis Lu [Tue, 9 Jan 2024 06:16:33 +0000 (22:16 -0800)]
Update screenshot to reflect new UI

2 years agoOptimize bold font character set
Ardis Lu [Sun, 7 Jan 2024 00:33:07 +0000 (16:33 -0800)]
Optimize bold font character set

Restricted to only include characters used in the actual headers.

2 years agoRemove unused font
Ardis Lu [Sun, 7 Jan 2024 00:17:21 +0000 (16:17 -0800)]
Remove unused font

2 years agoFix classic scrollbar problem
Ardis Lu [Sat, 6 Jan 2024 07:49:48 +0000 (23:49 -0800)]
Fix classic scrollbar problem

https://www.smashingmagazine.com/2023/12/new-css-viewport-units-not-solve-classic-scrollbar-problem/

2 years agoScroll table on overflow
Ardis Lu [Sat, 6 Jan 2024 06:56:39 +0000 (22:56 -0800)]
Scroll table on overflow

2 years agoShorten header title to avoid multi-row header
Ardis Lu [Sat, 6 Jan 2024 06:53:29 +0000 (22:53 -0800)]
Shorten header title to avoid multi-row header

2 years agoInitial commit
Ardis Lu [Fri, 5 Jan 2024 04:45:36 +0000 (20:45 -0800)]
Initial commit

This page took 0.080323 seconds and 4 git commands to generate.