Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 16307783 | 170 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
BattleWallet
Compiler Version
v0.8.28+commit.7893614a
ZkSolc Version
v1.5.15
Optimization Enabled:
Yes with Mode 3
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {AccessControlUpgradeable} from "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import {AddressInfo, ERC20Entry} from "./data/Common.sol";
import {VerifiedCompetitionDataSigned, ProofOfGameSigned, ProofOfGame, ProofOfEntrySigned, ProofOfEntry, Game} from "./data/ProofOfGame.sol";
import {WithdrawTicketSigned, WithdrawTicket} from "./data/WithdrawTicket.sol";
import {IBattleWallet} from "./interfaces/IBattleWallet.sol";
import {IUniversalSigValidator} from "./interfaces/IUniversalSigValidator.sol";
import {ProofOfEntrySignatureVerification} from "./signature/ProofOfEntrySignatureVerification.sol";
import {VerifiedCompetitionSignatureVerification} from "./signature/VerifiedCompetitionSignatureVerification.sol";
import {WithdrawTicketSignatureVerification} from "./signature/WithdrawTicketSignatureVerification.sol";
uint256 constant SHARE_PRECISION = 1_000_000_000; // 100%
uint256 constant MAX_TOTAL_COMMISSION = 400_000_000; // 40%
contract BattleWallet is
IBattleWallet,
ProofOfEntrySignatureVerification,
VerifiedCompetitionSignatureVerification,
WithdrawTicketSignatureVerification,
AccessControlUpgradeable
{
using SafeERC20 for IERC20;
bytes32 public constant AUTHORITY_MANAGER_ROLE = keccak256("AUTHORITY_MANAGER_ROLE");
bytes32 public constant TREASURY_MANAGER_ROLE = keccak256("TREASURY_MANAGER_ROLE");
address public matchAuthority;
address public withdrawAuthority;
address public elympicsTreasury;
mapping(bytes16 gameId => address treasury) public developerTreasuries;
mapping(address player => mapping(address token => uint256 balance)) private balances;
mapping(bytes22 nonce => bool isNonceUsed) private nonces;
address public signatureValidator;
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {
_disableInitializers();
}
function reinitializeV2(address _signatureValidator) external reinitializer(2) {
require(_signatureValidator != address(0), InvalidAddress());
signatureValidator = _signatureValidator;
}
function topUp(address token, uint256 amount) external {
IERC20(token).safeTransferFrom(msg.sender, address(this), amount);
balances[msg.sender][token] += amount;
emit PlayerToppedUp(msg.sender, token, amount);
}
function withdraw(WithdrawTicketSigned memory withdrawTicket) external {
// Validate data
WithdrawTicket memory ticket = withdrawTicket.ticket;
AddressInfo memory verifyingContract = ticket.verifyingContract;
ERC20Entry memory request = ticket.request;
require(verifyingContract.target == address(this), InvalidVerifyingContractAddress());
require(verifyingContract.chainId == block.chainid, InvalidVerifyingContractChainId());
require(verify(withdrawTicket, withdrawAuthority), InvalidWithdrawTicketSignature());
require(!nonces[ticket.nonce], NonceAlreadyUsed(ticket.nonce));
require(block.timestamp <= ticket.deadline, WithdrawTicketSubmittedPastDeadline());
require(
balanceOf(ticket.player, request.token) >= request.amount,
InsufficientPlayerFunds(ticket.player, balanceOf(ticket.player, request.token), request.amount)
);
// Process withdraw
nonces[ticket.nonce] = true;
balances[ticket.player][request.token] -= request.amount;
IERC20(request.token).safeTransfer(ticket.player, request.amount);
emit PlayerWithdrew(ticket.player, request.token, request.amount);
}
function conclude(VerifiedCompetitionDataSigned memory competitionData) external {
// Validate data
ProofOfGameSigned memory signedProofOfGame = competitionData.proofOfGameSigned;
AddressInfo memory verifyingContract = competitionData.verifyingContract;
ProofOfGame memory proofOfGame = signedProofOfGame.proofOfGame;
Game memory game = proofOfGame.game;
require(verifyingContract.target == address(this), InvalidVerifyingContractAddress());
require(verifyingContract.chainId == block.chainid, InvalidVerifyingContractChainId());
require(verify(competitionData, matchAuthority), InvalidVerifiedCompetitionDataSignature());
require(verify(signedProofOfGame, matchAuthority), InvalidProofOfGameSignature());
require(
competitionData.elympicsCommission + competitionData.developerCommission <= MAX_TOTAL_COMMISSION,
TotalCommissionExceedsMaxValue(
competitionData.elympicsCommission + competitionData.developerCommission,
MAX_TOTAL_COMMISSION
)
);
bytes16 gameId = game.id;
require(developerTreasuries[gameId] != address(0), DeveloperTreasuryNotSet(gameId));
// Process player entries and results
(ERC20Entry memory bet, uint256 signedEntriesCount) = processPlayerEntries(proofOfGame.entries);
(uint256 resultsLength, int8 bestScore, uint256 winnersCount) = processPlayerResults(proofOfGame.results);
require(
signedEntriesCount == resultsLength,
MismatchedEntriesAndResultsLengths(signedEntriesCount, resultsLength)
);
// Compute balance changes
uint256 totalPrizePool = bet.amount * signedEntriesCount;
uint256 elympicsCommissionValue = (totalPrizePool * competitionData.elympicsCommission) / SHARE_PRECISION;
uint256 developerCommissionValue = (totalPrizePool * competitionData.developerCommission) / SHARE_PRECISION;
uint256 totalCommissionValue = elympicsCommissionValue + developerCommissionValue;
uint256 winnersPrizePool = totalPrizePool - totalCommissionValue;
uint256 winnersPrizeShare = winnersPrizePool / winnersCount; // winnersCount >= 1
uint256 leftover = winnersPrizePool % winnersCount;
bool shouldCreditLeftover = leftover > 0 ? true : false;
// Update balances
ProofOfEntrySigned[] memory entries = proofOfGame.entries;
int8[] memory results = proofOfGame.results;
for (uint256 i = 0; i < resultsLength; i++) {
address player = entries[i].proofOfEntry.player;
int8 result = results[i];
if (result == bestScore) {
if (winnersPrizeShare >= bet.amount) {
balances[player][bet.token] += winnersPrizeShare - bet.amount;
} else {
balances[player][bet.token] -= bet.amount - winnersPrizeShare;
}
if (shouldCreditLeftover) {
shouldCreditLeftover = false;
balances[player][bet.token] += leftover;
}
} else {
balances[player][bet.token] -= bet.amount;
}
}
safeTransferToken(IERC20(bet.token), elympicsTreasury, elympicsCommissionValue);
safeTransferToken(IERC20(bet.token), developerTreasuries[gameId], developerCommissionValue);
emit MatchConcluded();
}
function setMatchAuthority(address newMatchAuthority) external onlyRole(AUTHORITY_MANAGER_ROLE) {
require(newMatchAuthority != address(0), InvalidAddress());
matchAuthority = newMatchAuthority;
emit MatchAuthorityUpdated(newMatchAuthority);
}
function setWithdrawAuthority(address newWithdrawAuthority) external onlyRole(AUTHORITY_MANAGER_ROLE) {
require(newWithdrawAuthority != address(0), InvalidAddress());
withdrawAuthority = newWithdrawAuthority;
emit WithdrawAuthorityUpdated(newWithdrawAuthority);
}
function setElympicsTreasury(address newElympicsTreasury) external onlyRole(TREASURY_MANAGER_ROLE) {
require(newElympicsTreasury != address(0), InvalidAddress());
elympicsTreasury = newElympicsTreasury;
emit ElympicsTreasuryUpdated(newElympicsTreasury);
}
function setDeveloperTreasury(bytes16 gameId, address developerTreasury) external onlyRole(TREASURY_MANAGER_ROLE) {
developerTreasuries[gameId] = developerTreasury;
emit DeveloperTreasuryUpdated(gameId, developerTreasury);
}
function balanceOf(address player, address token) public view returns (uint256) {
return balances[player][token];
}
function isNonceUsed(bytes22 nonce) public view returns (bool) {
return nonces[nonce];
}
function version() external view returns (uint8) {
return uint8(_getInitializedVersion());
}
function processPlayerEntries(
ProofOfEntrySigned[] memory signedEntries
) internal returns (ERC20Entry memory, uint256) {
uint256 signedEntriesCount = signedEntries.length;
require(signedEntriesCount > 0, ProofsOfEntryNotFound());
ERC20Entry memory firstBet = signedEntries[0].proofOfEntry.bet;
for (uint256 i = 0; i < signedEntriesCount; i++) {
ProofOfEntrySigned memory signedProofOfEntry = signedEntries[i];
ProofOfEntry memory proofOfEntry = signedProofOfEntry.proofOfEntry;
ERC20Entry memory bet = proofOfEntry.bet;
require(
IUniversalSigValidator(signatureValidator).isValidSig(
proofOfEntry.player,
_hashTypedDataV4(keccak256(encode(proofOfEntry))),
signedProofOfEntry.signature
),
InvalidProofOfEntrySignature(i)
);
require(!nonces[proofOfEntry.nonce], NonceAlreadyUsed(proofOfEntry.nonce));
require(bet.token == firstBet.token, MismatchedProofOfEntryBetToken(i));
require(bet.amount == firstBet.amount, MismatchedProofOfEntryBetAmount(i));
uint256 playerBalance = balanceOf(proofOfEntry.player, firstBet.token);
require(
playerBalance >= firstBet.amount,
InsufficientPlayerFunds(proofOfEntry.player, playerBalance, firstBet.amount)
);
nonces[proofOfEntry.nonce] = true;
}
return (firstBet, signedEntriesCount);
}
function processPlayerResults(int8[] memory results) internal pure returns (uint256, int8, uint256) {
int8 bestScore = type(int8).min;
uint256 winnersCount = 0;
uint256 resultsLength = results.length;
for (uint256 i = 0; i < resultsLength; i++) {
if (results[i] > bestScore) {
bestScore = results[i];
winnersCount = 1;
} else if (results[i] == bestScore) {
winnersCount++;
}
}
return (resultsLength, bestScore, winnersCount);
}
function safeTransferToken(IERC20 token, address to, uint256 amount) internal {
if (amount == 0) {
return;
}
token.safeTransfer(to, amount);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
struct AddressInfo {
address target;
uint256 chainId;
}
struct ERC20Entry {
address token;
uint256 amount;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {ERC20Entry, AddressInfo} from "./Common.sol";
/**
* @param player Address of a player issuing a withdraw
* @param request Withdraw request details
* @param verifyingContract Address details of the contract meant to validate this ticket
* @param nonce [ 42 bits timestamp ] ++ [ 6 bits version ] ++ [ 128 bits player id ]
* @param deadline Unix timestamp, after which the ticket won't be accepted anymore
*/
struct WithdrawTicket {
address player;
ERC20Entry request;
AddressInfo verifyingContract;
bytes22 nonce;
uint64 deadline;
}
struct WithdrawTicketSigned {
WithdrawTicket ticket;
bytes signature;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {EIP712Upgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/EIP712Upgradeable.sol";
import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {ProofOfEntry, ERC20Entry} from "../data/ProofOfGame.sol";
abstract contract ProofOfEntrySignatureVerification is EIP712Upgradeable {
using ECDSA for bytes32;
bytes32 public constant PROOF_OF_ENTRY_TYPEHASH =
keccak256("ProofOfEntry(address player,ERC20Entry bet,bytes22 nonce)ERC20Entry(address token,uint256 amount)");
bytes32 public constant ERC20_ENTRY_TYPEHASH = keccak256("ERC20Entry(address token,uint256 amount)");
function __ProofOfEntrySignatureVerification_init() internal onlyInitializing {
__EIP712_init("ElympicsProofOfEntry", "2");
}
function verify(
ProofOfEntry memory proofOfEntry,
bytes memory signature,
address signer
) public view returns (bool) {
return recoverSigner(proofOfEntry, signature) == signer;
}
function recoverSigner(ProofOfEntry memory proofOfEntry, bytes memory signature) public view returns (address) {
return _hashTypedDataV4(keccak256(encode(proofOfEntry))).recover(signature);
}
function encode(ProofOfEntry memory proofOfEntry) public pure returns (bytes memory) {
return
abi.encode(
PROOF_OF_ENTRY_TYPEHASH,
proofOfEntry.player,
keccak256(encode(proofOfEntry.bet)),
proofOfEntry.nonce
);
}
function encode(ERC20Entry memory entry) public pure returns (bytes memory) {
return abi.encode(ERC20_ENTRY_TYPEHASH, entry.token, entry.amount);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {ERC20Entry, AddressInfo} from "./Common.sol";
/**
* @param player Address of a player accepting a bet
* @param bet Bet details
* @param nonce [ 42 bits timestamp ] ++ [ 6 bits version ] ++ [ 128 bits player id ]
*/
struct ProofOfEntry {
address player;
ERC20Entry bet;
bytes22 nonce;
}
struct ProofOfEntrySigned {
ProofOfEntry proofOfEntry;
bytes signature;
}
struct Game {
bytes16 id;
bytes16 version;
bytes32 data;
}
struct ProofOfGame {
ProofOfEntrySigned[] entries;
int8[] results;
Game game;
}
struct ProofOfGameSigned {
ProofOfGame proofOfGame;
bytes signature;
}
struct VerifiedCompetitionDataSigned {
ProofOfGameSigned proofOfGameSigned;
uint256 developerCommission;
uint256 elympicsCommission;
AddressInfo verifyingContract;
bytes signature;
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
interface IERC1271Wallet {
function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue);
}
interface IUniversalSigValidator {
function isValidSig(address _signer, bytes32 _hash, bytes calldata _signature) external returns (bool);
error ERC1271Revert(bytes error);
error ERC6492DeployFailed(bytes error);
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {VerifiedCompetitionDataSigned, ProofOfGameSigned} from "../data/ProofOfGame.sol";
import {ProofOfGameSignatureVerification} from "./ProofOfGameSignatureVerification.sol";
contract VerifiedCompetitionSignatureVerification is ProofOfGameSignatureVerification {
function verify(VerifiedCompetitionDataSigned memory data, address signer) public pure returns (bool) {
bytes32 messageHash = getVerifiedCompetitionDataHash(data);
bytes32 ethSignedMessageHash = getEthSignedDataHash(messageHash);
return recoverSigner(ethSignedMessageHash, data.signature) == signer;
}
function getVerifiedCompetitionDataHash(
VerifiedCompetitionDataSigned memory competitionData
) public pure returns (bytes32) {
return keccak256(packVerifiedCompetitionData(competitionData));
}
function packProofOfGameSigned(ProofOfGameSigned memory proofOfGameSigned) internal pure returns (bytes memory) {
return abi.encodePacked(packProofOfGame(proofOfGameSigned.proofOfGame), proofOfGameSigned.signature);
}
function packVerifiedCompetitionData(
VerifiedCompetitionDataSigned memory competitionData
) public pure returns (bytes memory) {
return
abi.encodePacked(
packProofOfGameSigned(competitionData.proofOfGameSigned),
competitionData.developerCommission,
competitionData.elympicsCommission,
packAddressInfo(competitionData.verifyingContract)
);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {WithdrawTicketSigned, WithdrawTicket} from "../data/WithdrawTicket.sol";
import {CommonSignatureVerification} from "./CommonSignatureVerification.sol";
contract WithdrawTicketSignatureVerification is CommonSignatureVerification {
function verify(WithdrawTicketSigned memory withdrawTicketSigned, address signer) public pure returns (bool) {
bytes32 messageHash = getWithdrawTicketHash(withdrawTicketSigned.ticket);
bytes32 ethSignedMessageHash = getEthSignedDataHash(messageHash);
return recoverSigner(ethSignedMessageHash, withdrawTicketSigned.signature) == signer;
}
function getWithdrawTicketHash(WithdrawTicket memory withdrawTicket) public pure returns (bytes32) {
return keccak256(packWithdrawTicket(withdrawTicket));
}
function packWithdrawTicket(WithdrawTicket memory withdrawTicket) public pure returns (bytes memory) {
return
abi.encodePacked(
withdrawTicket.player,
packErc20Entry(withdrawTicket.request),
packAddressInfo(withdrawTicket.verifyingContract),
withdrawTicket.nonce
);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {VerifiedCompetitionDataSigned} from "../data/ProofOfGame.sol";
import {WithdrawTicketSigned} from "../data/WithdrawTicket.sol";
interface IBattleWalletErrors {
error DeveloperTreasuryNotSet(bytes16 gameId);
error InsufficientPlayerFunds(address player, uint256 playerFunds, uint256 requiredFunds);
error InvalidAddress();
error InvalidProofOfEntrySignature(uint256 index);
error InvalidProofOfGameSignature();
error InvalidVerifiedCompetitionDataSignature();
error InvalidVerifyingContractAddress();
error InvalidVerifyingContractChainId();
error InvalidWithdrawTicketSignature();
error MismatchedEntriesAndResultsLengths(uint256 entriesLength, uint256 resultsLength);
/**
* @param index Index of the first entry with bet token different than the first entry in array
*/
error MismatchedProofOfEntryBetToken(uint256 index);
/**
* @param index Index of the first entry with bet amount different than the first entry in array
*/
error MismatchedProofOfEntryBetAmount(uint256 index);
error NonceAlreadyUsed(bytes22 nonce);
error ProofsOfEntryNotFound();
error TotalCommissionExceedsMaxValue(uint256 totalCommission, uint256 maxTotalCommission);
error WithdrawTicketSubmittedPastDeadline();
}
interface IBattleWallet is IBattleWalletErrors {
event PlayerToppedUp(address indexed player, address indexed token, uint256 amount);
event PlayerWithdrew(address indexed player, address indexed token, uint256 amount);
event MatchConcluded();
event MatchAuthorityUpdated(address newMatchAuthority);
event WithdrawAuthorityUpdated(address newWithdrawAuthority);
event ElympicsTreasuryUpdated(address newElympicsTreasury);
event DeveloperTreasuryUpdated(bytes16 indexed gameId, address newDeveloperTreasury);
function topUp(address token, uint256 amount) external;
function withdraw(WithdrawTicketSigned memory withdrawTicket) external;
function conclude(VerifiedCompetitionDataSigned memory competitionData) external;
function setMatchAuthority(address newMatchAuthority) external;
function setWithdrawAuthority(address newWithdrawAuthority) external;
function setElympicsTreasury(address newElympicsTreasury) external;
function setDeveloperTreasury(bytes16 gameId, address developerTreasury) external;
function balanceOf(address player, address token) external view returns (uint256);
function isNonceUsed(bytes22 nonce) external view returns (bool);
function version() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (access/AccessControl.sol)
pragma solidity ^0.8.20;
import {IAccessControl} from "@openzeppelin/contracts/access/IAccessControl.sol";
import {ContextUpgradeable} from "../utils/ContextUpgradeable.sol";
import {ERC165Upgradeable} from "../utils/introspection/ERC165Upgradeable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Contract module that allows children to implement role-based access
* control mechanisms. This is a lightweight version that doesn't allow enumerating role
* members except through off-chain means by accessing the contract event logs. Some
* applications may benefit from on-chain enumerability, for those cases see
* {AccessControlEnumerable}.
*
* Roles are referred to by their `bytes32` identifier. These should be exposed
* in the external API and be unique. The best way to achieve this is by
* using `public constant` hash digests:
*
* ```solidity
* bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
* ```
*
* Roles can be used to represent a set of permissions. To restrict access to a
* function call, use {hasRole}:
*
* ```solidity
* function foo() public {
* require(hasRole(MY_ROLE, msg.sender));
* ...
* }
* ```
*
* Roles can be granted and revoked dynamically via the {grantRole} and
* {revokeRole} functions. Each role has an associated admin role, and only
* accounts that have a role's admin role can call {grantRole} and {revokeRole}.
*
* By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
* that only accounts with this role will be able to grant or revoke other
* roles. More complex role relationships can be created by using
* {_setRoleAdmin}.
*
* WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
* grant and revoke this role. Extra precautions should be taken to secure
* accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}
* to enforce additional security measures for this role.
*/
abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControl, ERC165Upgradeable {
struct RoleData {
mapping(address account => bool) hasRole;
bytes32 adminRole;
}
bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;
/// @custom:storage-location erc7201:openzeppelin.storage.AccessControl
struct AccessControlStorage {
mapping(bytes32 role => RoleData) _roles;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.AccessControl")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant AccessControlStorageLocation = 0x02dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b626800;
function _getAccessControlStorage() private pure returns (AccessControlStorage storage $) {
assembly {
$.slot := AccessControlStorageLocation
}
}
/**
* @dev Modifier that checks that an account has a specific role. Reverts
* with an {AccessControlUnauthorizedAccount} error including the required role.
*/
modifier onlyRole(bytes32 role) {
_checkRole(role);
_;
}
function __AccessControl_init() internal onlyInitializing {
}
function __AccessControl_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) public view virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
return $._roles[role].hasRole[account];
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()`
* is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier.
*/
function _checkRole(bytes32 role) internal view virtual {
_checkRole(role, _msgSender());
}
/**
* @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account`
* is missing `role`.
*/
function _checkRole(bytes32 role, address account) internal view virtual {
if (!hasRole(role, account)) {
revert AccessControlUnauthorizedAccount(account, role);
}
}
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) {
AccessControlStorage storage $ = _getAccessControlStorage();
return $._roles[role].adminRole;
}
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleGranted} event.
*/
function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_grantRole(role, account);
}
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*
* May emit a {RoleRevoked} event.
*/
function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) {
_revokeRole(role, account);
}
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been revoked `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*
* May emit a {RoleRevoked} event.
*/
function renounceRole(bytes32 role, address callerConfirmation) public virtual {
if (callerConfirmation != _msgSender()) {
revert AccessControlBadConfirmation();
}
_revokeRole(role, callerConfirmation);
}
/**
* @dev Sets `adminRole` as ``role``'s admin role.
*
* Emits a {RoleAdminChanged} event.
*/
function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
AccessControlStorage storage $ = _getAccessControlStorage();
bytes32 previousAdminRole = getRoleAdmin(role);
$._roles[role].adminRole = adminRole;
emit RoleAdminChanged(role, previousAdminRole, adminRole);
}
/**
* @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted.
*
* Internal function without access restriction.
*
* May emit a {RoleGranted} event.
*/
function _grantRole(bytes32 role, address account) internal virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
if (!hasRole(role, account)) {
$._roles[role].hasRole[account] = true;
emit RoleGranted(role, account, _msgSender());
return true;
} else {
return false;
}
}
/**
* @dev Attempts to revoke `role` from `account` and returns a boolean indicating if `role` was revoked.
*
* Internal function without access restriction.
*
* May emit a {RoleRevoked} event.
*/
function _revokeRole(bytes32 role, address account) internal virtual returns (bool) {
AccessControlStorage storage $ = _getAccessControlStorage();
if (hasRole(role, account)) {
$._roles[role].hasRole[account] = false;
emit RoleRevoked(role, account, _msgSender());
return true;
} else {
return false;
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
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.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {ERC20Entry, AddressInfo} from "../data/ProofOfGame.sol";
import {OffChainSignatureVerification} from "./OffChainSignatureVerification.sol";
contract CommonSignatureVerification is OffChainSignatureVerification {
function packErc20Entry(ERC20Entry memory entry) public pure returns (bytes memory) {
return abi.encodePacked(entry.token, entry.amount);
}
function packAddressInfo(AddressInfo memory addressInfo) public pure returns (bytes memory) {
return abi.encodePacked(addressInfo.target, addressInfo.chainId);
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
import {ProofOfGameSigned, ProofOfGame, ProofOfEntrySigned, ProofOfEntry, Game} from "../data/ProofOfGame.sol";
import {CommonSignatureVerification} from "./CommonSignatureVerification.sol";
contract ProofOfGameSignatureVerification is CommonSignatureVerification {
function verify(ProofOfGameSigned memory proofOfGameSigned, address signer) public pure returns (bool) {
bytes32 messageHash = getProofOfGameDataHash(proofOfGameSigned.proofOfGame);
bytes32 ethSignedMessageHash = getEthSignedDataHash(messageHash);
return recoverSigner(ethSignedMessageHash, proofOfGameSigned.signature) == signer;
}
function getProofOfGameDataHash(ProofOfGame memory proofOfGame) public pure returns (bytes32) {
return keccak256(packProofOfGame(proofOfGame));
}
function packProofOfGame(ProofOfGame memory proofOfGame) public pure returns (bytes memory) {
bytes memory output;
for (uint256 i = 0; i < proofOfGame.entries.length; ++i) {
output = abi.encodePacked(output, packProofOfEntrySigned(proofOfGame.entries[i]));
}
for (uint256 i = 0; i < proofOfGame.results.length; ++i) {
output = abi.encodePacked(output, proofOfGame.results[i]);
}
output = abi.encodePacked(output, packGame(proofOfGame.game));
return output;
}
function packProofOfEntrySigned(ProofOfEntrySigned memory proofOfEntrySigned) internal pure returns (bytes memory) {
return abi.encodePacked(packProofOfEntry(proofOfEntrySigned.proofOfEntry), proofOfEntrySigned.signature);
}
function packProofOfEntry(ProofOfEntry memory proofOfEntry) public pure returns (bytes memory) {
return abi.encodePacked(proofOfEntry.player, packErc20Entry(proofOfEntry.bet), proofOfEntry.nonce);
}
function packGame(Game memory game) public pure returns (bytes memory) {
return abi.encodePacked(game.id, game.version, game.data);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.20;
import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import {IERC5267} from "@openzeppelin/contracts/interfaces/IERC5267.sol";
import {Initializable} from "../../proxy/utils/Initializable.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.
*/
abstract contract EIP712Upgradeable is Initializable, IERC5267 {
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
/// @custom:storage-location erc7201:openzeppelin.storage.EIP712
struct EIP712Storage {
/// @custom:oz-renamed-from _HASHED_NAME
bytes32 _hashedName;
/// @custom:oz-renamed-from _HASHED_VERSION
bytes32 _hashedVersion;
string _name;
string _version;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.EIP712")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant EIP712StorageLocation = 0xa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100;
function _getEIP712Storage() private pure returns (EIP712Storage storage $) {
assembly {
$.slot := EIP712StorageLocation
}
}
/**
* @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].
*/
function __EIP712_init(string memory name, string memory version) internal onlyInitializing {
__EIP712_init_unchained(name, version);
}
function __EIP712_init_unchained(string memory name, string memory version) internal onlyInitializing {
EIP712Storage storage $ = _getEIP712Storage();
$._name = name;
$._version = version;
// Reset prior values in storage if upgrading
$._hashedName = 0;
$._hashedVersion = 0;
}
/**
* @dev Returns the domain separator for the current chain.
*/
function _domainSeparatorV4() internal view returns (bytes32) {
return _buildDomainSeparator();
}
function _buildDomainSeparator() private view returns (bytes32) {
return keccak256(abi.encode(TYPE_HASH, _EIP712NameHash(), _EIP712VersionHash(), 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);
}
/**
* @inheritdoc IERC5267
*/
function eip712Domain()
public
view
virtual
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
)
{
EIP712Storage storage $ = _getEIP712Storage();
// If the hashed name and version in storage are non-zero, the contract hasn't been properly initialized
// and the EIP712 domain is not reliable, as it will be missing name and version.
require($._hashedName == 0 && $._hashedVersion == 0, "EIP712: Uninitialized");
return (
hex"0f", // 01111
_EIP712Name(),
_EIP712Version(),
block.chainid,
address(this),
bytes32(0),
new uint256[](0)
);
}
/**
* @dev The name parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712Name() internal view virtual returns (string memory) {
EIP712Storage storage $ = _getEIP712Storage();
return $._name;
}
/**
* @dev The version parameter for the EIP712 domain.
*
* NOTE: This function reads from storage by default, but can be redefined to return a constant value if gas costs
* are a concern.
*/
function _EIP712Version() internal view virtual returns (string memory) {
EIP712Storage storage $ = _getEIP712Storage();
return $._version;
}
/**
* @dev The hash of the name parameter for the EIP712 domain.
*
* NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Name` instead.
*/
function _EIP712NameHash() internal view returns (bytes32) {
EIP712Storage storage $ = _getEIP712Storage();
string memory name = _EIP712Name();
if (bytes(name).length > 0) {
return keccak256(bytes(name));
} else {
// If the name is empty, the contract may have been upgraded without initializing the new storage.
// We return the name hash in storage if non-zero, otherwise we assume the name is empty by design.
bytes32 hashedName = $._hashedName;
if (hashedName != 0) {
return hashedName;
} else {
return keccak256("");
}
}
}
/**
* @dev The hash of the version parameter for the EIP712 domain.
*
* NOTE: In previous versions this function was virtual. In this version you should override `_EIP712Version` instead.
*/
function _EIP712VersionHash() internal view returns (bytes32) {
EIP712Storage storage $ = _getEIP712Storage();
string memory version = _EIP712Version();
if (bytes(version).length > 0) {
return keccak256(bytes(version));
} else {
// If the version is empty, the contract may have been upgraded without initializing the new storage.
// We return the version hash in storage if non-zero, otherwise we assume the version is empty by design.
bytes32 hashedVersion = $._hashedVersion;
if (hashedVersion != 0) {
return hashedVersion;
} else {
return keccak256("");
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.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 recovered, RecoverError err, bytes32 errArg) {
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.
assembly ("memory-safe") {
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[ERC-2098 short signatures]
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
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 recovered, RecoverError err, bytes32 errArg) {
// 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.1) (utils/Context.sol)
pragma solidity ^0.8.20;
import {Initializable} from "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*/
abstract contract ERC165Upgradeable is Initializable, IERC165 {
function __ERC165_init() internal onlyInitializing {
}
function __ERC165_init_unchained() internal onlyInitializing {
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
abstract contract OffChainSignatureVerification {
function recoverSigner(bytes32 ethSignedMessageHash, bytes memory signature) public pure returns (address) {
(bytes32 r, bytes32 s, uint8 v) = splitSignature(signature);
return ecrecover(ethSignedMessageHash, v, r, s);
}
function getEthSignedDataHash(bytes32 messageHash) public pure returns (bytes32) {
/*
Signature is produced by signing a keccak256 hash with the following format:
"\x19Ethereum Signed Message\n" + len(msg) + msg
*/
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", messageHash));
}
function splitSignature(bytes memory sig) internal pure returns (bytes32 r, bytes32 s, uint8 v) {
require(sig.length == 65, "Invalid signature");
assembly {
/*
First 32 bytes stores the length of the signature
add(sig, 32) = pointer of sig + 32
effectively, skips first 32 bytes of signature
mload(p) loads next 32 bytes starting at the memory address p into memory
*/
// first 32 bytes, after the length prefix
r := mload(add(sig, 32))
// second 32 bytes
s := mload(add(sig, 64))
// final byte (first byte of the next 32 bytes)
v := byte(0, mload(add(sig, 96)))
}
// implicitly return (r, s, v)
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)
pragma solidity ^0.8.20;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.20;
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Storage of the initializable contract.
*
* It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions
* when using with upgradeable contracts.
*
* @custom:storage-location erc7201:openzeppelin.storage.Initializable
*/
struct InitializableStorage {
/**
* @dev Indicates that the contract has been initialized.
*/
uint64 _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool _initializing;
}
// keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff))
bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;
/**
* @dev The contract is already initialized.
*/
error InvalidInitialization();
/**
* @dev The contract is not initializing.
*/
error NotInitializing();
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint64 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any
* number of times. This behavior in the constructor can be useful during testing and is not expected to be used in
* production.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
// Cache values to avoid duplicated sloads
bool isTopLevelCall = !$._initializing;
uint64 initialized = $._initialized;
// Allowed calls:
// - initialSetup: the contract is not in the initializing state and no previous version was
// initialized
// - construction: the contract is initialized at version 1 (no reinitialization) and the
// current contract is just being deployed
bool initialSetup = initialized == 0 && isTopLevelCall;
bool construction = initialized == 1 && address(this).code.length == 0;
if (!initialSetup && !construction) {
revert InvalidInitialization();
}
$._initialized = 1;
if (isTopLevelCall) {
$._initializing = true;
}
_;
if (isTopLevelCall) {
$._initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint64 version) {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing || $._initialized >= version) {
revert InvalidInitialization();
}
$._initialized = version;
$._initializing = true;
_;
$._initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
_checkInitializing();
_;
}
/**
* @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.
*/
function _checkInitializing() internal view virtual {
if (!_isInitializing()) {
revert NotInitializing();
}
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
// solhint-disable-next-line var-name-mixedcase
InitializableStorage storage $ = _getInitializableStorage();
if ($._initializing) {
revert InvalidInitialization();
}
if ($._initialized != type(uint64).max) {
$._initialized = type(uint64).max;
emit Initialized(type(uint64).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint64) {
return _getInitializableStorage()._initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _getInitializableStorage()._initializing;
}
/**
* @dev Pointer to storage slot. Allows integrators to override it with a custom storage location.
*
* NOTE: Consider following the ERC-7201 formula to derive storage locations.
*/
function _initializableStorageSlot() internal pure virtual returns (bytes32) {
return INITIALIZABLE_STORAGE;
}
/**
* @dev Returns a pointer to the storage namespace.
*/
// solhint-disable-next-line var-name-mixedcase
function _getInitializableStorage() private pure returns (InitializableStorage storage $) {
bytes32 slot = _initializableStorageSlot();
assembly {
$.slot := slot
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (access/IAccessControl.sol)
pragma solidity ^0.8.20;
/**
* @dev External interface of AccessControl declared to support ERC-165 detection.
*/
interface IAccessControl {
/**
* @dev The `account` is missing a role.
*/
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole);
/**
* @dev The caller of a function is not the expected one.
*
* NOTE: Don't confuse with {AccessControlUnauthorizedAccount}.
*/
error AccessControlBadConfirmation();
/**
* @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
*
* `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
* {RoleAdminChanged} not being emitted to signal this.
*/
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
/**
* @dev Emitted when `account` is granted `role`.
*
* `sender` is the account that originated the contract call. This account bears the admin role (for the granted role).
* Expected in cases where the role was granted using the internal {AccessControl-_grantRole}.
*/
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Emitted when `account` is revoked `role`.
*
* `sender` is the account that originated the contract call:
* - if using `revokeRole`, it is the admin role bearer
* - if using `renounceRole`, it is the role bearer (i.e. `account`)
*/
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
/**
* @dev Returns `true` if `account` has been granted `role`.
*/
function hasRole(bytes32 role, address account) external view returns (bool);
/**
* @dev Returns the admin role that controls `role`. See {grantRole} and
* {revokeRole}.
*
* To change a role's admin, use {AccessControl-_setRoleAdmin}.
*/
function getRoleAdmin(bytes32 role) external view returns (bytes32);
/**
* @dev Grants `role` to `account`.
*
* If `account` had not been already granted `role`, emits a {RoleGranted}
* event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function grantRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from `account`.
*
* If `account` had been granted `role`, emits a {RoleRevoked} event.
*
* Requirements:
*
* - the caller must have ``role``'s admin role.
*/
function revokeRole(bytes32 role, address account) external;
/**
* @dev Revokes `role` from the calling account.
*
* Roles are often managed via {grantRole} and {revokeRole}: this function's
* purpose is to provide a mechanism for accounts to lose their privileges
* if they are compromised (such as when a trusted device is misplaced).
*
* If the calling account had been granted `role`, emits a {RoleRevoked}
* event.
*
* Requirements:
*
* - the caller must be `callerConfirmation`.
*/
function renounceRole(bytes32 role, address callerConfirmation) external;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.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[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an ERC-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://ethereum.org/en/developers/docs/apis/json-rpc/#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) {
assembly ("memory-safe") {
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 ERC-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://ethereum.org/en/developers/docs/apis/json-rpc/#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 ERC-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 Variant of {toDataWithIntendedValidatorHash-address-bytes} optimized for cases where `data` is a bytes32.
*/
function toDataWithIntendedValidatorHash(
address validator,
bytes32 messageHash
) internal pure returns (bytes32 digest) {
assembly ("memory-safe") {
mstore(0x00, hex"19_00")
mstore(0x02, shl(96, validator))
mstore(0x16, messageHash)
digest := keccak256(0x00, 0x36)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-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) {
assembly ("memory-safe") {
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) (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.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
import {Math} from "./math/Math.sol";
import {SafeCast} from "./math/SafeCast.sol";
import {SignedMath} from "./math/SignedMath.sol";
/**
* @dev String operations.
*/
library Strings {
using SafeCast for *;
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
uint256 private constant SPECIAL_CHARS_LOOKUP =
(1 << 0x08) | // backspace
(1 << 0x09) | // tab
(1 << 0x0a) | // newline
(1 << 0x0c) | // form feed
(1 << 0x0d) | // carriage return
(1 << 0x22) | // double quote
(1 << 0x5c); // backslash
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev The string being parsed contains characters that are not in scope of the given base.
*/
error StringsInvalidChar();
/**
* @dev The string being parsed is not a properly formatted address.
*/
error StringsInvalidAddressFormat();
/**
* @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;
assembly ("memory-safe") {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
assembly ("memory-safe") {
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 Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal
* representation, according to EIP-55.
*/
function toChecksumHexString(address addr) internal pure returns (string memory) {
bytes memory buffer = bytes(toHexString(addr));
// hash the hex part of buffer (skip length + 2 bytes, length 40)
uint256 hashValue;
assembly ("memory-safe") {
hashValue := shr(96, keccak256(add(buffer, 0x22), 40))
}
for (uint256 i = 41; i > 1; --i) {
// possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)
if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {
// case shift by xoring with 0x20
buffer[i] ^= 0x20;
}
hashValue >>= 4;
}
return string(buffer);
}
/**
* @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));
}
/**
* @dev Parse a decimal string and returns the value as a `uint256`.
*
* Requirements:
* - The string must be formatted as `[0-9]*`
* - The result must fit into an `uint256` type
*/
function parseUint(string memory input) internal pure returns (uint256) {
return parseUint(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseUint-string} that parses a substring of `input` located between position `begin` (included) and
* `end` (excluded).
*
* Requirements:
* - The substring must be formatted as `[0-9]*`
* - The result must fit into an `uint256` type
*/
function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {
(bool success, uint256 value) = tryParseUint(input, begin, end);
if (!success) revert StringsInvalidChar();
return value;
}
/**
* @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.
*
* NOTE: This function will revert if the result does not fit in a `uint256`.
*/
function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {
return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid
* character.
*
* NOTE: This function will revert if the result does not fit in a `uint256`.
*/
function tryParseUint(
string memory input,
uint256 begin,
uint256 end
) internal pure returns (bool success, uint256 value) {
if (end > bytes(input).length || begin > end) return (false, 0);
return _tryParseUintUncheckedBounds(input, begin, end);
}
/**
* @dev Implementation of {tryParseUint-string-uint256-uint256} that does not check bounds. Caller should make sure that
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
*/
function _tryParseUintUncheckedBounds(
string memory input,
uint256 begin,
uint256 end
) private pure returns (bool success, uint256 value) {
bytes memory buffer = bytes(input);
uint256 result = 0;
for (uint256 i = begin; i < end; ++i) {
uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));
if (chr > 9) return (false, 0);
result *= 10;
result += chr;
}
return (true, result);
}
/**
* @dev Parse a decimal string and returns the value as a `int256`.
*
* Requirements:
* - The string must be formatted as `[-+]?[0-9]*`
* - The result must fit in an `int256` type.
*/
function parseInt(string memory input) internal pure returns (int256) {
return parseInt(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and
* `end` (excluded).
*
* Requirements:
* - The substring must be formatted as `[-+]?[0-9]*`
* - The result must fit in an `int256` type.
*/
function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {
(bool success, int256 value) = tryParseInt(input, begin, end);
if (!success) revert StringsInvalidChar();
return value;
}
/**
* @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if
* the result does not fit in a `int256`.
*
* NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.
*/
function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {
return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);
}
uint256 private constant ABS_MIN_INT256 = 2 ** 255;
/**
* @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid
* character or if the result does not fit in a `int256`.
*
* NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.
*/
function tryParseInt(
string memory input,
uint256 begin,
uint256 end
) internal pure returns (bool success, int256 value) {
if (end > bytes(input).length || begin > end) return (false, 0);
return _tryParseIntUncheckedBounds(input, begin, end);
}
/**
* @dev Implementation of {tryParseInt-string-uint256-uint256} that does not check bounds. Caller should make sure that
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
*/
function _tryParseIntUncheckedBounds(
string memory input,
uint256 begin,
uint256 end
) private pure returns (bool success, int256 value) {
bytes memory buffer = bytes(input);
// Check presence of a negative sign.
bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
bool positiveSign = sign == bytes1("+");
bool negativeSign = sign == bytes1("-");
uint256 offset = (positiveSign || negativeSign).toUint();
(bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);
if (absSuccess && absValue < ABS_MIN_INT256) {
return (true, negativeSign ? -int256(absValue) : int256(absValue));
} else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {
return (true, type(int256).min);
} else return (false, 0);
}
/**
* @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as a `uint256`.
*
* Requirements:
* - The string must be formatted as `(0x)?[0-9a-fA-F]*`
* - The result must fit in an `uint256` type.
*/
function parseHexUint(string memory input) internal pure returns (uint256) {
return parseHexUint(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseHexUint-string} that parses a substring of `input` located between position `begin` (included) and
* `end` (excluded).
*
* Requirements:
* - The substring must be formatted as `(0x)?[0-9a-fA-F]*`
* - The result must fit in an `uint256` type.
*/
function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {
(bool success, uint256 value) = tryParseHexUint(input, begin, end);
if (!success) revert StringsInvalidChar();
return value;
}
/**
* @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.
*
* NOTE: This function will revert if the result does not fit in a `uint256`.
*/
function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {
return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an
* invalid character.
*
* NOTE: This function will revert if the result does not fit in a `uint256`.
*/
function tryParseHexUint(
string memory input,
uint256 begin,
uint256 end
) internal pure returns (bool success, uint256 value) {
if (end > bytes(input).length || begin > end) return (false, 0);
return _tryParseHexUintUncheckedBounds(input, begin, end);
}
/**
* @dev Implementation of {tryParseHexUint-string-uint256-uint256} that does not check bounds. Caller should make sure that
* `begin <= end <= input.length`. Other inputs would result in undefined behavior.
*/
function _tryParseHexUintUncheckedBounds(
string memory input,
uint256 begin,
uint256 end
) private pure returns (bool success, uint256 value) {
bytes memory buffer = bytes(input);
// skip 0x prefix if present
bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
uint256 offset = hasPrefix.toUint() * 2;
uint256 result = 0;
for (uint256 i = begin + offset; i < end; ++i) {
uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));
if (chr > 15) return (false, 0);
result *= 16;
unchecked {
// Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).
// This guarantees that adding a value < 16 will not cause an overflow, hence the unchecked.
result += chr;
}
}
return (true, result);
}
/**
* @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as an `address`.
*
* Requirements:
* - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`
*/
function parseAddress(string memory input) internal pure returns (address) {
return parseAddress(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseAddress-string} that parses a substring of `input` located between position `begin` (included) and
* `end` (excluded).
*
* Requirements:
* - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`
*/
function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {
(bool success, address value) = tryParseAddress(input, begin, end);
if (!success) revert StringsInvalidAddressFormat();
return value;
}
/**
* @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly
* formatted address. See {parseAddress-string} requirements.
*/
function tryParseAddress(string memory input) internal pure returns (bool success, address value) {
return tryParseAddress(input, 0, bytes(input).length);
}
/**
* @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly
* formatted address. See {parseAddress-string-uint256-uint256} requirements.
*/
function tryParseAddress(
string memory input,
uint256 begin,
uint256 end
) internal pure returns (bool success, address value) {
if (end > bytes(input).length || begin > end) return (false, address(0));
bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
uint256 expectedLength = 40 + hasPrefix.toUint() * 2;
// check that input is the correct length
if (end - begin == expectedLength) {
// length guarantees that this does not overflow, and value is at most type(uint160).max
(bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);
return (s, address(uint160(v)));
} else {
return (false, address(0));
}
}
function _tryParseChr(bytes1 chr) private pure returns (uint8) {
uint8 value = uint8(chr);
// Try to parse `chr`:
// - Case 1: [0-9]
// - Case 2: [a-f]
// - Case 3: [A-F]
// - otherwise not supported
unchecked {
if (value > 47 && value < 58) value -= 48;
else if (value > 96 && value < 103) value -= 87;
else if (value > 64 && value < 71) value -= 55;
else return type(uint8).max;
}
return value;
}
/**
* @dev Escape special characters in JSON strings. This can be useful to prevent JSON injection in NFT metadata.
*
* WARNING: This function should only be used in double quoted JSON strings. Single quotes are not escaped.
*
* NOTE: This function escapes all unicode characters, and not just the ones in ranges defined in section 2.5 of
* RFC-4627 (U+0000 to U+001F, U+0022 and U+005C). ECMAScript's `JSON.parse` does recover escaped unicode
* characters that are not in this range, but other tooling may provide different results.
*/
function escapeJSON(string memory input) internal pure returns (string memory) {
bytes memory buffer = bytes(input);
bytes memory output = new bytes(2 * buffer.length); // worst case scenario
uint256 outputLength = 0;
for (uint256 i; i < buffer.length; ++i) {
bytes1 char = bytes1(_unsafeReadBytesOffset(buffer, i));
if (((SPECIAL_CHARS_LOOKUP & (1 << uint8(char))) != 0)) {
output[outputLength++] = "\\";
if (char == 0x08) output[outputLength++] = "b";
else if (char == 0x09) output[outputLength++] = "t";
else if (char == 0x0a) output[outputLength++] = "n";
else if (char == 0x0c) output[outputLength++] = "f";
else if (char == 0x0d) output[outputLength++] = "r";
else if (char == 0x5c) output[outputLength++] = "\\";
else if (char == 0x22) {
// solhint-disable-next-line quotes
output[outputLength++] = '"';
}
} else {
output[outputLength++] = char;
}
}
// write the actual length and deallocate unused memory
assembly ("memory-safe") {
mstore(output, outputLength)
mstore(0x40, add(output, shl(5, shr(5, add(outputLength, 63)))))
}
return string(output);
}
/**
* @dev Reads a bytes32 from a bytes array without bounds checking.
*
* NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the
* assembly block as such would prevent some optimizations.
*/
function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {
// This is not memory safe in the general case, but all calls to this private function are within bounds.
assembly ("memory-safe") {
value := mload(add(buffer, add(0x20, offset)))
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
import {Panic} from "../Panic.sol";
import {SafeCast} from "./SafeCast.sol";
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Return the 512-bit addition of two uint256.
*
* The result is stored in two 256 variables such that sum = high * 2²⁵⁶ + low.
*/
function add512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {
assembly ("memory-safe") {
low := add(a, b)
high := lt(low, a)
}
}
/**
* @dev Return the 512-bit multiplication of two uint256.
*
* The result is stored in two 256 variables such that product = high * 2²⁵⁶ + low.
*/
function mul512(uint256 a, uint256 b) internal pure returns (uint256 high, uint256 low) {
// 512-bit multiply [high low] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use
// the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = high * 2²⁵⁶ + low.
assembly ("memory-safe") {
let mm := mulmod(a, b, not(0))
low := mul(a, b)
high := sub(sub(mm, low), lt(mm, low))
}
}
/**
* @dev Returns the addition of two unsigned integers, with a success flag (no overflow).
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
uint256 c = a + b;
success = c >= a;
result = c * SafeCast.toUint(success);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with a success flag (no overflow).
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
uint256 c = a - b;
success = c <= a;
result = c * SafeCast.toUint(success);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with a success flag (no overflow).
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
uint256 c = a * b;
assembly ("memory-safe") {
// Only true when the multiplication doesn't overflow
// (c / a == b) || (a == 0)
success := or(eq(div(c, a), b), iszero(a))
}
// equivalent to: success ? c : 0
result = c * SafeCast.toUint(success);
}
}
/**
* @dev Returns the division of two unsigned integers, with a success flag (no division by zero).
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
success = b > 0;
assembly ("memory-safe") {
// The `DIV` opcode returns zero when the denominator is 0.
result := div(a, b)
}
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero).
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) {
unchecked {
success = b > 0;
assembly ("memory-safe") {
// The `MOD` opcode returns zero when the denominator is 0.
result := mod(a, b)
}
}
}
/**
* @dev Unsigned saturating addition, bounds to `2²⁵⁶ - 1` instead of overflowing.
*/
function saturatingAdd(uint256 a, uint256 b) internal pure returns (uint256) {
(bool success, uint256 result) = tryAdd(a, b);
return ternary(success, result, type(uint256).max);
}
/**
* @dev Unsigned saturating subtraction, bounds to zero instead of overflowing.
*/
function saturatingSub(uint256 a, uint256 b) internal pure returns (uint256) {
(, uint256 result) = trySub(a, b);
return result;
}
/**
* @dev Unsigned saturating multiplication, bounds to `2²⁵⁶ - 1` instead of overflowing.
*/
function saturatingMul(uint256 a, uint256 b) internal pure returns (uint256) {
(bool success, uint256 result) = tryMul(a, b);
return ternary(success, result, type(uint256).max);
}
/**
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
*
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
* one branch when needed, making this function more expensive.
*/
function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {
unchecked {
// branchless ternary works because:
// b ^ (a ^ b) == a
// b ^ 0 == b
return b ^ ((a ^ b) * SafeCast.toUint(condition));
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return ternary(a > b, a, b);
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return ternary(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.
Panic.panic(Panic.DIVISION_BY_ZERO);
}
// The following calculation ensures accurate ceiling division without overflow.
// Since a is non-zero, (a - 1) / b will not overflow.
// The largest possible result occurs when (a - 1) / b is type(uint256).max,
// but the largest value we can obtain is type(uint256).max - 1, which happens
// when a = type(uint256).max and b = 1.
unchecked {
return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);
}
}
/**
* @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
*
* 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 {
(uint256 high, uint256 low) = mul512(x, y);
// Handle non-overflow cases, 256 by 256 division.
if (high == 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 low / denominator;
}
// Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.
if (denominator <= high) {
Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [high low].
uint256 remainder;
assembly ("memory-safe") {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
high := sub(high, gt(remainder, low))
low := sub(low, 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 ("memory-safe") {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [high low] by twos.
low := div(low, twos)
// Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from high into low.
low |= high * twos;
// Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such
// that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv ≡ 1 mod 2⁴.
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⁸
inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶
inverse *= 2 - denominator * inverse; // inverse mod 2³²
inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴
inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸
inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶
// 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²⁵⁶. Since the preconditions guarantee that the outcome is
// less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and high
// is no longer required.
result = low * inverse;
return result;
}
}
/**
* @dev 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) {
return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);
}
/**
* @dev Calculates floor(x * y >> n) with full precision. Throws if result overflows a uint256.
*/
function mulShr(uint256 x, uint256 y, uint8 n) internal pure returns (uint256 result) {
unchecked {
(uint256 high, uint256 low) = mul512(x, y);
if (high >= 1 << n) {
Panic.panic(Panic.UNDER_OVERFLOW);
}
return (high << (256 - n)) | (low >> n);
}
}
/**
* @dev Calculates x * y >> n with full precision, following the selected rounding direction.
*/
function mulShr(uint256 x, uint256 y, uint8 n, Rounding rounding) internal pure returns (uint256) {
return mulShr(x, y, n) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, 1 << n) > 0);
}
/**
* @dev Calculate the modular multiplicative inverse of a number in Z/nZ.
*
* If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.
* If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.
*
* If the input value is not inversible, 0 is returned.
*
* NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the
* inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.
*/
function invMod(uint256 a, uint256 n) internal pure returns (uint256) {
unchecked {
if (n == 0) return 0;
// The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)
// Used to compute integers x and y such that: ax + ny = gcd(a, n).
// When the gcd is 1, then the inverse of a modulo n exists and it's x.
// ax + ny = 1
// ax = 1 + (-y)n
// ax ≡ 1 (mod n) # x is the inverse of a modulo n
// If the remainder is 0 the gcd is n right away.
uint256 remainder = a % n;
uint256 gcd = n;
// Therefore the initial coefficients are:
// ax + ny = gcd(a, n) = n
// 0a + 1n = n
int256 x = 0;
int256 y = 1;
while (remainder != 0) {
uint256 quotient = gcd / remainder;
(gcd, remainder) = (
// The old remainder is the next gcd to try.
remainder,
// Compute the next remainder.
// Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd
// where gcd is at most n (capped to type(uint256).max)
gcd - remainder * quotient
);
(x, y) = (
// Increment the coefficient of a.
y,
// Decrement the coefficient of n.
// Can overflow, but the result is casted to uint256 so that the
// next value of y is "wrapped around" to a value between 0 and n - 1.
x - y * int256(quotient)
);
}
if (gcd != 1) return 0; // No inverse exists.
return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.
}
}
/**
* @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.
*
* From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is
* prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that
* `a**(p-2)` is the modular multiplicative inverse of a in Fp.
*
* NOTE: this function does NOT check that `p` is a prime greater than `2`.
*/
function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {
unchecked {
return Math.modExp(a, p - 2, p);
}
}
/**
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)
*
* Requirements:
* - modulus can't be zero
* - underlying staticcall to precompile must succeed
*
* IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make
* sure the chain you're using it on supports the precompiled contract for modular exponentiation
* at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,
* the underlying function will succeed given the lack of a revert, but the result may be incorrectly
* interpreted as 0.
*/
function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {
(bool success, uint256 result) = tryModExp(b, e, m);
if (!success) {
Panic.panic(Panic.DIVISION_BY_ZERO);
}
return result;
}
/**
* @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).
* It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying
* to operate modulo 0 or if the underlying precompile reverted.
*
* IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain
* you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in
* https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack
* of a revert, but the result may be incorrectly interpreted as 0.
*/
function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {
if (m == 0) return (false, 0);
assembly ("memory-safe") {
let ptr := mload(0x40)
// | Offset | Content | Content (Hex) |
// |-----------|------------|--------------------------------------------------------------------|
// | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 |
// | 0x60:0x7f | value of b | 0x<.............................................................b> |
// | 0x80:0x9f | value of e | 0x<.............................................................e> |
// | 0xa0:0xbf | value of m | 0x<.............................................................m> |
mstore(ptr, 0x20)
mstore(add(ptr, 0x20), 0x20)
mstore(add(ptr, 0x40), 0x20)
mstore(add(ptr, 0x60), b)
mstore(add(ptr, 0x80), e)
mstore(add(ptr, 0xa0), m)
// Given the result < m, it's guaranteed to fit in 32 bytes,
// so we can use the memory scratch space located at offset 0.
success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)
result := mload(0x00)
}
}
/**
* @dev Variant of {modExp} that supports inputs of arbitrary length.
*/
function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {
(bool success, bytes memory result) = tryModExp(b, e, m);
if (!success) {
Panic.panic(Panic.DIVISION_BY_ZERO);
}
return result;
}
/**
* @dev Variant of {tryModExp} that supports inputs of arbitrary length.
*/
function tryModExp(
bytes memory b,
bytes memory e,
bytes memory m
) internal view returns (bool success, bytes memory result) {
if (_zeroBytes(m)) return (false, new bytes(0));
uint256 mLen = m.length;
// Encode call args in result and move the free memory pointer
result = abi.encodePacked(b.length, e.length, mLen, b, e, m);
assembly ("memory-safe") {
let dataPtr := add(result, 0x20)
// Write result on top of args to avoid allocating extra memory.
success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)
// Overwrite the length.
// result.length > returndatasize() is guaranteed because returndatasize() == m.length
mstore(result, mLen)
// Set the memory pointer after the returned data.
mstore(0x40, add(dataPtr, mLen))
}
}
/**
* @dev Returns whether the provided byte array is zero.
*/
function _zeroBytes(bytes memory byteArray) private pure returns (bool) {
for (uint256 i = 0; i < byteArray.length; ++i) {
if (byteArray[i] != 0) {
return false;
}
}
return true;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* This method is based on Newton's method for computing square roots; the algorithm is restricted to only
* using integer operations.
*/
function sqrt(uint256 a) internal pure returns (uint256) {
unchecked {
// Take care of easy edge cases when a == 0 or a == 1
if (a <= 1) {
return a;
}
// In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a
// sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between
// the current value as `ε_n = | x_n - sqrt(a) |`.
//
// For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root
// of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is
// bigger than any uint256.
//
// By noticing that
// `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`
// we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar
// to the msb function.
uint256 aa = a;
uint256 xn = 1;
if (aa >= (1 << 128)) {
aa >>= 128;
xn <<= 64;
}
if (aa >= (1 << 64)) {
aa >>= 64;
xn <<= 32;
}
if (aa >= (1 << 32)) {
aa >>= 32;
xn <<= 16;
}
if (aa >= (1 << 16)) {
aa >>= 16;
xn <<= 8;
}
if (aa >= (1 << 8)) {
aa >>= 8;
xn <<= 4;
}
if (aa >= (1 << 4)) {
aa >>= 4;
xn <<= 2;
}
if (aa >= (1 << 2)) {
xn <<= 1;
}
// We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).
//
// We can refine our estimation by noticing that the middle of that interval minimizes the error.
// If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).
// This is going to be our x_0 (and ε_0)
xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)
// From here, Newton's method give us:
// x_{n+1} = (x_n + a / x_n) / 2
//
// One should note that:
// x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a
// = ((x_n² + a) / (2 * x_n))² - a
// = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a
// = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)
// = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)
// = (x_n² - a)² / (2 * x_n)²
// = ((x_n² - a) / (2 * x_n))²
// ≥ 0
// Which proves that for all n ≥ 1, sqrt(a) ≤ x_n
//
// This gives us the proof of quadratic convergence of the sequence:
// ε_{n+1} = | x_{n+1} - sqrt(a) |
// = | (x_n + a / x_n) / 2 - sqrt(a) |
// = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |
// = | (x_n - sqrt(a))² / (2 * x_n) |
// = | ε_n² / (2 * x_n) |
// = ε_n² / | (2 * x_n) |
//
// For the first iteration, we have a special case where x_0 is known:
// ε_1 = ε_0² / | (2 * x_0) |
// ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))
// ≤ 2**(2*e-4) / (3 * 2**(e-1))
// ≤ 2**(e-3) / 3
// ≤ 2**(e-3-log2(3))
// ≤ 2**(e-4.5)
//
// For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:
// ε_{n+1} = ε_n² / | (2 * x_n) |
// ≤ (2**(e-k))² / (2 * 2**(e-1))
// ≤ 2**(2*e-2*k) / 2**e
// ≤ 2**(e-2*k)
xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above
xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5
xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9
xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18
xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36
xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72
// Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision
// ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either
// sqrt(a) or sqrt(a) + 1.
return xn - SafeCast.toUint(xn > a / xn);
}
}
/**
* @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 x) internal pure returns (uint256 r) {
// If value has upper 128 bits set, log2 result is at least 128
r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;
// If upper 64 bits of 128-bit half set, add 64 to result
r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;
// If upper 32 bits of 64-bit half set, add 32 to result
r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;
// If upper 16 bits of 32-bit half set, add 16 to result
r |= SafeCast.toUint((x >> r) > 0xffff) << 4;
// If upper 8 bits of 16-bit half set, add 8 to result
r |= SafeCast.toUint((x >> r) > 0xff) << 3;
// If upper 4 bits of 8-bit half set, add 4 to result
r |= SafeCast.toUint((x >> r) > 0xf) << 2;
// Shifts value right by the current result and use it as an index into this lookup table:
//
// | x (4 bits) | index | table[index] = MSB position |
// |------------|---------|-----------------------------|
// | 0000 | 0 | table[0] = 0 |
// | 0001 | 1 | table[1] = 0 |
// | 0010 | 2 | table[2] = 1 |
// | 0011 | 3 | table[3] = 1 |
// | 0100 | 4 | table[4] = 2 |
// | 0101 | 5 | table[5] = 2 |
// | 0110 | 6 | table[6] = 2 |
// | 0111 | 7 | table[7] = 2 |
// | 1000 | 8 | table[8] = 3 |
// | 1001 | 9 | table[9] = 3 |
// | 1010 | 10 | table[10] = 3 |
// | 1011 | 11 | table[11] = 3 |
// | 1100 | 12 | table[12] = 3 |
// | 1101 | 13 | table[13] = 3 |
// | 1110 | 14 | table[14] = 3 |
// | 1111 | 15 | table[15] = 3 |
//
// The lookup table is represented as a 32-byte value with the MSB positions for 0-15 in the last 16 bytes.
assembly ("memory-safe") {
r := or(r, byte(shr(r, x), 0x0000010102020202030303030303030300000000000000000000000000000000))
}
}
/**
* @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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);
}
}
/**
* @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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value);
}
}
/**
* @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 x) internal pure returns (uint256 r) {
// If value has upper 128 bits set, log2 result is at least 128
r = SafeCast.toUint(x > 0xffffffffffffffffffffffffffffffff) << 7;
// If upper 64 bits of 128-bit half set, add 64 to result
r |= SafeCast.toUint((x >> r) > 0xffffffffffffffff) << 6;
// If upper 32 bits of 64-bit half set, add 32 to result
r |= SafeCast.toUint((x >> r) > 0xffffffff) << 5;
// If upper 16 bits of 32-bit half set, add 16 to result
r |= SafeCast.toUint((x >> r) > 0xffff) << 4;
// Add 1 if upper 8 bits of 16-bit half set, and divide accumulated result by 8
return (r >> 3) | SafeCast.toUint((x >> r) > 0xff);
}
/**
* @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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value);
}
}
/**
* @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.1.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.
pragma solidity ^0.8.20;
/**
* @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow
* checks.
*
* Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
* easily result in undesired exploitation or bugs, since developers usually
* assume that overflows raise errors. `SafeCast` restores this intuition by
* reverting the transaction when such an operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeCast {
/**
* @dev Value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);
/**
* @dev An int value doesn't fit in an uint of `bits` size.
*/
error SafeCastOverflowedIntToUint(int256 value);
/**
* @dev Value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);
/**
* @dev An uint value doesn't fit in an int of `bits` size.
*/
error SafeCastOverflowedUintToInt(uint256 value);
/**
* @dev Returns the downcasted uint248 from uint256, reverting on
* overflow (when the input is greater than largest uint248).
*
* Counterpart to Solidity's `uint248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*/
function toUint248(uint256 value) internal pure returns (uint248) {
if (value > type(uint248).max) {
revert SafeCastOverflowedUintDowncast(248, value);
}
return uint248(value);
}
/**
* @dev Returns the downcasted uint240 from uint256, reverting on
* overflow (when the input is greater than largest uint240).
*
* Counterpart to Solidity's `uint240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*/
function toUint240(uint256 value) internal pure returns (uint240) {
if (value > type(uint240).max) {
revert SafeCastOverflowedUintDowncast(240, value);
}
return uint240(value);
}
/**
* @dev Returns the downcasted uint232 from uint256, reverting on
* overflow (when the input is greater than largest uint232).
*
* Counterpart to Solidity's `uint232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*/
function toUint232(uint256 value) internal pure returns (uint232) {
if (value > type(uint232).max) {
revert SafeCastOverflowedUintDowncast(232, value);
}
return uint232(value);
}
/**
* @dev Returns the downcasted uint224 from uint256, reverting on
* overflow (when the input is greater than largest uint224).
*
* Counterpart to Solidity's `uint224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*/
function toUint224(uint256 value) internal pure returns (uint224) {
if (value > type(uint224).max) {
revert SafeCastOverflowedUintDowncast(224, value);
}
return uint224(value);
}
/**
* @dev Returns the downcasted uint216 from uint256, reverting on
* overflow (when the input is greater than largest uint216).
*
* Counterpart to Solidity's `uint216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*/
function toUint216(uint256 value) internal pure returns (uint216) {
if (value > type(uint216).max) {
revert SafeCastOverflowedUintDowncast(216, value);
}
return uint216(value);
}
/**
* @dev Returns the downcasted uint208 from uint256, reverting on
* overflow (when the input is greater than largest uint208).
*
* Counterpart to Solidity's `uint208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*/
function toUint208(uint256 value) internal pure returns (uint208) {
if (value > type(uint208).max) {
revert SafeCastOverflowedUintDowncast(208, value);
}
return uint208(value);
}
/**
* @dev Returns the downcasted uint200 from uint256, reverting on
* overflow (when the input is greater than largest uint200).
*
* Counterpart to Solidity's `uint200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*/
function toUint200(uint256 value) internal pure returns (uint200) {
if (value > type(uint200).max) {
revert SafeCastOverflowedUintDowncast(200, value);
}
return uint200(value);
}
/**
* @dev Returns the downcasted uint192 from uint256, reverting on
* overflow (when the input is greater than largest uint192).
*
* Counterpart to Solidity's `uint192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*/
function toUint192(uint256 value) internal pure returns (uint192) {
if (value > type(uint192).max) {
revert SafeCastOverflowedUintDowncast(192, value);
}
return uint192(value);
}
/**
* @dev Returns the downcasted uint184 from uint256, reverting on
* overflow (when the input is greater than largest uint184).
*
* Counterpart to Solidity's `uint184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*/
function toUint184(uint256 value) internal pure returns (uint184) {
if (value > type(uint184).max) {
revert SafeCastOverflowedUintDowncast(184, value);
}
return uint184(value);
}
/**
* @dev Returns the downcasted uint176 from uint256, reverting on
* overflow (when the input is greater than largest uint176).
*
* Counterpart to Solidity's `uint176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*/
function toUint176(uint256 value) internal pure returns (uint176) {
if (value > type(uint176).max) {
revert SafeCastOverflowedUintDowncast(176, value);
}
return uint176(value);
}
/**
* @dev Returns the downcasted uint168 from uint256, reverting on
* overflow (when the input is greater than largest uint168).
*
* Counterpart to Solidity's `uint168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*/
function toUint168(uint256 value) internal pure returns (uint168) {
if (value > type(uint168).max) {
revert SafeCastOverflowedUintDowncast(168, value);
}
return uint168(value);
}
/**
* @dev Returns the downcasted uint160 from uint256, reverting on
* overflow (when the input is greater than largest uint160).
*
* Counterpart to Solidity's `uint160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*/
function toUint160(uint256 value) internal pure returns (uint160) {
if (value > type(uint160).max) {
revert SafeCastOverflowedUintDowncast(160, value);
}
return uint160(value);
}
/**
* @dev Returns the downcasted uint152 from uint256, reverting on
* overflow (when the input is greater than largest uint152).
*
* Counterpart to Solidity's `uint152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*/
function toUint152(uint256 value) internal pure returns (uint152) {
if (value > type(uint152).max) {
revert SafeCastOverflowedUintDowncast(152, value);
}
return uint152(value);
}
/**
* @dev Returns the downcasted uint144 from uint256, reverting on
* overflow (when the input is greater than largest uint144).
*
* Counterpart to Solidity's `uint144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*/
function toUint144(uint256 value) internal pure returns (uint144) {
if (value > type(uint144).max) {
revert SafeCastOverflowedUintDowncast(144, value);
}
return uint144(value);
}
/**
* @dev Returns the downcasted uint136 from uint256, reverting on
* overflow (when the input is greater than largest uint136).
*
* Counterpart to Solidity's `uint136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*/
function toUint136(uint256 value) internal pure returns (uint136) {
if (value > type(uint136).max) {
revert SafeCastOverflowedUintDowncast(136, value);
}
return uint136(value);
}
/**
* @dev Returns the downcasted uint128 from uint256, reverting on
* overflow (when the input is greater than largest uint128).
*
* Counterpart to Solidity's `uint128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
function toUint128(uint256 value) internal pure returns (uint128) {
if (value > type(uint128).max) {
revert SafeCastOverflowedUintDowncast(128, value);
}
return uint128(value);
}
/**
* @dev Returns the downcasted uint120 from uint256, reverting on
* overflow (when the input is greater than largest uint120).
*
* Counterpart to Solidity's `uint120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*/
function toUint120(uint256 value) internal pure returns (uint120) {
if (value > type(uint120).max) {
revert SafeCastOverflowedUintDowncast(120, value);
}
return uint120(value);
}
/**
* @dev Returns the downcasted uint112 from uint256, reverting on
* overflow (when the input is greater than largest uint112).
*
* Counterpart to Solidity's `uint112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*/
function toUint112(uint256 value) internal pure returns (uint112) {
if (value > type(uint112).max) {
revert SafeCastOverflowedUintDowncast(112, value);
}
return uint112(value);
}
/**
* @dev Returns the downcasted uint104 from uint256, reverting on
* overflow (when the input is greater than largest uint104).
*
* Counterpart to Solidity's `uint104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*/
function toUint104(uint256 value) internal pure returns (uint104) {
if (value > type(uint104).max) {
revert SafeCastOverflowedUintDowncast(104, value);
}
return uint104(value);
}
/**
* @dev Returns the downcasted uint96 from uint256, reverting on
* overflow (when the input is greater than largest uint96).
*
* Counterpart to Solidity's `uint96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*/
function toUint96(uint256 value) internal pure returns (uint96) {
if (value > type(uint96).max) {
revert SafeCastOverflowedUintDowncast(96, value);
}
return uint96(value);
}
/**
* @dev Returns the downcasted uint88 from uint256, reverting on
* overflow (when the input is greater than largest uint88).
*
* Counterpart to Solidity's `uint88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*/
function toUint88(uint256 value) internal pure returns (uint88) {
if (value > type(uint88).max) {
revert SafeCastOverflowedUintDowncast(88, value);
}
return uint88(value);
}
/**
* @dev Returns the downcasted uint80 from uint256, reverting on
* overflow (when the input is greater than largest uint80).
*
* Counterpart to Solidity's `uint80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*/
function toUint80(uint256 value) internal pure returns (uint80) {
if (value > type(uint80).max) {
revert SafeCastOverflowedUintDowncast(80, value);
}
return uint80(value);
}
/**
* @dev Returns the downcasted uint72 from uint256, reverting on
* overflow (when the input is greater than largest uint72).
*
* Counterpart to Solidity's `uint72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*/
function toUint72(uint256 value) internal pure returns (uint72) {
if (value > type(uint72).max) {
revert SafeCastOverflowedUintDowncast(72, value);
}
return uint72(value);
}
/**
* @dev Returns the downcasted uint64 from uint256, reverting on
* overflow (when the input is greater than largest uint64).
*
* Counterpart to Solidity's `uint64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*/
function toUint64(uint256 value) internal pure returns (uint64) {
if (value > type(uint64).max) {
revert SafeCastOverflowedUintDowncast(64, value);
}
return uint64(value);
}
/**
* @dev Returns the downcasted uint56 from uint256, reverting on
* overflow (when the input is greater than largest uint56).
*
* Counterpart to Solidity's `uint56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*/
function toUint56(uint256 value) internal pure returns (uint56) {
if (value > type(uint56).max) {
revert SafeCastOverflowedUintDowncast(56, value);
}
return uint56(value);
}
/**
* @dev Returns the downcasted uint48 from uint256, reverting on
* overflow (when the input is greater than largest uint48).
*
* Counterpart to Solidity's `uint48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*/
function toUint48(uint256 value) internal pure returns (uint48) {
if (value > type(uint48).max) {
revert SafeCastOverflowedUintDowncast(48, value);
}
return uint48(value);
}
/**
* @dev Returns the downcasted uint40 from uint256, reverting on
* overflow (when the input is greater than largest uint40).
*
* Counterpart to Solidity's `uint40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*/
function toUint40(uint256 value) internal pure returns (uint40) {
if (value > type(uint40).max) {
revert SafeCastOverflowedUintDowncast(40, value);
}
return uint40(value);
}
/**
* @dev Returns the downcasted uint32 from uint256, reverting on
* overflow (when the input is greater than largest uint32).
*
* Counterpart to Solidity's `uint32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*/
function toUint32(uint256 value) internal pure returns (uint32) {
if (value > type(uint32).max) {
revert SafeCastOverflowedUintDowncast(32, value);
}
return uint32(value);
}
/**
* @dev Returns the downcasted uint24 from uint256, reverting on
* overflow (when the input is greater than largest uint24).
*
* Counterpart to Solidity's `uint24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*/
function toUint24(uint256 value) internal pure returns (uint24) {
if (value > type(uint24).max) {
revert SafeCastOverflowedUintDowncast(24, value);
}
return uint24(value);
}
/**
* @dev Returns the downcasted uint16 from uint256, reverting on
* overflow (when the input is greater than largest uint16).
*
* Counterpart to Solidity's `uint16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*/
function toUint16(uint256 value) internal pure returns (uint16) {
if (value > type(uint16).max) {
revert SafeCastOverflowedUintDowncast(16, value);
}
return uint16(value);
}
/**
* @dev Returns the downcasted uint8 from uint256, reverting on
* overflow (when the input is greater than largest uint8).
*
* Counterpart to Solidity's `uint8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*/
function toUint8(uint256 value) internal pure returns (uint8) {
if (value > type(uint8).max) {
revert SafeCastOverflowedUintDowncast(8, value);
}
return uint8(value);
}
/**
* @dev Converts a signed int256 into an unsigned uint256.
*
* Requirements:
*
* - input must be greater than or equal to 0.
*/
function toUint256(int256 value) internal pure returns (uint256) {
if (value < 0) {
revert SafeCastOverflowedIntToUint(value);
}
return uint256(value);
}
/**
* @dev Returns the downcasted int248 from int256, reverting on
* overflow (when the input is less than smallest int248 or
* greater than largest int248).
*
* Counterpart to Solidity's `int248` operator.
*
* Requirements:
*
* - input must fit into 248 bits
*/
function toInt248(int256 value) internal pure returns (int248 downcasted) {
downcasted = int248(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(248, value);
}
}
/**
* @dev Returns the downcasted int240 from int256, reverting on
* overflow (when the input is less than smallest int240 or
* greater than largest int240).
*
* Counterpart to Solidity's `int240` operator.
*
* Requirements:
*
* - input must fit into 240 bits
*/
function toInt240(int256 value) internal pure returns (int240 downcasted) {
downcasted = int240(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(240, value);
}
}
/**
* @dev Returns the downcasted int232 from int256, reverting on
* overflow (when the input is less than smallest int232 or
* greater than largest int232).
*
* Counterpart to Solidity's `int232` operator.
*
* Requirements:
*
* - input must fit into 232 bits
*/
function toInt232(int256 value) internal pure returns (int232 downcasted) {
downcasted = int232(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(232, value);
}
}
/**
* @dev Returns the downcasted int224 from int256, reverting on
* overflow (when the input is less than smallest int224 or
* greater than largest int224).
*
* Counterpart to Solidity's `int224` operator.
*
* Requirements:
*
* - input must fit into 224 bits
*/
function toInt224(int256 value) internal pure returns (int224 downcasted) {
downcasted = int224(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(224, value);
}
}
/**
* @dev Returns the downcasted int216 from int256, reverting on
* overflow (when the input is less than smallest int216 or
* greater than largest int216).
*
* Counterpart to Solidity's `int216` operator.
*
* Requirements:
*
* - input must fit into 216 bits
*/
function toInt216(int256 value) internal pure returns (int216 downcasted) {
downcasted = int216(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(216, value);
}
}
/**
* @dev Returns the downcasted int208 from int256, reverting on
* overflow (when the input is less than smallest int208 or
* greater than largest int208).
*
* Counterpart to Solidity's `int208` operator.
*
* Requirements:
*
* - input must fit into 208 bits
*/
function toInt208(int256 value) internal pure returns (int208 downcasted) {
downcasted = int208(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(208, value);
}
}
/**
* @dev Returns the downcasted int200 from int256, reverting on
* overflow (when the input is less than smallest int200 or
* greater than largest int200).
*
* Counterpart to Solidity's `int200` operator.
*
* Requirements:
*
* - input must fit into 200 bits
*/
function toInt200(int256 value) internal pure returns (int200 downcasted) {
downcasted = int200(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(200, value);
}
}
/**
* @dev Returns the downcasted int192 from int256, reverting on
* overflow (when the input is less than smallest int192 or
* greater than largest int192).
*
* Counterpart to Solidity's `int192` operator.
*
* Requirements:
*
* - input must fit into 192 bits
*/
function toInt192(int256 value) internal pure returns (int192 downcasted) {
downcasted = int192(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(192, value);
}
}
/**
* @dev Returns the downcasted int184 from int256, reverting on
* overflow (when the input is less than smallest int184 or
* greater than largest int184).
*
* Counterpart to Solidity's `int184` operator.
*
* Requirements:
*
* - input must fit into 184 bits
*/
function toInt184(int256 value) internal pure returns (int184 downcasted) {
downcasted = int184(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(184, value);
}
}
/**
* @dev Returns the downcasted int176 from int256, reverting on
* overflow (when the input is less than smallest int176 or
* greater than largest int176).
*
* Counterpart to Solidity's `int176` operator.
*
* Requirements:
*
* - input must fit into 176 bits
*/
function toInt176(int256 value) internal pure returns (int176 downcasted) {
downcasted = int176(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(176, value);
}
}
/**
* @dev Returns the downcasted int168 from int256, reverting on
* overflow (when the input is less than smallest int168 or
* greater than largest int168).
*
* Counterpart to Solidity's `int168` operator.
*
* Requirements:
*
* - input must fit into 168 bits
*/
function toInt168(int256 value) internal pure returns (int168 downcasted) {
downcasted = int168(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(168, value);
}
}
/**
* @dev Returns the downcasted int160 from int256, reverting on
* overflow (when the input is less than smallest int160 or
* greater than largest int160).
*
* Counterpart to Solidity's `int160` operator.
*
* Requirements:
*
* - input must fit into 160 bits
*/
function toInt160(int256 value) internal pure returns (int160 downcasted) {
downcasted = int160(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(160, value);
}
}
/**
* @dev Returns the downcasted int152 from int256, reverting on
* overflow (when the input is less than smallest int152 or
* greater than largest int152).
*
* Counterpart to Solidity's `int152` operator.
*
* Requirements:
*
* - input must fit into 152 bits
*/
function toInt152(int256 value) internal pure returns (int152 downcasted) {
downcasted = int152(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(152, value);
}
}
/**
* @dev Returns the downcasted int144 from int256, reverting on
* overflow (when the input is less than smallest int144 or
* greater than largest int144).
*
* Counterpart to Solidity's `int144` operator.
*
* Requirements:
*
* - input must fit into 144 bits
*/
function toInt144(int256 value) internal pure returns (int144 downcasted) {
downcasted = int144(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(144, value);
}
}
/**
* @dev Returns the downcasted int136 from int256, reverting on
* overflow (when the input is less than smallest int136 or
* greater than largest int136).
*
* Counterpart to Solidity's `int136` operator.
*
* Requirements:
*
* - input must fit into 136 bits
*/
function toInt136(int256 value) internal pure returns (int136 downcasted) {
downcasted = int136(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(136, value);
}
}
/**
* @dev Returns the downcasted int128 from int256, reverting on
* overflow (when the input is less than smallest int128 or
* greater than largest int128).
*
* Counterpart to Solidity's `int128` operator.
*
* Requirements:
*
* - input must fit into 128 bits
*/
function toInt128(int256 value) internal pure returns (int128 downcasted) {
downcasted = int128(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(128, value);
}
}
/**
* @dev Returns the downcasted int120 from int256, reverting on
* overflow (when the input is less than smallest int120 or
* greater than largest int120).
*
* Counterpart to Solidity's `int120` operator.
*
* Requirements:
*
* - input must fit into 120 bits
*/
function toInt120(int256 value) internal pure returns (int120 downcasted) {
downcasted = int120(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(120, value);
}
}
/**
* @dev Returns the downcasted int112 from int256, reverting on
* overflow (when the input is less than smallest int112 or
* greater than largest int112).
*
* Counterpart to Solidity's `int112` operator.
*
* Requirements:
*
* - input must fit into 112 bits
*/
function toInt112(int256 value) internal pure returns (int112 downcasted) {
downcasted = int112(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(112, value);
}
}
/**
* @dev Returns the downcasted int104 from int256, reverting on
* overflow (when the input is less than smallest int104 or
* greater than largest int104).
*
* Counterpart to Solidity's `int104` operator.
*
* Requirements:
*
* - input must fit into 104 bits
*/
function toInt104(int256 value) internal pure returns (int104 downcasted) {
downcasted = int104(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(104, value);
}
}
/**
* @dev Returns the downcasted int96 from int256, reverting on
* overflow (when the input is less than smallest int96 or
* greater than largest int96).
*
* Counterpart to Solidity's `int96` operator.
*
* Requirements:
*
* - input must fit into 96 bits
*/
function toInt96(int256 value) internal pure returns (int96 downcasted) {
downcasted = int96(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(96, value);
}
}
/**
* @dev Returns the downcasted int88 from int256, reverting on
* overflow (when the input is less than smallest int88 or
* greater than largest int88).
*
* Counterpart to Solidity's `int88` operator.
*
* Requirements:
*
* - input must fit into 88 bits
*/
function toInt88(int256 value) internal pure returns (int88 downcasted) {
downcasted = int88(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(88, value);
}
}
/**
* @dev Returns the downcasted int80 from int256, reverting on
* overflow (when the input is less than smallest int80 or
* greater than largest int80).
*
* Counterpart to Solidity's `int80` operator.
*
* Requirements:
*
* - input must fit into 80 bits
*/
function toInt80(int256 value) internal pure returns (int80 downcasted) {
downcasted = int80(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(80, value);
}
}
/**
* @dev Returns the downcasted int72 from int256, reverting on
* overflow (when the input is less than smallest int72 or
* greater than largest int72).
*
* Counterpart to Solidity's `int72` operator.
*
* Requirements:
*
* - input must fit into 72 bits
*/
function toInt72(int256 value) internal pure returns (int72 downcasted) {
downcasted = int72(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(72, value);
}
}
/**
* @dev Returns the downcasted int64 from int256, reverting on
* overflow (when the input is less than smallest int64 or
* greater than largest int64).
*
* Counterpart to Solidity's `int64` operator.
*
* Requirements:
*
* - input must fit into 64 bits
*/
function toInt64(int256 value) internal pure returns (int64 downcasted) {
downcasted = int64(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(64, value);
}
}
/**
* @dev Returns the downcasted int56 from int256, reverting on
* overflow (when the input is less than smallest int56 or
* greater than largest int56).
*
* Counterpart to Solidity's `int56` operator.
*
* Requirements:
*
* - input must fit into 56 bits
*/
function toInt56(int256 value) internal pure returns (int56 downcasted) {
downcasted = int56(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(56, value);
}
}
/**
* @dev Returns the downcasted int48 from int256, reverting on
* overflow (when the input is less than smallest int48 or
* greater than largest int48).
*
* Counterpart to Solidity's `int48` operator.
*
* Requirements:
*
* - input must fit into 48 bits
*/
function toInt48(int256 value) internal pure returns (int48 downcasted) {
downcasted = int48(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(48, value);
}
}
/**
* @dev Returns the downcasted int40 from int256, reverting on
* overflow (when the input is less than smallest int40 or
* greater than largest int40).
*
* Counterpart to Solidity's `int40` operator.
*
* Requirements:
*
* - input must fit into 40 bits
*/
function toInt40(int256 value) internal pure returns (int40 downcasted) {
downcasted = int40(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(40, value);
}
}
/**
* @dev Returns the downcasted int32 from int256, reverting on
* overflow (when the input is less than smallest int32 or
* greater than largest int32).
*
* Counterpart to Solidity's `int32` operator.
*
* Requirements:
*
* - input must fit into 32 bits
*/
function toInt32(int256 value) internal pure returns (int32 downcasted) {
downcasted = int32(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(32, value);
}
}
/**
* @dev Returns the downcasted int24 from int256, reverting on
* overflow (when the input is less than smallest int24 or
* greater than largest int24).
*
* Counterpart to Solidity's `int24` operator.
*
* Requirements:
*
* - input must fit into 24 bits
*/
function toInt24(int256 value) internal pure returns (int24 downcasted) {
downcasted = int24(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(24, value);
}
}
/**
* @dev Returns the downcasted int16 from int256, reverting on
* overflow (when the input is less than smallest int16 or
* greater than largest int16).
*
* Counterpart to Solidity's `int16` operator.
*
* Requirements:
*
* - input must fit into 16 bits
*/
function toInt16(int256 value) internal pure returns (int16 downcasted) {
downcasted = int16(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(16, value);
}
}
/**
* @dev Returns the downcasted int8 from int256, reverting on
* overflow (when the input is less than smallest int8 or
* greater than largest int8).
*
* Counterpart to Solidity's `int8` operator.
*
* Requirements:
*
* - input must fit into 8 bits
*/
function toInt8(int256 value) internal pure returns (int8 downcasted) {
downcasted = int8(value);
if (downcasted != value) {
revert SafeCastOverflowedIntDowncast(8, value);
}
}
/**
* @dev Converts an unsigned uint256 into a signed int256.
*
* Requirements:
*
* - input must be less than or equal to maxInt256.
*/
function toInt256(uint256 value) internal pure returns (int256) {
// Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
if (value > uint256(type(int256).max)) {
revert SafeCastOverflowedUintToInt(value);
}
return int256(value);
}
/**
* @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.
*/
function toUint(bool b) internal pure returns (uint256 u) {
assembly ("memory-safe") {
u := iszero(iszero(b))
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
import {SafeCast} from "./SafeCast.sol";
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
*
* IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
* However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
* one branch when needed, making this function more expensive.
*/
function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {
unchecked {
// branchless ternary works because:
// b ^ (a ^ b) == a
// b ^ 0 == b
return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));
}
}
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return ternary(a > b, a, b);
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return ternary(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 {
// Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson.
// Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,
// taking advantage of the most significant (or "sign" bit) in two's complement representation.
// This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,
// the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).
int256 mask = n >> 255;
// A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.
return uint256((n + mask) ^ mask);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)
pragma solidity ^0.8.20;
/**
* @dev Helper library for emitting standardized panic codes.
*
* ```solidity
* contract Example {
* using Panic for uint256;
*
* // Use any of the declared internal constants
* function foo() { Panic.GENERIC.panic(); }
*
* // Alternatively
* function foo() { Panic.panic(Panic.GENERIC); }
* }
* ```
*
* Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].
*
* _Available since v5.1._
*/
// slither-disable-next-line unused-state
library Panic {
/// @dev generic / unspecified error
uint256 internal constant GENERIC = 0x00;
/// @dev used by the assert() builtin
uint256 internal constant ASSERT = 0x01;
/// @dev arithmetic underflow or overflow
uint256 internal constant UNDER_OVERFLOW = 0x11;
/// @dev division or modulo by zero
uint256 internal constant DIVISION_BY_ZERO = 0x12;
/// @dev enum conversion error
uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;
/// @dev invalid encoding in storage
uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;
/// @dev empty array pop
uint256 internal constant EMPTY_ARRAY_POP = 0x31;
/// @dev array out of bounds access
uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;
/// @dev resource error (too large allocation or too large array)
uint256 internal constant RESOURCE_ERROR = 0x41;
/// @dev calling invalid internal function
uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;
/// @dev Reverts with a panic code. Recommended to use with
/// the internal constants with predefined codes.
function panic(uint256 code) internal pure {
assembly ("memory-safe") {
mstore(0x00, 0x4e487b71)
mstore(0x20, code)
revert(0x1c, 0x24)
}
}
}{
"optimizer": {
"enabled": true,
"mode": "3"
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"abi"
]
}
},
"detectMissingLibraries": false,
"forceEVMLA": false,
"enableEraVMExtensions": false,
"codegen": "yul",
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessControlBadConfirmation","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"neededRole","type":"bytes32"}],"name":"AccessControlUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"bytes16","name":"gameId","type":"bytes16"}],"name":"DeveloperTreasuryNotSet","type":"error"},{"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":[{"internalType":"address","name":"player","type":"address"},{"internalType":"uint256","name":"playerFunds","type":"uint256"},{"internalType":"uint256","name":"requiredFunds","type":"uint256"}],"name":"InsufficientPlayerFunds","type":"error"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"InvalidProofOfEntrySignature","type":"error"},{"inputs":[],"name":"InvalidProofOfGameSignature","type":"error"},{"inputs":[],"name":"InvalidVerifiedCompetitionDataSignature","type":"error"},{"inputs":[],"name":"InvalidVerifyingContractAddress","type":"error"},{"inputs":[],"name":"InvalidVerifyingContractChainId","type":"error"},{"inputs":[],"name":"InvalidWithdrawTicketSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"entriesLength","type":"uint256"},{"internalType":"uint256","name":"resultsLength","type":"uint256"}],"name":"MismatchedEntriesAndResultsLengths","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"MismatchedProofOfEntryBetAmount","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"MismatchedProofOfEntryBetToken","type":"error"},{"inputs":[{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"name":"NonceAlreadyUsed","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"ProofsOfEntryNotFound","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"inputs":[{"internalType":"uint256","name":"totalCommission","type":"uint256"},{"internalType":"uint256","name":"maxTotalCommission","type":"uint256"}],"name":"TotalCommissionExceedsMaxValue","type":"error"},{"inputs":[],"name":"WithdrawTicketSubmittedPastDeadline","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes16","name":"gameId","type":"bytes16"},{"indexed":false,"internalType":"address","name":"newDeveloperTreasury","type":"address"}],"name":"DeveloperTreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newElympicsTreasury","type":"address"}],"name":"ElympicsTreasuryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newMatchAuthority","type":"address"}],"name":"MatchAuthorityUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"MatchConcluded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PlayerToppedUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"player","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PlayerWithdrew","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newWithdrawAuthority","type":"address"}],"name":"WithdrawAuthorityUpdated","type":"event"},{"inputs":[],"name":"AUTHORITY_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC20_ENTRY_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROOF_OF_ENTRY_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TREASURY_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"player","type":"address"},{"internalType":"address","name":"token","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfGameSigned","name":"proofOfGameSigned","type":"tuple"},{"internalType":"uint256","name":"developerCommission","type":"uint256"},{"internalType":"uint256","name":"elympicsCommission","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct VerifiedCompetitionDataSigned","name":"competitionData","type":"tuple"}],"name":"conclude","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes16","name":"gameId","type":"bytes16"}],"name":"developerTreasuries","outputs":[{"internalType":"address","name":"treasury","type":"address"}],"stateMutability":"view","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":"elympicsTreasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"}],"name":"encode","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"entry","type":"tuple"}],"name":"encode","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"messageHash","type":"bytes32"}],"name":"getEthSignedDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"}],"name":"getProofOfGameDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfGameSigned","name":"proofOfGameSigned","type":"tuple"},{"internalType":"uint256","name":"developerCommission","type":"uint256"},{"internalType":"uint256","name":"elympicsCommission","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct VerifiedCompetitionDataSigned","name":"competitionData","type":"tuple"}],"name":"getVerifiedCompetitionDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"request","type":"tuple"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct WithdrawTicket","name":"withdrawTicket","type":"tuple"}],"name":"getWithdrawTicketHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"name":"isNonceUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"matchAuthority","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"addressInfo","type":"tuple"}],"name":"packAddressInfo","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"entry","type":"tuple"}],"name":"packErc20Entry","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"name":"packGame","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"}],"name":"packProofOfEntry","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"}],"name":"packProofOfGame","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfGameSigned","name":"proofOfGameSigned","type":"tuple"},{"internalType":"uint256","name":"developerCommission","type":"uint256"},{"internalType":"uint256","name":"elympicsCommission","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct VerifiedCompetitionDataSigned","name":"competitionData","type":"tuple"}],"name":"packVerifiedCompetitionData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"request","type":"tuple"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct WithdrawTicket","name":"withdrawTicket","type":"tuple"}],"name":"packWithdrawTicket","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"ethSignedMessageHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_signatureValidator","type":"address"}],"name":"reinitializeV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"callerConfirmation","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes16","name":"gameId","type":"bytes16"},{"internalType":"address","name":"developerTreasury","type":"address"}],"name":"setDeveloperTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newElympicsTreasury","type":"address"}],"name":"setElympicsTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMatchAuthority","type":"address"}],"name":"setMatchAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newWithdrawAuthority","type":"address"}],"name":"setWithdrawAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureValidator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"topUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfGameSigned","name":"proofOfGameSigned","type":"tuple"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"request","type":"tuple"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct WithdrawTicket","name":"ticket","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct WithdrawTicketSigned","name":"withdrawTicketSigned","type":"tuple"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"components":[{"components":[{"components":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"bet","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"}],"internalType":"struct ProofOfEntry","name":"proofOfEntry","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfEntrySigned[]","name":"entries","type":"tuple[]"},{"internalType":"int8[]","name":"results","type":"int8[]"},{"components":[{"internalType":"bytes16","name":"id","type":"bytes16"},{"internalType":"bytes16","name":"version","type":"bytes16"},{"internalType":"bytes32","name":"data","type":"bytes32"}],"internalType":"struct Game","name":"game","type":"tuple"}],"internalType":"struct ProofOfGame","name":"proofOfGame","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ProofOfGameSigned","name":"proofOfGameSigned","type":"tuple"},{"internalType":"uint256","name":"developerCommission","type":"uint256"},{"internalType":"uint256","name":"elympicsCommission","type":"uint256"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct VerifiedCompetitionDataSigned","name":"data","type":"tuple"},{"internalType":"address","name":"signer","type":"address"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"components":[{"internalType":"address","name":"player","type":"address"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct ERC20Entry","name":"request","type":"tuple"},{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"chainId","type":"uint256"}],"internalType":"struct AddressInfo","name":"verifyingContract","type":"tuple"},{"internalType":"bytes22","name":"nonce","type":"bytes22"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct WithdrawTicket","name":"ticket","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct WithdrawTicketSigned","name":"withdrawTicket","type":"tuple"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAuthority","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
9c4d535b0000000000000000000000000000000000000000000000000000000000000000010008e5a60a0ad597f3569d1e812bcb4728706997faa6eb973ec726781bea1100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x0001000000000002001800000000000200000000000103550000008003000039000000400030043f00000001002001900000001c0000c13d00000060021002700000082902200197000000040020008c00000a0e0000413d000000000301043b000000e003300270000008300030009c0000003b0000a13d000008310030009c000000500000213d000008410030009c000001160000213d000008490030009c000001a70000213d0000084d0030009c000004380000613d0000084e0030009c000003590000613d0000084f0030009c0000025f0000613d00000a0e0000013d0000000001000416000000000001004b00000a0e0000c13d0000082a01000041000000000101041a0000082b00100198000003d60000c13d0000082c021001970000082c0020009c000000360000613d0000082c011001c70000082a02000041000000000012041b0000082c01000041000000800010043f0000000001000414000008290010009c0000082901008041000000c0011002100000082d011001c70000800d0200003900000001030000390000082e0400004120a120970000040f000000010020019000000a0e0000613d0000002001000039000001000010044300000120000004430000082f01000041000020a20001042e000008500030009c000000a70000a13d000008510030009c000000f50000213d000008590030009c000001450000213d0000085d0030009c0000028b0000613d0000085e0030009c000002680000613d0000085f0030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d0000082a01000041000000000101041a000000ff0110018f000000800010043f0000087201000041000020a20001042e000008320030009c000001250000213d0000083a0030009c000001bf0000213d0000083e0030009c0000046b0000613d0000083f0030009c0000039d0000613d000008400030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000402100370000000000202043b001800000002001d0000086f0020009c00000a0e0000213d0000002401100370000000000201043b0000087701000041000000a00010043f0000000001000411000000a40010043f0000000001000410000000c40010043f001700000002001d000000e40020043f0000006401000039000000800010043f0000012001000039000000400010043f0000000001000414000008290010009c0000082901008041000000c00110021000000878011001c7000000180200002920a120970000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f0000002004400190000000870000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000000830000c13d000000000005004b000000940000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f00000000005404350000000100200190000004de0000613d000000000003004b0000053a0000c13d0000087a010000410000000000100443000000180100002900000004001004430000000001000414000008290010009c0000082901008041000000c0011002100000087b011001c7000080020200003920a1209c0000040f0000000100200190000009b10000613d000000000101043b0000053e0000013d000008600030009c000001340000a13d000008610030009c0000019c0000213d000008650030009c000003490000613d000008660030009c0000032e0000613d000008670030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000402100370000000000202043b001800000002001d0000002401100370000000000101043b001700000001001d0000086f0010009c00000a0e0000213d0000001801000029000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000000101100039000000000101041a001600000001001d000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000000002000411000000000101043b0000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff00100190000005e70000c13d0000088b01000041000000000010043f0000000001000411000000040010043f0000001601000029000000240010043f0000088c01000041000020a300010430000008520030009c000001660000213d000008560030009c000002bd0000613d000008570030009c0000025f0000613d000008580030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000002402100370000000000202043b001800000002001d0000086f0020009c00000a0e0000213d0000000401100370000000000101043b000000000010043f000008b601000041000000200010043f0000004002000039000000000100001920a120820000040f000000180200002920a118020000040f000000000101041a000000ff001001900000000001000039000000010100c0390000049e0000013d000008420030009c000002220000213d000008460030009c0000047b0000613d000008470030009c000003b10000613d000008480030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d0000088201000041000000800010043f0000087201000041000020a20001042e000008330030009c0000022d0000213d000008370030009c000004840000613d000008380030009c000003da0000613d000008390030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d0000087301000041000000800010043f0000087201000041000020a20001042e000008680030009c0000024a0000a13d000008690030009c000003250000613d0000086a0030009c000003010000613d0000086b0030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d000000e40020008c00000a0e0000413d000000000102001920a10b840000040f20a113e00000040f000004ad0000013d0000085a0030009c000002c40000613d0000085b0030009c0000027e0000613d0000085c0030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d000008a001000041000000000101041a000000000001004b000004cc0000c13d000008a301000041000000000101041a000000000001004b000004cc0000c13d0000089f01000041000000000101041a000000010210019000000001041002700000007f0440618f0000001f0040008c00000000030000390000000103002039000000000023004b000005000000613d000008ae01000041000000000010043f0000002201000039000000040010043f0000088001000041000020a300010430000008530030009c000002ea0000613d000008540030009c000002850000613d000008550030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d000000000102001920a1112f0000040f0000006002100039000000000202043300000000420204340000086f022001970000000003000410000000000032004b000004d60000c13d001700000001001d0000000021010434000600000002001d001600000001001d0000000002010433000500000002001d00000040022000390000000001020433001500000001001d0000000001040433001800000001001d0000088e0100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f0000000100200190000009b10000613d000000000101043b000000180010006b000004fc0000c13d000000000100041a0000086f021001970000001701000029001800000002001d20a11cba0000040f000000000001004b0000057c0000c13d000008b501000041000000000010043f0000088501000041000020a300010430000008620030009c000003520000613d000008630030009c000003370000613d000008640030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d0000000601000039000004c00000013d0000084a0030009c000004960000613d0000084b0030009c000003ec0000613d0000084c0030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000401100370000000000101043b0000082c0010009c00000a0e0000213d000000040110003920a10d8b0000040f00000024020000390000000002200367000000000202043b0000086f0020009c00000a0e0000213d20a118a40000040f0000049e0000013d0000083b0030009c000004a50000613d0000083c0030009c000004100000613d0000083d0030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000c40020008c00000a0e0000413d000000e003000039000000400030043f0000000404100370000000000404043b0000086f0040009c00000a0e0000213d000000800040043f0000012004000039000000400040043f0000002404100370000000000404043b0000086f0040009c00000a0e0000213d000000e00040043f0000004404100370000000000404043b000001000040043f000000a00030043f0000006403100370000000000303043b000008740030019800000a0e0000c13d000000c00030043f0000008403100370000000000403043b0000082c0040009c00000a0e0000213d0000002303400039000000000023004b00000a0e0000813d0000000405400039000000000351034f000000000303043b0000082c0030009c000006f90000213d0000001f063000390000087506600197000008760060009c000006f90000213d0000003f0660003900000875066001970000012006600039000000400060043f000001200030043f00000000043400190000002404400039000000000024004b00000a0e0000213d0000002002500039000000000421034f000008c7053001980000001f0630018f0000014002500039000002060000613d0000014007000039000000000804034f000000008908043c0000000007970436000000000027004b000002020000c13d000000000006004b000002130000613d000000000454034f0000000305600210000000000602043300000000065601cf000000000656022f000000000404043b0000010005500089000000000454022f00000000045401cf000000000464019f000000000042043500000140023000390000000000020435000000a401100370000000000101043b001800000001001d0000086f0010009c00000a0e0000213d0000008001000039000001200200003920a114920000040f0000086f01100197000000180010006c000000000100003900000001010060390000049e0000013d000008430030009c000004bc0000613d000008440030009c000004170000613d000008450030009c00000a0e0000c13d0000000001000416000000000001004b00000a0e0000c13d0000000101000039000004c00000013d000008340030009c000004c50000613d000008350030009c000004200000613d000008360030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000640020008c00000a0e0000413d000000e002000039000000400020043f0000000402100370000000000202043b0000086e0020019800000a0e0000c13d000000800020043f0000002402100370000000000202043b0000086e0020019800000a0e0000c13d000000a00020043f0000004401100370000000000101043b000000c00010043f000000800100003920a11ee00000040f000004ad0000013d0000086c0030009c000002fc0000613d0000086d0030009c00000a0e0000c13d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b000008c40010019800000a0e0000c13d000008c50010009c00000000020000390000000102006039000008c60010009c00000001022061bf000000800020043f0000087201000041000020a20001042e0000000001000416000000000001004b00000a0e0000c13d000000440020008c00000a0e0000413d000000000102001920a10b690000040f20a117ec0000040f000004ad0000013d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b000008740010019800000a0e0000c13d000000000010043f0000000501000039000000200010043f0000004002000039000000000100001920a120820000040f000000000101041a000000ff001001900000000001000039000000010100c039000000800010043f0000087201000041000020a20001042e0000000001000416000000000001004b00000a0e0000c13d000000000102001920a10c550000040f20a11aab0000040f000004810000013d0000000001000416000000000001004b00000a0e0000c13d000000800000043f0000087201000041000020a20001042e0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b001800000001001d0000086f0010009c00000a0e0000213d00000000010004110000086f01100197000000000010043f000008bd01000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff001001900000031d0000613d0000001802000029000000000002004b000005360000613d000000000100041a0000088801100197000000000121019f000000000010041b000000400100043d0000000000210435000008290010009c000008290100804100000040011002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000087d011001c70000800d020000390000000103000039000008be04000041000005d00000013d0000000001000416000000000001004b00000a0e0000c13d000000000102001920a1112f0000040f20a1166b0000040f000004ad0000013d0000000003000416000000000003004b00000a0e0000c13d000000a40020008c00000a0e0000413d000000e003000039000000400030043f0000000404100370000000000404043b0000086f0040009c00000a0e0000213d000000800040043f0000012004000039000000400040043f0000002404100370000000000404043b0000086f0040009c00000a0e0000213d000000e00040043f0000004404100370000000000404043b000001000040043f000000a00030043f0000006403100370000000000303043b000008740030019800000a0e0000c13d000000c00030043f0000008401100370000000000101043b0000082c0010009c00000a0e0000213d000000040110003920a10c030000040f0000000002010019000000800100003920a114920000040f000004790000013d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000002403100370000000000303043b0000082c0030009c00000a0e0000213d0000000401100370000000000101043b001800000001001d000000040130003920a10c030000040f0000000002010019000000180100002920a118120000040f000004790000013d0000000001000416000000000001004b00000a0e0000c13d000000000100041a000004c10000013d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b001800000001001d0000086f0010009c00000a0e0000213d00000000010004110000086f01100197000000000010043f000008bd01000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff001001900000051d0000c13d0000088b01000041000000000010043f0000000001000411000000040010043f000008bf01000041000000240010043f0000088c01000041000020a3000104300000000001000416000000000001004b00000a0e0000c13d000000e40020008c00000a0e0000413d000000000102001920a10b840000040f20a113e00000040f000004810000013d0000000001000416000000000001004b00000a0e0000c13d000000840020008c00000a0e0000413d000000000102001920a10bd70000040f20a1144a0000040f000004ad0000013d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000402100370000000000302043b0000002401100370000000000201043b0000086f0020009c00000a0e0000213d0000000001000411000000000012004b000004da0000c13d000000000103001920a11f260000040f0000000001000019000020a20001042e0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b20a114380000040f0000049e0000013d0000000001000416000000000001004b00000a0e0000c13d000008bf01000041000000800010043f0000087201000041000020a20001042e0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000402100370000000000202043b001800000002001d0000086e0020019800000a0e0000c13d0000002401100370000000000101043b001700000001001d0000086f0010009c00000a0e0000213d00000000010004110000086f01100197000000000010043f0000088901000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff00100190000004080000613d0000001801000029000000000010043f0000000301000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a00000888022001970000001703000029000000000232019f000000000021041b000000400100043d0000000000310435000008290010009c000008290100804100000040011002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000087d011001c70000800d0200003900000002030000390000088d040000410000001805000029000005d00000013d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000002402100370000000000202043b001800000002001d0000086f0020009c00000a0e0000213d0000000401100370000000000101043b001700000001001d20a114380000040f20a11efb0000040f0000001701000029000000180200002920a11f260000040f0000000001000019000020a20001042e0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b0000086f0010009c00000a0e0000213d0000082a03000041000000000203041a0000088300200198000003d60000c13d000008860220019700000887042001c7000000000043041b000000000001004b000005360000613d0000000603000039000000000403041a0000088804400197000000000114019f000000000013041b00000002012001bf0000082a02000041000000000012041b0000000201000039000000800010043f0000000001000414000008290010009c0000082901008041000000c0011002100000082d011001c70000800d0200003900000001030000390000082e04000041000005d00000013d0000088401000041000000000010043f0000088501000041000020a3000104300000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000401100370000000000101043b0000082c0010009c00000a0e0000213d000000040110003920a10f1d0000040f00000024020000390000000002200367000000000202043b0000086f0020009c00000a0e0000213d20a11cba0000040f0000049e0000013d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b001800000001001d0000086f0010009c00000a0e0000213d00000000010004110000086f01100197000000000010043f0000088901000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff00100190000005330000c13d0000088b01000041000000000010043f0000000001000411000000040010043f0000087301000041000000240010043f0000088c01000041000020a3000104300000000001000416000000000001004b00000a0e0000c13d000000000102001920a10c550000040f20a11aab0000040f000004ad0000013d0000000001000416000000000001004b00000a0e0000c13d000000840020008c00000a0e0000413d000000000102001920a10bd70000040f20a11a580000040f000004ad0000013d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000402100370000000000202043b0000086f0020009c00000a0e0000213d0000002401100370000000000101043b001800000001001d0000086f0010009c00000a0e0000213d000000000020043f0000000401000039000000200010043f0000004002000039000000000100001920a120820000040f000000180200002920a118020000040f000000000101041a0000049e0000013d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b0000082c0010009c00000a0e0000213d000000040110003920a113410000040f00000000040104330000004002400039000000000202043300000000520204340000086f022001970000000003000410000000000032004b000004d60000c13d001700000001001d001600000004001d00000020024000390000000002020433001500000002001d0000000001050433001800000001001d0000088e0100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f0000000100200190000009b10000613d000000000101043b000000180010006b000004fc0000c13d0000000101000039000000000101041a0000086f02100197000000170100002920a11bbc0000040f000000000001004b000006330000c13d0000089701000041000000000010043f0000088501000041000020a3000104300000000001000416000000000001004b00000a0e0000c13d000000240020008c00000a0e0000413d20a10c4d0000040f0000088101100197000000000010043f0000000301000039000000200010043f0000004002000039000000000100001920a120820000040f000000000101041a0000086f011001970000049e0000013d0000000001000416000000000001004b00000a0e0000c13d000000000102001920a1112f0000040f20a1166b0000040f000000001201043420a120820000040f0000049e0000013d0000000003000416000000000003004b00000a0e0000c13d000000440020008c00000a0e0000413d0000000401100370000000000101043b0000082c0010009c00000a0e0000213d000000040110003920a113410000040f00000024020000390000000002200367000000000202043b0000086f0020009c00000a0e0000213d20a11bbc0000040f0000049e0000013d0000000003000416000000000003004b00000a0e0000c13d000000240020008c00000a0e0000413d0000000401100370000000000101043b20a1187c0000040f000000400200043d0000000000120435000008290020009c0000082902008041000000400120021000000870011001c7000020a20001042e0000000001000416000000000001004b00000a0e0000c13d000000440020008c00000a0e0000413d000000000102001920a10b690000040f20a11a930000040f0000002002000039000000400300043d001800000003001d000000000223043620a10bc50000040f00000018020000290000000001210049000008290010009c00000829010080410000006001100210000008290020009c00000829020080410000004002200210000000000121019f000020a20001042e0000000001000416000000000001004b00000a0e0000c13d0000000201000039000000000101041a0000086f01100197000000800010043f0000087201000041000020a20001042e0000000001000416000000000001004b00000a0e0000c13d0000087101000041000000800010043f0000087201000041000020a20001042e000008b701000041000000800010043f0000002001000039000000840010043f0000001501000039000000a40010043f000008b801000041000000c40010043f000008b901000041000020a3000104300000089801000041000000000010043f0000088501000041000020a300010430000008c001000041000000000010043f0000088501000041000020a3000104300000001f0530018f0000087906300198000000400200043d0000000004620019000004e90000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000004e50000c13d000000000005004b000004f60000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a3000104300000089901000041000000000010043f0000088501000041000020a300010430000000800040043f000000000002004b000005850000613d001800000004001d0000089f01000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000001805000029000000000005004b00000000020000190000058a0000613d000000000101043b0000000002000019000000000301041a000000a004200039000000000034043500000001011000390000002002200039000000000052004b000005150000413d0000058a0000013d0000001802000029000000000002004b000005360000613d0000000103000039000000000103041a0000088801100197000000000121019f000000000013041b000000400100043d0000000000210435000008290010009c000008290100804100000040011002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000087d011001c70000800d02000039000008c204000041000005d00000013d0000001803000029000000000003004b000005bd0000c13d000008c301000041000000000010043f0000088501000041000020a300010430000000000100043d000000010010008c00000000010000390000000101006039000000000001004b000005460000c13d0000087f01000041000000000010043f0000001801000029000000040010043f0000088001000041000020a30001043000000000010004110000086f01100197000000000010043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000001802000029000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a0000001703000029000000000032001a00000b3b0000413d0000000002320019000000000021041b000000400100043d0000000000310435000008290010009c000008290100804100000040011002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000087d011001c70000800d0200003900000003030000390000087e040000410000000005000411000000180600002920a120970000040f000000010020019000000a0e0000613d000005d30000013d0000001601000029000000180200002920a118a40000040f000000000001004b000005d50000c13d000008b401000041000000000010043f0000088501000041000020a300010430000008c801100197000000a00010043f000000000004004b000000200200003900000000020060390000003f01200039000008c90010009c000006f90000213d000008c7011001970000008005100039000008ba0050009c000006f90000813d000000400050043f000008a202000041000000000202041a000000010320019000000001062002700000007f0660618f0000001f0060008c00000000040000390000000104002039000000000424013f0000000100400190000001600000c13d001800000005001d001600000006001d0000000000650435001700a00010003d000000000003004b0000067a0000613d000008a201000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000001606000029000000000006004b00000000020000190000001705000029000006800000613d000000000101043b00000000020000190000000003520019000000000401041a000000000043043500000001011000390000002002200039000000000062004b000005b50000413d000006800000013d0000000201000039000000000201041a0000088802200197000000000232019f000000000021041b000000400100043d0000000000310435000008290010009c000008290100804100000040011002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000087d011001c70000800d0200003900000001030000390000088a0400004120a120970000040f000000010020019000000a0e0000613d0000000001000019000020a20001042e00000017010000290000004001100039000400000001001d000000000101043300000006020000290000000002020433000000000012001a00000b3b0000413d00000000011200190000089a0010009c000006600000a13d000008b302000041000000000020043f000000040010043f0000089a01000041000000240010043f0000088c01000041000020a3000104300000001801000029000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000001702000029000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff00100190000005d30000c13d0000001801000029000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000001702000029000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a000008c80220019700000001022001bf000000000021041b0000000001000414000008290010009c0000082901008041000000c0011002100000089d011001c70000800d020000390000000403000039000008c10400004100000018050000290000001706000029000000000700041120a120970000040f0000000100200190000005d30000c13d00000a0e0000013d00000016010000290000006001100039001800000001001d00000000010104330000089001100197000000000010043f0000000501000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff00100190000006ec0000c13d000000160100002900000080011000390000000001010433001700000001001d000008920100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f0000000100200190000009b10000613d00000017020000290000082c02200197000000000101043b000000000021004b000006ff0000a13d0000089601000041000000000010043f0000088501000041000020a300010430000000150100002900000000010104330000088101100197000300000001001d000000000010043f0000000301000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a0000086f00100198000006f40000c13d000008b201000041000000000010043f0000000301000029000000040010043f0000088001000041000020a300010430000008c80120019700000017020000290000000000120435000000160000006b000000200200003900000000020060390000003f01200039000008c7011001970000001802100029000000000012004b00000000010000390000000101004039001600000002001d0000082c0020009c000006f90000213d0000000100100190000006f90000c13d0000001601000029000000400010043f000008bb0010009c000006f90000213d00000016020000290000002001200039000000400010043f0000000000020435000000400100043d001500000001001d0000088e0100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f0000000100200190000009b10000613d000000000101043b00000015040000290000002002400039000000e0030000390000000000320435000008bc020000410000000000240435000000e002400039000000800300043d00000000003204350000010004400039000000000003004b000006b50000613d00000000020000190000000005420019000000a006200039000000000606043300000000006504350000002002200039000000000032004b000006ae0000413d0000000002000410000000000543001900000000000504350000001f03300039000008c70330019700000000034300190000001505000029000000000453004900000040055000390000000000450435000000180400002900000000040404330000000003430436000000000004004b0000001708000029000006cd0000613d000000000500001900000000063500190000000007850019000000000707043300000000007604350000002005500039000000000045004b000006c60000413d000000000534001900000000000504350000086f02200197000000150600002900000080056000390000000000250435000000600260003900000000001204350000001f01400039000008c70110019700000000013100190000000002610049000000c0036000390000000000230435000000a0026000390000000000020435000000160200002900000000020204330000000001210436000000000002004b000006ea0000613d000000000300001900000016050000290000002005500039000000000405043300000000014104360000000103300039000000000023004b000006e40000413d0000001502000029000004b30000013d000000180100002900000000010104330000089102000041000000000020043f0000089001100197000000040010043f0000088001000041000020a3000104300000000001000415000200000001001d000000400100043d0000089b0010009c000007520000a13d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000015010000290000000012010434001700000002001d001400000001001d000000160100002900000000010104330000086f01100197000000000010043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b00000017020000290000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a001300000001001d000000160100002900000000010104330000086f0210019700000015010000290000000001010433001700000001001d00000014010000290000000001010433001200000001001d001100000002001d000000000020043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b00000017020000290000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000001203000029000000130030006b000009b20000813d00000014020000290000000002020433000000000101043b000000000101041a0000089403000041000000000030043f000000110300002900000a2d0000013d00000005020000290000000023020434000100000002001d0000004002100039000000400020043f000000200210003900000000000204350000000000010435000900000003001d0000000021030434000a00000002001d000b00000001001d000000000001004b000007640000c13d000008b101000041000000000010043f0000088501000041000020a3000104300000000a010000290000000001010433000000000101043300000020011000390000000001010433000c00000001001d001600200010003d000000000200001900000009010000290000000001010433000000000021004b00000b350000a13d000d00000002001d00000005012002100000000a0110002900000000010104330000000012010434001500000001001d000000200120003900000000030104330000000601000039000000000101041a001400000001001d001800000002001d0000000001020433001700000001001d000000400100043d001000000003001d00000000420304340000006003100039000e00000004001d000000000404043300000000004304350000086f0220019700000040031000390000000000230435000000200210003900000882030000410000000000320435000000600300003900000000003104350000089c0010009c000006f90000213d0000008003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d00000017020000290000086f05200197000000000201043b00000018010000290000004001100039001700000001001d0000000003010433000000400100043d000000600410003900000000002404350000004002100039001300000005001d0000000000520435000008900230019700000080031000390000000000230435000000200210003900000871030000410000000000320435000000800300003900000000003104350000089e0010009c000006f90000213d000000a003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000089f02000041000000000202041a000000010320019000000001052002700000007f0550618f000000400600043d0000001f0050008c00000000040000390000000104002039000000000424013f000000000101043b001200000001001d0000000100400190000001600000c13d0000000007560436000000000003004b000007fc0000613d001100000005001d000800000007001d000f00000006001d0000089f01000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000001105000029000000000005004b000008020000613d000000000201043b00000000010000190000000f0600002900000008070000290000000003710019000000000402041a000000000043043500000001022000390000002001100039000000000051004b000007f40000413d000008050000013d000008c8012001970000000000170435000000000005004b00000020010000390000000001006039000008050000013d00000000010000190000000f0600002900000008070000290000003f01100039000008c7011001970000000005610019000000000015004b000000000100003900000001010040390000082c0050009c000006f90000213d0000000100100190000006f90000c13d000000400050043f0000000001060433000000000001004b000008270000613d000008290070009c00000829070080410000004002700210000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000400500043d000000000401043b0000082b0000013d000008a001000041000000000401041a000000000004004b000008a104006041000008a201000041000000000101041a000000010210019000000001071002700000007f0770618f0000001f0070008c00000000030000390000000103002039000000000313013f0000000100300190000001600000c13d001100000004001d0000000006750436000000000002004b000008570000613d000700000007001d000800000006001d000f00000005001d000008a201000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d0000000707000029000000000007004b0000085d0000613d000000000201043b00000000010000190000000f0500002900000008060000290000000003610019000000000402041a000000000043043500000001022000390000002001100039000000000071004b0000084f0000413d000008600000013d000008c8011001970000000000160435000000000007004b00000020010000390000000001006039000008600000013d00000000010000190000000f0500002900000008060000290000003f01100039000008c7011001970000000003510019000000000013004b000000000100003900000001010040390000082c0030009c000006f90000213d0000000100100190000006f90000c13d000000400030043f0000000001050433000000000001004b000008820000613d000008290060009c00000829060080410000004002600210000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000400300043d000000000101043b000008860000013d000008a301000041000000000101041a000000000001004b000008a101006041000f00000003001d000000600230003900000000001204350000004001300039000000110200002900000000002104350000002002300039000008a401000041001100000002001d00000000001204350000088e0100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f0000000100200190000009b10000613d000000000101043b0000000f04000029000000a0024000390000000003000410000000000032043500000080024000390000000000120435000000a0010000390000000000140435000008a50040009c000006f90000213d000000c001400039000000400010043f0000001101000029000008290010009c000008290100804100000040011002100000000002040433000008290020009c00000829020080410000006002200210000000000112019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000400200043d000000220320003900000012040000290000000000430435000008a603000041000000000032043500000002032000390000000000130435000008290020009c000008290200804100000040012002100000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000008a7011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d00000014020000290000086f0220019700000015030000290000000003030433000000000101043b000000400800043d00000044048000390000006005000039000000000054043500000024048000390000000000140435000008a80100004100000000001804350000000401800039000000130400002900000000004104350000006405800039000000004103043400000000001504350000008403800039000000000001004b000008ef0000613d000000000500001900000000063500190000000007540019000000000707043300000000007604350000002005500039000000000015004b000008e80000413d0000001f04100039000008c704400197000000000131001900000000000104350000008401400039000008290010009c00000829010080410000006001100210000008290080009c000008290300004100000000030840190000004003300210000000000131019f0000000003000414000008290030009c0000082903008041000000c003300210000000000113019f001500000008001d20a120970000040f000000150a00002900000060031002700000082903300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000009120000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b0000090e0000c13d0000001f074001900000091f0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f0000000000650435000000010020019000000a100000613d0000001f01400039000000600210018f0000000001a20019000000000021004b000000000200003900000001020040390000082c0010009c000006f90000213d0000000100200190000006f90000c13d000000400010043f000000200030008c00000a0e0000413d00000000010a0433000000010010008c00000a0e0000213d000000000001004b00000a1c0000613d000000170100002900000000010104330000089001100197000000000010043f0000000501000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000101041a000000ff0010019000000a1e0000c13d000000100100002900000000010104330000086f021001970000000c0100002900000000010104330000086f01100197000000000012004b00000a200000c13d001500000002001d000000160100002900000000010104330000000e020000290000000002020433000000000012004b00000a220000c13d000000180100002900000000010104330000086f01100197000000000010043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000001502000029000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d00000016020000290000000002020433000000000101043b000000000101041a000000000021004b00000a280000413d000000170100002900000000010104330000089001100197000000000010043f0000000501000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a000008c80220019700000001022001bf000000000021041b0000000d0200002900000001022000390000000b0020006c0000076c0000413d00000000010004150000000201100069000000000100000200000001010000290000000001010433001400000001001d0000000013010434001500000001001d000000000003004b00000a320000c13d000000800100008a00000000020000190000000b0030006b00000a5c0000c13d000000160300002900000000040304330000000b034000b9000000000004004b00000a630000c13d0000000004000019000a00000000001d000008ad0440012a000900000004001d0000000a04400029000000000343004b00000b3b0000413d000000000002004b00000a760000c13d000008ae01000041000000000010043f0000001201000039000000040010043f0000088001000041000020a300010430000000000001042f000000180100002900000000010104330000089001100197000000000010043f0000000501000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a000008c80220019700000001022001bf000000000021041b00000014010000290000000001010433001800000001001d000000160100002900000000010104330000086f01100197000000000010043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000150200002900000000020204330000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a000000180220006c00000b3b0000413d000000000021041b0000001401000029000000000301043300000016010000290000000002010433000000150100002900000000010104330000086f011001970000086f0220019720a11ffd0000040f000000150100002900000000020104330000001601000029000000000301043300000014010000290000000001010433000000400400043d0000000000140435000008290040009c000008290400804100000040014002100000000004000414000008290040009c0000082904008041000000c004400210000000000114019f0000087d011001c70000086f053001970000086f062001970000800d020000390000000303000039000008930400004120a120970000040f0000000100200190000005d30000c13d0000000001000019000020a3000104300000001f0530018f0000087906300198000000400200043d0000000004620019000004e90000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000a170000c13d000004e90000013d000008b00100004100000a230000013d0000001701000029000006ed0000013d000008a90100004100000a230000013d000008aa01000041000000000010043f0000000d01000029000000040010043f0000088001000041000020a300010430000000180300002900000000030304330000089404000041000000000040043f0000086f03300197000000040030043f000000240010043f000000440020043f0000089501000041000020a300010430000000800400008a000000000600001900000000020000190000000001040019000000150c00002900000a3d0000013d000000000107001900000001020000390000000106600039000000000036004b0000099b0000813d000000050760021000000000077c001900000000070704330000008000700190000000000804001900000000080060190000007f0770018f000000000778019f0000008000100190000000000804001900000000080060190000007f0910018f000000000898019f000008ab09700197000008ab0a800197000000000ba9013f0000000000a9004b0000000009000019000008ab09002041000000000087004b000000000a000019000008ab0a00a041000008ab00b0009c00000000090ac019000000000009004b00000a380000613d000000000087004b00000a3a0000c13d000000010220003a00000a3a0000c13d00000b3b0000013d000008ac01000041000000000010043f0000000b01000029000000040010043f000000240030043f0000088c01000041000020a30001043000000000044300d90000000b0040006c00000b3b0000c13d000000000003004b000009a20000613d0000000404000029000000000404043300000000053400a900000000063500d9000000000046004b00000b3b0000c13d0000000604000029000000000604043300000000043600a900000000073400d9000000000067004b00000b3b0000c13d000a08ad00500132000009a40000013d000e0000302300e10000008000100190000000800200008a00000000020060190000007f0110018f00120000001201a3000d00000003001d000000000003004b0000000001000039000000010100c039001000000001001d00000005010000290000000001010433001300000001001d001100200010003d0000000004000019000000150300002900000a8d0000013d001000000000001d000000180400002900000001044000390000000b0040006c00000b410000813d00000013010000290000000001010433000000000041004b00000b350000a13d00000014010000290000000001010433000000000041004b00000b350000a13d000000050140021000000011021000290000000002020433000000000202043300000000020204330000086f052001970000000001130019000000000101043300000016020000290000000003020433000000000050043f0000000402000039000000200020043f0000008000100190000000800200008a00000000020060190000007f0110018f000000000112019f000000120010006c001800000004001d00000ace0000c13d000f00000005001d0000000e0130006b00000aee0000813d001700000003001d0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000000c0200002900000000020204330000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d00000017030000290000000e0230006a000000000101043b000000000301041a000000000223004b000000150300002900000b0e0000813d00000b3b0000013d001700000003001d0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000000c0200002900000000020204330000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a000000170220006c000000150300002900000b3b0000413d000000000021041b00000a890000013d001700000001001d0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000000c0200002900000000020204330000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a0000001704000029000000000042001a000000150300002900000b3b0000413d0000000002420019000000000021041b0000000f02000029000000100000006b00000a880000613d000000000020043f0000000401000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b0000000c0200002900000000020204330000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a0000000d0020002a000000150300002900000b3b0000413d0000000d02200029000000000021041b00000a880000013d000008ae01000041000000000010043f0000003201000039000000040010043f0000088001000041000020a300010430000008ae01000041000000000010043f0000001101000039000000040010043f0000088001000041000020a3000104300000000201000039000000000201041a0000000c0100002900000000010104330000086f011001970000086f022001970000000a0300002920a11f770000040f0000000c010000290000000001010433001800000001001d0000000301000029000000000010043f0000000301000039000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000000a0e0000613d000000000101043b000000000201041a00000018010000290000086f011001970000086f02200197000000090300002920a11f770000040f0000000001000414000008290010009c0000082901008041000000c0011002100000089d011001c70000800d020000390000000103000039000008af04000041000005d00000013d000008ca0010009c00000b7c0000213d000000430010008c00000b7c0000a13d000000400100043d000008cb0010009c00000b7e0000813d0000004002100039000000400020043f00000000020003670000000403200370000000000303043b0000086f0030009c00000b7c0000213d00000000033104360000002402200370000000000202043b0000000000230435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000008ca0010009c00000bbd0000213d000000e30010008c00000bbd0000a13d000000400100043d000008cc0010009c00000bbf0000813d000000a002100039000000400020043f00000000020003670000000403200370000000000303043b0000086f0030009c00000bbd0000213d0000000003310436000000400400043d0000089b0040009c00000bbf0000213d0000004005400039000000400050043f0000002405200370000000000505043b0000086f0050009c00000bbd0000213d00000000055404360000004406200370000000000606043b00000000006504350000000000430435000000400300043d0000089b0030009c00000bbf0000213d0000004004300039000000400040043f0000006404200370000000000404043b0000086f0040009c00000bbd0000213d00000000044304360000008405200370000000000505043b000000000054043500000040041000390000000000340435000000a403200370000000000303043b000008740030019800000bbd0000c13d00000060041000390000000000340435000000c402200370000000000202043b0000082c0020009c00000bbd0000213d00000080031000390000000000230435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000000430104340000000001320436000000000003004b00000bd10000613d000000000200001900000000051200190000000006240019000000000606043300000000006504350000002002200039000000000032004b00000bca0000413d000000000213001900000000000204350000001f02300039000008c7022001970000000001210019000000000001042d000008ca0010009c00000bfb0000213d000000830010008c00000bfb0000a13d000000400100043d000008cd0010009c00000bfd0000813d0000006002100039000000400020043f00000000020003670000000403200370000000000303043b0000086f0030009c00000bfb0000213d0000000003310436000000400400043d0000089b0040009c00000bfd0000213d0000004005400039000000400050043f0000002405200370000000000505043b0000086f0050009c00000bfb0000213d00000000055404360000004406200370000000000606043b000000000065043500000000004304350000006402200370000000000202043b000008740020019800000bfb0000c13d00000040031000390000000000230435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000000030100190000001f01100039000000000021004b0000000004000019000008ab04004041000008ab05200197000008ab01100197000000000651013f000000000051004b0000000001000019000008ab01002041000008ab0060009c000000000104c019000000000001004b00000c450000613d0000000006000367000000000136034f000000000401043b000008ba0040009c00000c470000813d0000001f0140003900000875011001970000003f01100039000008ce05100197000000400100043d0000000005510019000000000015004b000000000700003900000001070040390000082c0050009c00000c470000213d000000010070019000000c470000c13d000000400050043f000000000541043600000020033000390000000007430019000000000027004b00000c450000213d000000000336034f000008c7064001980000001f0740018f000000000265001900000c350000613d000000000803034f0000000009050019000000008a08043c0000000009a90436000000000029004b00000c310000c13d000000000007004b00000c420000613d000000000363034f0000000306700210000000000702043300000000076701cf000000000767022f000000000303043b0000010006600089000000000363022f00000000036301cf000000000373019f000000000032043500000000024500190000000000020435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000004010000390000000001100367000000000101043b0000086e0010019800000c530000c13d000000000001042d0000000001000019000020a3000104300007000000000002000008ca0010009c00000d830000213d0000000002010019000000230010008c00000d830000a13d00000000030003670000000401300370000000000101043b000100000001001d0000082c0010009c00000d830000213d0000000101000029000400040010003d000000040120006a000008ca0010009c00000d830000213d000000a00010008c00000d830000413d000000400100043d000300000001001d000008cd0010009c00000d850000813d000000040130036000000003040000290000006004400039000200000004001d000000400040043f000000000101043b0000082c0010009c00000d830000213d0000000401100029000700000001001d0000001f01100039000000000021004b00000d830000813d0000000701300360000000000101043b0000082c0010009c00000d850000213d00000005041002100000003f05400039000008cf0550019700000002055000290000082c0050009c00000d850000213d000000400050043f0000000205000029000000000015043500000007050000290000002008500039000600000084001d000000060020006b00000d830000213d000000000001004b00000d1e0000613d0000000301000029000000800a100039000500200020009200000c980000013d0000000001f70019000000000001043500000000004e0435000000000ada04360000002008800039000000060080006c00000d1e0000813d000000000183034f000000000101043b0000082c0010009c00000d830000213d000000070f1000290000000501f00069000008ca0010009c00000d830000213d000000a00010008c00000d830000413d000000400d00043d0000089b00d0009c00000d850000213d0000004001d00039000000400010043f0000002006f000390000000001620049000000000e000415000008ca0010009c00000d830000213d000000800010008c00000d830000413d000000400400043d000008d00040009c00000d850000213d0000006001400039000000400010043f000000000163034f000000000101043b0000086f0010009c00000d830000213d00000000011404360000000005f20049000000400550008a000008ca0050009c00000d830000213d000000400050008c00000d830000413d000000400500043d0000089b0050009c00000d850000213d0000004007500039000000400070043f0000002006600039000000000763034f000000000707043b0000086f0070009c00000d830000213d0000000007750436000000200b600039000000000bb3034f000000000b0b043b0000000000b7043500000000005104350000004001600039000000000513034f000000000505043b000008740050019800000d830000c13d00000040064000390000000000560435000000000500041500000000055e00490000000005000002000000000e4d04360000002001100039000000000113034f000000000101043b0000082c0010009c00000d830000213d0000000001f100190000003f04100039000000000024004b0000000005000019000008ab05008041000008ab04400197000008ab06200197000000000764013f000000000064004b0000000004000019000008ab04004041000008ab0070009c000000000405c019000000000004004b00000d830000c13d0000002005100039000000000453034f000000000f04043b0000082c00f0009c00000d850000213d0000001f04f0003900000875044001970000003f04400039000008ce06400197000000400400043d0000000006640019000000000046004b000000000700003900000001070040390000082c0060009c00000d850000213d000000010070019000000d850000c13d000000400060043f0000000007f404360000000001f100190000004001100039000000000021004b00000d830000213d0000002001500039000000000b13034f000008c70cf001980000000001c7001900000d100000613d00000000050b034f0000000006070019000000005905043c0000000006960436000000000016004b00000d0c0000c13d0000001f05f0019000000c910000613d0000000006cb034f0000000305500210000000000901043300000000095901cf000000000959022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000595019f000000000051043500000c910000013d00000003010000290000000204000029000000000741043600000004010000290000002006100039000000000163034f000000000101043b0000082c0010009c00000d830000213d00000004011000290000001f04100039000000000024004b0000000005000019000008ab05008041000008ab04400197000008ab08200197000000000984013f000000000084004b0000000004000019000008ab04004041000008ab0090009c000000000405c0190000000005000415000000000004004b00000d830000c13d000000000413034f000000000904043b0000082c0090009c00000d850000213d00000005089002100000003f04800039000008cf0a400197000000400400043d000000000aa4001900000000004a004b000000000b000039000000010b0040390000082c00a0009c00000d850000213d0000000100b0019000000d850000c13d0000004000a0043f000000000094043500000020011000390000000008180019000000000028004b00000d830000213d000000000009004b00000d5f0000613d000000800900008a000000000a040019000000000b13034f000000000b0b043b0000008000b00190000000000c090019000000000c0060190000007f0db0018f000000000cdc019f0000000000cb004b00000d830000c13d000000200aa000390000000000ba04350000002001100039000000000081004b00000d510000413d0000000001000415000000000115004900000000010000020000000000470435000000010120006a000000440110008a000008ca0010009c00000d830000213d000000600010008c00000d830000413d000000400700043d000008d00070009c00000d850000213d0000006002700039000000400020043f0000002002600039000000000423034f000000000404043b0000086e0040019800000d830000c13d00000000044704360000002002200039000000000523034f000000000505043b0000086e0050019800000d830000c13d00000000005404350000002002200039000000000223034f000000000202043b00000040037000390000000000230435000000030100002900000040021000390000000000720435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000a000000000002000400000001001d0000000001120049000008ca0010009c00000f150000213d0000003f0010008c00000f150000a13d000000400100043d000600000001001d000008cb0010009c00000f170000813d00000006010000290000004001100039000100000001001d000000400010043f00000000040003670000000401400360000000000101043b0000082c0010009c00000f150000213d000500040010002d000000050120006a000200000001001d000008ca0010009c00000f150000213d0000000201000029000000a00010008c00000f150000413d00000006010000290000089e0010009c00000f170000213d00000005014003600000000603000029000000a003300039000300000003001d000000400030043f000000000101043b0000082c0010009c00000f150000213d0000000501100029000a00000001001d0000001f01100039000000000021004b0000000003000019000008ab03008041000008ab01100197000908ab0020019b000000090510014f000000090010006c0000000001000019000008ab01004041000008ab0050009c000000000103c019000000000001004b00000f150000c13d0000000a01400360000000000101043b0000082c0010009c00000f170000213d00000005031002100000003f05300039000008cf0550019700000003055000290000082c0050009c00000f170000213d000000400050043f000000030500002900000000001504350000000a01000029000000200c1000390008000000c3001d000000080020006b00000f150000213d0000000800c0006c00000e660000813d0000000601000029000000c00e100039000700200020009200000de10000013d00000000013d001900000000000104350000000000a80435000000000e5e0436000000200cc000390000000800c0006c00000e660000813d0000000001c4034f000000000101043b0000082c0010009c00000f150000213d0000000a031000290000000701300069000008ca0010009c00000f150000213d000000a00010008c00000f150000413d000000400500043d0000089b0050009c00000f170000213d0000004001500039000000400010043f000000200930003900000000019200490000000008000415000008ca0010009c00000f150000213d000000800010008c00000f150000413d000000400a00043d000008d000a0009c00000f170000213d0000006001a00039000000400010043f000000000194034f000000000101043b0000086f0010009c00000f150000213d00000000011a04360000000006320049000000400660008a000008ca0060009c00000f150000213d000000400060008c00000f150000413d000000400600043d0000089b0060009c00000f170000213d000000400b6000390000004000b0043f0000002009900039000000000b94034f000000000b0b043b0000086f00b0009c00000f150000213d000000000bb60436000000200d900039000000000dd4034f000000000d0d043b0000000000db043500000000006104350000004001900039000000000614034f000000000606043b000008740060019800000f150000c13d0000004009a0003900000000006904350000000006000415000000000668004900000000060000020000000008a504360000002001100039000000000114034f000000000101043b0000082c0010009c00000f150000213d00000000013100190000003f03100039000000000023004b0000000006000019000008ab06008041000008ab03300197000000090930014f000000090030006c0000000003000019000008ab03004041000008ab0090009c000000000306c019000000000003004b00000f150000c13d0000002006100039000000000364034f000000000303043b0000082c0030009c00000f170000213d0000001f0930003900000875099001970000003f09900039000008ce09900197000000400a00043d00000000099a00190000000000a9004b000000000b000039000000010b0040390000082c0090009c00000f170000213d0000000100b0019000000f170000c13d000000400090043f000000000d3a043600000000013100190000004001100039000000000021004b00000f150000213d0000002001600039000000000b14034f000008c70f3001980000000001fd001900000e580000613d00000000060b034f00000000090d0019000000006706043c0000000009790436000000000019004b00000e540000c13d0000001f0630019000000dda0000613d0000000007fb034f0000000306600210000000000901043300000000096901cf000000000969022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000696019f000000000061043500000dda0000013d00000001010000290000000303000029000000000031043500000005010000290000002005100039000000000154034f000000000101043b0000082c0010009c00000f150000213d00000005011000290000001f03100039000000000023004b0000000006000019000008ab06008041000008ab03300197000000090730014f000000090030006c0000000008000019000008ab08004041000008ab0070009c000000000806c0190000000003000415000000000008004b00000f150000c13d000000000614034f000000000606043b0000082c0060009c00000f170000213d00000005096002100000003f07900039000008cf07700197000000400800043d000000000a78001900000000008a004b000000000b000039000000010b0040390000082c00a0009c00000f170000213d0000000100b0019000000f170000c13d0000004000a0043f000000000068043500000020011000390000000009190019000000000029004b00000f150000213d000000000091004b00000ea60000813d000000800600008a000000000a080019000000000714034f000000000b07043b0000008000b00190000000000706001900000000070060190000007f0cb0018f0000000007c7019f00000000007b004b00000f150000c13d000000200aa000390000000000ba04350000002001100039000000000091004b00000e980000413d0000000001000415000000000113004900000000010000020000000601000029000000600110003900000000008104350000000201000029000000400110008a000008ca0010009c00000f150000213d000000600010008c00000f150000413d000000400100043d000008d00010009c00000f170000213d0000006003100039000000400030043f0000002003500039000000000534034f000000000505043b0000086e0050019800000f150000c13d00000000055104360000002003300039000000000634034f000000000606043b0000086e0060019800000f150000c13d00000000006504350000002003300039000000000334034f000000000303043b000000400510003900000000003504350000000603000029000000010500002900000000055304360000008003300039000000000013043500000004010000290000002001100039000000000114034f000000000101043b0000082c0010009c00000f150000213d00000004081000290000001f01800039000000000021004b0000000003000019000008ab03008041000008ab01100197000000090610014f000000090010006c0000000001000019000008ab01004041000008ab0060009c000000000103c019000000000001004b00000f150000c13d000000000184034f000000000301043b0000082c0030009c00000f170000213d0000001f0130003900000875011001970000003f01100039000008ce01100197000000400700043d0000000001170019000000000071004b000000000600003900000001060040390000082c0010009c00000f170000213d000000010060019000000f170000c13d000000400010043f000000000137043600000020068000390000000008630019000000000028004b00000f150000213d000000000464034f000008c7063001980000001f0830018f000000000261001900000f030000613d000000000904034f000000000a010019000000009b09043c000000000aba043600000000002a004b00000eff0000c13d000000000008004b00000f100000613d000000000464034f0000000306800210000000000802043300000000086801cf000000000868022f000000000404043b0000010006600089000000000464022f00000000046401cf000000000484019f00000000004204350000000001310019000000000001043500000000007504350000000601000029000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000d000000000002000600000001001d0000000001120049000400000001001d000008ca0010009c000011270000213d0000000401000029000000bf0010008c000011270000a13d000000400100043d000900000001001d000008cc0010009c000011290000813d0000000901000029000000a001100039000100000001001d000000400010043f00000000040003670000000601400360000000000101043b0000082c0010009c000011270000213d000700060010002d000000070120006a000008ca0010009c000011270000213d000000400010008c000011270000413d0000000901000029000008d10010009c000011290000213d00000007014003600000000903000029000000e003300039000200000003001d000000400030043f000000000101043b0000082c0010009c000011270000213d000800070010002d000000080120006a000300000001001d000008ca0010009c000011270000213d0000000301000029000000a00010008c000011270000413d0000000901000029000008d20010009c000011290000213d000000080140036000000009030000290000014003300039000500000003001d000000400030043f000000000101043b0000082c0010009c000011270000213d0000000801100029000c00000001001d0000001f01100039000000000021004b0000000003000019000008ab03008041000008ab01100197000d08ab0020019b0000000d0510014f0000000d0010006c0000000001000019000008ab01004041000008ab0050009c000000000103c019000000000001004b000011270000c13d0000000c01400360000000000101043b0000082c0010009c000011290000213d00000005031002100000003f05300039000008cf0550019700000005055000290000082c0050009c000011290000213d000000400050043f000000050500002900000000001504350000000c01000029000000200f100039000b000000f3001d0000000b0020006b000011270000213d0000000b00f0006c0000100b0000813d00000009010000290000016007100039000a00200020009200000f860000013d0000000001980019000000000001043500000000006304350000000007b70436000000200ff000390000000b00f0006c0000100b0000813d0000000001f4034f000000000101043b0000082c0010009c000011270000213d0000000c091000290000000a01900069000008ca0010009c000011270000213d000000a00010008c000011270000413d000000400b00043d0000089b00b0009c000011290000213d0000004001b00039000000400010043f000000200d9000390000000001d200490000000003000415000008ca0010009c000011270000213d000000800010008c000011270000413d000000400600043d000008d00060009c000011290000213d0000006001600039000000400010043f0000000001d4034f000000000101043b0000086f0010009c000011270000213d000000000a1604360000000001920049000000400110008a000008ca0010009c000011270000213d000000400010008c000011270000413d000000400100043d0000089b0010009c000011290000213d0000004008100039000000400080043f000000200cd000390000000008c4034f000000000808043b0000086f0080009c000011270000213d0000000008810436000000200dc00039000000000dd4034f000000000d0d043b0000000000d8043500000000001a04350000004001c00039000000000814034f000000000808043b0000087400800198000011270000c13d000000400a60003900000000008a043500000000080004150000000003830049000000000300000200000000036b04360000002001100039000000000114034f000000000101043b0000082c0010009c000011270000213d000000000c9100190000003f01c00039000000000021004b0000000006000019000008ab06008041000008ab011001970000000d0810014f0000000d0010006c0000000001000019000008ab01004041000008ab0080009c000000000106c019000000000001004b000011270000c13d000000200ac000390000000001a4034f000000000901043b0000082c0090009c000011290000213d0000001f0190003900000875011001970000003f01100039000008ce01100197000000400600043d0000000001160019000000000061004b000000000800003900000001080040390000082c0010009c000011290000213d0000000100800190000011290000c13d000000400010043f000000000896043600000000019c00190000004001100039000000000021004b000011270000213d0000002001a00039000000000e14034f000008c701900198000000000c18001900000ffd0000613d000000000a0e034f000000000d08001900000000a50a043c000000000d5d04360000000000cd004b00000ff90000c13d0000001f0a90019000000f7f0000613d00000000011e034f0000000305a00210000000000a0c0433000000000a5a01cf000000000a5a022f000000000101043b0000010005500089000000000151022f00000000015101cf0000000001a1019f00000000001c043500000f7f0000013d00000002010000290000000503000029000000000031043500000008010000290000002005100039000000000154034f000000000101043b0000082c0010009c000011270000213d00000008071000290000001f01700039000000000021004b0000000003000019000008ab03008041000008ab011001970000000d0610014f0000000d0010006c0000000001000019000008ab01004041000008ab0060009c000000000103c0190000000003000415000000000001004b000011270000c13d000000000174034f000000000101043b0000082c0010009c000011290000213d00000005091002100000003f06900039000008cf08600197000000400600043d000000000a86001900000000006a004b000000000800003900000001080040390000082c00a0009c000011290000213d0000000100800190000011290000c13d0000004000a0043f000000000016043500000020077000390000000009790019000000000029004b000011270000213d000000000097004b0000104b0000813d000000800100008a000000000a060019000000000874034f000000000808043b0000008000800190000000000b010019000000000b0060190000007f0c80018f000000000bcb019f0000000000b8004b000011270000c13d000000200aa0003900000000008a04350000002007700039000000000097004b0000103d0000413d0000000001000415000000000113004900000000010000020000000901000029000001000110003900000000006104350000000301000029000000400110008a000008ca0010009c000011270000213d000000600010008c000011270000413d000000400100043d000008d00010009c000011290000213d0000006003100039000000400030043f0000002003500039000000000534034f000000000505043b0000086e00500198000011270000c13d00000000055104360000002003300039000000000634034f000000000606043b0000086e00600198000011270000c13d00000000006504350000002003300039000000000334034f000000000303043b0000004005100039000000000035043500000009030000290000012003300039000000000013043500000001010000290000000203000029000000000031043500000007010000290000002001100039000000000114034f000000000101043b0000082c0010009c000011270000213d00000007071000290000001f01700039000000000021004b0000000003000019000008ab03008041000008ab011001970000000d0510014f0000000d0010006c0000000001000019000008ab01004041000008ab0050009c000000000103c019000000000001004b000011270000c13d000000000174034f000000000301043b0000082c0030009c000011290000213d0000001f0130003900000875011001970000003f01100039000008ce01100197000000400500043d0000000001150019000000000051004b000000000600003900000001060040390000082c0010009c000011290000213d0000000100600190000011290000c13d000000400010043f000000000635043600000020017000390000000007130019000000000027004b000011270000213d000000000114034f000008c7093001980000001f0a30018f0000000007960019000010a90000613d000000000b01034f000000000806001900000000bc0b043c0000000008c80436000000000078004b000010a50000c13d00000000000a004b000010b60000613d000000000191034f0000000308a00210000000000907043300000000098901cf000000000989022f000000000101043b0000010008800089000000000181022f00000000018101cf000000000191019f0000000000170435000000000136001900000000000104350000000906000029000000c00160003900000000005104350000000101000029000000000116043600000006050000290000002003500039000000000334034f000000000303043b00000000003104350000004001500039000000000314034f000000000303043b000000400560003900000000003504350000000403000029000000600330008a000008ca0030009c000011270000213d000000400030008c000011270000413d000000400300043d0000089b0030009c000011290000213d0000004005300039000000400050043f0000002001100039000000000514034f000000000505043b0000086f0050009c000011270000213d00000000055304360000002006100039000000000664034f000000000606043b00000000006504350000000905000029000000600550003900000000003504350000004001100039000000000114034f000000000101043b0000082c0010009c000011270000213d00000006071000290000001f01700039000000000021004b0000000003000019000008ab03008041000008ab011001970000000d0510014f0000000d0010006c0000000001000019000008ab01004041000008ab0050009c000000000103c019000000000001004b000011270000c13d000000000174034f000000000301043b0000082c0030009c000011290000213d0000001f0130003900000875011001970000003f01100039000008ce01100197000000400500043d0000000001150019000000000051004b000000000600003900000001060040390000082c0010009c000011290000213d0000000100600190000011290000c13d000000400010043f000000000635043600000020017000390000000007130019000000000027004b000011270000213d000000000114034f000008c7043001980000001f0730018f0000000002460019000011140000613d000000000801034f0000000009060019000000008a08043c0000000009a90436000000000029004b000011100000c13d000000000007004b000011210000613d000000000141034f0000000304700210000000000702043300000000074701cf000000000747022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000171019f000000000012043500000000013600190000000000010435000000090100002900000080021000390000000000520435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000c000000000002000008ca0010009c000013390000213d0000000002010019000000230010008c000013390000a13d00000000030003670000000401300370000000000101043b000400000001001d0000082c0010009c000013390000213d0000000401000029000500040010003d000000050120006a000008ca0010009c000013390000213d000000c00010008c000013390000413d000000400100043d000900000001001d000008cc0010009c0000133b0000813d00000005013003600000000904000029000000a004400039000100000004001d000000400040043f000000000101043b0000082c0010009c000013390000213d000700050010002d000000070120006a000008ca0010009c000013390000213d000000400010008c000013390000413d0000000901000029000008d10010009c0000133b0000213d00000007013003600000000904000029000000e004400039000200000004001d000000400040043f000000000101043b0000082c0010009c000013390000213d000800070010002d000000080120006a000300000001001d000008ca0010009c000013390000213d0000000301000029000000a00010008c000013390000413d0000000901000029000008d20010009c0000133b0000213d000000080130036000000009040000290000014004400039000600000004001d000000400040043f000000000101043b0000082c0010009c000013390000213d0000000801100029000c00000001001d0000001f01100039000000000021004b000013390000813d0000000c01300360000000000101043b0000082c0010009c0000133b0000213d00000005041002100000003f05400039000008cf0550019700000006055000290000082c0050009c0000133b0000213d000000400050043f000000060500002900000000001504350000000c05000029000000200e500039000b000000e4001d0000000b0020006b000013390000213d000000000001004b0000121c0000613d00000009010000290000016007100039000a002000200092000011960000013d0000000001ad0019000000000001043500000000008504350000000007970436000000200ee000390000000b00e0006c0000121c0000813d0000000001e3034f000000000101043b0000082c0010009c000013390000213d0000000c0a1000290000000a01a00069000008ca0010009c000013390000213d000000a00010008c000013390000413d000000400900043d0000089b0090009c0000133b0000213d0000004001900039000000400010043f000000200ca000390000000001c200490000000005000415000008ca0010009c000013390000213d000000800010008c000013390000413d000000400800043d000008d00080009c0000133b0000213d0000006001800039000000400010043f0000000001c3034f000000000101043b0000086f0010009c000013390000213d00000000061804360000000001a20049000000400110008a000008ca0010009c000013390000213d000000400010008c000013390000413d000000400400043d0000089b0040009c0000133b0000213d0000004001400039000000400010043f000000200bc000390000000001b3034f000000000101043b0000086f0010009c000013390000213d0000000001140436000000200cb00039000000000cc3034f000000000c0c043b0000000000c1043500000000004604350000004004b00039000000000143034f000000000101043b0000087400100198000013390000c13d0000004006800039000000000016043500000000010004150000000001150049000000000100000200000000058904360000002001400039000000000113034f000000000101043b0000082c0010009c000013390000213d000000000ba100190000003f01b00039000000000021004b0000000004000019000008ab04008041000008ab01100197000008ab06200197000000000861013f000000000061004b0000000001000019000008ab01004041000008ab0080009c000000000104c019000000000001004b000013390000c13d0000002006b00039000000000163034f000000000a01043b0000082c00a0009c0000133b0000213d0000001f01a0003900000875011001970000003f01100039000008ce01100197000000400800043d0000000001180019000000000081004b000000000400003900000001040040390000082c0010009c0000133b0000213d00000001004001900000133b0000c13d000000400010043f000000000da804360000000001ab00190000004001100039000000000021004b000013390000213d0000002001600039000000000113034f000008c704a00198000000000b4d00190000120e0000613d000000000601034f000000000c0d0019000000006f06043c000000000cfc04360000000000bc004b0000120a0000c13d0000001f06a001900000118f0000613d000000000141034f000000030460021000000000060b043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f00000000001b04350000118f0000013d00000002010000290000000604000029000000000041043500000008010000290000002004100039000000000143034f000000000101043b0000082c0010009c000013390000213d00000008081000290000001f01800039000000000021004b0000000005000019000008ab05008041000008ab01100197000008ab0b2001970000000006b1013f0000000000b1004b0000000001000019000008ab01004041000008ab0060009c000000000105c0190000000005000415000000000001004b000013390000c13d000000000183034f000000000601043b0000082c0060009c0000133b0000213d00000005016002100000003f07100039000008cf09700197000000400700043d0000000009970019000000000079004b000000000a000039000000010a0040390000082c0090009c0000133b0000213d0000000100a001900000133b0000c13d000000400090043f000000000067043500000020088000390000000009810019000000000029004b000013390000213d000000000006004b0000125d0000613d000000800600008a0000000001070019000000000a83034f000000000a0a043b0000008000a00190000000000c060019000000000c0060190000007f0da0018f000000000cdc019f0000000000ca004b000013390000c13d00000020011000390000000000a104350000002008800039000000000098004b0000124f0000413d0000000001000415000000000115004900000000010000020000000901000029000001000110003900000000007104350000000301000029000000400110008a000008ca0010009c000013390000213d000000600010008c000013390000413d000000400500043d000008d00050009c0000133b0000213d0000006001500039000000400010043f0000002001400039000000000413034f000000000404043b0000086e00400198000013390000c13d00000000044504360000002001100039000000000613034f000000000606043b0000086e00600198000013390000c13d00000000006404350000002001100039000000000113034f000000000101043b0000004004500039000000000014043500000009010000290000012001100039000000000051043500000001010000290000000204000029000000000041043500000007010000290000002001100039000000000113034f000000000101043b0000082c0010009c000013390000213d00000007081000290000001f01800039000000000021004b0000000004000019000008ab04008041000008ab011001970000000005b1013f0000000000b1004b0000000001000019000008ab01004041000008ab0050009c000000000104c019000000000001004b000013390000c13d000000000183034f000000000401043b0000082c0040009c0000133b0000213d0000001f0140003900000875011001970000003f01100039000008ce01100197000000400500043d0000000001150019000000000051004b000000000600003900000001060040390000082c0010009c0000133b0000213d00000001006001900000133b0000c13d000000400010043f000000000745043600000020018000390000000006140019000000000026004b000013390000213d000000000613034f000008c7094001980000001f0a40018f0000000008970019000012bb0000613d000000000106034f000000000c070019000000001d01043c000000000cdc043600000000008c004b000012b70000c13d00000000000a004b000012c80000613d000000000196034f0000000306a00210000000000908043300000000096901cf000000000969022f000000000101043b0000010006600089000000000161022f00000000016101cf000000000191019f0000000000180435000000000147001900000000000104350000000906000029000000c00160003900000000005104350000000101000029000000000116043600000004070000290000002404700039000000000443034f000000000404043b00000000004104350000004401700039000000000413034f000000000404043b000000400560003900000000004504350000000004720049000000640440008a000008ca0040009c000013390000213d000000400040008c000013390000413d000000400400043d0000089b0040009c0000133b0000213d0000004005400039000000400050043f0000002001100039000000000513034f000000000505043b0000086f0050009c000013390000213d00000000055404360000002006100039000000000663034f000000000606043b00000000006504350000000905000029000000600550003900000000004504350000004001100039000000000113034f000000000101043b0000082c0010009c000013390000213d00000005081000290000001f01800039000000000021004b0000000004000019000008ab04008041000008ab011001970000000005b1013f0000000000b1004b0000000001000019000008ab01004041000008ab0050009c000000000104c019000000000001004b000013390000c13d000000000183034f000000000401043b0000082c0040009c0000133b0000213d0000001f0140003900000875011001970000003f01100039000008ce01100197000000400500043d0000000001150019000000000051004b000000000600003900000001060040390000082c0010009c0000133b0000213d00000001006001900000133b0000c13d000000400010043f000000000745043600000020018000390000000006140019000000000026004b000013390000213d000000000313034f000008c7064001980000001f0840018f0000000002670019000013260000613d000000000103034f0000000009070019000000001a01043c0000000009a90436000000000029004b000013220000c13d000000000008004b000013330000613d000000000163034f0000000303800210000000000602043300000000063601cf000000000636022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000161019f000000000012043500000000014700190000000000010435000000090100002900000080021000390000000000520435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000006120049000008ca0060009c000013d80000213d000000ff0060008c000013d80000a13d0000000003010019000000400100043d000008cb0010009c000013da0000813d0000004005100039000000400050043f000008d10010009c000013da0000213d000000e004100039000000400040043f0000000004000367000000000734034f000000000707043b0000086f0070009c000013d80000213d000000000075043500000020073000390000000008720049000008ca0080009c000013d80000213d000000400080008c000013d80000413d000000400800043d0000089b0080009c000013da0000213d0000004009800039000000400090043f000000000974034f000000000909043b0000086f0090009c000013d80000213d00000000099804360000002007700039000000000a74034f000000000a0a043b0000000000a9043500000060091000390000000000890435000000600660008a000008ca0060009c000013d80000213d000000400060008c000013d80000413d000000400600043d0000089b0060009c000013da0000213d0000004008600039000000400080043f0000002007700039000000000874034f000000000808043b0000086f0080009c000013d80000213d00000000088604360000002009700039000000000994034f000000000909043b0000000000980435000000800810003900000000006804350000004006700039000000000764034f000000000707043b0000087400700198000013d80000c13d000000a00810003900000000007804350000002006600039000000000764034f000000000707043b0000082c0070009c000013d80000213d0000000005510436000000c00810003900000000007804350000002006600039000000000664034f000000000606043b0000082c0060009c000013d80000213d00000000083600190000001f03800039000000000023004b0000000006000019000008ab06008041000008ab03300197000008ab07200197000000000973013f000000000073004b0000000003000019000008ab03004041000008ab0090009c000000000306c019000000000003004b000013d80000c13d000000000384034f000000000303043b0000082c0030009c000013da0000213d0000001f0630003900000875066001970000003f06600039000008ce07600197000000400600043d0000000007760019000000000067004b000000000900003900000001090040390000082c0070009c000013da0000213d0000000100900190000013da0000c13d000000400070043f000000000736043600000020088000390000000009830019000000000029004b000013d80000213d000000000484034f000008c7083001980000001f0930018f0000000002870019000013c70000613d000000000a04034f000000000b07001900000000ac0a043c000000000bcb043600000000002b004b000013c30000c13d000000000009004b000013d40000613d000000000484034f0000000308900210000000000902043300000000098901cf000000000989022f000000000404043b0000010008800089000000000484022f00000000048401cf000000000494019f0000000000420435000000000237001900000000000204350000000000650435000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000000020100190000002001100039000000000602043300000000010104330000002003100039000000000303043300000000010104330000006001100210000000400700043d000000200470003900000000001404350000003401700039000000000031043500000034010000390000000000170435000008cd0070009c000014320000813d0000006005700039000000400050043f00000040032000390000000003030433000000200830003900000000080804330000000003030433000000600930021000000080037000390000000000930435000000940970003900000000008904350000000000150435000008a50070009c000014320000213d000000c001700039000000400010043f000000600220003900000000020204330000006006600210000000e0087000390000000000680435000000f4067000390000000007070433000000000007004b000014130000613d00000000080000190000000009680019000000000a480019000000000a0a04330000000000a904350000002008800039000000000078004b0000140c0000413d0000089002200197000000000467001900000000000404350000000005050433000000000005004b000014210000613d000000000600001900000000074600190000000008360019000000000808043300000000008704350000002006600039000000000056004b0000141a0000413d0000000003450019000000000023043500000000021300490000000a0320008a00000000003104350000003502200039000008c7032001970000000002130019000000000032004b000000000300003900000001030040390000082c0020009c000014320000213d0000000100300190000014320000c13d000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f0000000100200190000014480000613d000000000101043b0000000101100039000000000101041a000000000001042d0000000001000019000020a3000104300002000000000002000200000001001d0000000012010434000100000002001d000000000101043300000000120104340000000003010433000000400100043d000000600410003900000000003404350000086f022001970000004003100039000000000023043500000020021000390000088203000041000000000032043500000060030000390000000000310435000008d30010009c0000148a0000813d0000008003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f0000000100200190000014900000613d00000001020000290000086f02200197000000020300002900000040033000390000000003030433000000000401043b000000400100043d0000006005100039000000000045043500000040041000390000000000240435000000200210003900000871040000410000000000420435000008900230019700000080031000390000000000230435000000800200003900000000002104350000089e0010009c0000148a0000213d000000a002100039000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000001000019000020a3000104300006000000000002000400000002001d000600000001001d0000000012010434000500000002001d000000000101043300000000120104340000000003010433000000400100043d000000600410003900000000003404350000086f022001970000004003100039000000000023043500000020021000390000088203000041000000000032043500000060030000390000000000310435000008d30010009c0000162f0000813d0000008003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d00000005020000290000086f02200197000000060300002900000040033000390000000003030433000000000401043b000000400100043d0000006005100039000000000045043500000040041000390000000000240435000008900230019700000080031000390000000000230435000000200210003900000871030000410000000000320435000000800300003900000000003104350000089e0010009c0000162f0000213d000000a003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d0000089f02000041000000000202041a000000010320019000000001042002700000007f0440618f000000400600043d000000000101043b000600000001001d0000001f0040008c00000000010000390000000101002039000000000031004b000016350000c13d0000000007460436000000000003004b000015110000613d000200000004001d000300000007001d000500000006001d0000089f01000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d0000000205000029000000000005004b000015170000613d000000000201043b0000000001000019000000050600002900000003070000290000000003710019000000000402041a000000000043043500000001022000390000002001100039000000000051004b000015090000413d0000151a0000013d000008c8012001970000000000170435000000000004004b000000200100003900000000010060390000151a0000013d0000000001000019000000050600002900000003070000290000003f01100039000008c7011001970000000005610019000000000015004b000000000100003900000001010040390000082c0050009c0000162f0000213d00000001001001900000162f0000c13d000000400050043f0000000001060433000000000001004b0000153c0000613d000008290070009c00000829070080410000004002700210000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d000000400500043d000000000401043b000015400000013d000008a001000041000000000401041a000000000004004b000008a104006041000008a201000041000000000101041a000000010210019000000001071002700000007f0770618f0000001f0070008c00000000030000390000000103002039000000000313013f0000000100300190000016350000c13d000500000004001d0000000006750436000000000002004b0000156c0000613d000100000007001d000200000006001d000300000005001d000008a201000041000000000010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d0000000107000029000000000007004b000015720000613d000000000201043b0000000001000019000000030500002900000002060000290000000003610019000000000402041a000000000043043500000001022000390000002001100039000000000071004b000015640000413d000015750000013d000008c8011001970000000000160435000000000007004b00000020010000390000000001006039000015750000013d0000000001000019000000030500002900000002060000290000003f01100039000008c7011001970000000003510019000000000013004b000000000100003900000001010040390000082c0030009c0000162f0000213d00000001001001900000162f0000c13d000000400030043f0000000001050433000000000001004b000015970000613d000008290060009c00000829060080410000004002600210000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d000000400300043d000000000101043b0000159b0000013d000008a301000041000000000101041a000000000001004b000008a101006041000300000003001d000000600230003900000000001204350000004001300039000000050200002900000000002104350000002002300039000008a401000041000500000002001d00000000001204350000088e0100004100000000001004430000000001000414000008290010009c0000082901008041000000c0011002100000088f011001c70000800b0200003920a1209c0000040f00000001002001900000163b0000613d000000000101043b0000000304000029000000a0024000390000000003000410000000000032043500000080024000390000000000120435000000a0010000390000000000140435000008a50040009c0000162f0000213d000000c001400039000000400010043f0000000501000029000008290010009c000008290100804100000040011002100000000002040433000008290020009c00000829020080410000006002200210000000000112019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d000000000101043b000000400200043d000000220320003900000006040000290000000000430435000008a603000041000000000032043500000002032000390000000000130435000008290020009c000008290200804100000040012002100000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000008a7011001c7000080100200003920a1209c0000040f00000001002001900000162d0000613d000000000101043b000000000500041500000004040000290000000032040434000000410020008c0000163c0000c13d000600000005001d00000040024000390000000002020433000008d50020009c000016410000213d000000600440003900000000040404330000000003030433000000400500043d0000006006500039000000000026043500000040025000390000000000320435000000f802400270000000200350003900000000002304350000000000150435000000000000043f000008290050009c000008290500804100000040015002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f000008d6011001c7000000010200003920a1209c0000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f0000002004400190000016170000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000016130000c13d000000000005004b000016240000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f00000000005404350000000100200190000016490000613d000000000100043d0000000002000415000000060220006900000000020000020000086f00100198000016670000613d000000000001042d0000000001000019000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a300010430000008ae01000041000000000010043f0000002201000039000000040010043f0000088001000041000020a300010430000000000001042f000000000100041500000000011500490000000001000002000008d401000041000016450000013d000000000100041500000006011000690000000001000002000008d801000041000000000010043f000000040020043f0000088001000041000020a3000104300000001f0530018f0000087906300198000000400200043d0000000004620019000016540000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000016500000c13d000000000005004b000016610000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a300010430000008d701000041000000000010043f0000088501000041000020a3000104300004000000000002000000400900043d000200000001001d0000000021010434000100000002001d0000000016010434000300000001001d000000001d060434000400000001001d00000000010d0433000000000001004b0000170b0000613d000000600b000039000000800a0000390000000008000019000000050380021000000000033d00190000002003300039000000000303043300000000c4030434000000200340003900000000030304330000002005300039000000000e050433000000000303043300000060033002100000000005040433000000200d90003900000000003d043500000034039000390000000000e3043500000034010000390000000000190435000008cd0090009c000017e60000813d000000600f9000390000004000f0043f000000400340003900000000040304330000006003500210000000800e90003900000000003e043500000094059000390000000009090433000000000009004b000016a10000613d000000000300001900000000015300190000000007d30019000000000707043300000000007104350000002003300039000000000093004b0000169a0000413d0000089001400197000000000359001900000000001304350000002a0190003900000000001f04350000006901900039000008c701100197000000000df1001900000000001d004b000000000300003900000001030040390000082c00d0009c000017e60000213d0000000100300190000017e60000c13d0000004000d0043f0000002009d0003900000000040c0433000000000c0f043300000000000c004b000016be0000613d000000000300001900000000019300190000000005e300190000000005050433000000000051043500000020033000390000000000c3004b000016b70000413d00000000059c0019000000000005043500000000e4040434000000000004004b000016cb0000613d0000000003000019000000000153001900000000073e0019000000000707043300000000007104350000002003300039000000000043004b000016c40000413d000000000154001900000000000104350000000001c4001900000000001d04350000003f01100039000008c701100197000000000cd1001900000000001c004b000000000300003900000001030040390000082c00c0009c000017e60000213d0000000100300190000017e60000c13d0000004000c0043f000000200ec0003900000000040b0433000000000004004b000016e60000613d00000000030000190000000001e3001900000000053a0019000000000505043300000000005104350000002003300039000000000043004b000016df0000413d0000000004e40019000000000004043500000000050d0433000000000005004b000016f30000613d000000000300001900000000014300190000000007930019000000000707043300000000007104350000002003300039000000000053004b000016ec0000413d000000000145001900000000000104350000000001c10049000000200310008a00000000003c04350000001f01100039000008c7011001970000000009c10019000000000019004b000000000300003900000001030040390000082c0090009c000017e60000213d0000000100300190000017e60000c13d000000400090043f0000000108800039000000000d06043300000000010d0433000000000018004b000000000a0e0019000000000b0c00190000167a0000413d0000170c0000013d000000600c0000390000000401000029000000000b01043300000000030b0433000000000003004b000017380000613d000000000a00001900000000080900190000000501a0021000000000011b001900000020049000390000002001100039000000000501043300000000b90c0434000000000009004b000017230000613d0000000003000019000000000143001900000000073b0019000000000707043300000000007104350000002003300039000000000093004b0000171c0000413d0000000001490019000000f803500210000000000031043500000001019000390000000000180435000008c701900197000000000118001900000040091000390000082c0090009c000017e60000213d000000000089004b000017e60000413d000000400090043f000000010aa000390000000401000029000000000b01043300000000010b043300000000001a004b000000000c080019000017120000413d000017390000013d00000000080c001900000040016000390000000001010433000000400310003900000000030304330000002004100039000000000404043300000000010104330000088101100197000000200690003900000000001604350000088101400197000000300490003900000000001404350000004001900039000000000031043500000040010000390000000000190435000008d00090009c000017e60000213d000000800a900039000000600b9000390000004000b0043f0000000054080434000000000004004b0000175a0000613d00000000030000190000000001a300190000000007350019000000000707043300000000007104350000002003300039000000000043004b000017530000413d0000000004a4001900000000000404350000000005090433000000000005004b000017670000613d000000000300001900000000014300190000000007630019000000000707043300000000007104350000002003300039000000000053004b000017600000413d000000000145001900000000000104350000000001b10049000000200310008a00000000003b04350000001f01100039000008c7011001970000000007b10019000000000017004b000000000300003900000001030040390000082c0070009c000017e60000213d0000000100300190000017e60000c13d000000400070043f00000020067000390000000301000029000000000401043300000000050b0433000000000005004b000017850000613d0000000003000019000000000163001900000000083a0019000000000808043300000000008104350000002003300039000000000053004b0000177e0000413d000000000865001900000000000804350000000094040434000000000004004b000017920000613d00000000030000190000000001830019000000000a390019000000000a0a04330000000000a104350000002003300039000000000043004b0000178b0000413d00000000018400190000000000010435000000000145001900000000001704350000003f01100039000008c7011001970000000005710019000000000015004b000000000300003900000001030040390000082c0050009c000017e60000213d0000000100300190000017e60000c13d000000400050043f00000002030000290000004001300039000000000901043300000001010000290000000008010433000000600130003900000000010104330000002003100039000000000303043300000000010104330000006001100210000000200450003900000000001404350000003401500039000000000031043500000034010000390000000000150435000008d00050009c000017e60000213d000000800a5000390000006001500039000000400010043f0000000003070433000000000003004b000017c20000613d0000000007000019000000000ba70019000000000c670019000000000c0c04330000000000cb04350000002007700039000000000037004b000017bb0000413d0000000006a3001900000000000604350000000006130019000000400760003900000000009704350000002007600039000000000087043500000060066000390000000005050433000000000005004b000017d50000613d000000000700001900000000086700190000000009470019000000000909043300000000009804350000002007700039000000000057004b000017ce0000413d000000000465001900000000000404350000000003530019000000400430003900000000004104350000007f03300039000008c7033001970000000002130019000000000032004b000000000300003900000001030040390000082c0020009c000017e60000213d0000000100300190000017e60000c13d000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000002002100039000000000202043300000000010104330000006003100210000000400100043d000000200410003900000000003404350000003403100039000000000023043500000034020000390000000000210435000008cd0010009c000017fc0000813d0000006002100039000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f0000000100200190000018100000613d000000000101043b000000000001042d0000000001000019000020a300010430000000400300043d0000000045020434000000410050008c0000184e0000c13d000000600520003900000000050504330000000004040433000000400220003900000000020204330000006006300039000000000026043500000040023000390000000000420435000000f802500270000000200430003900000000002404350000000000130435000000000000043f000008290030009c000008290300804100000040013002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f000008d6011001c7000000010200003920a1209c0000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f00000020044001900000183d0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000018390000c13d000000000005004b0000184a0000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f000000000054043500000001002001900000185e0000613d000000000100043d000000000001042d0000004401300039000008d9020000410000000000210435000000240130003900000011020000390000000000210435000008b7010000410000000000130435000000040130003900000020020000390000000000210435000008290030009c0000082903008041000000400130021000000895011001c7000020a3000104300000001f0530018f0000087906300198000000400200043d0000000004620019000018690000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000018650000c13d000000000005004b000018760000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a300010430000000400200043d0000002003200039000008da0400004100000000004304350000003c0420003900000000001404350000003c010000390000000000120435000008cd0020009c0000189c0000813d0000006001200039000000400010043f000008290030009c000008290300804100000040013002100000000002020433000008290020009c00000829020080410000006002200210000000000112019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f0000000100200190000018a20000613d000000000101043b000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000001000019000020a3000104300003000000000002000100000002001d000000400400043d0000000012010434000200000001001d000000001a020434000300000001001d00000000010a0433000000000001004b000019420000613d000000600800003900000080070000390000000006000019000000050960021000000000099a001900000020099000390000000009090433000000009b090434000000200ab00039000000000a0a0433000000200ca00039000000000c0c0433000000000a0a0433000000600da00210000000000e0b0433000000200a4000390000000000da0435000000340d4000390000000000cd043500000034030000390000000000340435000008cd0040009c00001a220000813d000000600c4000390000004000c0043f000000400bb00039000000000d0b0433000000600ee00210000000800b4000390000000000eb0435000000940e4000390000000004040433000000000004004b000018d80000613d000000000f0000190000000005ef00190000000003af001900000000030304330000000000350435000000200ff0003900000000004f004b000018d10000413d0000089003d001970000000005e4001900000000003504350000002a0340003900000000003c04350000006903400039000008c703300197000000000ac3001900000000003a004b000000000400003900000001040040390000082c00a0009c00001a220000213d000000010040019000001a220000c13d0000004000a0043f0000002004a00039000000000d09043300000000090c0433000000000009004b000018f50000613d000000000c00001900000000034c00190000000005bc001900000000050504330000000000530435000000200cc0003900000000009c004b000018ee0000413d000000000b49001900000000000b043500000000dc0d043400000000000c004b000019020000613d000000000e0000190000000003be00190000000005ed001900000000050504330000000000530435000000200ee000390000000000ce004b000018fb0000413d0000000003bc0019000000000003043500000000039c001900000000003a04350000003f03300039000008c7033001970000000009a30019000000000039004b000000000b000039000000010b0040390000082c0090009c00001a220000213d0000000100b0019000001a220000c13d000000400090043f000000200b9000390000000008080433000000000008004b0000191d0000613d000000000c0000190000000003bc00190000000005c7001900000000050504330000000000530435000000200cc0003900000000008c004b000019160000413d0000000007b80019000000000007043500000000080a0433000000000008004b0000192a0000613d000000000a00001900000000037a001900000000054a001900000000050504330000000000530435000000200aa0003900000000008a004b000019230000413d000000000378001900000000000304350000000003930049000000200430008a00000000004904350000001f03300039000008c7033001970000000004930019000000000034004b000000000700003900000001070040390000082c0040009c00001a220000213d000000010070019000001a220000c13d000000400040043f0000000106600039000000000a02043300000000030a0433000000000036004b00000000070b00190000000008090019000018b10000413d000019430000013d0000006009000039000000030300002900000000070304330000000005070433000000000005004b0000196f0000613d00000000060000190000000005040019000000050360021000000000033700190000002007400039000000200330003900000000080304330000000094090434000000000004004b0000195a0000613d000000000a00001900000000037a0019000000000ba90019000000000b0b04330000000000b30435000000200aa0003900000000004a004b000019530000413d0000000003740019000000f807800210000000000073043500000001034000390000000000350435000008c703400197000000000335001900000040043000390000082c0040009c00001a220000213d000000000054004b00001a220000413d000000400040043f0000000106600039000000030300002900000000070304330000000003070433000000000036004b0000000009050019000019490000413d000019700000013d000000000509001900000040022000390000000002020433000000400320003900000000060304330000002003200039000000000703043300000000020204330000088102200197000000200340003900000000002304350000088102700197000000300740003900000000002704350000004002400039000000000062043500000040020000390000000000240435000008d00040009c00001a220000213d00000080064000390000006002400039000000400020043f0000000075050434000000000005004b000019910000613d00000000080000190000000009680019000000000a870019000000000a0a04330000000000a904350000002008800039000000000058004b0000198a0000413d000000000565001900000000000504350000000006040433000000000006004b0000199e0000613d000000000700001900000000085700190000000009370019000000000909043300000000009804350000002007700039000000000067004b000019970000413d000000000356001900000000000304350000000003230049000000200530008a00000000005204350000001f03300039000008c7033001970000000001230019000000000031004b000000000300003900000001030040390000082c0010009c00001a220000213d000000010030019000001a220000c13d000000400010043f000008db0040009c000008db0400804100000040014002100000000002020433000008290020009c00000829020080410000006002200210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000008dc0110009a000080100200003920a1209c0000040f000000010020019000001a280000613d000000000301043b000000400100043d0000002002100039000008da0400004100000000004204350000003c0410003900000000003404350000003c030000390000000000310435000008d00010009c00001a220000213d0000006003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000001a280000613d000000400200043d000000020300002900000000030304330000000045030434000000410050008c00001a2a0000c13d000000000101043b000000600530003900000000050504330000000004040433000000400330003900000000030304330000006006200039000000000036043500000040032000390000000000430435000000f803500270000000200420003900000000003404350000000000120435000000000000043f000008290020009c000008290200804100000040012002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f000008d6011001c7000000010200003920a1209c0000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f000000200440019000001a0d0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b00001a090000c13d000000000005004b00001a1a0000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000010020019000001a3a0000613d000000000100043d000000010110014f0000086f0010019800000000010000390000000101006039000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000001000019000020a3000104300000004401200039000008d9030000410000000000310435000000240120003900000011030000390000000000310435000008b7010000410000000000120435000000040120003900000020030000390000000000310435000008290020009c0000082902008041000000400120021000000895011001c7000020a3000104300000001f0530018f0000087906300198000000400200043d000000000462001900001a450000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001a410000c13d000000000005004b00001a520000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a30001043000000000020100190000002001100039000000000402043300000000010104330000002003100039000000000503043300000000010104330000006001100210000000400600043d000000200360003900000000001304350000003401600039000000000051043500000034010000390000000000160435000008cd0060009c00001a8d0000813d0000006001600039000000400010043f00000040022000390000000002020433000000600440021000000080056000390000000000450435000000940560003900000890042001970000000002060433000000000002004b00001a7d0000613d000000000600001900000000075600190000000008360019000000000808043300000000008704350000002006600039000000000026004b00001a760000413d000000000352001900000000004304350000002a0320003900000000003104350000006902200039000008c7032001970000000002130019000000000032004b000000000300003900000001030040390000082c0020009c00001a8d0000213d000000010030019000001a8d0000c13d000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a30001043000000000120104340000000003010433000000400100043d000000600410003900000000003404350000086f022001970000004003100039000000000023043500000020021000390000088203000041000000000032043500000060020000390000000000210435000008d30010009c00001aa50000813d0000008002100039000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300001000000000002000000400600043d000000002a010434000100000002001d00000000020a0433000000000002004b00001b460000613d000000600800003900000080070000390000000005000019000000050950021000000000099a001900000020099000390000000009090433000000009b090434000000200ab00039000000000a0a0433000000200ca00039000000000c0c0433000000000a0a0433000000600da00210000000000e0b0433000000200a6000390000000000da0435000000340d6000390000000000cd043500000034030000390000000000360435000008cd0060009c00001bb60000813d000000600c6000390000004000c0043f000000400bb00039000000000d0b0433000000600ee00210000000800b6000390000000000eb0435000000940e6000390000000006060433000000000006004b00001adc0000613d000000000f0000190000000004ef00190000000003af001900000000030304330000000000340435000000200ff0003900000000006f004b00001ad50000413d0000089003d001970000000004e6001900000000003404350000002a0360003900000000003c04350000006903600039000008c703300197000000000ac3001900000000003a004b000000000600003900000001060040390000082c00a0009c00001bb60000213d000000010060019000001bb60000c13d0000004000a0043f0000002006a00039000000000d09043300000000090c0433000000000009004b00001af90000613d000000000c00001900000000036c00190000000004cb001900000000040404330000000000430435000000200cc0003900000000009c004b00001af20000413d000000000b69001900000000000b043500000000dc0d043400000000000c004b00001b060000613d000000000e0000190000000003be00190000000004ed001900000000040404330000000000430435000000200ee000390000000000ce004b00001aff0000413d0000000003bc001900000000000304350000000003c9001900000000003a04350000003f03300039000008c7033001970000000009a30019000000000039004b000000000b000039000000010b0040390000082c0090009c00001bb60000213d0000000100b0019000001bb60000c13d000000400090043f000000200b9000390000000008080433000000000008004b00001b210000613d000000000c0000190000000003bc00190000000004c7001900000000040404330000000000430435000000200cc0003900000000008c004b00001b1a0000413d0000000007b80019000000000007043500000000080a0433000000000008004b00001b2e0000613d000000000a00001900000000037a001900000000046a001900000000040404330000000000430435000000200aa0003900000000008a004b00001b270000413d000000000378001900000000000304350000000003930049000000200430008a00000000004904350000001f03300039000008c7033001970000000006930019000000000036004b000000000700003900000001070040390000082c0060009c00001bb60000213d000000010070019000001bb60000c13d000000400060043f0000000105500039000000000a01043300000000030a0433000000000035004b00000000070b0019000000000809001900001ab50000413d00001b470000013d0000006009000039000000010300002900000000070304330000000004070433000000000004004b00001b760000613d00000000050000190000000004060019000000050350021000000000037300190000002007600039000000200330003900000000080304330000000096090434000000000006004b00001b5e0000613d000000000a00001900000000037a0019000000000ba90019000000000b0b04330000000000b30435000000200aa0003900000000006a004b00001b570000413d0000000003760019000000f807800210000000000073043500000001036000390000000000340435000008c70360019700000040033000390000000006430019000000000036004b000000000700003900000001070040390000082c0060009c00001bb60000213d000000010070019000001bb60000c13d000000400060043f0000000105500039000000010300002900000000070304330000000003070433000000000035004b000000000904001900001b4d0000413d00001b770000013d000000000409001900000040011000390000000001010433000000400310003900000000050304330000002003100039000000000703043300000000010104330000088101100197000000200360003900000000001304350000088101700197000000300760003900000000001704350000004001600039000000000051043500000040010000390000000000160435000008d00060009c00001bb60000213d00000080056000390000006001600039000000400010043f0000000074040434000000000004004b00001b980000613d00000000080000190000000009580019000000000a870019000000000a0a04330000000000a904350000002008800039000000000048004b00001b910000413d000000000454001900000000000404350000000005060433000000000005004b00001ba50000613d000000000600001900000000074600190000000008360019000000000808043300000000008704350000002006600039000000000056004b00001b9e0000413d000000000345001900000000000304350000000003130049000000200430008a00000000004104350000001f03300039000008c7033001970000000002130019000000000032004b000000000300003900000001030040390000082c0020009c00001bb60000213d000000010030019000001bb60000c13d000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300002000000000002000100000002001d0000000016010434000200000001001d0000002001600039000000000101043300000020021000390000000002020433000000000101043300000060031002100000000007060433000000400100043d000000200410003900000000003404350000003403100039000000000023043500000034020000390000000000210435000008cd0010009c00001c840000813d0000006005100039000000400050043f00000040036000390000000003030433000000200830003900000000080804330000000003030433000000600930021000000080031000390000000000930435000000940910003900000000008904350000000000250435000008a50010009c00001c840000213d000000c002100039000000400020043f000000600660003900000000060604330000006007700210000000e0081000390000000000780435000000f4071000390000000008010433000000000008004b00001bf20000613d0000000009000019000000000a790019000000000b490019000000000b0b04330000000000ba04350000002009900039000000000089004b00001beb0000413d0000089004600197000000000678001900000000000604350000000005050433000000000005004b00001c000000613d000000000700001900000000086700190000000009370019000000000909043300000000009804350000002007700039000000000057004b00001bf90000413d0000000003650019000000000043043500000000032300490000000a0430008a00000000004204350000003503300039000008c7043001970000000003240019000000000043004b000000000400003900000001040040390000082c0030009c00001c840000213d000000010040019000001c840000c13d000000400030043f000008dd0010009c000008dd0100804100000040011002100000000002020433000008290020009c00000829020080410000006002200210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000008de0110009a000080100200003920a1209c0000040f000000010020019000001c8a0000613d000000000301043b000000400100043d0000002002100039000008da0400004100000000004204350000003c0410003900000000003404350000003c030000390000000000310435000008d00010009c00001c840000213d0000006003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000001c8a0000613d000000400200043d000000020300002900000000030304330000000045030434000000410050008c00001c8c0000c13d000000000101043b000000600530003900000000050504330000000004040433000000400330003900000000030304330000006006200039000000000036043500000040032000390000000000430435000000f803500270000000200420003900000000003404350000000000120435000000000000043f000008290020009c000008290200804100000040012002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f000008d6011001c7000000010200003920a1209c0000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f000000200440019000001c6f0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b00001c6b0000c13d000000000005004b00001c7c0000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000010020019000001c9c0000613d000000000100043d000000010110014f0000086f0010019800000000010000390000000101006039000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000001000019000020a3000104300000004401200039000008d9030000410000000000310435000000240120003900000011030000390000000000310435000008b7010000410000000000120435000000040120003900000020030000390000000000310435000008290020009c0000082902008041000000400120021000000895011001c7000020a3000104300000001f0530018f0000087906300198000000400200043d000000000462001900001ca70000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001ca30000c13d000000000005004b00001cb40000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a3000104300005000000000002000100000002001d000000400800043d000400000001001d0000000021010434000200000002001d0000000015010434000300000001001d000000001c050434000500000001001d00000000010c0433000000000001004b00001d5b0000613d000000600a00003900000080090000390000000007000019000000050370021000000000033c00190000002003300039000000000303043300000000b303043400000020043000390000000004040433000000200c400039000000000e0c043300000000040404330000006004400210000000000d030433000000200c80003900000000004c043500000034048000390000000000e4043500000034020000390000000000280435000008cd0080009c00001eaa0000813d000000600e8000390000004000e0043f0000004003300039000000000f0304330000006003d00210000000800d80003900000000003d043500000094038000390000000008080433000000000008004b00001cf10000613d000000000400001900000000023400190000000006c40019000000000606043300000000006204350000002004400039000000000084004b00001cea0000413d0000089002f00197000000000338001900000000002304350000002a0280003900000000002e04350000006902800039000008c702200197000000000ce2001900000000002c004b000000000300003900000001030040390000082c00c0009c00001eaa0000213d000000010030019000001eaa0000c13d0000004000c0043f0000002008c00039000000000f0b0433000000000b0e043300000000000b004b00001d0e0000613d000000000300001900000000028300190000000004d300190000000004040433000000000042043500000020033000390000000000b3004b00001d070000413d00000000038b0019000000000003043500000000ed0f043400000000000d004b00001d1b0000613d0000000004000019000000000234001900000000064e00190000000006060433000000000062043500000020044000390000000000d4004b00001d140000413d00000000023d001900000000000204350000000002bd001900000000002c04350000003f02200039000008c702200197000000000bc2001900000000002b004b000000000300003900000001030040390000082c00b0009c00001eaa0000213d000000010030019000001eaa0000c13d0000004000b0043f000000200db0003900000000030a0433000000000003004b00001d360000613d00000000040000190000000002d400190000000006490019000000000606043300000000006204350000002004400039000000000034004b00001d2f0000413d0000000003d30019000000000003043500000000090c0433000000000009004b00001d430000613d000000000400001900000000023400190000000006840019000000000606043300000000006204350000002004400039000000000094004b00001d3c0000413d000000000239001900000000000204350000000002b20049000000200320008a00000000003b04350000001f02200039000008c7022001970000000008b20019000000000028004b000000000300003900000001030040390000082c0080009c00001eaa0000213d000000010030019000001eaa0000c13d000000400080043f0000000107700039000000000c05043300000000020c0433000000000027004b00000000090d0019000000000a0b001900001cca0000413d00001d5c0000013d000000600b0000390000000502000029000000000a02043300000000030a0433000000000003004b00001d880000613d00000000090000190000000007080019000000050290021000000000022a0019000000200a8000390000002002200039000000000302043300000000b80b0434000000000008004b00001d730000613d00000000040000190000000002a4001900000000064b0019000000000606043300000000006204350000002004400039000000000084004b00001d6c0000413d0000000002a80019000000f803300210000000000032043500000001028000390000000000270435000008c702800197000000000227001900000040082000390000082c0080009c00001eaa0000213d000000000078004b00001eaa0000413d000000400080043f00000001099000390000000502000029000000000a02043300000000020a0433000000000029004b000000000b07001900001d620000413d00001d890000013d00000000070b001900000040025000390000000002020433000000400320003900000000030304330000002004200039000000000404043300000000020204330000088102200197000000200580003900000000002504350000088102400197000000300480003900000000002404350000004002800039000000000032043500000040020000390000000000280435000008d00080009c00001eaa0000213d0000008009800039000000600a8000390000004000a0043f0000000063070434000000000003004b00001daa0000613d000000000400001900000000029400190000000007460019000000000707043300000000007204350000002004400039000000000034004b00001da30000413d000000000393001900000000000304350000000006080433000000000006004b00001db70000613d000000000400001900000000023400190000000007540019000000000707043300000000007204350000002004400039000000000064004b00001db00000413d000000000236001900000000000204350000000002a20049000000200320008a00000000003a04350000001f02200039000008c7022001970000000006a20019000000000026004b000000000300003900000001030040390000082c0060009c00001eaa0000213d000000010030019000001eaa0000c13d000000400060043f00000020056000390000000302000029000000000702043300000000040a0433000000000004004b00001dd50000613d000000000300001900000000025300190000000008930019000000000808043300000000008204350000002003300039000000000043004b00001dce0000413d000000000354001900000000000304350000000087070434000000000007004b00001de20000613d00000000090000190000000002390019000000000a980019000000000a0a04330000000000a204350000002009900039000000000079004b00001ddb0000413d00000000023700190000000000020435000000000247001900000000002604350000003f02200039000008c7022001970000000004620019000000000024004b000000000300003900000001030040390000082c0040009c00001eaa0000213d000000010030019000001eaa0000c13d000000400040043f00000004030000290000004002300039000000000802043300000002020000290000000007020433000000600230003900000000020204330000002003200039000000000903043300000000020204330000006002200210000000200340003900000000002304350000003402400039000000000092043500000034020000390000000000240435000008d00040009c00001eaa0000213d00000080094000390000006002400039000000400020043f0000000006060433000000000006004b00001e120000613d000000000a000019000000000b9a0019000000000c5a0019000000000c0c04330000000000cb0435000000200aa0003900000000006a004b00001e0b0000413d000000000596001900000000000504350000000005260019000000400950003900000000008904350000002008500039000000000078043500000060075000390000000005040433000000000005004b00001e250000613d00000000080000190000000009780019000000000a380019000000000a0a04330000000000a904350000002008800039000000000058004b00001e1e0000413d000000000375001900000000000304350000000003560019000000400530003900000000005204350000007f03300039000008c7033001970000000001230019000000000031004b000000000300003900000001030040390000082c0010009c00001eaa0000213d000000010030019000001eaa0000c13d000000400010043f000008db0040009c000008db0400804100000040014002100000000002020433000008290020009c00000829020080410000006002200210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000008dc0110009a000080100200003920a1209c0000040f000000010020019000001eb00000613d000000000301043b000000400100043d0000002002100039000008da0400004100000000004204350000003c0410003900000000003404350000003c030000390000000000310435000008d00010009c00001eaa0000213d0000006003100039000000400030043f000008290020009c000008290200804100000040022002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f000000010020019000001eb00000613d000000400200043d0000000403000029000000800330003900000000030304330000000045030434000000410050008c00001eb20000c13d000000000101043b000000600530003900000000050504330000000004040433000000400330003900000000030304330000006006200039000000000036043500000040032000390000000000430435000000f803500270000000200420003900000000003404350000000000120435000000000000043f000008290020009c000008290200804100000040012002100000000002000414000008290020009c0000082902008041000000c002200210000000000112019f000008d6011001c7000000010200003920a1209c0000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f000000200440019000001e950000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b00001e910000c13d000000000005004b00001ea20000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000010020019000001ec20000613d000000000100043d000000010110014f0000086f0010019800000000010000390000000101006039000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000000001000019000020a3000104300000004401200039000008d9030000410000000000310435000000240120003900000011030000390000000000310435000008b7010000410000000000120435000000040120003900000020030000390000000000310435000008290020009c0000082902008041000000400120021000000895011001c7000020a3000104300000001f0530018f0000087906300198000000400200043d000000000462001900001ecd0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001ec90000c13d000000000005004b00001eda0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a300010430000000400210003900000000020204330000002003100039000000000303043300000000010104330000088104100197000000400100043d000000200510003900000000004504350000088103300197000000300410003900000000003404350000004003100039000000000023043500000040020000390000000000210435000008cd0010009c00001ef50000813d0000006002100039000000400020043f000000000001042d000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300001000000000002000100000001001d000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f1c0000613d0000000002000411000000000101043b0000086f02200197000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f1c0000613d000000000101043b000000000101041a000000ff0010019000001f1e0000613d000000000001042d0000000001000019000020a3000104300000088b01000041000000000010043f0000000001000411000000040010043f0000000101000029000000240010043f0000088c01000041000020a3000104300002000000000002000100000002001d000200000001001d000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f750000613d000000000101043b00000001020000290000086f02200197000100000002001d000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f750000613d000000000101043b000000000101041a000000ff0010019000001f740000613d0000000201000029000000000010043f000008b601000041000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f750000613d000000000101043b0000000102000029000000000020043f000000200010043f0000000001000414000008290010009c0000082901008041000000c0011002100000087c011001c7000080100200003920a1209c0000040f000000010020019000001f750000613d000000000101043b000000000201041a000008c802200197000000000021041b0000000001000414000008290010009c0000082901008041000000c0011002100000089d011001c70000800d0200003900000004030000390000000007000411000008df040000410000000205000029000000010600002920a120970000040f000000010020019000001f750000613d000000000001042d0000000001000019000020a3000104300001000000000002000000000003004b00001fc00000613d0000000005010019000000400100043d000000440410003900000000003404350000002003100039000008e00400004100000000004304350000086f022001970000002404100039000000000024043500000044020000390000000000210435000008d30010009c00001fd80000813d0000008002100039000000400020043f000008290030009c000008290300804100000040023002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000100000005001d000000000205001920a120970000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f000000200440019000001fa80000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b00001fa40000c13d000000000005004b00001fb50000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000010020019000001fde0000613d000000000003004b000000010200002900001fc10000613d000000000100043d000000010010008c00000000010000390000000101006039000000000001004b00001fd20000613d000000000001042d0000087a0100004100000000001004430000086f0120019700000004001004430000000001000414000008290010009c0000082901008041000000c0011002100000087b011001c7000080020200003920a1209c0000040f000000010020019000001ffc0000613d000000000101043b0000000102000029000000000001004b00001fc00000c13d0000087f01000041000000000010043f0000086f01200197000000040010043f0000088001000041000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000001f0530018f0000087906300198000000400200043d000000000462001900001fe90000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00001fe50000c13d000000000005004b00001ff60000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a300010430000000000001042f00010000000000020000000005010019000000400100043d000000440410003900000000003404350000002003100039000008e00400004100000000004304350000086f022001970000002404100039000000000024043500000044020000390000000000210435000008d30010009c0000205c0000813d0000008002100039000000400020043f000008290030009c000008290300804100000040023002100000000001010433000008290010009c00000829010080410000006001100210000000000121019f0000000002000414000008290020009c0000082902008041000000c002200210000000000121019f000100000005001d000000000205001920a120970000040f00000060031002700000082903300197000000200030008c000000200400003900000000040340190000001f0540018f00000020044001900000202c0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b000020280000c13d000000000005004b000020390000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f00000000005404350000000100200190000020620000613d000000000003004b0000000102000029000020450000613d000000000100043d000000010010008c00000000010000390000000101006039000000000001004b000020560000613d000000000001042d0000087a0100004100000000001004430000086f0120019700000004001004430000000001000414000008290010009c0000082901008041000000c0011002100000087b011001c7000080020200003920a1209c0000040f0000000100200190000020800000613d000000000101043b0000000102000029000000000001004b000020440000c13d0000087f01000041000000000010043f0000086f01200197000000040010043f0000088001000041000020a300010430000008ae01000041000000000010043f0000004101000039000000040010043f0000088001000041000020a3000104300000001f0530018f0000087906300198000000400200043d00000000046200190000206d0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b000020690000c13d000000000005004b0000207a0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000008290020009c00000829020080410000004002200210000000000112019f000020a300010430000000000001042f000000000001042f000008290010009c00000829010080410000004001100210000008290020009c00000829020080410000006002200210000000000112019f0000000002000414000008290020009c0000082902008041000000c002200210000000000112019f0000089d011001c7000080100200003920a1209c0000040f0000000100200190000020950000613d000000000101043b000000000001042d0000000001000019000020a3000104300000209a002104210000000102000039000000000001042d0000000002000019000000000001042d0000209f002104230000000102000039000000000001042d0000000002000019000000000001042d000020a100000432000020a20001042e000020a30001043000000000000000000000000000000000000000000000000000000000fffffffff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff0200000000000000000000000000000000000020000000800000000000000000c7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2000000020000000000000000000000000000004000000100000000000000000000000000000000000000000000000000000000000000000000000000a4079fd000000000000000000000000000000000000000000000000000000000cc2f369d00000000000000000000000000000000000000000000000000000000e329ae2b00000000000000000000000000000000000000000000000000000000eebdce5000000000000000000000000000000000000000000000000000000000eebdce5100000000000000000000000000000000000000000000000000000000f7888aec00000000000000000000000000000000000000000000000000000000f7be40a200000000000000000000000000000000000000000000000000000000e329ae2c00000000000000000000000000000000000000000000000000000000e8ced06e00000000000000000000000000000000000000000000000000000000ebdf690f00000000000000000000000000000000000000000000000000000000d7f9d87900000000000000000000000000000000000000000000000000000000d7f9d87a00000000000000000000000000000000000000000000000000000000d874435b00000000000000000000000000000000000000000000000000000000e02c914d00000000000000000000000000000000000000000000000000000000cc2f369e00000000000000000000000000000000000000000000000000000000d547741f00000000000000000000000000000000000000000000000000000000d6f7ddf900000000000000000000000000000000000000000000000000000000b2426fe400000000000000000000000000000000000000000000000000000000c6ec906200000000000000000000000000000000000000000000000000000000c6ec906300000000000000000000000000000000000000000000000000000000ca29e60000000000000000000000000000000000000000000000000000000000ca2a377300000000000000000000000000000000000000000000000000000000b2426fe500000000000000000000000000000000000000000000000000000000be6b99e300000000000000000000000000000000000000000000000000000000c290094400000000000000000000000000000000000000000000000000000000abee1d0400000000000000000000000000000000000000000000000000000000abee1d0500000000000000000000000000000000000000000000000000000000adacc94100000000000000000000000000000000000000000000000000000000ae4e7bed00000000000000000000000000000000000000000000000000000000a4079fd100000000000000000000000000000000000000000000000000000000a42a571500000000000000000000000000000000000000000000000000000000a558c98e000000000000000000000000000000000000000000000000000000003ef570ea000000000000000000000000000000000000000000000000000000008e2a74b30000000000000000000000000000000000000000000000000000000097aba7f80000000000000000000000000000000000000000000000000000000097aba7f900000000000000000000000000000000000000000000000000000000a217fddf00000000000000000000000000000000000000000000000000000000a338bf84000000000000000000000000000000000000000000000000000000008e2a74b4000000000000000000000000000000000000000000000000000000008ff9119d0000000000000000000000000000000000000000000000000000000091d148540000000000000000000000000000000000000000000000000000000066da581f0000000000000000000000000000000000000000000000000000000066da58200000000000000000000000000000000000000000000000000000000079f78cfa0000000000000000000000000000000000000000000000000000000084b0196e000000000000000000000000000000000000000000000000000000003ef570eb00000000000000000000000000000000000000000000000000000000512491210000000000000000000000000000000000000000000000000000000054fd4d5000000000000000000000000000000000000000000000000000000000248a9ca20000000000000000000000000000000000000000000000000000000033d1ae070000000000000000000000000000000000000000000000000000000033d1ae080000000000000000000000000000000000000000000000000000000036568abe00000000000000000000000000000000000000000000000000000000388da93400000000000000000000000000000000000000000000000000000000248a9ca300000000000000000000000000000000000000000000000000000000275543e3000000000000000000000000000000000000000000000000000000002f2ff15d000000000000000000000000000000000000000000000000000000001714be45000000000000000000000000000000000000000000000000000000001714be46000000000000000000000000000000000000000000000000000000001c5fdb9e0000000000000000000000000000000000000000000000000000000022e4aa6e000000000000000000000000000000000000000000000000000000000104d44e0000000000000000000000000000000000000000000000000000000001ffc9a700000000000000000000000000000000ffffffffffffffffffffffffffffffff000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000020000000000000000000000000b7a0c38d57a0307777e67b00464302c77b6001aa771fdf5d1adfb503d5721c6e0000000000000000000000000000000000000020000000800000000000000000ede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c00000000000000000000000000000000000000000000ffffffffffffffffffff000000000000000000000000000000000000000000000001ffffffffffffffe0000000000000000000000000000000000000000000000000fffffffffffffea023b872dd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000a0000000000000000000000000000000000000000000000000000000000000000000000000ffffffe01806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b83020000020000000000000000000000000000002400000000000000000000000002000000000000000000000000000000000000400000000000000000000000000200000000000000000000000000000000000020000000000000000000000000c50c8a1079c07674ad5b7015c7f442a78274f01d3ed268cb855fd33f7f4deca35274afe7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000489cf1e445c78d018acbfa51842b23ba855d897f6fa9a0818459b6f8c096ff3f0000000000000000000000000000000000000000000000fffffffffffffffffef92ee8a9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000010000000000000002ffffffffffffffffffffffff000000000000000000000000000000000000000066de4a4f04a2e43b4f0e16c30f097faaf056d056754069bf209462cbbc634a15c7284703bb690a73875a9803c47edcc378be8fe778d2c9ac6011ee3a68ea4618e2517d3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044000000000000000000000000c47e72be6fe20658f21032075a799d129db63621bf8dde7c098791909f66d5d09a8a0592ac89c5ad3bc6df8224c17b485976f597df104ee20d0df415241f670b0200000200000000000000000000000000000004000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffff00000000000000000000b580c86200000000000000000000000000000000000000000000000000000000796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d95539132f32abcbb99448b5b2e6b3547c4c05f8feb4b54bc26f44bf58db42b455e78ec57fea2bbdd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006400000000000000000000000094faf04d0000000000000000000000000000000000000000000000000000000013c70e050000000000000000000000000000000000000000000000000000000074f9ac1400000000000000000000000000000000000000000000000000000000d5ea6395000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017d78400000000000000000000000000000000000000000000000000ffffffffffffffbf000000000000000000000000000000000000000000000000ffffffffffffff7f0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff5fa16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d102a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d100c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d103a16a46d94261c7517cc8ff89f61c0ce93598e3c849801011dee649a6a557d1018b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f000000000000000000000000000000000000000000000000ffffffffffffff3f1901000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000004200000000000000000000000098ef1ed8000000000000000000000000000000000000000000000000000000007e710d1100000000000000000000000000000000000000000000000000000000710905230000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000009f51bdb900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003b9aca004e487b71000000000000000000000000000000000000000000000000000000001e3b444982564c5ab7f4dbe74e901d6fb10e8d811afccb353e1749bd0cf33bef38b3a7fa000000000000000000000000000000000000000000000000000000001f685b7500000000000000000000000000000000000000000000000000000000f89bc21f000000000000000000000000000000000000000000000000000000009e52165e00000000000000000000000000000000000000000000000000000000b4f2832b0000000000000000000000000000000000000000000000000000000044e028cc0000000000000000000000000000000000000000000000000000000002dd7bc7dec4dceedda775e58dd541e08a116c6c53815c0bd028192f7b62680008c379a0000000000000000000000000000000000000000000000000000000004549503731323a20556e696e697469616c697a6564000000000000000000000000000000000000000000000000000000000000640000008000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000ffffffffffffffdf0f000000000000000000000000000000000000000000000000000000000000009967084534f1bfdf20406ac7fea0e72efc88feba87e44092894e4546122729c32b89813d2efe3dafd49575bad57caa45097166c4eabba508ccea8bbed86e85341324c07b429e7aca3a767b19c12867b295a0a37d54953449d8c7f5da7bfd23476697b232000000000000000000000000000000000000000000000000000000002f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d575013129b137fe29cf9c1eb1df92717c299eee4bc4f75bf4acf76e397e93d2ae6c4247b0000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff01ffc9a7000000000000000000000000000000000000000000000000000000007965db0b00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffc0000000000000000000000000000000000000000000000000ffffffffffffff60000000000000000000000000000000000000000000000000ffffffffffffffa0000000000000000000000000000000000000000000000003ffffffffffffffe000000000000000000000000000000000000000000000003fffffffffffffffe0000000000000000000000000000000000000000000000000ffffffffffffff9f000000000000000000000000000000000000000000000000ffffffffffffff1f000000000000000000000000000000000000000000000000fffffffffffffebf000000000000000000000000000000000000000000000000ffffffffffffff80fce698f7000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a00000000000000000000000000000000000000080000000000000000000000000f645eedf00000000000000000000000000000000000000000000000000000000d78bce0c00000000000000000000000000000000000000000000000000000000496e76616c6964207369676e617475726500000000000000000000000000000019457468657265756d205369676e6564204d6573736167653a0a33320000000000000000000000000000000000000000000000000000000000000000ffffff7ffdffffffffffffffffffffffffffffffffffffffffffff80000000000000000000000000000000000000000000000000000000000000000000000000ffffff1ffdffffffffffffffffffffffffffffffffffffffffffff200000000000000000f6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171ba9059cbb000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a2646970667358221220da9af69e95ba26b4e3267428f9fc1f6477f95b723d916a51f15b9d68d434abeb64736f6c6378247a6b736f6c633a312e352e31353b736f6c633a302e382e32383b6c6c766d3a312e302e320055
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.