DragonKing
Verified contract
Active on
Ethereum with 3,906 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($22,906.33)
Native
Value
$22,906.33
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
ETH | Native | 6.207104 | $3,690.34 |
$22,906.33 | |
MGC | ERC-20 | 3 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 7085652 | 6 years ago | | | 0 | 0.0015333600 | |
| 7082993 | 6 years ago | | | 0 | 0.0015500000 | |
| 7082990 | 6 years ago | | | 0 | 0.00080000000 | |
| 7079867 | 6 years ago | | | 0 | 0.00011529800 | |
| 7079491 | 6 years ago | | | 0 | 0.00080000000 | |
| 7079294 | 6 years ago | | | 0 | 0.000082662400 | |
| 7079292 | 6 years ago | | | 0 | 0.00010405280 | |
| 7079276 | 6 years ago | | | 0 | 0.00010438080 | |
| 7078761 | 6 years ago | | | 0 | 0.0011286300 | |
| 7078753 | 6 years ago | | | 0 | 0.00063945000 |
ABI
ABI objects
Getter at block 21310116
ARCHER_MAX_TYPE() view returns (uint8)
[unknown]
ARCHER_MIN_TYPE() view returns (uint8)
[unknown]
BALLOON_MAX_TYPE() view returns (uint8)
[unknown]
BALLOON_MIN_TYPE() view returns (uint8)
[unknown]
DRAGON_MAX_TYPE() view returns (uint8)
[unknown]
DRAGON_MIN_TYPE() view returns (uint8)
[unknown]
INVALID_CHARACTER_INDEX() view returns (uint16)
[unknown]
INVALID_CHARACTER_TYPE() view returns (uint8)
[unknown]
KNIGHT_MAX_TYPE() view returns (uint8)
[unknown]
KNIGHT_MIN_TYPE() view returns (uint8)
[unknown]
NUMBER_OF_LEVELS() view returns (uint8)
[unknown]
WIZARD_MAX_TYPE() view returns (uint8)
[unknown]
WIZARD_MIN_TYPE() view returns (uint8)
[unknown]
castleTreasury() view returns (uint128)
[unknown]
config() view returns (address)
[unknown]
getFees() view returns (uint256)
[unknown]
getNumArchers() view returns (uint16 numArchers)
[unknown]
getNumDragons() view returns (uint16 numDragons)
[unknown]
getNumKnights() view returns (uint16 numKnights)
[unknown]
getNumWizards() view returns (uint16 numWizards)
[unknown]
lastCastleLootDistributionTimestamp() view returns (uint256)
[unknown]
lastEruptionTimestamp() view returns (uint256)
[unknown]
nextId() view returns (uint32)
[unknown]
noKing() view returns (uint32)
[unknown]
numCharacters() view returns (uint16)
[unknown]
oldest() view returns (uint32)
[unknown]
owner() view returns (address)
[unknown]
Read-only
cooldown(uint32) view returns (uint256)
get10Characters(uint16 startIndex) view returns (uint32[10] characterIds, uint8[10] types, uint128[10] values, address[10] owners)
getCharacter(uint32 characterId) view returns (uint8, uint128, address)
getCharacterIndex(uint32 characterId) view returns (uint16)
ids(uint256) view returns (uint32)
isValidAdversary(uint8 characterType, uint8 adversaryType) pure returns (bool)
numCharactersXType(uint8) view returns (uint16)
protection(uint32) view returns (uint8)
State-modifying
Events addCharacters(uint8 characterType) payable
collectFees(uint128 amount)
destroy()
destroyAndSend(address _recipient)
distributeCastleLoot()
exit()
fight(uint32 characterID, uint16 characterIndex)
findOldest()
giftCharacter(address receiver, uint8 characterType) payable
payOut()
receiveApproval(address sender, uint256 value, address tokenContract, bytes callData)
sellCharacter(uint32 characterId)
setConfig(address _value)
stop()
transferOwnership(address newOwner)
triggerVolcanoEruption()
withdraw()
NewDistributionCastleLoot(uint128 castleLoot)
NewEruption(uint32[] hitCharacters, uint128 value, uint128 gasCost)
NewExit(address player, uint256 totalBalance, uint32[] removedCharacters)
NewFight(uint32 winnerID, uint32 loserID, uint256 value, uint16 probability, uint16 dice)
NewProtection(uint32 characterId, uint8 lifes)
NewPurchase(address player, uint8 characterType, uint16 amount, uint32 startId)
NewSell(uint32 characterId, address player, uint256 value)
NewTeleport(uint32 characterId)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
constructor(address tptAddress, address ndcAddress, address sklAddress, address xperAddress, address luckAddress, address _configAddress)
This contract contains no fallback and receive objects.
This contract contains no error objects.