https://github.com/snickerdoodlelabs/testbed-erc-7529
Minimal react application demonstrating the use of Snickerdoodle's ERC-7529 library.
https://github.com/snickerdoodlelabs/testbed-erc-7529
dns-over-https erc-7529 smart-contracts
Last synced: 3 months ago
JSON representation
Minimal react application demonstrating the use of Snickerdoodle's ERC-7529 library.
- Host: GitHub
- URL: https://github.com/snickerdoodlelabs/testbed-erc-7529
- Owner: SnickerdoodleLabs
- License: mit
- Created: 2023-11-04T16:54:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-10T02:50:04.000Z (over 1 year ago)
- Last Synced: 2025-01-16T07:16:00.494Z (4 months ago)
- Topics: dns-over-https, erc-7529, smart-contracts
- Language: TypeScript
- Homepage: https://erc7529.snickerdoodle.com/
- Size: 7.49 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://snickerdoodle.com)
# ERC-7529 Tutorial Application
This is a simple boilerplate React application showing how to leverage [ERC-7529](https://www.npmjs.com/package/@snickerdoodlelabs/erc7529) to directly inspect DNS TXT records to discover smart contracts on a public blockchain and verify the assoication of the smart contract with the DNS domain.
See `handleKeyPress` function in [`DomainInput.tsx`](/src/DomainInput.tsx) for a running example of how to use [`@snickerdoodlelabs/erc7529`](https://www.npmjs.com/package/@snickerdoodlelabs/erc7529) in your application to discover smart contracts using only DNS domain names.
## How to Use this App
You'll need a browser extension installed that injects an ethereum provider (`window.ethereum`), like [Metamask](https://metamask.io/). Next, you'll need to toggle the active network in your extension to the target network you are interested in, (like Fuji testnet). Then type in the name of a domain (like `snickerdoodle.com`) and see if any contracts are associated with that domain on the network your wallet is connected to.
## Local Development
You can play with this applciation locally.
```sh
git clone https://github.com/SnickerdoodleLabs/Testbed-ERC-7529.git
cd Testbed-ERC-7529
npm install
npm start
```