GLMR Price: $0.021229 (-1.62%)

Contract

0xd824FD505439F030676798800B3bC11d205C72e7

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To

There are no matching entries

3 Internal Transactions found.

Latest 3 internal transactions

Parent Transaction Hash Block From To
92244632025-01-17 20:18:48372 days ago1737145128
0xd824FD50...d205C72e7
 Contract Creation0 GLMR
92244632025-01-17 20:18:48372 days ago1737145128
0xd824FD50...d205C72e7
 Contract Creation0 GLMR
92244632025-01-17 20:18:48372 days ago1737145128
0xd824FD50...d205C72e7
 Contract Creation0 GLMR
Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BatteringRam

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 20000 runs

Other Settings:
paris EvmVersion, MIT license
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Champion} from "./Champion.sol";

contract BatteringRam {
    uint256 internal _damage;
    uint256 constant b = 7;

    constructor(uint256 damage) {
        _damage = damage;

        new Champion();
        new Champion();
        new Champion();
    }

    function getAttackDamage() external view returns (uint256) {
        return _damage;
    }

    function attack() external pure returns (string memory) {
        return "pum!";
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract Champion {
    uint256 internal constant _damage = 2;
    uint256 constant b = 8;

    function getAttackDamage() external pure returns (uint256) {
        return _damage;
    }

    function attack() external pure returns (string memory) {
        return "plof!";
    }
}

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"damage","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"attack","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getAttackDamage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5060405161036538038061036583398101604081905261002f916100c5565b6000819055604051610040906100b8565b604051809103906000f08015801561005c573d6000803e3d6000fd5b505060405161006a906100b8565b604051809103906000f080158015610086573d6000803e3d6000fd5b5050604051610094906100b8565b604051809103906000f0801580156100b0573d6000803e3d6000fd5b5050506100de565b61014b8061021a83390190565b6000602082840312156100d757600080fd5b5051919050565b61012d806100ed6000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80639e5faafc146037578063e29c6d7614607d575b600080fd5b604080518082018252600481527f70756d21000000000000000000000000000000000000000000000000000000006020820152905160749190608d565b60405180910390f35b6000546040519081526020016074565b600060208083528351808285015260005b8181101560b857858101830151858201604001528201609e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea26469706673582212202e9b2d72bef44a4b35574f8e8f9d8442aec8a90713683373e082e2eceb81fd5664736f6c63430008140033608060405234801561001057600080fd5b5061012b806100206000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c80639e5faafc146037578063e29c6d7614607d575b600080fd5b604080518082018252600581527f706c6f66210000000000000000000000000000000000000000000000000000006020820152905160749190608b565b60405180910390f35b604051600281526020016074565b600060208083528351808285015260005b8181101560b657858101830151858201604001528201609c565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea26469706673582212205f2a06183232526f6e038f61a3ae76125ed498d142cf435950e9bfbdf34caaeb64736f6c634300081400330000000000000000000000000000000000000000000000000000000000000032

Deployed Bytecode

0x6080604052348015600f57600080fd5b506004361060325760003560e01c80639e5faafc146037578063e29c6d7614607d575b600080fd5b604080518082018252600481527f70756d21000000000000000000000000000000000000000000000000000000006020820152905160749190608d565b60405180910390f35b6000546040519081526020016074565b600060208083528351808285015260005b8181101560b857858101830151858201604001528201609e565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f830116850101925050509291505056fea26469706673582212202e9b2d72bef44a4b35574f8e8f9d8442aec8a90713683373e082e2eceb81fd5664736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000000000000000000000000000000000000000032

-----Decoded View---------------
Arg [0] : damage (uint256): 50

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000032


Block Transaction Gas Used Reward
view all blocks collator

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.