Skip to content

[FEATURE] Extended Paymaster: Allow mutliple paymaster accounts, and smart contracts per paymaster #4977

@Ferparishuertas

Description

@Ferparishuertas

Problem

As a relay provider, to support paymaster for two separate projects, an instance per project needs to be deployed, not being this very cost effective, and introduces more management.

As as relay provider i want to be able to configure multiple paymaster accounts, and smart contract whitellst per account

Solution

We will not fully depend on the relay - OPERATOR_ID_MAIN OPERATOR_KEY_MAIN values for paymaster

Payer can be either operator or a new accounts set under.

  • PAYMASTER_ACCOUNTS= [[Account, type, key. allowance]. [Account, type, key, allowance]]
  • PAYMASTER_WHITELIST is for the default operator only
  • PAYMASTER_ACCOUNTS_WHITELISTS =[[Account:[contractA, contractB]],[Account:[contractA, contractB]]]

DOD

  • Operator account based paymaster still works as expected
  • New accounts can be configured and work in parallel to operator account based paymaster
  • Providers can configure only non operator accounts paymaster, and the functionality works
  • Existing documentations is updated and Experimental is removed from the feature description
  • A smart contract cannot be included in more than 1 paymaster. In case of duplicates the last paymaster valie configured, is the paymaster

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions