ChunkiesManager

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0x94285de9 at 19292000
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
12 additional variables

No balances found for "ChunkiesManager"

No transactions found for "ChunkiesManager"


Functions
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 othalaSoulAssetIduint64 othalaAssetIduint64 workerSoulAssetIduint64 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 experienceBaseuint256 experienceGrowthRateuint256 experienceLossInDeathBPS)
(experienceBase=0, experienceGrowthRate=0, experienceLossInDeathBPS=0)
getItemAssetIds(view returns (uint64[][] defaultAssetIdsWorkerChunkyuint64[][] defaultAssetIdsOthalaChunkyuint64 defaultBackgroundIdWorkerChunkyuint64 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 chunkyIdview returns (uint256 cooldownEnd)
getCoolDownForLevel(uint16 levelview returns (uint256)
getDeathOnLevelUpOdds(uint16 levelview returns (uint8 odds)
getExperienceForLevel(uint256 levelview returns (uint48 experience)
getIsOthalaAndIsDead(uint256 chunkyIdview returns (bool isOthalabool isDead)
getLevelAndExperience(uint256 chunkyIdview returns (uint16 leveluint48 experience)
getPricesForCurrency(address currencyview returns (uint256 mintingPriceuint256 resurrectingPrice)
getResurrectMultiplierForLevel(uint16 levelview returns (uint32 multiplierBPS)
getResurrectPriceForLevel(uint16 leveladdress currencyview returns (uint256 price)
isContributor(address contributorview returns (bool)
isValidSwapPair(address currencyInaddress currencyOutview returns (bool)
mergeAttributes(uint16 leveluint48 experiencepure returns (uint256 mergedAttributes)
powerWithScaleFactor(uint256 baseuint256 expview returns (uint256)
unmergeAttributes(uint256 attributespure returns (uint16 leveluint48 experience)
State-modifying
claimOthalas(address touint256[] othalaIds
getReducedLevelAndExperienceForChunky(uint256 chunkyIdreturns (uint16 newLeveluint48 newExperience)
increaseExperience(uint256 chunkyIduint48 additionalXP
initialize(address chunkiesaddress othalaChunkiesaddress itemsaddress backgroundsaddress attributesRepoaddress beneficiarystring statsKey
initializeChunkies(uint256[] chunkyIds
killChunky(uint256 chunkyId
levelUp(uint256[] chunkyIds
manageContributor(address contributorbool grantRole
mintChunkies(address touint256 numToMintaddress currencypayable 
mintChunkiesWithSwap(address touint256 numToMintaddress currencyaddress inputCurrencyuint256 inputMaxAmountpayable 
onERC721Received(address operatoraddress fromuint256 tokenIdbytes datareturns (bytes4)
renounceOwnership(
resurrectSoul(uint256 chunkyIdaddress currency
resurrectSoulWithSwap(uint256 chunkyIdaddress currencyaddress inputCurrencyuint256 inputMaxAmountpayable 
setAssetIds(uint64 othalaSoulAssetIduint64 othalaAssetIduint64 workerSoulAssetIduint64 workerAssetId
setAttributesRepo(address attributesRepo
setBeneficiary(address beneficiary
setDeathCooldownBase(uint256 deathCooldownBase
setDeathOnLevelUpOddsAndRevivingPrices(uint16[] levelsuint8[] oddsuint32[] resurrectMultipliersuint8 deathOnLevelUpOddsFallbackuint32 resurrectMultiplierFallback
setExperienceConfiguration(uint256 experienceBaseuint256 experienceGrowthRateuint256 experienceLossInDeathBPS
setItemAssetIds(uint64[][] defaultAssetIdsWorkerChunkyuint64[][] defaultAssetIdsOthalaChunkyuint64 defaultBackgroundIdWorkerChunkyuint64 defaultBackgroundIdOthalaChunky
setPricesForCurrency(address currencyuint256 mintingPriceuint256 resurrectingPrice
setSkybreach(address skybreach
setStatsKeys(string statsKey
setSwapRouterAndFee(address swapRouteruint24 poolFee
setValidSwapPair(address currencyInaddress currencyOutbool valid
setWrappedNativeToken(address wrappedNativeToken
swapExactOutput(address currencyInaddress currencyOutuint256 amountInMaximumuint256 amountOutaddress recipientpayable returns (uint256 amountIn)
transferOwnership(address newOwner
upgradeToAndCall(address newImplementationbytes datapayable 
Events
ChunkyDied(uint256 chunkyIduint256 cooldownEnd
ChunkyIncreasedExperience(uint256 chunkyIduint48 additionalXPuint48 newExperience
ChunkyLevelUp(uint256 chunkyIduint16 newLevel
ClaimedOthala(uint256 chunkyIduint256 othalaId
ContributorUpdate(address indexed contributorbool isContributor
Initialized(uint64 version
MintedChunkies(address touint256 firstChunkyIduint256 total
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ResurrectedSoul(uint256 chunkyId
Upgraded(address indexed implementation
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
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 expecteduint256 sent