false
false

Contract Address Details

0x827fa774F968921Ca9849956893b79793380C0d9

Contract Name
PublicationFactory
Creator
0x26f145–4d2c46 at 0xa078cc–920157
Balance
0 Berg
Tokens
Fetching tokens...
Transactions
53 Transactions
Transfers
0 Transfers
Gas Used
27,707,660
Last Balance Update
28636382
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
Contract name:
PublicationFactory




Optimization enabled
false
Compiler version
v0.8.12+commit.f00d7308




EVM Version
london




Verified at
2025-02-21T16:06:17.506957Z

Constructor Arguments

0x000000000000000000000000057509d22e54dbfeb991a00ad6136eaf0373f4880000000000000000000000008d69f44e3c141012abfb5b93d6b6ffaa8d1af154000000000000000000000000b30e2daa9cf508ec0f48983ce4597cc17518c224

Arg [0] (address) : 0x057509d22e54dbfeb991a00ad6136eaf0373f488
Arg [1] (address) : 0x8d69f44e3c141012abfb5b93d6b6ffaa8d1af154
Arg [2] (address) : 0xb30e2daa9cf508ec0f48983ce4597cc17518c224

              

PublicationFactory.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.12;
import './Identity.sol';
import './Publication.sol';
import "./HitchensUnorderedAddressSet.sol";
import "./Ownable.sol";
import "./ClonesUpgradeable.sol";
// Decentral Publication Contracts v1.0 (contracts/PublicationFactory.sol)
/** @title Upgradeable factory contract for creating Publication contract clones */
contract PublicationFactory is Ownable {
using HitchensUnorderedAddressSetLib for HitchensUnorderedAddressSetLib.Set;
// Master copy for the publication contract clones
address public publicationImpl;
// Editor contract
Editor public editorProxy;
// Identity contract
Identity public identityProxy;
// Set of all deployed publication contract clones
HitchensUnorderedAddressSetLib.Set internal publicationsSet;
event LogPublicationContractCreated(address addr, address sender);
/**
* Constructur sets the master copy contract for the factory and
* the address of the Editor (proxy) contract.
* @param _publicationImpl Address to the master copy contract for the clone factory
* @param _editorProxy Address to the Editor (proxy) contract with which the clones are initialized
* @param _identityProxy Address to the Identity (proxy) contract which maps addresses to real world identities
*/
constructor (address _publicationImpl, address _editorProxy, address _identityProxy) {
publicationImpl = _publicationImpl;
editorProxy = Editor(_editorProxy);
identityProxy = Identity(_identityProxy);
}
/**
* Creates a clone of the the maste copy publication contract. To be called by the author of the publication to initiate the
* submission process. The clone is initialized with the provided submission documents (location of the main document and
* respectiv metadata) and the owner of the cloned contract is set to sender's address.
* The addresses of all clones are automatically stored in the publicationsSet.
* @param _document Off-chain reference to the main document of the publication (e.g., IPFS hash)
* @param _metadata Off-chain reference to the publication metadata document (e.g., IPFS hash)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Context.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Initializable.sol";
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

ContextUpgradeable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Initializable.sol";
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
__Context_init_unchained();
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
uint256[50] private __gap;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

AddressUpgradeable.sol

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

ClonesUpgradeable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
// OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol)
/**
* @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for
* deploying minimal proxy contracts, also known as "clones".
*
* > To simply and cheaply clone contract functionality in an immutable way, this standard specifies
* > a minimal bytecode implementation that delegates all calls to a known, fixed address.
*
* The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`
* (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the
* deterministic method.
*
* _Available since v3.4._
*/
library ClonesUpgradeable {
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create opcode, which should never revert.
*/
function clone(address implementation) internal returns (address instance) {
assembly {
let ptr := mload(0x40)
mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)
mstore(add(ptr, 0x14), shl(0x60, implementation))
mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)
instance := create(0, ptr, 0x37)
}
require(instance != address(0), "ERC1167: create failed");
}
/**
* @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`.
*
* This function uses the create2 opcode and a `salt` to deterministically deploy
* the clone. Using the same `implementation` and `salt` multiple time will revert, since
* the clones cannot be deployed twice at the same address.
*/
function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) {
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Editor.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.12;
import "./HitchensUnorderedAddressSet.sol";
import "./OwnableUpgradeable.sol";
// Decentral Publication Contracts v1.0 (contracts/Editor.sol)
/** @title Upgradeable contract for managing editorial functions */
contract Editor is OwnableUpgradeable {
using HitchensUnorderedAddressSetLib for HitchensUnorderedAddressSetLib.Set;
// Version of the contract
uint8 public constant version = 1;
// Set of current editors
HitchensUnorderedAddressSetLib.Set internal editorsSet;
event LogEditorAdded(address con, address sender, address editor);
event LogEditorRemoved(address sender, address editor);
/**
* Initializes the contract variables. Replaces constructor to enable
* upgradeability of the contract.
*/
function initialize() external initializer {
__Ownable_init(); // contract creator becomes the owner
addEditor(tx.origin);
}
/**
* Removes an editor from the editorial list
* @param _editor Address of the editor to be removed
*/
function removeEditor(address _editor) onlyOwner external {
editorsSet.remove(_editor);
emit LogEditorRemoved(msg.sender, _editor);
}
/**
* Provides a plain array of all editor addresses
* @return Address array of all editors
*/
function getEditors() external view returns (address[] memory) {
return editorsSet.keyList;
}
/**
* Checks if a requested action is allowed to be performed by the requesting
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

HitchensUnorderedAddressSet.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
/*
Hitchens UnorderedAddressSet v0.93
Library for managing CRUD operations in dynamic address sets.
https://github.com/rob-Hitchens/UnorderedKeySet
Copyright (c), 2019, Rob Hitchens, the MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
THIS SOFTWARE IS NOT TESTED OR AUDITED. DO NOT USE FOR PRODUCTION.
*/
library HitchensUnorderedAddressSetLib {
struct Set {
mapping(address => uint) keyPointers;
address[] keyList;
}
function insert(Set storage self, address key) internal {
require(key != address(0), "UnorderedKeySet(100) - Key cannot be 0x0");
require(!exists(self, key), "UnorderedAddressSet(101) - Address (key) already exists in the set.");
self.keyList.push(key);
self.keyPointers[key] = self.keyList.length - 1;
}
function remove(Set storage self, address key) internal {
require(exists(self, key), "UnorderedKeySet(102) - Address (key) does not exist in the set.");
address keyToMove = self.keyList[count(self)-1];
uint rowToReplace = self.keyPointers[key];
self.keyPointers[keyToMove] = rowToReplace;
self.keyList[rowToReplace] = keyToMove;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Identity.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.12;
import "./Editor.sol";
import "./HitchensUnorderedAddressSet.sol";
import "./OwnableUpgradeable.sol";
// Decentral Publication Contracts v1.0 (contracts/Identity.sol)
/** @title Upgradeable contract for managing the mapping between identities and addesses */
contract Identity is OwnableUpgradeable {
using HitchensUnorderedAddressSetLib for HitchensUnorderedAddressSetLib.Set;
struct IDMeta {
bool exists;
string metadata;
bool validated;
}
// Version of the contract
uint8 public constant version = 1;
// Address of the editor proxy contract
Editor public editorProxy;
// Mapping between addresses and a respective identity metadata struct
HitchensUnorderedAddressSetLib.Set internal identitiesSet;
mapping(address => IDMeta) public identities;
// List of blocked addresses that have no write permissions
HitchensUnorderedAddressSetLib.Set internal blockedSet;
event LogIdentityAdded(address sender, address identity, string metadata);
event LogIdentityUpdated(address sender, address identity, string oldMetadata, string newMetadata, string comment);
event LogIdentityRemoved(address sender, address identity, string metadata, string comment);
event LogIdentityValidated(address sender, address identity, string comment);
event LogIdentityInvalidated(address sender, address identity, string comment);
event LogIdentityBlocked(address sender, address identity, string comment);
event LogIdentityUnblocked(address sender, address identity, string comment);
/**
* Initializes the contract variables. Replaces constructor to enable
* upgradeability of the contract.
* @param _editorProxy Address of the Editor (proxy) contract
*/
function initialize(Editor _editorProxy) external initializer {
editorProxy = _editorProxy;
__Ownable_init();
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Initializable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./AddressUpgradeable.sol";
// OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol)
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the
* initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() initializer {}
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Ownable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Context.sol";
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

OwnableUpgradeable.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.12;
import "./Initializable.sol";
import "./ContextUpgradeable.sol";
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Context_init_unchained();
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Publication.sol

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.12;
import "./Editor.sol";
import "./Identity.sol";
import "./HitchensUnorderedAddressSet.sol";
import "./OwnableUpgradeable.sol";
// Decentral Publication Contracts v1.0 (contracts/Publication.sol)
/** @title Contract for one specific publication which is owned by the publication's author */
contract Publication is OwnableUpgradeable {
using HitchensUnorderedAddressSetLib for HitchensUnorderedAddressSetLib.Set;
// Different roles an endorser can have
enum EndorserRole{ NONE, READER, SUPERVISOR, EXAMINER }
// Different states a publication can have
enum PublicationState{ NONE, SUBMITTED, PUBLISHED, RETRACTED }
struct Endorsement {
bool exists;
string document;
EndorserRole role;
}
// Version of the publication contract
uint8 public constant version = 1;
// List of endorsers of the publication
mapping(address => Endorsement) public endorsers;
HitchensUnorderedAddressSetLib.Set internal endorsersSet;
// Identifier of the publishing journal
uint8 public journal;
// File hashes for the published document and it's meta data
string public document;
string public metadata;
// State of the publication process
PublicationState public state;
// Address of the editor proxy contract
Editor public editorProxy;
// Address of the identity proxy contract
Identity public identityProxy;
event LogNewPublication(address sender, string document, string metadata, PublicationState state);
event LogNewEndorsement(address sender, string document, string comment);
event LogUpdateEndorserRole(address sender, address endorser, string document, EndorserRole oldRole, EndorserRole newRole);
event LogUpdateEndorsementDocument(address sender, address endorser, string oldDocument, string newDocument);
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_publicationImpl","internalType":"address"},{"type":"address","name":"_editorProxy","internalType":"address"},{"type":"address","name":"_identityProxy","internalType":"address"}]},{"type":"event","name":"LogPublicationContractCreated","inputs":[{"type":"address","name":"addr","internalType":"address","indexed":false},{"type":"address","name":"sender","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"createPublication","inputs":[{"type":"string","name":"_document","internalType":"string"},{"type":"string","name":"_metadata","internalType":"string"},{"type":"string","name":"_identity","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract Editor"}],"name":"editorProxy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address[]","name":"","internalType":"address[]"}],"name":"getPublications","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract Identity"}],"name":"identityProxy","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"publicationImpl","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]}]
              

Contract Creation Code

Verify & Publish
0x60806040523480156200001157600080fd5b50604051620016d6380380620016d6833981810160405281019062000037919062000259565b620000576200004b6200012360201b60201c565b6200012b60201b60201c565b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620002b5565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200022182620001f4565b9050919050565b620002338162000214565b81146200023f57600080fd5b50565b600081519050620002538162000228565b92915050565b600080600060608486031215620002755762000274620001ef565b5b6000620002858682870162000242565b9350506020620002988682870162000242565b9250506040620002ab8682870162000242565b9150509250925092565b61141180620002c56000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806391e575541161005b57806391e5755414610103578063993871f714610121578063c27e3e991461013f578063f2fde38b1461015d57610088565b80630b5f1e681461008d57806357dadcec146100bd578063715018a6146100db5780638da5cb5b146100e5575b600080fd5b6100a760048036038101906100a29190610b35565b610179565b6040516100b49190610c1d565b60405180910390f35b6100c561033f565b6040516100d29190610c1d565b60405180910390f35b6100e3610365565b005b6100ed6103ed565b6040516100fa9190610c1d565b60405180910390f35b61010b610416565b6040516101189190610c97565b60405180910390f35b61012961043c565b6040516101369190610d70565b60405180910390f35b6101476104cd565b6040516101549190610db3565b60405180910390f35b61017760048036038101906101729190610dfa565b6104f3565b005b6000806101a7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166105eb565b90508073ffffffffffffffffffffffffffffffffffffffff1663868db57c33878787600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016040518863ffffffff1660e01b81526004016102339796959493929190610ef7565b600060405180830381600087803b15801561024d57600080fd5b505af192505050801561025e575060015b6102e65761026a610f88565b806308c379a014156102d5575061027f610faa565b8061028a57506102d7565b600081906102ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102c59190611040565b60405180910390fd5b50506102e1565b505b3d6000803e3d6000fd5b6102e7565b5b6102fb8160046106c090919063ffffffff16565b7fec534c0ae3645f0a7dd9ec78368acc80f799a7549078bac6aac387e13309994d813360405161032c929190611062565b60405180910390a1809150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61036d61083c565b73ffffffffffffffffffffffffffffffffffffffff1661038b6103ed565b73ffffffffffffffffffffffffffffffffffffffff16146103e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d8906110d7565b60405180910390fd5b6103eb6000610844565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060046001018054806020026020016040519081016040528092919081815260200182805480156104c357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610479575b5050505050905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6104fb61083c565b73ffffffffffffffffffffffffffffffffffffffff166105196103ed565b73ffffffffffffffffffffffffffffffffffffffff161461056f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610566906110d7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690611169565b60405180910390fd5b6105e881610844565b50565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b2906111d5565b60405180910390fd5b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610730576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072790611267565b60405180910390fd5b61073a8282610908565b1561077a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107719061131f565b60405180910390fd5b81600101819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600182600101805490506107f39190611378565b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808360010180549050141561092257600090506109d5565b8173ffffffffffffffffffffffffffffffffffffffff16836001018460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054815481106109905761098f6113ac565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161490505b92915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610a42826109f9565b810181811067ffffffffffffffff82111715610a6157610a60610a0a565b5b80604052505050565b6000610a746109db565b9050610a808282610a39565b919050565b600067ffffffffffffffff821115610aa057610a9f610a0a565b5b610aa9826109f9565b9050602081019050919050565b82818337600083830152505050565b6000610ad8610ad384610a85565b610a6a565b905082815260208101848484011115610af457610af36109f4565b5b610aff848285610ab6565b509392505050565b600082601f830112610b1c57610b1b6109ef565b5b8135610b2c848260208601610ac5565b91505092915050565b600080600060608486031215610b4e57610b4d6109e5565b5b600084013567ffffffffffffffff811115610b6c57610b6b6109ea565b5b610b7886828701610b07565b935050602084013567ffffffffffffffff811115610b9957610b986109ea565b5b610ba586828701610b07565b925050604084013567ffffffffffffffff811115610bc657610bc56109ea565b5b610bd286828701610b07565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c0782610bdc565b9050919050565b610c1781610bfc565b82525050565b6000602082019050610c326000830184610c0e565b92915050565b6000819050919050565b6000610c5d610c58610c5384610bdc565b610c38565b610bdc565b9050919050565b6000610c6f82610c42565b9050919050565b6000610c8182610c64565b9050919050565b610c9181610c76565b82525050565b6000602082019050610cac6000830184610c88565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610ce781610bfc565b82525050565b6000610cf98383610cde565b60208301905092915050565b6000602082019050919050565b6000610d1d82610cb2565b610d278185610cbd565b9350610d3283610cce565b8060005b83811015610d63578151610d4a8882610ced565b9750610d5583610d05565b925050600181019050610d36565b5085935050505092915050565b60006020820190508181036000830152610d8a8184610d12565b905092915050565b6000610d9d82610c64565b9050919050565b610dad81610d92565b82525050565b6000602082019050610dc86000830184610da4565b92915050565b610dd781610bfc565b8114610de257600080fd5b50565b600081359050610df481610dce565b92915050565b600060208284031215610e1057610e0f6109e5565b5b6000610e1e84828501610de5565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610e61578082015181840152602081019050610e46565b83811115610e70576000848401525b50505050565b6000610e8182610e27565b610e8b8185610e32565b9350610e9b818560208601610e43565b610ea4816109f9565b840191505092915050565b6000819050919050565b600060ff82169050919050565b6000610ee1610edc610ed784610eaf565b610c38565b610eb9565b9050919050565b610ef181610ec6565b82525050565b600060e082019050610f0c600083018a610c0e565b8181036020830152610f1e8189610e76565b90508181036040830152610f328188610e76565b90508181036060830152610f468187610e76565b9050610f556080830186610c88565b610f6260a0830185610da4565b610f6f60c0830184610ee8565b98975050505050505050565b60008160e01c9050919050565b600060033d1115610fa75760046000803e610fa4600051610f7b565b90505b90565b600060443d1015610fba5761103d565b610fc26109db565b60043d036004823e80513d602482011167ffffffffffffffff82111715610fea57505061103d565b808201805167ffffffffffffffff811115611008575050505061103d565b80602083010160043d03850181111561102557505050505061103d565b61103482602001850186610a39565b82955050505050505b90565b6000602082019050818103600083015261105a8184610e76565b905092915050565b60006040820190506110776000830185610c0e565b6110846020830184610c0e565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006110c1602083610e32565b91506110cc8261108b565b602082019050919050565b600060208201905081810360008301526110f0816110b4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611153602683610e32565b915061115e826110f7565b604082019050919050565b6000602082019050818103600083015261118281611146565b9050919050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b60006111bf601683610e32565b91506111ca82611189565b602082019050919050565b600060208201905081810360008301526111ee816111b2565b9050919050565b7f556e6f7264657265644b65795365742831303029202d204b65792063616e6e6f60008201527f7420626520307830000000000000000000000000000000000000000000000000602082015250565b6000611251602883610e32565b915061125c826111f5565b604082019050919050565b6000602082019050818103600083015261128081611244565b9050919050565b7f556e6f726465726564416464726573735365742831303129202d20416464726560008201527f737320286b65792920616c72656164792065786973747320696e20746865207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015250565b6000611309604383610e32565b915061131482611287565b606082019050919050565b60006020820190508181036000830152611338816112fc565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006113838261133f565b915061138e8361133f565b9250828210156113a1576113a0611349565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122091a2ac839ed2f459f2bcc80d0735a71d48c4b2377396b56b47402df923ecfb0064736f6c634300080c0033000000000000000000000000057509d22e54dbfeb991a00ad6136eaf0373f4880000000000000000000000008d69f44e3c141012abfb5b93d6b6ffaa8d1af154000000000000000000000000b30e2daa9cf508ec0f48983ce4597cc17518c224

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c806391e575541161005b57806391e5755414610103578063993871f714610121578063c27e3e991461013f578063f2fde38b1461015d57610088565b80630b5f1e681461008d57806357dadcec146100bd578063715018a6146100db5780638da5cb5b146100e5575b600080fd5b6100a760048036038101906100a29190610b35565b610179565b6040516100b49190610c1d565b60405180910390f35b6100c561033f565b6040516100d29190610c1d565b60405180910390f35b6100e3610365565b005b6100ed6103ed565b6040516100fa9190610c1d565b60405180910390f35b61010b610416565b6040516101189190610c97565b60405180910390f35b61012961043c565b6040516101369190610d70565b60405180910390f35b6101476104cd565b6040516101549190610db3565b60405180910390f35b61017760048036038101906101729190610dfa565b6104f3565b005b6000806101a7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166105eb565b90508073ffffffffffffffffffffffffffffffffffffffff1663868db57c33878787600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660016040518863ffffffff1660e01b81526004016102339796959493929190610ef7565b600060405180830381600087803b15801561024d57600080fd5b505af192505050801561025e575060015b6102e65761026a610f88565b806308c379a014156102d5575061027f610faa565b8061028a57506102d7565b600081906102ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102c59190611040565b60405180910390fd5b50506102e1565b505b3d6000803e3d6000fd5b6102e7565b5b6102fb8160046106c090919063ffffffff16565b7fec534c0ae3645f0a7dd9ec78368acc80f799a7549078bac6aac387e13309994d813360405161032c929190611062565b60405180910390a1809150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61036d61083c565b73ffffffffffffffffffffffffffffffffffffffff1661038b6103ed565b73ffffffffffffffffffffffffffffffffffffffff16146103e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d8906110d7565b60405180910390fd5b6103eb6000610844565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060046001018054806020026020016040519081016040528092919081815260200182805480156104c357602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610479575b5050505050905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6104fb61083c565b73ffffffffffffffffffffffffffffffffffffffff166105196103ed565b73ffffffffffffffffffffffffffffffffffffffff161461056f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610566906110d7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156105df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d690611169565b60405180910390fd5b6105e881610844565b50565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528260601b60148201527f5af43d82803e903d91602b57fd5bf3000000000000000000000000000000000060288201526037816000f0915050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156106bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b2906111d5565b60405180910390fd5b919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610730576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072790611267565b60405180910390fd5b61073a8282610908565b1561077a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107719061131f565b60405180910390fd5b81600101819080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600182600101805490506107f39190611378565b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808360010180549050141561092257600090506109d5565b8173ffffffffffffffffffffffffffffffffffffffff16836001018460000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054815481106109905761098f6113ac565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161490505b92915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610a42826109f9565b810181811067ffffffffffffffff82111715610a6157610a60610a0a565b5b80604052505050565b6000610a746109db565b9050610a808282610a39565b919050565b600067ffffffffffffffff821115610aa057610a9f610a0a565b5b610aa9826109f9565b9050602081019050919050565b82818337600083830152505050565b6000610ad8610ad384610a85565b610a6a565b905082815260208101848484011115610af457610af36109f4565b5b610aff848285610ab6565b509392505050565b600082601f830112610b1c57610b1b6109ef565b5b8135610b2c848260208601610ac5565b91505092915050565b600080600060608486031215610b4e57610b4d6109e5565b5b600084013567ffffffffffffffff811115610b6c57610b6b6109ea565b5b610b7886828701610b07565b935050602084013567ffffffffffffffff811115610b9957610b986109ea565b5b610ba586828701610b07565b925050604084013567ffffffffffffffff811115610bc657610bc56109ea565b5b610bd286828701610b07565b9150509250925092565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610c0782610bdc565b9050919050565b610c1781610bfc565b82525050565b6000602082019050610c326000830184610c0e565b92915050565b6000819050919050565b6000610c5d610c58610c5384610bdc565b610c38565b610bdc565b9050919050565b6000610c6f82610c42565b9050919050565b6000610c8182610c64565b9050919050565b610c9181610c76565b82525050565b6000602082019050610cac6000830184610c88565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b610ce781610bfc565b82525050565b6000610cf98383610cde565b60208301905092915050565b6000602082019050919050565b6000610d1d82610cb2565b610d278185610cbd565b9350610d3283610cce565b8060005b83811015610d63578151610d4a8882610ced565b9750610d5583610d05565b925050600181019050610d36565b5085935050505092915050565b60006020820190508181036000830152610d8a8184610d12565b905092915050565b6000610d9d82610c64565b9050919050565b610dad81610d92565b82525050565b6000602082019050610dc86000830184610da4565b92915050565b610dd781610bfc565b8114610de257600080fd5b50565b600081359050610df481610dce565b92915050565b600060208284031215610e1057610e0f6109e5565b5b6000610e1e84828501610de5565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610e61578082015181840152602081019050610e46565b83811115610e70576000848401525b50505050565b6000610e8182610e27565b610e8b8185610e32565b9350610e9b818560208601610e43565b610ea4816109f9565b840191505092915050565b6000819050919050565b600060ff82169050919050565b6000610ee1610edc610ed784610eaf565b610c38565b610eb9565b9050919050565b610ef181610ec6565b82525050565b600060e082019050610f0c600083018a610c0e565b8181036020830152610f1e8189610e76565b90508181036040830152610f328188610e76565b90508181036060830152610f468187610e76565b9050610f556080830186610c88565b610f6260a0830185610da4565b610f6f60c0830184610ee8565b98975050505050505050565b60008160e01c9050919050565b600060033d1115610fa75760046000803e610fa4600051610f7b565b90505b90565b600060443d1015610fba5761103d565b610fc26109db565b60043d036004823e80513d602482011167ffffffffffffffff82111715610fea57505061103d565b808201805167ffffffffffffffff811115611008575050505061103d565b80602083010160043d03850181111561102557505050505061103d565b61103482602001850186610a39565b82955050505050505b90565b6000602082019050818103600083015261105a8184610e76565b905092915050565b60006040820190506110776000830185610c0e565b6110846020830184610c0e565b9392505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006110c1602083610e32565b91506110cc8261108b565b602082019050919050565b600060208201905081810360008301526110f0816110b4565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611153602683610e32565b915061115e826110f7565b604082019050919050565b6000602082019050818103600083015261118281611146565b9050919050565b7f455243313136373a20637265617465206661696c656400000000000000000000600082015250565b60006111bf601683610e32565b91506111ca82611189565b602082019050919050565b600060208201905081810360008301526111ee816111b2565b9050919050565b7f556e6f7264657265644b65795365742831303029202d204b65792063616e6e6f60008201527f7420626520307830000000000000000000000000000000000000000000000000602082015250565b6000611251602883610e32565b915061125c826111f5565b604082019050919050565b6000602082019050818103600083015261128081611244565b9050919050565b7f556e6f726465726564416464726573735365742831303129202d20416464726560008201527f737320286b65792920616c72656164792065786973747320696e20746865207360208201527f65742e0000000000000000000000000000000000000000000000000000000000604082015250565b6000611309604383610e32565b915061131482611287565b606082019050919050565b60006020820190508181036000830152611338816112fc565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006113838261133f565b915061138e8361133f565b9250828210156113a1576113a0611349565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea264697066735822122091a2ac839ed2f459f2bcc80d0735a71d48c4b2377396b56b47402df923ecfb0064736f6c634300080c0033