Skip to content
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 Native Token Limit Module Support #1233

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

Zer0dot
Copy link
Collaborator

@Zer0dot Zer0dot commented Dec 18, 2024

Pull Request Checklist


PR-Codex overview

This PR focuses on updating the handling of entityId types from number to bigint, introducing the nativeTokenLimitModule, and enhancing testing scenarios for module installations and validations.

Detailed summary

  • Changed entityId type from number to bigint in InvalidEntityIdError.
  • Commented out throw new EntityIdOverrideError() in client.ts.
  • Introduced nativeTokenLimitModule with encodeOnInstallData and encodeOnUninstallData methods.
  • Updated tests to include installation and validation of nativeTokenLimitModule.

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

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aa-sdk-site ❌ Failed (Inspect) Dec 18, 2024 11:00pm
aa-sdk-ui-demo ❌ Failed (Inspect) Dec 18, 2024 11:00pm

Copy link

graphite-app bot commented Dec 18, 2024

How to use the Graphite Merge Queue

Add the label graphite-merge-queue to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

import { getDefaultSingleSignerValidationModuleAddress } from "../modules/utils.js";
import {
getDefaultSingleSignerValidationModuleAddress,
getDefaultAllowlistModuleAddress,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'getDefaultAllowlistModuleAddress' is defined but never used.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will address in the relevant pr!

@Zer0dot Zer0dot changed the title feat: (WIP) native token limit module support feat: Add Native Token Limit Module Support Dec 18, 2024
import { getDefaultSingleSignerValidationModuleAddress } from "../modules/utils.js";
import {
getDefaultSingleSignerValidationModuleAddress,
getDefaultAllowlistModuleAddress,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [eslint] <@typescript-eslint/no-unused-vars> reported by reviewdog 🐶
'getDefaultAllowlistModuleAddress' is defined but never used.

@Zer0dot Zer0dot marked this pull request as ready for review December 18, 2024 23:07
@Zer0dot Zer0dot merged commit 5526cfc into zer0dot/module-allowlist Dec 18, 2024
2 of 6 checks passed
@Zer0dot Zer0dot deleted the zer0dot/module-native-token-limit branch December 18, 2024 23:07
Zer0dot added a commit that referenced this pull request Dec 20, 2024
* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup
Zer0dot added a commit that referenced this pull request Dec 20, 2024
* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup
Zer0dot added a commit that referenced this pull request Dec 21, 2024
* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup
Zer0dot added a commit that referenced this pull request Dec 21, 2024
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev pushed a commit that referenced this pull request Jan 2, 2025
* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states
howydev added a commit that referenced this pull request Jan 2, 2025
* feat: add ma v2 scaffolding with basic uo test

* fix: review fixes

* fix: some review fixes

* fix: more review fixes

* chore: rename abi files for clarity

* chore: more fixes

* chore: more fixes

* chore: update abi types

* chore: removing arbsepo instance

* fix: more review fixes

* fix: review fixes, improve getNonce implementation to be more friendly

* chore: update sma type to include entity properties

* fix: review fixes

* fix: type in docs

* fix: x

* fix: reviews

* feat: add install/uninstall validation (#1221)

* feat: add install validation, add tests for session key

* fix: lint

* fix: review fixes

* fix: tests

* feat: add view functions and user op calldata encodings (#1223)

* feat: add paymaster guard module

fix: lint

fix: review fixes

feat: add view functions and user op calldata encodings

feat: add paymaster guard module impl

feat: adds tests for paymaster guard module

chore: clean up comments

refactor: removes unnecessary .resolves.not.toThrowError()

fix: removes value field from encodeAbiParameters args

Co-authored-by: howydev <132113803+howydev@users.noreply.github.com>

* feat: adds time range module

fix: lint

fix: review fixes

feat: add view functions and user op calldata encodings

feat: adds time module impl

feat: adds time range module tests

refactor: removes use of addresses, meta, and value field in args passed to encodeAbiParameters

Co-authored-by: howydev <132113803+howydev@users.noreply.github.com>

* feat: Implement Allowlist Module And Native Token Limit Module (#1232)

* feat: allowlist module installation and uninstallation

* feat: Add Native Token Limit Module Support (#1233)

* feat: (WIP) native token limit module support

* feat: adapt native token limit module to new arch and add tests

* chore: autogenerated file

* chore: cleanup

* chore: remove only test specifier

* test: test allowlist module usage

* test: flesh out native token limit module test

* chore: rebase fixes

* fix: await useroperation results correctly

* chore: remove redundant post hook

* feat: allow hooks on the fallback validation

* fix: fix error name mismatch

* fix: remove unnecessary await wrapping

* chore: removed unused module components, cleanup

* chore: rearrange tests to handle polluted end states

* feat: add native signer, implement signMessage and signTypedData (#1246)

* feat: add native signer, implement signMessage and signTypedData

* chore: fix

---------

Co-authored-by: Linna <38363056+linnall@users.noreply.github.com>
Co-authored-by: Zer0dot <zer0dot.dev@gmail.com>
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