-
Notifications
You must be signed in to change notification settings - Fork 125
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
feat: add session key plugin abi and plugingen #284
Merged
Merged
Conversation
This file contains 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
denniswon
requested review from
moldy530,
rthomare,
dancoombs,
mokok123 and
avasisht23
as code owners
November 26, 2023 08:55
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
November 26, 2023 08:56
7113b56
to
39a6638
Compare
moldy530
force-pushed
the
moldy/plugin-manager
branch
3 times, most recently
from
November 28, 2023 16:14
4c1b14b
to
9052c2e
Compare
moldy530
reviewed
Nov 28, 2023
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.
can you rebase ontop of moldy/msca-provider-decorators
and set that as the base? that branch adds provider decorators as part of the auto generation
moldy530
force-pushed
the
moldy/plugin-manager
branch
3 times, most recently
from
November 30, 2023 16:33
7a7328f
to
9e24f7b
Compare
denniswon
force-pushed
the
moldy/plugin-manager
branch
from
December 1, 2023 01:31
9e24f7b
to
ef0f578
Compare
moldy530
force-pushed
the
moldy/plugin-manager
branch
from
December 1, 2023 16:25
8c812a8
to
eb454b6
Compare
moldy530
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 1, 2023 17:49
39a6638
to
982a4eb
Compare
you'll need to run |
avasisht23
force-pushed
the
msca-base
branch
2 times, most recently
from
December 3, 2023 02:04
c69950e
to
4bc3911
Compare
moldy530
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
2 times, most recently
from
December 4, 2023 19:39
5d44246
to
4aa6de5
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 4, 2023 22:41
4aa6de5
to
5193181
Compare
denniswon
changed the base branch from
msca-base
to
denniswon/msca-accout-loupe
December 4, 2023 22:41
denniswon
force-pushed
the
denniswon/msca-accout-loupe
branch
from
December 5, 2023 22:52
3f647d9
to
5dac618
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 5, 2023 22:54
5193181
to
c11f9c2
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
4 times, most recently
from
December 11, 2023 21:58
13be4c9
to
98064a7
Compare
denniswon
changed the base branch from
denniswon/msca-plugingen
to
denniswon/msca-token-receiver
December 12, 2023 01:40
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 12, 2023 01:41
98064a7
to
3349788
Compare
moldy530
approved these changes
Dec 12, 2023
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 12, 2023 20:46
3349788
to
fd1de2d
Compare
denniswon
force-pushed
the
denniswon/msca-token-receiver
branch
from
December 13, 2023 00:43
30b3ba0
to
2dad3dc
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 13, 2023 00:44
fd1de2d
to
3a29d52
Compare
denniswon
force-pushed
the
denniswon/msca-token-receiver
branch
from
December 13, 2023 00:55
2dad3dc
to
09ea64f
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 13, 2023 00:55
3a29d52
to
910dd8e
Compare
denniswon
force-pushed
the
denniswon/msca-token-receiver
branch
from
December 13, 2023 01:14
09ea64f
to
73f491d
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 13, 2023 01:15
910dd8e
to
abc17bb
Compare
denniswon
force-pushed
the
denniswon/msca-token-receiver
branch
from
December 15, 2023 17:06
73f491d
to
888d06c
Compare
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 15, 2023 17:09
abc17bb
to
ec3de5b
Compare
denniswon
force-pushed
the
denniswon/msca-token-receiver
branch
2 times, most recently
from
December 15, 2023 21:10
7ec80f8
to
36132cf
Compare
…lt token receiver plugin
…lt token receiver plugin
denniswon
force-pushed
the
denniswon/msca-sessionkey-plugin
branch
from
December 15, 2023 21:16
ec3de5b
to
649e692
Compare
moldy530
pushed a commit
that referenced
this pull request
Jan 8, 2024
* feat: msca plugingen to accept multichain address format * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: add session key plugin abi and plugingen
moldy530
added a commit
that referenced
this pull request
Jan 8, 2024
* feat: add some plugin generation logic (#262) * feat: add some plugin generation logic * chore: add generate commands * style: apply PR suggestion Co-authored-by: Dennis Won <[email protected]> * refactor: create plugin config concept * feat: add multi-owner-msca impl that leverages the plugin gen (#263) * feat: add multi-owner-msca impl that leverages the plugin gen * feat: proposal for msca builder pattern (#264) * feat: proposal for msca builder pattern * refactor: rework plugin gen to create read methods for the account --------- Co-authored-by: Dennis Won <[email protected]> * chore: lint * feat: add plugin manager decorator for MSCA (#274) * feat: add initial skeleton for 6900 account support * feat: add some plugin generation logic (#262) * feat: add some plugin generation logic * chore: add generate commands * style: apply PR suggestion Co-authored-by: Dennis Won <[email protected]> * refactor: create plugin config concept * feat: add multi-owner-msca impl that leverages the plugin gen (#263) * feat: add multi-owner-msca impl that leverages the plugin gen * feat: proposal for msca builder pattern (#264) * feat: proposal for msca builder pattern * refactor: rework plugin gen to create read methods for the account --------- Co-authored-by: Dennis Won <[email protected]> * chore: update plugin gen * feat: add plugin manager decorator for MSCA * feat: add a mechanism for adding provider decorators to accounts (#287) * feat: add a mechanism for adding provider decorators to accounts * chore: update lerna and package json to lint generated files * refactor: rename MSCA to IMSCA --------- Co-authored-by: Dennis Won <[email protected]> Co-authored-by: avasisht23 <[email protected]> * fix: missed some plugingen fixes * refactor: change the names of the plugin decorators and add example usages (#308) * feat: extend msca account with account loupe decorators (#309) * refactor: move required by types to aa-core utils types folder * feat: extend msca account with account loupe decorators * feat: move extend method on account from msca to base account * Update packages/core/src/account/types.ts Co-authored-by: Michael Moldoveanu <[email protected]> * Update packages/core/src/account/types.ts Co-authored-by: Michael Moldoveanu <[email protected]> * Update packages/core/src/account/types.ts Co-authored-by: Michael Moldoveanu <[email protected]> * Update packages/accounts/src/msca/account-loupe/decorator.ts Co-authored-by: Michael Moldoveanu <[email protected]> * fix: fix lint and build --------- Co-authored-by: Michael Moldoveanu <[email protected]> * fix: update the logic for signing 1271 messages * feat: msca plugingen to accept multichain address format (#314) * feat: msca plugingen to accept multichain address format * Update packages/accounts/scripts/plugingen.ts Co-authored-by: Michael Moldoveanu <[email protected]> * Update packages/accounts/wagmi.config.ts Co-authored-by: Michael Moldoveanu <[email protected]> * feat: changed address field in plugingenconfig to addresses --------- Co-authored-by: Michael Moldoveanu <[email protected]> * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin (#316) * feat: msca plugingen to accept multichain address format * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: add session key plugin abi and plugingen (#284) * feat: msca plugingen to accept multichain address format * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: add session key plugin abi and plugingen * feat: msca plugin provider decorator to support user op overrides (#342) * feat: msca plugingen to generate subfolders for each plugin (#350) --------- Co-authored-by: Dennis Won <[email protected]> Co-authored-by: avasisht23 <[email protected]>
avasisht23
pushed a commit
that referenced
this pull request
Jan 9, 2024
* feat: msca plugingen to accept multichain address format * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: msca token receiver plugin with opt out option to exclude default token receiver plugin * feat: add session key plugin abi and plugingen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
https://alchemyinsights.slack.com/archives/C04RHSDSP9U/p1700594853613719?thread_ts=1700590335.741369&cid=C04RHSDSP9U
PR-Codex overview
Focus of this PR:
This PR focuses on adding a new
SessionKeyPlugin
to the accounts package. It also includes updates to the plugin manager, types, and other related files.Detailed summary:
SessionKeyPluginGenConfig
to export the plugin configuration.FunctionId
andFunctionReference
types totypes.ts
.multi-owner-account.ts
to extend with theTokenReceiverPlugin
.encodeFunctionReference
function toutils.ts
.SessionKeyPluginGenConfig
to export the plugin configuration.installPlugin.ts
to includeFunctionReference
in thedependencies
parameter.index.ts
to exportaccountLoupeDecorators
,FunctionId
, andFunctionReference
.useAlchemyProvider.ts
to import and useSessionKeyPlugin
.PluginType
enum touseAlchemyProvider.ts
.pluginInstall
function touseAlchemyProvider.ts
.SessionKeyPlugin
andSessionKeyPluginExecutionFunctionAbi
tosession-key.ts
.SessionKeyPluginAbi
toabi.ts
.