Transactions
Token Transfers
Tokens
Internal Transactions
Coin Balance History
Logs
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- MultiSigWallet
- Optimization enabled
- true
- Compiler version
- v0.5.0+commit.1d4f565a
- Optimization runs
- 200
- EVM Version
- byzantium
- Verified at
- 2026-04-22T15:30:24.519946Z
Constructor Arguments
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000009a2b676266ef3710e0271a93a1b4b9ef57a8b45f000000000000000000000000c05ed3743d87bee34b76792d28347478015d77540000000000000000000000007fb0180834a7ae6d494f65632f4da2fa22ec73c3
MultiSigWallet.sol
pragma solidity 0.5.0;
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution.
/// @author Stefan George - <stefan.george@consensys.net>
contract MultiSigWallet {
/*
* Events
*/
event Confirmation(address indexed sender, uint indexed transactionId);
event Revocation(address indexed sender, uint indexed transactionId);
event Submission(uint indexed transactionId);
event Execution(uint indexed transactionId);
event ExecutionFailure(uint indexed transactionId);
event Deposit(address indexed sender, uint value);
event OwnerAddition(address indexed owner);
event OwnerRemoval(address indexed owner);
event RequirementChange(uint required);
/*
* Constants
*/
uint constant public MAX_OWNER_COUNT = 50;
/*
* Storage
*/
mapping (uint => Transaction) public transactions;
mapping (uint => mapping (address => bool)) public confirmations;
mapping (address => bool) public isOwner;
address[] public owners;
uint public required;
uint public transactionCount;
struct Transaction {
address destination;
uint value;
bytes data;
bool executed;
}
/*
* Modifiers
*/
modifier onlyWallet() {
require(msg.sender == address(this));
_;
}
modifier ownerDoesNotExist(address owner) {
require(!isOwner[owner]);
_;
}
modifier ownerExists(address owner) {
require(isOwner[owner]);
_;
}
modifier transactionExists(uint transactionId) {
require(transactions[transactionId].destination != address(0));
_;
}
modifier confirmed(uint transactionId, address owner) {
require(confirmations[transactionId][owner]);
_;
}
modifier notConfirmed(uint transactionId, address owner) {
require(!confirmations[transactionId][owner]);
_;
}
modifier notExecuted(uint transactionId) {
require(!transactions[transactionId].executed);
_;
}
modifier notNull(address _address) {
require(_address != address(0));
_;
}
modifier validRequirement(uint ownerCount, uint _required) {
require(ownerCount <= MAX_OWNER_COUNT
&& _required <= ownerCount
&& _required != 0
&& ownerCount != 0);
_;
}
/// @dev Fallback function allows to deposit ether.
function()
external
payable
{
if (msg.value > 0)
emit Deposit(msg.sender, msg.value);
}
/*
* Public functions
*/
/// @dev Contract constructor sets initial owners and required number of confirmations.
/// @param _owners List of initial owners.
/// @param _required Number of required confirmations.
constructor(address[] memory _owners, uint _required)
public
validRequirement(_owners.length, _required)
{
for (uint i=0; i<_owners.length; i++) {
require(!isOwner[_owners[i]] && _owners[i] != address(0));
isOwner[_owners[i]] = true;
}
owners = _owners;
required = _required;
}
/// @dev Allows to add a new owner. Transaction has to be sent by wallet.
/// @param owner Address of new owner.
function addOwner(address owner)
public
onlyWallet
ownerDoesNotExist(owner)
notNull(owner)
validRequirement(owners.length + 1, required)
{
isOwner[owner] = true;
owners.push(owner);
emit OwnerAddition(owner);
}
/// @dev Allows to remove an owner. Transaction has to be sent by wallet.
/// @param owner Address of owner.
function removeOwner(address owner)
public
onlyWallet
ownerExists(owner)
{
isOwner[owner] = false;
for (uint i=0; i<owners.length - 1; i++)
if (owners[i] == owner) {
owners[i] = owners[owners.length - 1];
break;
}
owners.length -= 1;
if (required > owners.length)
changeRequirement(owners.length);
emit OwnerRemoval(owner);
}
/// @dev Allows to replace an owner with a new owner. Transaction has to be sent by wallet.
/// @param owner Address of owner to be replaced.
/// @param newOwner Address of new owner.
function replaceOwner(address owner, address newOwner)
public
onlyWallet
ownerExists(owner)
ownerDoesNotExist(newOwner)
{
for (uint i=0; i<owners.length; i++)
if (owners[i] == owner) {
owners[i] = newOwner;
break;
}
isOwner[owner] = false;
isOwner[newOwner] = true;
emit OwnerRemoval(owner);
emit OwnerAddition(newOwner);
}
/// @dev Allows to change the number of required confirmations. Transaction has to be sent by wallet.
/// @param _required Number of required confirmations.
function changeRequirement(uint _required)
public
onlyWallet
validRequirement(owners.length, _required)
{
required = _required;
emit RequirementChange(_required);
}
/// @dev Allows an owner to submit and confirm a transaction.
/// @param destination Transaction target address.
/// @param value Transaction ether value.
/// @param data Transaction data payload.
/// @return Returns transaction ID.
function submitTransaction(address destination, uint value, bytes memory data)
public
returns (uint transactionId)
{
transactionId = addTransaction(destination, value, data);
confirmTransaction(transactionId);
}
/// @dev Allows an owner to confirm a transaction.
/// @param transactionId Transaction ID.
function confirmTransaction(uint transactionId)
public
ownerExists(msg.sender)
transactionExists(transactionId)
notConfirmed(transactionId, msg.sender)
{
confirmations[transactionId][msg.sender] = true;
emit Confirmation(msg.sender, transactionId);
executeTransaction(transactionId);
}
/// @dev Allows an owner to revoke a confirmation for a transaction.
/// @param transactionId Transaction ID.
function revokeConfirmation(uint transactionId)
public
ownerExists(msg.sender)
confirmed(transactionId, msg.sender)
notExecuted(transactionId)
{
confirmations[transactionId][msg.sender] = false;
emit Revocation(msg.sender, transactionId);
}
/// @dev Allows anyone to execute a confirmed transaction.
/// @param transactionId Transaction ID.
function executeTransaction(uint transactionId)
public
ownerExists(msg.sender)
confirmed(transactionId, msg.sender)
notExecuted(transactionId)
{
if (isConfirmed(transactionId)) {
Transaction storage txn = transactions[transactionId];
txn.executed = true;
if (external_call(txn.destination, txn.value, txn.data.length, txn.data))
emit Execution(transactionId);
else {
emit ExecutionFailure(transactionId);
txn.executed = false;
}
}
}
// call has been separated into its own function in order to take advantage
// of the Solidity's code generator to produce a loop that copies tx.data into memory.
function external_call(address destination, uint value, uint dataLength, bytes memory data) private returns (bool) {
bool result;
assembly {
let x := mload(0x40) // "Allocate" memory for output (0x40 is where "free memory" pointer is stored by convention)
let d := add(data, 32) // First 32 bytes are the padded length of data, so exclude that
result := call(
sub(gas, 34710), // 34710 is the value that solidity is currently emitting
// It includes callGas (700) + callVeryLow (3, to pay for SUB) + callValueTransferGas (9000) +
// callNewAccountGas (25000, in case the destination address does not exist and needs creating)
destination,
value,
d,
dataLength, // Size of the input (in bytes) - this is what fixes the padding problem
x,
0 // Output is ignored, therefore the output size is zero
)
}
return result;
}
/// @dev Returns the confirmation status of a transaction.
/// @param transactionId Transaction ID.
/// @return Confirmation status.
function isConfirmed(uint transactionId)
public
view
returns (bool)
{
uint count = 0;
for (uint i=0; i<owners.length; i++) {
if (confirmations[transactionId][owners[i]])
count += 1;
if (count == required)
return true;
}
}
/*
* Internal functions
*/
/// @dev Adds a new transaction to the transaction mapping, if transaction does not exist yet.
/// @param destination Transaction target address.
/// @param value Transaction ether value.
/// @param data Transaction data payload.
/// @return Returns transaction ID.
function addTransaction(address destination, uint value, bytes memory data)
internal
notNull(destination)
returns (uint transactionId)
{
transactionId = transactionCount;
transactions[transactionId] = Transaction({
destination: destination,
value: value,
data: data,
executed: false
});
transactionCount += 1;
emit Submission(transactionId);
}
/*
* Web3 call functions
*/
/// @dev Returns number of confirmations of a transaction.
/// @param transactionId Transaction ID.
/// @return Number of confirmations.
function getConfirmationCount(uint transactionId)
public
view
returns (uint count)
{
for (uint i=0; i<owners.length; i++)
if (confirmations[transactionId][owners[i]])
count += 1;
}
/// @dev Returns total number of transactions after filers are applied.
/// @param pending Include pending transactions.
/// @param executed Include executed transactions.
/// @return Total number of transactions after filters are applied.
function getTransactionCount(bool pending, bool executed)
public
view
returns (uint count)
{
for (uint i=0; i<transactionCount; i++)
if ( pending && !transactions[i].executed
|| executed && transactions[i].executed)
count += 1;
}
/// @dev Returns list of owners.
/// @return List of owner addresses.
function getOwners()
public
view
returns (address[] memory)
{
return owners;
}
/// @dev Returns array with owner addresses, which confirmed transaction.
/// @param transactionId Transaction ID.
/// @return Returns array of owner addresses.
function getConfirmations(uint transactionId)
public
view
returns (address[] memory _confirmations)
{
address[] memory confirmationsTemp = new address[](owners.length);
uint count = 0;
uint i;
for (i=0; i<owners.length; i++)
if (confirmations[transactionId][owners[i]]) {
confirmationsTemp[count] = owners[i];
count += 1;
}
_confirmations = new address[](count);
for (i=0; i<count; i++)
_confirmations[i] = confirmationsTemp[i];
}
/// @dev Returns list of transaction IDs in defined range.
/// @param from Index start position of transaction array.
/// @param to Index end position of transaction array.
/// @param pending Include pending transactions.
/// @param executed Include executed transactions.
/// @return Returns array of transaction IDs.
function getTransactionIds(uint from, uint to, bool pending, bool executed)
public
view
returns (uint[] memory _transactionIds)
{
uint[] memory transactionIdsTemp = new uint[](transactionCount);
uint count = 0;
uint i;
for (i=0; i<transactionCount; i++)
if ( pending && !transactions[i].executed
|| executed && transactions[i].executed)
{
transactionIdsTemp[count] = i;
count += 1;
}
_transactionIds = new uint[](to - from);
for (i=from; i<to; i++)
_transactionIds[i - from] = transactionIdsTemp[i];
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"byzantium","compilationTarget":{"MultiSigWallet.sol":"MultiSigWallet"}}
Contract ABI
[{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":""}],"name":"owners","inputs":[{"type":"uint256","name":""}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"removeOwner","inputs":[{"type":"address","name":"owner"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"revokeConfirmation","inputs":[{"type":"uint256","name":"transactionId"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"isOwner","inputs":[{"type":"address","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"confirmations","inputs":[{"type":"uint256","name":""},{"type":"address","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"count"}],"name":"getTransactionCount","inputs":[{"type":"bool","name":"pending"},{"type":"bool","name":"executed"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"addOwner","inputs":[{"type":"address","name":"owner"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""}],"name":"isConfirmed","inputs":[{"type":"uint256","name":"transactionId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"count"}],"name":"getConfirmationCount","inputs":[{"type":"uint256","name":"transactionId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"destination"},{"type":"uint256","name":"value"},{"type":"bytes","name":"data"},{"type":"bool","name":"executed"}],"name":"transactions","inputs":[{"type":"uint256","name":""}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":""}],"name":"getOwners","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256[]","name":"_transactionIds"}],"name":"getTransactionIds","inputs":[{"type":"uint256","name":"from"},{"type":"uint256","name":"to"},{"type":"bool","name":"pending"},{"type":"bool","name":"executed"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address[]","name":"_confirmations"}],"name":"getConfirmations","inputs":[{"type":"uint256","name":"transactionId"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"transactionCount","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"changeRequirement","inputs":[{"type":"uint256","name":"_required"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"confirmTransaction","inputs":[{"type":"uint256","name":"transactionId"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"transactionId"}],"name":"submitTransaction","inputs":[{"type":"address","name":"destination"},{"type":"uint256","name":"value"},{"type":"bytes","name":"data"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"MAX_OWNER_COUNT","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"required","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"replaceOwner","inputs":[{"type":"address","name":"owner"},{"type":"address","name":"newOwner"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"executeTransaction","inputs":[{"type":"uint256","name":"transactionId"}],"constant":false},{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[{"type":"address[]","name":"_owners"},{"type":"uint256","name":"_required"}]},{"type":"fallback","stateMutability":"payable","payable":true},{"type":"event","name":"Confirmation","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"uint256","name":"transactionId","indexed":true}],"anonymous":false},{"type":"event","name":"Revocation","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"uint256","name":"transactionId","indexed":true}],"anonymous":false},{"type":"event","name":"Submission","inputs":[{"type":"uint256","name":"transactionId","indexed":true}],"anonymous":false},{"type":"event","name":"Execution","inputs":[{"type":"uint256","name":"transactionId","indexed":true}],"anonymous":false},{"type":"event","name":"ExecutionFailure","inputs":[{"type":"uint256","name":"transactionId","indexed":true}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"sender","indexed":true},{"type":"uint256","name":"value","indexed":false}],"anonymous":false},{"type":"event","name":"OwnerAddition","inputs":[{"type":"address","name":"owner","indexed":true}],"anonymous":false},{"type":"event","name":"OwnerRemoval","inputs":[{"type":"address","name":"owner","indexed":true}],"anonymous":false},{"type":"event","name":"RequirementChange","inputs":[{"type":"uint256","name":"required","indexed":false}],"anonymous":false}]
Contract Creation Code
0x60806040523480156200001157600080fd5b506040516200189538038062001895833981018060405260408110156200003757600080fd5b8101908080516401000000008111156200005057600080fd5b820160208101848111156200006457600080fd5b81518560208202830111640100000000821117156200008257600080fd5b5050602090910151815191935091508160328211801590620000a45750818111155b8015620000b057508015155b8015620000bc57508115155b1515620000c857600080fd5b60005b84518110156200019b57600260008683815181101515620000e857fe5b6020908102909101810151600160a060020a031682528101919091526040016000205460ff161580156200013f575084516000908690839081106200012957fe5b90602001906020020151600160a060020a031614155b15156200014b57600080fd5b60016002600087848151811015156200016057fe5b602090810291909101810151600160a060020a03168252810191909152604001600020805460ff1916911515919091179055600101620000cb565b508351620001b1906003906020870190620001be565b5050506004555062000252565b82805482825590600052602060002090810192821562000216579160200282015b82811115620002165782518254600160a060020a031916600160a060020a03909116178255602090920191600190910190620001df565b506200022492915062000228565b5090565b6200024f91905b8082111562000224578054600160a060020a03191681556001016200022f565b90565b61163380620002626000396000f3fe60806040526004361061011c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663025e7c27811461015e578063173825d9146101a457806320ea8d86146101d75780632f54bf6e146102015780633411c81c1461024857806354741525146102815780637065cb48146102c7578063784547a7146102fa5780638b51d13f146103245780639ace38c21461034e578063a0e67e2b1461041b578063a8abe69a14610480578063b5dc40c3146104c0578063b77bf600146104ea578063ba51a6df146104ff578063c01a8c8414610529578063c642747414610553578063d74f8edd1461061b578063dc8452cd14610630578063e20056e614610645578063ee22610b14610680575b600034111561015c5760408051348152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25b005b34801561016a57600080fd5b506101886004803603602081101561018157600080fd5b50356106aa565b60408051600160a060020a039092168252519081900360200190f35b3480156101b057600080fd5b5061015c600480360360208110156101c757600080fd5b5035600160a060020a03166106d2565b3480156101e357600080fd5b5061015c600480360360208110156101fa57600080fd5b5035610842565b34801561020d57600080fd5b506102346004803603602081101561022457600080fd5b5035600160a060020a03166108fc565b604080519115158252519081900360200190f35b34801561025457600080fd5b506102346004803603604081101561026b57600080fd5b5080359060200135600160a060020a0316610911565b34801561028d57600080fd5b506102b5600480360360408110156102a457600080fd5b508035151590602001351515610931565b60408051918252519081900360200190f35b3480156102d357600080fd5b5061015c600480360360208110156102ea57600080fd5b5035600160a060020a031661099d565b34801561030657600080fd5b506102346004803603602081101561031d57600080fd5b5035610ac2565b34801561033057600080fd5b506102b56004803603602081101561034757600080fd5b5035610b49565b34801561035a57600080fd5b506103786004803603602081101561037157600080fd5b5035610bb8565b6040518085600160a060020a0316600160a060020a031681526020018481526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b838110156103dd5781810151838201526020016103c5565b50505050905090810190601f16801561040a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b34801561042757600080fd5b50610430610c76565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561046c578181015183820152602001610454565b505050509050019250505060405180910390f35b34801561048c57600080fd5b50610430600480360360808110156104a357600080fd5b508035906020810135906040810135151590606001351515610cd9565b3480156104cc57600080fd5b50610430600480360360208110156104e357600080fd5b5035610e0a565b3480156104f657600080fd5b506102b5610f7b565b34801561050b57600080fd5b5061015c6004803603602081101561052257600080fd5b5035610f81565b34801561053557600080fd5b5061015c6004803603602081101561054c57600080fd5b5035611000565b34801561055f57600080fd5b506102b56004803603606081101561057657600080fd5b600160a060020a03823516916020810135918101906060810160408201356401000000008111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111640100000000831117156105da57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110cb945050505050565b34801561062757600080fd5b506102b56110ea565b34801561063c57600080fd5b506102b56110ef565b34801561065157600080fd5b5061015c6004803603604081101561066857600080fd5b50600160a060020a03813581169160200135166110f5565b34801561068c57600080fd5b5061015c600480360360208110156106a357600080fd5b5035611278565b60038054829081106106b857fe5b600091825260209091200154600160a060020a0316905081565b3330146106de57600080fd5b600160a060020a038116600090815260026020526040902054819060ff16151561070757600080fd5b600160a060020a0382166000908152600260205260408120805460ff191690555b600354600019018110156107dd5782600160a060020a031660038281548110151561074f57fe5b600091825260209091200154600160a060020a031614156107d55760038054600019810190811061077c57fe5b60009182526020909120015460038054600160a060020a0390921691839081106107a257fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055506107dd565b600101610728565b506003805460001901906107f19082611546565b50600354600454111561080a5760035461080a90610f81565b604051600160a060020a038316907f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9090600090a25050565b3360008181526002602052604090205460ff16151561086057600080fd5b60008281526001602090815260408083203380855292529091205483919060ff16151561088c57600080fd5b600084815260208190526040902060030154849060ff16156108ad57600080fd5b6000858152600160209081526040808320338085529252808320805460ff191690555187927ff6a317157440607f36269043eb55f1287a5a19ba2216afeab88cd46cbcfb88e991a35050505050565b60026020526000908152604090205460ff1681565b600160209081526000928352604080842090915290825290205460ff1681565b6000805b6005548110156109965783801561095e575060008181526020819052604090206003015460ff16155b806109825750828015610982575060008181526020819052604090206003015460ff165b1561098e576001820191505b600101610935565b5092915050565b3330146109a957600080fd5b600160a060020a038116600090815260026020526040902054819060ff16156109d157600080fd5b81600160a060020a03811615156109e757600080fd5b60038054905060010160045460328211158015610a045750818111155b8015610a0f57508015155b8015610a1a57508115155b1515610a2557600080fd5b600160a060020a038516600081815260026020526040808220805460ff1916600190811790915560038054918201815583527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff191684179055517ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d9190a25050505050565b600080805b600354811015610b415760008481526001602052604081206003805491929184908110610af057fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610b24576001820191505b600454821415610b3957600192505050610b44565b600101610ac7565b50505b919050565b6000805b600354811015610bb25760008381526001602052604081206003805491929184908110610b7657fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610baa576001820191505b600101610b4d565b50919050565b6000602081815291815260409081902080546001808301546002808501805487516101009582161595909502600019011691909104601f8101889004880284018801909652858352600160a060020a0390931695909491929190830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050506003909301549192505060ff1684565b60606003805480602002602001604051908101604052809291908181526020018280548015610cce57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610cb0575b505050505090505b90565b606080600554604051908082528060200260200182016040528015610d08578160200160208202803883390190505b5090506000805b600554811015610d8a57858015610d38575060008181526020819052604090206003015460ff16155b80610d5c5750848015610d5c575060008181526020819052604090206003015460ff165b15610d8257808383815181101515610d7057fe5b60209081029091010152600191909101905b600101610d0f565b878703604051908082528060200260200182016040528015610db6578160200160208202803883390190505b5093508790505b86811015610dff578281815181101515610dd357fe5b9060200190602002015184898303815181101515610ded57fe5b60209081029091010152600101610dbd565b505050949350505050565b606080600380549050604051908082528060200260200182016040528015610e3c578160200160208202803883390190505b5090506000805b600354811015610ef45760008581526001602052604081206003805491929184908110610e6c57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610eec576003805482908110610ea757fe5b6000918252602090912001548351600160a060020a0390911690849084908110610ecd57fe5b600160a060020a03909216602092830290910190910152600191909101905b600101610e43565b81604051908082528060200260200182016040528015610f1e578160200160208202803883390190505b509350600090505b81811015610f73578281815181101515610f3c57fe5b906020019060200201518482815181101515610f5457fe5b600160a060020a03909216602092830290910190910152600101610f26565b505050919050565b60055481565b333014610f8d57600080fd5b6003548160328211801590610fa25750818111155b8015610fad57508015155b8015610fb857508115155b1515610fc357600080fd5b60048390556040805184815290517fa3f1ee9126a074d9326c682f561767f710e927faa811f7a99829d49dc421797a9181900360200190a1505050565b3360008181526002602052604090205460ff16151561101e57600080fd5b6000828152602081905260409020548290600160a060020a0316151561104357600080fd5b60008381526001602090815260408083203380855292529091205484919060ff161561106e57600080fd5b6000858152600160208181526040808420338086529252808420805460ff1916909317909255905187927f4a504a94899432a9846e1aa406dceb1bcfd538bb839071d49d1e5e23f5be30ef91a36110c485611278565b5050505050565b60006110d8848484611433565b90506110e381611000565b9392505050565b603281565b60045481565b33301461110157600080fd5b600160a060020a038216600090815260026020526040902054829060ff16151561112a57600080fd5b600160a060020a038216600090815260026020526040902054829060ff161561115257600080fd5b60005b6003548110156111de5784600160a060020a031660038281548110151561117857fe5b600091825260209091200154600160a060020a031614156111d657836003828154811015156111a357fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055506111de565b600101611155565b50600160a060020a03808516600081815260026020526040808220805460ff1990811690915593871682528082208054909416600117909355915190917f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9091a2604051600160a060020a038416907ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d90600090a250505050565b3360008181526002602052604090205460ff16151561129657600080fd5b60008281526001602090815260408083203380855292529091205483919060ff1615156112c257600080fd5b600084815260208190526040902060030154849060ff16156112e357600080fd5b6112ec85610ac2565b156110c4576000858152602081815260409182902060038101805460ff19166001908117909155815481830154600280850180548851601f6000199783161561010002979097019091169290920494850187900487028201870190975283815293956113be95600160a060020a039093169491939283908301828280156113b45780601f10611389576101008083540402835291602001916113b4565b820191906000526020600020905b81548152906001019060200180831161139757829003601f168201915b5050505050611523565b156113f35760405186907f33e13ecb54c3076d8e8bb8c2881800a4d972b792045ffae98fdf46df365fed7590600090a261142b565b60405186907f526441bb6c1aba3c9a4a6ca1d6545da9c2333c8c48343ef398eb858d72b7923690600090a260038101805460ff191690555b505050505050565b600083600160a060020a038116151561144b57600080fd5b60055460408051608081018252600160a060020a0388811682526020808301898152838501898152600060608601819052878152808452959095208451815473ffffffffffffffffffffffffffffffffffffffff1916941693909317835551600183015592518051949650919390926114cb92600285019291019061156f565b50606091909101516003909101805460ff191691151591909117905560058054600101905560405182907fc0ba8fe4b176c1714197d43b9cc6bcf797a4a7461c5fe8d0ef6e184ae7601e5190600090a2509392505050565b6000806040516020840160008287838a8c6187965a03f198975050505050505050565b81548183558181111561156a5760008381526020902061156a9181019083016115ed565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115b057805160ff19168380011785556115dd565b828001600101855582156115dd579182015b828111156115dd5782518255916020019190600101906115c2565b506115e99291506115ed565b5090565b610cd691905b808211156115e957600081556001016115f356fea165627a7a7230582095388a41314e77f9a273023344e683038996423751cc29d218f72d45101a6d4100290000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000030000000000000000000000009a2b676266ef3710e0271a93a1b4b9ef57a8b45f000000000000000000000000c05ed3743d87bee34b76792d28347478015d77540000000000000000000000007fb0180834a7ae6d494f65632f4da2fa22ec73c3
Deployed ByteCode
0x60806040526004361061011c5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663025e7c27811461015e578063173825d9146101a457806320ea8d86146101d75780632f54bf6e146102015780633411c81c1461024857806354741525146102815780637065cb48146102c7578063784547a7146102fa5780638b51d13f146103245780639ace38c21461034e578063a0e67e2b1461041b578063a8abe69a14610480578063b5dc40c3146104c0578063b77bf600146104ea578063ba51a6df146104ff578063c01a8c8414610529578063c642747414610553578063d74f8edd1461061b578063dc8452cd14610630578063e20056e614610645578063ee22610b14610680575b600034111561015c5760408051348152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25b005b34801561016a57600080fd5b506101886004803603602081101561018157600080fd5b50356106aa565b60408051600160a060020a039092168252519081900360200190f35b3480156101b057600080fd5b5061015c600480360360208110156101c757600080fd5b5035600160a060020a03166106d2565b3480156101e357600080fd5b5061015c600480360360208110156101fa57600080fd5b5035610842565b34801561020d57600080fd5b506102346004803603602081101561022457600080fd5b5035600160a060020a03166108fc565b604080519115158252519081900360200190f35b34801561025457600080fd5b506102346004803603604081101561026b57600080fd5b5080359060200135600160a060020a0316610911565b34801561028d57600080fd5b506102b5600480360360408110156102a457600080fd5b508035151590602001351515610931565b60408051918252519081900360200190f35b3480156102d357600080fd5b5061015c600480360360208110156102ea57600080fd5b5035600160a060020a031661099d565b34801561030657600080fd5b506102346004803603602081101561031d57600080fd5b5035610ac2565b34801561033057600080fd5b506102b56004803603602081101561034757600080fd5b5035610b49565b34801561035a57600080fd5b506103786004803603602081101561037157600080fd5b5035610bb8565b6040518085600160a060020a0316600160a060020a031681526020018481526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b838110156103dd5781810151838201526020016103c5565b50505050905090810190601f16801561040a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b34801561042757600080fd5b50610430610c76565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561046c578181015183820152602001610454565b505050509050019250505060405180910390f35b34801561048c57600080fd5b50610430600480360360808110156104a357600080fd5b508035906020810135906040810135151590606001351515610cd9565b3480156104cc57600080fd5b50610430600480360360208110156104e357600080fd5b5035610e0a565b3480156104f657600080fd5b506102b5610f7b565b34801561050b57600080fd5b5061015c6004803603602081101561052257600080fd5b5035610f81565b34801561053557600080fd5b5061015c6004803603602081101561054c57600080fd5b5035611000565b34801561055f57600080fd5b506102b56004803603606081101561057657600080fd5b600160a060020a03823516916020810135918101906060810160408201356401000000008111156105a657600080fd5b8201836020820111156105b857600080fd5b803590602001918460018302840111640100000000831117156105da57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506110cb945050505050565b34801561062757600080fd5b506102b56110ea565b34801561063c57600080fd5b506102b56110ef565b34801561065157600080fd5b5061015c6004803603604081101561066857600080fd5b50600160a060020a03813581169160200135166110f5565b34801561068c57600080fd5b5061015c600480360360208110156106a357600080fd5b5035611278565b60038054829081106106b857fe5b600091825260209091200154600160a060020a0316905081565b3330146106de57600080fd5b600160a060020a038116600090815260026020526040902054819060ff16151561070757600080fd5b600160a060020a0382166000908152600260205260408120805460ff191690555b600354600019018110156107dd5782600160a060020a031660038281548110151561074f57fe5b600091825260209091200154600160a060020a031614156107d55760038054600019810190811061077c57fe5b60009182526020909120015460038054600160a060020a0390921691839081106107a257fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055506107dd565b600101610728565b506003805460001901906107f19082611546565b50600354600454111561080a5760035461080a90610f81565b604051600160a060020a038316907f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9090600090a25050565b3360008181526002602052604090205460ff16151561086057600080fd5b60008281526001602090815260408083203380855292529091205483919060ff16151561088c57600080fd5b600084815260208190526040902060030154849060ff16156108ad57600080fd5b6000858152600160209081526040808320338085529252808320805460ff191690555187927ff6a317157440607f36269043eb55f1287a5a19ba2216afeab88cd46cbcfb88e991a35050505050565b60026020526000908152604090205460ff1681565b600160209081526000928352604080842090915290825290205460ff1681565b6000805b6005548110156109965783801561095e575060008181526020819052604090206003015460ff16155b806109825750828015610982575060008181526020819052604090206003015460ff165b1561098e576001820191505b600101610935565b5092915050565b3330146109a957600080fd5b600160a060020a038116600090815260026020526040902054819060ff16156109d157600080fd5b81600160a060020a03811615156109e757600080fd5b60038054905060010160045460328211158015610a045750818111155b8015610a0f57508015155b8015610a1a57508115155b1515610a2557600080fd5b600160a060020a038516600081815260026020526040808220805460ff1916600190811790915560038054918201815583527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01805473ffffffffffffffffffffffffffffffffffffffff191684179055517ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d9190a25050505050565b600080805b600354811015610b415760008481526001602052604081206003805491929184908110610af057fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610b24576001820191505b600454821415610b3957600192505050610b44565b600101610ac7565b50505b919050565b6000805b600354811015610bb25760008381526001602052604081206003805491929184908110610b7657fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610baa576001820191505b600101610b4d565b50919050565b6000602081815291815260409081902080546001808301546002808501805487516101009582161595909502600019011691909104601f8101889004880284018801909652858352600160a060020a0390931695909491929190830182828015610c635780601f10610c3857610100808354040283529160200191610c63565b820191906000526020600020905b815481529060010190602001808311610c4657829003601f168201915b5050506003909301549192505060ff1684565b60606003805480602002602001604051908101604052809291908181526020018280548015610cce57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610cb0575b505050505090505b90565b606080600554604051908082528060200260200182016040528015610d08578160200160208202803883390190505b5090506000805b600554811015610d8a57858015610d38575060008181526020819052604090206003015460ff16155b80610d5c5750848015610d5c575060008181526020819052604090206003015460ff165b15610d8257808383815181101515610d7057fe5b60209081029091010152600191909101905b600101610d0f565b878703604051908082528060200260200182016040528015610db6578160200160208202803883390190505b5093508790505b86811015610dff578281815181101515610dd357fe5b9060200190602002015184898303815181101515610ded57fe5b60209081029091010152600101610dbd565b505050949350505050565b606080600380549050604051908082528060200260200182016040528015610e3c578160200160208202803883390190505b5090506000805b600354811015610ef45760008581526001602052604081206003805491929184908110610e6c57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff1615610eec576003805482908110610ea757fe5b6000918252602090912001548351600160a060020a0390911690849084908110610ecd57fe5b600160a060020a03909216602092830290910190910152600191909101905b600101610e43565b81604051908082528060200260200182016040528015610f1e578160200160208202803883390190505b509350600090505b81811015610f73578281815181101515610f3c57fe5b906020019060200201518482815181101515610f5457fe5b600160a060020a03909216602092830290910190910152600101610f26565b505050919050565b60055481565b333014610f8d57600080fd5b6003548160328211801590610fa25750818111155b8015610fad57508015155b8015610fb857508115155b1515610fc357600080fd5b60048390556040805184815290517fa3f1ee9126a074d9326c682f561767f710e927faa811f7a99829d49dc421797a9181900360200190a1505050565b3360008181526002602052604090205460ff16151561101e57600080fd5b6000828152602081905260409020548290600160a060020a0316151561104357600080fd5b60008381526001602090815260408083203380855292529091205484919060ff161561106e57600080fd5b6000858152600160208181526040808420338086529252808420805460ff1916909317909255905187927f4a504a94899432a9846e1aa406dceb1bcfd538bb839071d49d1e5e23f5be30ef91a36110c485611278565b5050505050565b60006110d8848484611433565b90506110e381611000565b9392505050565b603281565b60045481565b33301461110157600080fd5b600160a060020a038216600090815260026020526040902054829060ff16151561112a57600080fd5b600160a060020a038216600090815260026020526040902054829060ff161561115257600080fd5b60005b6003548110156111de5784600160a060020a031660038281548110151561117857fe5b600091825260209091200154600160a060020a031614156111d657836003828154811015156111a357fe5b9060005260206000200160006101000a815481600160a060020a030219169083600160a060020a031602179055506111de565b600101611155565b50600160a060020a03808516600081815260026020526040808220805460ff1990811690915593871682528082208054909416600117909355915190917f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9091a2604051600160a060020a038416907ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d90600090a250505050565b3360008181526002602052604090205460ff16151561129657600080fd5b60008281526001602090815260408083203380855292529091205483919060ff1615156112c257600080fd5b600084815260208190526040902060030154849060ff16156112e357600080fd5b6112ec85610ac2565b156110c4576000858152602081815260409182902060038101805460ff19166001908117909155815481830154600280850180548851601f6000199783161561010002979097019091169290920494850187900487028201870190975283815293956113be95600160a060020a039093169491939283908301828280156113b45780601f10611389576101008083540402835291602001916113b4565b820191906000526020600020905b81548152906001019060200180831161139757829003601f168201915b5050505050611523565b156113f35760405186907f33e13ecb54c3076d8e8bb8c2881800a4d972b792045ffae98fdf46df365fed7590600090a261142b565b60405186907f526441bb6c1aba3c9a4a6ca1d6545da9c2333c8c48343ef398eb858d72b7923690600090a260038101805460ff191690555b505050505050565b600083600160a060020a038116151561144b57600080fd5b60055460408051608081018252600160a060020a0388811682526020808301898152838501898152600060608601819052878152808452959095208451815473ffffffffffffffffffffffffffffffffffffffff1916941693909317835551600183015592518051949650919390926114cb92600285019291019061156f565b50606091909101516003909101805460ff191691151591909117905560058054600101905560405182907fc0ba8fe4b176c1714197d43b9cc6bcf797a4a7461c5fe8d0ef6e184ae7601e5190600090a2509392505050565b6000806040516020840160008287838a8c6187965a03f198975050505050505050565b81548183558181111561156a5760008381526020902061156a9181019083016115ed565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106115b057805160ff19168380011785556115dd565b828001600101855582156115dd579182015b828111156115dd5782518255916020019190600101906115c2565b506115e99291506115ed565b5090565b610cd691905b808211156115e957600081556001016115f356fea165627a7a7230582095388a41314e77f9a273023344e683038996423751cc29d218f72d45101a6d410029