MyEtherCityGame
Verified contract
Active on
Ethereum with 1,195 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
PRO | ERC-20 | 0.088889 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 7134784 | 6 years ago | | | 0 | 0.00011086600 | |
| 7134781 | 6 years ago | | | 0 | 0.000045040000 | |
| 7134780 | 6 years ago | | | 0 | 0.000080866000 | |
| 6934072 | 6 years ago | | | 0 | 0.00027702600 | |
| 6833346 | 6 years ago | | | 0 | 0.00016198800 | |
| 6615573 | 6 years ago | | | 0 | 0.000089160000 | |
| 6615551 | 6 years ago | | | 0 | 0.00076882400 | |
| 6609336 | 6 years ago | | | 0.015 | 0.011772774 | |
| 6601861 | 6 years ago | | | 0.015 | 0.0059066970 | |
| 6599834 | 6 years ago | | | 0.015 | 0.0098033450 |
ABI
ABI objects
Getter at block 21309965
getCountCities() view returns (uint256)
110
Read-only
BuildingTypeMetalNeeded(uint256) view returns (uint256)
BuildingTypeSquaresOccupied(uint256) view returns (uint256)
CityBuildingsCount(uint256) view returns (uint256)
CityBusinessCount(uint256) view returns (uint256)
CitySalesTransactionsCount(uint256) view returns (uint256)
CountBusinessesPerType(uint256) view returns (uint256)
getActiveBusinessesPerCity(uint256 _cityId) view returns (uint256[])
getActiveBusinessesPerType(uint256 _businessType) view returns (uint256[])
getBuilding(uint256 _buildingId) view returns (uint256 buildingType, uint256 cityId, uint32 readyTime)
getBusiness(uint256 _businessId) view returns (uint256 itemToProduce, uint256 itemPrice, uint256 cityId, uint256 cityMetalStock, uint256 readyTime, uint256 productionTime, uint256 cityLandId, address cityOwner)
getCity(uint256 _cityId) view returns (uint256 landId, address landOwner, address cityOwner, uint256 cityPrice, uint256 cityGdp, bool cityForSale, uint256 squaresOccupied, uint256 metalStock, uint256 cityPopulation, uint256 healthCitizens, uint256 educationCitizens, uint256 happinessCitizens, uint256 productivityCitizens)
getCityActiveBuildings(uint256 _cityId, uint256 _buildingType) view returns (uint256[])
getCityBuildings(uint256 _cityId, bool _active) view returns (uint256 countBuildings, uint256 countHouses, uint256 countSchools, uint256 countHospital, uint256 countAmusement)
getCityPendingBuildings(uint256 _cityId, uint256 _buildingType) view returns (uint256[])
getCityPopulation(uint256 _cityId) view returns (uint256)
getCountAllBuildings(uint256 _cityId, bool _active) view returns (uint256)
getCountBuildings(uint256 _cityId, uint256 _buildingType, bool _active) view returns (uint256)
getCountSenderCities(address _senderAddress) view returns (uint256)
getCountSenderLands(address _senderAddress) view returns (uint256)
getEducationCitizens(uint256 _cityId) view returns (uint256)
getHappinessCitizens(uint256 _cityId) view returns (uint256)
getHealthCitizens(uint256 _cityId) view returns (uint256)
getLand(uint256 _landId) view returns (address ownerAddress, uint256 landPrice, bool landForSale, bool landForRent, uint256 landOwnerCommission, bool isOccupied, uint256 cityRentingId)
getMaxBusinessesPerCity(uint256 _cityId) view returns (uint256)
getProductionTimeBusiness(uint256 _businessId) view returns (uint256)
getProductivityCitizens(uint256 _cityId) view returns (uint256)
getSalesCity(uint256 _cityId) view returns (uint256[])
getSenderCities(address _senderAddress) view returns (uint256[])
getSenderLands(address _senderAddress) view returns (uint256[])
getTransaction(uint256 _transactionId) view returns (uint256 buyerId, uint256 sellerId, uint256 transactionValue, uint256 itemId, uint256 blockId)
State-modifying
Events CreateLand(uint256 _landPrice, address _owner)
Initialize()
UpdateInitiateContractAddress(address _newAddress)
createBusiness(uint256 _itemId, uint256 _itemPrice, uint256 _cityId)
createCity(uint256 _landId)
purchaseBuilding(uint256 _itemId, uint256 _businessId, uint256 _cityId) payable
purchaseLand(uint256 _landId, uint256 _typePurchase, uint256 _commission) payable
purchaseMetal(uint256 _cityId, uint256 _amount) payable
removeTenant(uint256 _landId)
rentLand(uint256 _landId, bool _createCity, uint256 _cityId)
updateBusiness(uint256 _businessId, uint256 _itemPrice)
updateLand(uint256 _landId, uint256 _landPrice, uint256 _typeUpdate, uint256 _commission)
This contract contains no event objects.
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.