Skip to content

Commit 36be0e0

Browse files
committed
feat: define AgentRegistry interface for agent identity
1 parent 6ab44d5 commit 36be0e0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

src/AgentRegistry.sol

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
}

0 commit comments

Comments
 (0)