Skip to content

Off-Live/ghost-vrf

Repository files navigation

Deploy GhostVRF Contract

Copy the .env.example file to a file named .env, and then edit it to fill in the details.

Enter your Etherscan API key, your mainnet node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run --network mainnet scripts/1_deployGhostVRF.ts > log deploy.log 

Run VRF Method

Copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your mainnet node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction.

npx hardhat run --network mainnet scripts/2_runGhostVRF.ts > log/runVRF.log

Get Attributes

To get the ipfs uri of your attribute of token id [tokenID],

npx hardhat run --network mainnet scripts/3_getAttributes.ts TOKEN_ID=[tokenID] > log/attribute.log

To get ipfs uris of all attribute of ghosts,

npx hardhat run --network mainnet scripts/3_getAttributes.ts > log/attributes.log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published