This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a7c6046
Showing
18 changed files
with
10,239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
"regenerator": true | ||
} | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
dist | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ENS Lite | ||
|
||
Minimum viable ENS | ||
|
||
```js | ||
import SetupENSLite from '@ensdomains/ens-lite' | ||
|
||
const resolve = await SetupENSLite({ web3 }) | ||
|
||
const result = await resolve(/* address or name */) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "@ensdomains/ens-lite", | ||
"version": "0.0.1", | ||
"description": "Minimum Viable ENS", | ||
"main": "src/index.js", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"dist/*" | ||
], | ||
"scripts": { | ||
"test": "jest --watch --verbose", | ||
"build": "babel src -d dist --ignore src/**/*.test.js,**/__tests__/**,src/testing-utils", | ||
"pub": "yarn build && yarn publish" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.4", | ||
"@babel/plugin-transform-async-to-generator": "^7.4.4", | ||
"@babel/plugin-transform-regenerator": "^7.4.4", | ||
"@babel/plugin-transform-runtime": "^7.4.4", | ||
"@babel/plugin-transform-spread": "^7.2.2", | ||
"@babel/polyfill": "^7.4.4", | ||
"@babel/preset-env": "^7.4.4", | ||
"@ensdomains/mock": "^1.0.13", | ||
"babel-eslint": "^9.0.0", | ||
"babel-jest": "^23.6.0", | ||
"babel-jest-assertions": "^0.1.0", | ||
"babel-plugin-add-module-exports": "^1.0.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"coveralls": "^3.0.2", | ||
"eslint": "^5.6.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-node": "^5.1.1", | ||
"eslint-plugin-promise": "^3.5.0", | ||
"eslint-plugin-react": "^7.1.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"esm": "^3.2.22", | ||
"ganache-cli": "^6.4.3", | ||
"jest": "^24.8.0" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.4", | ||
"@ensdomains/ens": "^0.3.5", | ||
"@ensdomains/resolver": "^0.1.6", | ||
"eth-ens-namehash": "^2.0.8", | ||
"js-sha3": "^0.8.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Blockchain tests Helper functions getDomainDetails gets rootdomain and resolver details 1`] = `"ipfs://QmTeW79w7QQ6Npa3b1d5tANreCDxF2iDaAPsDvW6KtLmfB"`; | ||
|
||
exports[`Blockchain tests Resolver getContent returns a 32 byte hash 1`] = `"0x736f6d65436f6e74656e74000000000000000000000000000000000000000000"`; | ||
|
||
exports[`Blockchain tests Resolver setContent sets 32 byte hash 1`] = `"0xd1de9994b4d039f6548d191eb26786769f580809256b4685ef316805265ea162"`; |
Oops, something went wrong.