Skip to content

ZbraLand/zbra-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zbra Contracts

Zbra Land

About

🌿 An open source interface for the Zbra

Zbra is a name service with a magic in-protocol pricing mechanism that provides high liquidity and benefits both early birds and residents moving in in 2050. Grab .zbra domains and get profit!

Interaction with the Contracts

1. Environment Setup

(a) install the nodejs dependencies

npm install

(b) setup the account with private key. Keep it safe. create a file named .env, and copy the privatekey in the .env file.

(c) setup a web3 provider. Use Infura or Alchemy for free. e.g. https://infura.io/ update the host url in hardhat.config.js

2. Run the script

npm run goerli

By default is the goerli network. For the mainnet, call "npm run mainnet"

3. The Logs will be showed as follows:

$ hardhat run --network goerli src/zbra.js
Loaded network  goerli 
Loaded account 0x3bf7307C6f3a42d33C79ED527B76aFdc6B1A4920
Domain Name 15913.zbra costs: 0.006 ETH
Register TxHash: 0x8ccd13a8bef71f96c42134e65b717fea3a8595a78c27cf3d54e2c366cbac421f
Domain Name 15913.zbra new costs: 0.009 ETH
✨  Done in 28.55s.

About

🌿 An open source interface for the Zbra protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published