Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers.
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
|||
|---|---|---|---|---|---|---|---|---|
| Has Claim Topic | 10191963 | 2126 days ago | 0 ETH | |||||
| Is Trusted Issue... | 10191963 | 2126 days ago | 0 ETH | |||||
| Has Claim Topic | 10048866 | 2148 days ago | 0 ETH | |||||
| Is Trusted Issue... | 10048866 | 2148 days ago | 0 ETH | |||||
| Has Claim Topic | 10048858 | 2148 days ago | 0 ETH | |||||
| Is Trusted Issue... | 10048858 | 2148 days ago | 0 ETH | |||||
| Has Claim Topic | 10048840 | 2148 days ago | 0 ETH | |||||
| Is Trusted Issue... | 10048840 | 2148 days ago | 0 ETH | |||||
| Has Claim Topic | 10048820 | 2148 days ago | 0 ETH | |||||
| Is Trusted Issue... | 10048820 | 2148 days ago | 0 ETH | |||||
| Has Claim Topic | 9757080 | 2193 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9757080 | 2193 days ago | 0 ETH | |||||
| Has Claim Topic | 9757059 | 2193 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9757059 | 2193 days ago | 0 ETH | |||||
| Has Claim Topic | 9754113 | 2194 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9754113 | 2194 days ago | 0 ETH | |||||
| Has Claim Topic | 9753884 | 2194 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9753884 | 2194 days ago | 0 ETH | |||||
| Has Claim Topic | 9753865 | 2194 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9753865 | 2194 days ago | 0 ETH | |||||
| Has Claim Topic | 9753835 | 2194 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9753835 | 2194 days ago | 0 ETH | |||||
| Has Claim Topic | 9753832 | 2194 days ago | 0 ETH | |||||
| Is Trusted Issue... | 9753832 | 2194 days ago | 0 ETH | |||||
| Has Claim Topic | 9753389 | 2194 days ago | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x7ef283BD...c71D015C3 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TrustedIssuersRegistry
Compiler Version
v0.5.10+commit.5a6ea5b1
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-02-13
*/
// File: @onchain-id/solidity/contracts/IERC734.sol
pragma solidity ^0.5.10;
/**
* @dev Interface of the ERC734 (Key Holder) standard as defined in the EIP.
*/
interface IERC734 {
/**
* @dev Definition of the structure of a Key.
*
* Specification: Keys are cryptographic public keys, or contract addresses associated with this identity.
* The structure should be as follows:
* - key: A public key owned by this identity
* - purposes: uint256[] Array of the key purposes, like 1 = MANAGEMENT, 2 = EXECUTION
* - keyType: The type of key used, which would be a uint256 for different key types. e.g. 1 = ECDSA, 2 = RSA, etc.
* - key: bytes32 The public key. // Its the Keccak256 hash of the key
*/
struct Key {
uint256[] purposes;
uint256 keyType;
bytes32 key;
}
/**
* @dev Emitted when an execution request was approved.
*
* Specification: MUST be triggered when approve was successfully called.
*/
event Approved(uint256 indexed executionId, bool approved);
/**
* @dev Emitted when an execute operation was approved and successfully performed.
*
* Specification: MUST be triggered when approve was called and the execution was successfully approved.
*/
event Executed(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);
/**
* @dev Emitted when an execution request was performed via `execute`.
*
* Specification: MUST be triggered when execute was successfully called.
*/
event ExecutionRequested(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);
/**
* @dev Emitted when a key was added to the Identity.
*
* Specification: MUST be triggered when addKey was successfully called.
*/
event KeyAdded(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType);
/**
* @dev Emitted when a key was removed from the Identity.
*
* Specification: MUST be triggered when removeKey was successfully called.
*/
event KeyRemoved(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType);
/**
* @dev Emitted when the list of required keys to perform an action was updated.
*
* Specification: MUST be triggered when changeKeysRequired was successfully called.
*/
event KeysRequiredChanged(uint256 purpose, uint256 number);
/**
* @dev Adds a _key to the identity. The _purpose specifies the purpose of the key.
*
* Triggers Event: `KeyAdded`
*
* Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
*/
function addKey(bytes32 _key, uint256 _purpose, uint256 _keyType) external returns (bool success);
/**
* @dev Approves an execution or claim addition.
*
* Triggers Event: `Approved`, `Executed`
*
* Specification:
* This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution.
* And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution.
*/
function approve(uint256 _id, bool _approve) external returns (bool success);
/**
* @dev Changes the keys required to perform an action for a specific purpose. (This is the n in an n of m multisig approval process.)
*
* Triggers Event: `KeysRequiredChanged`
*
* Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
*/
function changeKeysRequired(uint256 purpose, uint256 number) external;
/**
* @dev Passes an execution instruction to an ERC725 identity.
*
* Triggers Event: `ExecutionRequested`, `Executed`
*
* Specification:
* SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution.
* Execute COULD be used as the only accessor for `addKey` and `removeKey`.
*/
function execute(address _to, uint256 _value, bytes calldata _data) external payable returns (uint256 executionId);
/**
* @dev Returns the full key data, if present in the identity.
*/
function getKey(bytes32 _key) external view returns (uint256[] memory purposes, uint256 keyType, bytes32 key);
/**
* @dev Returns the list of purposes associated with a key.
*/
function getKeyPurposes(bytes32 _key) external view returns(uint256[] memory _purposes);
/**
* @dev Returns an array of public key bytes32 held by this identity.
*/
function getKeysByPurpose(uint256 _purpose) external view returns (bytes32[] memory keys);
/**
* @dev Returns number of keys required for purpose.
*/
function getKeysRequired(uint256 purpose) external view returns (uint256);
/**
* @dev Returns TRUE if a key is present and has the given purpose. If the key is not present it returns FALSE.
*/
function keyHasPurpose(bytes32 _key, uint256 _purpose) external view returns (bool exists);
/**
* @dev Removes _purpose for _key from the identity.
*
* Triggers Event: `KeyRemoved`
*
* Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.
*/
function removeKey(bytes32 _key, uint256 _purpose) external returns (bool success);
}
// File: @onchain-id/solidity/contracts/ERC734.sol
pragma solidity ^0.5.10;
/**
* @dev Implementation of the `IERC734` "KeyHolder" interface.
*/
contract ERC734 is IERC734 {
uint256 public constant MANAGEMENT_KEY = 1;
uint256 public constant ACTION_KEY = 2;
uint256 public constant CLAIM_SIGNER_KEY = 3;
uint256 public constant ENCRYPTION_KEY = 4;
uint256 private executionNonce;
struct Execution {
address to;
uint256 value;
bytes data;
bool approved;
bool executed;
}
mapping (bytes32 => Key) private keys;
mapping (uint256 => bytes32[]) private keysByPurpose;
mapping (uint256 => Execution) private executions;
event ExecutionFailed(uint256 indexed executionId, address indexed to, uint256 indexed value, bytes data);
constructor() public {
bytes32 _key = keccak256(abi.encode(msg.sender));
keys[_key].key = _key;
keys[_key].purposes = [1];
keys[_key].keyType = 1;
keysByPurpose[1].push(_key);
emit KeyAdded(_key, 1, 1);
}
/**
* @notice Implementation of the getKey function from the ERC-734 standard
*
* @param _key The public key. for non-hex and long keys, its the Keccak256 hash of the key
*
* @return Returns the full key data, if present in the identity.
*/
function getKey(bytes32 _key)
public
view
returns(uint256[] memory purposes, uint256 keyType, bytes32 key)
{
return (keys[_key].purposes, keys[_key].keyType, keys[_key].key);
}
/**
* @notice gets the purposes of a key
*
* @param _key The public key. for non-hex and long keys, its the Keccak256 hash of the key
*
* @return Returns the purposes of the specified key
*/
function getKeyPurposes(bytes32 _key)
public
view
returns(uint256[] memory _purposes)
{
return (keys[_key].purposes);
}
/**
* @notice gets all the keys with a specific purpose from an identity
*
* @param _purpose a uint256[] Array of the key types, like 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION
*
* @return Returns an array of public key bytes32 hold by this identity and having the specified purpose
*/
function getKeysByPurpose(uint256 _purpose)
public
view
returns(bytes32[] memory _keys)
{
return keysByPurpose[_purpose];
}
/**
* @notice implementation of the addKey function of the ERC-734 standard
* Adds a _key to the identity. The _purpose specifies the purpose of key. Initially we propose four purposes:
* 1: MANAGEMENT keys, which can manage the identity
* 2: ACTION keys, which perform actions in this identities name (signing, logins, transactions, etc.)
* 3: CLAIM signer keys, used to sign claims on other identities which need to be revokable.
* 4: ENCRYPTION keys, used to encrypt data e.g. hold in claims.
* MUST only be done by keys of purpose 1, or the identity itself.
* If its the identity itself, the approval process will determine its approval.
*
* @param _key keccak256 representation of an ethereum address
* @param _type type of key used, which would be a uint256 for different key types. e.g. 1 = ECDSA, 2 = RSA, etc.
* @param _purpose a uint256[] Array of the key types, like 1 = MANAGEMENT, 2 = ACTION, 3 = CLAIM, 4 = ENCRYPTION
*
* @return Returns TRUE if the addition was successful and FALSE if not
*/
function addKey(bytes32 _key, uint256 _purpose, uint256 _type)
public
returns (bool success)
{
if (msg.sender != address(this)) {
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key");
}
if (keys[_key].key == _key) {
for (uint keyPurposeIndex = 0; keyPurposeIndex < keys[_key].purposes.length; keyPurposeIndex++) {
uint256 purpose = keys[_key].purposes[keyPurposeIndex];
if (purpose == _purpose) {
revert("Conflict: Key already has purpose");
}
}
keys[_key].purposes.push(_purpose);
} else {
keys[_key].key = _key;
keys[_key].purposes = [_purpose];
keys[_key].keyType = _type;
}
keysByPurpose[_purpose].push(_key);
emit KeyAdded(_key, _purpose, _type);
return true;
}
function approve(uint256 _id, bool _approve)
public
returns (bool success)
{
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 2), "Sender does not have action key");
emit Approved(_id, _approve);
if (_approve == true) {
executions[_id].approved = true;
(success,) = executions[_id].to.call.value(executions[_id].value)(abi.encode(executions[_id].data, 0));
if (success) {
executions[_id].executed = true;
emit Executed(
_id,
executions[_id].to,
executions[_id].value,
executions[_id].data
);
return true;
} else {
emit ExecutionFailed(
_id,
executions[_id].to,
executions[_id].value,
executions[_id].data
);
return false;
}
} else {
executions[_id].approved = false;
}
return true;
}
function execute(address _to, uint256 _value, bytes memory _data)
public
payable
returns (uint256 executionId)
{
require(!executions[executionNonce].executed, "Already executed");
executions[executionNonce].to = _to;
executions[executionNonce].value = _value;
executions[executionNonce].data = _data;
emit ExecutionRequested(executionNonce, _to, _value, _data);
if (keyHasPurpose(keccak256(abi.encode(msg.sender)), 2)) {
approve(executionNonce, true);
}
executionNonce++;
return executionNonce-1;
}
function removeKey(bytes32 _key, uint256 _purpose)
public
returns (bool success)
{
require(keys[_key].key == _key, "NonExisting: Key isn't registered");
if (msg.sender != address(this)) {
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have management key"); // Sender has MANAGEMENT_KEY
}
require(keys[_key].purposes.length > 0, "NonExisting: Key doesn't have such purpose");
uint purposeIndex = 0;
while (keys[_key].purposes[purposeIndex] != _purpose) {
purposeIndex++;
if (purposeIndex >= keys[_key].purposes.length) {
break;
}
}
require(purposeIndex < keys[_key].purposes.length, "NonExisting: Key doesn't have such purpose");
keys[_key].purposes[purposeIndex] = keys[_key].purposes[keys[_key].purposes.length - 1];
keys[_key].purposes.pop();
uint keyIndex = 0;
while (keysByPurpose[_purpose][keyIndex] != _key) {
keyIndex++;
}
keysByPurpose[_purpose][keyIndex] = keysByPurpose[_purpose][keysByPurpose[_purpose].length - 1];
keysByPurpose[_purpose].pop();
uint keyType = keys[_key].keyType;
if (keys[_key].purposes.length == 0) {
delete keys[_key];
}
emit KeyRemoved(_key, _purpose, keyType);
return true;
}
/**
* @notice implementation of the changeKeysRequired from ERC-734 standard
*/
function changeKeysRequired(uint256 purpose, uint256 number) external
{
revert();
}
/**
* @notice implementation of the getKeysRequired from ERC-734 standard
*/
function getKeysRequired(uint256 purpose) external view returns(uint256 number)
{
revert();
}
/**
* @notice Returns true if the key has MANAGEMENT purpose or the specified purpose.
*/
function keyHasPurpose(bytes32 _key, uint256 _purpose)
public
view
returns(bool result)
{
Key memory key = keys[_key];
if (key.key == 0) return false;
for (uint keyPurposeIndex = 0; keyPurposeIndex < key.purposes.length; keyPurposeIndex++) {
uint256 purpose = key.purposes[keyPurposeIndex];
if (purpose == MANAGEMENT_KEY || purpose == _purpose) return true;
}
return false;
}
}
// File: @onchain-id/solidity/contracts/IERC735.sol
pragma solidity ^0.5.10;
/**
* @dev Interface of the ERC735 (Claim Holder) standard as defined in the EIP.
*/
interface IERC735 {
/**
* @dev Emitted when a claim request was performed.
*
* Specification: Is not clear
*/
event ClaimRequested(uint256 indexed claimRequestId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
/**
* @dev Emitted when a claim was added.
*
* Specification: MUST be triggered when a claim was successfully added.
*/
event ClaimAdded(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
/**
* @dev Emitted when a claim was removed.
*
* Specification: MUST be triggered when removeClaim was successfully called.
*/
event ClaimRemoved(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
/**
* @dev Emitted when a claim was changed.
*
* Specification: MUST be triggered when changeClaim was successfully called.
*/
event ClaimChanged(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);
/**
* @dev Definition of the structure of a Claim.
*
* Specification: Claims are information an issuer has about the identity holder.
* The structure should be as follows:
* - claim: A claim published for the Identity.
* - topic: A uint256 number which represents the topic of the claim. (e.g. 1 biometric, 2 residence (ToBeDefined: number schemes, sub topics based on number ranges??))
* - scheme : The scheme with which this claim SHOULD be verified or how it should be processed. Its a uint256 for different schemes. E.g. could 3 mean contract verification, where the data will be call data, and the issuer a contract address to call (ToBeDefined). Those can also mean different key types e.g. 1 = ECDSA, 2 = RSA, etc. (ToBeDefined)
* - issuer: The issuers identity contract address, or the address used to sign the above signature. If an identity contract, it should hold the key with which the above message was signed, if the key is not present anymore, the claim SHOULD be treated as invalid. The issuer can also be a contract address itself, at which the claim can be verified using the call data.
* - signature: Signature which is the proof that the claim issuer issued a claim of topic for this identity. it MUST be a signed message of the following structure: `keccak256(abi.encode(identityHolder_address, topic, data))`
* - data: The hash of the claim data, sitting in another location, a bit-mask, call data, or actual data based on the claim scheme.
* - uri: The location of the claim, this can be HTTP links, swarm hashes, IPFS hashes, and such.
*/
struct Claim {
uint256 topic;
uint256 scheme;
address issuer;
bytes signature;
bytes data;
string uri;
}
/**
* @dev Get a claim by its ID.
*
* Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
*/
function getClaim(bytes32 _claimId) external view returns(uint256 topic, uint256 scheme, address issuer, bytes memory signature, bytes memory data, string memory uri);
/**
* @dev Returns an array of claim IDs by topic.
*/
function getClaimIdsByTopic(uint256 _topic) external view returns(bytes32[] memory claimIds);
/**
* @dev Add or update a claim.
*
* Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged`
*
* Specification: Requests the ADDITION or the CHANGE of a claim from an issuer.
* Claims can requested to be added by anybody, including the claim holder itself (self issued).
*
* _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`.
* Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
*
* This COULD implement an approval process for pending claims, or add them right away.
* MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function.
*/
function addClaim(uint256 _topic, uint256 _scheme, address issuer, bytes calldata _signature, bytes calldata _data, string calldata _uri) external returns (bytes32 claimRequestId);
/**
* @dev Removes a claim.
*
* Triggers Event: `ClaimRemoved`
*
* Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`.
*/
function removeClaim(bytes32 _claimId) external returns (bool success);
}
// File: @onchain-id/solidity/contracts/Identity.sol
pragma solidity ^0.5.10;
/**
* @dev Implementation of the `IERC734` "KeyHolder" and the `IERC735` "ClaimHolder" interfaces into a common Identity Contract.
*/
contract Identity is ERC734, IERC735 {
mapping (bytes32 => Claim) private claims;
mapping (uint256 => bytes32[]) private claimsByTopic;
/**
* @notice Implementation of the addClaim function from the ERC-735 standard
* Require that the msg.sender has claim signer key.
*
* @param _topic The type of claim
* @param _scheme The scheme with which this claim SHOULD be verified or how it should be processed.
* @param _issuer The issuers identity contract address, or the address used to sign the above signature.
* @param _signature Signature which is the proof that the claim issuer issued a claim of topic for this identity.
* it MUST be a signed message of the following structure: keccak256(address identityHolder_address, uint256 _ topic, bytes data)
* or keccak256(abi.encode(identityHolder_address, topic, data))
* @param _data The hash of the claim data, sitting in another location, a bit-mask, call data, or actual data based on the claim scheme.
* @param _uri The location of the claim, this can be HTTP links, swarm hashes, IPFS hashes, and such.
*
* @return Returns claimRequestId: COULD be send to the approve function, to approve or reject this claim.
* triggers ClaimAdded event.
*/
function addClaim(
uint256 _topic,
uint256 _scheme,
address _issuer,
bytes memory _signature,
bytes memory _data,
string memory _uri
)
public
returns (bytes32 claimRequestId)
{
bytes32 claimId = keccak256(abi.encode(_issuer, _topic));
if (msg.sender != address(this)) {
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 3), "Permissions: Sender does not have claim signer key");
}
if (claims[claimId].issuer != _issuer) {
claimsByTopic[_topic].push(claimId);
claims[claimId].topic = _topic;
claims[claimId].scheme = _scheme;
claims[claimId].issuer = _issuer;
claims[claimId].signature = _signature;
claims[claimId].data = _data;
claims[claimId].uri = _uri;
emit ClaimAdded(
claimId,
_topic,
_scheme,
_issuer,
_signature,
_data,
_uri
);
} else {
claims[claimId].topic = _topic;
claims[claimId].scheme = _scheme;
claims[claimId].issuer = _issuer;
claims[claimId].signature = _signature;
claims[claimId].data = _data;
claims[claimId].uri = _uri;
emit ClaimChanged(
claimId,
_topic,
_scheme,
_issuer,
_signature,
_data,
_uri
);
}
return claimId;
}
/**
* @notice Implementation of the removeClaim function from the ERC-735 standard
* Require that the msg.sender has management key.
* Can only be removed by the claim issuer, or the claim holder itself.
*
* @param _claimId The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
*
* @return Returns TRUE when the claim was removed.
* triggers ClaimRemoved event
*/
function removeClaim(bytes32 _claimId) public returns (bool success) {
if (msg.sender != address(this)) {
require(keyHasPurpose(keccak256(abi.encode(msg.sender)), 1), "Permissions: Sender does not have CLAIM key");
}
if (claims[_claimId].topic == 0) {
revert("NonExisting: There is no claim with this ID");
}
uint claimIndex = 0;
while (claimsByTopic[claims[_claimId].topic][claimIndex] != _claimId) {
claimIndex++;
}
claimsByTopic[claims[_claimId].topic][claimIndex] = claimsByTopic[claims[_claimId].topic][claimsByTopic[claims[_claimId].topic].length - 1];
claimsByTopic[claims[_claimId].topic].pop();
emit ClaimRemoved(
_claimId,
claims[_claimId].topic,
claims[_claimId].scheme,
claims[_claimId].issuer,
claims[_claimId].signature,
claims[_claimId].data,
claims[_claimId].uri
);
delete claims[_claimId];
return true;
}
/**
* @notice Implementation of the getClaim function from the ERC-735 standard.
*
* @param _claimId The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
*
* @return Returns all the parameters of the claim for the specified _claimId (topic, scheme, signature, issuer, data, uri) .
*/
function getClaim(bytes32 _claimId)
public
view
returns(
uint256 topic,
uint256 scheme,
address issuer,
bytes memory signature,
bytes memory data,
string memory uri
)
{
return (
claims[_claimId].topic,
claims[_claimId].scheme,
claims[_claimId].issuer,
claims[_claimId].signature,
claims[_claimId].data,
claims[_claimId].uri
);
}
/**
* @notice Implementation of the getClaimIdsByTopic function from the ERC-735 standard.
* used to get all the claims from the specified topic
*
* @param _topic The identity of the claim i.e. keccak256(address issuer_address + uint256 topic)
*
* @return Returns an array of claim IDs by topic.
*/
function getClaimIdsByTopic(uint256 _topic)
public
view
returns(bytes32[] memory claimIds)
{
return claimsByTopic[_topic];
}
}
// File: @onchain-id/solidity/contracts/IClaimIssuer.sol
pragma solidity ^0.5.10;
//interface
contract IClaimIssuer{
uint public issuedClaimCount;
mapping (bytes => bool) revokedClaims;
mapping (bytes32 => address) identityAddresses;
event ClaimValid(Identity _identity, uint256 claimTopic);
event ClaimInvalid(Identity _identity, uint256 claimTopic);
function revokeClaim(bytes32 _claimId, address _identity) public returns(bool);
// function revokeClaim(bytes memory _sig, address _identity) public returns(bool);
// function isClaimRevoked(bytes32 _claimId) public view returns(bool);
function isClaimRevoked(bytes memory _sig) public view returns(bool result);
function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes memory sig, bytes memory data)
public
view
returns (bool claimValid);
}
// File: @onchain-id/solidity/contracts/ClaimIssuer.sol
pragma solidity ^0.5.10;
contract ClaimIssuer is IClaimIssuer, Identity {
function revokeClaim(bytes32 _claimId, address _identity) public returns(bool) {
uint256 foundClaimTopic;
uint256 scheme;
address issuer;
bytes memory sig;
bytes memory data;
( foundClaimTopic, scheme, issuer, sig, data, ) = Identity(_identity).getClaim(_claimId);
// require(sig != 0, "Claim does not exist");
revokedClaims[sig] = true;
identityAddresses[_claimId] = _identity;
return true;
}
function isClaimRevoked(bytes memory _sig) public view returns (bool) {
if(revokedClaims[_sig]) {
return true;
}
return false;
}
function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes memory sig, bytes memory data)
public
view
returns (bool claimValid)
{
bytes32 dataHash = keccak256(abi.encode(_identity, claimTopic, data));
// Use abi.encodePacked to concatenate the messahe prefix and the message to sign.
bytes32 prefixedHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", dataHash));
// Recover address of data signer
address recovered = getRecoveredAddress(sig, prefixedHash);
// Take hash of recovered address
bytes32 hashedAddr = keccak256(abi.encode(recovered));
// Does the trusted identifier have they key which signed the user's claim?
// && (isClaimRevoked(_claimId) == false)
if (keyHasPurpose(hashedAddr, 3) && (isClaimRevoked(sig) == false)) {
return true;
}
return false;
}
function getRecoveredAddress(bytes memory sig, bytes32 dataHash)
public
pure
returns (address addr)
{
bytes32 ra;
bytes32 sa;
uint8 va;
// Check the signature length
if (sig.length != 65) {
return address(0);
}
// Divide the signature in r, s and v variables
assembly {
ra := mload(add(sig, 32))
sa := mload(add(sig, 64))
va := byte(0, mload(add(sig, 96)))
}
if (va < 27) {
va += 27;
}
address recoveredAddress = ecrecover(dataHash, va, ra, sa);
return (recoveredAddress);
}
}
// File: contracts/registry/ITrustedIssuersRegistry.sol
pragma solidity ^0.5.10;
interface ITrustedIssuersRegistry {
// EVENTS
event TrustedIssuerAdded(uint indexed index, ClaimIssuer indexed trustedIssuer, uint[] claimTopics);
event TrustedIssuerRemoved(uint indexed index, ClaimIssuer indexed trustedIssuer);
event TrustedIssuerUpdated(uint indexed index, ClaimIssuer indexed oldTrustedIssuer, ClaimIssuer indexed newTrustedIssuer, uint[] claimTopics);
// READ OPERATIONS
function getTrustedIssuer(uint index) external view returns (ClaimIssuer);
function getTrustedIssuerClaimTopics(uint index) external view returns(uint[] memory);
function getTrustedIssuers() external view returns (uint[] memory);
function hasClaimTopic(address issuer, uint claimTopic) external view returns(bool);
function isTrustedIssuer(address issuer) external view returns(bool);
// WRITE OPERATIONS
function addTrustedIssuer(ClaimIssuer _trustedIssuer, uint index, uint[] calldata claimTopics) external;
function removeTrustedIssuer(uint index) external;
function updateIssuerContract(uint index, ClaimIssuer _newTrustedIssuer, uint[] calldata claimTopics) external;
}
// File: openzeppelin-solidity/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @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.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be aplied to your functions to restrict their use to
* the owner.
*/
contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
_owner = msg.sender;
emit OwnershipTransferred(address(0), _owner);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return msg.sender == _owner;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* > Note: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: contracts/registry/TrustedIssuersRegistry.sol
pragma solidity ^0.5.10;
contract TrustedIssuersRegistry is ITrustedIssuersRegistry, Ownable {
// Mapping between a trusted issuer index and its corresponding identity contract address.
mapping (uint => ClaimIssuer) trustedIssuers;
mapping (uint => mapping (uint => uint)) trustedIssuerClaimTopics;
mapping (uint => uint) trustedIssuerClaimCount;
mapping (address => bool) trustedIssuer;
// Array stores the trusted issuer indexes
uint[] indexes;
/**
* @notice Adds the identity contract of a trusted claim issuer corresponding
* to the index provided.
* Requires the index to be greater than zero.
* Requires that an identity contract doesnt already exist corresponding to the index.
* Only owner can
*
* @param _trustedIssuer The identity contract address of the trusted claim issuer.
* @param index The desired index of the claim issuer
* @param claimTopics list of authorized claim topics for each trusted claim issuer
*/
function addTrustedIssuer(ClaimIssuer _trustedIssuer, uint index, uint[] memory claimTopics) onlyOwner public {
require(index > 0);
uint claimTopicsLength = claimTopics.length;
require(claimTopicsLength > 0);
require(address(trustedIssuers[index])==address(0), "A trustedIssuer already exists by this name");
require(address(_trustedIssuer) != address(0));
uint length = indexes.length;
for (uint i = 0; i<length; i++) {
require(_trustedIssuer != trustedIssuers[indexes[i]], "Issuer address already exists in another index");
}
trustedIssuers[index] = _trustedIssuer;
indexes.push(index);
uint i;
for(i = 0; i < claimTopicsLength; i++) {
trustedIssuerClaimTopics[index][i] = claimTopics[i];
}
trustedIssuerClaimCount[index] = i;
trustedIssuer[address(trustedIssuers[index])] = true;
emit TrustedIssuerAdded(index, _trustedIssuer, claimTopics);
}
/**
* @notice Removes the identity contract of a trusted claim issuer corresponding
* to the index provided.
* Requires the index to be greater than zero.
* Requires that an identity contract exists corresponding to the index.
* Only owner can call.
*
* @param index The desired index of the claim issuer to be removed.
*/
function removeTrustedIssuer(uint index) public onlyOwner {
require(index > 0);
require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
delete trustedIssuer[address(trustedIssuers[index])];
delete trustedIssuers[index];
uint length = indexes.length;
for (uint i = 0; i<length; i++) {
if(indexes[i] == index) {
delete indexes[i];
indexes[i] = indexes[length-1];
delete indexes[length-1];
indexes.length--;
break;
}
}
uint claimTopicCount = trustedIssuerClaimCount[index];
for(uint i = 0; i < claimTopicCount; i++){
if(trustedIssuerClaimTopics[index][i] != 0){
delete trustedIssuerClaimTopics[index][i];
}
}
delete trustedIssuerClaimCount[index];
emit TrustedIssuerRemoved(index, trustedIssuers[index]);
}
/**
* @notice Function for getting all the trusted claim issuer indexes stored.
*
* @return array of indexes of all the trusted claim issuer indexes stored.
*/
function getTrustedIssuers() public view returns (uint[] memory) {
return indexes;
}
function isTrustedIssuer(address issuer) public view returns(bool) {
return trustedIssuer[issuer];
}
/**
* @notice Function for getting the trusted claim issuer's
* identity contract address corresponding to the index provided.
* Requires the provided index to have an identity contract stored.
* Only owner can call.
*
* @param index The index corresponding to which identity contract address is required.
*
* @return Address of the identity contract address of the trusted claim issuer.
*/
function getTrustedIssuer(uint index) public view returns (ClaimIssuer) {
require(index > 0);
require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
return trustedIssuers[index];
}
/**
* @notice Function for getting all the claim topic of trusted claim issuer
* Requires the provided index to have an identity contract stored and claim topic.
* Only owner can call.
*
* @param index The index corresponding to which identity contract address is required.
*
* @return The claim topics corresponding to the trusted issuers.
*/
function getTrustedIssuerClaimTopics(uint index) public view returns(uint[] memory) {
require(index > 0);
require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
uint length = trustedIssuerClaimCount[index];
uint[] memory claimTopics = new uint[](length);
for(uint i = 0; i < length; i++) {
claimTopics[i] = trustedIssuerClaimTopics[index][i];
}
return claimTopics;
}
/**
* @notice Function for checking the trusted claim issuer's
* has corresponding claim topic
*
* @return true if the issuer is trusted for this claim topic.
*/
function hasClaimTopic(address issuer, uint claimTopic) public view returns(bool) {
require(claimTopic > 0);
for( uint i=0;i < indexes.length; i++) {
if(address(trustedIssuers[indexes[i]])==issuer) {
uint claimTopicCount = trustedIssuerClaimCount[indexes[i]];
for(uint j = 0; j < claimTopicCount; j++){
if(trustedIssuerClaimTopics[indexes[i]][j] == claimTopic){
return true;
}
}
}
}
return false;
}
/**
* @notice Updates the identity contract of a trusted claim issuer corresponding
* to the index provided.
* Requires the index to be greater than zero.
* Requires that an identity contract already exists corresponding to the provided index.
* Only owner can call.
*
* @param index The desired index of the claim issuer to be updated.
* @param _newTrustedIssuer The new identity contract address of the trusted claim issuer.
* @param claimTopics list of authorized claim topics for each trusted claim issuer
*/
function updateIssuerContract(uint index, ClaimIssuer _newTrustedIssuer, uint[] memory claimTopics) public onlyOwner {
require(index > 0);
require(address(trustedIssuers[index])!=address(0), "No such issuer exists");
uint length = indexes.length;
uint claimTopicsLength = claimTopics.length;
require(claimTopicsLength > 0);
for (uint i = 0; i<length; i++) {
require(trustedIssuers[indexes[i]]!=_newTrustedIssuer,"Address already exists");
}
uint i;
for(i = 0; i < claimTopicsLength; i++) {
trustedIssuerClaimTopics[index][i] = claimTopics[i];
}
trustedIssuerClaimCount[index] = i;
trustedIssuers[index] = _newTrustedIssuer;
emit TrustedIssuerUpdated(index, trustedIssuers[index], _newTrustedIssuer, claimTopics);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":true,"inputs":[{"name":"issuer","type":"address"},{"name":"claimTopic","type":"uint256"}],"name":"hasClaimTopic","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"index","type":"uint256"}],"name":"removeTrustedIssuer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"getTrustedIssuer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"index","type":"uint256"},{"name":"_newTrustedIssuer","type":"address"},{"name":"claimTopics","type":"uint256[]"}],"name":"updateIssuerContract","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_trustedIssuer","type":"address"},{"name":"index","type":"uint256"},{"name":"claimTopics","type":"uint256[]"}],"name":"addTrustedIssuer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getTrustedIssuers","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"index","type":"uint256"}],"name":"getTrustedIssuerClaimTopics","outputs":[{"name":"","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"issuer","type":"address"}],"name":"isTrustedIssuer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"index","type":"uint256"},{"indexed":true,"name":"trustedIssuer","type":"address"},{"indexed":false,"name":"claimTopics","type":"uint256[]"}],"name":"TrustedIssuerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"index","type":"uint256"},{"indexed":true,"name":"trustedIssuer","type":"address"}],"name":"TrustedIssuerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"index","type":"uint256"},{"indexed":true,"name":"oldTrustedIssuer","type":"address"},{"indexed":true,"name":"newTrustedIssuer","type":"address"},{"indexed":false,"name":"claimTopics","type":"uint256[]"}],"name":"TrustedIssuerUpdated","type":"event"}]Contract Creation Code
0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3611b6a806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b9f5188a11610071578063b9f5188a14610231578063c8dbd13014610313578063d9dd24c5146103f5578063e934e9b514610454578063ef2ed1a4146104d7578063f2fde38b14610533576100b4565b806334a89987146100b95780636ca51bfc1461011f578063715018a61461014d5780638da5cb5b146101575780638f32d59b146101a157806391b1fdeb146101c3575b600080fd5b610105600480360360408110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610577565b604051808215151515815260200191505060405180910390f35b61014b6004803603602081101561013557600080fd5b81019080803590602001909291905050506106cb565b005b610155610acb565b005b61015f610c04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101a9610c2d565b604051808215151515815260200191505060405180910390f35b6101ef600480360360208110156101d957600080fd5b8101908080359060200190929190505050610c84565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103116004803603606081101561024757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561028e57600080fd5b8201836020820111156102a057600080fd5b803590602001918460208302840111640100000000831117156102c257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050610da3565b005b6103f36004803603606081101561032957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561037057600080fd5b82018360208201111561038257600080fd5b803590602001918460208302840111640100000000831117156103a457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506111c8565b005b6103fd611659565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610440578082015181840152602081019050610425565b505050509050019250505060405180910390f35b6104806004803603602081101561046a57600080fd5b81019080803590602001909291905050506116b1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156104c35780820151818401526020810190506104a8565b505050509050019250505060405180910390f35b610519600480360360208110156104ed57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611845565b604051808215151515815260200191505060405180910390f35b6105756004803603602081101561054957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061189b565b005b600080821161058557600080fd5b60008090505b6005805490508110156106bf578373ffffffffffffffffffffffffffffffffffffffff1660016000600584815481106105c057fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156106b2576000600360006005848154811061062957fe5b9060005260206000200154815260200190815260200160002054905060008090505b818110156106af5784600260006005868154811061066557fe5b9060005260206000200154815260200190815260200160002060008381526020019081526020016000205414156106a257600193505050506106c5565b808060010191505061064b565b50505b808060010191505061058b565b50600090505b92915050565b6106d3610c2d565b610745576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000811161075257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610828576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b600460006001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690556001600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600580549050905060008090505b818110156109ae57826005828154811061090657fe5b906000526020600020015414156109a1576005818154811061092457fe5b90600052602060002001600090556005600183038154811061094257fe5b90600052602060002001546005828154811061095a57fe5b90600052602060002001819055506005600183038154811061097857fe5b9060005260206000200160009055600580548091906001900361099b9190611a65565b506109ae565b80806001019150506108f0565b5060006003600084815260200190815260200160002054905060008090505b81811015610a375760006002600086815260200190815260200160002060008381526020019081526020016000205414610a2a57600260008581526020019081526020016000206000828152602001908152602001600020600090555b80806001019150506109cd565b5060036000848152602001908152602001600020600090556001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16837f1d5379ff490f665019e8adb8c9ebd4763b4f4c2fd3738741b07af264c1eedc3e60405160405180910390a3505050565b610ad3610c2d565b610b45576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6000808211610c9257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d68576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610dab610c2d565b610e1d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008311610e2a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6000600580549050905060008251905060008111610f1d57600080fd5b60008090505b82811015611024578473ffffffffffffffffffffffffffffffffffffffff166001600060058481548110610f5357fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611017576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4164647265737320616c7265616479206578697374730000000000000000000081525060200191505060405180910390fd5b8080600101915050610f23565b5060008090505b8181101561107c5783818151811061103f57fe5b602002602001015160026000888152602001908152602001600020600083815260200190815260200160002081905550808060010191505061102b565b806003600088815260200190815260200160002081905550846001600088815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff166001600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16877f7a242612799079fd3e928b3b7f86ed0ef450a2dad1ed162e346d61ab9b717b68876040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156111ad578082015181840152602081019050611192565b505050509050019250505060405180910390a4505050505050565b6111d0610c2d565b611242576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000821161124f57600080fd5b6000815190506000811161126257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461131a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ab7602b913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561135457600080fd5b6000600580549050905060008090505b8181101561144857600160006005838154811061137d57fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561143b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611b08602e913960400191505060405180910390fd5b8080600101915050611364565b50846001600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600584908060018154018082558091505090600182039060005260206000200160009091929091909150555060008090505b8281101561151e578381815181106114e157fe5b60200260200101516002600087815260200190815260200160002060008381526020019081526020016000208190555080806001019150506114cd565b8060036000878152602001908152602001600020819055506001600460006001600089815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508573ffffffffffffffffffffffffffffffffffffffff16857fc8b213b9816888ee2a56b829986abaa6c12dd6b936f2711367b83e38d9af21d0866040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561163e578082015181840152602081019050611623565b505050509050019250505060405180910390a3505050505050565b606060058054806020026020016040519081016040528092919081815260200182805480156116a757602002820191906000526020600020905b815481526020019060010190808311611693575b5050505050905090565b6060600082116116c057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611796576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6000600360008481526020019081526020016000205490506060816040519080825280602002602001820160405280156117df5781602001602082028038833980820191505090505b50905060008090505b8281101561183a576002600086815260200190815260200160002060008281526020019081526020016000205482828151811061182157fe5b60200260200101818152505080806001019150506117e8565b508092505050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6118a3610c2d565b611915576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61191e81611921565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611ae26026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b815481835581811115611a8c57818360005260206000209182019101611a8b9190611a91565b5b505050565b611ab391905b80821115611aaf576000816000905550600101611a97565b5090565b9056fe41207472757374656449737375657220616c7265616479206578697374732062792074686973206e616d654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373497373756572206164647265737320616c72656164792065786973747320696e20616e6f7468657220696e646578a265627a7a723058201dec5b65cec02f8d8291da715150024bc8d92c0cdc542ecfb0347318a48c8e3564736f6c634300050a0032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b9f5188a11610071578063b9f5188a14610231578063c8dbd13014610313578063d9dd24c5146103f5578063e934e9b514610454578063ef2ed1a4146104d7578063f2fde38b14610533576100b4565b806334a89987146100b95780636ca51bfc1461011f578063715018a61461014d5780638da5cb5b146101575780638f32d59b146101a157806391b1fdeb146101c3575b600080fd5b610105600480360360408110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610577565b604051808215151515815260200191505060405180910390f35b61014b6004803603602081101561013557600080fd5b81019080803590602001909291905050506106cb565b005b610155610acb565b005b61015f610c04565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101a9610c2d565b604051808215151515815260200191505060405180910390f35b6101ef600480360360208110156101d957600080fd5b8101908080359060200190929190505050610c84565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103116004803603606081101561024757600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561028e57600080fd5b8201836020820111156102a057600080fd5b803590602001918460208302840111640100000000831117156102c257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050610da3565b005b6103f36004803603606081101561032957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561037057600080fd5b82018360208201111561038257600080fd5b803590602001918460208302840111640100000000831117156103a457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506111c8565b005b6103fd611659565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610440578082015181840152602081019050610425565b505050509050019250505060405180910390f35b6104806004803603602081101561046a57600080fd5b81019080803590602001909291905050506116b1565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156104c35780820151818401526020810190506104a8565b505050509050019250505060405180910390f35b610519600480360360208110156104ed57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611845565b604051808215151515815260200191505060405180910390f35b6105756004803603602081101561054957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061189b565b005b600080821161058557600080fd5b60008090505b6005805490508110156106bf578373ffffffffffffffffffffffffffffffffffffffff1660016000600584815481106105c057fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156106b2576000600360006005848154811061062957fe5b9060005260206000200154815260200190815260200160002054905060008090505b818110156106af5784600260006005868154811061066557fe5b9060005260206000200154815260200190815260200160002060008381526020019081526020016000205414156106a257600193505050506106c5565b808060010191505061064b565b50505b808060010191505061058b565b50600090505b92915050565b6106d3610c2d565b610745576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000811161075257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610828576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b600460006001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690556001600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600580549050905060008090505b818110156109ae57826005828154811061090657fe5b906000526020600020015414156109a1576005818154811061092457fe5b90600052602060002001600090556005600183038154811061094257fe5b90600052602060002001546005828154811061095a57fe5b90600052602060002001819055506005600183038154811061097857fe5b9060005260206000200160009055600580548091906001900361099b9190611a65565b506109ae565b80806001019150506108f0565b5060006003600084815260200190815260200160002054905060008090505b81811015610a375760006002600086815260200190815260200160002060008381526020019081526020016000205414610a2a57600260008581526020019081526020016000206000828152602001908152602001600020600090555b80806001019150506109cd565b5060036000848152602001908152602001600020600090556001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16837f1d5379ff490f665019e8adb8c9ebd4763b4f4c2fd3738741b07af264c1eedc3e60405160405180910390a3505050565b610ad3610c2d565b610b45576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6000808211610c9257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d68576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6001600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610dab610c2d565b610e1d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60008311610e2a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610f00576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6000600580549050905060008251905060008111610f1d57600080fd5b60008090505b82811015611024578473ffffffffffffffffffffffffffffffffffffffff166001600060058481548110610f5357fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611017576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f4164647265737320616c7265616479206578697374730000000000000000000081525060200191505060405180910390fd5b8080600101915050610f23565b5060008090505b8181101561107c5783818151811061103f57fe5b602002602001015160026000888152602001908152602001600020600083815260200190815260200160002081905550808060010191505061102b565b806003600088815260200190815260200160002081905550846001600088815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff166001600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16877f7a242612799079fd3e928b3b7f86ed0ef450a2dad1ed162e346d61ab9b717b68876040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156111ad578082015181840152602081019050611192565b505050509050019250505060405180910390a4505050505050565b6111d0610c2d565b611242576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000821161124f57600080fd5b6000815190506000811161126257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600085815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461131a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ab7602b913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561135457600080fd5b6000600580549050905060008090505b8181101561144857600160006005838154811061137d57fe5b9060005260206000200154815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16141561143b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180611b08602e913960400191505060405180910390fd5b8080600101915050611364565b50846001600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600584908060018154018082558091505090600182039060005260206000200160009091929091909150555060008090505b8281101561151e578381815181106114e157fe5b60200260200101516002600087815260200190815260200160002060008381526020019081526020016000208190555080806001019150506114cd565b8060036000878152602001908152602001600020819055506001600460006001600089815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508573ffffffffffffffffffffffffffffffffffffffff16857fc8b213b9816888ee2a56b829986abaa6c12dd6b936f2711367b83e38d9af21d0866040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561163e578082015181840152602081019050611623565b505050509050019250505060405180910390a3505050505050565b606060058054806020026020016040519081016040528092919081815260200182805480156116a757602002820191906000526020600020905b815481526020019060010190808311611693575b5050505050905090565b6060600082116116c057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166001600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611796576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f4e6f20737563682069737375657220657869737473000000000000000000000081525060200191505060405180910390fd5b6000600360008481526020019081526020016000205490506060816040519080825280602002602001820160405280156117df5781602001602082028038833980820191505090505b50905060008090505b8281101561183a576002600086815260200190815260200160002060008281526020019081526020016000205482828151811061182157fe5b60200260200101818152505080806001019150506117e8565b508092505050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6118a3610c2d565b611915576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61191e81611921565b50565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156119a7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611ae26026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b815481835581811115611a8c57818360005260206000209182019101611a8b9190611a91565b5b505050565b611ab391905b80821115611aaf576000816000905550600101611a97565b5090565b9056fe41207472757374656449737375657220616c7265616479206578697374732062792074686973206e616d654f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373497373756572206164647265737320616c72656164792065786973747320696e20616e6f7468657220696e646578a265627a7a723058201dec5b65cec02f8d8291da715150024bc8d92c0cdc542ecfb0347318a48c8e3564736f6c634300050a0032
Deployed Bytecode Sourcemap
33275:7587:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33275:7587:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38833:587;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38833:587:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;35673:996;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;35673:996:0;;;;;;;;;;;;;;;;;:::i;:::-;;32437:140;;;:::i;:::-;;31626:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;31992:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;37527:237;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;37527:237:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;39995:864;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;39995:864:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;39995:864:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;39995:864:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;39995:864:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;39995:864:0;;;;;;;;;;;;;;;:::i;:::-;;34272:1022;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;34272:1022:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;34272:1022:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;34272:1022:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;34272:1022:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;34272:1022:0;;;;;;;;;;;;;;;:::i;:::-;;36861:98;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;36861:98:0;;;;;;;;;;;;;;;;;38161:472;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;38161:472:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;38161:472:0;;;;;;;;;;;;;;;;;36967:114;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;36967:114:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;32732:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;32732:109:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;38833:587;38909:4;38947:1;38934:10;:14;38926:23;;;;;;38967:6;38974:1;38967:8;;38962:426;38980:7;:14;;;;38976:1;:18;38962:426;;;39056:6;39019:43;;39027:14;:26;39042:7;39050:1;39042:10;;;;;;;;;;;;;;;;39027:26;;;;;;;;;;;;;;;;;;;;;39019:43;;;39016:361;;;39083:20;39106:23;:35;39130:7;39138:1;39130:10;;;;;;;;;;;;;;;;39106:35;;;;;;;;;;;;39083:58;;39164:6;39173:1;39164:10;;39160:202;39180:15;39176:1;:19;39160:202;;;39270:10;39227:24;:36;39252:7;39260:1;39252:10;;;;;;;;;;;;;;;;39227:36;;;;;;;;;;;:39;39264:1;39227:39;;;;;;;;;;;;:53;39224:119;;;39315:4;39308:11;;;;;;;39224:119;39197:3;;;;;;;39160:202;;;;39016:361;;38996:3;;;;;;;38962:426;;;;39407:5;39400:12;;38833:587;;;;;:::o;35673:996::-;31838:9;:7;:9::i;:::-;31830:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35758:1;35750:5;:9;35742:18;;;;;;35819:1;35779:42;;35787:14;:21;35802:5;35787:21;;;;;;;;;;;;;;;;;;;;;35779:42;;;;35771:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35865:13;:45;35887:14;:21;35902:5;35887:21;;;;;;;;;;;;;;;;;;;;;35865:45;;;;;;;;;;;;;;;;35858:52;;;;;;;;;;;35928:14;:21;35943:5;35928:21;;;;;;;;;;;;35921:28;;;;;;;;;;;35962:11;35976:7;:14;;;;35962:28;;36006:6;36015:1;36006:10;;36001:285;36020:6;36018:1;:8;36001:285;;;36065:5;36051:7;36059:1;36051:10;;;;;;;;;;;;;;;;:19;36048:227;;;36098:7;36106:1;36098:10;;;;;;;;;;;;;;;36091:17;;;36140:7;36155:1;36148:6;:8;36140:17;;;;;;;;;;;;;;;;36127:7;36135:1;36127:10;;;;;;;;;;;;;;;:30;;;;36183:7;36198:1;36191:6;:8;36183:17;;;;;;;;;;;;;;;36176:24;;;36219:7;:16;;;;;;;;;;;;:::i;:::-;;36254:5;;36048:227;36028:3;;;;;;;36001:285;;;;36296:20;36319:23;:30;36343:5;36319:30;;;;;;;;;;;;36296:53;;36364:6;36373:1;36364:10;;36360:186;36380:15;36376:1;:19;36360:186;;;36457:1;36419:24;:31;36444:5;36419:31;;;;;;;;;;;:34;36451:1;36419:34;;;;;;;;;;;;:39;36416:119;;36485:24;:31;36510:5;36485:31;;;;;;;;;;;:34;36517:1;36485:34;;;;;;;;;;;36478:41;;;36416:119;36397:3;;;;;;;36360:186;;;;36563:23;:30;36587:5;36563:30;;;;;;;;;;;36556:37;;;36639:14;:21;36654:5;36639:21;;;;;;;;;;;;;;;;;;;;;36611:50;;36632:5;36611:50;;;;;;;;;;31895:1;;35673:996;:::o;32437:140::-;31838:9;:7;:9::i;:::-;31830:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32536:1;32499:40;;32520:6;;;;;;;;;;;32499:40;;;;;;;;;;;;32567:1;32550:6;;:19;;;;;;;;;;;;;;;;;;32437:140::o;31626:79::-;31664:7;31691:6;;;;;;;;;;;31684:13;;31626:79;:::o;31992:92::-;32032:4;32070:6;;;;;;;;;;;32056:20;;:10;:20;;;32049:27;;31992:92;:::o;37527:237::-;37586:11;37626:1;37618:5;:9;37610:18;;;;;;37687:1;37647:42;;37655:14;:21;37670:5;37655:21;;;;;;;;;;;;;;;;;;;;;37647:42;;;;37639:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37735:14;:21;37750:5;37735:21;;;;;;;;;;;;;;;;;;;;;37728:28;;37527:237;;;:::o;39995:864::-;31838:9;:7;:9::i;:::-;31830:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40139:1;40131:5;:9;40123:18;;;;;;40200:1;40160:42;;40168:14;:21;40183:5;40168:21;;;;;;;;;;;;;;;;;;;;;40160:42;;;;40152:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40239:11;40253:7;:14;;;;40239:28;;40278:22;40303:11;:18;40278:43;;40360:1;40340:17;:21;40332:30;;;;;;40378:6;40387:1;40378:10;;40373:138;40392:6;40390:1;:8;40373:138;;;40456:17;40428:45;;:14;:26;40443:7;40451:1;40443:10;;;;;;;;;;;;;;;;40428:26;;;;;;;;;;;;;;;;;;;;;:45;;;;40420:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40400:3;;;;;;;40373:138;;;;40521:6;40546:1;40542:5;;40538:117;40553:17;40549:1;:21;40538:117;;;40629:11;40641:1;40629:14;;;;;;;;;;;;;;40592:24;:31;40617:5;40592:31;;;;;;;;;;;:34;40624:1;40592:34;;;;;;;;;;;:51;;;;40572:3;;;;;;;40538:117;;;40698:1;40665:23;:30;40689:5;40665:30;;;;;;;;;;;:34;;;;40734:17;40710:14;:21;40725:5;40710:21;;;;;;;;;;;;:41;;;;;;;;;;;;;;;;;;40820:17;40769:82;;40797:14;:21;40812:5;40797:21;;;;;;;;;;;;;;;;;;;;;40769:82;;40790:5;40769:82;40839:11;40769:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;40769:82:0;;;;;;;;;;;;;;;;;31895:1;;;39995:864;;;:::o;34272:1022::-;31838:9;:7;:9::i;:::-;31830:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34409:1;34401:5;:9;34393:18;;;;;;34422:22;34447:11;:18;34422:43;;34504:1;34484:17;:21;34476:30;;;;;;34565:1;34525:42;;34533:14;:21;34548:5;34533:21;;;;;;;;;;;;;;;;;;;;;34525:42;;;34517:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34669:1;34634:37;;34642:14;34634:37;;;;34626:46;;;;;;34683:11;34697:7;:14;;;;34683:28;;34727:6;34736:1;34727:10;;34722:162;34741:6;34739:1;:8;34722:162;;;34795:14;:26;34810:7;34818:1;34810:10;;;;;;;;;;;;;;;;34795:26;;;;;;;;;;;;;;;;;;;;;34777:44;;:14;:44;;;;34769:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34749:3;;;;;;;34722:162;;;;34918:14;34894;:21;34909:5;34894:21;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;34943:7;34956:5;34943:19;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;34943:19:0;;;;;;;;;;;;;;;;;;;;;;34973:6;34998:1;34994:5;;34990:117;35005:17;35001:1;:21;34990:117;;;35081:11;35093:1;35081:14;;;;;;;;;;;;;;35044:24;:31;35069:5;35044:31;;;;;;;;;;;:34;35076:1;35044:34;;;;;;;;;;;:51;;;;35024:3;;;;;;;34990:117;;;35150:1;35117:23;:30;35141:5;35117:30;;;;;;;;;;;:34;;;;35210:4;35162:13;:45;35184:14;:21;35199:5;35184:21;;;;;;;;;;;;;;;;;;;;;35162:45;;;;;;;;;;;;;;;;:52;;;;;;;;;;;;;;;;;;35258:14;35232:54;;35251:5;35232:54;35274:11;35232:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;35232:54:0;;;;;;;;;;;;;;;;;31895:1;;;34272:1022;;;:::o;36861:98::-;36911:13;36944:7;36937:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36861:98;:::o;38161:472::-;38230:13;38272:1;38264:5;:9;38256:18;;;;;;38333:1;38293:42;;38301:14;:21;38316:5;38301:21;;;;;;;;;;;;;;;;;;;;;38293:42;;;;38285:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38372:11;38386:23;:30;38410:5;38386:30;;;;;;;;;;;;38372:44;;38427:25;38466:6;38455:18;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;148:4;140:6;136:17;126:27;;0:157;38455:18:0;;;;38427:46;;38488:6;38497:1;38488:10;;38484:111;38504:6;38500:1;:10;38484:111;;;38549:24;:31;38574:5;38549:31;;;;;;;;;;;:34;38581:1;38549:34;;;;;;;;;;;;38532:11;38544:1;38532:14;;;;;;;;;;;;;:51;;;;;38512:3;;;;;;;38484:111;;;;38614:11;38607:18;;;;38161:472;;;:::o;36967:114::-;37028:4;37052:13;:21;37066:6;37052:21;;;;;;;;;;;;;;;;;;;;;;;;;37045:28;;36967:114;;;:::o;32732:109::-;31838:9;:7;:9::i;:::-;31830:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32805:28;32824:8;32805:18;:28::i;:::-;32732:109;:::o;32947:229::-;33041:1;33021:22;;:8;:22;;;;33013:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33131:8;33102:38;;33123:6;;;;;;;;;;;33102:38;;;;;;;;;;;;33160:8;33151:6;;:17;;;;;;;;;;;;;;;;;;32947:229;:::o;33275:7587::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
bzzr://1dec5b65cec02f8d8291da715150024bc8d92c0cdc542ecfb0347318a48c8e35
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.