-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathL2Resolver.tree
More file actions
60 lines (56 loc) · 2.5 KB
/
Copy pathL2Resolver.tree
File metadata and controls
60 lines (56 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
UnitL2Resolver::constructor
└── when deploying the contract
├── it sets the ENS registry address
├── it sets the name wrapper address
├── it sets the reverse admin address
└── it sets the parent node namehash
UnitL2Resolver::setRecord
├── when the node is the reverse lookup node
│ ├── when the caller is the reverse admin
│ │ ├── it emits the RecordSet event
│ │ └── it sets the record
│ └── when the caller is not the reverse admin
│ └── it reverts
├── when the node has an ENSRegistry owner
│ ├── when the caller is the beneficial owner
│ │ ├── it emits the RecordSet event
│ │ └── it sets the record
│ ├── when the caller is an ENSRegistry approved operator
│ │ ├── it emits the RecordSet event
│ │ └── it sets the record
│ ├── when the caller is a NameWrapper approved operator
│ │ ├── it emits the RecordSet event
│ │ └── it sets the record
│ └── when the caller is neither owner nor approved
│ └── it reverts
└── when the node has no ENSRegistry owner
├── when the caller is the parent owner
│ ├── it emits the RecordSet event
│ └── it sets the record
├── when the caller is an ENSregistry approved operator of the parent
│ ├── it emits the RecordSet event
│ └── it sets the record
├── when the caller is a NameWrapper approved operator of the parent
│ ├── it emits the RecordSet event
│ └── it sets the record
├── when the caller is not an approved operator of the parent
│ └── it reverts
└── when the caller is not authorized on the parent
└── it reverts
UnitL2Resolver::getRecord
├── when the record exists
│ └── it returns the stored bytes
└── when the record does not exist
└── it returns empty bytes
UnitL2Resolver::chainId
├── when the chain identifier is set
│ └── it returns the stored EIP-7930 bytes
└── when the chain identifier is not set
└── it returns empty bytes
UnitL2Resolver::supportsInterface
├── when checking ERC165 interface id
│ └── it returns true
├── when checking ExtendedResolver interface id
│ └── it returns true
└── when checking an unsupported interface id
└── it returns false