-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add readme, remove some warning, change mintAndRegisterIpAndMak…
…eDerivative to use function of SPG
- Loading branch information
Showing
5 changed files
with
129 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,55 @@ | ||
# punkga-contracts-solidity | ||
# punkga-contracts-solidity | ||
|
||
This project includes smart contracts of Punkga using on Story Protocol network. | ||
|
||
## Building | ||
|
||
Before building, users must install dependencies. Run the following command: | ||
|
||
```bash | ||
yarn | ||
``` | ||
|
||
### Compile the contracts | ||
|
||
```bash | ||
force build | ||
``` | ||
|
||
### Testing | ||
|
||
To run the tests, use the following command: | ||
|
||
```bash | ||
force test | ||
``` | ||
|
||
### Deployment | ||
|
||
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`). | ||
|
||
```bash | ||
forge create --rpc-url https://testnet.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. | ||
|
||
## Contracts | ||
|
||
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. | ||
|
||
### License | ||
|
||
This project is licensed under the MIT License. See the LICENSE file for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<owner_address> 0x69415CE984A79a3Cfbe3F51024C63b6C107331e3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.23; | ||
pragma experimental ABIEncoderV2; | ||
|
||
|