Skip to content

Feature: Add Credit Authorization Conditionals #32

@kamescg

Description

@kamescg

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions