This nametag was submitted by Kleros Scout.
Overview
ETH Balance
ETH Value
$0.00Latest 25 from a total of 563,162 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 26478118 | 31 secs ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26478099 | 1 min ago | IN | 0 ETH | 0.00000221 | ||||
| Withdraw | 26478096 | 1 min ago | IN | 0 ETH | 0.0000023 | ||||
| Multi Send | 26478060 | 3 mins ago | IN | 0 ETH | 0.0000039 | ||||
| Withdraw | 26477983 | 7 mins ago | IN | 0 ETH | 0.00000204 | ||||
| Withdraw | 26477982 | 7 mins ago | IN | 0 ETH | 0.00000204 | ||||
| Withdraw | 26477977 | 7 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477974 | 8 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477971 | 8 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477920 | 10 mins ago | IN | 0 ETH | 0.00000204 | ||||
| Withdraw | 26477914 | 11 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Multi Send | 26477911 | 11 mins ago | IN | 0 ETH | 0.0000039 | ||||
| Withdraw | 26477847 | 14 mins ago | IN | 0 ETH | 0.00000433 | ||||
| Withdraw | 26477837 | 14 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477813 | 15 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477798 | 16 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477764 | 17 mins ago | IN | 0 ETH | 0.00000229 | ||||
| Withdraw | 26477755 | 17 mins ago | IN | 0 ETH | 0.00000433 | ||||
| Withdraw | 26477740 | 18 mins ago | IN | 0 ETH | 0.00000433 | ||||
| Withdraw | 26477737 | 18 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477726 | 19 mins ago | IN | 0 ETH | 0.00000221 | ||||
| Withdraw | 26477717 | 19 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477711 | 19 mins ago | IN | 0 ETH | 0.0000023 | ||||
| Withdraw | 26477695 | 20 mins ago | IN | 0 ETH | 0.00000242 | ||||
| Withdraw | 26477663 | 21 mins ago | IN | 0 ETH | 0.0000023 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 26478118 | 31 secs ago | 0 ETH | ||||
| 26478099 | 1 min ago | 0 ETH | ||||
| 26478096 | 1 min ago | 0 ETH | ||||
| 26478060 | 3 mins ago | 0 ETH | ||||
| 26478060 | 3 mins ago | 0 ETH | ||||
| 26477983 | 7 mins ago | 0 ETH | ||||
| 26477982 | 7 mins ago | 0 ETH | ||||
| 26477977 | 7 mins ago | 0 ETH | ||||
| 26477974 | 8 mins ago | 0 ETH | ||||
| 26477971 | 8 mins ago | 0 ETH | ||||
| 26477920 | 10 mins ago | 0 ETH | ||||
| 26477914 | 11 mins ago | 0 ETH | ||||
| 26477911 | 11 mins ago | 0 ETH | ||||
| 26477911 | 11 mins ago | 0 ETH | ||||
| 26477847 | 14 mins ago | 0 ETH | ||||
| 26477837 | 14 mins ago | 0 ETH | ||||
| 26477813 | 15 mins ago | 0 ETH | ||||
| 26477798 | 16 mins ago | 0 ETH | ||||
| 26477764 | 17 mins ago | 0 ETH | ||||
| 26477755 | 17 mins ago | 0 ETH | ||||
| 26477740 | 18 mins ago | 0 ETH | ||||
| 26477737 | 18 mins ago | 0 ETH | ||||
| 26477726 | 19 mins ago | 0 ETH | ||||
| 26477717 | 19 mins ago | 0 ETH | ||||
| 26477711 | 19 mins ago | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FoxConnect
Compiler Version
v0.8.23+commit.f704f362
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
contract FoxConnect is Ownable2Step, EIP712 {
address[] treasuries;
mapping(address => bool) treasuriesMap;
address[] multiSendOperators;
mapping(address => bool) multiSendOperatorMap;
address[] withdrawOperators;
mapping(address => bool) withdrawOperatorMap;
mapping(bytes32 => bool) idHashMap;
address signerAddress;
address beneficiary;
event WithdrawOperatorAdded(address indexed operator);
event WithdrawOperatorRemoved(address indexed operator);
event MultiSendOperatorAdded(address indexed operator);
event MultiSendOperatorRemoved(address indexed operator);
event BeneficiaryUpdated(address indexed previousBeneficiary, address indexed newBeneficiary);
event SignerUpdated(address indexed previousSigner, address indexed newSigner);
event TreasuryAdded(address);
event TreasuryRemoved(address);
event WithdrawalStatus(uint256 result, uint16 batchSize);
event MultiSendStatus(uint256 result, uint16 batchSize);
uint16 constant MAX_ENTRIES = 256;
constructor(
address[] memory _treasuries,
address _signerAddress,
address[] memory _withdrawOperators,
address[] memory _multiSendOperators,
address _beneficiary
) Ownable(_msgSender()) EIP712("FoxConnect", "1") {
require(
_withdrawOperators.length <= MAX_ENTRIES,
"Cannot add more than 256 withdraw operators"
);
require(
_multiSendOperators.length <= MAX_ENTRIES,
"Cannot add more than 256 multi-send operators"
);
require(
_treasuries.length <= MAX_ENTRIES,
"Cannot add more than 256 treasuries"
);
require(
_withdrawOperators.length > 0,
"At least one withdraw operator must be provided"
);
require(
_multiSendOperators.length > 0,
"At least one multi-send operator must be provided"
);
require(
_treasuries.length > 0,
"At least one treasury address must be provided"
);
require(
_signerAddress != address(0),
"Zero address not allowed for signer address"
);
require(
_beneficiary != address(0),
"Zero address not allowed for beneficiary address"
);
signerAddress = _signerAddress;
beneficiary = _beneficiary;
for (uint8 i = 0; i < _treasuries.length; i++) {
require(
_treasuries[i] != address(0),
"Zero address not allowed for treasury address"
);
treasuriesMap[_treasuries[i]] = true;
treasuries.push(_treasuries[i]);
}
for (uint8 i = 0; i < _multiSendOperators.length; i++) {
require(
_multiSendOperators[i] != address(0),
"Zero address not allowed for multi-send operator address"
);
multiSendOperatorMap[_multiSendOperators[i]] = true;
multiSendOperators.push(_multiSendOperators[i]);
}
for (uint8 i = 0; i < _withdrawOperators.length; i++) {
require(
_withdrawOperators[i] != address(0),
"Zero address not allowed for withdraw operator address"
);
withdrawOperatorMap[_withdrawOperators[i]] = true;
withdrawOperators.push(_withdrawOperators[i]);
}
}
function _addAddress(
address[] storage addresses,
address newAddress,
mapping(address => bool) storage map
) private {
require(!map[newAddress], "This address already exists");
require(newAddress != address(0), "Zero address not allowed");
require(addresses.length < MAX_ENTRIES, "Cannot add more than 256 addresses");
addresses.push(newAddress);
map[newAddress] = true;
}
function _removeAddress(
address[] storage addresses,
address addressToRemove,
mapping(address => bool) storage map
) private {
require(addressToRemove != address(0), "Zero address not allowed");
require(map[addressToRemove], "This address does not exist");
uint8 index = 0;
for (uint8 i = 0; i < addresses.length; i++) {
if (addresses[i] == addressToRemove) {
index = i;
break;
}
}
addresses[index] = addresses[addresses.length - 1];
addresses.pop();
map[addressToRemove] = false;
}
function multiSend(
bytes32 _requestIdHash,
address[] calldata _tokens,
address[] calldata _beneficiaries,
uint256[] calldata _amounts,
uint256 _deadline,
uint8 _v,
bytes32 _r,
bytes32 _s
) public {
// An uninitialized array is more gas-efficient than using 'new address[](0)'.
// This way, we avoid the overhead of initializing the array with n elements with the default value.
address[] memory defaultTreasuries;
multiSend(
_requestIdHash,
_tokens,
_beneficiaries,
defaultTreasuries,
_amounts,
_deadline,
_v,
_r,
_s
);
}
function multiSend(
bytes32 _requestIdHash,
address[] calldata _tokens,
address[] calldata _beneficiaries,
address[] memory _treasuries,
uint256[] calldata _amounts,
uint256 _deadline,
uint8 _v,
bytes32 _r,
bytes32 _s
) public {
require(
block.timestamp <= _deadline,
"This request missed the deadline"
);
require(
!idHashMap[_requestIdHash],
"This request has already been executed"
);
require(
multiSendOperatorMap[msg.sender],
"Only an operator can execute this function"
);
require(
_beneficiaries.length == _amounts.length,
"The number of beneficiaries must match the number of amounts"
);
require(
_beneficiaries.length == _tokens.length,
"The number of beneficiaries must match the number of tokens"
);
bool isDefaultTreasury = _treasuries.length == 0;
// gas saving - avoid unnecessary checking when it is defaultTreasury
require(
isDefaultTreasury || _treasuries.length == _beneficiaries.length,
"The number of beneficiaries must match the number of treasuries"
);
require(
_beneficiaries.length > 0,
"The number of beneficiaries must be greater than 0"
);
require(_beneficiaries.length <= MAX_ENTRIES, "The maximum batch size is 256");
idHashMap[_requestIdHash] = true;
bytes32 TYPEHASH = keccak256("MultiSend(bytes32 idHash,address[] tokens,address[] beneficiaries,uint256[] amounts,uint256 deadline)");
bytes32 structHash = keccak256(abi.encode(
TYPEHASH,
_requestIdHash,
keccak256(abi.encodePacked(_tokens)),
keccak256(abi.encodePacked(_beneficiaries)),
keccak256(abi.encodePacked(_amounts)),
_deadline
));
bytes32 hash = _hashTypedDataV4(structHash);
address signer = ECDSA.recover(hash, _v, _r, _s);
require(signer == signerAddress, "Invalid multi send request data signature");
uint256 status;
for (uint256 i = 0; i < _beneficiaries.length; i++) {
// Checking for isDefaultTreasury || treasuriesMap[_treasuries[i]] is more gas-efficient than only checking for treasuriesMap[_treasuries[i]]
require(
isDefaultTreasury || treasuriesMap[_treasuries[i]],
"Treasury does not exist"
);
// Within a batch, it’s possible for one transfer to fail while others succeeds.
// We are using a low-level call because we need to get the return value of the transfer without reverting the whole transaction.
// The contract emits an event containing the result of each transfer.
bytes memory payload = abi.encodeWithSignature(
"transferFrom(address,address,uint256)",
isDefaultTreasury ? treasuries[0] : _treasuries[i],
_beneficiaries[i],
_amounts[i]
);
(bool success, bytes memory result) = _tokens[i].call(payload);
status = success && (result.length == 0 || abi.decode(result,(bool)))
? (status << 1) | 0x1
: status << 1;
}
emit MultiSendStatus(status, uint16(_beneficiaries.length));
}
function withdraw(
address[] calldata tokens,
address[] calldata sources,
uint256[] calldata amounts
) public {
require(
withdrawOperatorMap[msg.sender],
"Only an operator can execute this function"
);
require(
sources.length == amounts.length,
"The number of sources must match the number of amounts"
);
require(
sources.length == tokens.length,
"The number of sources must match the number of tokens"
);
require(
sources.length > 0,
"The number of sources must be greater than 0"
);
require(sources.length <= MAX_ENTRIES, "The maximum batch size is 256");
uint256 status;
for (uint256 i = 0; i < sources.length; i++) {
bytes memory payload = abi.encodeWithSignature(
"transferFrom(address,address,uint256)",
sources[i],
beneficiary,
amounts[i]
);
(bool success, bytes memory result) = tokens[i].call(payload);
status = success && (result.length == 0 || abi.decode(result,(bool)))
? (status << 1) | 0x1
: status << 1;
}
emit WithdrawalStatus(status, uint16(sources.length));
}
function setBeneficiary(address _beneficiary) public onlyOwner {
require(_beneficiary != beneficiary, "Cannot set the same address");
require(_beneficiary != address(0), "Zero address not allowed");
emit BeneficiaryUpdated(beneficiary, _beneficiary);
beneficiary = _beneficiary;
}
function getBeneficiary() public view returns (address) {
return beneficiary;
}
function getSignerAddress() public view returns (address) {
return signerAddress;
}
function setSignerAddress(address _signerAddress) public onlyOwner {
require(_signerAddress != signerAddress, "Cannot set the same address");
require(_signerAddress != address(0), "Zero address not allowed for signer address");
emit SignerUpdated(signerAddress, _signerAddress);
signerAddress = _signerAddress;
}
function addTreasury(address _treasury) public onlyOwner {
_addAddress(treasuries, _treasury, treasuriesMap);
emit TreasuryAdded(_treasury);
}
function removeTreasury(address _treasury) public onlyOwner {
_removeAddress(treasuries, _treasury, treasuriesMap);
emit TreasuryRemoved(_treasury);
}
function getTreasuries() public view returns (address[] memory) {
return treasuries;
}
function addWithdrawOperator(address _operator) public onlyOwner {
_addAddress(withdrawOperators, _operator, withdrawOperatorMap);
emit WithdrawOperatorAdded(_operator);
}
function removeWithdrawOperator(address _operator) public onlyOwner {
_removeAddress(withdrawOperators, _operator, withdrawOperatorMap);
emit WithdrawOperatorRemoved(_operator);
}
function getWithdrawOperators() public view returns (address[] memory) {
return withdrawOperators;
}
function addMultiSendOperator(address _operator) public onlyOwner {
_addAddress(multiSendOperators, _operator, multiSendOperatorMap);
emit MultiSendOperatorAdded(_operator);
}
function removeMultiSendOperator(address _operator) public onlyOwner {
_removeAddress(multiSendOperators, _operator, multiSendOperatorMap);
emit MultiSendOperatorRemoved(_operator);
}
function getMultiSendOperators() public view returns (address[] memory) {
return multiSendOperators;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(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 virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1271.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC1271 standard signature validation method for
* contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
*/
interface IERC1271 {
/**
* @dev Should return whether the signature provided is valid for the provided data
* @param hash Hash of the data to be signed
* @param signature Signature byte array associated with _data
*/
function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
*
* TIP: For a detailed writeup see our guide
* https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* The default value of {decimals} is 18. To change this, you should override
* this function so it returns a different value.
*
* We have followed general OpenZeppelin Contracts guidelines: functions revert
* instead returning `false` on failure. This behavior is nonetheless
* conventional and does not conflict with the expectations of ERC20
* applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*/
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
mapping(address account => uint256) private _balances;
mapping(address account => mapping(address spender => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
/**
* @dev Sets the values for {name} and {symbol}.
*
* All two of these values are immutable: they can only be set once during
* construction.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5.05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the default value returned by this function, unless
* it's overridden.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return 18;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - the caller must have a balance of at least `value`.
*/
function transfer(address to, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_transfer(owner, to, value);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
* `transferFrom`. This is semantically equivalent to an infinite approval.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 value) public virtual returns (bool) {
address owner = _msgSender();
_approve(owner, spender, value);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* NOTE: Does not update the allowance if the current allowance
* is the maximum `uint256`.
*
* Requirements:
*
* - `from` and `to` cannot be the zero address.
* - `from` must have a balance of at least `value`.
* - the caller must have allowance for ``from``'s tokens of at least
* `value`.
*/
function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
address spender = _msgSender();
_spendAllowance(from, spender, value);
_transfer(from, to, value);
return true;
}
/**
* @dev Moves a `value` amount of tokens from `from` to `to`.
*
* This internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _transfer(address from, address to, uint256 value) internal {
if (from == address(0)) {
revert ERC20InvalidSender(address(0));
}
if (to == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(from, to, value);
}
/**
* @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
* (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
* this function.
*
* Emits a {Transfer} event.
*/
function _update(address from, address to, uint256 value) internal virtual {
if (from == address(0)) {
// Overflow check required: The rest of the code assumes that totalSupply never overflows
_totalSupply += value;
} else {
uint256 fromBalance = _balances[from];
if (fromBalance < value) {
revert ERC20InsufficientBalance(from, fromBalance, value);
}
unchecked {
// Overflow not possible: value <= fromBalance <= totalSupply.
_balances[from] = fromBalance - value;
}
}
if (to == address(0)) {
unchecked {
// Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
_totalSupply -= value;
}
} else {
unchecked {
// Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
_balances[to] += value;
}
}
emit Transfer(from, to, value);
}
/**
* @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
* Relies on the `_update` mechanism
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead.
*/
function _mint(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidReceiver(address(0));
}
_update(address(0), account, value);
}
/**
* @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
* Relies on the `_update` mechanism.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* NOTE: This function is not virtual, {_update} should be overridden instead
*/
function _burn(address account, uint256 value) internal {
if (account == address(0)) {
revert ERC20InvalidSender(address(0));
}
_update(account, address(0), value);
}
/**
* @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*
* Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
*/
function _approve(address owner, address spender, uint256 value) internal {
_approve(owner, spender, value, true);
}
/**
* @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
*
* By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
* `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
* `Approval` event during `transferFrom` operations.
*
* Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
* true using the following override:
* ```
* function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
* super._approve(owner, spender, value, true);
* }
* ```
*
* Requirements are the same as {_approve}.
*/
function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
if (owner == address(0)) {
revert ERC20InvalidApprover(address(0));
}
if (spender == address(0)) {
revert ERC20InvalidSpender(address(0));
}
_allowances[owner][spender] = value;
if (emitEvent) {
emit Approval(owner, spender, value);
}
}
/**
* @dev Updates `owner` s allowance for `spender` based on spent `value`.
*
* Does not update the allowance value in case of infinite allowance.
* Revert if not enough allowance is available.
*
* Does not emit an {Approval} event.
*/
function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
uint256 currentAllowance = allowance(owner, spender);
if (currentAllowance != type(uint256).max) {
if (currentAllowance < value) {
revert ERC20InsufficientAllowance(spender, currentAllowance, value);
}
unchecked {
_approve(owner, spender, currentAllowance - value, false);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)
pragma solidity ^0.8.20;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS
}
/**
* @dev The signature derives the `address(0)`.
*/
error ECDSAInvalidSignature();
/**
* @dev The signature has an invalid length.
*/
error ECDSAInvalidSignatureLength(uint256 length);
/**
* @dev The signature has an S value that is in the upper half order.
*/
error ECDSAInvalidSignatureS(bytes32 s);
/**
* @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
* return address(0) without also returning an error description. Errors are documented using an enum (error type)
* and a bytes32 providing additional information about the error.
*
* If no error is returned, then the address can be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*/
function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
unchecked {
bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
// We do not check for an overflow here since the shift operation results in 0 or 1.
uint8 v = uint8((uint256(vs) >> 255) + 27);
return tryRecover(hash, v, r, s);
}
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*/
function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError, bytes32) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS, s);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature, bytes32(0));
}
return (signer, RecoverError.NoError, bytes32(0));
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
(address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
_throwError(error, errorArg);
return recovered;
}
/**
* @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
*/
function _throwError(RecoverError error, bytes32 errorArg) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert ECDSAInvalidSignature();
} else if (error == RecoverError.InvalidSignatureLength) {
revert ECDSAInvalidSignatureLength(uint256(errorArg));
} else if (error == RecoverError.InvalidSignatureS) {
revert ECDSAInvalidSignatureS(errorArg);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.20;
import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*
* @custom:oz-upgrades-unsafe-allow state-variable-immutable
*/
abstract contract EIP712 is IERC5267 {
using ShortStrings for *;
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
ShortString private immutable _name;
ShortString private immutable _version;
string private _nameFallback;
string private _versionFallback;
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
_name = name.toShortStringWithFallback(_nameFallback);
_version = version.toShortStringWithFallback(_versionFallback);
_hashedName = keccak256(bytes(name));
_hashedVersion = keccak256(bytes(version));
_cachedChainId = block.chainid;
_cachedDomainSeparator = _buildDomainSeparator();
_cachedThis = address(this);
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
return _cachedDomainSeparator;
} else {
return _buildDomainSeparator();
}
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
}
/**
* @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
* function returns the hash of the fully encoded EIP712 message for this domain.
*
* This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
*
* ```solidity
* bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
* keccak256("Mail(address to,string contents)"),
* mailTo,
* keccak256(bytes(mailContents))
* )));
* address signer = ECDSA.recover(digest, signature);
* ```
*/
function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
}
/**
* @dev See {IERC-5267}.
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: By default this function reads _name which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Name() internal view returns (string memory) {
return _name.toStringWithFallback(_nameFallback);
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: By default this function reads _version which is an immutable value.
* It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
*/
// solhint-disable-next-line func-name-mixedcase
function _EIP712Version() internal view returns (string memory) {
return _version.toStringWithFallback(_versionFallback);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)
pragma solidity ^0.8.20;
import {Strings} from "../Strings.sol";
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/SignatureChecker.sol)
pragma solidity ^0.8.20;
import {ECDSA} from "./ECDSA.sol";
import {IERC1271} from "../../interfaces/IERC1271.sol";
/**
* @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
* signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
* Argent and Safe Wallet (previously Gnosis Safe).
*/
library SignatureChecker {
/**
* @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
* signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
*
* NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
* change through time. It could return true at block N and false at block N+1 (or the opposite).
*/
function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
(address recovered, ECDSA.RecoverError error, ) = ECDSA.tryRecover(hash, signature);
return
(error == ECDSA.RecoverError.NoError && recovered == signer) ||
isValidERC1271SignatureNow(signer, hash, signature);
}
/**
* @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
* against the signer smart contract using ERC1271.
*
* NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
* change through time. It could return true at block N and false at block N+1 (or the opposite).
*/
function isValidERC1271SignatureNow(
address signer,
bytes32 hash,
bytes memory signature
) internal view returns (bool) {
(bool success, bytes memory result) = signer.staticcall(
abi.encodeCall(IERC1271.isValidSignature, (hash, signature))
);
return (success &&
result.length >= 32 &&
abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)
pragma solidity ^0.8.20;
import {StorageSlot} from "./StorageSlot.sol";
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
* ShortString private immutable _name;
* string private _nameFallback;
*
* constructor(string memory contractName) {
* _name = contractName.toShortStringWithFallback(_nameFallback);
* }
*
* function name() external view returns (string memory) {
* return _name.toStringWithFallback(_nameFallback);
* }
* }
* ```
*/
library ShortStrings {
// Used as an identifier for strings longer than 31 bytes.
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
/**
* @dev Encode a string of at most 31 chars into a `ShortString`.
*
* This will trigger a `StringTooLong` error is the input string is too long.
*/
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory bstr = bytes(str);
if (bstr.length > 31) {
revert StringTooLong(str);
}
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
}
/**
* @dev Decode a `ShortString` back to a "normal" string.
*/
function toString(ShortString sstr) internal pure returns (string memory) {
uint256 len = byteLength(sstr);
// using `new string(len)` would work locally but is not memory safe.
string memory str = new string(32);
/// @solidity memory-safe-assembly
assembly {
mstore(str, len)
mstore(add(str, 0x20), sstr)
}
return str;
}
/**
* @dev Return the length of a `ShortString`.
*/
function byteLength(ShortString sstr) internal pure returns (uint256) {
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
if (result > 31) {
revert InvalidShortString();
}
return result;
}
/**
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
*/
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
if (bytes(value).length < 32) {
return toShortString(value);
} else {
StorageSlot.getStringSlot(store).value = value;
return ShortString.wrap(FALLBACK_SENTINEL);
}
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return toString(value);
} else {
return store;
}
}
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
*/
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return byteLength(value);
} else {
return bytes(store).length;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
contract CustomToken is ERC20 {
constructor(address[] memory addresses, uint256[] memory amounts, string memory symbol)
ERC20(symbol, symbol)
{
require(
addresses.length == amounts.length,
"Address and amount arrays don't have the same length"
);
for (uint256 i = 0; i < addresses.length; i++) {
_mint(addresses[i], amounts[i]);
}
}
function transferFrom(
address _sender,
address _recipient,
uint256 _amount
) public virtual override returns (bool) {
return false;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.23;
import '@openzeppelin/contracts/token/ERC20/ERC20.sol';
contract TKN is ERC20 {
constructor(address[] memory addresses, uint256[] memory amounts, string memory symbol)
ERC20(symbol, symbol)
{
require(
addresses.length == amounts.length,
"Address and amount arrays don't have the same length"
);
for (uint256 i = 0; i < addresses.length; i++) {
_mint(addresses[i], amounts[i]);
}
}
}{
"viaIR": true,
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address[]","name":"_treasuries","type":"address[]"},{"internalType":"address","name":"_signerAddress","type":"address"},{"internalType":"address[]","name":"_withdrawOperators","type":"address[]"},{"internalType":"address[]","name":"_multiSendOperators","type":"address[]"},{"internalType":"address","name":"_beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousBeneficiary","type":"address"},{"indexed":true,"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"BeneficiaryUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"MultiSendOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"MultiSendOperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"result","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"batchSize","type":"uint16"}],"name":"MultiSendStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousSigner","type":"address"},{"indexed":true,"internalType":"address","name":"newSigner","type":"address"}],"name":"SignerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"TreasuryAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"","type":"address"}],"name":"TreasuryRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"WithdrawOperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"}],"name":"WithdrawOperatorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"result","type":"uint256"},{"indexed":false,"internalType":"uint16","name":"batchSize","type":"uint16"}],"name":"WithdrawalStatus","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"addMultiSendOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"addTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"addWithdrawOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBeneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMultiSendOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSignerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTreasuries","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestIdHash","type":"bytes32"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address[]","name":"_beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"multiSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestIdHash","type":"bytes32"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"address[]","name":"_beneficiaries","type":"address[]"},{"internalType":"address[]","name":"_treasuries","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"multiSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"removeMultiSendOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"removeTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"removeWithdrawOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"address[]","name":"sources","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
61016080604052346200099657620033a18038038091620000218285620009b7565b833981019060a081830312620009965780516001600160401b03811162000996578262000050918301620009f0565b906200005f60208201620009db565b60408201516001600160401b03811162000996578462000081918401620009f0565b606083015190946001600160401b0382116200099657620000ab608091620000b3938601620009f0565b9301620009db565b90604051620000c2816200099b565b600a815269119bde10dbdb9b9958dd60b21b602082015260405190620000e8826200099b565b60018252603160f81b602083015233156200097d57600180546001600160a01b03199081169091556000805433928116831782556001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a3620001558162000aa4565b61012052620001648262000c81565b6101405260208151910120908160e0526020815191012080610100524660a052604051917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020840152604083015260608201524660808201523060a082015260a081528060c081011060018060401b0360c083011117620004a25760c08101604052805160208201206080523060c052610100865111620009205750610100835111620008c55761010084511162000874578451156200081757825115620007b8578351156200075c576001600160a01b031690811562000703576001600160a01b0316908115620006a557600b80546001600160a01b0319908116929092179055600c805490911691909117905560009291905b815160ff851690811015620003c6576001600160a01b036200029d828562000a8f565b5116156200036b576001600160a01b03620002b9828562000a8f565b51166000908152600560205260409020805460ff191660011790556001600160a01b0390620002e9908462000a8f565b511693600494855468010000000000000000811015620003565760018101808855811015620003415762000338939495966000526020600020019060018060a01b031982541617905562000a67565b9291906200027a565b603287634e487b7160e01b6000525260246000fd5b604187634e487b7160e01b6000525260246000fd5b60405162461bcd60e51b815260206004820152602d60248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722074726560448201526c6173757279206164647265737360981b6064820152608490fd5b838260005b815160ff82169081101562000523576001600160a01b03620003ee828562000a8f565b511615620004b8576001600160a01b036200040a828562000a8f565b51166000908152600760205260409020805460ff191660011790556001600160a01b03906200043a908462000a8f565b511690600691825468010000000000000000811015620004a257600181018085558110156200048c5762000486936000526020600020019060018060a01b031982541617905562000a67565b620003cb565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152603860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f72206d756c60448201527f74692d73656e64206f70657261746f72206164647265737300000000000000006064820152608490fd5b8360005b815160ff82169081101562000653576001600160a01b036200054a828562000a8f565b511615620005e8576001600160a01b0362000566828562000a8f565b51166000908152600960205260409020805460ff191660011790556001600160a01b039062000596908462000a8f565b511690600891825468010000000000000000811015620004a257600181018085558110156200048c57620005e2936000526020600020019060018060a01b031982541617905562000a67565b62000527565b60405162461bcd60e51b815260206004820152603660248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722077697460448201527f6864726177206f70657261746f722061646472657373000000000000000000006064820152608490fd5b60405161256a908162000e37823960805181612109015260a051816121d5015260c051816120d3015260e051816121580152610100518161217e01526101205181610c6801526101405181610c910152f35b60405162461bcd60e51b815260206004820152603060248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722062656e60448201526f6566696369617279206164647265737360801b6064820152608490fd5b60405162461bcd60e51b815260206004820152602b60248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722073696760448201526a6e6572206164647265737360a81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602e60248201527f4174206c65617374206f6e652074726561737572792061646472657373206d7560448201526d1cdd081899481c1c9bdd9a59195960921b6064820152608490fd5b60405162461bcd60e51b815260206004820152603160248201527f4174206c65617374206f6e65206d756c74692d73656e64206f70657261746f72604482015270081b5d5cdd081899481c1c9bdd9a591959607a1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602f60248201527f4174206c65617374206f6e65207769746864726177206f70657261746f72206d60448201526e1d5cdd081899481c1c9bdd9a591959608a1b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f43616e6e6f7420616464206d6f7265207468616e20323536207472656173757260448201526269657360e81b6064820152608490fd5b60405162461bcd60e51b815260206004820152602d60248201527f43616e6e6f7420616464206d6f7265207468616e20323536206d756c74692d7360448201526c656e64206f70657261746f727360981b6064820152608490fd5b60c060849162461bcd60e51b82820152602060c4820152602b60e48201527f43616e6e6f7420616464206d6f7265207468616e2032353620776974686472616101048201526a77206f70657261746f727360a81b61012482015201fd5b604051631e4fbdf760e01b815260006004820152602490fd5b600080fd5b604081019081106001600160401b03821117620004a257604052565b601f909101601f19168101906001600160401b03821190821017620004a257604052565b51906001600160a01b03821682036200099657565b81601f8201121562000996578051916020916001600160401b038411620004a2578360051b906040519462000a2885840187620009b7565b8552838086019282010192831162000996578301905b82821062000a4d575050505090565b83809162000a5b84620009db565b81520191019062000a3e565b60ff1660ff811462000a795760010190565b634e487b7160e01b600052601160045260246000fd5b80518210156200048c5760209160051b010190565b80516020908181101562000b415750601f82511162000ae0578082519201519080831062000ad157501790565b82600019910360031b1b161790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b82851062000b27575050604492506000838284010152601f80199101168101030190fd5b848101820151868601604401529381019385935062000b03565b906001600160401b038211620004a257600254926001938481811c9116801562000c76575b8382101462000c6057601f811162000c26575b5081601f841160011462000bba575092829391839260009462000bae575b50501b916000199060031b1c19161760025560ff90565b01519250388062000b97565b919083601f198116600260005284600020946000905b8883831062000c0b575050501062000bf1575b505050811b0160025560ff90565b015160001960f88460031b161c1916905538808062000be3565b85870151885590960195948501948793509081019062000bd0565b600260005284601f84600020920160051c820191601f860160051c015b82811062000c5357505062000b79565b6000815501859062000c43565b634e487b7160e01b600052602260045260246000fd5b90607f169062000b66565b8051602091908281101562000d11575090601f82511162000cb0578082519201519080831062000ad157501790565b90604051809263305a27a960e01b82528060048301528251908160248401526000935b82851062000cf7575050604492506000838284010152601f80199101168101030190fd5b848101820151868601604401529381019385935062000cd3565b6001600160401b038111620004a2576003928354926001938481811c9116801562000e2b575b8382101462000c6057601f811162000df2575b5081601f841160011462000d89575092829391839260009462000d7d575b50501b9160001990841b1c191617905560ff90565b01519250388062000d68565b919083601f1981168760005284600020946000905b8883831062000dd7575050501062000dbe575b505050811b01905560ff90565b015160001983861b60f8161c1916905538808062000db1565b85870151885590960195948501948793509081019062000d9e565b8560005284601f84600020920160051c820191601f860160051c015b82811062000e1e57505062000d4a565b6000815501859062000e0e565b90607f169062000d3756fe6080604052600436101561001257600080fd5b60003560e01c8063046dc16614611b9d5780630d49b711146117d15780630d9b50111461174d57806312e9a03f146116c95780631a296e02146116a05780631c31f710146116205780633d55e9dc14610f30578063565a2e2c14610f0757806360ac85d614610e4b578063715018a614610de657806379ba509714610d5d57806384b0196e14610c525780638da5cb5b14610c2957806392b3462014610b12578063ae7c82a4146109fb578063b35ee93114610834578063c8cb3834146106e3578063e30c3978146106ba578063e841436f14610626578063f2fde38b146105b6578063f7ece0cf146102985763f84f2bb11461010e57600080fd5b3461029357602036600319011261029357610127611c71565b61012f6120bc565b6001600160a01b03811660008181526007602052604090205490919060ff1661024e5761015d821515611df7565b600654906101008210156101fe57600160401b8210156101e85761018a8260016101a89401600655611fd2565b90919060018060a01b038084549260031b9316831b921b1916179055565b8060005260076020526040600020600160ff198254161790557f268cfd1ffbcc858c8b0c9c92b0913ae4b84050562b073e137553c65f2dadf8d9600080a2005b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420616464206d6f7265207468616e203235362061646472657373604482015261657360f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152601b60248201527f54686973206164647265737320616c72656164792065786973747300000000006044820152606490fd5b600080fd5b346102935760603660031901126102935767ffffffffffffffff600435818111610293576102ca903690600401611c9b565b91602491602435828111610293576102e6903690600401611c9b565b93909260443590811161029357610301903690600401611c9b565b919095336000526020936009855261032060ff60406000205416611e43565b838703610552578187036104ef57861561049557969493929190610348610100881115611ea2565b6000976000965b88881061039357604080518b815261ffff8b1660208201527fde16772e5c4365a3057b0336ad2eef600c1aad8cd2b5b3146aded1c20da7186691819081015b0390a1005b90919293949596986001906000808888828f8f8f918f61042b9061041d8d6103e0856103ce6103c9826103c99a6104329c612040565b612050565b9b60018060a01b03600c541693612040565b604080516323b872dd60e01b9581019586526001600160a01b039c8d169b81019b8c529b90921660208b0152359089015290968891606090910190565b03601f198101885287611d49565b8c8c612040565b9251925af161043f612064565b81610465575b501561045e57811b81175b99019695949392919061034f565b811b610450565b8051801592508a90831561047d575b5050508c610445565b61048d93508201810191016120a4565b8c8981610474565b60405162461bcd60e51b815260048101869052602c60248201527f546865206e756d626572206f6620736f7572636573206d75737420626520677260448201526b06561746572207468616e20360a41b6064820152608490fd5b60405162461bcd60e51b815260048101869052603560248201527f546865206e756d626572206f6620736f7572636573206d757374206d6174636860448201527420746865206e756d626572206f6620746f6b656e7360581b6064820152608490fd5b60405162461bcd60e51b815260048101869052603660248201527f546865206e756d626572206f6620736f7572636573206d757374206d6174636860448201527520746865206e756d626572206f6620616d6f756e747360501b6064820152608490fd5b34610293576020366003190112610293576105cf611c71565b6105d76120bc565b60018060a01b0380911690816bffffffffffffffffffffffff60a01b6001541617600155600054167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700600080a3005b3461029357600036600319011261029357604051806006549182815260208091019260066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f916000905b82821061069a576106968561068a81890382611d49565b60405191829182611ccc565b0390f35b83546001600160a01b031686529485019460019384019390910190610673565b34610293576000366003190112610293576001546040516001600160a01b039091168152602090f35b3461029357602080600319360112610293576106fd611c71565b906107066120bc565b6001600160a01b038216600081815260058352604090205460ff166107ef57610730811515611df7565b60045461010081101561079f57600160401b8110156101e8577fedfa2f73691730ba0803543209339afdd054637240c6ff0a7ae0dad3c191648c9361018a82600161077e9401600455612009565b80600052600582526040600020600160ff19825416179055604051908152a1005b60405162461bcd60e51b815260048101849052602260248201527f43616e6e6f7420616464206d6f7265207468616e203235362061646472657373604482015261657360f01b6064820152608490fd5b60405162461bcd60e51b815260048101839052601b60248201527f54686973206164647265737320616c72656164792065786973747300000000006044820152606490fd5b346102935760203660031901126102935761084d611c71565b6108556120bc565b6001600160a01b0390811661086b811515611df7565b80600052600560205260ff9160ff60406000205416156109b657600454600093845b8282821610610982575b50506000199384820191821161096c576108e4926108b76108c093612009565b93905492612009565b92909360031b1c169060018060a01b038084549260031b9316831b921b1916179055565b600454908115610956577f0820ed7a122a6fc9da8baebd1b26fd87a75060c4d45f69af14c3bfc5f697a4ae926020920161093561092082612009565b81549060018060a01b039060031b1b19169055565b6004558060005260058252604060002060ff198154169055604051908152a1005b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b848461098d83612009565b90549060031b1c16146109ab57811681811461096c5760010161088d565b945085905080610897565b60405162461bcd60e51b815260206004820152601b60248201527f54686973206164647265737320646f6573206e6f7420657869737400000000006044820152606490fd5b3461029357602036600319011261029357610a14611c71565b610a1c6120bc565b6001600160a01b0390811690610a33821515611df7565b81600052600760205260ff9060ff60406000205416156109b657600654600092835b8282821610610ade575b50506000199283820191821161096c57610a8892610a7f6108c093611fd2565b93905492611fd2565b60065480156109565701610a9e61092082611fd2565b600655806000526007602052604060002060ff1981541690557faa90e6027f3fa1cff5b8bf3d47699b427ea4d86aff9205ce0b950651699ec853600080a2005b8584610ae983611fd2565b90549060031b1c1614610b0757811681811461096c57600101610a55565b935085905080610a5f565b3461029357602036600319011261029357610b2b611c71565b610b336120bc565b6001600160a01b0390811690610b4a821515611df7565b81600052600960205260ff9060ff60406000205416156109b657600854600092835b8282821610610bf5575b50506000199283820191821161096c57610b9f92610b966108c093611f9b565b93905492611f9b565b60085480156109565701610bb561092082611f9b565b600855806000526009602052604060002060ff1981541690557f6df77230bf10214430f5e1f2c440c26235bb596e7c441b0b1b34b3ad87ff5a77600080a2005b8584610c0083611f9b565b90549060031b1c1614610c1e57811681811461096c57600101610b6c565b935085905080610b76565b34610293576000366003190112610293576000546040516001600160a01b039091168152602090f35b3461029357600036600319011261029357610c8c7f0000000000000000000000000000000000000000000000000000000000000000612310565b610cb57f000000000000000000000000000000000000000000000000000000000000000061243c565b60405160208082019282841067ffffffffffffffff8511176101e857916020610d108594610d02979660405260008452604051978897600f60f81b895260e0858a015260e0890190611d6b565b908782036040890152611d6b565b91466060870152306080870152600060a087015285830360c0870152519182815201929160005b828110610d4657505050500390f35b835185528695509381019392810192600101610d37565b34610293576000366003190112610293576001546001600160a01b033381831603610dce576bffffffffffffffffffffffff60a01b8092166001556000549133908316176000553391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405163118cdaa760e01b8152336004820152602490fd5b3461029357600036600319011261029357610dff6120bc565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461029357602036600319011261029357610e64611c71565b610e6c6120bc565b6001600160a01b03811660008181526009602052604090205490919060ff1661024e57610e9a821515611df7565b600854906101008210156101fe57600160401b8210156101e85761018a826001610ec79401600855611f9b565b8060005260096020526040600020600160ff198254161790557f53835a305263ea069766c10e84a0dca8ed2ec1972741a2739691ba71ab8646fb600080a2005b3461029357600036600319011261029357600c546040516001600160a01b039091168152602090f35b34610293576101203660031901126102935767ffffffffffffffff60243581811161029357610f63903690600401611c9b565b909160443581811161029357610f7d903690600401611c9b565b92606435928084116102935736602385011215610293578360040135938185116101e8578460051b60405195610fb66020830188611d49565b8652602460208701918301019136831161029357602401905b8282106116085750505060843590811161029357610ff1903690600401611c9b565b959060ff60c4351660c435036102935760a43542116115c457600435600052600a60205260ff604060002054166115705733600052600760205261103c60ff60406000205416611e43565b868603611517578286036114be578451938415958688811597886114b4575b50501561145b57871561140d57611076610100891115611ea2565b600435600052600a6020526040600020600160ff198254161790556040516110b4816110a6602082018989611eee565b03601f198101835282611d49565b60208151910120886040516110d2816110a660208201809589611eee565b51902060405190916001600160fb1b038c11610293576111ad928261110e60208f956111a49660051b808c848401378101038084520182611d49565b602081519101206040519160208301937fd60669c8706c9bca64c8413c9803046610614781e97930f95003297d3fd840e7855260043560408501526060840152608083015260a082015260a43560c082015260c0815261116d81611d11565b5190206111786120d0565b906040519161190160f01b835260028301526022820152610104359060e43590604260c43591206121fb565b9092919261228b565b600b546001600160a01b039081169116036113b657979594939291906000986000965b89881061121357604080518c815261ffff8c1660208201527ff7279a39c173eff8423944f5549c89148efa02a3f0a80be8feb8d11b9cbea08f918190810161038e565b90919293949596979987829061138b575b156113465760019060008087878f8f8f808f8f6112c26112808f958f9861127a6103c9838f9c9b6103c99b6112c79d8f1461132a5750611262611f67565b905460039190911b1c6001600160a01b03169e612040565b9b612040565b6040516323b872dd60e01b602082019081526001600160a01b039a8b1660248301529a90991660448a0152356064808a01919091528852969796608489611d49565b612040565b9251925af16112d4612064565b816112fb575b50156112f457811b81175b9a9801969594939291906111d0565b811b6112e5565b8051801592508215611310575b50508d6112da565b61132392506020809183010191016120a4565b8d80611308565b6001600160a01b039061133e908490611f53565b51169e612040565b60405162461bcd60e51b815260206004820152601760248201527f547265617375727920646f6573206e6f742065786973740000000000000000006044820152606490fd5b506001600160a01b0361139e8a85611f53565b5116600052600560205260ff60406000205416611224565b60405162461bcd60e51b815260206004820152602960248201527f496e76616c6964206d756c74692073656e6420726571756573742064617461206044820152687369676e617475726560b81b6064820152608490fd5b60405162461bcd60e51b8152602060048201526032602482015260008051602061251583398151915260448201527102062652067726561746572207468616e20360741b6064820152608490fd5b60405162461bcd60e51b815260206004820152603f602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f662074726561737572696573006064820152608490fd5b149050888b61105b565b60405162461bcd60e51b815260206004820152603b602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f6620746f6b656e7300000000006064820152608490fd5b60405162461bcd60e51b815260206004820152603c602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f6620616d6f756e7473000000006064820152608490fd5b60405162461bcd60e51b815260206004820152602660248201527f5468697320726571756573742068617320616c7265616479206265656e2065786044820152651958dd5d195960d21b6064820152608490fd5b606460405162461bcd60e51b815260206004820152602060248201527f546869732072657175657374206d69737365642074686520646561646c696e656044820152fd5b6020809161161584611c87565b815201910190610fcf565b3461029357602036600319011261029357611639611c71565b6116416120bc565b600c546001600160a01b03918216918290821661166082821415611dab565b61166b821515611df7565b7fe72eaf6addaa195f3c83095031dd08f3a96808dcf047babed1fe4e4f69d6c622600080a36001600160a01b03191617600c55005b3461029357600036600319011261029357600b546040516001600160a01b039091168152602090f35b3461029357600036600319011261029357604051806008549182815260208091019260086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3916000905b82821061172d576106968561068a81890382611d49565b83546001600160a01b031686529485019460019384019390910190611716565b3461029357600036600319011261029357604051806004549182815260208091019260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b916000905b8282106117b1576106968561068a81890382611d49565b83546001600160a01b03168652948501946001938401939091019061179a565b34610293576101003660031901126102935767ffffffffffffffff60243581811161029357611804903690600401611c9b565b6044929192358281116102935761181f903690600401611c9b565b9260643590811161029357611838903690600401611c9b565b929060ff60a4351660a435036102935760843542116115c457600435600052600a60205260ff604060002054166115705733600052600760205261188360ff60406000205416611e43565b838503611517578185036114be5760605192831596878781159687611b93575b50501561145b57861561140d576118be610100881115611ea2565b600435600052600a6020526040600020600160ff198254161790556040516118ee816110a6602082018886611eee565b60208151910120604051602081019061190c816110a6848d89611eee565b51902060405190916001600160fb1b038911610293576119dc928261194760206111a4958d60051b808c848401378101038084520182611d49565b602081519101206040519160208301937fd60669c8706c9bca64c8413c9803046610614781e97930f95003297d3fd840e7855260043560408501526060840152608083015260a082015260843560c082015260c081526119a681611d11565b5190206119b16120d0565b906040519161190160f01b83526002830152602282015260e4359060c43590604260a43591206121fb565b600b546001600160a01b039081169116036113b6579694939291906000976000955b888710611a4157604080518b815261ffff8b1660208201527ff7279a39c173eff8423944f5549c89148efa02a3f0a80be8feb8d11b9cbea08f918190810161038e565b9091929394959698868a90611b69575b15611346576001906000808787828f8f8f8e611ae8611aa6838e611aa06103c9836103c999611aee9b8d14611b5057611a88611f67565b905460039190911b1c6001600160a01b03169d612040565b9a612040565b6040516323b872dd60e01b602082019081526001600160a01b03998a166024830152999098166044890152356064808901919091528752959695608488611d49565b8c612040565b9251925af1611afb612064565b81611b21575b5015611b1a57811b81175b9997019594939291906119fe565b811b611b0c565b8051801592508215611b36575b50508c611b01565b611b4992506020809183010191016120a4565b8c80611b2e565b6001600160a01b03611b6183611f2a565b51169d612040565b506001600160a01b03611b7b89611f2a565b5116600052600560205260ff60406000205416611a51565b149050878a6118a3565b3461029357602036600319011261029357611bb6611c71565b611bbe6120bc565b600b546001600160a01b03918216918116611bdb83821415611dab565b8215611c185782907f2d025324f0a785e8c12d0a0d91a9caa49df4ef20ff87e0df7213a1d4f3157beb600080a36001600160a01b03191617600b55005b60405162461bcd60e51b815260206004820152602b60248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722073696760448201526a6e6572206164647265737360a81b6064820152608490fd5b600435906001600160a01b038216820361029357565b35906001600160a01b038216820361029357565b9181601f840112156102935782359167ffffffffffffffff8311610293576020808501948460051b01011161029357565b602090602060408183019282815285518094520193019160005b828110611cf4575050505090565b83516001600160a01b031685529381019392810192600101611ce6565b60e0810190811067ffffffffffffffff8211176101e857604052565b6040810190811067ffffffffffffffff8211176101e857604052565b90601f8019910116810190811067ffffffffffffffff8211176101e857604052565b919082519283825260005b848110611d97575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611d76565b15611db257565b60405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420736574207468652073616d65206164647265737300000000006044820152606490fd5b15611dfe57565b60405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656400000000000000006044820152606490fd5b15611e4a57565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920616e206f70657261746f722063616e2065786563757465207468696044820152693990333ab731ba34b7b760b11b6064820152608490fd5b15611ea957565b60405162461bcd60e51b815260206004820152601d60248201527f546865206d6178696d756d2062617463682073697a65206973203235360000006044820152606490fd5b9060005b818110611eff5750505090565b91929091906001906001600160a01b03611f1886611c87565b16815260209081019401929101611ef2565b606051811015611f3d5760051b60800190565b634e487b7160e01b600052603260045260246000fd5b8051821015611f3d5760209160051b010190565b60045415611f3d5760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90600090565b600854811015611f3d5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b600654811015611f3d5760066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600090565b600454811015611f3d5760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b9190811015611f3d5760051b0190565b356001600160a01b03811681036102935790565b3d1561209f573d9067ffffffffffffffff82116101e85760405191612093601f8201601f191660200184611d49565b82523d6000602084013e565b606090565b90816020910312610293575180151581036102935790565b6000546001600160a01b03163303610dce57565b307f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031614806121d2575b1561212b577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176101e85760405251902090565b507f00000000000000000000000000000000000000000000000000000000000000004614612102565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161227f57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa156122735780516001600160a01b0381161561226a57918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b60048110156122fa578061229d575050565b600181036122b75760405163f645eedf60e01b8152600490fd5b600281036122d85760405163fce698f760e01b815260048101839052602490fd5b6003146122e25750565b602490604051906335e2f38360e21b82526004820152fd5b634e487b7160e01b600052602160045260246000fd5b60ff811461234e5760ff811690601f821161233c576040519161233283611d2d565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b5060405160006002549060018260011c9060018416938415612432575b602094858410811461241e57838752869493929181156123fe575060011461239f575b505061239c92500382611d49565b90565b9093915060026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace936000915b8183106123e657505061239c9350820101388061238e565b855487840185015294850194869450918301916123ce565b91505061239c94925060ff191682840152151560051b820101388061238e565b634e487b7160e01b85526022600452602485fd5b91607f169161236b565b60ff811461245e5760ff811690601f821161233c576040519161233283611d2d565b5060405160006003549060018260011c906001841693841561250a575b602094858410811461241e57838752869493929181156123fe57506001146124ab57505061239c92500382611d49565b9093915060036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b936000915b8183106124f257505061239c9350820101388061238e565b855487840185015294850194869450918301916124da565b91607f169161247b56fe546865206e756d626572206f662062656e65666963696172696573206d757374a2646970667358221220855f0eea90c849247f63ffc68c81852ed30184eb54114151dda2046a1fef923c64736f6c6343000817003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000011084c82563abcbbfa14f739b0cca72cd5d356cb00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f344192b9146132fc0e997d1666dc1531bf8f7cd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000004879fad6a33745c972512d4cf9743a68e50fa55100000000000000000000000000000000000000000000000000000000000000010000000000000000000000009647c7b2f286b241769d17d7edc989149ab0636d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000009089a6fcf12b645e6d7f8879db96e0dfec9bea9b
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c8063046dc16614611b9d5780630d49b711146117d15780630d9b50111461174d57806312e9a03f146116c95780631a296e02146116a05780631c31f710146116205780633d55e9dc14610f30578063565a2e2c14610f0757806360ac85d614610e4b578063715018a614610de657806379ba509714610d5d57806384b0196e14610c525780638da5cb5b14610c2957806392b3462014610b12578063ae7c82a4146109fb578063b35ee93114610834578063c8cb3834146106e3578063e30c3978146106ba578063e841436f14610626578063f2fde38b146105b6578063f7ece0cf146102985763f84f2bb11461010e57600080fd5b3461029357602036600319011261029357610127611c71565b61012f6120bc565b6001600160a01b03811660008181526007602052604090205490919060ff1661024e5761015d821515611df7565b600654906101008210156101fe57600160401b8210156101e85761018a8260016101a89401600655611fd2565b90919060018060a01b038084549260031b9316831b921b1916179055565b8060005260076020526040600020600160ff198254161790557f268cfd1ffbcc858c8b0c9c92b0913ae4b84050562b073e137553c65f2dadf8d9600080a2005b634e487b7160e01b600052604160045260246000fd5b60405162461bcd60e51b815260206004820152602260248201527f43616e6e6f7420616464206d6f7265207468616e203235362061646472657373604482015261657360f01b6064820152608490fd5b60405162461bcd60e51b815260206004820152601b60248201527f54686973206164647265737320616c72656164792065786973747300000000006044820152606490fd5b600080fd5b346102935760603660031901126102935767ffffffffffffffff600435818111610293576102ca903690600401611c9b565b91602491602435828111610293576102e6903690600401611c9b565b93909260443590811161029357610301903690600401611c9b565b919095336000526020936009855261032060ff60406000205416611e43565b838703610552578187036104ef57861561049557969493929190610348610100881115611ea2565b6000976000965b88881061039357604080518b815261ffff8b1660208201527fde16772e5c4365a3057b0336ad2eef600c1aad8cd2b5b3146aded1c20da7186691819081015b0390a1005b90919293949596986001906000808888828f8f8f918f61042b9061041d8d6103e0856103ce6103c9826103c99a6104329c612040565b612050565b9b60018060a01b03600c541693612040565b604080516323b872dd60e01b9581019586526001600160a01b039c8d169b81019b8c529b90921660208b0152359089015290968891606090910190565b03601f198101885287611d49565b8c8c612040565b9251925af161043f612064565b81610465575b501561045e57811b81175b99019695949392919061034f565b811b610450565b8051801592508a90831561047d575b5050508c610445565b61048d93508201810191016120a4565b8c8981610474565b60405162461bcd60e51b815260048101869052602c60248201527f546865206e756d626572206f6620736f7572636573206d75737420626520677260448201526b06561746572207468616e20360a41b6064820152608490fd5b60405162461bcd60e51b815260048101869052603560248201527f546865206e756d626572206f6620736f7572636573206d757374206d6174636860448201527420746865206e756d626572206f6620746f6b656e7360581b6064820152608490fd5b60405162461bcd60e51b815260048101869052603660248201527f546865206e756d626572206f6620736f7572636573206d757374206d6174636860448201527520746865206e756d626572206f6620616d6f756e747360501b6064820152608490fd5b34610293576020366003190112610293576105cf611c71565b6105d76120bc565b60018060a01b0380911690816bffffffffffffffffffffffff60a01b6001541617600155600054167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700600080a3005b3461029357600036600319011261029357604051806006549182815260208091019260066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f916000905b82821061069a576106968561068a81890382611d49565b60405191829182611ccc565b0390f35b83546001600160a01b031686529485019460019384019390910190610673565b34610293576000366003190112610293576001546040516001600160a01b039091168152602090f35b3461029357602080600319360112610293576106fd611c71565b906107066120bc565b6001600160a01b038216600081815260058352604090205460ff166107ef57610730811515611df7565b60045461010081101561079f57600160401b8110156101e8577fedfa2f73691730ba0803543209339afdd054637240c6ff0a7ae0dad3c191648c9361018a82600161077e9401600455612009565b80600052600582526040600020600160ff19825416179055604051908152a1005b60405162461bcd60e51b815260048101849052602260248201527f43616e6e6f7420616464206d6f7265207468616e203235362061646472657373604482015261657360f01b6064820152608490fd5b60405162461bcd60e51b815260048101839052601b60248201527f54686973206164647265737320616c72656164792065786973747300000000006044820152606490fd5b346102935760203660031901126102935761084d611c71565b6108556120bc565b6001600160a01b0390811661086b811515611df7565b80600052600560205260ff9160ff60406000205416156109b657600454600093845b8282821610610982575b50506000199384820191821161096c576108e4926108b76108c093612009565b93905492612009565b92909360031b1c169060018060a01b038084549260031b9316831b921b1916179055565b600454908115610956577f0820ed7a122a6fc9da8baebd1b26fd87a75060c4d45f69af14c3bfc5f697a4ae926020920161093561092082612009565b81549060018060a01b039060031b1b19169055565b6004558060005260058252604060002060ff198154169055604051908152a1005b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b848461098d83612009565b90549060031b1c16146109ab57811681811461096c5760010161088d565b945085905080610897565b60405162461bcd60e51b815260206004820152601b60248201527f54686973206164647265737320646f6573206e6f7420657869737400000000006044820152606490fd5b3461029357602036600319011261029357610a14611c71565b610a1c6120bc565b6001600160a01b0390811690610a33821515611df7565b81600052600760205260ff9060ff60406000205416156109b657600654600092835b8282821610610ade575b50506000199283820191821161096c57610a8892610a7f6108c093611fd2565b93905492611fd2565b60065480156109565701610a9e61092082611fd2565b600655806000526007602052604060002060ff1981541690557faa90e6027f3fa1cff5b8bf3d47699b427ea4d86aff9205ce0b950651699ec853600080a2005b8584610ae983611fd2565b90549060031b1c1614610b0757811681811461096c57600101610a55565b935085905080610a5f565b3461029357602036600319011261029357610b2b611c71565b610b336120bc565b6001600160a01b0390811690610b4a821515611df7565b81600052600960205260ff9060ff60406000205416156109b657600854600092835b8282821610610bf5575b50506000199283820191821161096c57610b9f92610b966108c093611f9b565b93905492611f9b565b60085480156109565701610bb561092082611f9b565b600855806000526009602052604060002060ff1981541690557f6df77230bf10214430f5e1f2c440c26235bb596e7c441b0b1b34b3ad87ff5a77600080a2005b8584610c0083611f9b565b90549060031b1c1614610c1e57811681811461096c57600101610b6c565b935085905080610b76565b34610293576000366003190112610293576000546040516001600160a01b039091168152602090f35b3461029357600036600319011261029357610c8c7f466f78436f6e6e6563740000000000000000000000000000000000000000000a612310565b610cb57f310000000000000000000000000000000000000000000000000000000000000161243c565b60405160208082019282841067ffffffffffffffff8511176101e857916020610d108594610d02979660405260008452604051978897600f60f81b895260e0858a015260e0890190611d6b565b908782036040890152611d6b565b91466060870152306080870152600060a087015285830360c0870152519182815201929160005b828110610d4657505050500390f35b835185528695509381019392810192600101610d37565b34610293576000366003190112610293576001546001600160a01b033381831603610dce576bffffffffffffffffffffffff60a01b8092166001556000549133908316176000553391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405163118cdaa760e01b8152336004820152602490fd5b3461029357600036600319011261029357610dff6120bc565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461029357602036600319011261029357610e64611c71565b610e6c6120bc565b6001600160a01b03811660008181526009602052604090205490919060ff1661024e57610e9a821515611df7565b600854906101008210156101fe57600160401b8210156101e85761018a826001610ec79401600855611f9b565b8060005260096020526040600020600160ff198254161790557f53835a305263ea069766c10e84a0dca8ed2ec1972741a2739691ba71ab8646fb600080a2005b3461029357600036600319011261029357600c546040516001600160a01b039091168152602090f35b34610293576101203660031901126102935767ffffffffffffffff60243581811161029357610f63903690600401611c9b565b909160443581811161029357610f7d903690600401611c9b565b92606435928084116102935736602385011215610293578360040135938185116101e8578460051b60405195610fb66020830188611d49565b8652602460208701918301019136831161029357602401905b8282106116085750505060843590811161029357610ff1903690600401611c9b565b959060ff60c4351660c435036102935760a43542116115c457600435600052600a60205260ff604060002054166115705733600052600760205261103c60ff60406000205416611e43565b868603611517578286036114be578451938415958688811597886114b4575b50501561145b57871561140d57611076610100891115611ea2565b600435600052600a6020526040600020600160ff198254161790556040516110b4816110a6602082018989611eee565b03601f198101835282611d49565b60208151910120886040516110d2816110a660208201809589611eee565b51902060405190916001600160fb1b038c11610293576111ad928261110e60208f956111a49660051b808c848401378101038084520182611d49565b602081519101206040519160208301937fd60669c8706c9bca64c8413c9803046610614781e97930f95003297d3fd840e7855260043560408501526060840152608083015260a082015260a43560c082015260c0815261116d81611d11565b5190206111786120d0565b906040519161190160f01b835260028301526022820152610104359060e43590604260c43591206121fb565b9092919261228b565b600b546001600160a01b039081169116036113b657979594939291906000986000965b89881061121357604080518c815261ffff8c1660208201527ff7279a39c173eff8423944f5549c89148efa02a3f0a80be8feb8d11b9cbea08f918190810161038e565b90919293949596979987829061138b575b156113465760019060008087878f8f8f808f8f6112c26112808f958f9861127a6103c9838f9c9b6103c99b6112c79d8f1461132a5750611262611f67565b905460039190911b1c6001600160a01b03169e612040565b9b612040565b6040516323b872dd60e01b602082019081526001600160a01b039a8b1660248301529a90991660448a0152356064808a01919091528852969796608489611d49565b612040565b9251925af16112d4612064565b816112fb575b50156112f457811b81175b9a9801969594939291906111d0565b811b6112e5565b8051801592508215611310575b50508d6112da565b61132392506020809183010191016120a4565b8d80611308565b6001600160a01b039061133e908490611f53565b51169e612040565b60405162461bcd60e51b815260206004820152601760248201527f547265617375727920646f6573206e6f742065786973740000000000000000006044820152606490fd5b506001600160a01b0361139e8a85611f53565b5116600052600560205260ff60406000205416611224565b60405162461bcd60e51b815260206004820152602960248201527f496e76616c6964206d756c74692073656e6420726571756573742064617461206044820152687369676e617475726560b81b6064820152608490fd5b60405162461bcd60e51b8152602060048201526032602482015260008051602061251583398151915260448201527102062652067726561746572207468616e20360741b6064820152608490fd5b60405162461bcd60e51b815260206004820152603f602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f662074726561737572696573006064820152608490fd5b149050888b61105b565b60405162461bcd60e51b815260206004820152603b602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f6620746f6b656e7300000000006064820152608490fd5b60405162461bcd60e51b815260206004820152603c602482015260008051602061251583398151915260448201527f206d6174636820746865206e756d626572206f6620616d6f756e7473000000006064820152608490fd5b60405162461bcd60e51b815260206004820152602660248201527f5468697320726571756573742068617320616c7265616479206265656e2065786044820152651958dd5d195960d21b6064820152608490fd5b606460405162461bcd60e51b815260206004820152602060248201527f546869732072657175657374206d69737365642074686520646561646c696e656044820152fd5b6020809161161584611c87565b815201910190610fcf565b3461029357602036600319011261029357611639611c71565b6116416120bc565b600c546001600160a01b03918216918290821661166082821415611dab565b61166b821515611df7565b7fe72eaf6addaa195f3c83095031dd08f3a96808dcf047babed1fe4e4f69d6c622600080a36001600160a01b03191617600c55005b3461029357600036600319011261029357600b546040516001600160a01b039091168152602090f35b3461029357600036600319011261029357604051806008549182815260208091019260086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3916000905b82821061172d576106968561068a81890382611d49565b83546001600160a01b031686529485019460019384019390910190611716565b3461029357600036600319011261029357604051806004549182815260208091019260046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b916000905b8282106117b1576106968561068a81890382611d49565b83546001600160a01b03168652948501946001938401939091019061179a565b34610293576101003660031901126102935767ffffffffffffffff60243581811161029357611804903690600401611c9b565b6044929192358281116102935761181f903690600401611c9b565b9260643590811161029357611838903690600401611c9b565b929060ff60a4351660a435036102935760843542116115c457600435600052600a60205260ff604060002054166115705733600052600760205261188360ff60406000205416611e43565b838503611517578185036114be5760605192831596878781159687611b93575b50501561145b57861561140d576118be610100881115611ea2565b600435600052600a6020526040600020600160ff198254161790556040516118ee816110a6602082018886611eee565b60208151910120604051602081019061190c816110a6848d89611eee565b51902060405190916001600160fb1b038911610293576119dc928261194760206111a4958d60051b808c848401378101038084520182611d49565b602081519101206040519160208301937fd60669c8706c9bca64c8413c9803046610614781e97930f95003297d3fd840e7855260043560408501526060840152608083015260a082015260843560c082015260c081526119a681611d11565b5190206119b16120d0565b906040519161190160f01b83526002830152602282015260e4359060c43590604260a43591206121fb565b600b546001600160a01b039081169116036113b6579694939291906000976000955b888710611a4157604080518b815261ffff8b1660208201527ff7279a39c173eff8423944f5549c89148efa02a3f0a80be8feb8d11b9cbea08f918190810161038e565b9091929394959698868a90611b69575b15611346576001906000808787828f8f8f8e611ae8611aa6838e611aa06103c9836103c999611aee9b8d14611b5057611a88611f67565b905460039190911b1c6001600160a01b03169d612040565b9a612040565b6040516323b872dd60e01b602082019081526001600160a01b03998a166024830152999098166044890152356064808901919091528752959695608488611d49565b8c612040565b9251925af1611afb612064565b81611b21575b5015611b1a57811b81175b9997019594939291906119fe565b811b611b0c565b8051801592508215611b36575b50508c611b01565b611b4992506020809183010191016120a4565b8c80611b2e565b6001600160a01b03611b6183611f2a565b51169d612040565b506001600160a01b03611b7b89611f2a565b5116600052600560205260ff60406000205416611a51565b149050878a6118a3565b3461029357602036600319011261029357611bb6611c71565b611bbe6120bc565b600b546001600160a01b03918216918116611bdb83821415611dab565b8215611c185782907f2d025324f0a785e8c12d0a0d91a9caa49df4ef20ff87e0df7213a1d4f3157beb600080a36001600160a01b03191617600b55005b60405162461bcd60e51b815260206004820152602b60248201527f5a65726f2061646472657373206e6f7420616c6c6f77656420666f722073696760448201526a6e6572206164647265737360a81b6064820152608490fd5b600435906001600160a01b038216820361029357565b35906001600160a01b038216820361029357565b9181601f840112156102935782359167ffffffffffffffff8311610293576020808501948460051b01011161029357565b602090602060408183019282815285518094520193019160005b828110611cf4575050505090565b83516001600160a01b031685529381019392810192600101611ce6565b60e0810190811067ffffffffffffffff8211176101e857604052565b6040810190811067ffffffffffffffff8211176101e857604052565b90601f8019910116810190811067ffffffffffffffff8211176101e857604052565b919082519283825260005b848110611d97575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611d76565b15611db257565b60405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f7420736574207468652073616d65206164647265737300000000006044820152606490fd5b15611dfe57565b60405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656400000000000000006044820152606490fd5b15611e4a57565b60405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920616e206f70657261746f722063616e2065786563757465207468696044820152693990333ab731ba34b7b760b11b6064820152608490fd5b15611ea957565b60405162461bcd60e51b815260206004820152601d60248201527f546865206d6178696d756d2062617463682073697a65206973203235360000006044820152606490fd5b9060005b818110611eff5750505090565b91929091906001906001600160a01b03611f1886611c87565b16815260209081019401929101611ef2565b606051811015611f3d5760051b60800190565b634e487b7160e01b600052603260045260246000fd5b8051821015611f3d5760209160051b010190565b60045415611f3d5760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b90600090565b600854811015611f3d5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b600654811015611f3d5760066000527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600090565b600454811015611f3d5760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b9190811015611f3d5760051b0190565b356001600160a01b03811681036102935790565b3d1561209f573d9067ffffffffffffffff82116101e85760405191612093601f8201601f191660200184611d49565b82523d6000602084013e565b606090565b90816020910312610293575180151581036102935790565b6000546001600160a01b03163303610dce57565b307f0000000000000000000000009dd23a4a0845f10d65d293776b792af1131c7b306001600160a01b031614806121d2575b1561212b577fd96bb5a6b3e29f75436c98d9102002f1b0f856e221dc68d1b0127d1c09718bc990565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f718ae74a06a067b4bdd93040e5799741c27d6a7a77ee6a0a8b0a563d539db3fc60408201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260a0815260c0810181811067ffffffffffffffff8211176101e85760405251902090565b507f000000000000000000000000000000000000000000000000000000000000e7084614612102565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161227f57926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa156122735780516001600160a01b0381161561226a57918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b60048110156122fa578061229d575050565b600181036122b75760405163f645eedf60e01b8152600490fd5b600281036122d85760405163fce698f760e01b815260048101839052602490fd5b6003146122e25750565b602490604051906335e2f38360e21b82526004820152fd5b634e487b7160e01b600052602160045260246000fd5b60ff811461234e5760ff811690601f821161233c576040519161233283611d2d565b8252602082015290565b604051632cd44ac360e21b8152600490fd5b5060405160006002549060018260011c9060018416938415612432575b602094858410811461241e57838752869493929181156123fe575060011461239f575b505061239c92500382611d49565b90565b9093915060026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace936000915b8183106123e657505061239c9350820101388061238e565b855487840185015294850194869450918301916123ce565b91505061239c94925060ff191682840152151560051b820101388061238e565b634e487b7160e01b85526022600452602485fd5b91607f169161236b565b60ff811461245e5760ff811690601f821161233c576040519161233283611d2d565b5060405160006003549060018260011c906001841693841561250a575b602094858410811461241e57838752869493929181156123fe57506001146124ab57505061239c92500382611d49565b9093915060036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b936000915b8183106124f257505061239c9350820101388061238e565b855487840185015294850194869450918301916124da565b91607f169161247b56fe546865206e756d626572206f662062656e65666963696172696573206d757374a2646970667358221220855f0eea90c849247f63ffc68c81852ed30184eb54114151dda2046a1fef923c64736f6c63430008170033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000011084c82563abcbbfa14f739b0cca72cd5d356cb00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000f344192b9146132fc0e997d1666dc1531bf8f7cd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000004879fad6a33745c972512d4cf9743a68e50fa55100000000000000000000000000000000000000000000000000000000000000010000000000000000000000009647c7b2f286b241769d17d7edc989149ab0636d00000000000000000000000000000000000000000000000000000000000000010000000000000000000000009089a6fcf12b645e6d7f8879db96e0dfec9bea9b
-----Decoded View---------------
Arg [0] : _treasuries (address[]): 0x4879fad6a33745C972512D4Cf9743A68e50FA551
Arg [1] : _signerAddress (address): 0x11084c82563aBcbbfA14F739b0CcA72cd5D356CB
Arg [2] : _withdrawOperators (address[]): 0x9647c7B2F286b241769d17D7edC989149aB0636d
Arg [3] : _multiSendOperators (address[]): 0x9089a6fcF12B645E6D7f8879dB96E0DfEc9bEa9B
Arg [4] : _beneficiary (address): 0xf344192b9146132fC0e997D1666dC1531Bf8F7Cd
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000011084c82563abcbbfa14f739b0cca72cd5d356cb
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 000000000000000000000000f344192b9146132fc0e997d1666dc1531bf8f7cd
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 0000000000000000000000004879fad6a33745c972512d4cf9743a68e50fa551
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000009647c7b2f286b241769d17d7edc989149ab0636d
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000009089a6fcf12b645e6d7f8879db96e0dfec9bea9b
Deployed Bytecode Sourcemap
349:12561:18:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;;;;12503:20;349:12561;;;;;;;;;;;;;4058:61;4066:24;;;4058:61;:::i;:::-;12472:18;349:12561;4137:30;1383:3;4137:30;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;12472:18;349:12561;;:::i;:::-;;;;;;;;;;;;;;;;;;;1383:3;;349:12561;;;;;;;;;;12503:20;349:12561;;;;;;1383:3;;;;;;;;12539:33;349:12561;12539:33;;349:12561;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;9367:10;;;;349:12561;;;;9347:19;349:12561;;9326:120;349:12561;;;;;;9326:120;:::i;:::-;9477:32;;;349:12561;;9621:31;;;349:12561;;9763:18;;349:12561;;9869:29;;;;;;9861:71;1383:3;9869:29;;;9861:71;:::i;:::-;349:12561;9973:13;349:12561;9968:498;9988:18;;;;;;349:12561;;;;;;;;;1383:3;;;;10481:48;;349:12561;;1383:3;;10481:48;;;;349:12561;10008:3;10148:10;;;;;;;;1383:3;10148:10;349:12561;10148:10;;;;;;;;;10050:179;10148:10;10050:179;10148:10;10205;10148;;;;10281:9;10148:10;10281:9;10148:10;;:::i;:::-;;:::i;:::-;349:12561;1383:3;349:12561;;;;10176:11;349:12561;;10205:10;;:::i;:::-;349:12561;;;-1:-1:-1;;;10050:179:18;;;;;;-1:-1:-1;;;;;349:12561:18;;;10050:179;;;349:12561;;;;;;;1383:3;;;349:12561;1383:3;;;;349:12561;10050:179;;349:12561;;1383:3;;;;;;10050:179;;7518:25;;10050:179;;;;;;:::i;:::-;10281:9;;;:::i;:::-;:23;;;;;;;:::i;:::-;10327:60;;;10008:3;-1:-1:-1;10327:128:18;;;1383:3;;10406:19;;10327:128;10008:3;1383;9973:13;;;;;;;;;10327:128;1383:3;;10327:128;;:60;349:12561;;10339:18;;;-1:-1:-1;10339:18:18;;:47;;;;10327:60;;;;;;;10339:47;10361:25;;-1:-1:-1;10361:25:18;;;;;;;:::i;:::-;10339:47;;;;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;349:12561:18;;;;;;;;;;;;;1255:24:1;349:12561:18;;;1255:24:1;349:12561:18;;;;1294:43:1;349:12561:18;1294:43:1;;349:12561:18;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;12883:18;349:12561;;;;;;;;;;12883:18;349:12561;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1500:62:0;;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;;;;11518:13;349:12561;;;;;;;;;;4058:61;4066:24;;;4058:61;:::i;:::-;349:12561;;1383:3;4137:30;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;11547:24;349:12561;;;;;;;;;;:::i;:::-;;;;11518:13;349:12561;;;;;;1383:3;;;;;;;;349:12561;;;;;11547:24;349:12561;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;4452:66;4460:29;;;4452:66;:::i;:::-;349:12561;;;11692:13;349:12561;;;;;;;;;;;;;;;;;;4642:20;349:12561;;;;4642:20;;;4624:171;349:12561;;;;;;;;;;;;;4804:50;4823:31;;4804:16;4823:31;;:::i;:::-;1383:3;;;4804:16;;:::i;:::-;1383:3;;;;;;349:12561;;;;;;;;;;;;;;;;;1383:3;;349:12561;;;;;;4804:50;349:12561;;;;;;;11721:26;349:12561;;;;;;;;:::i;:::-;;;;;;;;;;;;1383:3;349:12561;;;;;;;;;;;11692:13;349:12561;;;;;1383:3;;;;;;;349:12561;;;;;11721:26;349:12561;;;;;;;;;;;;;;;;;;;;;;;;;4664:3;4687:12;;;;;:::i;:::-;1383:3;;;;;;349:12561;4687:31;4683:102;;4664:3;349:12561;;;;;;;;4629:11;;4683:102;4738:9;-1:-1:-1;4765:5:18;;-1:-1:-1;4765:5:18;;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;;4452:66;4460:29;;;4452:66;:::i;:::-;349:12561;;;12710:20;349:12561;;;;;;;;;;;;;12679:18;349:12561;;;;4642:20;349:12561;;;;4642:20;;;4624:171;349:12561;;;;;;;;;;;;;4804:50;4823:31;;4804:16;4823:31;;:::i;:::-;1383:3;;;4804:16;;:::i;:50::-;12679:18;349:12561;;;;;;;;;;:::i;:::-;12679:18;349:12561;;;;12710:20;349:12561;;;;;1383:3;;;;;;;12746:35;349:12561;12746:35;;349:12561;4664:3;4687:12;;;;;:::i;:::-;1383:3;;;;;;349:12561;4687:31;4683:102;;4664:3;349:12561;;;;;;;;4629:11;;4683:102;4738:9;-1:-1:-1;4765:5:18;;-1:-1:-1;4765:5:18;;;349:12561;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;;4452:66;4460:29;;;4452:66;:::i;:::-;349:12561;;;12184:19;349:12561;;;;;;;;;;;;;12154:17;349:12561;;;;4642:20;349:12561;;;;4642:20;;;4624:171;349:12561;;;;;;;;;;;;;4804:50;4823:31;;4804:16;4823:31;;:::i;:::-;1383:3;;;4804:16;;:::i;:50::-;12154:17;349:12561;;;;;;;;;;:::i;:::-;12154:17;349:12561;;;;12184:19;349:12561;;;;;1383:3;;;;;;;12219:34;349:12561;12219:34;;349:12561;4664:3;4687:12;;;;;:::i;:::-;1383:3;;;;;;349:12561;4687:31;4683:102;;4664:3;349:12561;;;;;;;;4629:11;;4683:102;4738:9;-1:-1:-1;4765:5:18;;-1:-1:-1;4765:5:18;;;349:12561;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;6099:41:13;:5;:41;:::i;:::-;6554:47;:8;:47;:::i;:::-;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;:::i;:::-;5590:13:13;;349:12561:18;;;;5625:4:13;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;349:12561:18;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;953:13:1;349:12561:18;-1:-1:-1;;;;;735:10:8;349:12561:18;;;1856:24:1;1852:96;;349:12561:18;;;;;;953:13:1;349:12561:18;;;735:10:8;;349:12561:18;;;;;;735:10:8;349:12561:18;;3052:40:0;349:12561:18;3052:40:0;;349:12561:18;1852:96:1;349:12561:18;;-1:-1:-1;;;1903:34:1;;735:10:8;349:12561:18;1903:34:1;;349:12561:18;;;1903:34:1;349:12561:18;;;;;;-1:-1:-1;;349:12561:18;;;;1500:62:0;;:::i;:::-;1610:20:1;349:12561:18;;-1:-1:-1;;;;;;349:12561:18;;;;;;;;;;;;;;;-1:-1:-1;;;;;349:12561:18;3052:40:0;349:12561:18;;3052:40:0;349:12561:18;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;-1:-1:-1;;;;;349:12561:18;;;;;;11981:19;349:12561;;;;;;;;;;;;;4058:61;4066:24;;;4058:61;:::i;:::-;11951:17;349:12561;4137:30;1383:3;4137:30;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;11951:17;349:12561;;:::i;:::-;;;;11981:19;349:12561;;;;;;1383:3;;;;;;;;12016:32;349:12561;12016:32;;349:12561;;;;;;;-1:-1:-1;;349:12561:18;;;;10937:11;349:12561;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;6012:15;:28;349:12561;;;;;;6131:9;349:12561;;;;;;;;;;6272:10;349:12561;;6251:20;349:12561;;6230:121;349:12561;;;;;;6230:121;:::i;:::-;6382:40;;;349:12561;;6540:39;;;349:12561;;;;6700:23;;;6832:64;;;;;;;;;349:12561;;;;;;7017:25;;349:12561;;7128:78;1383:3;7136:36;;;7128:78;:::i;:::-;349:12561;;;;6131:9;349:12561;;;;;7245:4;1383:3;;;;;;;;349:12561;;7518:25;;1383:3;349:12561;7518:25;;1383:3;;;:::i;:::-;7518:25;;;;;;;;;:::i;:::-;349:12561;;;7518:25;;7508:36;349:12561;;;7568:32;;1383:3;349:12561;7568:32;;1383:3;;;;:::i;7568:32::-;349:12561;7558:43;;349:12561;;7558:43;;-1:-1:-1;;;;;1383:3:18;;;;7021:8:12;1383:3:18;;7625:26;349:12561;1383:3;;6967:25:12;1383:3:18;349:12561;1383:3;7625:26;;;;;1383:3;;;7625:26;;;;;;;:::i;:::-;349:12561;;;7625:26;;7615:37;349:12561;;7434:251;349:12561;7434:251;;349:12561;7279:114;349:12561;;;;;1383:3;;349:12561;1383:3;;;349:12561;1383:3;;;349:12561;1383:3;;;349:12561;;;1383:3;;;349:12561;1383:3;7434:251;;;;;:::i;:::-;349:12561;7424:262;;5053:20:13;;:::i;:::-;3515:233:14;349:12561:18;3515:233:14;;-1:-1:-1;;;3515:233:14;;;;;;;;;;349:12561:18;;;;;;3515:233:14;349:12561:18;;3515:233:14;;6967:25:12;:::i;:::-;7021:8;;;;;:::i;:::-;7828:13:18;349:12561;-1:-1:-1;;;;;349:12561:18;;;;;7818:23;1383:3;;7898:14;;;;;;;349:12561;7927:13;349:12561;7922:1174;7942:25;;;;;;349:12561;;;;;;;;;1383:3;;;;9111:54;;349:12561;;1383:3;;9111:54;1383:3;7969;8167:50;;;;;;;;;;;;;;7969:3;1383;;;7245:4;8730:50;349:12561;8730:50;;;;;;;;;8632:226;8833:11;8730:50;;;;8798:17;;8730:50;;;;8910:10;8730:50;8910:10;8730:50;;;;;8750:13;;;:::i;:::-;1383:3;;;;;;;;-1:-1:-1;;;;;349:12561:18;;8798:17;:::i;:::-;8833:11;;:::i;:::-;349:12561;;-1:-1:-1;;;349:12561:18;8632:226;;;;;-1:-1:-1;;;;;349:12561:18;;;;8632:226;;349:12561;;;;;1383:3;;;349:12561;1383:3;;;;;349:12561;;;;8632:226;;349:12561;;8632:226;1383:3;349:12561;8632:226;:::i;:::-;8910:10;:::i;:::-;:24;;;;;;;:::i;:::-;8957:60;;;8730:50;-1:-1:-1;8957:128:18;;;1383:3;;9036:19;;8957:128;7969:3;7927:13;1383:3;;7927:13;;;;;;;;8957:128;1383:3;;8957:128;;:60;349:12561;;8969:18;;;-1:-1:-1;8969:47:18;;;;8957:60;;;;;;8969:47;8991:25;;;349:12561;8991:25;;;;;;;;:::i;:::-;8969:47;;;;8730:50;-1:-1:-1;;;;;349:12561:18;8766:14;;349:12561;;8766:14;:::i;:::-;1383:3;349:12561;8730:50;8798:17;:::i;1383:3::-;349:12561;;-1:-1:-1;;;1383:3:18;;349:12561;;1383:3;;;;349:12561;1383:3;;349:12561;1383:3;349:12561;;;1383:3;349:12561;;1383:3;8167:50;-1:-1:-1;;;;;;8202:14:18;;;;:::i;:::-;1383:3;349:12561;;;;;;;;;;;;8167:50;;1383:3;349:12561;;-1:-1:-1;;;1383:3:18;;349:12561;;1383:3;;;;349:12561;1383:3;;349:12561;1383:3;349:12561;;;1383:3;-1:-1:-1;;;349:12561:18;1383:3;;;349:12561;;1383:3;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;349:12561:18;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;349:12561:18;;;;;;;;;;;;6832:64;6853:43;;-1:-1:-1;6832:64:18;;;;349:12561;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;349:12561:18;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;349:12561:18;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;10639:11:18;349:12561;-1:-1:-1;;;;;349:12561:18;;;;;;;;10615:67;10623:27;;;;10615:67;:::i;:::-;10692:63;10700:26;;;10692:63;:::i;:::-;10770:45;349:12561;10770:45;;-1:-1:-1;;;;;;349:12561:18;;10639:11;349:12561;;;;;;;;-1:-1:-1;;349:12561:18;;;;11036:13;349:12561;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;12354:17;349:12561;;;;;;;;;;12354:17;349:12561;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;349:12561:18;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;6012:15;:28;349:12561;;;;;;6131:9;349:12561;;;;;;;;;;6272:10;349:12561;;6251:20;349:12561;;6230:121;349:12561;;;;;;6230:121;:::i;:::-;6382:40;;;349:12561;;6540:39;;;349:12561;;;;6700:23;;;6832:64;;;;;;;;;349:12561;;;;;;7017:25;;349:12561;;7128:78;349:12561;7136:36;;;7128:78;:::i;:::-;349:12561;;;;6131:9;349:12561;;;;;7245:4;1383:3;;;;;;;;349:12561;;7518:25;;1383:3;349:12561;7518:25;;1383:3;;;:::i;7518:25::-;349:12561;;;7518:25;;7508:36;349:12561;;;7568:32;;1383:3;7568:32;1383:3;;;;;;:::i;7568:32::-;349:12561;7558:43;;349:12561;;7558:43;;-1:-1:-1;;;;;1383:3:18;;;;7021:8:12;1383:3:18;;7625:26;349:12561;6967:25:12;1383:3:18;;;;7625:26;;;;;1383:3;;;7625:26;;;;;;;:::i;:::-;349:12561;;;7625:26;;7615:37;349:12561;;7434:251;349:12561;7434:251;;349:12561;7279:114;349:12561;;;;;1383:3;;349:12561;;1383:3;;349:12561;1383:3;;;349:12561;1383:3;;;349:12561;;;1383:3;;;349:12561;1383:3;7434:251;;;;;:::i;:::-;349:12561;7424:262;;5053:20:13;;:::i;:::-;3515:233:14;349:12561:18;3515:233:14;;-1:-1:-1;;;3515:233:14;;;;;;;;;;349:12561:18;;;;;;3515:233:14;349:12561:18;;3515:233:14;;6967:25:12;:::i;7021:8::-;7828:13:18;349:12561;-1:-1:-1;;;;;349:12561:18;;;;;7818:23;1383:3;;7898:14;;;;;;349:12561;7927:13;349:12561;7922:1174;7942:25;;;;;;349:12561;;;;;;;;;1383:3;;;;9111:54;;349:12561;;1383:3;;9111:54;1383:3;7969;8167:50;;;;;;;;;;;;;7969:3;1383;;;7245:4;8730:50;349:12561;8730:50;;;;;;;;8632:226;8833:11;8730:50;;8798:17;;8730:50;8910:10;8730:50;8910:10;8730:50;;;;;8750:13;;:::i;:::-;1383:3;;;;;;;;-1:-1:-1;;;;;349:12561:18;;8798:17;:::i;:::-;8833:11;;:::i;:::-;349:12561;;-1:-1:-1;;;349:12561:18;8632:226;;;;;-1:-1:-1;;;;;349:12561:18;;;;8632:226;;349:12561;;;;;1383:3;;;349:12561;1383:3;;;;;349:12561;;;;8632:226;;349:12561;;8632:226;1383:3;349:12561;8632:226;:::i;:::-;8910:10;;:::i;:::-;:24;;;;;;;:::i;:::-;8957:60;;;8730:50;-1:-1:-1;8957:128:18;;;1383:3;;9036:19;;8957:128;7969:3;7927:13;1383:3;;7927:13;;;;;;;8957:128;1383:3;;8957:128;;:60;349:12561;;8969:18;;;-1:-1:-1;8969:47:18;;;;8957:60;;;;;;8969:47;8991:25;;;349:12561;8991:25;;;;;;;;:::i;:::-;8969:47;;;;8730:50;-1:-1:-1;;;;;8766:14:18;;;:::i;:::-;1383:3;349:12561;8730:50;8798:17;:::i;8167:50::-;-1:-1:-1;;;;;;8202:14:18;;;:::i;:::-;1383:3;349:12561;;;1383:3;349:12561;;;;;;;;8167:50;;6832:64;6853:43;;-1:-1:-1;6832:64:18;;;;349:12561;;;;;;-1:-1:-1;;349:12561:18;;;;;;:::i;:::-;1500:62:0;;:::i;:::-;11165:13:18;349:12561;-1:-1:-1;;;;;349:12561:18;;;;;;11139:71;11147:31;;;;11139:71;:::i;:::-;11228:28;;349:12561;;11319:44;;;349:12561;11319:44;;-1:-1:-1;;;;;;349:12561:18;;11165:13;349:12561;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;-1:-1:-1;;;;;349:12561:18;;;;;;:::o;:::-;;;-1:-1:-1;;;;;349:12561:18;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;1383:3;349:12561;;;;;;;;;;;1383:3;349:12561;:::o;:::-;;;7518:25;;349:12561;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;-1:-1:-1;349:12561:18;;;;;;;;;-1:-1:-1;349:12561:18;;;;;;;;;7518:25;;349:12561;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;-1:-1:-1;;;349:12561:18;;;;;;;;;;;;;;;;;-1:-1:-1;;;349:12561:18;;;;;;;1383:3;;;;:::o;:::-;349:12561;;-1:-1:-1;;;1383:3:18;;;;;;;;;;;349:12561;1383:3;349:12561;;;1383:3;;;;;;;;;;;;;;;;;:::o;:::-;349:12561;;;;;1383:3;;-1:-1:-1;;;;;349:12561:18;;;:::i;:::-;;;;;;;;;;;1383:3;;;;;349:12561;;1383:3;;;;;;;;;;:::o;:::-;349:12561;;;1383:3;;;;;;;;;349:12561;;1383:3;;;;;;;;;;;;:::o;:::-;8632:226;349:12561;1383:3;;;8632:226;6722:1;349:12561;;1383:3;6722:1;1383:3;:::o;:::-;11951:17;349:12561;1383:3;;;;;11951:17;-1:-1:-1;349:12561:18;;1383:3;;-1:-1:-1;1383:3:18;:::o;:::-;12679:18;349:12561;1383:3;;;;;12679:18;-1:-1:-1;349:12561:18;;1383:3;;-1:-1:-1;1383:3:18;:::o;:::-;349:12561;;1383:3;;;;;349:12561;-1:-1:-1;349:12561:18;;1383:3;;-1:-1:-1;1383:3:18;:::o;:::-;;;;;;;;;;;;:::o;:::-;;-1:-1:-1;;;;;349:12561:18;;;;;;1383:3;:::o;:::-;;;;;;;;;;;;349:12561;;;;7518:25;349:12561;;-1:-1:-1;;349:12561:18;1383:3;;349:12561;;:::i;:::-;1383:3;;;-1:-1:-1;1383:3:18;;;;:::o;:::-;349:12561;1383:3;:::o;:::-;;;;;;;;;;349:12561;;;1383:3;;;;;:::o;1796:162:0:-;1710:6;349:12561:18;-1:-1:-1;;;;;349:12561:18;735:10:8;1855:23:0;1851:101;;1796:162::o;3845:262:13:-;3929:4;3938:11;-1:-1:-1;;;;;349:12561:18;3921:28:13;;:63;;3845:262;3917:184;;;4007:22;4000:29;:::o;3917:184::-;349:12561:18;;4204:80:13;;;349:12561:18;2079:95:13;349:12561:18;;4226:11:13;349:12561:18;2079:95:13;;349:12561:18;4239:14:13;2079:95;;;349:12561:18;4255:13:13;2079:95;;;349:12561:18;3929:4:13;2079:95;;;349:12561:18;2079:95:13;4204:80;;2079:95;349:12561:18;;;;;;;;;;;;;;4194:91:13;;4060:30;:::o;3921:63::-;3970:14;;3953:13;:31;3921:63;;5140:1530:12;;;6199:66;6186:79;;6182:164;;349:12561:18;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6457:24:12;;;;;;;;;;;;;;-1:-1:-1;;;;;349:12561:18;;6495:20:12;6491:113;;6614:49;;5140:1530;:::o;6491:113::-;6531:62;;;6457:24;6531:62;;:::o;6457:24::-;349:12561:18;;;;;;;;;;6182:164:12;6281:54;;;6297:1;6281:54;6301:30;6281:54;;:::o;7196:532::-;349:12561:18;;;;;;7282:29:12;;;7327:7;;:::o;7278:444::-;349:12561:18;7378:38:12;;349:12561:18;;;;-1:-1:-1;;;7439:23:12;;349:12561:18;;7439:23:12;7374:348;7492:35;7483:44;;7492:35;;349:12561:18;;-1:-1:-1;;;7550:46:12;;349:12561:18;7550:46:12;;349:12561:18;;;;;7550:46:12;7479:243;7626:30;7617:39;7613:109;;7479:243;7196:532::o;7613:109::-;349:12561:18;;;;7679:32:12;;;;;;349:12561:18;7679:32:12;;349:12561:18;7679:32:12;349:12561:18;;;;7291:20:12;349:12561:18;;;;;7291:20:12;349:12561:18;3385:267:9;1390:66;3508:46;;1390:66;;;2652:40;;2706:11;2715:2;2706:11;;2702:69;;1383:3:18;349:12561;;;;;:::i;:::-;2367:90:9;;2311:2;349:12561:18;;2367:90:9;3570:22;:::o;2702:69::-;349:12561:18;;-1:-1:-1;;;2740:20:9;;;;;3504:142;349:12561:18;;;-1:-1:-1;6126:13:13;1390:66:9;;;;;;;;;;;;;;;3504:142;1390:66;;;;;;;;;349:12561:18;;;;;;;;1390:66:9;;;;;;;;;;;;;;;;;;:::i;:::-;3623:12;:::o;1390:66::-;349:12561:18;;;;6126:13:13;-1:-1:-1;349:12561:18;;1390:66:9;-1:-1:-1;1390:66:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1390:66:9;;;;;;;1383:3:18;;;1390:66:9;1383:3:18;;;;;1390:66:9;349:12561:18;;;1390:66:9;;;;;;;;;;;;;-1:-1:-1;;;1390:66:9;;;;;;349:12561:18;1390:66:9;;;;;;;;3385:267;1390:66;3508:46;;1390:66;;;2652:40;;2706:11;2715:2;2706:11;;2702:69;;1383:3:18;349:12561;;;;;:::i;3504:142:9:-;349:12561:18;;;-1:-1:-1;6584:16:13;1390:66:9;;;;;;;;;;;;;;;3504:142;1390:66;;;;;;;;;349:12561:18;;;;;;;;1390:66:9;;;;;;;;;;;;;;;;;:::i;:::-;349:12561:18;;;;6584:16:13;-1:-1:-1;349:12561:18;;1390:66:9;-1:-1:-1;1390:66:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1390:66:9;;;;;;;;;;;;
Swarm Source
ipfs://855f0eea90c849247f63ffc68c81852ed30184eb54114151dda2046a1fef923c
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.