File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ // Layout of Contract:
2+ // version
3+ // imports
4+ // errors
5+ // interfaces, libraries, contracts
6+ // Type declarations
7+ // State variables
8+ // Events
9+ // Modifiers
10+ // Functions
11+
12+ // Layout of Functions:
13+ // constructor
14+ // receive function (if exists)
15+ // fallback function (if exists)
16+ // external
17+ // public
18+ // internal
19+ // private
20+ // internal & private view & pure functions
21+ // external & public view & pure functions
22+
23+ // SPDX-License-Identifier: MIT
24+ pragma solidity ^ 0.8.26 ;
25+
26+ contract AgentRegistry {
27+
28+ struct Agent {
29+ address owner;
30+ bool active;
31+ }
32+
33+ mapping (address => Agent) private agents;
34+
35+ event AgentRegistered (address indexed agent , address indexed owner );
36+ event AgentRevoked (address indexed agent );
37+ event AgentReactivated (address indexed agent );
38+
39+ function getAgent (address agent ) external view returns (address owner , bool active ) {}
40+
41+ function registerAgent (address agent ) external {}
42+
43+ function revokeAgent (address agent ) external {}
44+
45+ function reactivateAgent (address agent ) external {}
46+ }
You can’t perform that action at this time.
0 commit comments