-
Notifications
You must be signed in to change notification settings - Fork 73
feat(scripting): add zod schemas and viem transform helpers #690
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
Merged
Merged
Changes from 40 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
aa54664
feat: add enqueueTokenBridgeDeployment and enqueueSetWethGateway
yahgwai 7ffcb0b
refactor: address PR review feedback
yahgwai fb3506d
refactor: rename to PrepareTransactionRequest convention, extract sha…
yahgwai e3f85a7
refactor: use parseGwei for enqueueDefaultMaxGasPrice
yahgwai 9b54a85
refactor: split submission costs, rename weth gateway to match conven…
yahgwai efa5df7
chore: fix prettier formatting
yahgwai 54ee7d0
fix: replace dynamic import with static import in weth gateway test
yahgwai 9161513
test: add integration test for enqueue token bridge
yahgwai 8e120c2
test: remove brittle unit tests in favor of integration test
yahgwai 9333677
fix: register network before waitForRetryables in integration test
yahgwai b3f16f1
docs: add JSDoc to enqueue prepare functions
yahgwai 014e79f
feat: added default gas limits for enqueue token bridge variant
yahgwai b895006
refactor: extract shared data-size helpers for retryable submission cost
yahgwai 2adcbc3
feat: add calculateRetryableSubmissionFee for enqueue variants
yahgwai 867a3f3
feat: calculate retryable submission costs internally in enqueue func…
yahgwai 8479125
fix: swap default gas limits for factory and contracts retryables
yahgwai 192a9cf
refactor: read factory gas limit from TokenBridgeCreator contract
yahgwai 3f6ef1b
style: fix prettier formatting
yahgwai f64404f
refactor: consolidate enqueue* and create* token bridge prepare variants
yahgwai 1462741
fix: remove orbitChainPublicClient from examples
yahgwai 3f99b46
refactor: inline gatewayRouterABI back into its single consumer
yahgwai 17234fb
refactor: remove JSDoc comments, reorder types above ABI
yahgwai d473c07
refactor: remove dead code from createTokenBridge-ethers
yahgwai ce59bb4
refactor: restore original param ordering to reduce churn
yahgwai 06336ee
refactor: minimize churn in setWethGateway prepare function
yahgwai e1d884b
feat(scripting): add zod schemas and viem transform helpers
yahgwai 51ae67b
fix(scripting): override zod to v4 to fix TS2742 declaration emit errors
yahgwai 6879988
refactor(scripting): rename gas schemas and use spread in transforms
yahgwai ce75457
fix: address PR review feedback
yahgwai 48b529f
chore: fix prettier formatting
yahgwai 610d0f2
Merge branch 'feat/enqueue-token-bridge-deployment' into feat/zod-schema
yahgwai df74312
fix(scripting): remove orbitChainRpcUrl from prepare schemas
yahgwai 54c8758
fix: resolve 9 dev-dependency audit vulnerabilities via pnpm overrides
douglance 5537130
feat(scripting): add zod schemas for action functions (#697)
yahgwai 0529241
fix(scripting): use account address instead of privateKey in build* a…
yahgwai 1496118
Merge remote-tracking branch 'origin/dl/audit' into feat/zod-schema
yahgwai 70dd9ed
refactor(scripting): extract shared schema patterns
yahgwai 4796f30
refactor(scripting): remove redundant commonFieldsSchema alias
yahgwai 33cdef3
refactor(scripting): bake connection transforms into schema definitions
yahgwai e4ef7cd
refactor(scripting): use normal named import for isKnownWasmModuleRoo…
yahgwai c64fd00
chore: remove isTokenBridgeDeployed as unused
yahgwai 71a579c
refactor(scripting): use viem's isAddress and isHex for schema valida…
yahgwai 1561a6b
chore(deps): drop redundant pnpm overrides
yahgwai 6224d74
test: update double-deploy error message assertion
yahgwai 6b921be
Merge branch 'feat/enqueue-token-bridge-deployment' into feat/zod-schema
yahgwai abe0711
refactor(scripting): remove isTokenBridgeDeployed schema and tests
yahgwai d0e7964
fix(scripting): keep regex on hex/address schemas for coverage generator
yahgwai 23b6b68
style: apply prettier formatting
yahgwai fc5a856
Merge remote-tracking branch 'origin/main' into feat/zod-schema
yahgwai 5bdcff5
refactor(scripting): drop redundant regex on hex/address schemas
yahgwai 4ffe0cd
refactor(scripting): validate privateKeySchema with isHex + size
yahgwai afea0e6
refactor(scripting): validate privateKeySchema with isHex + length check
yahgwai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure we need these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, removed