Skip to content

feat: add gasless JIT TWAP scripts - #19

Open
igorroncevic wants to merge 15 commits into
anxolin:mainfrom
igorroncevic:feat/gasless-jit-twap-revoke
Open

feat: add gasless JIT TWAP scripts#19
igorroncevic wants to merge 15 commits into
anxolin:mainfrom
igorroncevic:feat/gasless-jit-twap-revoke

Conversation

@igorroncevic

@igorroncevic igorroncevic commented Aug 4, 2026

Copy link
Copy Markdown

What and why

JIT-funded TWAPs can be registered and revoked from a fresh EOA without gas transactions. The scripts now use the standard ComposableCowPoller and CowShed 2.1.0 APIs from cowprotocol/cow-sdk#990 instead of a handwritten Poller adapter.

The branch uses exact PR #990 GitHub Packages previews until stable SDK packages are published.

Test

yarn test:composable-cow-poller

Try it

export RPC_URL_100="<GNOSIS_RPC_URL>"
export PRIVATE_KEY="<FUNDER_PRIVATE_KEY>"
export FUNDER_ADDRESS="<FUNDER_ADDRESS>"
export COMPOSABLE_COW_POLLER_ADDRESS="<REVIEWED_POLLER_ADDRESS>"
yarn jit-twap:register:gasless

Expected: the default dry run validates the registration without signing or submitting.

export SCHEDULE_ID="<SCHEDULE_ID>"
export PARENT_TWAP_ID="<PARENT_TWAP_ID>"
yarn jit-twap:revoke:gasless

Expected: the default dry run validates the schedule and parent TWAP without signing or submitting.

@igorroncevic
igorroncevic marked this pull request as ready for review August 31, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant