This project includes smart contracts of Punkga using on Story Protocol network.
Before building, users must install dependencies. Run the following command:
yarn
forge build
To run the tests, use the following command:
forge test
To deploy the contracts, you can use Foundry's forge
tool. Before deploying, you must change the constructor's arguments of contract in args
file (by rename args_example
).
forge create --rpc-url https://odyssey.storyrpc.io/ --private-key <YOUR_PRIVATE_KEY> contracts/<YOUR_CONTRACT>.sol:<YOUR_CONTRACT> --constructor-args-path args
Replace <YOUR_PRIVATE_KEY>
with your private key, and <YOUR_CONTRACT>
with the name of the contract you want to deploy.
The repository contains the following smart contracts:
AccessControl.sol
: Implements access control mechanisms.ERC721Mock.sol
: A mock implementation of the ERC721 standard.ILaunchpadNFT.sol
: Interface for the Launchpad NFT contract.ISPGNFT.sol
: Interface for the SPG NFT contract.IStoryProtocolGateway.sol
: Interface for the Story Protocol Gateway contract.LaunchpadNFT.sol
: Implementation of the Launchpad NFT contract.MockERC20.sol
: A mock implementation of the ERC20 standard.multicall.sol
: Implements multicall functionality.PunkgaContestNFT.sol
: Implementation of the Punkga Contest NFT contract.StoryCampaign.sol
: Implementation of the Story Campaign contract.StoryLaunchpad.sol
: Implementation of the Story Launchpad contract.
This project is licensed under the MIT License. See the LICENSE file for details.