Contract 0x0f41ac3258123b1998225afc950e543612128dba

Contract Overview

Balance:
0 BNB
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xdea13940ee76f54645972955fe952f04b2c1a4597e5baac7b751f0facae6dda2Test User Join117945082021-08-25 19:19:0460 days 17 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x81b30ead8b920499891d302cf92d247aa805b9e8912042b2a310bdb73b08855aTest User Join117945062021-08-25 19:18:5860 days 17 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x76ea47a1137fcebf8cf69ff505b22928215aa1555b14f58a1d7b9ba075a8cffbTest User Join117945012021-08-25 19:18:4360 days 17 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x24fe22cf431c24fd0ce3fb76055b52cdea97f5b69329c2de4fd9f7663efd1ac8Test User Join117944922021-08-25 19:18:1660 days 17 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x2646b72bf37448ad7a0901391083d33438f1ca542c6e2b23221f2678f158254aTest User Join117934872021-08-25 18:28:0160 days 18 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0xf1bcc9074eddf65a00e5335bb46ed6f719209e3efabd864475ced1bd7b63b2cdTest User Join117934792021-08-25 18:27:3760 days 18 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x951dd262e21d2ac0b36708f226d38d9509bd7659c891da4774c061f95cb3e0c9Test User Join117932732021-08-25 18:17:1960 days 18 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0xe62947f5cbd43747e9278f66245d2f31757f444a156c3e275d12cc9a095740dfTest User Join117836152021-08-25 9:55:3361 days 3 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x0f7918620ad9de826a83dab114465b19c0981dfa8a648e1847fb5dc6db4dfb59Test User Join117835902021-08-25 9:54:1861 days 3 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024175
0x4c6ef3c8b344db80d5d72b09101e897df8d82e31f9b7e14916bc2fd9b181e94fTest User Join117835842021-08-25 9:54:0061 days 3 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  0x0f41ac3258123b1998225afc950e543612128dba0 BNB0.00024163
0x432137509f59020cf1581d5db64e58e448ce09d8fc21f3dafaf09c45824f79b00x60806040117835112021-08-25 9:50:2161 days 3 hrs ago0xda7b5bc19ba6b99880d87df43c8c2275023e2ae1 IN  Contract Creation0 BNB0.00337316
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xc11f11Bab15D65976b63E3b024A47B19739Db911

Contract Name:
EventSampleTest

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at BscScan.com on 2021-08-25
*/

// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.6.12;


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
  // Empty internal constructor, to prevent people from mistakenly deploying
  // an instance of this contract, which should be used via inheritance.
  constructor () internal { }

  function _msgSender() internal view returns (address payable) {
    return msg.sender;
  }

  function _msgData() internal view returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
contract Ownable is Context {
  address private _owner;

  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor () internal {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(_owner == _msgSender(), "Ownable: caller is not the owner");
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
//   function renounceOwnership() public onlyOwner {
//     emit OwnershipTransferred(_owner, address(0));
//     _owner = address(0);
//   }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) public onlyOwner {
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   */
  function _transferOwnership(address newOwner) internal {
    require(newOwner != address(0), "Ownable: new owner is the zero address");
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }
}

// -----------------------------------------------------------------------------------------------------

contract EventSampleTest is Ownable {
    
    event UserJoined(address indexed user, uint256 indexed roundId, uint256 amount);
    
    
    //
    constructor() public
    {
        
    }
    
    
    function testUserJoin(uint256 roundId) external onlyOwner() {
        emit UserJoined(_msgSender(), roundId, 3);
    }
    
    
}

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UserJoined","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"roundId","type":"uint256"}],"name":"testUserJoin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060006100216100c460201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506100cc565b600033905090565b6104b2806100db6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806308a85932146100465780638da5cb5b14610074578063f2fde38b146100a8575b600080fd5b6100726004803603602081101561005c57600080fd5b81019080803590602001909291905050506100ec565b005b61007c61020e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100ea600480360360208110156100be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610237565b005b6100f461030b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146101b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b806101bd61030b565b73ffffffffffffffffffffffffffffffffffffffff167f7a90f4e2ef3c5a08dde8d6cd0c001796c192035de24d81e05d0df0020da0653a60036040518082815260200191505060405180910390a350565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61023f61030b565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146102ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61030881610313565b50565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610399576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806104576026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220703f132711bdfadb5889a47178c9e1c6ebbe63ff9be5cfe3520d34a89c821f8664736f6c634300060c0033

Deployed ByteCode Sourcemap

3502:352:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3719:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2082:73;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;2971:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3719:120;2286:12;:10;:12::i;:::-;2276:22;;:6;;;;;;;;;;:22;;;2268:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3820:7:::1;3806:12;:10;:12::i;:::-;3795:36;;;3829:1;3795:36;;;;;;;;;;;;;;;;;;3719:120:::0;:::o;2082:73::-;2120:7;2143:6;;;;;;;;;;;2136:13;;2082:73;:::o;2971:103::-;2286:12;:10;:12::i;:::-;2276:22;;:6;;;;;;;;;;:22;;;2268:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3040:28:::1;3059:8;3040:18;:28::i;:::-;2971:103:::0;:::o;788:92::-;833:15;864:10;857:17;;788:92;:::o;3172:215::-;3262:1;3242:22;;:8;:22;;;;3234:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3348:8;3319:38;;3340:6;;;;;;;;;;3319:38;;;;;;;;;;;;3373:8;3364:6;;:17;;;;;;;;;;;;;;;;;;3172:215;:::o

Swarm Source

ipfs://703f132711bdfadb5889a47178c9e1c6ebbe63ff9be5cfe3520d34a89c821f86
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading