- Website: titanbornes.com
- Twitter: @titanbornes
- Discord: discord.gg/titanbornes
Checkout this repo and install dependencies
git clone https://github.com/titanbornes/titanbornes-contracts
cd titanbornes-contracts
npm install
Create your .env
file according to the sample.env
provided file.
MAINNET_PRIVATE_KEY=
RINKEBY_PRIVATE_KEY=
ALCHEMY_RINKEBY_ENDPOINT=
ALCHEMY_MAINNET_ENDPOINT=
CMC_KEY=
ETHERSCAN_KEY=
There are exhaustive tests provided in the Test.js
file. You can run the file using this command:
npx hardhat test
You can deploy this contract to Rinkeby testnet. This requires funding a wallet and registering API keys with Alchemy and Etherscan
Copy sample.env
to .env
and edit in your keys. Then:
npm run rinkeby
You can also use the verify
scripts to verify the contract on Etherscan.
npx hardhat verify --network rinkeby <YOUR_CONTRACT_ADDRESS>
Substitute mainnet
for rinkeby
to deploy for realsies. good luck!