Skip to content

Comments

1.10.15#231

Merged
Dargon789 merged 7 commits intomasterfrom
1.10.15
Jan 19, 2026
Merged

1.10.15#231
Dargon789 merged 7 commits intomasterfrom
1.10.15

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Jan 19, 2026

2144689

Summary by Sourcery

Add dapp client utilities to support explicit session configuration for EOA logins and bump package versions accordingly.

New Features:

  • Introduce typed helpers for constructing explicit session configurations, including duration, permissions, and native token spending limits, in the dapp client utilities.

Enhancements:

  • Re-export the value forwarder address constant from the dapp client utilities for easier consumer access.

Chores:

  • Add a changeset to release patch updates across multiple @0xsequence packages related to the dapp client EOA login changes.

@codesandbox
Copy link

codesandbox bot commented Jan 19, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sourcery-ai
Copy link

sourcery-ai bot commented Jan 19, 2026

Reviewer's Guide

Adds explicit session configuration helpers to the dapp client utilities to support EOA login flows, including duration-based expiry, native token spending limits/recipients, and re-exports a value forwarder address, plus bumps patch versions via a changeset.

Class diagram for explicit session configuration helpers

classDiagram
  class SessionDuration {
    +number days
    +number hours
    +number minutes
  }

  class NativeTokenSpending {
    +bigint valueLimit
    +Address.Address[] allowedRecipients
  }

  class ExplicitSessionParams {
    +number chainId
    +SessionDuration expiresIn
    +Permission.Permission[] permissions
    +NativeTokenSpending nativeTokenSpending
  }

  class ExplicitSessionConfig {
    +number chainId
    +bigint valueLimit
    +bigint deadline
    +Permission.Permission[] permissions
  }

  class Permission {
  }

  class Address {
  }

  ExplicitSessionParams --> SessionDuration : expiresIn
  ExplicitSessionParams --> NativeTokenSpending : nativeTokenSpending
  ExplicitSessionParams --> Permission : permissions
  NativeTokenSpending --> Address : allowedRecipients
  ExplicitSessionConfig --> Permission : permissions

  class UtilsIndexModule {
    +createExplicitSessionConfig(params ExplicitSessionParams) ExplicitSessionConfig
  }

  UtilsIndexModule ..> ExplicitSessionParams
  UtilsIndexModule ..> ExplicitSessionConfig
  UtilsIndexModule ..> Permission
  UtilsIndexModule ..> Address
Loading

File-Level Changes

Change Details Files
Introduce utilities for building explicit session configs with duration-based expiry and optional native token spending constraints.
  • Import ExplicitSessionConfig type from wallet-core, Permission from wallet-primitives, and Address from ox for type-safe session construction.
  • Define SessionDuration, NativeTokenSpending, and ExplicitSessionParams types to describe session lifetime, value limits, and allowed native token recipients.
  • Implement createExplicitSessionConfig to compute a deadline from a human-readable duration, validate presence of at least one permission, derive native token spending permissions per allowed recipient, and assemble the ExplicitSessionConfig object including chainId, valueLimit, deadline, and permissions.
packages/wallet/dapp-client/src/utils/index.ts
Expose value forwarder address and register changeset for patch releases across affected packages.
  • Re-export VALUE_FORWARDER_ADDRESS from the dapp client utils constants module to make it available to consumers.
  • Add a changeset declaring patch bumps for multiple @0xsequence packages with a note about dapp client updates for EOA login.
packages/wallet/dapp-client/src/utils/index.ts
.changeset/tiny-files-chew.md

Possibly linked issues

  • 3.0.0-beta.9 #214: The PR adds createExplicitSessionConfig and related dapp-client changes that directly implement the issue’s described utilities.
  • 3.0.0-beta.9 #220: PR directly implements the explicit session helper types, createExplicitSessionConfig, VALUE_FORWARDER_ADDRESS export, and associated package updates

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@snyk-io
Copy link

snyk-io bot commented Jan 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Repository owner deleted a comment from vercel bot Jan 19, 2026
Repository owner deleted a comment from vercel bot Jan 19, 2026
@Dargon789 Dargon789 merged commit f6edeb9 into master Jan 19, 2026
7 of 13 checks passed
@Dargon789 Dargon789 deleted the 1.10.15 branch January 19, 2026 10:31
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.

4 participants