Skip to content

Commit

Permalink
release: mvp alpha state
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed Dec 17, 2024
1 parent 9e34cf9 commit f41179e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 6 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# ens-offchain-resolver

![GitHub Tag](https://img.shields.io/github/v/tag/grassrootseconomics/ens-offchain-resolver)

Go implementation of the
[EIP-3368 Gateway Interface](https://eips.ethereum.org/EIPS/eip-3668#gateway-interface)
to provide offchain name resolution for `sarafu.eth`. It also includes an
external bypass to resolve without going through the
[CCIP read flow](https://docs.ens.domains/resolvers/ccip-read#ccip-read-flow).

This powers the aliasing system for both Sarafu.Network and USSD.

The resolver deployed to work with this gateway implemntation is the one
provided by
[CCIP tools](https://github.com/ensdomains/ccip-tools/blob/master/contracts/OffchainResolver.sol).

### Supported interfaces

- [x] Read Ethereum address
- [ ] Read multicoin address
- [ ] Read content hash
- [ ] Read text record

## License

[AGPL-3.0](LICENSE).
6 changes: 3 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"time"

"github.com/ethereum/go-ethereum/crypto"
"github.com/grassrootseconomics/resolver/internal/api"
"github.com/grassrootseconomics/resolver/internal/util"
"github.com/grassrootseconomics/resolver/pkg/ens"
"github.com/grassrootseconomics/ens-offchain-resolver/internal/api"
"github.com/grassrootseconomics/ens-offchain-resolver/internal/util"
"github.com/grassrootseconomics/ens-offchain-resolver/pkg/ens"
"github.com/knadh/koanf/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/grassrootseconomics/resolver
module github.com/grassrootseconomics/ens-offchain-resolver

go 1.23.3

Expand Down
2 changes: 1 addition & 1 deletion internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"os"

"github.com/grassrootseconomics/resolver/pkg/ens"
"github.com/grassrootseconomics/ens-offchain-resolver/pkg/ens"
"github.com/kamikazechaser/common/httputil"
"github.com/uptrace/bunrouter"
"github.com/uptrace/bunrouter/extra/reqlog"
Expand Down
2 changes: 1 addition & 1 deletion internal/api/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/grassrootseconomics/resolver/pkg/ens"
"github.com/grassrootseconomics/ens-offchain-resolver/pkg/ens"
"github.com/kamikazechaser/common/httputil"
"github.com/lmittmann/w3"
"github.com/uptrace/bunrouter"
Expand Down

0 comments on commit f41179e

Please sign in to comment.