ChunkiesManager
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
5
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
12 additional
variables
Balances ($0.00)
No balances found for "ChunkiesManager"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "ChunkiesManager"
ABI
ABI objects
Getter at block 22109281
NATIVE_TOKEN_ADDRESS() view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
UPGRADE_INTERFACE_VERSION() view returns (string)
5.0.0
getAcceptedCurrencies() view returns (address[] acceptedCurrencies)
[]
getAssetIds() view returns (uint64 othalaSoulAssetId, uint64 othalaAssetId, uint64 workerSoulAssetId, uint64 workerAssetId)
(othalaSoulAssetId=0, othalaAssetId=0, workerSoulAssetId=0, workerAssetId=0)
getAttributesRepo() view returns (address attributesRepo)
0x0000000000000000000000000000000000000000
getBeneficiary() view returns (address beneficiary)
0x0000000000000000000000000000000000000000
getDeathCooldownBase() view returns (uint256 deathCooldownBase)
0
getDeathOnLevelUpOddsFallback() view returns (uint8 odds)
0
getExperienceConfiguration() view returns (uint256 experienceBase, uint256 experienceGrowthRate, uint256 experienceLossInDeathBPS)
(experienceBase=0, experienceGrowthRate=0, experienceLossInDeathBPS=0)
getItemAssetIds() view returns (uint64[][] defaultAssetIdsWorkerChunky, uint64[][] defaultAssetIdsOthalaChunky, uint64 defaultBackgroundIdWorkerChunky, uint64 defaultBackgroundIdOthalaChunky)
(defaultAssetIdsWorkerChunky=[], defaultAssetIdsOthalaChunky=[], defaultBackgroundIdWorkerChunky=0, defaultBackgroundIdOthalaChunky=0)
getPoolFee() view returns (uint24)
0
getResurrectMultiplierFallback() view returns (uint32 multiplierBPS)
0
getSkybreach() view returns (address skybreach)
0x0000000000000000000000000000000000000000
getStatsKeys() view returns (string statsKey)
getSwapRouter() view returns (address)
0x0000000000000000000000000000000000000000
getWrappedNativeToken() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0000000000000000000000000000000000000000
proxiableUUID() view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
Read-only
getChunkyCooldownEnd(uint256 chunkyId) view returns (uint256 cooldownEnd)
getCoolDownForLevel(uint16 level) view returns (uint256)
getDeathOnLevelUpOdds(uint16 level) view returns (uint8 odds)
getExperienceForLevel(uint256 level) view returns (uint48 experience)
getIsOthalaAndIsDead(uint256 chunkyId) view returns (bool isOthala, bool isDead)
getLevelAndExperience(uint256 chunkyId) view returns (uint16 level, uint48 experience)
getPricesForCurrency(address currency) view returns (uint256 mintingPrice, uint256 resurrectingPrice)
getResurrectMultiplierForLevel(uint16 level) view returns (uint32 multiplierBPS)
getResurrectPriceForLevel(uint16 level, address currency) view returns (uint256 price)
isContributor(address contributor) view returns (bool)
isValidSwapPair(address currencyIn, address currencyOut) view returns (bool)
mergeAttributes(uint16 level, uint48 experience) pure returns (uint256 mergedAttributes)
powerWithScaleFactor(uint256 base, uint256 exp) view returns (uint256)
unmergeAttributes(uint256 attributes) pure returns (uint16 level, uint48 experience)
State-modifying
Events claimOthalas(address to, uint256[] othalaIds)
getReducedLevelAndExperienceForChunky(uint256 chunkyId) returns (uint16 newLevel, uint48 newExperience)
increaseExperience(uint256 chunkyId, uint48 additionalXP)
initialize(address chunkies, address othalaChunkies, address items, address backgrounds, address attributesRepo, address beneficiary, string statsKey)
initializeChunkies(uint256[] chunkyIds)
killChunky(uint256 chunkyId)
levelUp(uint256[] chunkyIds)
manageContributor(address contributor, bool grantRole)
mintChunkies(address to, uint256 numToMint, address currency) payable
mintChunkiesWithSwap(address to, uint256 numToMint, address currency, address inputCurrency, uint256 inputMaxAmount) payable
onERC721Received(address operator, address from, uint256 tokenId, bytes data) returns (bytes4)
renounceOwnership()
resurrectSoul(uint256 chunkyId, address currency)
resurrectSoulWithSwap(uint256 chunkyId, address currency, address inputCurrency, uint256 inputMaxAmount) payable
setAssetIds(uint64 othalaSoulAssetId, uint64 othalaAssetId, uint64 workerSoulAssetId, uint64 workerAssetId)
setAttributesRepo(address attributesRepo)
setBeneficiary(address beneficiary)
setDeathCooldownBase(uint256 deathCooldownBase)
setDeathOnLevelUpOddsAndRevivingPrices(uint16[] levels, uint8[] odds, uint32[] resurrectMultipliers, uint8 deathOnLevelUpOddsFallback, uint32 resurrectMultiplierFallback)
setExperienceConfiguration(uint256 experienceBase, uint256 experienceGrowthRate, uint256 experienceLossInDeathBPS)
setItemAssetIds(uint64[][] defaultAssetIdsWorkerChunky, uint64[][] defaultAssetIdsOthalaChunky, uint64 defaultBackgroundIdWorkerChunky, uint64 defaultBackgroundIdOthalaChunky)
setPricesForCurrency(address currency, uint256 mintingPrice, uint256 resurrectingPrice)
setSkybreach(address skybreach)
setStatsKeys(string statsKey)
setSwapRouterAndFee(address swapRouter, uint24 poolFee)
setValidSwapPair(address currencyIn, address currencyOut, bool valid)
setWrappedNativeToken(address wrappedNativeToken)
swapExactOutput(address currencyIn, address currencyOut, uint256 amountInMaximum, uint256 amountOut, address recipient) payable returns (uint256 amountIn)
transferOwnership(address newOwner)
upgradeToAndCall(address newImplementation, bytes data) payable
ChunkyDied(uint256 chunkyId, uint256 cooldownEnd)
ChunkyIncreasedExperience(uint256 chunkyId, uint48 additionalXP, uint48 newExperience)
ChunkyLevelUp(uint256 chunkyId, uint16 newLevel)
ClaimedOthala(uint256 chunkyId, uint256 othalaId)
ContributorUpdate(address indexed contributor, bool isContributor)
Initialized(uint64 version)
MintedChunkies(address to, uint256 firstChunkyId, uint256 total)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ResurrectedSoul(uint256 chunkyId)
Upgraded(address indexed implementation)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
ChunkyIsAlive()
ChunkyIsDead()
CooldownNotComplete(uint256 remainingTimeInSeconds)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
FailedInnerCall()
FailedToSend()
InvalidCurrency()
InvalidInitialization()
InvalidSwapPair()
LengthMismatch()
NotChunkyOwner()
NotEnoughExperience()
NotInitializing()
NotSkyBreach()
RMRKNewContributorIsZeroAddress()
RMRKNewOwnerIsZeroAddress()
RMRKNotOwner()
RMRKNotOwnerOrContributor()
SafeERC20FailedOperation(address token)
UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID(bytes32 slot)
WrongValueSent(uint256 expected, uint256 sent)