Skip to content

refactor: viem in session key and endorsements#571

Merged
hugomrdias merged 7 commits intohugomrdias/paymentsfrom
hugomrdias/session-key
Jan 30, 2026
Merged

refactor: viem in session key and endorsements#571
hugomrdias merged 7 commits intohugomrdias/paymentsfrom
hugomrdias/session-key

Conversation

@hugomrdias
Copy link
Member

No description provided.

@hugomrdias hugomrdias requested a review from rvagg as a code owner January 26, 2026 19:23
@github-project-automation github-project-automation bot moved this to 📌 Triage in FOC Jan 26, 2026
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 26, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev 6c846ff Commit Preview URL

Branch Preview URL
Jan 28 2026, 03:41 PM

- Introduced a new `authorizationExpiry` function to retrieve the expiration timestamp for session key permissions, improving session management capabilities.
- Updated session key actions to utilize the new `authorizationExpiry` function, enhancing clarity and reducing redundancy in code.
- Renamed `sessionAddress` to `sessionKeyAddress` for consistency across session key-related functions.
- Added comprehensive tests for the `authorizationExpiry` functionality, ensuring reliability and correctness in various scenarios.
- Updated documentation to reflect changes in session key handling and improve overall clarity.
…handling

- Refactored the Synapse class to utilize a connector client for the EndorsementsService, enhancing integration with the new client architecture.
- Simplified the EndorsementsService constructor to accept a client instead of a provider and endorsements address, improving flexibility.
- Updated the SessionKey class to align with the new client structure, enhancing session key management and functionality.
- Revised tests to accommodate changes in session key creation and validation, ensuring consistency and reliability in the testing framework.
- Modified the endorsements retrieval in the endorse command to use providerIdSet for improved contract integration.
- Updated the payment command to retrieve the address using getClient instead of getSigner, enhancing clarity in client interactions.
- Updated the endorse command to retrieve endorsements from the correct contract structure.
- Refactored chain definitions to replace providerIdSet with endorsements for improved clarity.
- Adjusted constants in the JSON-RPC mock to align with the new endorsements structure.
- Modified the EndorsementsService to utilize the updated endorsements address and ABI.
- Updated the Filecoin Calibration Filscan contract addresses in the generated ABI file to reflect the correct values.
- Ensured consistency across documentation by aligning the contract references with the updated addresses.
- Upgraded the viem library version in the pnpm workspace configuration to ensure compatibility with the latest features and improvements.
@hugomrdias hugomrdias force-pushed the hugomrdias/session-key branch from 0f7de8e to 38436fc Compare January 27, 2026 12:54
@hugomrdias hugomrdias requested a review from rvagg January 27, 2026 12:55
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Jan 28, 2026
@rjan90 rjan90 added this to the M4.0: mainnet staged milestone Jan 28, 2026
…method

- Removed the Account type from the EndorsementsService client definition for improved clarity and flexibility.
- Updated the revoke method in the SessionKey class to accept an origin parameter, enhancing its functionality and usability.
@github-project-automation github-project-automation bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC Jan 30, 2026
@hugomrdias hugomrdias merged commit 924cf2b into hugomrdias/payments Jan 30, 2026
12 checks passed
@hugomrdias hugomrdias deleted the hugomrdias/session-key branch January 30, 2026 12:03
@github-project-automation github-project-automation bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants