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

Feature: Add Credit Authorization Conditionals #32

Open
kamescg opened this issue Nov 26, 2024 · 0 comments
Open

Feature: Add Credit Authorization Conditionals #32

kamescg opened this issue Nov 26, 2024 · 0 comments

Comments

@kamescg
Copy link
Contributor

kamescg commented Nov 26, 2024

Context

The Universal wallet uses the MetaMask Delegation Framework for handling wallet delegations, authorizations and intents. The framework includes 20+ enforcer smart contract modules for dictating transaction execution capabilities.

Right now the Universal dashboard only uses the ERC20TransferAmountEnforcer.sol on the authorizations page to enable wallet-to-wallet spending permissions.

We want to add the ability to include BlockNumberEnforcer.sol and TimestampEnforcer.sol enforcers in the delegations, so users can add timing conditionals to spending limits.

Scope

  • Update the apps/wallet authorization form to include a "conditionals" field with timestamp options.
  • Update the apps/popup app to support these new conditionals in the signTypedData render view.
  • Update the apps/api-universal app to exclude delegations with invalid/expired timestamps.

The feature is dependent on the Multi-Enforcer Support Upgrade completition.

@kamescg kamescg changed the title Feature: Add Rules & Conditionals to Dashboard Authorizations Feature: Add Credit Authorization Conditionals Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant