-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: rlp * chore: update tests * tests * vectors * chore: format * fix * chore: perf boost Co-authored-by: Sebastian Lorenz <[email protected]> * update * vitest * add deprecations * Create young-actors-fix.md * refactor * size-limit * snaps * bump size * bench: add @ethereumjs/rlp --------- Co-authored-by: jxom <[email protected]> Co-authored-by: Sebastian Lorenz <[email protected]>
- Loading branch information
1 parent
d5eb493
commit 6a65c5a
Showing
38 changed files
with
2,525 additions
and
752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
Refactored RLP coding to be (a lot) more performant. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ tsconfig*.tsbuildinfo | |
.env.production.local | ||
.envrc | ||
|
||
# @wagmi/cli | ||
# tests | ||
generated.ts | ||
vectors/**/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { BaseError } from './base.js' | ||
|
||
export class NegativeOffsetError extends BaseError { | ||
override name = 'NegativeOffsetError' | ||
constructor({ offset }: { offset: number }) { | ||
super(`Offset \`${offset}\` cannot be negative.`) | ||
} | ||
} | ||
|
||
export class PositionOutOfBoundsError extends BaseError { | ||
override name = 'PositionOutOfBoundsError' | ||
constructor({ length, position }: { length: number; position: number }) { | ||
super( | ||
`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.