Verified contractExactMIT
CocotreeCanada
Address0xb76de3d1f25aca2f78da7584f2a29bd16b84caa1
- Balance
0 ETH
- Transactions
351
- Compiler
solc 0.8.20
- Same code
Only this contract
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,984,160
- Creation transaction
- 0x09e70de7b8…02523771e1
CocotreeCanada.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract CocotreeCanada {
address private owner;
mapping(address => bool) private editors;
string public ___________Cocotree_Canada_____________;
string public ____________Current_Price_______________;
string public ____________Minimum_Order______________;
string public ____________Service_Status______________;
string public _____________Information________________;
string public _______________Contact_________________;
event InfoUpdated(
string ___________Cocotree_Canada_____________,
string ____________Current_Price_______________,
string ____________Minimum_Order______________,
string ____________Service_Status______________,
string _____________Information________________,
string _______________Contact_________________
);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event EditorUpdated(address indexed editor, bool isEditor);
modifier onlyOwner() {
require(msg.sender == owner, "Not owner");
_;
}
modifier onlyOwnerOrEditor() {
require(
msg.sender == owner || editors[msg.sender],
"Not owner or editor"
);
_;
}
constructor(
string memory ____________Cocotree_Canada_____________,
string memory _____________Current_Price_______________,
string memory _____________Minimum_Order______________,
string memory _____________Service_Status______________,
string memory ______________Information________________,
string memory ________________Contact_________________
) {
owner = msg.sender;
___________Cocotree_Canada_____________ = ____________Cocotree_Canada_____________;
____________Current_Price_______________ = _____________Current_Price_______________;
____________Minimum_Order______________ = _____________Minimum_Order______________;
____________Service_Status______________ = _____________Service_Status______________;
_____________Information________________ = ______________Information________________;
_______________Contact_________________ = ________________Contact_________________;
emit InfoUpdated(
___________Cocotree_Canada_____________,
____________Current_Price_______________,
____________Minimum_Order______________,
____________Service_Status______________,
_____________Information________________,
_______________Contact_________________
);
emit OwnershipTransferred(address(0), owner);
}
function updateInfo(
string memory ____________Cocotree_Canada_____________,
string memory _____________Current_Price_______________,
string memory _____________Minimum_Order______________,
string memory _____________Service_Status______________,
string memory ______________Information________________,
string memory ________________Contact_________________
) external onlyOwnerOrEditor {
___________Cocotree_Canada_____________ = ____________Cocotree_Canada_____________;
____________Current_Price_______________ = _____________Current_Price_______________;
____________Minimum_Order______________ = _____________Minimum_Order______________;
____________Service_Status______________ = _____________Service_Status______________;
_____________Information________________ = ______________Information________________;
_______________Contact_________________ = ________________Contact_________________;
emit InfoUpdated(
___________Cocotree_Canada_____________,
____________Current_Price_______________,
____________Minimum_Order______________,
____________Service_Status______________,
_____________Information________________,
_______________Contact_________________
);
}
function setEditor(address editor, bool isEditor) external onlyOwner {
editors[editor] = isEditor;
emit EditorUpdated(editor, isEditor);
}
function transferOwnership(address newOwner) external onlyOwner {
require(newOwner != address(0), "New owner is zero address");
address previousOwner = owner;
owner = newOwner;
emit OwnershipTransferred(previousOwner, newOwner);
}
receive() external payable {
revert("No ETH");
}
fallback() external payable {
revert("No other functions");
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.