Contract 0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea 1

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x9dbfed821e240d7a7522e4121c2087e5efb9e0849e9fe125ee35da083e10174cSet User Session387729782023-02-01 6:20:372 mins ago0x964bc7d001c3356f6a234e2dc6b59ed5cdf7143f IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003781281 87
0xd2861a47109af0d088181b88b3cb2cf87a8a3d79cdf30e28160e1774d5e9fc26Set User Session387729692023-02-01 6:20:172 mins ago0x9aa9af8019d9e0f2ebaeda79a6511d9801925fd1 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003520503 81
0xdca5d2fa816f765d2d704e215d1dfe3f436fcecc5f6d0cec9192b6e9964414d3Set User Session387729502023-02-01 6:19:373 mins ago0xc307770510be1ce32dbb0f53893e3081c2c1d1e7 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.001977225 75
0xb3745c3e2a4577807d3adad684a2b33a58d9b6c011bdbe4a30cfa74db098b2e1Set User Session387729242023-02-01 6:18:394 mins ago0x4323f92565aa86ccdc31c6cfd342696c461c4352 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003377816736 77.717063633
0xb62f68513545943e841780e213bcbe2c7b5b8b7061301258e2dac119df31f229Set User Session387729142023-02-01 6:18:194 mins ago0x6aad34f4a521b1c290785df45fcc043a1a0ec432 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.002003588 76
0xb29f14d229765187217689acd7c6361b24021561817bed77181212bf950f3293Set User Session387729042023-02-01 6:17:574 mins ago0x460e490ed5c61000fa2d821e83d5cd10ff78137c IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003216262 74
0x167e8fe2e7b166dfe026fb90906dcbcf7190c37a529d870328c93809f824db47Set User Session387728922023-02-01 6:17:315 mins ago0x8f228f377b9cebf9206984e034fb78ce1326a720 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.002912021 67
0x4626dda63aaa9784e2dad3686475465e38d6a7ceb00f1430fe70fefc16d5d46bSet User Session387728912023-02-01 6:17:295 mins ago0x18d837e42d8703936b27f45b32d07f0d77f8d0ef IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.002912021 67
0x4666625e0df1d64820c76816c931cc7cb4138cdfd7b8dff9842c9bd1e0807edeSet User Session387728912023-02-01 6:17:295 mins ago0x1c1f1b5d29dd8f32bdce99e03a1443c3dc3f5121 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.002912021 67
0xd190909a057df8504f1b076d1060b3bb95ef08ab02ebcf67638bad015bdc1120Set User Session387728812023-02-01 6:17:095 mins ago0x4a9cc76ed375ee8303a89a7e90c7af6ad6e3757d IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.002955484 68
0x1bd1f9a995cf4640a1e2cdd7fda95f07ad11a0a8be9b7b92eea297a197510794Set User Session387728732023-02-01 6:16:515 mins ago0x12293d98995db84d421494813c82aef3754096c4 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003061087385 70.429730712
0xbcf3134b7d518b466a1075dac2be70809532af165c85bb8aba74d7c78f953e4fSet User Session387728722023-02-01 6:16:495 mins ago0xd5f2965db7a08df5d276bbe78d918de4b004f0a7 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.00307084577 70.65425237
0x606307c75f001885502b0a4d272d33372209fa691b70f7e6c44137f31a1d1e26Set User Session387728712023-02-01 6:16:475 mins ago0x9e245c83f32004001177d64bcf043c68598bcb54 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003095364406 71.218379004
0xaeb7181e15969262f6b8310679af0193b9639046162c96907c20509daf2e5562Set User Session387728642023-02-01 6:16:336 mins ago0xf30b6a701ab2ce0eb10f4399e8048305ccf55574 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003008644247 69.223115014
0xfa915f4392ed2363aabde7889adc11befab6fbbfedb665b15ca0e45a03064417Set User Session387728642023-02-01 6:16:336 mins ago0x17b19817d278849a9a0d5d9649ee62852872a775 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003008644247 69.223115014
0xed97678c9461d915bb10410c699df1d7a4149eb1faf271d3ce683ef510024c07Set User Session387728582023-02-01 6:16:196 mins ago0xf76d457425d1fd432b7a369778b0012e3e1ef56c IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003085873 71
0x8c74a1ff0abc7b8699066c03342939905e8ff6dbb7f9fe630c98950ce1732858Set User Session387728572023-02-01 6:16:176 mins ago0xca8bdaa537395d54b575368ee4e36d3031bddd3b IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003085873 71
0x7e5c9a63d8e29a0e8f20b8ffeecfd06812da425ee0a285f0d1122f928f26c1ffSet User Session387728572023-02-01 6:16:176 mins ago0x4ad68c0819eb453358084caf83d4a4f9562accd5 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.001871773 71
0x1337f0ae467ca04fe453805c088c0d994fb2cf352b93ef462ccd4753e0441befSet User Session387728482023-02-01 6:15:596 mins ago0x4667fabb8020bb48f98a0b3919177a49255f867b IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.00304241 70
0x41fe3cdaacfdec5a8144a6921e2418b2a3972b6d8659612dfc31060eb0f9f8e9Set User Session387728342023-02-01 6:15:297 mins ago0x169c843a75b26f4cb49336b696d0cdf5fc6d6511 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003216262 74
0xbd8526729582d79deb3ed13c3e82a99bb5e043f9acf33a00bcf45cbbdecf6c63Set User Session387728342023-02-01 6:15:297 mins ago0x37748d1a0c16f54a4063e55ea38d8a1fb9a29375 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003216262 74
0xc90036a72deeadeda55205a8a184ef6a846323f40d9e97f9074d0260b7f25d99Set User Session387728242023-02-01 6:15:077 mins ago0xf43c55be65fb8633e713459bba42df3f64464322 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003303188 76
0x93397f56ea65cafc7cf91eb2b523aad50e4727cb9c0bfcc4364b6bb108c39804Set User Session387728192023-02-01 6:14:577 mins ago0x96a0a0dde4cb8a4dccbeb2c369051ca0f0dabea2 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003172799 73
0x17128e17ae484ab1d57ecc78eb1e3377585b70f86f58ca6e74b83f52dfe0347dSet User Session387728122023-02-01 6:14:418 mins ago0x22f8c5a3b3f4d1637aeb678edd78d828a7383804 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003172799 73
0xbf6c93b83a839781b418b8bb712d15f0499b872c97a2cfc4f05820d4eb751c57Set User Session387728112023-02-01 6:14:398 mins ago0x6f489eb2c0dcd9468129a619da1876cdfe6386d0 IN  0xe12ce7d006bbb1b7b4ccf2cf474b48b80f8fc2ea0 MATIC0.003172799 73
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WamUserSession

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2023-01-16
*/

//SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

// ----------------------------------------------------------------------------
// Ownable Contract
// ----------------------------------------------------------------------------
contract Ownable {
  address public owner;
  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  
  // The Ownable constructor sets the original `owner` of the contract to the sender account
  constructor() {
    owner = msg.sender;
  }

  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  // Allows the current owner to transfer control of the contract to a newOwner.
  // @param newOwner The address to transfer ownership to.
  function transferOwnership(address newOwner) public onlyOwner {
    require(newOwner != address(0));
    emit OwnershipTransferred(owner, newOwner);
    owner = newOwner;
  }
}


contract WamUserSession is Ownable {
    mapping(address => uint) roster;
  
    event UserRecordChanged(address indexed owner, uint256 numbers);

    function setUserRecord(address user, uint num) public onlyOwner {
        roster[user] = num;
        emit UserRecordChanged(user,num);
    }

    function setUserSession() public {
        roster[msg.sender]++;
    }

    function getMyRecord() public view returns (uint num) {
        return roster[msg.sender];
    }

    /** 
     * Override this function.
     * This version is to keep track of BaseRelayRecipient you are using
     * in your contract. 
     */
    function getUserRecord(address user) public view returns (uint num) {
        return roster[user];
    }
}

Contract Security Audit

Contract ABI

[{"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":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"numbers","type":"uint256"}],"name":"UserRecordChanged","type":"event"},{"inputs":[],"name":"getMyRecord","outputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserRecord","outputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"setUserRecord","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUserSession","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556103ce806100326000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638da5cb5b116100505780638da5cb5b146100db578063953d0d4a14610120578063f2fde38b1461013357600080fd5b80630a5936f11461007757806350d87c4d1461008157806367e2efc6146100a5575b600080fd5b61007f610146565b005b336000908152600160205260409020545b6040519081526020015b60405180910390f35b6100926100b33660046102ec565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6000546100fb9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161009c565b61007f61012e36600461030e565b610168565b61007f6101413660046102ec565b6101f2565b33600090815260016020526040812080549161016183610338565b9190505550565b60005473ffffffffffffffffffffffffffffffffffffffff16331461018c57600080fd5b73ffffffffffffffffffffffffffffffffffffffff821660008181526001602052604090819020839055517f9cc517ce7acb71ad9ec187ef88ff5fead0d984288c1bafe36aa97f90ffb65ae6906101e69084815260200190565b60405180910390a25050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461021657600080fd5b73ffffffffffffffffffffffffffffffffffffffff811661023657600080fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b803573ffffffffffffffffffffffffffffffffffffffff811681146102e757600080fd5b919050565b6000602082840312156102fe57600080fd5b610307826102c3565b9392505050565b6000806040838503121561032157600080fd5b61032a836102c3565b946020939093013593505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415610391577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b506001019056fea26469706673582212207a70a474576cfff069ecb082e491aa3522b70e6fd9a7daceeb794daf1fcf782464736f6c63430008090033

Deployed ByteCode Sourcemap

935:755:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1243:72;;;:::i;:::-;;1323:98;1402:10;1367:8;1395:18;;;:6;:18;;;;;;1323:98;;;160:25:1;;;148:2;133:18;1323:98:0;;;;;;;;1581:106;;;;;;:::i;:::-;1667:12;;1639:8;1667:12;;;:6;:12;;;;;;;1581:106;266:20;;;;;;;;;;;;764:42:1;752:55;;;734:74;;722:2;707:18;266:20:0;588:226:1;1091:144:0;;;;;;:::i;:::-;;:::i;748:178::-;;;;;;:::i;:::-;;:::i;1243:72::-;1294:10;1287:18;;;;:6;:18;;;;;:20;;;;;;:::i;:::-;;;;;;1243:72::o;1091:144::-;580:5;;;;566:10;:19;558:28;;;;;;1166:12:::1;::::0;::::1;;::::0;;;:6:::1;:12;::::0;;;;;;:18;;;1200:27;::::1;::::0;::::1;::::0;1181:3;160:25:1;;148:2;133:18;;14:177;1200:27:0::1;;;;;;;;1091:144:::0;;:::o;748:178::-;580:5;;;;566:10;:19;558:28;;;;;;825:22:::1;::::0;::::1;817:31;;;::::0;::::1;;881:5;::::0;;860:37:::1;::::0;::::1;::::0;;::::1;::::0;881:5;::::1;::::0;860:37:::1;::::0;::::1;904:5;:16:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;748:178::o;196:196:1:-;264:20;;324:42;313:54;;303:65;;293:93;;382:1;379;372:12;293:93;196:196;;;:::o;397:186::-;456:6;509:2;497:9;488:7;484:23;480:32;477:52;;;525:1;522;515:12;477:52;548:29;567:9;548:29;:::i;:::-;538:39;397:186;-1:-1:-1;;;397:186:1:o;819:254::-;887:6;895;948:2;936:9;927:7;923:23;919:32;916:52;;;964:1;961;954:12;916:52;987:29;1006:9;987:29;:::i;:::-;977:39;1063:2;1048:18;;;;1035:32;;-1:-1:-1;;;819:254:1:o;1078:349::-;1117:3;1148:66;1141:5;1138:77;1135:257;;;1248:77;1245:1;1238:88;1349:4;1346:1;1339:15;1377:4;1374:1;1367:15;1135:257;-1:-1:-1;1419:1:1;1408:13;;1078:349::o

Swarm Source

ipfs://7a70a474576cfff069ecb082e491aa3522b70e6fd9a7daceeb794daf1fcf7824
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.