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

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflau committed Sep 7, 2020
0 parents commit a7c6046
Show file tree
Hide file tree
Showing 18 changed files with 10,239 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .babelrc
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
}
]
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
yarn-error.log
11 changes: 11 additions & 0 deletions README.md
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 */)
```
53 changes: 53 additions & 0 deletions package.json
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"
}
}
7 changes: 7 additions & 0 deletions src/__tests__/__snapshots__/ens.test.js.snap
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"`;
Loading

0 comments on commit a7c6046

Please sign in to comment.