Skip to content

Commit 4892745

Browse files
committed
chore: move setter of trusted attesters to IERC7484 interface
1 parent 88716ca commit 4892745

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/IRegistry.sol

+11-11
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ interface IERC7484 {
2929

3030
function checkForAccount(address smartAccount, address module, ModuleType moduleType) external view;
3131

32+
/**
33+
* Allows Smart Accounts - the end users of the registry - to appoint
34+
* one or many attesters as trusted.
35+
* @dev this function reverts, if address(0), or duplicates are provided in attesters[]
36+
*
37+
* @param threshold The minimum number of attestations required for a module
38+
* to be considered secure.
39+
* @param attesters The addresses of the attesters to be trusted.
40+
*/
41+
function trustAttesters(uint8 threshold, address[] calldata attesters) external;
42+
3243
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
3344
/* Check with external attester(s) */
3445
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/
@@ -70,17 +81,6 @@ interface IRegistry is IERC7484 {
7081

7182
error InsufficientAttestations();
7283

73-
/**
74-
* Allows Smart Accounts - the end users of the registry - to appoint
75-
* one or many attesters as trusted.
76-
* @dev this function reverts, if address(0), or duplicates are provided in attesters[]
77-
*
78-
* @param threshold The minimum number of attestations required for a module
79-
* to be considered secure.
80-
* @param attesters The addresses of the attesters to be trusted.
81-
*/
82-
function trustAttesters(uint8 threshold, address[] calldata attesters) external;
83-
8484
/**
8585
* Get trusted attester for a specific Smart Account
8686
* @param smartAccount The address of the Smart Account

0 commit comments

Comments
 (0)