Skip to content

feat: add support of stx validator initdata format to SS init#189

Merged
vr16x merged 6 commits intofeat/smart-sessions-revamp-corefrom
stacked/smart-sessions-revamp-core/mee3
Feb 26, 2026
Merged

feat: add support of stx validator initdata format to SS init#189
vr16x merged 6 commits intofeat/smart-sessions-revamp-corefrom
stacked/smart-sessions-revamp-core/mee3

Conversation

@filmakarov
Copy link
Contributor

@filmakarov filmakarov commented Feb 26, 2026

PR-Codex overview

This PR focuses on enhancing the grantMeePermission function and introducing a new utility function getSessionValidatorInitData to manage session validator initialization data based on MEE versions.

Detailed summary

  • Added getSessionValidatorInitData function to return raw or packed init data based on MEE version.
  • Updated grantMeePermission:
    • Added a check for deployment and thrown an error if not configured.
    • Replaced sessionValidatorInitData assignment to use the new function.
  • Enhanced tests for getSessionValidatorInitData to cover different MEE versions.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

size-limit report 📦

Path Size
core (esm) 81.27 KB (-0.1% 🔽)
core (cjs) 102.31 KB (+0.2% 🔺)
bundler (tree-shaking) 7 KB (0%)
paymaster (tree-shaking) 543 B (0%)

@filmakarov filmakarov changed the base branch from feat/smart-sessions-revamp-core to develop February 26, 2026 09:56
@filmakarov filmakarov changed the base branch from develop to feat/smart-sessions-revamp-core February 26, 2026 09:57
@vr16x vr16x merged commit 3cb6e02 into feat/smart-sessions-revamp-core Feb 26, 2026
4 of 7 checks passed
vr16x added a commit that referenced this pull request Mar 3, 2026
* feat: added 7702, enablePermissions and re-exported policies

* chore: code formatting

* feat: smart sessions abstractions 1 (#182)

* feat: build action and action policy abstrations

* chore: code formats

* feat: added some improvements and test coverage

* chore: code formats

* test: added test coverage

* chore: code formats

* feat: fixed some test issues

* feat: smart sessions enable permission action split (#183)

* feat: smart sessions permission action split

* feat: added module install dependencies via conditions

* chore: code formats

* feat: added conditional dependency for enable permissions

* feat: build batch actions implemented

* feat: code formatting

* feat: refactored the legacy payment policy logics

* chore: code formats

* feat: smart session abstraction 2 (#185)

* feat: smart session abstraction 2

* feat: refactored the prepareForPermission code flow

* feat: added test coverage for broad cases

* chore: code formats

* feat: added more test coverage

* chore: code formats

* feat: added debug mode for consoles

* feat: minor improvements and test coverage

* chore: code formats

* feat: smart sessions revamp pr fixes (#186)

* feat: fixed all the pr suggestions

* chore: code formats

* feat: payment policy logic is refactored

* feat: increased the build size

* fix: build issue fixed

* feat: fixed the time units

* feat: modified the tests

* feat: addressed pr comments

* feat: add support of stx validator initdata format to SS init (#189)

* chore: merge mee3 support

* chore: add support for stx validator initdata

* chore: lint

* chore: add unit tests for session validator initdata generation

* chore: lint

---------

Co-authored-by: Filipp Makarov <fmc@Filipps-MacBook-Pro.local>

---------

Co-authored-by: Filipp Makarov <fmc@Filipps-MacBook-Pro.local>
Co-authored-by: filmakarov <fmc_rf@mail.ru>
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.

2 participants