Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENS V2 #80

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
ded346d
added initial test setup
sharathkrml Jun 30, 2023
2fd788e
added registrar
sharathkrml Jul 3, 2023
56675ef
added unit test cases
sharathkrml Jul 7, 2023
33dc7c5
fixed airBlock not saved issue
sharathkrml Jul 7, 2023
ef636a4
added book keeping entities
sharathkrml Jul 7, 2023
03f7482
added baseRegistrar (old token)
sharathkrml Jul 9, 2023
31e8522
added reverseRegistrar logic
sharathkrml Jul 11, 2023
1b45230
updated to new schema
sharathkrml Jul 12, 2023
bffcb9e
Merge branch old-contracts into new-contracts
sharathkrml Jul 12, 2023
d2d420c
refactored code
sharathkrml Jul 17, 2023
9771293
added tests to resolver
sharathkrml Jul 17, 2023
4434cf3
tested primary domain set
sharathkrml Jul 17, 2023
945fc1e
removed logs
sharathkrml Jul 17, 2023
929bc16
reverse registrar dynamic source logic added
sharathkrml Jul 17, 2023
474caa3
added AirPrimarySets entity
sharathkrml Jul 17, 2023
15eeaee
added tests for name wrapped
sharathkrml Jul 18, 2023
e16c062
registrar-auction test added
sharathkrml Jul 18, 2023
8c1858f
added name wrapper tests
sharathkrml Jul 18, 2023
fdd0d8f
added tests for controllers
sharathkrml Jul 18, 2023
3b519c9
added namewrapper controller test cases
sharathkrml Jul 18, 2023
a7762f8
updated pkg
sharathkrml Sep 11, 2023
f31e8c6
completed handlers
sharathkrml Sep 14, 2023
8bd84ac
removed AirDomainRegistered
sharathkrml Sep 14, 2023
67187d8
fixed entities & test cases
sharathkrml Sep 14, 2023
12bfe35
updated test cases
sharathkrml Sep 14, 2023
666ac98
fixed failed subgraph
sharathkrml Sep 15, 2023
8c9917c
fixed token mint issue
sharathkrml Sep 15, 2023
712f0f6
updated lastUpdatedIndex logic
sharathkrml Sep 15, 2023
5b15a9e
fixing address
sharathkrml Sep 16, 2023
3a4a5c4
fixed tokenAddress missing
sharathkrml Sep 16, 2023
af3d6f4
updated AirText
sharathkrml Sep 17, 2023
32e9d17
updated trackAirTextChange
sharathkrml Sep 17, 2023
eb00cfb
fixed manager field
sharathkrml Sep 26, 2023
3275f3f
fixed createdAt
sharathkrml Sep 28, 2023
b8e6fb2
fixed expiryDate
sharathkrml Sep 28, 2023
07bbc5c
added resolver fix
sharathkrml Sep 28, 2023
3fcd9e6
fixed expiry mismatch
sharathkrml Sep 29, 2023
3243fef
fixed expiryDate
sharathkrml Oct 3, 2023
407d938
updated isPrimary logic
sharathkrml Oct 4, 2023
4d3d515
added migration logic
sharathkrml Oct 6, 2023
ace7957
fixed resolver mismatch
sharathkrml Oct 9, 2023
54021c8
fixed multiple isActive resolvers
sharathkrml Oct 10, 2023
b349b3e
updated primary logic
sharathkrml Oct 11, 2023
13b0867
updated subgraph for new primaryDomain logic
sharathkrml Dec 6, 2023
01cbb14
added book keeping for primaryDomain check
sharathkrml Dec 7, 2023
fa4aa24
cleaned up schema
sharathkrml Dec 7, 2023
ddf2d13
refactored code
sharathkrml Dec 7, 2023
becb5f7
removed unwanted tests
sharathkrml Dec 13, 2023
2073905
added resolvedAddressDomainAccount in event
sharathkrml Dec 13, 2023
b72521d
updated resolved datafields logic
sharathkrml Dec 13, 2023
ab55355
added test
sharathkrml Dec 13, 2023
16fe491
removed root node specific code
sharathkrml Dec 13, 2023
66e68cf
added fix for labelName missing
sharathkrml Dec 19, 2023
c9b91cd
added fix for missing resolver events
sharathkrml Dec 20, 2023
eebc047
added fix for AirLabelName getting corrupted during manager change
sharathkrml Dec 22, 2023
faab5db
added fix for expiryDate mismatch
sharathkrml Dec 26, 2023
e3a9182
added costInfo entity
sharathkrml Dec 28, 2023
a1a9e15
incr lastUpdatedIndex only if domain is there
sharathkrml Jan 8, 2024
3e8b2f2
resetting fuses while NameUnwrapped
sharathkrml Jan 8, 2024
75d297f
added logs trackNameUnwrapped
sharathkrml Jan 8, 2024
34df225
added primaryDomain fix
sharathkrml Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions ens-v2/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Templates added (Check entities to see if any new got created)

- ETHRegistrarControllerTemplate
- Entity `ControllerEntity`
- ETHRegistrarControllerNameWrapperTemplate
- Entity `ControllerNameWrapperEntity`
- ResolverTemplate
- Entity `ResolverEntity`
- ReverseRegistrarTemplate
- Entity `ReverseRegistrarEntity`

Even if ENS adds these new contracts,It should work

# Testing specific test files

Run `graph test utils`

PrimaryDomain can get affected when

1. ResolvedAddress changed
2. Resolver changed
3. SetName changed


airDomain.id == airDomains.resolver.resolvedAddress.nameSet.domainId -> set true
existing domain with airDomains.resolver.resolvedAddress true -> set as false


tokenstaker -> resolver a -> 0xabc -> setName(tokenstaker)
resolver b -> 0xcdf

Loading