- Contract name:
- NativeHandler
- Optimization enabled
- false
- Compiler version
- v0.8.17+commit.8df45f5f
- EVM Version
- default
- Verified at
- 2023-03-24T14:31:02.984070Z
Constructor Arguments
0x000000000000000000000000d5242992fc9cdacde09a2b9f40b0ec6a9a19f72e0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Arg [0] (address) : 0xd5242992fc9cdacde09a2b9f40b0ec6a9a19f72e
Arg [1] (bytes32[]) : []
Arg [2] (address[]) : []
Contract source code
// File: @openzeppelin/contracts/security/ReentrancyGuard.sol // SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: contracts/interfaces/IDepositExecute.sol pragma solidity 0.8.17; /** @title Interface for handler contracts that support deposits and deposit executions. @author ChainSafe Systems. */ interface IDepositExecute { /** @notice It is intended that deposit are made using the Bridge contract. @param resourceID ID of the resource that is being bridged. @param destinationChainID Chain ID deposit is expected to be bridged to. @param depositNonce This value is generated as an ID by the Bridge contract. @param depositer Address of account making the deposit in the Bridge contract. @param data Consists of additional data needed for a specific deposit. */ function deposit(bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes calldata data) external payable; /** @notice It is intended that proposals are executed by the Bridge contract. @param resourceID ID of the resource that is being bridged. @param data Consists of additional data needed for a specific deposit execution. */ function executeProposal(bytes32 resourceID, bytes calldata data) external; } // File: contracts/interfaces/IBridge.sol pragma solidity 0.8.17; /** @title Interface for Bridge contract. @author ChainSafe Systems. */ interface IBridge { /** @notice Exposing getter for {_chainID} instead of forcing the use of call. @return uint8 The {_chainID} that is currently set for the Bridge contract. */ function _chainID() external returns (uint8); /** @notice Exposing getter for {_fee} instead of forcing the use of call. @return uint256 The {_fee} that is currently set for the Bridge contract. */ function _fee() external returns (uint256); } // File: contracts/interfaces/IERCHandler.sol pragma solidity 0.8.17; /** @title Interface to be used with handlers that support ERC20s and ERC721s. @author ChainSafe Systems. */ interface IERCHandler { /** @notice Correlates {resourceID} with {contractAddress}. @param resourceID ResourceID to be used when making deposits. @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. */ function setResource(bytes32 resourceID, address contractAddress) external; /** @notice Marks {contractAddress} as mintable/burnable. @param contractAddress Address of contract to be used when making or executing deposits. */ function setBurnable(address contractAddress) external; /** @notice Used to manually release funds {native tokens} from Native safes. @param recipient Address to release tokens to. @param amount The amount of native token to release. */ function withdraw(address recipient, uint256 amount) external; /** @notice Used to manually release funds {erc20 tokens, nft} from ERC safes. @param tokenAddress Address of token contract to release @param recipient Address to release tokens to. @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to release. */ function withdrawToken(address tokenAddress, address recipient, uint256 amountOrTokenID) external; } // File: contracts/handlers/HandlerHelpers.sol pragma solidity 0.8.17; /** @title Function used across handler contracts. @author ChainSafe Systems. @notice This contract is intended to be used with the Bridge contract. */ contract HandlerHelpers is IERCHandler { address public _bridgeAddress; // resourceID => token contract address mapping (bytes32 => address) public _resourceIDToTokenContractAddress; // token contract address => resourceID mapping (address => bytes32) public _tokenContractAddressToResourceID; // token contract address => is whitelisted mapping (address => bool) public _contractWhitelist; // token contract address => is burnable mapping (address => bool) public _burnList; modifier onlyBridge() { _onlyBridge(); _; } function _onlyBridge() private { require(msg.sender == _bridgeAddress, "sender must be bridge contract"); } /** @notice First verifies {_resourceIDToContractAddress}[{resourceID}] and {_contractAddressToResourceID}[{contractAddress}] are not already set, then sets {_resourceIDToContractAddress} with {contractAddress}, {_contractAddressToResourceID} with {resourceID}, and {_contractWhitelist} to true for {contractAddress}. @param resourceID ResourceID to be used when making deposits. @param contractAddress Address of contract to be called when a deposit is made and a deposited is executed. */ function setResource(bytes32 resourceID, address contractAddress) external override onlyBridge { _setResource(resourceID, contractAddress); } /** @notice First verifies {contractAddress} is whitelisted, then sets {_burnList}[{contractAddress}] to true. @param contractAddress Address of contract to be used when making or executing deposits. */ function setBurnable(address contractAddress) external override onlyBridge{ _setBurnable(contractAddress); } /** @notice Used to manually release funds(native token) from Native safes. @param recipient Address to release tokens to. @param amount The amount of native token to release. */ function withdraw(address recipient, uint256 amount) external virtual override {} /** @notice Used to manually release funds(ERC20 & ERC721) from ERC safes. @param tokenAddress Address of token contract to release. @param recipient Address to release tokens to. @param amountOrTokenID Either the amount of ERC20 tokens or the ERC721 token ID to release. */ function withdrawToken(address tokenAddress, address recipient, uint256 amountOrTokenID) external virtual override {} function _setResource(bytes32 resourceID, address contractAddress) internal { _resourceIDToTokenContractAddress[resourceID] = contractAddress; _tokenContractAddressToResourceID[contractAddress] = resourceID; _contractWhitelist[contractAddress] = true; } function _setBurnable(address contractAddress) internal { require(_contractWhitelist[contractAddress], "provided contract is not whitelisted"); _burnList[contractAddress] = true; } } // File: contracts/handlers/NativeHandler.sol pragma solidity 0.8.17; /** @title Handles Native currency deposits and deposit executions. @author ChainSafe Systems. @notice This contract is intended to be used with the Bridge contract. */ contract NativeHandler is IDepositExecute, HandlerHelpers, ReentrancyGuard { event Log(uint256 indexed val); struct DepositRecord { address _tokenAddress; uint8 _lenDestinationRecipientAddress; uint8 _destinationChainID; bytes32 _resourceID; bytes _destinationRecipientAddress; address _depositer; uint _amount; } // depositNonce => Deposit Record mapping (uint8 => mapping(uint64 => DepositRecord)) public _depositRecords; /** @param bridgeAddress Contract address of previously deployed Bridge. @param initialResourceIDs Resource IDs are used to identify a specific contract address. These are the Resource IDs this contract will initially support. @param initialContractAddresses These are the addresses the {initialResourceIDs} will point to, and are the contracts that will be called to perform various deposit calls. @dev {initialResourceIDs} and {initialContractAddresses} must have the same length (one resourceID for every address). Also, these arrays must be ordered in the way that {initialResourceIDs}[0] is the intended resourceID for {initialContractAddresses}[0]. */ constructor( address bridgeAddress, bytes32[] memory initialResourceIDs, address[] memory initialContractAddresses ) { require(initialResourceIDs.length == initialContractAddresses.length, "initialResourceIDs and initialContractAddresses len mismatch"); _bridgeAddress = bridgeAddress; for (uint256 i = 0; i < initialResourceIDs.length; i++) { _setResource(initialResourceIDs[i], initialContractAddresses[i]); } } /** @param depositNonce This ID will have been generated by the Bridge contract. @param destId ID of chain deposit will be bridged to. @return DepositRecord which consists of: - _tokenAddress Address used when {deposit} was executed. - _destinationChainID ChainID deposited tokens are intended to end up on. - _resourceID ResourceID used when {deposit} was executed. - _lenDestinationRecipientAddress Used to parse recipient's address from {_destinationRecipientAddress} - _destinationRecipientAddress Address tokens are intended to be deposited to on desitnation chain. - _depositer Address that initially called {deposit} in the Bridge contract. - _amount Amount of tokens that were deposited. */ function getDepositRecord(uint64 depositNonce, uint8 destId) external view returns (DepositRecord memory) { return _depositRecords[destId][depositNonce]; } /** @notice A deposit is initiatied by making a deposit in the Bridge contract. @param resourceID ID of the resource that is being bridged @param destinationChainID Chain ID of chain tokens are expected to be bridged to. @param depositNonce This value is generated as an ID by the Bridge contract. @param depositer Address of account making the deposit in the Bridge contract. @param data Consists of: {resourceID}, {amount}, {lenRecipientAddress}, and {recipientAddress} all padded to 32 bytes. @notice Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 recipientAddress length uint256 bytes 32 - 64 recipientAddress bytes bytes 64 - END */ function deposit( bytes32 resourceID, uint8 destinationChainID, uint64 depositNonce, address depositer, bytes calldata data ) external override payable onlyBridge nonReentrant { bytes memory recipientAddress; uint256 amount; uint256 lenRecipientAddress; assembly { amount := calldataload(0xC4) recipientAddress := mload(0x40) lenRecipientAddress := calldataload(0xE4) mstore(0x40, add(0x20, add(recipientAddress, lenRecipientAddress))) calldatacopy( recipientAddress, // copy to destinationRecipientAddress 0xE4, // copy from calldata @ 0x104 sub(calldatasize(), 0xE) // copy size (calldatasize - 0x104) ) } require(amount == msg.value, "Value does not match Amount"); bytes20 _recipientAddress; assembly { _recipientAddress := mload(add(recipientAddress, 0x20)) } require(address(_recipientAddress) != address(0), "Recipient address is invalid"); address tokenAddress = _resourceIDToTokenContractAddress[resourceID]; require(_contractWhitelist[tokenAddress], "Provided tokenAddress is not whitelisted"); _depositRecords[destinationChainID][depositNonce] = DepositRecord( tokenAddress, uint8(lenRecipientAddress), destinationChainID, resourceID, recipientAddress, depositer, amount ); } /** @notice Proposal execution should be initiated when a proposal is finalized in the Bridge contract. by a relayer on the deposit's destination chain. @param resourceID ID of the resource that is being bridged @param data Consists of {resourceID}, {amount}, {lenDestinationRecipientAddress}, and {destinationRecipientAddress} all padded to 32 bytes. @notice Data passed into the function should be constructed as follows: amount uint256 bytes 0 - 32 destinationRecipientAddress length uint256 bytes 32 - 64 destinationRecipientAddress bytes bytes 64 - END */ function executeProposal(bytes32 resourceID, bytes calldata data) external override onlyBridge { uint256 amount; bytes memory destinationRecipientAddress; assembly { amount := calldataload(0x64) destinationRecipientAddress := mload(0x40) let lenDestinationRecipientAddress := calldataload(0x84) mstore(0x40, add(0x20, add(destinationRecipientAddress, lenDestinationRecipientAddress))) // in the calldata the destinationRecipientAddress is stored at 0xC4 after accounting for the function signature and length declaration calldatacopy( destinationRecipientAddress, // copy to destinationRecipientAddress 0x84, // copy from calldata @ 0x84 sub(calldatasize(), 0x84) // copy size to the end of calldata ) } bytes20 recipientAddress; address tokenAddress = _resourceIDToTokenContractAddress[resourceID]; assembly { recipientAddress := mload(add(destinationRecipientAddress, 0x20)) } require(_contractWhitelist[tokenAddress], "provided tokenAddress is not whitelisted"); address(recipientAddress).call{value:amount}(""); } /** @notice Used to manually release native tokens from the handler. @param recipient Address to release tokens to. @param amount The amount of native tokens to release. */ function withdraw(address recipient, uint amount) external override onlyBridge { payable(recipient).call{value:amount}(""); } /** @notice Used for "locking" native tokens on the handler. */ receive() external payable onlyBridge { } }
Contract ABI
[{"type":"constructor","inputs":[{"type":"address","name":"bridgeAddress","internalType":"address"},{"type":"bytes32[]","name":"initialResourceIDs","internalType":"bytes32[]"},{"type":"address[]","name":"initialContractAddresses","internalType":"address[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_bridgeAddress","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_burnList","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"_contractWhitelist","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"_tokenAddress","internalType":"address"},{"type":"uint8","name":"_lenDestinationRecipientAddress","internalType":"uint8"},{"type":"uint8","name":"_destinationChainID","internalType":"uint8"},{"type":"bytes32","name":"_resourceID","internalType":"bytes32"},{"type":"bytes","name":"_destinationRecipientAddress","internalType":"bytes"},{"type":"address","name":"_depositer","internalType":"address"},{"type":"uint256","name":"_amount","internalType":"uint256"}],"name":"_depositRecords","inputs":[{"type":"uint8","name":"","internalType":"uint8"},{"type":"uint64","name":"","internalType":"uint64"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"_resourceIDToTokenContractAddress","inputs":[{"type":"bytes32","name":"","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"_tokenContractAddressToResourceID","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"payable","outputs":[],"name":"deposit","inputs":[{"type":"bytes32","name":"resourceID","internalType":"bytes32"},{"type":"uint8","name":"destinationChainID","internalType":"uint8"},{"type":"uint64","name":"depositNonce","internalType":"uint64"},{"type":"address","name":"depositer","internalType":"address"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"executeProposal","inputs":[{"type":"bytes32","name":"resourceID","internalType":"bytes32"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct NativeHandler.DepositRecord","components":[{"type":"address"},{"type":"uint8"},{"type":"uint8"},{"type":"bytes32"},{"type":"bytes"},{"type":"address"},{"type":"uint256"}]}],"name":"getDepositRecord","inputs":[{"type":"uint64","name":"depositNonce","internalType":"uint64"},{"type":"uint8","name":"destId","internalType":"uint8"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBurnable","inputs":[{"type":"address","name":"contractAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setResource","inputs":[{"type":"bytes32","name":"resourceID","internalType":"bytes32"},{"type":"address","name":"contractAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawToken","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amountOrTokenID","internalType":"uint256"}]},{"type":"event","name":"Log","inputs":[{"type":"uint256","name":"val","indexed":true}],"anonymous":false},{"type":"receive"}]
Deployed ByteCode
0x6080604052600436106100c65760003560e01c80636a70d0811161007f578063ba484c0911610059578063ba484c0914610296578063c8ba6c87146102d3578063e248cff214610310578063f3fef3a314610339576100d5565b80636a70d081146101f35780637f79bea814610230578063b8fa37361461026d576100d5565b806301e33667146100da57806307b7ed99146101035780630a6d55d81461012c578063318c136e1461016957806338995da9146101945780634402027f146101b0576100d5565b366100d5576100d3610362565b005b600080fd5b3480156100e657600080fd5b5061010160048036038101906100fc9190611074565b6103f2565b005b34801561010f57600080fd5b5061012a600480360381019061012591906110c7565b6103f7565b005b34801561013857600080fd5b50610153600480360381019061014e919061112a565b61040b565b6040516101609190611166565b60405180910390f35b34801561017557600080fd5b5061017e61043e565b60405161018b9190611166565b60405180910390f35b6101ae60048036038101906101a9919061125f565b610462565b005b3480156101bc57600080fd5b506101d760048036038101906101d291906112f9565b6107cd565b6040516101ea97969594939291906113f6565b60405180910390f35b3480156101ff57600080fd5b5061021a600480360381019061021591906110c7565b6108fe565b6040516102279190611487565b60405180910390f35b34801561023c57600080fd5b50610257600480360381019061025291906110c7565b61091e565b6040516102649190611487565b60405180910390f35b34801561027957600080fd5b50610294600480360381019061028f91906114a2565b61093e565b005b3480156102a257600080fd5b506102bd60048036038101906102b891906114e2565b610954565b6040516102ca9190611644565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f591906110c7565b610b39565b6040516103079190611666565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190611681565b610b51565b005b34801561034557600080fd5b50610360600480360381019061035b91906116e1565b610cbd565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e79061177e565b60405180910390fd5b565b505050565b6103ff610362565b61040881610d32565b50565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61046a610362565b610472610e19565b606060008060c4359150604051925060e4359050808301602001604052600e360360e484373482146104d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d0906117ea565b60405180910390fd5b600060208401519050600073ffffffffffffffffffffffffffffffffffffffff168160601c73ffffffffffffffffffffffffffffffffffffffff1603610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161054b90611856565b60405180910390fd5b6000600160008c815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610618576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060f906118e8565b60405180910390fd5b6040518060e001604052808273ffffffffffffffffffffffffffffffffffffffff1681526020018460ff1681526020018b60ff1681526020018c81526020018681526020018973ffffffffffffffffffffffffffffffffffffffff16815260200185815250600660008c60ff1660ff16815260200190815260200160002060008b67ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548160ff021916908360ff16021790555060408201518160000160156101000a81548160ff021916908360ff1602179055506060820151816001015560808201518160020190816107639190611b43565b5060a08201518160030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c0820151816004015590505050505050506107c5610e68565b505050505050565b6006602052816000526040600020602052806000526040600020600091509150508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900460ff16908060000160159054906101000a900460ff169080600101549080600201805461084f90611966565b80601f016020809104026020016040519081016040528092919081815260200182805461087b90611966565b80156108c85780601f1061089d576101008083540402835291602001916108c8565b820191906000526020600020905b8154815290600101906020018083116108ab57829003601f168201915b5050505050908060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060040154905087565b60046020528060005260406000206000915054906101000a900460ff1681565b60036020528060005260406000206000915054906101000a900460ff1681565b610946610362565b6109508282610e72565b5050565b61095c610f64565b600660008360ff1660ff16815260200190815260200160002060008467ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000206040518060e00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900460ff1660ff1660ff1681526020016000820160159054906101000a900460ff1660ff1660ff16815260200160018201548152602001600282018054610a4f90611966565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7b90611966565b8015610ac85780601f10610a9d57610100808354040283529160200191610ac8565b820191906000526020600020905b815481529060010190602001808311610aab57829003601f168201915b505050505081526020016003820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600482015481525050905092915050565b60026020528060005260406000206000915090505481565b610b59610362565b60006060606435915060405190506084358082016020016040526084360360848337506000806001600088815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060208301519150600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610c48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3f90611c87565b60405180910390fd5b8160601c73ffffffffffffffffffffffffffffffffffffffff1684604051610c6f90611cd8565b60006040518083038185875af1925050503d8060008114610cac576040519150601f19603f3d011682016040523d82523d6000602084013e610cb1565b606091505b50505050505050505050565b610cc5610362565b8173ffffffffffffffffffffffffffffffffffffffff1681604051610ce990611cd8565b60006040518083038185875af1925050503d8060008114610d26576040519150601f19603f3d011682016040523d82523d6000602084013e610d2b565b606091505b5050505050565b600360008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db590611d5f565b60405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600260055403610e5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5590611dcb565b60405180910390fd5b6002600581905550565b6001600581905550565b806001600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6040518060e00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600060ff168152602001600060ff1681526020016000801916815260200160608152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061100b82610fe0565b9050919050565b61101b81611000565b811461102657600080fd5b50565b60008135905061103881611012565b92915050565b6000819050919050565b6110518161103e565b811461105c57600080fd5b50565b60008135905061106e81611048565b92915050565b60008060006060848603121561108d5761108c610fd6565b5b600061109b86828701611029565b93505060206110ac86828701611029565b92505060406110bd8682870161105f565b9150509250925092565b6000602082840312156110dd576110dc610fd6565b5b60006110eb84828501611029565b91505092915050565b6000819050919050565b611107816110f4565b811461111257600080fd5b50565b600081359050611124816110fe565b92915050565b6000602082840312156111405761113f610fd6565b5b600061114e84828501611115565b91505092915050565b61116081611000565b82525050565b600060208201905061117b6000830184611157565b92915050565b600060ff82169050919050565b61119781611181565b81146111a257600080fd5b50565b6000813590506111b48161118e565b92915050565b600067ffffffffffffffff82169050919050565b6111d7816111ba565b81146111e257600080fd5b50565b6000813590506111f4816111ce565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261121f5761121e6111fa565b5b8235905067ffffffffffffffff81111561123c5761123b6111ff565b5b60208301915083600182028301111561125857611257611204565b5b9250929050565b60008060008060008060a0878903121561127c5761127b610fd6565b5b600061128a89828a01611115565b965050602061129b89828a016111a5565b95505060406112ac89828a016111e5565b94505060606112bd89828a01611029565b935050608087013567ffffffffffffffff8111156112de576112dd610fdb565b5b6112ea89828a01611209565b92509250509295509295509295565b600080604083850312156113105761130f610fd6565b5b600061131e858286016111a5565b925050602061132f858286016111e5565b9150509250929050565b61134281611181565b82525050565b611351816110f4565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611391578082015181840152602081019050611376565b60008484015250505050565b6000601f19601f8301169050919050565b60006113b982611357565b6113c38185611362565b93506113d3818560208601611373565b6113dc8161139d565b840191505092915050565b6113f08161103e565b82525050565b600060e08201905061140b600083018a611157565b6114186020830189611339565b6114256040830188611339565b6114326060830187611348565b818103608083015261144481866113ae565b905061145360a0830185611157565b61146060c08301846113e7565b98975050505050505050565b60008115159050919050565b6114818161146c565b82525050565b600060208201905061149c6000830184611478565b92915050565b600080604083850312156114b9576114b8610fd6565b5b60006114c785828601611115565b92505060206114d885828601611029565b9150509250929050565b600080604083850312156114f9576114f8610fd6565b5b6000611507858286016111e5565b9250506020611518858286016111a5565b9150509250929050565b61152b81611000565b82525050565b61153a81611181565b82525050565b611549816110f4565b82525050565b600082825260208201905092915050565b600061156b82611357565b611575818561154f565b9350611585818560208601611373565b61158e8161139d565b840191505092915050565b6115a28161103e565b82525050565b600060e0830160008301516115c06000860182611522565b5060208301516115d36020860182611531565b5060408301516115e66040860182611531565b5060608301516115f96060860182611540565b50608083015184820360808601526116118282611560565b91505060a083015161162660a0860182611522565b5060c083015161163960c0860182611599565b508091505092915050565b6000602082019050818103600083015261165e81846115a8565b905092915050565b600060208201905061167b6000830184611348565b92915050565b60008060006040848603121561169a57611699610fd6565b5b60006116a886828701611115565b935050602084013567ffffffffffffffff8111156116c9576116c8610fdb565b5b6116d586828701611209565b92509250509250925092565b600080604083850312156116f8576116f7610fd6565b5b600061170685828601611029565b92505060206117178582860161105f565b9150509250929050565b600082825260208201905092915050565b7f73656e646572206d7573742062652062726964676520636f6e74726163740000600082015250565b6000611768601e83611721565b915061177382611732565b602082019050919050565b600060208201905081810360008301526117978161175b565b9050919050565b7f56616c756520646f6573206e6f74206d6174636820416d6f756e740000000000600082015250565b60006117d4601b83611721565b91506117df8261179e565b602082019050919050565b60006020820190508181036000830152611803816117c7565b9050919050565b7f526563697069656e74206164647265737320697320696e76616c696400000000600082015250565b6000611840601c83611721565b915061184b8261180a565b602082019050919050565b6000602082019050818103600083015261186f81611833565b9050919050565b7f50726f766964656420746f6b656e41646472657373206973206e6f742077686960008201527f74656c6973746564000000000000000000000000000000000000000000000000602082015250565b60006118d2602883611721565b91506118dd82611876565b604082019050919050565b60006020820190508181036000830152611901816118c5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061197e57607f821691505b60208210810361199157611990611937565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026119f97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826119bc565b611a0386836119bc565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611a40611a3b611a368461103e565b611a1b565b61103e565b9050919050565b6000819050919050565b611a5a83611a25565b611a6e611a6682611a47565b8484546119c9565b825550505050565b600090565b611a83611a76565b611a8e818484611a51565b505050565b5b81811015611ab257611aa7600082611a7b565b600181019050611a94565b5050565b601f821115611af757611ac881611997565b611ad1846119ac565b81016020851015611ae0578190505b611af4611aec856119ac565b830182611a93565b50505b505050565b600082821c905092915050565b6000611b1a60001984600802611afc565b1980831691505092915050565b6000611b338383611b09565b9150826002028217905092915050565b611b4c82611357565b67ffffffffffffffff811115611b6557611b64611908565b5b611b6f8254611966565b611b7a828285611ab6565b600060209050601f831160018114611bad5760008415611b9b578287015190505b611ba58582611b27565b865550611c0d565b601f198416611bbb86611997565b60005b82811015611be357848901518255600182019150602085019450602081019050611bbe565b86831015611c005784890151611bfc601f891682611b09565b8355505b6001600288020188555050505b505050505050565b7f70726f766964656420746f6b656e41646472657373206973206e6f742077686960008201527f74656c6973746564000000000000000000000000000000000000000000000000602082015250565b6000611c71602883611721565b9150611c7c82611c15565b604082019050919050565b60006020820190508181036000830152611ca081611c64565b9050919050565b600081905092915050565b50565b6000611cc2600083611ca7565b9150611ccd82611cb2565b600082019050919050565b6000611ce382611cb5565b9150819050919050565b7f70726f766964656420636f6e7472616374206973206e6f742077686974656c6960008201527f7374656400000000000000000000000000000000000000000000000000000000602082015250565b6000611d49602483611721565b9150611d5482611ced565b604082019050919050565b60006020820190508181036000830152611d7881611d3c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611db5601f83611721565b9150611dc082611d7f565b602082019050919050565b60006020820190508181036000830152611de481611da8565b905091905056fea26469706673582212202fb66eda80717d5857421b8ef07a7a0f078fd151e165b012cd45cf2073f4caf564736f6c63430008110033