2023-12-19 23:37:05 +00:00
|
|
|
// SPDX-License-Identifier: UNLICENSED
|
|
|
|
pragma solidity ^0.8.23;
|
|
|
|
|
|
|
|
import {Test, console} from "forge-std/Test.sol";
|
|
|
|
import {AA} from "../src/AA.sol";
|
|
|
|
//import {nfts} from "../.env";
|
|
|
|
|
|
|
|
contract AATest is Test {
|
|
|
|
AA public aaContract;
|
|
|
|
string public baseURI;
|
|
|
|
string[] public nfts;
|
|
|
|
|
|
|
|
function setUp() public {
|
|
|
|
baseURI = "https://gateway.decentralizedscience.org/ipfs/";
|
|
|
|
// Import nfts array from .env and split by ' '
|
2024-04-25 02:10:02 +00:00
|
|
|
nfts = vm.envString("nfts", " ");
|
2023-12-19 23:37:05 +00:00
|
|
|
aaContract = new AA("DCO2s", "DCO2", baseURI, nfts);
|
|
|
|
}
|
|
|
|
|
|
|
|
// @notice this code safe mints an NFT to address 0x1
|
|
|
|
function testMint() public {
|
|
|
|
address to = address(0x1);
|
2023-12-28 02:05:41 +00:00
|
|
|
aaContract.mintNFT(to, 0);
|
|
|
|
address dco2scAddress = address(aaContract.dco2sc());
|
2024-04-25 02:10:02 +00:00
|
|
|
console.log("{}", dco2scAddress);
|
2023-12-19 23:37:05 +00:00
|
|
|
//assertEq(aaContract.ownerOf(0), to, "Token should be minted to specified address.");
|
|
|
|
}
|
2024-04-25 02:10:02 +00:00
|
|
|
|
2023-12-28 02:05:41 +00:00
|
|
|
// Test mint all NFTs but -20
|
2023-12-19 23:37:05 +00:00
|
|
|
|
2023-12-28 02:05:41 +00:00
|
|
|
// Test Invite Eligible
|
|
|
|
|
|
|
|
// test Check If Eligible
|
|
|
|
|
|
|
|
// Test Airdrop
|
2024-04-25 02:10:02 +00:00
|
|
|
|
2023-12-28 02:05:41 +00:00
|
|
|
// Test Others
|
2023-12-19 23:37:05 +00:00
|
|
|
}
|