This repo includes a pseudo-randomized cross-chain NFT contract (ERC721A) using Chainlink CCIP. The contracts are deployed on BNB Testnet and Base Sepolia.
$ make install
Before running any commands, create a .env file and add the following environment variables. These are configured for BNB and BASE chain:
# network configs
RPC_LOCALHOST="http://127.0.0.1:8545"
# binance smart chain
RPC_BSC_MAIN=<rpc url>
RPC_BSC_TEST=<rpc url>
BSCSCAN_KEY=<api key>
# base chain
RPC_BASE_MAIN=<rpc url>
RPC_BASE_SEPOLIA=<rpc url>
BASESCAN_KEY=<api key>
BASESCAN_SEPOLIA_KEY=<api key>
$ forge test
Set up your Testnet and Mainnet accounts with keystore using cast wallet import --interactive
and edit the Makefile accordingly.
Testnet Payment Token
$ make deploy-token-testnet
Testnet Source Minter
$ make deploy-source-testnet
Testnet Destination Minter and NFT Contract
$ make deploy-destination-testnet
Payment Token: https://testnet.bscscan.com/address/0x563f5a7fa101dd7051853604ec63103ab6226c7b
Source Minter: https://testnet.bscscan.com/address/0xdcdf94053c9fcfe5bb7525c060b47bbc6d166ce3
Destination Minter: https://base-sepolia.blockscout.com/address/0xCD8946Dda83af26E817579A40587efeC05aeC45B
NFT Contract: https://base-sepolia.blockscout.com/address/0x1d4880a45e8D1B7627728b31B2D5c23Dd9DbE46b
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
👤 Nadina Oates
- Website: nadinaoates.com
- Twitter: @N0_crypto
- Github: @trashpirate
- LinkedIn: @nadinaoates
Copyright © 2024 Nadina Oates.