Verified contractExactMIT
CocotreeCanadafr
Address0x1e88c1e5f7f03a36581d0cd7cb4e8c08d79f00ef
- Balance
0 ETH
- Transactions
347
- 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,193
- Creation transaction
- 0x4c3cb49828…74d28c806b
CocotreeCanadafr.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract CocotreeCanadafr {
address private owner;
mapping(address => bool) private editors;
string public ____________Cocotree_Canada____________;
string public ____________Etat_du_service_____________;
string public _____________Commande_min_____________;
string public ______________Prix_actuel_______________;
string public _______________Contact_________________;
string public ________________Infos__________________;
event InfoUpdated(
string ____________Cocotree_Canada____________,
string ____________Etat_du_service_____________,
string _____________Commande_min_____________,
string ______________Prix_actuel_______________,
string _______________Contact_________________,
string ________________Infos__________________
);
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 _____________Etat_du_service_____________,
string memory ______________Commande_min_____________,
string memory _______________Prix_actuel_______________,
string memory ________________Contact_________________,
string memory _________________Infos__________________
) {
owner = msg.sender;
____________Cocotree_Canada____________ = _____________Cocotree_Canada____________;
____________Etat_du_service_____________ = _____________Etat_du_service_____________;
_____________Commande_min_____________ = ______________Commande_min_____________;
______________Prix_actuel_______________ = _______________Prix_actuel_______________;
_______________Contact_________________ = ________________Contact_________________;
________________Infos__________________ = _________________Infos__________________;
emit InfoUpdated(
____________Cocotree_Canada____________,
____________Etat_du_service_____________,
_____________Commande_min_____________,
______________Prix_actuel_______________,
_______________Contact_________________,
________________Infos__________________
);
emit OwnershipTransferred(address(0), owner);
}
function updateInfo(
string memory _____________Cocotree_Canada____________,
string memory _____________Etat_du_service_____________,
string memory ______________Commande_min_____________,
string memory _______________Prix_actuel_______________,
string memory ________________Contact_________________,
string memory _________________Infos__________________
) external onlyOwnerOrEditor {
____________Cocotree_Canada____________ = _____________Cocotree_Canada____________;
____________Etat_du_service_____________ = _____________Etat_du_service_____________;
_____________Commande_min_____________ = ______________Commande_min_____________;
______________Prix_actuel_______________ = _______________Prix_actuel_______________;
_______________Contact_________________ = ________________Contact_________________;
________________Infos__________________ = _________________Infos__________________;
emit InfoUpdated(
____________Cocotree_Canada____________,
____________Etat_du_service_____________,
_____________Commande_min_____________,
______________Prix_actuel_______________,
_______________Contact_________________,
________________Infos__________________
);
}
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
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.