Skip to content

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OwnNFT Contract

A contract that allows anyone to upload and manage their own NFT across marketplaces.

Development

https://book.getfoundry.sh/

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

Steps to deploy to sepolia.

Populate the .env file with the following variables:

  • SEPOLIA_RPC_URL
  • ETHERSCAN_API_KEY
  • ACCOUNT (name of the imported foundry account)

Next, run:

$ make deploy ARGS="--network sepolia"

After the deployment, find the contract address in:

broadcast/DeployOwnft.s.sol/<network-id>/run-latest.json

and the ABI:

out/Ownft.sol/Ownft.json

Update Makefile to deploy to any other network.

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

Launch own NFT

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages