Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Resolver Module #60

Open
taryune opened this issue Aug 4, 2023 · 1 comment
Open

Resolver Module #60

taryune opened this issue Aug 4, 2023 · 1 comment
Assignees

Comments

@taryune
Copy link
Member

taryune commented Aug 4, 2023

Image

@taryune taryune converted this from a draft issue Aug 4, 2023
@taryune taryune changed the title Name Service Aggregator Resolver Module Aug 9, 2023
@taryune
Copy link
Member Author

taryune commented Aug 22, 2023

Sequence Diagram

sequenceDiagram
		autonumber
    participant Frontend
    participant Resolver as Resolver(Mycel)
    participant Registry as Registry(Mycel)
    participant ResolverContract as Resolver Contract (CW)
		participant 3rdPartyRegistry as 3rd Party Registry

    Frontend->>Resolver: call resolve('hoge.mycel')
		Resolver->>Registry: resolveTLD('.mycel')
		Registry->>Resolver: return mycel|3rdParty|Unsupported mycel registry
		alt case Mycel
	    Resolver->>Registry: call resolveAddr('hoge.mycel')
	    Registry->>Resolver: return address
      Resolver->>Frontend: return address
    else case 3rdParty
	    Frontend->>Resolver: call resolveAddr('hoge.btc')
	    Resolver->>ResolverContract: call resolveAddr('hoge.btc')
      ResolverContract->>Resolver: return query
      Resolver->>3rdPartyRegistry: query
	    3rdPartyRegistry->>Resolver: return address
	    Resolver->>Frontend: return address
    else case Other
	    Resolver->>Frontend: return error 'unsupported'
    end

Loading

Supporting name services & libraries

@taryune taryune self-assigned this Sep 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant