Sepolia Testnet

Contract

0xcca9D5f0a3c58b6f02BD0985fC7F9420EA24C1f0
Source Code

Overview

ETH Balance

0 ETH

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Bridge51033512024-01-17 17:13:0040 days 21 hrs ago1705511580IN
0xcca9D5...EA24C1f0
0 ETH0.0027658950.37691437
Bridge46067142023-11-01 8:29:36118 days 6 hrs ago1698827376IN
0xcca9D5...EA24C1f0
0 ETH0.000196593.58228934
Bridge46012192023-10-31 13:26:24119 days 1 hr ago1698758784IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000003
Bridge46005622023-10-31 11:09:48119 days 3 hrs ago1698750588IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000002
Bridge46005592023-10-31 11:09:12119 days 3 hrs ago1698750552IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000002
Bridge46003312023-10-31 10:21:48119 days 4 hrs ago1698747708IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge46002262023-10-31 10:00:12119 days 4 hrs ago1698746412IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000002
Bridge46002112023-10-31 9:57:12119 days 4 hrs ago1698746232IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge46001912023-10-31 9:53:12119 days 4 hrs ago1698745992IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000002
Bridge46001802023-10-31 9:51:00119 days 4 hrs ago1698745860IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000002
Bridge45935632023-10-30 10:48:48120 days 3 hrs ago1698662928IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50015736
Bridge45932272023-10-30 9:40:00120 days 4 hrs ago1698658800IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50012813
Bridge45924552023-10-30 7:00:24120 days 7 hrs ago1698649224IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000011
Bridge45892642023-10-29 19:23:24120 days 19 hrs ago1698607404IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.5
Bridge45892372023-10-29 19:17:48120 days 19 hrs ago1698607068IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge45892302023-10-29 19:16:00120 days 19 hrs ago1698606960IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.5
Bridge45891812023-10-29 19:04:48120 days 19 hrs ago1698606288IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.5
Bridge45891192023-10-29 18:51:12120 days 19 hrs ago1698605472IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.5
Bridge45891152023-10-29 18:50:24120 days 19 hrs ago1698605424IN
0xcca9D5...EA24C1f0
0 ETH0.000075121.5
Bridge45890502023-10-29 18:36:00120 days 19 hrs ago1698604560IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge45889002023-10-29 18:03:36120 days 20 hrs ago1698602616IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge45888882023-10-29 18:01:00120 days 20 hrs ago1698602460IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge45888602023-10-29 17:54:24120 days 20 hrs ago1698602064IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.5
Bridge45886862023-10-29 17:17:00120 days 21 hrs ago1698599820IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
Bridge45886802023-10-29 17:15:36120 days 21 hrs ago1698599736IN
0xcca9D5...EA24C1f0
0 ETH0.000082321.50000001
View all transactions

Advanced mode:
Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TestLogger

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2023-08-28
*/

pragma solidity ^0.8.21;

interface IERC20 {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract TestLogger {

  uint256 public _nextAvailableBridgeId;
  address public _token;

  event Bridge(
    uint256 indexed id,
    uint256 amount,
    address from,
    bytes accAddress,
    bytes data
  );

  function initialize(
    address token
  )
    external
  {
    require(_token == address(0x0));
    _token = token;
  }

  function bridge(
    uint256 amount,
    bytes calldata accAddress,
    bytes calldata memo
  )
    external
  {
    // Transfer the tokens.
    IERC20(_token).transferFrom(msg.sender, address(this), amount);

    // Emit the event.
    uint256 nonce = _nextAvailableBridgeId;
    emit Bridge(
      nonce,
      amount,
      msg.sender,
      accAddress,
      memo
    );

    // Update State.
    _nextAvailableBridgeId = nonce + 1;
  }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"bytes","name":"accAddress","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"Bridge","type":"event"},{"inputs":[],"name":"_nextAvailableBridgeId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"accAddress","type":"bytes"},{"internalType":"bytes","name":"memo","type":"bytes"}],"name":"bridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561000f575f80fd5b506106638061001d5f395ff3fe608060405234801561000f575f80fd5b506004361061004a575f3560e01c80631d45e29c1461004e5780637bc1365b1461006a578063c4d66de814610088578063ecd0c0c3146100a4575b5f80fd5b61006860048036038101906100639190610323565b6100c2565b005b6100726101c2565b60405161007f91906103c3565b60405180910390f35b6100a2600480360381019061009d9190610436565b6101c7565b005b6100ac610262565b6040516100b99190610470565b60405180910390f35b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b815260040161012093929190610489565b6020604051808303815f875af115801561013c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061016091906104f3565b505f80549050807f498a04382650bc110983392ed12ab27595af8ece270a344fc70d773d2481043a8733888888886040516101a096959493929190610578565b60405180910390a26001816101b591906105fa565b5f81905550505050505050565b5f5481565b5f73ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461021f575f80fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80fd5b5f80fd5b5f819050919050565b6102a18161028f565b81146102ab575f80fd5b50565b5f813590506102bc81610298565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126102e3576102e26102c2565b5b8235905067ffffffffffffffff811115610300576102ff6102c6565b5b60208301915083600182028301111561031c5761031b6102ca565b5b9250929050565b5f805f805f6060868803121561033c5761033b610287565b5b5f610349888289016102ae565b955050602086013567ffffffffffffffff81111561036a5761036961028b565b5b610376888289016102ce565b9450945050604086013567ffffffffffffffff8111156103995761039861028b565b5b6103a5888289016102ce565b92509250509295509295909350565b6103bd8161028f565b82525050565b5f6020820190506103d65f8301846103b4565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610405826103dc565b9050919050565b610415816103fb565b811461041f575f80fd5b50565b5f813590506104308161040c565b92915050565b5f6020828403121561044b5761044a610287565b5b5f61045884828501610422565b91505092915050565b61046a816103fb565b82525050565b5f6020820190506104835f830184610461565b92915050565b5f60608201905061049c5f830186610461565b6104a96020830185610461565b6104b660408301846103b4565b949350505050565b5f8115159050919050565b6104d2816104be565b81146104dc575f80fd5b50565b5f815190506104ed816104c9565b92915050565b5f6020828403121561050857610507610287565b5b5f610515848285016104df565b91505092915050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f610557838561051e565b935061056483858461052e565b61056d8361053c565b840190509392505050565b5f60808201905061058b5f8301896103b4565b6105986020830188610461565b81810360408301526105ab81868861054c565b905081810360608301526105c081848661054c565b9050979650505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6106048261028f565b915061060f8361028f565b9250828201905080821115610627576106266105cd565b5b9291505056fea2646970667358221220494e357b699a3e2d4ae2da8a651cbc764137b9cde6ca7672a733d63cf23f56c564736f6c63430008150033

Deployed Bytecode

0x608060405234801561000f575f80fd5b506004361061004a575f3560e01c80631d45e29c1461004e5780637bc1365b1461006a578063c4d66de814610088578063ecd0c0c3146100a4575b5f80fd5b61006860048036038101906100639190610323565b6100c2565b005b6100726101c2565b60405161007f91906103c3565b60405180910390f35b6100a2600480360381019061009d9190610436565b6101c7565b005b6100ac610262565b6040516100b99190610470565b60405180910390f35b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b815260040161012093929190610489565b6020604051808303815f875af115801561013c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061016091906104f3565b505f80549050807f498a04382650bc110983392ed12ab27595af8ece270a344fc70d773d2481043a8733888888886040516101a096959493929190610578565b60405180910390a26001816101b591906105fa565b5f81905550505050505050565b5f5481565b5f73ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461021f575f80fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f80fd5b5f80fd5b5f819050919050565b6102a18161028f565b81146102ab575f80fd5b50565b5f813590506102bc81610298565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126102e3576102e26102c2565b5b8235905067ffffffffffffffff811115610300576102ff6102c6565b5b60208301915083600182028301111561031c5761031b6102ca565b5b9250929050565b5f805f805f6060868803121561033c5761033b610287565b5b5f610349888289016102ae565b955050602086013567ffffffffffffffff81111561036a5761036961028b565b5b610376888289016102ce565b9450945050604086013567ffffffffffffffff8111156103995761039861028b565b5b6103a5888289016102ce565b92509250509295509295909350565b6103bd8161028f565b82525050565b5f6020820190506103d65f8301846103b4565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610405826103dc565b9050919050565b610415816103fb565b811461041f575f80fd5b50565b5f813590506104308161040c565b92915050565b5f6020828403121561044b5761044a610287565b5b5f61045884828501610422565b91505092915050565b61046a816103fb565b82525050565b5f6020820190506104835f830184610461565b92915050565b5f60608201905061049c5f830186610461565b6104a96020830185610461565b6104b660408301846103b4565b949350505050565b5f8115159050919050565b6104d2816104be565b81146104dc575f80fd5b50565b5f815190506104ed816104c9565b92915050565b5f6020828403121561050857610507610287565b5b5f610515848285016104df565b91505092915050565b5f82825260208201905092915050565b828183375f83830152505050565b5f601f19601f8301169050919050565b5f610557838561051e565b935061056483858461052e565b61056d8361053c565b840190509392505050565b5f60808201905061058b5f8301896103b4565b6105986020830188610461565b81810360408301526105ab81868861054c565b905081810360608301526105c081848661054c565b9050979650505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6106048261028f565b915061060f8361028f565b9250828201905080821115610627576106266105cd565b5b9291505056fea2646970667358221220494e357b699a3e2d4ae2da8a651cbc764137b9cde6ca7672a733d63cf23f56c564736f6c63430008150033

Deployed Bytecode Sourcemap

753:824:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1112:462;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;780:37;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;979:127;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;822:21;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1112:462;1272:6;;;;;;;;;;;1265:27;;;1293:10;1313:4;1320:6;1265:62;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1360:13;1376:22;;1360:38;;1425:5;1410:93;1439:6;1454:10;1473;;1492:4;;1410:93;;;;;;;;;;;:::i;:::-;;;;;;;;1567:1;1559:5;:9;;;;:::i;:::-;1534:22;:34;;;;1229:345;1112:462;;;;;:::o;780:37::-;;;;:::o;979:127::-;1074:3;1056:22;;:6;;;;;;;;;;;:22;;;1048:31;;;;;;1095:5;1086:6;;:14;;;;;;;;;;;;;;;;;;979:127;:::o;822:21::-;;;;;;;;;;;;;:::o;88:117:1:-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:117::-;799:1;796;789:12;813:117;922:1;919;912:12;936:117;1045:1;1042;1035:12;1072:552;1129:8;1139:6;1189:3;1182:4;1174:6;1170:17;1166:27;1156:122;;1197:79;;:::i;:::-;1156:122;1310:6;1297:20;1287:30;;1340:18;1332:6;1329:30;1326:117;;;1362:79;;:::i;:::-;1326:117;1476:4;1468:6;1464:17;1452:29;;1530:3;1522:4;1514:6;1510:17;1500:8;1496:32;1493:41;1490:128;;;1537:79;;:::i;:::-;1490:128;1072:552;;;;;:::o;1630:1015::-;1729:6;1737;1745;1753;1761;1810:2;1798:9;1789:7;1785:23;1781:32;1778:119;;;1816:79;;:::i;:::-;1778:119;1936:1;1961:53;2006:7;1997:6;1986:9;1982:22;1961:53;:::i;:::-;1951:63;;1907:117;2091:2;2080:9;2076:18;2063:32;2122:18;2114:6;2111:30;2108:117;;;2144:79;;:::i;:::-;2108:117;2257:64;2313:7;2304:6;2293:9;2289:22;2257:64;:::i;:::-;2239:82;;;;2034:297;2398:2;2387:9;2383:18;2370:32;2429:18;2421:6;2418:30;2415:117;;;2451:79;;:::i;:::-;2415:117;2564:64;2620:7;2611:6;2600:9;2596:22;2564:64;:::i;:::-;2546:82;;;;2341:297;1630:1015;;;;;;;;:::o;2651:118::-;2738:24;2756:5;2738:24;:::i;:::-;2733:3;2726:37;2651:118;;:::o;2775:222::-;2868:4;2906:2;2895:9;2891:18;2883:26;;2919:71;2987:1;2976:9;2972:17;2963:6;2919:71;:::i;:::-;2775:222;;;;:::o;3003:126::-;3040:7;3080:42;3073:5;3069:54;3058:65;;3003:126;;;:::o;3135:96::-;3172:7;3201:24;3219:5;3201:24;:::i;:::-;3190:35;;3135:96;;;:::o;3237:122::-;3310:24;3328:5;3310:24;:::i;:::-;3303:5;3300:35;3290:63;;3349:1;3346;3339:12;3290:63;3237:122;:::o;3365:139::-;3411:5;3449:6;3436:20;3427:29;;3465:33;3492:5;3465:33;:::i;:::-;3365:139;;;;:::o;3510:329::-;3569:6;3618:2;3606:9;3597:7;3593:23;3589:32;3586:119;;;3624:79;;:::i;:::-;3586:119;3744:1;3769:53;3814:7;3805:6;3794:9;3790:22;3769:53;:::i;:::-;3759:63;;3715:117;3510:329;;;;:::o;3845:118::-;3932:24;3950:5;3932:24;:::i;:::-;3927:3;3920:37;3845:118;;:::o;3969:222::-;4062:4;4100:2;4089:9;4085:18;4077:26;;4113:71;4181:1;4170:9;4166:17;4157:6;4113:71;:::i;:::-;3969:222;;;;:::o;4197:442::-;4346:4;4384:2;4373:9;4369:18;4361:26;;4397:71;4465:1;4454:9;4450:17;4441:6;4397:71;:::i;:::-;4478:72;4546:2;4535:9;4531:18;4522:6;4478:72;:::i;:::-;4560;4628:2;4617:9;4613:18;4604:6;4560:72;:::i;:::-;4197:442;;;;;;:::o;4645:90::-;4679:7;4722:5;4715:13;4708:21;4697:32;;4645:90;;;:::o;4741:116::-;4811:21;4826:5;4811:21;:::i;:::-;4804:5;4801:32;4791:60;;4847:1;4844;4837:12;4791:60;4741:116;:::o;4863:137::-;4917:5;4948:6;4942:13;4933:22;;4964:30;4988:5;4964:30;:::i;:::-;4863:137;;;;:::o;5006:345::-;5073:6;5122:2;5110:9;5101:7;5097:23;5093:32;5090:119;;;5128:79;;:::i;:::-;5090:119;5248:1;5273:61;5326:7;5317:6;5306:9;5302:22;5273:61;:::i;:::-;5263:71;;5219:125;5006:345;;;;:::o;5357:168::-;5440:11;5474:6;5469:3;5462:19;5514:4;5509:3;5505:14;5490:29;;5357:168;;;;:::o;5531:146::-;5628:6;5623:3;5618;5605:30;5669:1;5660:6;5655:3;5651:16;5644:27;5531:146;;;:::o;5683:102::-;5724:6;5775:2;5771:7;5766:2;5759:5;5755:14;5751:28;5741:38;;5683:102;;;:::o;5813:314::-;5909:3;5930:70;5993:6;5988:3;5930:70;:::i;:::-;5923:77;;6010:56;6059:6;6054:3;6047:5;6010:56;:::i;:::-;6091:29;6113:6;6091:29;:::i;:::-;6086:3;6082:39;6075:46;;5813:314;;;;;:::o;6133:767::-;6366:4;6404:3;6393:9;6389:19;6381:27;;6418:71;6486:1;6475:9;6471:17;6462:6;6418:71;:::i;:::-;6499:72;6567:2;6556:9;6552:18;6543:6;6499:72;:::i;:::-;6618:9;6612:4;6608:20;6603:2;6592:9;6588:18;6581:48;6646:86;6727:4;6718:6;6710;6646:86;:::i;:::-;6638:94;;6779:9;6773:4;6769:20;6764:2;6753:9;6749:18;6742:48;6807:86;6888:4;6879:6;6871;6807:86;:::i;:::-;6799:94;;6133:767;;;;;;;;;:::o;6906:180::-;6954:77;6951:1;6944:88;7051:4;7048:1;7041:15;7075:4;7072:1;7065:15;7092:191;7132:3;7151:20;7169:1;7151:20;:::i;:::-;7146:25;;7185:20;7203:1;7185:20;:::i;:::-;7180:25;;7228:1;7225;7221:9;7214:16;;7249:3;7246:1;7243:10;7240:36;;;7256:18;;:::i;:::-;7240:36;7092:191;;;;:::o

Swarm Source

ipfs://494e357b699a3e2d4ae2da8a651cbc764137b9cde6ca7672a733d63cf23f56c5

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.