Skip to content

Commit 800a427

Browse files
chore: update headings (#175)
1 parent a6e0fc3 commit 800a427

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

standard/ERCs/erc-6900.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,15 +480,15 @@ interface IExecutionHookModule is IModule {
480480
}
481481
```
482482

483-
### Expected behavior
484-
485-
#### Validations and their installation /uninstallation
483+
### Validations and Their Installation/Uninstallation
486484

487485
An account can have more than one validation module/function installed.
488486
An account can have the same validation module installed more than once.
489487
The entityId of a validation function installed on an account MUST be unique.
490488
Validation installation MAY be deferred until a later time, such as upon first use.
491489

490+
#### Installation
491+
492492
During validation installation, the account MUST correctly set flags and other fields based on the incoming data provided by the user.
493493

494494
- the account MUST install all pre validation hooks required by the user and SHOULD call `onInstall` with the user-provided data on the hook module to initialize the states if required by user.
@@ -498,19 +498,23 @@ During validation installation, the account MUST correctly set flags and other f
498498
- the account SHOULD call `onInstall` on the validation module to initialize the states if required by user.
499499
- the account MUST emit `ValidationInstalled` as defined in the interface for all installed validations.
500500

501+
#### Uninstallation
502+
501503
During validation uninstallation, the account MUST correctly clear flags and other fields based on the incoming data provided by the user.
502504

503505
- the account MUST clear all flags for the validation function, like `isGlobal`, `isSignatureValidation`, and `isUserOpValidation`.
504506
- the account MUST remomve all hooks and SHOULD clear hook module states by calling `onUninstall` with the user-provided data for each hook, including both pre validation hooks and permission hooks, if required by user.
505507
- the account MUST remove all selectors that the validation function can validate.
506508
- the account MUST emit `ValidationUninstalled` as defined in the interface for all uninstalled validations.
507509

508-
#### Execution and their installation /uninstallation
510+
### Execution and Their Installation/Uninstallation
509511

510512
An account can install any number of execution functions.
511513
An execution function selector MUST be unique in the account.
512514
An execution function selector MUST not conflict with native ERC-4337 and ERC-6900 functions.
513515

516+
#### Installation
517+
514518
During execution installation, the account MUST correctly set flags and other fields based on the incoming data and module manifest provided by the user.
515519

516520
- the account MUST install all execution functions and set flags and fields as specified in the manifest.
@@ -519,6 +523,8 @@ During execution installation, the account MUST correctly set flags and other fi
519523
- the account SHOULD call `onInstall` on the execution module to initialize the states if required by user.
520524
- the account MUST emit `ExecutionInstalled` as defined in the interface for all installed executions.
521525

526+
#### Uninstallation
527+
522528
During execution uninstallation, the account MUST correctly clear flags and other fields based on the incoming data and module manifest provided by the user.
523529

524530
- the account MUST remove all execution functions and clear flags and fields as specified in the manifest.
@@ -527,7 +533,7 @@ During execution uninstallation, the account MUST correctly clear flags and othe
527533
- the account SHOULD call `onUnInstall` on the execution module to initialize the states and track call success if required by user.
528534
- the account MUST emit `ExecutionUninstalled` as defined in the interface for all uninstalled executions.
529535

530-
#### Hook execution order
536+
### Hook Execution Order
531537

532538
It is RECOMMENDED that an account implementer runs hooks in first installed first executed order. However, an account MAY implement a different execution order.
533539

0 commit comments

Comments
 (0)