A robust, custom authentication system built for Next.js using Supabase as the backend. This system provides comprehensive authentication functionality including email/password authentication, social auth (Google), session management, and route protection.
This file contains hidden or 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
| [ | |
| "0x9B3d3FB6b7F75551C87466A72C03F5f4E3245413", | |
| "0x83d867EB8F0613C7F34E99CeF3C0C3f21875Ac7a" | |
| ] |
This file contains hidden or 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
| const ABI = [{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint256","name":"_cost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_saleSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","ty |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/contracts@4.5.0/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/contracts@4.5.0/security/Pausable.sol"; | |
| import "@openzeppelin/contracts@4.5.0/access/Ownable.sol"; | |
| import "@openzeppelin/contracts@4.5.0/token/ERC20/extensions/draft-ERC20Permit.sol"; | |
| import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; | |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity >=0.8.9 <0.9.0; | |
| import 'erc721a/contracts/ERC721A.sol'; | |
| import '@openzeppelin/contracts/access/Ownable.sol'; | |
| import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; | |
| import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; | |
| import "erc721a/contracts/extensions/ERC721ABurnable.sol"; |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| /** | |
| * @dev Interface of the ERC165 standard, as defined in the | |
| * https://eips.ethereum.org/EIPS/eip-165[EIP]. | |
| * | |
| * Implementers can declare support of contract interfaces, which can then be |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| /** | |
| * @dev Interface of the ERC165 standard, as defined in the | |
| * https://eips.ethereum.org/EIPS/eip-165[EIP]. | |
| * | |
| * Implementers can declare support of contract interfaces, which can then be |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| contract finalNFT is ERC721, ERC721URIStorage, Ownable { | |
| constructor() ERC721("Mars NFT", "MFT") { | |
| _safeMint(msg.sender, 1); |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| // Edited by Faizan | |
| pragma solidity >=0.7.0 <0.9.0; | |
| import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; |
This file contains hidden or 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
| // SPDX-License-Identifier: MIT | |
| /* | |
| CyberStellar - Smart Contract with burn functionality. | |
| Author: Faizan | |
| */ | |
| pragma solidity ^0.8.2; | |
| import "@openzeppelin/contracts@4.4.2/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts@4.4.2/token/ERC721/extensions/ERC721Enumerable.sol"; |
NewerOlder