DegenFarm

Verified contract

Active on Ethereum with 1,308 txns
Deployed by via 0x778c517d at 12621952
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 1 additional slot
-
variable spans 19 additional slots
-
variable spans 4 additional slots
-
variable spans 19 additional slots
ERC-20
--
 (#5)
ERC-1555
--
 (#4)
ERC-1555
--
 (#3)
ERC-1555
--
 (#2)
ERC-1555
--
 (#1)
ERC-1555
--
 (#0)
ERC-1555
--
 (#10189)
ERC-721
--
 (#10056)
ERC-721
--
 (#869)
ERC-721
--
0x030d2863b17d9ca7cf70ef2b513158533490ccc3b023f8c129f4fc91b0f653b0
0x6a6f10d7b9adc4a89dc6c3f544e099ef7e9fe906c940561d25ea9294f59b3e90
0x9d6399954d0d23bf9f88e5886022573b7361c6c178fdb4147e17d1c9fa0df434
0x041dae19a394bfb6c75d20e5198777e34bc816ae99ca42ed4817f0180f7a45b7
0x46cf9f27e5abffa6070f80c5e9153bd76d55d9a403e79a1020db2d10370a6706
0x618661b9cc33bf3876e62a7166c97a31a16622aac38730001ef4129c1ac4da51
0x5359a5aa5507ba9b485206b6af2bfa277918ae3e4699f618a357c09de3e7c13c
0xdacbed94a92a6e23766dc2a976d15055dbdc65a5cc77e19d6a6840bc80fbd593
0x2396d8697d7be0a4be7e2769094ac82ede733eef25c0c4b2ebf9ab4e6fbb6a9f
0xf2cbf4b9d09586198caf4109e52298d8f61cc1504fa4abdc26c1f26f958d0b95

Functions
Getter at block 21425223
BONUS_POINTS_AMULET_HOLD(view returns (uint256)
10
CHAD_COUNT_IN_TYPE(view returns (uint16)
20
COMMON_AMULET_COUNT(view returns (uint256)
2
CREATURE_P_MULT(view returns (uint32)
230
CREATURE_TYPE_COUNT(view returns (uint8)
20
CREATURE_TYPE_COUNT_MAX(view returns (uint8)
20
FARMING_DURATION(view returns (uint256)
604800
FARMING_ENABLED(view returns (bool)
true
FARM_DUNG_AMOUNT(view returns (uint256)
250000000000000000000000000000000000
MAX_ALL_NORMIES(view returns (uint16)
2000
MAX_LANDS(view returns (uint16)
2500
NFT_ID_MULTIPLIER(view returns (uint256)
10000
NORMIE_COUNT_IN_TYPE(view returns (uint16)
100
REVEAL_ENABLED(view returns (bool)
true
TOOL_TYPE_COUNT(view returns (uint256)
6
TOOL_UNSTAKE_DELAY(view returns (uint256)
604800
allNormiesesLeft(view returns (uint16)
1111
eggs(view returns (address)
0xedd50bece1a87f7b3104633f2c10a1b20c5f49fc
farm(view returns (address landaddress creaturesaddress inventoryaddress bagstokenaddress dungtoken)
(land=0xe1d05ad0de9690cb553bde0705bccd1ee983f924, creatures=0xd227df494367a8b769b4bf2bbebd0388a8758741, inventory=0x123456c13537c42f713fb748fb086344b825b38d, bagstoken=0xbaba0d970e735c7e48bba07c1164c4e0449ae9b8, dungtoken=0xdada00a9c23390112d08a1377cc59f7d03d9df55)
landCount(view returns (uint16 totaluint16 left)
(total=2500, left=1954)
owner(view returns (address)
0x39b550e389f20ba42a76ec083f0de75b40531598
priceProvider(view returns (address)
0x3e7d6393ea108800e14a7a61ad961b80b13c5009
Read-only
COMMON_AMULETS(uint256view returns (address)
amulets(uint256view returns (address)
creaturesBorn(uint256view returns (uint16 totalNormieuint16 leftNormieuint16 totalChaduint16 leftChadToDiscoveruint16 totalDegenuint16 leftDegenToDiscoveruint16 chadFarmAttemptsuint16 degenFarmAttempts)
farming(uint256view returns (uint256 creatureIduint256 landIduint256 harvestTimeuint256 amuletsPrice1uint256 amuletsPrice2uint8 harvestuint256 harvestId)
getCreatureAmulets(uint8 _creatureTypeview returns (address)
getCreatureStat(uint8 _creatureTypeview returns (uint16uint16uint16uint16uint16uint16uint16uint16)
getFarmingAllowedCreatures(address _ownerview returns (uint256[])
getFarmingAllowedCreaturesWithRarity(address _owneruint8 wantRarityview returns (uint256[])
getFarmingById(uint256 _farmingIdview returns (struct DegenFarmBaseFarmRecord)
getOneAmuletPrice(address _tokenview returns (uint256)
getUsersTokens(address _ownerview returns (uint256[])
getWeightedChoice(uint32[] _weightsview returns (uint8)
isFarmingAllowedForCreature(uint256 creatureIdview returns (bool)
maxAmuletBalances(addressview returns (uint256)
parents(uint256view returns (uint256)
supportsInterface(bytes4 interfaceIdview returns (bool)
userStakedTools(addressuint256view returns (uint256)
State-modifying
addOperator(address _contractaddress newOperator
enableFarming(bool _isEnabled
enableReveal(bool _isEnabled
farmDeploy(uint256 _creatureIduint256 _landId
harvest(uint256 _deployId
onERC1155BatchReceived(address operatoraddress fromuint256[] idsuint256[] valuesbytes datareturns (bytes4)
onERC1155Received(address operatoraddress fromuint256 iduint256 valuebytes datareturns (bytes4)
reclaimToken(address _contractaddress anyTokensaddress _admin
removeOperator(address _contractaddress oldOperator
renounceOwnership(
reveal(uint256 count
setAmuletForOneCreature(uint8 _indexaddress _token
setAmulets(address[] _tokens
setOneCommonAmulet(uint8 _indexaddress _token
setPriceProvider(address _priceProvider
setSigner(address _contractaddress _newSigner
stakeOneTool(uint8 _itemId
transferOwnership(address newOwner
unstakeOneTool(uint8 _itemId
Events
Harvest(uint256 indexed _eggIdaddress farmeruint8 resultuint256 baseChanceuint256 commonAmuletHolduint256 amuletBullTrenduint256 inventoryHolduint256 amuletMaxBalanceuint256 resultChance
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
Reveal(address _farmeruint256 indexed _tokenIdbool _isCreatureuint8 _animalType
Stake(address owneruint8 innventory
UnStake(address owneruint8 innventory
Constructor
constructor(address _landaddress _creaturesaddress _inventoryaddress _bagstokenaddress _dungtokenaddress _eggs
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.