Skip to content

Instantly share code, notes, and snippets.

View webtrovert0x's full-sized avatar

Damilare Philip Ogunwole webtrovert0x

View GitHub Profile
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:59
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:59
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:56
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:55
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist
@webtrovert0x
webtrovert0x / .deps...npm....resolution-index.json
Created May 20, 2026 16:20
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.34+commit.80d5c536.js&optimize=undefined&runs=200&gist=
{
"noth.sol": {
"__sources__": {
"noth.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.30;\n\ncontract StudentPortal {\n string public schoolName;\n uint public minStudentAge;\n bool public isPortalOpen;\n address public admin;\n\n string[] public registeredStudentNames;\n\n struct Student {\n string name;\n uint age;\n }\n\n mapping(address => Student) public studentRecords;\n mapping(address => bool) public isRegistered;\n mapping(address => uint) public studentBalances;\n\n modifier onlyAdmin() {\n require(msg.sender == admin, \"Unauthorized\");\n _;\n }\n\n modifier portalIsOpen() {\n require(isPortalOpen, \"Portal closed\");\n _;\n }\n\n constructor(string memory _initialSchoolName, uint _initialMinAge) {\n admin = msg.sender;\n schoolName = _initialSchoolName;\n minStudentAge = _initialMinAge;\n isPortalOpen = true;\n }\n\n function regist