Overview
Max Total Supply
4,954 CF
Holders
1,314 (0.00%)
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
4 CFLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FighterCore
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-01-25 */ pragma solidity ^0.4.18; /** * @title Ownable * @dev The Ownable contract has an owner address, and provides basic authorization control * functions, this simplifies the implementation of "user permissions". */ contract Ownable { address public owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() public { owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(msg.sender == owner); _; } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } /** * @title Pausable * @dev Base contract which allows children to implement an emergency stop mechanism. */ contract Pausable is Ownable { event Pause(); event Unpause(); bool public paused = false; /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!paused); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(paused); _; } /** * @dev called by the owner to pause, triggers stopped state */ function pause() onlyOwner whenNotPaused public { paused = true; Pause(); } /** * @dev called by the owner to unpause, returns to normal state */ function unpause() onlyOwner whenPaused public { paused = false; Unpause(); } } /// @title Auction Core /// @dev Contains models, variables, and internal methods for the auction. contract ClockAuctionBase { // Represents an auction on an NFT struct Auction { // Current owner of NFT address seller; // Price (in wei) at beginning of auction uint128 startingPrice; // Price (in wei) at end of auction uint128 endingPrice; // Duration (in seconds) of auction uint64 duration; // Time when auction started // NOTE: 0 if this auction has been concluded uint64 startedAt; } // Reference to contract tracking NFT ownership ERC721 public nonFungibleContract; // Cut owner takes on each auction, measured in basis points (1/100 of a percent). // Values 0-10,000 map to 0%-100% uint256 public ownerCut; // Map from token ID to their corresponding auction. mapping (uint256 => Auction) tokenIdToAuction; event AuctionCreated(uint256 tokenId, uint256 startingPrice, uint256 endingPrice, uint256 duration); event AuctionSuccessful(uint256 tokenId, uint256 totalPrice, address winner); event AuctionCancelled(uint256 tokenId); /// @dev DON'T give me your money. function() external {} // Modifiers to check that inputs can be safely stored with a certain // number of bits. We use constants and multiple modifiers to save gas. modifier canBeStoredWith64Bits(uint256 _value) { require(_value <= 18446744073709551615); _; } modifier canBeStoredWith128Bits(uint256 _value) { require(_value < 340282366920938463463374607431768211455); _; } /// @dev Returns true if the claimant owns the token. /// @param _claimant - Address claiming to own the token. /// @param _tokenId - ID of token whose ownership to verify. function _owns(address _claimant, uint256 _tokenId) internal view returns (bool) { return (nonFungibleContract.ownerOf(_tokenId) == _claimant); } /// @dev Escrows the NFT, assigning ownership to this contract. /// Throws if the escrow fails. /// @param _owner - Current owner address of token to escrow. /// @param _tokenId - ID of token whose approval to verify. function _escrow(address _owner, uint256 _tokenId) internal { // it will throw if transfer fails nonFungibleContract.transferFrom(_owner, this, _tokenId); } /// @dev Transfers an NFT owned by this contract to another address. /// Returns true if the transfer succeeds. /// @param _receiver - Address to transfer NFT to. /// @param _tokenId - ID of token to transfer. function _transfer(address _receiver, uint256 _tokenId) internal { // it will throw if transfer fails nonFungibleContract.transfer(_receiver, _tokenId); } /// @dev Adds an auction to the list of open auctions. Also fires the /// AuctionCreated event. /// @param _tokenId The ID of the token to be put on auction. /// @param _auction Auction to add. function _addAuction(uint256 _tokenId, Auction _auction) internal { // Require that all auctions have a duration of // at least one minute. (Keeps our math from getting hairy!) require(_auction.duration >= 1 minutes); tokenIdToAuction[_tokenId] = _auction; AuctionCreated( uint256(_tokenId), uint256(_auction.startingPrice), uint256(_auction.endingPrice), uint256(_auction.duration) ); } /// @dev Cancels an auction unconditionally. function _cancelAuction(uint256 _tokenId, address _seller) internal { _removeAuction(_tokenId); _transfer(_seller, _tokenId); AuctionCancelled(_tokenId); } /// @dev Computes the price and transfers winnings. /// Does NOT transfer ownership of token. function _bid(uint256 _tokenId, uint256 _bidAmount) internal returns (uint256) { // Get a reference to the auction struct Auction storage auction = tokenIdToAuction[_tokenId]; // Explicitly check that this auction is currently live. // (Because of how Ethereum mappings work, we can't just count // on the lookup above failing. An invalid _tokenId will just // return an auction object that is all zeros.) require(_isOnAuction(auction)); // Check that the incoming bid is higher than the current // price uint256 price = _currentPrice(auction); require(_bidAmount >= price); // Grab a reference to the seller before the auction struct // gets deleted. address seller = auction.seller; // The bid is good! Remove the auction before sending the fees // to the sender so we can't have a reentrancy attack. _removeAuction(_tokenId); // Transfer proceeds to seller (if there are any!) if (price > 0) { // Calculate the auctioneer's cut. // (NOTE: _computeCut() is guaranteed to return a // value <= price, so this subtraction can't go negative.) uint256 auctioneerCut = _computeCut(price); uint256 sellerProceeds = price - auctioneerCut; // NOTE: Doing a transfer() in the middle of a complex // method like this is generally discouraged because of // reentrancy attacks and DoS attacks if the seller is // a contract with an invalid fallback function. We explicitly // guard against reentrancy attacks by removing the auction // before calling transfer(), and the only thing the seller // can DoS is the sale of their own asset! (And if it's an // accident, they can call cancelAuction(). ) seller.transfer(sellerProceeds); } // Tell the world! AuctionSuccessful(_tokenId, price, msg.sender); return price; } /// @dev Removes an auction from the list of open auctions. /// @param _tokenId - ID of NFT on auction. function _removeAuction(uint256 _tokenId) internal { delete tokenIdToAuction[_tokenId]; } /// @dev Returns true if the NFT is on auction. /// @param _auction - Auction to check. function _isOnAuction(Auction storage _auction) internal view returns (bool) { return (_auction.startedAt > 0); } /// @dev Returns current price of an NFT on auction. Broken into two /// functions (this one, that computes the duration from the auction /// structure, and the other that does the price computation) so we /// can easily test that the price computation works correctly. function _currentPrice(Auction storage _auction) internal view returns (uint256) { uint256 secondsPassed = 0; // A bit of insurance against negative values (or wraparound). // Probably not necessary (since Ethereum guarnatees that the // now variable doesn't ever go backwards). if (now > _auction.startedAt) { secondsPassed = now - _auction.startedAt; } return _computeCurrentPrice( _auction.startingPrice, _auction.endingPrice, _auction.duration, secondsPassed ); } /// @dev Computes the current price of an auction. Factored out /// from _currentPrice so we can run extensive unit tests. /// When testing, make this function public and turn on /// `Current price computation` test suite. function _computeCurrentPrice( uint256 _startingPrice, uint256 _endingPrice, uint256 _duration, uint256 _secondsPassed ) internal pure returns (uint256) { // NOTE: We don't use SafeMath (or similar) in this function because // all of our public functions carefully cap the maximum values for // time (at 64-bits) and currency (at 128-bits). _duration is // also known to be non-zero (see the require() statement in // _addAuction()) if (_secondsPassed >= _duration) { // We've reached the end of the dynamic pricing portion // of the auction, just return the end price. return _endingPrice; } else { // Starting price can be higher than ending price (and often is!), so // this delta can be negative. int256 totalPriceChange = int256(_endingPrice) - int256(_startingPrice); // This multiplication can't overflow, _secondsPassed will easily fit within // 64-bits, and totalPriceChange will easily fit within 128-bits, their product // will always fit within 256-bits. int256 currentPriceChange = totalPriceChange * int256(_secondsPassed) / int256(_duration); // currentPriceChange can be negative, but if so, will have a magnitude // less that _startingPrice. Thus, this result will always end up positive. int256 currentPrice = int256(_startingPrice) + currentPriceChange; return uint256(currentPrice); } } /// @dev Computes owner's cut of a sale. /// @param _price - Sale price of NFT. function _computeCut(uint256 _price) internal view returns (uint256) { // NOTE: We don't use SafeMath (or similar) in this function because // all of our entry functions carefully cap the maximum values for // currency (at 128-bits), and ownerCut <= 10000 (see the require() // statement in the ClockAuction constructor). The result of this // function is always guaranteed to be <= _price. return _price * ownerCut / 10000; } } /// @title Clock auction for non-fungible tokens. contract ClockAuction is Pausable, ClockAuctionBase { /// @dev Constructor creates a reference to the NFT ownership contract /// and verifies the owner cut is in the valid range. /// @param _nftAddress - address of a deployed contract implementing /// the Nonfungible Interface. /// @param _cut - percent cut the owner takes on each auction, must be /// between 0-10,000. function ClockAuction(address _nftAddress, uint256 _cut) public { require(_cut <= 10000); ownerCut = _cut; ERC721 candidateContract = ERC721(_nftAddress); require(candidateContract.implementsERC721()); nonFungibleContract = candidateContract; } /// @dev Remove all Ether from the contract, which is the owner's cuts /// as well as any Ether sent directly to the contract address. /// Always transfers to the NFT contract, but can be called either by /// the owner or the NFT contract. function withdrawBalance() external { address nftAddress = address(nonFungibleContract); require( msg.sender == owner || msg.sender == nftAddress ); nftAddress.transfer(this.balance); } /// @dev Creates and begins a new auction. /// @param _tokenId - ID of token to auction, sender must be owner. /// @param _startingPrice - Price of item (in wei) at beginning of auction. /// @param _endingPrice - Price of item (in wei) at end of auction. /// @param _duration - Length of time to move between starting /// price and ending price (in seconds). /// @param _seller - Seller, if not the message sender function createAuction( uint256 _tokenId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration, address _seller ) public whenNotPaused canBeStoredWith128Bits(_startingPrice) canBeStoredWith128Bits(_endingPrice) canBeStoredWith64Bits(_duration) { require(_owns(msg.sender, _tokenId)); _escrow(msg.sender, _tokenId); Auction memory auction = Auction( _seller, uint128(_startingPrice), uint128(_endingPrice), uint64(_duration), uint64(now) ); _addAuction(_tokenId, auction); } /// @dev Bids on an open auction, completing the auction and transferring /// ownership of the NFT if enough Ether is supplied. /// @param _tokenId - ID of token to bid on. function bid(uint256 _tokenId) public payable whenNotPaused { // _bid will throw if the bid or funds transfer fails _bid(_tokenId, msg.value); _transfer(msg.sender, _tokenId); } /// @dev Cancels an auction that hasn't been won yet. /// Returns the NFT to original owner. /// @notice This is a state-modifying function that can /// be called while the contract is paused. /// @param _tokenId - ID of token on auction function cancelAuction(uint256 _tokenId) public { Auction storage auction = tokenIdToAuction[_tokenId]; require(_isOnAuction(auction)); address seller = auction.seller; require(msg.sender == seller); _cancelAuction(_tokenId, seller); } /// @dev Cancels an auction when the contract is paused. /// Only the owner may do this, and NFTs are returned to /// the seller. This should only be used in emergencies. /// @param _tokenId - ID of the NFT on auction to cancel. function cancelAuctionWhenPaused(uint256 _tokenId) whenPaused onlyOwner public { Auction storage auction = tokenIdToAuction[_tokenId]; require(_isOnAuction(auction)); _cancelAuction(_tokenId, auction.seller); } /// @dev Returns auction info for an NFT on auction. /// @param _tokenId - ID of NFT on auction. function getAuction(uint256 _tokenId) public view returns ( address seller, uint256 startingPrice, uint256 endingPrice, uint256 duration, uint256 startedAt ) { Auction storage auction = tokenIdToAuction[_tokenId]; require(_isOnAuction(auction)); return ( auction.seller, auction.startingPrice, auction.endingPrice, auction.duration, auction.startedAt ); } /// @dev Returns the current price of an auction. /// @param _tokenId - ID of the token price we are checking. function getCurrentPrice(uint256 _tokenId) public view returns (uint256) { Auction storage auction = tokenIdToAuction[_tokenId]; require(_isOnAuction(auction)); return _currentPrice(auction); } } /// @title Clock auction modified for sale of fighters contract SaleClockAuction is ClockAuction { // @dev Sanity check that allows us to ensure that we are pointing to the // right auction in our setSaleAuctionAddress() call. bool public isSaleClockAuction = true; // Tracks last 4 sale price of gen0 fighter sales uint256 public gen0SaleCount; uint256[4] public lastGen0SalePrices; // Delegate constructor function SaleClockAuction(address _nftAddr, uint256 _cut) public ClockAuction(_nftAddr, _cut) {} /// @dev Creates and begins a new auction. /// @param _tokenId - ID of token to auction, sender must be owner. /// @param _startingPrice - Price of item (in wei) at beginning of auction. /// @param _endingPrice - Price of item (in wei) at end of auction. /// @param _duration - Length of auction (in seconds). /// @param _seller - Seller, if not the message sender function createAuction( uint256 _tokenId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration, address _seller ) public canBeStoredWith128Bits(_startingPrice) canBeStoredWith128Bits(_endingPrice) canBeStoredWith64Bits(_duration) { require(msg.sender == address(nonFungibleContract)); _escrow(_seller, _tokenId); Auction memory auction = Auction( _seller, uint128(_startingPrice), uint128(_endingPrice), uint64(_duration), uint64(now) ); _addAuction(_tokenId, auction); } /// @dev Updates lastSalePrice if seller is the nft contract /// Otherwise, works the same as default bid method. function bid(uint256 _tokenId) public payable { // _bid verifies token ID size address seller = tokenIdToAuction[_tokenId].seller; uint256 price = _bid(_tokenId, msg.value); _transfer(msg.sender, _tokenId); // If not a gen0 auction, exit if (seller == address(nonFungibleContract)) { // Track gen0 sale prices lastGen0SalePrices[gen0SaleCount % 4] = price; gen0SaleCount++; } } function averageGen0SalePrice() public view returns (uint256) { uint256 sum = 0; for (uint256 i = 0; i < 4; i++) { sum += lastGen0SalePrices[i]; } return sum / 4; } } /// @title A facet of FighterCore that manages special access privileges. contract FighterAccessControl { /// @dev Emited when contract is upgraded event ContractUpgrade(address newContract); address public ceoAddress; address public cfoAddress; address public cooAddress; // @dev Keeps track whether the contract is paused. When that is true, most actions are blocked bool public paused = false; modifier onlyCEO() { require(msg.sender == ceoAddress); _; } modifier onlyCFO() { require(msg.sender == cfoAddress); _; } modifier onlyCOO() { require(msg.sender == cooAddress); _; } modifier onlyCLevel() { require( msg.sender == cooAddress || msg.sender == ceoAddress || msg.sender == cfoAddress ); _; } function setCEO(address _newCEO) public onlyCEO { require(_newCEO != address(0)); ceoAddress = _newCEO; } function setCFO(address _newCFO) public onlyCEO { require(_newCFO != address(0)); cfoAddress = _newCFO; } function setCOO(address _newCOO) public onlyCEO { require(_newCOO != address(0)); cooAddress = _newCOO; } function withdrawBalance() external onlyCFO { cfoAddress.transfer(this.balance); } /*** Pausable functionality adapted from OpenZeppelin ***/ /// @dev Modifier to allow actions only when the contract IS NOT paused modifier whenNotPaused() { require(!paused); _; } /// @dev Modifier to allow actions only when the contract IS paused modifier whenPaused { require(paused); _; } function pause() public onlyCLevel whenNotPaused { paused = true; } function unpause() public onlyCEO whenPaused { // can't unpause if contract was upgraded paused = false; } } /// @title Base contract for CryptoFighters. Holds all common structs, events and base variables. contract FighterBase is FighterAccessControl { /*** EVENTS ***/ event FighterCreated(address indexed owner, uint256 fighterId, uint256 genes); /// @dev Transfer event as defined in current draft of ERC721. Emitted every time a fighter /// ownership is assigned, including newly created fighters. event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /*** DATA TYPES ***/ /// @dev The main Fighter struct. Every fighter in CryptoFighters is represented by a copy /// of this structure. struct Fighter { // The Fighter's genetic code is packed into these 256-bits. // A fighter's genes never change. uint256 genes; // The minimum timestamp after which this fighter can win a prize fighter again uint64 prizeCooldownEndTime; // The minimum timestamp after which this fighter can engage in battle again uint64 battleCooldownEndTime; // battle experience uint32 experience; // Set to the index that represents the current cooldown duration for this Fighter. // Incremented by one for each successful prize won in battle uint16 prizeCooldownIndex; uint16 battlesFought; uint16 battlesWon; // The "generation number" of this fighter. Fighters minted by the CF contract // for sale are called "gen0" and have a generation number of 0. uint16 generation; uint8 dexterity; uint8 strength; uint8 vitality; uint8 luck; } /*** STORAGE ***/ /// @dev An array containing the Fighter struct for all Fighters in existence. The ID /// of each fighter is actually an index into this array. Note that ID 0 is a negafighter. /// Fighter ID 0 is invalid. Fighter[] fighters; /// @dev A mapping from fighter IDs to the address that owns them. All fighters have /// some valid owner address, even gen0 fighters are created with a non-zero owner. mapping (uint256 => address) public fighterIndexToOwner; // @dev A mapping from owner address to count of tokens that address owns. // Used internally inside balanceOf() to resolve ownership count. mapping (address => uint256) ownershipTokenCount; /// @dev A mapping from FighterIDs to an address that has been approved to call /// transferFrom(). A zero value means no approval is outstanding. mapping (uint256 => address) public fighterIndexToApproved; function _transfer(address _from, address _to, uint256 _tokenId) internal { // since the number of fighters is capped to 2^32 // there is no way to overflow this ownershipTokenCount[_to]++; fighterIndexToOwner[_tokenId] = _to; if (_from != address(0)) { ownershipTokenCount[_from]--; delete fighterIndexToApproved[_tokenId]; } Transfer(_from, _to, _tokenId); } // Will generate both a FighterCreated event function _createFighter( uint16 _generation, uint256 _genes, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck, address _owner ) internal returns (uint) { Fighter memory _fighter = Fighter({ genes: _genes, prizeCooldownEndTime: 0, battleCooldownEndTime: 0, prizeCooldownIndex: 0, battlesFought: 0, battlesWon: 0, experience: 0, generation: _generation, dexterity: _dexterity, strength: _strength, vitality: _vitality, luck: _luck }); uint256 newFighterId = fighters.push(_fighter) - 1; require(newFighterId <= 4294967295); FighterCreated(_owner, newFighterId, _fighter.genes); _transfer(0, _owner, newFighterId); return newFighterId; } } /// @title Interface for contracts conforming to ERC-721: Non-Fungible Tokens contract ERC721 { function implementsERC721() public pure returns (bool); function totalSupply() public view returns (uint256 total); function balanceOf(address _owner) public view returns (uint256 balance); function ownerOf(uint256 _tokenId) public view returns (address owner); function approve(address _to, uint256 _tokenId) public; function transferFrom(address _from, address _to, uint256 _tokenId) public; function transfer(address _to, uint256 _tokenId) public; event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); // Optional // function name() public view returns (string name); // function symbol() public view returns (string symbol); // function tokenOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256 tokenId); // function tokenMetadata(uint256 _tokenId) public view returns (string infoUrl); } /// @title The facet of the CryptoFighters core contract that manages ownership, ERC-721 (draft) compliant. contract FighterOwnership is FighterBase, ERC721 { string public name = "CryptoFighters"; string public symbol = "CF"; function implementsERC721() public pure returns (bool) { return true; } /// @dev Checks if a given address is the current owner of a particular Fighter. /// @param _claimant the address we are validating against. /// @param _tokenId fighter id, only valid when > 0 function _owns(address _claimant, uint256 _tokenId) internal view returns (bool) { return fighterIndexToOwner[_tokenId] == _claimant; } /// @dev Checks if a given address currently has transferApproval for a particular Fighter. /// @param _claimant the address we are confirming fighter is approved for. /// @param _tokenId fighter id, only valid when > 0 function _approvedFor(address _claimant, uint256 _tokenId) internal view returns (bool) { return fighterIndexToApproved[_tokenId] == _claimant; } /// @dev Marks an address as being approved for transferFrom(), overwriting any previous /// approval. Setting _approved to address(0) clears all transfer approval. /// NOTE: _approve() does NOT send the Approval event. function _approve(uint256 _tokenId, address _approved) internal { fighterIndexToApproved[_tokenId] = _approved; } /// @dev Transfers a fighter owned by this contract to the specified address. /// Used to rescue lost fighters. (There is no "proper" flow where this contract /// should be the owner of any Fighter. This function exists for us to reassign /// the ownership of Fighters that users may have accidentally sent to our address.) /// @param _fighterId - ID of fighter /// @param _recipient - Address to send the fighter to function rescueLostFighter(uint256 _fighterId, address _recipient) public onlyCOO whenNotPaused { require(_owns(this, _fighterId)); _transfer(this, _recipient, _fighterId); } /// @notice Returns the number of Fighters owned by a specific address. /// @param _owner The owner address to check. function balanceOf(address _owner) public view returns (uint256 count) { return ownershipTokenCount[_owner]; } /// @notice Transfers a Fighter to another address. If transferring to a smart /// contract be VERY CAREFUL to ensure that it is aware of ERC-721 (or /// CryptoFighters specifically) or your Fighter may be lost forever. Seriously. /// @param _to The address of the recipient, can be a user or contract. /// @param _tokenId The ID of the Fighter to transfer. function transfer( address _to, uint256 _tokenId ) public whenNotPaused { require(_to != address(0)); require(_owns(msg.sender, _tokenId)); _transfer(msg.sender, _to, _tokenId); } /// @notice Grant another address the right to transfer a specific Fighter via /// transferFrom(). This is the preferred flow for transfering NFTs to contracts. /// @param _to The address to be granted transfer approval. Pass address(0) to /// clear all approvals. /// @param _tokenId The ID of the Fighter that can be transferred if this call succeeds. function approve( address _to, uint256 _tokenId ) public whenNotPaused { require(_owns(msg.sender, _tokenId)); _approve(_tokenId, _to); Approval(msg.sender, _to, _tokenId); } /// @notice Transfer a Fighter owned by another address, for which the calling address /// has previously been granted transfer approval by the owner. /// @param _from The address that owns the Fighter to be transfered. /// @param _to The address that should take ownership of the Fighter. Can be any address, /// including the caller. /// @param _tokenId The ID of the Fighter to be transferred. function transferFrom( address _from, address _to, uint256 _tokenId ) public whenNotPaused { require(_approvedFor(msg.sender, _tokenId)); require(_owns(_from, _tokenId)); _transfer(_from, _to, _tokenId); } function totalSupply() public view returns (uint) { return fighters.length - 1; } function ownerOf(uint256 _tokenId) public view returns (address owner) { owner = fighterIndexToOwner[_tokenId]; require(owner != address(0)); } /// @notice Returns the nth Fighter assigned to an address, with n specified by the /// _index argument. /// @param _owner The owner whose Fighters we are interested in. /// @param _index The zero-based index of the fighter within the owner's list of fighters. /// Must be less than balanceOf(_owner). /// @dev This method MUST NEVER be called by smart contract code. It will almost /// certainly blow past the block gas limit once there are a large number of /// Fighters in existence. Exists only to allow off-chain queries of ownership. /// Optional method for ERC-721. function tokensOfOwnerByIndex(address _owner, uint256 _index) external view returns (uint256 tokenId) { uint256 count = 0; for (uint256 i = 1; i <= totalSupply(); i++) { if (fighterIndexToOwner[i] == _owner) { if (count == _index) { return i; } else { count++; } } } revert(); } } // this helps with battle functionality // it gives the ability to an external contract to do the following: // * create fighters as rewards // * update fighter stats // * update cooldown data for next prize/battle contract FighterBattle is FighterOwnership { event FighterUpdated(uint256 fighterId); /// @dev The address of the sibling contract that handles battles address public battleContractAddress; /// @dev If set to false the `battleContractAddress` can never be updated again bool public battleContractAddressCanBeUpdated = true; function setBattleAddress(address _address) public onlyCEO { require(battleContractAddressCanBeUpdated == true); battleContractAddress = _address; } function foreverBlockBattleAddressUpdate() public onlyCEO { battleContractAddressCanBeUpdated = false; } modifier onlyBattleContract() { require(msg.sender == battleContractAddress); _; } function createPrizeFighter( uint16 _generation, uint256 _genes, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck, address _owner ) public onlyBattleContract { require(_generation > 0); _createFighter(_generation, _genes, _dexterity, _strength, _vitality, _luck, _owner); } // Update fighter functions // The logic for creating so many different functions is that it will be // easier to optimise for gas costs having all these available to us. // The contract deployment will be more expensive, but future costs can be // cheaper. function updateFighter( uint256 _fighterId, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck, uint32 _experience, uint64 _prizeCooldownEndTime, uint16 _prizeCooldownIndex, uint64 _battleCooldownEndTime, uint16 _battlesFought, uint16 _battlesWon ) public onlyBattleContract { Fighter storage fighter = fighters[_fighterId]; fighter.dexterity = _dexterity; fighter.strength = _strength; fighter.vitality = _vitality; fighter.luck = _luck; fighter.experience = _experience; fighter.prizeCooldownEndTime = _prizeCooldownEndTime; fighter.prizeCooldownIndex = _prizeCooldownIndex; fighter.battleCooldownEndTime = _battleCooldownEndTime; fighter.battlesFought = _battlesFought; fighter.battlesWon = _battlesWon; FighterUpdated(_fighterId); } function updateFighterStats( uint256 _fighterId, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck, uint32 _experience ) public onlyBattleContract { Fighter storage fighter = fighters[_fighterId]; fighter.dexterity = _dexterity; fighter.strength = _strength; fighter.vitality = _vitality; fighter.luck = _luck; fighter.experience = _experience; FighterUpdated(_fighterId); } function updateFighterBattleStats( uint256 _fighterId, uint64 _prizeCooldownEndTime, uint16 _prizeCooldownIndex, uint64 _battleCooldownEndTime, uint16 _battlesFought, uint16 _battlesWon ) public onlyBattleContract { Fighter storage fighter = fighters[_fighterId]; fighter.prizeCooldownEndTime = _prizeCooldownEndTime; fighter.prizeCooldownIndex = _prizeCooldownIndex; fighter.battleCooldownEndTime = _battleCooldownEndTime; fighter.battlesFought = _battlesFought; fighter.battlesWon = _battlesWon; FighterUpdated(_fighterId); } function updateDexterity(uint256 _fighterId, uint8 _dexterity) public onlyBattleContract { fighters[_fighterId].dexterity = _dexterity; FighterUpdated(_fighterId); } function updateStrength(uint256 _fighterId, uint8 _strength) public onlyBattleContract { fighters[_fighterId].strength = _strength; FighterUpdated(_fighterId); } function updateVitality(uint256 _fighterId, uint8 _vitality) public onlyBattleContract { fighters[_fighterId].vitality = _vitality; FighterUpdated(_fighterId); } function updateLuck(uint256 _fighterId, uint8 _luck) public onlyBattleContract { fighters[_fighterId].luck = _luck; FighterUpdated(_fighterId); } function updateExperience(uint256 _fighterId, uint32 _experience) public onlyBattleContract { fighters[_fighterId].experience = _experience; FighterUpdated(_fighterId); } } /// @title Handles creating auctions for sale of fighters. /// This wrapper of ReverseAuction exists only so that users can create /// auctions with only one transaction. contract FighterAuction is FighterBattle { SaleClockAuction public saleAuction; function setSaleAuctionAddress(address _address) public onlyCEO { SaleClockAuction candidateContract = SaleClockAuction(_address); require(candidateContract.isSaleClockAuction()); saleAuction = candidateContract; } function createSaleAuction( uint256 _fighterId, uint256 _startingPrice, uint256 _endingPrice, uint256 _duration ) public whenNotPaused { // Auction contract checks input sizes // If fighter is already on any auction, this will throw // because it will be owned by the auction contract. require(_owns(msg.sender, _fighterId)); _approve(_fighterId, saleAuction); // Sale auction throws if inputs are invalid and clears // transfer approval after escrowing the fighter. saleAuction.createAuction( _fighterId, _startingPrice, _endingPrice, _duration, msg.sender ); } /// @dev Transfers the balance of the sale auction contract /// to the FighterCore contract. We use two-step withdrawal to /// prevent two transfer calls in the auction bid function. function withdrawAuctionBalances() external onlyCOO { saleAuction.withdrawBalance(); } } /// @title all functions related to creating fighters contract FighterMinting is FighterAuction { // Limits the number of fighters the contract owner can ever create. uint256 public promoCreationLimit = 5000; uint256 public gen0CreationLimit = 25000; // Constants for gen0 auctions. uint256 public gen0StartingPrice = 500 finney; uint256 public gen0EndingPrice = 10 finney; uint256 public gen0AuctionDuration = 1 days; // Counts the number of fighters the contract owner has created. uint256 public promoCreatedCount; uint256 public gen0CreatedCount; /// @dev we can create promo fighters, up to a limit function createPromoFighter( uint256 _genes, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck, address _owner ) public onlyCOO { if (_owner == address(0)) { _owner = cooAddress; } require(promoCreatedCount < promoCreationLimit); require(gen0CreatedCount < gen0CreationLimit); promoCreatedCount++; gen0CreatedCount++; _createFighter(0, _genes, _dexterity, _strength, _vitality, _luck, _owner); } /// @dev Creates a new gen0 fighter with the given genes and /// creates an auction for it. function createGen0Auction( uint256 _genes, uint8 _dexterity, uint8 _strength, uint8 _vitality, uint8 _luck ) public onlyCOO { require(gen0CreatedCount < gen0CreationLimit); uint256 fighterId = _createFighter(0, _genes, _dexterity, _strength, _vitality, _luck, address(this)); _approve(fighterId, saleAuction); saleAuction.createAuction( fighterId, _computeNextGen0Price(), gen0EndingPrice, gen0AuctionDuration, address(this) ); gen0CreatedCount++; } /// @dev Computes the next gen0 auction starting price, given /// the average of the past 4 prices + 50%. function _computeNextGen0Price() internal view returns (uint256) { uint256 avePrice = saleAuction.averageGen0SalePrice(); // sanity check to ensure we don't overflow arithmetic (this big number is 2^128-1). require(avePrice < 340282366920938463463374607431768211455); uint256 nextPrice = avePrice + (avePrice / 2); // We never auction for less than starting price if (nextPrice < gen0StartingPrice) { nextPrice = gen0StartingPrice; } return nextPrice; } } /// @title CryptoFighters: Collectible, battlable fighters on the Ethereum blockchain. /// @dev The main CryptoFighters contract contract FighterCore is FighterMinting { // This is the main CryptoFighters contract. We have several seperately-instantiated sibling contracts // that handle auctions, battles and the creation of new fighters. By keeping // them in their own contracts, we can upgrade them without disrupting the main contract that tracks // fighter ownership. // // - FighterBase: This is where we define the most fundamental code shared throughout the core // functionality. This includes our main data storage, constants and data types, plus // internal functions for managing these items. // // - FighterAccessControl: This contract manages the various addresses and constraints for operations // that can be executed only by specific roles. Namely CEO, CFO and COO. // // - FighterOwnership: This provides the methods required for basic non-fungible token // transactions, following the draft ERC-721 spec (https://github.com/ethereum/EIPs/issues/721). // // - FighterBattle: This file contains the methods necessary to allow a separate contract to handle battles // allowing it to reward new prize fighters as well as update fighter stats. // // - FighterAuction: Here we have the public methods for auctioning or bidding on fighters. // The actual auction functionality is handled in a sibling sales contract, // while auction creation and bidding is mostly mediated through this facet of the core contract. // // - FighterMinting: This final facet contains the functionality we use for creating new gen0 fighters. // We can make up to 5000 "promo" fighters that can be given away, and all others can only be created and then immediately put up // for auction via an algorithmically determined starting price. Regardless of how they // are created, there is a hard limit of 25,000 gen0 fighters. // Set in case the core contract is broken and an upgrade is required address public newContractAddress; function FighterCore() public { paused = true; ceoAddress = msg.sender; cooAddress = msg.sender; cfoAddress = msg.sender; // start with the mythical fighter 0 _createFighter(0, uint256(-1), uint8(-1), uint8(-1), uint8(-1), uint8(-1), address(0)); } /// @dev Used to mark the smart contract as upgraded, in case there is a serious /// breaking bug. This method does nothing but keep track of the new contract and /// emit a message indicating that the new address is set. It's up to clients of this /// contract to update to the new contract address in that case. (This contract will /// be paused indefinitely if such an upgrade takes place.) /// @param _v2Address new address function setNewAddress(address _v2Address) public onlyCEO whenPaused { newContractAddress = _v2Address; ContractUpgrade(_v2Address); } /// @notice No tipping! /// @dev Reject all Ether from being sent here, unless it's from one of the /// two auction contracts. (Hopefully, we can prevent user accidents.) function() external payable { require(msg.sender == address(saleAuction)); } /// @param _id The ID of the fighter of interest. function getFighter(uint256 _id) public view returns ( uint256 prizeCooldownEndTime, uint256 battleCooldownEndTime, uint256 prizeCooldownIndex, uint256 battlesFought, uint256 battlesWon, uint256 generation, uint256 genes, uint256 dexterity, uint256 strength, uint256 vitality, uint256 luck, uint256 experience ) { Fighter storage fighter = fighters[_id]; prizeCooldownEndTime = fighter.prizeCooldownEndTime; battleCooldownEndTime = fighter.battleCooldownEndTime; prizeCooldownIndex = fighter.prizeCooldownIndex; battlesFought = fighter.battlesFought; battlesWon = fighter.battlesWon; generation = fighter.generation; genes = fighter.genes; dexterity = fighter.dexterity; strength = fighter.strength; vitality = fighter.vitality; luck = fighter.luck; experience = fighter.experience; } /// @dev Override unpause so it requires all external contract addresses /// to be set before contract can be unpaused. Also, we can't have /// newContractAddress set either, because then the contract was upgraded. function unpause() public onlyCEO whenPaused { require(saleAuction != address(0)); require(newContractAddress == address(0)); super.unpause(); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"cfoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"promoCreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ceoAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementsERC721","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_luck","type":"uint8"}],"name":"updateLuck","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCEO","type":"address"}],"name":"setCEO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_newCOO","type":"address"}],"name":"setCOO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_generation","type":"uint16"},{"name":"_genes","type":"uint256"},{"name":"_dexterity","type":"uint8"},{"name":"_strength","type":"uint8"},{"name":"_vitality","type":"uint8"},{"name":"_luck","type":"uint8"},{"name":"_owner","type":"address"}],"name":"createPrizeFighter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_startingPrice","type":"uint256"},{"name":"_endingPrice","type":"uint256"},{"name":"_duration","type":"uint256"}],"name":"createSaleAuction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"gen0CreationLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_index","type":"uint256"}],"name":"tokensOfOwnerByIndex","outputs":[{"name":"tokenId","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newCFO","type":"address"}],"name":"setCFO","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_prizeCooldownEndTime","type":"uint64"},{"name":"_prizeCooldownIndex","type":"uint16"},{"name":"_battleCooldownEndTime","type":"uint64"},{"name":"_battlesFought","type":"uint16"},{"name":"_battlesWon","type":"uint16"}],"name":"updateFighterBattleStats","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"name":"owner","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_dexterity","type":"uint8"},{"name":"_strength","type":"uint8"},{"name":"_vitality","type":"uint8"},{"name":"_luck","type":"uint8"},{"name":"_experience","type":"uint32"},{"name":"_prizeCooldownEndTime","type":"uint64"},{"name":"_prizeCooldownIndex","type":"uint16"},{"name":"_battleCooldownEndTime","type":"uint64"},{"name":"_battlesFought","type":"uint16"},{"name":"_battlesWon","type":"uint16"}],"name":"updateFighter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"battleContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"newContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setSaleAuctionAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"count","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_v2Address","type":"address"}],"name":"setNewAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"},{"name":"_dexterity","type":"uint8"},{"name":"_strength","type":"uint8"},{"name":"_vitality","type":"uint8"},{"name":"_luck","type":"uint8"},{"name":"_owner","type":"address"}],"name":"createPromoFighter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_dexterity","type":"uint8"}],"name":"updateDexterity","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_recipient","type":"address"}],"name":"rescueLostFighter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_experience","type":"uint32"}],"name":"updateExperience","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"fighterIndexToOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_id","type":"uint256"}],"name":"getFighter","outputs":[{"name":"prizeCooldownEndTime","type":"uint256"},{"name":"battleCooldownEndTime","type":"uint256"},{"name":"prizeCooldownIndex","type":"uint256"},{"name":"battlesFought","type":"uint256"},{"name":"battlesWon","type":"uint256"},{"name":"generation","type":"uint256"},{"name":"genes","type":"uint256"},{"name":"dexterity","type":"uint256"},{"name":"strength","type":"uint256"},{"name":"vitality","type":"uint256"},{"name":"luck","type":"uint256"},{"name":"experience","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAuctionBalances","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_dexterity","type":"uint8"},{"name":"_strength","type":"uint8"},{"name":"_vitality","type":"uint8"},{"name":"_luck","type":"uint8"},{"name":"_experience","type":"uint32"}],"name":"updateFighterStats","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_vitality","type":"uint8"}],"name":"updateVitality","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_tokenId","type":"uint256"}],"name":"transfer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"fighterIndexToApproved","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gen0EndingPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gen0StartingPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"cooAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"promoCreationLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_genes","type":"uint256"},{"name":"_dexterity","type":"uint8"},{"name":"_strength","type":"uint8"},{"name":"_vitality","type":"uint8"},{"name":"_luck","type":"uint8"}],"name":"createGen0Auction","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"foreverBlockBattleAddressUpdate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setBattleAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_fighterId","type":"uint256"},{"name":"_strength","type":"uint8"}],"name":"updateStrength","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"battleContractAddressCanBeUpdated","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"saleAuction","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gen0AuctionDuration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gen0CreatedCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"fighterId","type":"uint256"}],"name":"FighterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"approved","type":"address"},{"indexed":true,"name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":false,"name":"fighterId","type":"uint256"},{"indexed":false,"name":"genes","type":"uint256"}],"name":"FighterCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newContract","type":"address"}],"name":"ContractUpgrade","type":"event"}]
Contract Creation Code
60606040526000600260146101000a81548160ff0219169083151502179055506040805190810160405280600e81526020017f43727970746f4669676874657273000000000000000000000000000000000000815250600790805190602001906200006c9291906200074b565b506040805190810160405280600281526020017f434600000000000000000000000000000000000000000000000000000000000081525060089080519060200190620000ba9291906200074b565b506001600960146101000a81548160ff021916908315150217905550611388600b556161a8600c556706f05b59d3b20000600d55662386f26fc10000600e5562015180600f5534156200010c57600080fd5b6001600260146101000a81548160ff021916908315150217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200027060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60006200027764010000000002620033b2176401000000009004565b50620009e2565b600062000283620007d2565b6000610180604051908101604052808a8152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff1681526020018b61ffff1681526020018960ff1681526020018860ff1681526020018760ff1681526020018660ff1681525091506001600380548060010182816200032e91906200086a565b916000526020600020906002020160008590919091506000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160106101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010160146101000a81548161ffff021916908361ffff16021790555060a08201518160010160166101000a81548161ffff021916908361ffff16021790555060c08201518160010160186101000a81548161ffff021916908361ffff16021790555060e082015181600101601a6101000a81548161ffff021916908361ffff16021790555061010082015181600101601c6101000a81548160ff021916908360ff16021790555061012082015181600101601d6101000a81548160ff021916908360ff16021790555061014082015181600101601e6101000a81548160ff021916908360ff16021790555061016082015181600101601f6101000a81548160ff021916908360ff160217905550505003905063ffffffff81111515156200050057600080fd5b8373ffffffffffffffffffffffffffffffffffffffff167fbf35d5dec71961df48692be84c87a26764f247c86b5ac5e3c6fe5ae128181279828460000151604051808381526020018281526020019250505060405180910390a26200057c600085836200058c64010000000002620031f4176401000000009004565b8092505050979650505050505050565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515620006eb57600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001900391905055506006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200078e57805160ff1916838001178555620007bf565b82800160010185558215620007bf579182015b82811115620007be578251825591602001919060010190620007a1565b5b509050620007ce91906200089f565b5090565b6101806040519081016040528060008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525090565b8154818355818115116200089a57600202816002028360005260206000209182019101620008999190620008c7565b5b505050565b620008c491905b80821115620008c0576000816000905550600101620008a6565b5090565b90565b620009df91905b80821115620009db576000808201600090556001820160006101000a81549067ffffffffffffffff02191690556001820160086101000a81549067ffffffffffffffff02191690556001820160106101000a81549063ffffffff02191690556001820160146101000a81549061ffff02191690556001820160166101000a81549061ffff02191690556001820160186101000a81549061ffff021916905560018201601a6101000a81549061ffff021916905560018201601c6101000a81549060ff021916905560018201601d6101000a81549060ff021916905560018201601e6101000a81549060ff021916905560018201601f6101000a81549060ff021916905550600201620008ce565b5090565b90565b613a4480620009f26000396000f300606060405260043610610272576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630519ce79146102d057806305e455461461032557806306fdde031461034e578063095ea7b3146103dc5780630a0f81681461041e5780631051db341461047357806318160ddd146104a05780631c7276f5146104c957806323b872dd146104f857806327d7874c146105595780632ba73c15146105925780633746010d146105cb5780633d7d3f5a1461064a5780633f4ba83a14610688578063404d0e3e1461069d5780634707f44f146106c65780634e0a33791461071c5780634eeee8ac146107555780635c975abb146107c55780635fd8c710146107f25780636352211e14610807578063677011871461086a57806367e54367146109195780636af04a571461096e5780636fbde40d146109c357806370a08231146109fc5780637158798814610a4957806375a2b40714610a8257806378b5a57614610af45780637cb5669814610b23578063809e52b214610b65578063811743e714610b975780638456cb5914610bfa578063889fa1dc14610c0f57806391876e5714610c9357806395d89b4114610ca85780639e570d6f14610d36578063a76eeab214610d98578063a9059cbb14610dc7578063ab605eea14610e09578063ab94837414610e6c578063ae4d0ff714610e95578063b047fb5014610ebe578063b531933514610f13578063b8ba7c7f14610f3c578063bf5a451b14610f8f578063c721b34b14610fa4578063d04d26fe14610fdd578063dfb8c6c21461100c578063e6cbe35114611039578063eb845c171461108e578063f1ca9410146110b7575b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102ce57600080fd5b005b34156102db57600080fd5b6102e36110e0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561033057600080fd5b610338611106565b6040518082815260200191505060405180910390f35b341561035957600080fd5b61036161110c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103a1578082015181840152602081019050610386565b50505050905090810190601f1680156103ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103e757600080fd5b61041c600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506111aa565b005b341561042957600080fd5b610431611244565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561047e57600080fd5b610486611269565b604051808215151515815260200191505060405180910390f35b34156104ab57600080fd5b6104b3611272565b6040518082815260200191505060405180910390f35b34156104d457600080fd5b6104f6600480803590602001909190803560ff16906020019091905050611282565b005b341561050357600080fd5b610557600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611352565b005b341561056457600080fd5b610590600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506113a8565b005b341561059d57600080fd5b6105c9600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611482565b005b34156105d657600080fd5b610648600480803561ffff1690602001909190803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061155d565b005b341561065557600080fd5b61068660048080359060200190919080359060200190919080359060200190919080359060200190919050506115e5565b005b341561069357600080fd5b61069b611738565b005b34156106a857600080fd5b6106b0611873565b6040518082815260200191505060405180910390f35b34156106d157600080fd5b610706600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611879565b6040518082815260200191505060405180910390f35b341561072757600080fd5b610753600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611930565b005b341561076057600080fd5b6107c3600480803590602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803561ffff16906020019091905050611a0b565b005b34156107d057600080fd5b6107d8611b7b565b604051808215151515815260200191505060405180910390f35b34156107fd57600080fd5b610805611b8e565b005b341561081257600080fd5b6108286004808035906020019091905050611c65565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561087557600080fd5b610917600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803563ffffffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803561ffff16906020019091905050611cde565b005b341561092457600080fd5b61092c611eea565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561097957600080fd5b610981611f10565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156109ce57600080fd5b6109fa600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611f36565b005b3415610a0757600080fd5b610a33600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061206d565b6040518082815260200191505060405180910390f35b3415610a5457600080fd5b610a80600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506120b6565b005b3415610a8d57600080fd5b610af2600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506121d3565b005b3415610aff57600080fd5b610b21600480803590602001909190803560ff169060200190919050506122eb565b005b3415610b2e57600080fd5b610b63600480803590602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506123bb565b005b3415610b7057600080fd5b610b95600480803590602001909190803563ffffffff16906020019091905050612457565b005b3415610ba257600080fd5b610bb8600480803590602001909190505061252d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610c0557600080fd5b610c0d612560565b005b3415610c1a57600080fd5b610c3060048080359060200190919050506126a4565b604051808d81526020018c81526020018b81526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019c5050505050505050505050505060405180910390f35b3415610c9e57600080fd5b610ca6612815565b005b3415610cb357600080fd5b610cbb61290c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cfb578082015181840152602081019050610ce0565b50505050905090810190601f168015610d285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3415610d4157600080fd5b610d96600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803563ffffffff169060200190919050506129aa565b005b3415610da357600080fd5b610dc5600480803590602001909190803560ff16906020019091905050612afe565b005b3415610dd257600080fd5b610e07600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050612bce565b005b3415610e1457600080fd5b610e2a6004808035906020019091905050612c4a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610e7757600080fd5b610e7f612c7d565b6040518082815260200191505060405180910390f35b3415610ea057600080fd5b610ea8612c83565b6040518082815260200191505060405180910390f35b3415610ec957600080fd5b610ed1612c89565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610f1e57600080fd5b610f26612caf565b6040518082815260200191505060405180910390f35b3415610f4757600080fd5b610f8d600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff16906020019091905050612cb5565b005b3415610f9a57600080fd5b610fa2612e78565b005b3415610faf57600080fd5b610fdb600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612ef0565b005b3415610fe857600080fd5b61100a600480803590602001909190803560ff16906020019091905050612fb1565b005b341561101757600080fd5b61101f613081565b604051808215151515815260200191505060405180910390f35b341561104457600080fd5b61104c613094565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561109957600080fd5b6110a16130ba565b6040518082815260200191505060405180910390f35b34156110c257600080fd5b6110ca6130c0565b6040518082815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a25780601f10611177576101008083540402835291602001916111a2565b820191906000526020600020905b81548152906001019060200180831161118557829003601f168201915b505050505081565b600260149054906101000a900460ff161515156111c657600080fd5b6111d033826130c6565b15156111db57600080fd5b6111e58183613132565b808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001905090565b6000600160038054905003905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112de57600080fd5b806003838154811015156112ee57fe5b9060005260206000209060020201600101601f6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260149054906101000a900460ff1615151561136e57600080fd5b6113783382613188565b151561138357600080fd5b61138d83826130c6565b151561139857600080fd5b6113a38383836131f4565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561140357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561143f57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561151957600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115b957600080fd5b60008761ffff161115156115cc57600080fd5b6115db878787878787876133b2565b5050505050505050565b600260149054906101000a900460ff1615151561160157600080fd5b61160b33856130c6565b151561161657600080fd5b61164284600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613132565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327ebe40a85858585336040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050600060405180830381600087803b151561171e57600080fd5b6102c65a03f1151561172f57600080fd5b50505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561179357600080fd5b600260149054906101000a900460ff1615156117ae57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561180c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561186957600080fd5b6118716136ac565b565b600c5481565b6000806000809150600190505b61188e611272565b81111515611923578473ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611916578382141561190d57809250611928565b81806001019250505b8080600101915050611886565b600080fd5b505092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561198b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156119c757600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a6957600080fd5b600387815481101515611a7857fe5b90600052602060002090600202019050858160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550848160010160146101000a81548161ffff021916908361ffff160217905550838160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160010160166101000a81548161ffff021916908361ffff160217905550818160010160186101000a81548161ffff021916908361ffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443876040518082815260200191505060405180910390a150505050505050565b600260149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611bea57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501515611c6357600080fd5b565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611cd957600080fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611d3c57600080fd5b60038c815481101515611d4b57fe5b906000526020600020906002020190508a81600101601c6101000a81548160ff021916908360ff1602179055508981600101601d6101000a81548160ff021916908360ff1602179055508881600101601e6101000a81548160ff021916908360ff1602179055508781600101601f6101000a81548160ff021916908360ff160217905550868160010160106101000a81548163ffffffff021916908363ffffffff160217905550858160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550848160010160146101000a81548161ffff021916908361ffff160217905550838160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160010160166101000a81548161ffff021916908361ffff160217905550818160010160186101000a81548161ffff021916908361ffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a54438c6040518082815260200191505060405180910390a1505050505050505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f9357600080fd5b8190508073ffffffffffffffffffffffffffffffffffffffff166385b861886000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561200257600080fd5b6102c65a03f1151561201357600080fd5b50505060405180519050151561202857600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561211157600080fd5b600260149054906101000a900460ff16151561212c57600080fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f450db8da6efbe9c22f2347f7c2021231df1fc58d3ae9a2fa75d39fa44619930581604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561222f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561228a57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b600b5460105410151561229c57600080fd5b600c546011541015156122ae57600080fd5b6010600081548092919060010191905055506011600081548092919060010191905055506122e260008787878787876133b2565b50505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561234757600080fd5b8060038381548110151561235757fe5b9060005260206000209060020201600101601c6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561241757600080fd5b600260149054906101000a900460ff1615151561243357600080fd5b61243d30836130c6565b151561244857600080fd5b6124533082846131f4565b5050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156124b357600080fd5b806003838154811015156124c357fe5b906000526020600020906002020160010160106101000a81548163ffffffff021916908363ffffffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061260857506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806126605750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561266b57600080fd5b600260149054906101000a900460ff1615151561268757600080fd5b6001600260146101000a81548160ff021916908315150217905550565b600080600080600080600080600080600080600060038e8154811015156126c757fe5b906000526020600020906002020190508060010160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169c508060010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169b508060010160149054906101000a900461ffff1661ffff169a508060010160169054906101000a900461ffff1661ffff1699508060010160189054906101000a900461ffff1661ffff16985080600101601a9054906101000a900461ffff1661ffff1697508060000154965080600101601c9054906101000a900460ff1660ff16955080600101601d9054906101000a900460ff1660ff16945080600101601e9054906101000a900460ff1660ff16935080600101601f9054906101000a900460ff1660ff1692508060010160109054906101000a900463ffffffff1663ffffffff1691505091939597999b5091939597999b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561287157600080fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fd8c7106040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15156128f657600080fd5b6102c65a03f1151561290757600080fd5b505050565b60088054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156129a25780601f10612977576101008083540402835291602001916129a2565b820191906000526020600020905b81548152906001019060200180831161298557829003601f168201915b505050505081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a0857600080fd5b600387815481101515612a1757fe5b906000526020600020906002020190508581600101601c6101000a81548160ff021916908360ff1602179055508481600101601d6101000a81548160ff021916908360ff1602179055508381600101601e6101000a81548160ff021916908360ff1602179055508281600101601f6101000a81548160ff021916908360ff160217905550818160010160106101000a81548163ffffffff021916908363ffffffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443876040518082815260200191505060405180910390a150505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612b5a57600080fd5b80600383815481101515612b6a57fe5b9060005260206000209060020201600101601e6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260149054906101000a900460ff16151515612bea57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612c2657600080fd5b612c3033826130c6565b1515612c3b57600080fd5b612c463383836131f4565b5050565b60066020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b600d5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612d1357600080fd5b600c54601154101515612d2557600080fd5b612d3560008787878787306133b2565b9050612d6381600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613132565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327ebe40a82612daa61373f565b600e54600f54306040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050600060405180830381600087803b1515612e4a57600080fd5b6102c65a03f11515612e5b57600080fd5b505050601160008154809291906001019190505550505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612ed357600080fd5b6000600960146101000a81548160ff021916908315150217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612f4b57600080fd5b60011515600960149054906101000a900460ff161515141515612f6d57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561300d57600080fd5b8060038381548110151561301d57fe5b9060005260206000209060020201600101601d6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600960149054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b60115481565b60008273ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b806006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60008273ffffffffffffffffffffffffffffffffffffffff166006600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151561335257600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001900391905055506006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006133bc613836565b6000610180604051908101604052808a8152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff1681526020018b61ffff1681526020018960ff1681526020018860ff1681526020018760ff1681526020018660ff16815250915060016003805480600101828161346591906138ce565b916000526020600020906002020160008590919091506000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160106101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010160146101000a81548161ffff021916908361ffff16021790555060a08201518160010160166101000a81548161ffff021916908361ffff16021790555060c08201518160010160186101000a81548161ffff021916908361ffff16021790555060e082015181600101601a6101000a81548161ffff021916908361ffff16021790555061010082015181600101601c6101000a81548160ff021916908360ff16021790555061012082015181600101601d6101000a81548160ff021916908360ff16021790555061014082015181600101601e6101000a81548160ff021916908360ff16021790555061016082015181600101601f6101000a81548160ff021916908360ff160217905550505003905063ffffffff811115151561363657600080fd5b8373ffffffffffffffffffffffffffffffffffffffff167fbf35d5dec71961df48692be84c87a26764f247c86b5ac5e3c6fe5ae128181279828460000151604051808381526020018281526020019250505060405180910390a261369c600085836131f4565b8092505050979650505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561370757600080fd5b600260149054906101000a900460ff16151561372257600080fd5b6000600260146101000a81548160ff021916908315150217905550565b6000806000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eac9d94c6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156137d257600080fd5b6102c65a03f115156137e357600080fd5b5050506040518051905091506fffffffffffffffffffffffffffffffff8210151561380d57600080fd5b60028281151561381957fe5b0482019050600d5481101561382e57600d5490505b809250505090565b6101806040519081016040528060008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525090565b8154818355818115116138fb576002028160020283600052602060002091820191016138fa9190613900565b5b505050565b613a1591905b80821115613a11576000808201600090556001820160006101000a81549067ffffffffffffffff02191690556001820160086101000a81549067ffffffffffffffff02191690556001820160106101000a81549063ffffffff02191690556001820160146101000a81549061ffff02191690556001820160166101000a81549061ffff02191690556001820160186101000a81549061ffff021916905560018201601a6101000a81549061ffff021916905560018201601c6101000a81549060ff021916905560018201601d6101000a81549060ff021916905560018201601e6101000a81549060ff021916905560018201601f6101000a81549060ff021916905550600201613906565b5090565b905600a165627a7a72305820a83bdcec2a792147a019386bfc2fab66b892bdc374fe202779b64560c62532d20029
Deployed Bytecode
0x606060405260043610610272576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630519ce79146102d057806305e455461461032557806306fdde031461034e578063095ea7b3146103dc5780630a0f81681461041e5780631051db341461047357806318160ddd146104a05780631c7276f5146104c957806323b872dd146104f857806327d7874c146105595780632ba73c15146105925780633746010d146105cb5780633d7d3f5a1461064a5780633f4ba83a14610688578063404d0e3e1461069d5780634707f44f146106c65780634e0a33791461071c5780634eeee8ac146107555780635c975abb146107c55780635fd8c710146107f25780636352211e14610807578063677011871461086a57806367e54367146109195780636af04a571461096e5780636fbde40d146109c357806370a08231146109fc5780637158798814610a4957806375a2b40714610a8257806378b5a57614610af45780637cb5669814610b23578063809e52b214610b65578063811743e714610b975780638456cb5914610bfa578063889fa1dc14610c0f57806391876e5714610c9357806395d89b4114610ca85780639e570d6f14610d36578063a76eeab214610d98578063a9059cbb14610dc7578063ab605eea14610e09578063ab94837414610e6c578063ae4d0ff714610e95578063b047fb5014610ebe578063b531933514610f13578063b8ba7c7f14610f3c578063bf5a451b14610f8f578063c721b34b14610fa4578063d04d26fe14610fdd578063dfb8c6c21461100c578063e6cbe35114611039578063eb845c171461108e578063f1ca9410146110b7575b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156102ce57600080fd5b005b34156102db57600080fd5b6102e36110e0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561033057600080fd5b610338611106565b6040518082815260200191505060405180910390f35b341561035957600080fd5b61036161110c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103a1578082015181840152602081019050610386565b50505050905090810190601f1680156103ce5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103e757600080fd5b61041c600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506111aa565b005b341561042957600080fd5b610431611244565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561047e57600080fd5b610486611269565b604051808215151515815260200191505060405180910390f35b34156104ab57600080fd5b6104b3611272565b6040518082815260200191505060405180910390f35b34156104d457600080fd5b6104f6600480803590602001909190803560ff16906020019091905050611282565b005b341561050357600080fd5b610557600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611352565b005b341561056457600080fd5b610590600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506113a8565b005b341561059d57600080fd5b6105c9600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611482565b005b34156105d657600080fd5b610648600480803561ffff1690602001909190803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061155d565b005b341561065557600080fd5b61068660048080359060200190919080359060200190919080359060200190919080359060200190919050506115e5565b005b341561069357600080fd5b61069b611738565b005b34156106a857600080fd5b6106b0611873565b6040518082815260200191505060405180910390f35b34156106d157600080fd5b610706600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611879565b6040518082815260200191505060405180910390f35b341561072757600080fd5b610753600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611930565b005b341561076057600080fd5b6107c3600480803590602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803561ffff16906020019091905050611a0b565b005b34156107d057600080fd5b6107d8611b7b565b604051808215151515815260200191505060405180910390f35b34156107fd57600080fd5b610805611b8e565b005b341561081257600080fd5b6108286004808035906020019091905050611c65565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561087557600080fd5b610917600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803563ffffffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803567ffffffffffffffff1690602001909190803561ffff1690602001909190803561ffff16906020019091905050611cde565b005b341561092457600080fd5b61092c611eea565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561097957600080fd5b610981611f10565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156109ce57600080fd5b6109fa600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611f36565b005b3415610a0757600080fd5b610a33600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061206d565b6040518082815260200191505060405180910390f35b3415610a5457600080fd5b610a80600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506120b6565b005b3415610a8d57600080fd5b610af2600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506121d3565b005b3415610aff57600080fd5b610b21600480803590602001909190803560ff169060200190919050506122eb565b005b3415610b2e57600080fd5b610b63600480803590602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506123bb565b005b3415610b7057600080fd5b610b95600480803590602001909190803563ffffffff16906020019091905050612457565b005b3415610ba257600080fd5b610bb8600480803590602001909190505061252d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610c0557600080fd5b610c0d612560565b005b3415610c1a57600080fd5b610c3060048080359060200190919050506126a4565b604051808d81526020018c81526020018b81526020018a81526020018981526020018881526020018781526020018681526020018581526020018481526020018381526020018281526020019c5050505050505050505050505060405180910390f35b3415610c9e57600080fd5b610ca6612815565b005b3415610cb357600080fd5b610cbb61290c565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610cfb578082015181840152602081019050610ce0565b50505050905090810190601f168015610d285780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3415610d4157600080fd5b610d96600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803563ffffffff169060200190919050506129aa565b005b3415610da357600080fd5b610dc5600480803590602001909190803560ff16906020019091905050612afe565b005b3415610dd257600080fd5b610e07600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050612bce565b005b3415610e1457600080fd5b610e2a6004808035906020019091905050612c4a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610e7757600080fd5b610e7f612c7d565b6040518082815260200191505060405180910390f35b3415610ea057600080fd5b610ea8612c83565b6040518082815260200191505060405180910390f35b3415610ec957600080fd5b610ed1612c89565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3415610f1e57600080fd5b610f26612caf565b6040518082815260200191505060405180910390f35b3415610f4757600080fd5b610f8d600480803590602001909190803560ff1690602001909190803560ff1690602001909190803560ff1690602001909190803560ff16906020019091905050612cb5565b005b3415610f9a57600080fd5b610fa2612e78565b005b3415610faf57600080fd5b610fdb600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050612ef0565b005b3415610fe857600080fd5b61100a600480803590602001909190803560ff16906020019091905050612fb1565b005b341561101757600080fd5b61101f613081565b604051808215151515815260200191505060405180910390f35b341561104457600080fd5b61104c613094565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561109957600080fd5b6110a16130ba565b6040518082815260200191505060405180910390f35b34156110c257600080fd5b6110ca6130c0565b6040518082815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60105481565b60078054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111a25780601f10611177576101008083540402835291602001916111a2565b820191906000526020600020905b81548152906001019060200180831161118557829003601f168201915b505050505081565b600260149054906101000a900460ff161515156111c657600080fd5b6111d033826130c6565b15156111db57600080fd5b6111e58183613132565b808273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001905090565b6000600160038054905003905090565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112de57600080fd5b806003838154811015156112ee57fe5b9060005260206000209060020201600101601f6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260149054906101000a900460ff1615151561136e57600080fd5b6113783382613188565b151561138357600080fd5b61138d83826130c6565b151561139857600080fd5b6113a38383836131f4565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561140357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561143f57600080fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114dd57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561151957600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115b957600080fd5b60008761ffff161115156115cc57600080fd5b6115db878787878787876133b2565b5050505050505050565b600260149054906101000a900460ff1615151561160157600080fd5b61160b33856130c6565b151561161657600080fd5b61164284600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613132565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327ebe40a85858585336040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050600060405180830381600087803b151561171e57600080fd5b6102c65a03f1151561172f57600080fd5b50505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561179357600080fd5b600260149054906101000a900460ff1615156117ae57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415151561180c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561186957600080fd5b6118716136ac565b565b600c5481565b6000806000809150600190505b61188e611272565b81111515611923578473ffffffffffffffffffffffffffffffffffffffff166004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611916578382141561190d57809250611928565b81806001019250505b8080600101915050611886565b600080fd5b505092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561198b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156119c757600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a6957600080fd5b600387815481101515611a7857fe5b90600052602060002090600202019050858160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550848160010160146101000a81548161ffff021916908361ffff160217905550838160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160010160166101000a81548161ffff021916908361ffff160217905550818160010160186101000a81548161ffff021916908361ffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443876040518082815260200191505060405180910390a150505050505050565b600260149054906101000a900460ff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611bea57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3073ffffffffffffffffffffffffffffffffffffffff16319081150290604051600060405180830381858888f193505050501515611c6357600080fd5b565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611cd957600080fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611d3c57600080fd5b60038c815481101515611d4b57fe5b906000526020600020906002020190508a81600101601c6101000a81548160ff021916908360ff1602179055508981600101601d6101000a81548160ff021916908360ff1602179055508881600101601e6101000a81548160ff021916908360ff1602179055508781600101601f6101000a81548160ff021916908360ff160217905550868160010160106101000a81548163ffffffff021916908363ffffffff160217905550858160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550848160010160146101000a81548161ffff021916908361ffff160217905550838160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550828160010160166101000a81548161ffff021916908361ffff160217905550818160010160186101000a81548161ffff021916908361ffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a54438c6040518082815260200191505060405180910390a1505050505050505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611f9357600080fd5b8190508073ffffffffffffffffffffffffffffffffffffffff166385b861886000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561200257600080fd5b6102c65a03f1151561201357600080fd5b50505060405180519050151561202857600080fd5b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561211157600080fd5b600260149054906101000a900460ff16151561212c57600080fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f450db8da6efbe9c22f2347f7c2021231df1fc58d3ae9a2fa75d39fa44619930581604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561222f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561228a57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b600b5460105410151561229c57600080fd5b600c546011541015156122ae57600080fd5b6010600081548092919060010191905055506011600081548092919060010191905055506122e260008787878787876133b2565b50505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561234757600080fd5b8060038381548110151561235757fe5b9060005260206000209060020201600101601c6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561241757600080fd5b600260149054906101000a900460ff1615151561243357600080fd5b61243d30836130c6565b151561244857600080fd5b6124533082846131f4565b5050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156124b357600080fd5b806003838154811015156124c357fe5b906000526020600020906002020160010160106101000a81548163ffffffff021916908363ffffffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b60046020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061260857506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b806126605750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561266b57600080fd5b600260149054906101000a900460ff1615151561268757600080fd5b6001600260146101000a81548160ff021916908315150217905550565b600080600080600080600080600080600080600060038e8154811015156126c757fe5b906000526020600020906002020190508060010160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169c508060010160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169b508060010160149054906101000a900461ffff1661ffff169a508060010160169054906101000a900461ffff1661ffff1699508060010160189054906101000a900461ffff1661ffff16985080600101601a9054906101000a900461ffff1661ffff1697508060000154965080600101601c9054906101000a900460ff1660ff16955080600101601d9054906101000a900460ff1660ff16945080600101601e9054906101000a900460ff1660ff16935080600101601f9054906101000a900460ff1660ff1692508060010160109054906101000a900463ffffffff1663ffffffff1691505091939597999b5091939597999b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561287157600080fd5b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fd8c7106040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401600060405180830381600087803b15156128f657600080fd5b6102c65a03f1151561290757600080fd5b505050565b60088054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156129a25780601f10612977576101008083540402835291602001916129a2565b820191906000526020600020905b81548152906001019060200180831161298557829003601f168201915b505050505081565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612a0857600080fd5b600387815481101515612a1757fe5b906000526020600020906002020190508581600101601c6101000a81548160ff021916908360ff1602179055508481600101601d6101000a81548160ff021916908360ff1602179055508381600101601e6101000a81548160ff021916908360ff1602179055508281600101601f6101000a81548160ff021916908360ff160217905550818160010160106101000a81548163ffffffff021916908363ffffffff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443876040518082815260200191505060405180910390a150505050505050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612b5a57600080fd5b80600383815481101515612b6a57fe5b9060005260206000209060020201600101601e6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600260149054906101000a900460ff16151515612bea57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614151515612c2657600080fd5b612c3033826130c6565b1515612c3b57600080fd5b612c463383836131f4565b5050565b60066020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e5481565b600d5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612d1357600080fd5b600c54601154101515612d2557600080fd5b612d3560008787878787306133b2565b9050612d6381600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16613132565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166327ebe40a82612daa61373f565b600e54600f54306040518663ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200195505050505050600060405180830381600087803b1515612e4a57600080fd5b6102c65a03f11515612e5b57600080fd5b505050601160008154809291906001019190505550505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612ed357600080fd5b6000600960146101000a81548160ff021916908315150217905550565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515612f4b57600080fd5b60011515600960149054906101000a900460ff161515141515612f6d57600080fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561300d57600080fd5b8060038381548110151561301d57fe5b9060005260206000209060020201600101601d6101000a81548160ff021916908360ff1602179055507fbafa9c9d9369c3f6903994304ebe944beaa2e4253e647da960014a07ec1a5443826040518082815260200191505060405180910390a15050565b600960149054906101000a900460ff1681565b600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f5481565b60115481565b60008273ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b806006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60008273ffffffffffffffffffffffffffffffffffffffff166006600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001019190505550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151561335257600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906001900391905055506006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006133bc613836565b6000610180604051908101604052808a8152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff1681526020018b61ffff1681526020018960ff1681526020018860ff1681526020018760ff1681526020018660ff16815250915060016003805480600101828161346591906138ce565b916000526020600020906002020160008590919091506000820151816000015560208201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060408201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160106101000a81548163ffffffff021916908363ffffffff16021790555060808201518160010160146101000a81548161ffff021916908361ffff16021790555060a08201518160010160166101000a81548161ffff021916908361ffff16021790555060c08201518160010160186101000a81548161ffff021916908361ffff16021790555060e082015181600101601a6101000a81548161ffff021916908361ffff16021790555061010082015181600101601c6101000a81548160ff021916908360ff16021790555061012082015181600101601d6101000a81548160ff021916908360ff16021790555061014082015181600101601e6101000a81548160ff021916908360ff16021790555061016082015181600101601f6101000a81548160ff021916908360ff160217905550505003905063ffffffff811115151561363657600080fd5b8373ffffffffffffffffffffffffffffffffffffffff167fbf35d5dec71961df48692be84c87a26764f247c86b5ac5e3c6fe5ae128181279828460000151604051808381526020018281526020019250505060405180910390a261369c600085836131f4565b8092505050979650505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561370757600080fd5b600260149054906101000a900460ff16151561372257600080fd5b6000600260146101000a81548160ff021916908315150217905550565b6000806000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eac9d94c6000604051602001526040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156137d257600080fd5b6102c65a03f115156137e357600080fd5b5050506040518051905091506fffffffffffffffffffffffffffffffff8210151561380d57600080fd5b60028281151561381957fe5b0482019050600d5481101561382e57600d5490505b809250505090565b6101806040519081016040528060008152602001600067ffffffffffffffff168152602001600067ffffffffffffffff168152602001600063ffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525090565b8154818355818115116138fb576002028160020283600052602060002091820191016138fa9190613900565b5b505050565b613a1591905b80821115613a11576000808201600090556001820160006101000a81549067ffffffffffffffff02191690556001820160086101000a81549067ffffffffffffffff02191690556001820160106101000a81549063ffffffff02191690556001820160146101000a81549061ffff02191690556001820160166101000a81549061ffff02191690556001820160186101000a81549061ffff021916905560018201601a6101000a81549061ffff021916905560018201601c6101000a81549060ff021916905560018201601d6101000a81549060ff021916905560018201601e6101000a81549060ff021916905560018201601f6101000a81549060ff021916905550600201613906565b5090565b905600a165627a7a72305820a83bdcec2a792147a019386bfc2fab66b892bdc374fe202779b64560c62532d20029
Swarm Source
bzzr://a83bdcec2a792147a019386bfc2fab66b892bdc374fe202779b64560c62532d2
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.