Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"settings": {
"evmVersion": "cancun",
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
},
"sources": {
"project/contracts/inpi-contract/inpi.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
/*
* _____ _ _ _ _ _
* / ____| | | | | \ | | | |
* | (___ | |_ __ _ _ __| | __| \| | ___ __| | ___
* \___ \| __/ _` | '__| |/ / . ` |/ _ \ / _` |/ _ \
* ____) | || (_| | | | <| |\ | (_) | (_| | __/
* |_____/ \__\__,_|_| |_|\_\_| \_|\___/ \__,_|\___|
*
* StarkNode
* Decentralized Gateway Infrastructure
*
* oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
*/
contract Inpi {
string public name;
string public uri;
uint256 public immutable timestamp;
address public owner;
constructor(string memory _name, string memory _uri) {
name = _name;
uri = _uri;
owner = msg.sender;
timestamp = block.timestamp; ///2025-10-04
}
function getInpi() public view returns (string memory, string memory, uint256) {
return (name, uri, timestamp);
}
function setUri(string memory _uri) public {
require(msg.sender == owner, "Only owner can set URI");
uri = _uri;
}
function transferOwnership(address newOwner) public {
require(msg.sender == owner, "Only owner can transfer ownership");
owner = newOwner;
}
}"
}
}
}}
Submitted on: 2025-10-05 09:42:02
Comments
Log in to comment.
No comments yet.