@3loop/transaction-decoder@0.11.0
·
151 commits
to main
since this release
Minor Changes
-
d169992: Refactor stores to call
set
when the data is not found in strategies. This introduces new types for store values, to
be able to differentiate between a missing value, and one that was never requested.-
Success
- The data is found successfully in the store
-
NotFound
- The data is found in the store, but is missing the value
-
MetaEmpty
- The contract metadata is not found in the store
This change requires the users of the library to persist the NotFound state. Having the NotFound state allows us
to skip the strategy lookup, which is one of the most expensive operations when decoding transactions.We suggest to keep a timestamp for the NotFound state, and invalidate it after a certain period of time. This will
ensure that the strategy lookup is not skipped indefinitely. Separately, users can upload their own data to the store. -
Patch Changes
- af5093d: Add otel tracing spans