Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 211 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Create Wallet | 23595671 | 128 days ago | IN | 0 ETH | 0.00161726 | ||||
| Create Wallet | 23567975 | 132 days ago | IN | 0 ETH | 0.00092506 | ||||
| Create Wallet | 23517430 | 139 days ago | IN | 0 ETH | 0.00025674 | ||||
| Create Wallet | 23515963 | 139 days ago | IN | 0 ETH | 0.00022153 | ||||
| Create Wallet | 23512103 | 140 days ago | IN | 0 ETH | 0.00026827 | ||||
| Create Wallet | 23496718 | 142 days ago | IN | 0 ETH | 0.00033176 | ||||
| Create Wallet | 23486038 | 144 days ago | IN | 0 ETH | 0.00038672 | ||||
| Create Wallet | 23468302 | 146 days ago | IN | 0 ETH | 0.00184805 | ||||
| Create Wallet | 23467751 | 146 days ago | IN | 0 ETH | 0.00080377 | ||||
| Create Wallet | 23464474 | 147 days ago | IN | 0 ETH | 0.00001788 | ||||
| Create Wallet | 23464472 | 147 days ago | IN | 0 ETH | 0.00143027 | ||||
| Create Wallet | 23463029 | 147 days ago | IN | 0 ETH | 0.00035611 | ||||
| Create Wallet | 23459219 | 147 days ago | IN | 0 ETH | 0.00023925 | ||||
| Create Wallet | 23456350 | 148 days ago | IN | 0 ETH | 0.0003705 | ||||
| Create Wallet | 23456069 | 148 days ago | IN | 0 ETH | 0.0002827 | ||||
| Create Wallet | 23454639 | 148 days ago | IN | 0 ETH | 0.00065436 | ||||
| Create Wallet | 23454524 | 148 days ago | IN | 0 ETH | 0.0007342 | ||||
| Create Wallet | 23453935 | 148 days ago | IN | 0 ETH | 0.0006464 | ||||
| Create Wallet | 23452096 | 148 days ago | IN | 0 ETH | 0.00031471 | ||||
| Create Wallet | 23451804 | 148 days ago | IN | 0 ETH | 0.000298 | ||||
| Create Wallet | 23451542 | 148 days ago | IN | 0 ETH | 0.0002404 | ||||
| Create Wallet | 23449560 | 149 days ago | IN | 0 ETH | 0.00052572 | ||||
| Create Wallet | 23448991 | 149 days ago | IN | 0 ETH | 0.00210365 | ||||
| Create Wallet | 23448757 | 149 days ago | IN | 0 ETH | 0.00214461 | ||||
| Create Wallet | 23448567 | 149 days ago | IN | 0 ETH | 0.00164375 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| 0x60806040 | 23595671 | 128 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23567975 | 132 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23517430 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23515963 | 139 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23512103 | 140 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23496718 | 142 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23486038 | 144 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23468302 | 146 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23467751 | 146 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23464472 | 147 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23463029 | 147 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23459219 | 147 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23456350 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23456069 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23454639 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23454524 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23453935 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23452096 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23451804 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23451542 | 148 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23449560 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23448991 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23448757 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23448567 | 149 days ago | Contract Creation | 0 ETH | |||
| 0x60806040 | 23448444 | 149 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
SmartWalletFactory
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
import "./SmartWallet.sol";
contract SmartWalletFactory {
event WalletDeployed(address indexed owner, address wallet, bytes32 salt);
mapping(bytes32 => address) public deployedWallets;
function createWallet(bytes32 salt) external returns (address wallet) {
require(deployedWallets[salt] == address(0), "Wallet already deployed");
wallet = address(new SmartWallet{salt: salt}());
SmartWallet(payable(wallet)).transferOwnership(msg.sender);
deployedWallets[salt] = wallet;
emit WalletDeployed(msg.sender, wallet, salt);
}
function computeWallet(
bytes32 salt
) public view returns (address predicted) {
bytes memory bytecode = type(SmartWallet).creationCode;
bytes32 hash = keccak256(
abi.encodePacked(
bytes1(0xff),
address(this),
salt,
keccak256(bytecode)
)
);
predicted = address(uint160(uint(hash)));
}
function getWalletsBySalts(
bytes32[] calldata salts
) external view returns (address[] memory addresses) {
addresses = new address[](salts.length);
for (uint i = 0; i < salts.length; i++) {
addresses[i] = deployedWallets[salts[i]];
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.0;
import "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner");
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` 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 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 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 {
using Address for address;
/**
* @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 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.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @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.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @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).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @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 silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
contract SmartWallet is Ownable2Step, ReentrancyGuard {
using EnumerableSet for EnumerableSet.AddressSet;
event TransactionSubmitted(
bytes32 indexed txHash,
address indexed proposer
);
event TransactionConfirmed(bytes32 indexed txHash, address indexed signer);
event TransactionExecuted(bytes32 indexed txHash, address indexed executor);
struct Transaction {
address destination;
uint256 value;
bytes data;
bool exists;
}
EnumerableSet.AddressSet private signers;
mapping(bytes32 => Transaction) private transactions;
mapping(bytes32 => mapping(address => bool)) private confirmations;
mapping(bytes32 => uint256) private confirmationCounts;
mapping(bytes32 => bool) private executedTransactions;
uint256 public requiredSignatures = 1;
uint256 public nonce = 0;
modifier onlySigner() {
require(signers.contains(msg.sender), "Not a signer");
_;
}
modifier notZero(address _address) {
require(_address != address(0), "Address cannot be zero");
_;
}
constructor() Ownable() {}
function submitTransaction(
address destination,
uint256 value,
bytes memory data
) public onlySigner notZero(destination) returns (bytes32) {
bytes32 txHash = keccak256(
abi.encode(
destination,
value,
data,
msg.sender,
block.timestamp,
nonce++
)
);
require(!transactions[txHash].exists, "Transaction already exists");
transactions[txHash] = Transaction({
destination: destination,
value: value,
data: data,
exists: true
});
emit TransactionSubmitted(txHash, msg.sender);
confirmTransaction(txHash);
return txHash;
}
function confirmTransaction(bytes32 txHash) public onlySigner {
require(transactions[txHash].exists, "Transaction does not exist");
require(!confirmations[txHash][msg.sender], "Already confirmed");
confirmations[txHash][msg.sender] = true;
confirmationCounts[txHash] += 1;
emit TransactionConfirmed(txHash, msg.sender);
if (
confirmationCounts[txHash] >= requiredSignatures &&
!executedTransactions[txHash]
) {
_executeTransaction(txHash);
}
}
function _executeTransaction(bytes32 txHash) internal nonReentrant {
Transaction memory txn = transactions[txHash];
require(!executedTransactions[txHash], "Already executed");
require(
confirmationCounts[txHash] >= requiredSignatures,
"Not enough confirmations"
);
executedTransactions[txHash] = true;
(bool success, ) = txn.destination.call{value: txn.value}(txn.data);
require(success, "Execution failed");
emit TransactionExecuted(txHash, msg.sender);
}
function isSigner(address account) public view returns (bool) {
return signers.contains(account);
}
function addSigner(address newSigner) public onlyOwner notZero(newSigner) {
require(signers.add(newSigner), "Signer already added");
if (requiredSignatures == 0) {
requiredSignatures = 1;
}
}
function removeSigner(address signer) public onlyOwner {
require(signers.remove(signer), "Signer not found");
if (requiredSignatures > signers.length()) {
requiredSignatures = signers.length();
}
}
function setRequiredSignatures(
uint256 newRequiredSignatures
) public onlyOwner {
require(
newRequiredSignatures > 0,
"Must require at least one signature"
);
require(requiredSignatures != newRequiredSignatures, "No change");
requiredSignatures = newRequiredSignatures;
}
receive() external payable {}
}{
"evmVersion": "paris",
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"WalletDeployed","type":"event"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"computeWallet","outputs":[{"internalType":"address","name":"predicted","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"createWallet","outputs":[{"internalType":"address","name":"wallet","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"deployedWallets","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"salts","type":"bytes32[]"}],"name":"getWalletsBySalts","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"stateMutability":"view","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50612df7806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80631d647605146100515780631ea6c2db14610081578063311090f2146100b1578063402b4708146100e1575b600080fd5b61006b600480360381019061006691906104f1565b610111565b604051610078919061055f565b60405180910390f35b61009b600480360381019061009691906104f1565b6102f4565b6040516100a8919061055f565b60405180910390f35b6100cb60048036038101906100c691906105df565b610327565b6040516100d891906106ea565b60405180910390f35b6100fb60048036038101906100f691906104f1565b610432565b604051610108919061055f565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff1660008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101aa90610769565b60405180910390fd5b816040516101c0906104a4565b8190604051809103906000f59050801580156101e0573d6000803e3d6000fd5b5090508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b815260040161021c919061055f565b600060405180830381600087803b15801561023657600080fd5b505af115801561024a573d6000803e3d6000fd5b505050508060008084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f195bcaf5c86c75410014291983a0bc0b60a4ae2874ff863699229144c361a21682846040516102e7929190610798565b60405180910390a2919050565b60006020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608282905067ffffffffffffffff811115610346576103456107c1565b5b6040519080825280602002602001820160405280156103745781602001602082028036833780820191505090505b50905060005b8383905081101561042b5760008085858481811061039b5761039a6107f0565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168282815181106103e4576103e36107f0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808060010191505061037a565b5092915050565b60008060405180602001610445906104a4565b6020820181038252601f19601f820116604052509050600060ff60f81b3085848051906020012060405160200161047f94939291906108d5565b6040516020818303038152906040528051906020012090508060001c92505050919050565b61249e8061092483390190565b600080fd5b600080fd5b6000819050919050565b6104ce816104bb565b81146104d957600080fd5b50565b6000813590506104eb816104c5565b92915050565b600060208284031215610507576105066104b1565b5b6000610515848285016104dc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105498261051e565b9050919050565b6105598161053e565b82525050565b60006020820190506105746000830184610550565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059f5761059e61057a565b5b8235905067ffffffffffffffff8111156105bc576105bb61057f565b5b6020830191508360208202830111156105d8576105d7610584565b5b9250929050565b600080602083850312156105f6576105f56104b1565b5b600083013567ffffffffffffffff811115610614576106136104b6565b5b61062085828601610589565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6106618161053e565b82525050565b60006106738383610658565b60208301905092915050565b6000602082019050919050565b60006106978261062c565b6106a18185610637565b93506106ac83610648565b8060005b838110156106dd5781516106c48882610667565b97506106cf8361067f565b9250506001810190506106b0565b5085935050505092915050565b60006020820190508181036000830152610704818461068c565b905092915050565b600082825260208201905092915050565b7f57616c6c657420616c7265616479206465706c6f796564000000000000000000600082015250565b600061075360178361070c565b915061075e8261071d565b602082019050919050565b6000602082019050818103600083015261078281610746565b9050919050565b610792816104bb565b82525050565b60006040820190506107ad6000830185610550565b6107ba6020830184610789565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6108666108618261081f565b61084b565b82525050565b60008160601b9050919050565b60006108848261086c565b9050919050565b600061089682610879565b9050919050565b6108ae6108a98261053e565b61088b565b82525050565b6000819050919050565b6108cf6108ca826104bb565b6108b4565b82525050565b60006108e18287610855565b6001820191506108f1828661089d565b60148201915061090182856108be565b60208201915061091182846108be565b6020820191508190509594505050505056fe608060405260016009556000600a553480156200001b57600080fd5b506200003c620000306200004a60201b60201c565b6200005260201b60201c565b60016002819055506200014f565b600033905090565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905562000088816200008b60201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61233f806200015f6000396000f3fe6080604052600436106100c65760003560e01c80638d0680431161007f578063c642747411610059578063c642747414610239578063e30c397814610276578063eb12d61e146102a1578063f2fde38b146102ca576100cd565b80638d068043146101b85780638da5cb5b146101e3578063affed0e01461020e576100cd565b80630e316ab7146100d2578063715018a6146100fb57806379716e431461011257806379ba50971461013b5780637d2b9cc0146101525780637df73e271461017b576100cd565b366100cd57005b600080fd5b3480156100de57600080fd5b506100f960048036038101906100f491906113a7565b6102f3565b005b34801561010757600080fd5b50610110610375565b005b34801561011e57600080fd5b506101396004803603810190610134919061140a565b610389565b005b34801561014757600080fd5b5061015061060a565b005b34801561015e57600080fd5b506101796004803603810190610174919061146d565b610697565b005b34801561018757600080fd5b506101a2600480360381019061019d91906113a7565b610730565b6040516101af91906114b5565b60405180910390f35b3480156101c457600080fd5b506101cd61074d565b6040516101da91906114df565b60405180910390f35b3480156101ef57600080fd5b506101f8610753565b6040516102059190611509565b60405180910390f35b34801561021a57600080fd5b5061022361077c565b60405161023091906114df565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b919061166a565b610782565b60405161026d91906116e8565b60405180910390f35b34801561028257600080fd5b5061028b610a26565b6040516102989190611509565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c391906113a7565b610a50565b005b3480156102d657600080fd5b506102f160048036038101906102ec91906113a7565b610b32565b005b6102fb610bdf565b61030f816003610c5d90919063ffffffff16565b61034e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034590611760565b60405180910390fd5b6103586003610c8d565b60095411156103725761036b6003610c8d565b6009819055505b50565b61037d610bdf565b6103876000610ca2565b565b61039d336003610cd390919063ffffffff16565b6103dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d3906117cc565b60405180910390fd5b6005600082815260200190815260200160002060030160009054906101000a900460ff1661043f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043690611838565b60405180910390fd5b6006600082815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156104dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d4906118a4565b60405180910390fd5b60016006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160076000838152602001908152602001600020600082825461056a91906118f3565b925050819055503373ffffffffffffffffffffffffffffffffffffffff16817fb612a8591c6aca7a0da017077f974599101a7f1820c9d5a4fe32ac8502c502e260405160405180910390a36009546007600083815260200190815260200160002054101580156105f857506008600082815260200190815260200160002060009054906101000a900460ff16155b156106075761060681610d03565b5b50565b600061061461102a565b90508073ffffffffffffffffffffffffffffffffffffffff16610635610a26565b73ffffffffffffffffffffffffffffffffffffffff161461068b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068290611999565b60405180910390fd5b61069481610ca2565b50565b61069f610bdf565b600081116106e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d990611a2b565b60405180910390fd5b8060095403610726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071d90611a97565b60405180910390fd5b8060098190555050565b6000610746826003610cd390919063ffffffff16565b9050919050565b60095481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a5481565b6000610798336003610cd390919063ffffffff16565b6107d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ce906117cc565b60405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083e90611b03565b60405180910390fd5b60008585853342600a600081548092919061086190611b23565b9190505560405160200161087a96959493929190611bea565b6040516020818303038152906040528051906020012090506005600082815260200190815260200160002060030160009054906101000a900460ff16156108f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ed90611c9e565b60405180910390fd5b60405180608001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001868152602001858152602001600115158152506005600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020190816109a99190611eca565b5060608201518160030160006101000a81548160ff0219169083151502179055509050503373ffffffffffffffffffffffffffffffffffffffff16817f6da19cef8486af172c085de95b9b6a5acde209a53afb3f7171364f1cbdc3f07e60405160405180910390a3610a1a81610389565b80925050509392505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a58610bdf565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90611b03565b60405180910390fd5b610adc82600361103290919063ffffffff16565b610b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1290611fe8565b60405180910390fd5b600060095403610b2e5760016009819055505b5050565b610b3a610bdf565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610b9a610753565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610be761102a565b73ffffffffffffffffffffffffffffffffffffffff16610c05610753565b73ffffffffffffffffffffffffffffffffffffffff1614610c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5290612054565b60405180910390fd5b565b6000610c85836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611062565b905092915050565b6000610c9b82600001611176565b9050919050565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610cd081611187565b50565b6000610cfb836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61124b565b905092915050565b610d0b61126e565b6000600560008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282018054610d9b90611ced565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc790611ced565b8015610e145780601f10610de957610100808354040283529160200191610e14565b820191906000526020600020905b815481529060010190602001808311610df757829003601f168201915b505050505081526020016003820160009054906101000a900460ff16151515158152505090506008600083815260200190815260200160002060009054906101000a900460ff1615610e9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e92906120c0565b60405180910390fd5b60095460076000848152602001908152602001600020541015610ef3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eea9061212c565b60405180910390fd5b60016008600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506000816000015173ffffffffffffffffffffffffffffffffffffffff1682602001518360400151604051610f539190612188565b60006040518083038185875af1925050503d8060008114610f90576040519150601f19603f3d011682016040523d82523d6000602084013e610f95565b606091505b5050905080610fd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd0906121eb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16837fd44017dbb47d3ccb9e2b2348a386b3faf150406ac63038abd5533ce95dbcc47160405160405180910390a350506110276112bb565b50565b600033905090565b600061105a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6112c5565b905092915050565b6000808360010160008481526020019081526020016000205490506000811461116a576000600182611094919061220b565b90506000600186600001805490506110ac919061220b565b905081811461111b5760008660000182815481106110cd576110cc61223f565b5b90600052602060002001549050808760000184815481106110f1576110f061223f565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061112f5761112e61226e565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611170565b60009150505b92915050565b600081600001805490509050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836001016000848152602001908152602001600020541415905092915050565b60028054036112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a9906122e9565b60405180910390fd5b60028081905550565b6001600281905550565b60006112d1838361124b565b61132a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061132f565b600090505b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061137482611349565b9050919050565b61138481611369565b811461138f57600080fd5b50565b6000813590506113a18161137b565b92915050565b6000602082840312156113bd576113bc61133f565b5b60006113cb84828501611392565b91505092915050565b6000819050919050565b6113e7816113d4565b81146113f257600080fd5b50565b600081359050611404816113de565b92915050565b6000602082840312156114205761141f61133f565b5b600061142e848285016113f5565b91505092915050565b6000819050919050565b61144a81611437565b811461145557600080fd5b50565b60008135905061146781611441565b92915050565b6000602082840312156114835761148261133f565b5b600061149184828501611458565b91505092915050565b60008115159050919050565b6114af8161149a565b82525050565b60006020820190506114ca60008301846114a6565b92915050565b6114d981611437565b82525050565b60006020820190506114f460008301846114d0565b92915050565b61150381611369565b82525050565b600060208201905061151e60008301846114fa565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115778261152e565b810181811067ffffffffffffffff821117156115965761159561153f565b5b80604052505050565b60006115a9611335565b90506115b5828261156e565b919050565b600067ffffffffffffffff8211156115d5576115d461153f565b5b6115de8261152e565b9050602081019050919050565b82818337600083830152505050565b600061160d611608846115ba565b61159f565b90508281526020810184848401111561162957611628611529565b5b6116348482856115eb565b509392505050565b600082601f83011261165157611650611524565b5b81356116618482602086016115fa565b91505092915050565b6000806000606084860312156116835761168261133f565b5b600061169186828701611392565b93505060206116a286828701611458565b925050604084013567ffffffffffffffff8111156116c3576116c2611344565b5b6116cf8682870161163c565b9150509250925092565b6116e2816113d4565b82525050565b60006020820190506116fd60008301846116d9565b92915050565b600082825260208201905092915050565b7f5369676e6572206e6f7420666f756e6400000000000000000000000000000000600082015250565b600061174a601083611703565b915061175582611714565b602082019050919050565b600060208201905081810360008301526117798161173d565b9050919050565b7f4e6f742061207369676e65720000000000000000000000000000000000000000600082015250565b60006117b6600c83611703565b91506117c182611780565b602082019050919050565b600060208201905081810360008301526117e5816117a9565b9050919050565b7f5472616e73616374696f6e20646f6573206e6f74206578697374000000000000600082015250565b6000611822601a83611703565b915061182d826117ec565b602082019050919050565b6000602082019050818103600083015261185181611815565b9050919050565b7f416c726561647920636f6e6669726d6564000000000000000000000000000000600082015250565b600061188e601183611703565b915061189982611858565b602082019050919050565b600060208201905081810360008301526118bd81611881565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118fe82611437565b915061190983611437565b9250828201905080821115611921576119206118c4565b5b92915050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b6000611983602983611703565b915061198e82611927565b604082019050919050565b600060208201905081810360008301526119b281611976565b9050919050565b7f4d7573742072657175697265206174206c65617374206f6e65207369676e617460008201527f7572650000000000000000000000000000000000000000000000000000000000602082015250565b6000611a15602383611703565b9150611a20826119b9565b604082019050919050565b60006020820190508181036000830152611a4481611a08565b9050919050565b7f4e6f206368616e67650000000000000000000000000000000000000000000000600082015250565b6000611a81600983611703565b9150611a8c82611a4b565b602082019050919050565b60006020820190508181036000830152611ab081611a74565b9050919050565b7f416464726573732063616e6e6f74206265207a65726f00000000000000000000600082015250565b6000611aed601683611703565b9150611af882611ab7565b602082019050919050565b60006020820190508181036000830152611b1c81611ae0565b9050919050565b6000611b2e82611437565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b6057611b5f6118c4565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ba5578082015181840152602081019050611b8a565b60008484015250505050565b6000611bbc82611b6b565b611bc68185611b76565b9350611bd6818560208601611b87565b611bdf8161152e565b840191505092915050565b600060c082019050611bff60008301896114fa565b611c0c60208301886114d0565b8181036040830152611c1e8187611bb1565b9050611c2d60608301866114fa565b611c3a60808301856114d0565b611c4760a08301846114d0565b979650505050505050565b7f5472616e73616374696f6e20616c726561647920657869737473000000000000600082015250565b6000611c88601a83611703565b9150611c9382611c52565b602082019050919050565b60006020820190508181036000830152611cb781611c7b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611d0557607f821691505b602082108103611d1857611d17611cbe565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302611d807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611d43565b611d8a8683611d43565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611dc7611dc2611dbd84611437565b611da2565b611437565b9050919050565b6000819050919050565b611de183611dac565b611df5611ded82611dce565b848454611d50565b825550505050565b600090565b611e0a611dfd565b611e15818484611dd8565b505050565b5b81811015611e3957611e2e600082611e02565b600181019050611e1b565b5050565b601f821115611e7e57611e4f81611d1e565b611e5884611d33565b81016020851015611e67578190505b611e7b611e7385611d33565b830182611e1a565b50505b505050565b600082821c905092915050565b6000611ea160001984600802611e83565b1980831691505092915050565b6000611eba8383611e90565b9150826002028217905092915050565b611ed382611b6b565b67ffffffffffffffff811115611eec57611eeb61153f565b5b611ef68254611ced565b611f01828285611e3d565b600060209050601f831160018114611f345760008415611f22578287015190505b611f2c8582611eae565b865550611f94565b601f198416611f4286611d1e565b60005b82811015611f6a57848901518255600182019150602085019450602081019050611f45565b86831015611f875784890151611f83601f891682611e90565b8355505b6001600288020188555050505b505050505050565b7f5369676e657220616c7265616479206164646564000000000000000000000000600082015250565b6000611fd2601483611703565b9150611fdd82611f9c565b602082019050919050565b6000602082019050818103600083015261200181611fc5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061203e602083611703565b915061204982612008565b602082019050919050565b6000602082019050818103600083015261206d81612031565b9050919050565b7f416c726561647920657865637574656400000000000000000000000000000000600082015250565b60006120aa601083611703565b91506120b582612074565b602082019050919050565b600060208201905081810360008301526120d98161209d565b9050919050565b7f4e6f7420656e6f75676820636f6e6669726d6174696f6e730000000000000000600082015250565b6000612116601883611703565b9150612121826120e0565b602082019050919050565b6000602082019050818103600083015261214581612109565b9050919050565b600081905092915050565b600061216282611b6b565b61216c818561214c565b935061217c818560208601611b87565b80840191505092915050565b60006121948284612157565b915081905092915050565b7f457865637574696f6e206661696c656400000000000000000000000000000000600082015250565b60006121d5601083611703565b91506121e08261219f565b602082019050919050565b60006020820190508181036000830152612204816121c8565b9050919050565b600061221682611437565b915061222183611437565b9250828203905081811115612239576122386118c4565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006122d3601f83611703565b91506122de8261229d565b602082019050919050565b60006020820190508181036000830152612302816122c6565b905091905056fea26469706673582212201a69369fb6099edb3f5652406b044807934264606daec1e04d8efc0bef012b1a64736f6c63430008160033a2646970667358221220e02c090993cad34eab75878b7431ed9205214ce5fc5dad75cace91eb092f7f1464736f6c63430008160033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80631d647605146100515780631ea6c2db14610081578063311090f2146100b1578063402b4708146100e1575b600080fd5b61006b600480360381019061006691906104f1565b610111565b604051610078919061055f565b60405180910390f35b61009b600480360381019061009691906104f1565b6102f4565b6040516100a8919061055f565b60405180910390f35b6100cb60048036038101906100c691906105df565b610327565b6040516100d891906106ea565b60405180910390f35b6100fb60048036038101906100f691906104f1565b610432565b604051610108919061055f565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff1660008084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101aa90610769565b60405180910390fd5b816040516101c0906104a4565b8190604051809103906000f59050801580156101e0573d6000803e3d6000fd5b5090508073ffffffffffffffffffffffffffffffffffffffff1663f2fde38b336040518263ffffffff1660e01b815260040161021c919061055f565b600060405180830381600087803b15801561023657600080fd5b505af115801561024a573d6000803e3d6000fd5b505050508060008084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f195bcaf5c86c75410014291983a0bc0b60a4ae2874ff863699229144c361a21682846040516102e7929190610798565b60405180910390a2919050565b60006020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60608282905067ffffffffffffffff811115610346576103456107c1565b5b6040519080825280602002602001820160405280156103745781602001602082028036833780820191505090505b50905060005b8383905081101561042b5760008085858481811061039b5761039a6107f0565b5b90506020020135815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168282815181106103e4576103e36107f0565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808060010191505061037a565b5092915050565b60008060405180602001610445906104a4565b6020820181038252601f19601f820116604052509050600060ff60f81b3085848051906020012060405160200161047f94939291906108d5565b6040516020818303038152906040528051906020012090508060001c92505050919050565b61249e8061092483390190565b600080fd5b600080fd5b6000819050919050565b6104ce816104bb565b81146104d957600080fd5b50565b6000813590506104eb816104c5565b92915050565b600060208284031215610507576105066104b1565b5b6000610515848285016104dc565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105498261051e565b9050919050565b6105598161053e565b82525050565b60006020820190506105746000830184610550565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f84011261059f5761059e61057a565b5b8235905067ffffffffffffffff8111156105bc576105bb61057f565b5b6020830191508360208202830111156105d8576105d7610584565b5b9250929050565b600080602083850312156105f6576105f56104b1565b5b600083013567ffffffffffffffff811115610614576106136104b6565b5b61062085828601610589565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6106618161053e565b82525050565b60006106738383610658565b60208301905092915050565b6000602082019050919050565b60006106978261062c565b6106a18185610637565b93506106ac83610648565b8060005b838110156106dd5781516106c48882610667565b97506106cf8361067f565b9250506001810190506106b0565b5085935050505092915050565b60006020820190508181036000830152610704818461068c565b905092915050565b600082825260208201905092915050565b7f57616c6c657420616c7265616479206465706c6f796564000000000000000000600082015250565b600061075360178361070c565b915061075e8261071d565b602082019050919050565b6000602082019050818103600083015261078281610746565b9050919050565b610792816104bb565b82525050565b60006040820190506107ad6000830185610550565b6107ba6020830184610789565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b6000819050919050565b6108666108618261081f565b61084b565b82525050565b60008160601b9050919050565b60006108848261086c565b9050919050565b600061089682610879565b9050919050565b6108ae6108a98261053e565b61088b565b82525050565b6000819050919050565b6108cf6108ca826104bb565b6108b4565b82525050565b60006108e18287610855565b6001820191506108f1828661089d565b60148201915061090182856108be565b60208201915061091182846108be565b6020820191508190509594505050505056fe608060405260016009556000600a553480156200001b57600080fd5b506200003c620000306200004a60201b60201c565b6200005260201b60201c565b60016002819055506200014f565b600033905090565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905562000088816200008b60201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61233f806200015f6000396000f3fe6080604052600436106100c65760003560e01c80638d0680431161007f578063c642747411610059578063c642747414610239578063e30c397814610276578063eb12d61e146102a1578063f2fde38b146102ca576100cd565b80638d068043146101b85780638da5cb5b146101e3578063affed0e01461020e576100cd565b80630e316ab7146100d2578063715018a6146100fb57806379716e431461011257806379ba50971461013b5780637d2b9cc0146101525780637df73e271461017b576100cd565b366100cd57005b600080fd5b3480156100de57600080fd5b506100f960048036038101906100f491906113a7565b6102f3565b005b34801561010757600080fd5b50610110610375565b005b34801561011e57600080fd5b506101396004803603810190610134919061140a565b610389565b005b34801561014757600080fd5b5061015061060a565b005b34801561015e57600080fd5b506101796004803603810190610174919061146d565b610697565b005b34801561018757600080fd5b506101a2600480360381019061019d91906113a7565b610730565b6040516101af91906114b5565b60405180910390f35b3480156101c457600080fd5b506101cd61074d565b6040516101da91906114df565b60405180910390f35b3480156101ef57600080fd5b506101f8610753565b6040516102059190611509565b60405180910390f35b34801561021a57600080fd5b5061022361077c565b60405161023091906114df565b60405180910390f35b34801561024557600080fd5b50610260600480360381019061025b919061166a565b610782565b60405161026d91906116e8565b60405180910390f35b34801561028257600080fd5b5061028b610a26565b6040516102989190611509565b60405180910390f35b3480156102ad57600080fd5b506102c860048036038101906102c391906113a7565b610a50565b005b3480156102d657600080fd5b506102f160048036038101906102ec91906113a7565b610b32565b005b6102fb610bdf565b61030f816003610c5d90919063ffffffff16565b61034e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034590611760565b60405180910390fd5b6103586003610c8d565b60095411156103725761036b6003610c8d565b6009819055505b50565b61037d610bdf565b6103876000610ca2565b565b61039d336003610cd390919063ffffffff16565b6103dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d3906117cc565b60405180910390fd5b6005600082815260200190815260200160002060030160009054906101000a900460ff1661043f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043690611838565b60405180910390fd5b6006600082815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156104dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104d4906118a4565b60405180910390fd5b60016006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600160076000838152602001908152602001600020600082825461056a91906118f3565b925050819055503373ffffffffffffffffffffffffffffffffffffffff16817fb612a8591c6aca7a0da017077f974599101a7f1820c9d5a4fe32ac8502c502e260405160405180910390a36009546007600083815260200190815260200160002054101580156105f857506008600082815260200190815260200160002060009054906101000a900460ff16155b156106075761060681610d03565b5b50565b600061061461102a565b90508073ffffffffffffffffffffffffffffffffffffffff16610635610a26565b73ffffffffffffffffffffffffffffffffffffffff161461068b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161068290611999565b60405180910390fd5b61069481610ca2565b50565b61069f610bdf565b600081116106e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d990611a2b565b60405180910390fd5b8060095403610726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071d90611a97565b60405180910390fd5b8060098190555050565b6000610746826003610cd390919063ffffffff16565b9050919050565b60095481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600a5481565b6000610798336003610cd390919063ffffffff16565b6107d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107ce906117cc565b60405180910390fd5b83600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610847576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083e90611b03565b60405180910390fd5b60008585853342600a600081548092919061086190611b23565b9190505560405160200161087a96959493929190611bea565b6040516020818303038152906040528051906020012090506005600082815260200190815260200160002060030160009054906101000a900460ff16156108f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ed90611c9e565b60405180910390fd5b60405180608001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001868152602001858152602001600115158152506005600083815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015560408201518160020190816109a99190611eca565b5060608201518160030160006101000a81548160ff0219169083151502179055509050503373ffffffffffffffffffffffffffffffffffffffff16817f6da19cef8486af172c085de95b9b6a5acde209a53afb3f7171364f1cbdc3f07e60405160405180910390a3610a1a81610389565b80925050509392505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610a58610bdf565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90611b03565b60405180910390fd5b610adc82600361103290919063ffffffff16565b610b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1290611fe8565b60405180910390fd5b600060095403610b2e5760016009819055505b5050565b610b3a610bdf565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610b9a610753565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610be761102a565b73ffffffffffffffffffffffffffffffffffffffff16610c05610753565b73ffffffffffffffffffffffffffffffffffffffff1614610c5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5290612054565b60405180910390fd5b565b6000610c85836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611062565b905092915050565b6000610c9b82600001611176565b9050919050565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610cd081611187565b50565b6000610cfb836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61124b565b905092915050565b610d0b61126e565b6000600560008381526020019081526020016000206040518060800160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282018054610d9b90611ced565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc790611ced565b8015610e145780601f10610de957610100808354040283529160200191610e14565b820191906000526020600020905b815481529060010190602001808311610df757829003601f168201915b505050505081526020016003820160009054906101000a900460ff16151515158152505090506008600083815260200190815260200160002060009054906101000a900460ff1615610e9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e92906120c0565b60405180910390fd5b60095460076000848152602001908152602001600020541015610ef3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eea9061212c565b60405180910390fd5b60016008600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506000816000015173ffffffffffffffffffffffffffffffffffffffff1682602001518360400151604051610f539190612188565b60006040518083038185875af1925050503d8060008114610f90576040519150601f19603f3d011682016040523d82523d6000602084013e610f95565b606091505b5050905080610fd9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd0906121eb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16837fd44017dbb47d3ccb9e2b2348a386b3faf150406ac63038abd5533ce95dbcc47160405160405180910390a350506110276112bb565b50565b600033905090565b600061105a836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6112c5565b905092915050565b6000808360010160008481526020019081526020016000205490506000811461116a576000600182611094919061220b565b90506000600186600001805490506110ac919061220b565b905081811461111b5760008660000182815481106110cd576110cc61223f565b5b90600052602060002001549050808760000184815481106110f1576110f061223f565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061112f5761112e61226e565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611170565b60009150505b92915050565b600081600001805490509050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080836001016000848152602001908152602001600020541415905092915050565b60028054036112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a9906122e9565b60405180910390fd5b60028081905550565b6001600281905550565b60006112d1838361124b565b61132a57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061132f565b600090505b92915050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061137482611349565b9050919050565b61138481611369565b811461138f57600080fd5b50565b6000813590506113a18161137b565b92915050565b6000602082840312156113bd576113bc61133f565b5b60006113cb84828501611392565b91505092915050565b6000819050919050565b6113e7816113d4565b81146113f257600080fd5b50565b600081359050611404816113de565b92915050565b6000602082840312156114205761141f61133f565b5b600061142e848285016113f5565b91505092915050565b6000819050919050565b61144a81611437565b811461145557600080fd5b50565b60008135905061146781611441565b92915050565b6000602082840312156114835761148261133f565b5b600061149184828501611458565b91505092915050565b60008115159050919050565b6114af8161149a565b82525050565b60006020820190506114ca60008301846114a6565b92915050565b6114d981611437565b82525050565b60006020820190506114f460008301846114d0565b92915050565b61150381611369565b82525050565b600060208201905061151e60008301846114fa565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6115778261152e565b810181811067ffffffffffffffff821117156115965761159561153f565b5b80604052505050565b60006115a9611335565b90506115b5828261156e565b919050565b600067ffffffffffffffff8211156115d5576115d461153f565b5b6115de8261152e565b9050602081019050919050565b82818337600083830152505050565b600061160d611608846115ba565b61159f565b90508281526020810184848401111561162957611628611529565b5b6116348482856115eb565b509392505050565b600082601f83011261165157611650611524565b5b81356116618482602086016115fa565b91505092915050565b6000806000606084860312156116835761168261133f565b5b600061169186828701611392565b93505060206116a286828701611458565b925050604084013567ffffffffffffffff8111156116c3576116c2611344565b5b6116cf8682870161163c565b9150509250925092565b6116e2816113d4565b82525050565b60006020820190506116fd60008301846116d9565b92915050565b600082825260208201905092915050565b7f5369676e6572206e6f7420666f756e6400000000000000000000000000000000600082015250565b600061174a601083611703565b915061175582611714565b602082019050919050565b600060208201905081810360008301526117798161173d565b9050919050565b7f4e6f742061207369676e65720000000000000000000000000000000000000000600082015250565b60006117b6600c83611703565b91506117c182611780565b602082019050919050565b600060208201905081810360008301526117e5816117a9565b9050919050565b7f5472616e73616374696f6e20646f6573206e6f74206578697374000000000000600082015250565b6000611822601a83611703565b915061182d826117ec565b602082019050919050565b6000602082019050818103600083015261185181611815565b9050919050565b7f416c726561647920636f6e6669726d6564000000000000000000000000000000600082015250565b600061188e601183611703565b915061189982611858565b602082019050919050565b600060208201905081810360008301526118bd81611881565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006118fe82611437565b915061190983611437565b9250828201905080821115611921576119206118c4565b5b92915050565b7f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060008201527f6e6577206f776e65720000000000000000000000000000000000000000000000602082015250565b6000611983602983611703565b915061198e82611927565b604082019050919050565b600060208201905081810360008301526119b281611976565b9050919050565b7f4d7573742072657175697265206174206c65617374206f6e65207369676e617460008201527f7572650000000000000000000000000000000000000000000000000000000000602082015250565b6000611a15602383611703565b9150611a20826119b9565b604082019050919050565b60006020820190508181036000830152611a4481611a08565b9050919050565b7f4e6f206368616e67650000000000000000000000000000000000000000000000600082015250565b6000611a81600983611703565b9150611a8c82611a4b565b602082019050919050565b60006020820190508181036000830152611ab081611a74565b9050919050565b7f416464726573732063616e6e6f74206265207a65726f00000000000000000000600082015250565b6000611aed601683611703565b9150611af882611ab7565b602082019050919050565b60006020820190508181036000830152611b1c81611ae0565b9050919050565b6000611b2e82611437565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611b6057611b5f6118c4565b5b600182019050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611ba5578082015181840152602081019050611b8a565b60008484015250505050565b6000611bbc82611b6b565b611bc68185611b76565b9350611bd6818560208601611b87565b611bdf8161152e565b840191505092915050565b600060c082019050611bff60008301896114fa565b611c0c60208301886114d0565b8181036040830152611c1e8187611bb1565b9050611c2d60608301866114fa565b611c3a60808301856114d0565b611c4760a08301846114d0565b979650505050505050565b7f5472616e73616374696f6e20616c726561647920657869737473000000000000600082015250565b6000611c88601a83611703565b9150611c9382611c52565b602082019050919050565b60006020820190508181036000830152611cb781611c7b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680611d0557607f821691505b602082108103611d1857611d17611cbe565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302611d807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611d43565b611d8a8683611d43565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611dc7611dc2611dbd84611437565b611da2565b611437565b9050919050565b6000819050919050565b611de183611dac565b611df5611ded82611dce565b848454611d50565b825550505050565b600090565b611e0a611dfd565b611e15818484611dd8565b505050565b5b81811015611e3957611e2e600082611e02565b600181019050611e1b565b5050565b601f821115611e7e57611e4f81611d1e565b611e5884611d33565b81016020851015611e67578190505b611e7b611e7385611d33565b830182611e1a565b50505b505050565b600082821c905092915050565b6000611ea160001984600802611e83565b1980831691505092915050565b6000611eba8383611e90565b9150826002028217905092915050565b611ed382611b6b565b67ffffffffffffffff811115611eec57611eeb61153f565b5b611ef68254611ced565b611f01828285611e3d565b600060209050601f831160018114611f345760008415611f22578287015190505b611f2c8582611eae565b865550611f94565b601f198416611f4286611d1e565b60005b82811015611f6a57848901518255600182019150602085019450602081019050611f45565b86831015611f875784890151611f83601f891682611e90565b8355505b6001600288020188555050505b505050505050565b7f5369676e657220616c7265616479206164646564000000000000000000000000600082015250565b6000611fd2601483611703565b9150611fdd82611f9c565b602082019050919050565b6000602082019050818103600083015261200181611fc5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061203e602083611703565b915061204982612008565b602082019050919050565b6000602082019050818103600083015261206d81612031565b9050919050565b7f416c726561647920657865637574656400000000000000000000000000000000600082015250565b60006120aa601083611703565b91506120b582612074565b602082019050919050565b600060208201905081810360008301526120d98161209d565b9050919050565b7f4e6f7420656e6f75676820636f6e6669726d6174696f6e730000000000000000600082015250565b6000612116601883611703565b9150612121826120e0565b602082019050919050565b6000602082019050818103600083015261214581612109565b9050919050565b600081905092915050565b600061216282611b6b565b61216c818561214c565b935061217c818560208601611b87565b80840191505092915050565b60006121948284612157565b915081905092915050565b7f457865637574696f6e206661696c656400000000000000000000000000000000600082015250565b60006121d5601083611703565b91506121e08261219f565b602082019050919050565b60006020820190508181036000830152612204816121c8565b9050919050565b600061221682611437565b915061222183611437565b9250828203905081811115612239576122386118c4565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006122d3601f83611703565b91506122de8261229d565b602082019050919050565b60006020820190508181036000830152612302816122c6565b905091905056fea26469706673582212201a69369fb6099edb3f5652406b044807934264606daec1e04d8efc0bef012b1a64736f6c63430008160033a2646970667358221220e02c090993cad34eab75878b7431ed9205214ce5fc5dad75cace91eb092f7f1464736f6c63430008160033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.