Contract

0x7084C119e9b0420F58A2c0D9A33c8797B2271a1c

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

-

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer5515022024-12-18 12:19:442 days ago1734524384IN
0x7084C119...7B2271a1c
0 S0.000059821.1
Approve5513582024-12-18 12:13:392 days ago1734524019IN
0x7084C119...7B2271a1c
0 S0.000051611.1
Approve5512252024-12-18 12:08:112 days ago1734523691IN
0x7084C119...7B2271a1c
0 S0.000056731.221
Transfer5512192024-12-18 12:08:052 days ago1734523685IN
0x7084C119...7B2271a1c
0 S0.000062281.09999999
Transfer5512022024-12-18 12:07:432 days ago1734523663IN
0x7084C119...7B2271a1c
0 S0.000059531.1
Approve5510292024-12-18 12:00:322 days ago1734523232IN
0x7084C119...7B2271a1c
0 S0.000050831.1

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheLostHex

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at SonicScan.org on 2024-12-18
*/

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

// ロストヘックス

// The Lost Hex is made up of many hexagonal plates. 
// Each of them is a piece of land or sea. 
// They are either connected to each other or separated by large gaps. 
// Together, they form somewhat of an incomplete sphere. 
// The Lost Hex also has no nucleus, as the continent has only an empty space in its center. 
// However, despite what its appearance might imply, it is not an independent planet, but rather one of the satellites that orbit Earth. 

contract TheLostHex {
    string public name = "TheLostHex";
    string public symbol = "TLH";//   // //\ /\   //\      .//
    uint8 public decimals = 18;//     /////\ //°//\//\    .//.//.      
    uint256 public totalSupply;//    // //   ///\

    mapping(address => uint256) private balances;                         //
    mapping(address => mapping(address => uint256)) private allowances; // 
                                                                        //
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor() {
        totalSupply = 100000000000000000 * 10 ** uint256(decimals);
        balances[msg.sender] = totalSupply;
        emit Transfer(address(0), msg.sender, totalSupply);
    }

    function balanceOf(address account) public view returns (uint256) {
        return balances[account];
    }

    function transfer(address recipient, uint256 amount) public returns (bool) {
        require(balances[msg.sender] >= amount, "Not enough tokens");
        _transfer(msg.sender, recipient, amount);
        return true;
    }

    function approve(address spender, uint256 amount) public returns (bool) {
        allowances[msg.sender][spender] = amount;
        emit Approval(msg.sender, spender, amount);
        return true;
    }

    function allowance(address owner, address spender) public view returns (uint256) {
        return allowances[owner][spender];
    }

    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        require(balances[sender] >= amount, "Not enough tokens");
        require(allowances[sender][msg.sender] >= amount, "Transfer amount exceeds allowance");

        allowances[sender][msg.sender] -= amount;
        _transfer(sender, recipient, amount);
        return true;
    }

    function _transfer(address from, address to, uint256 amount) internal {
        require(to != address(0), "Cannot transfer to zero address");

        balances[from] -= amount;
        balances[to] += amount;

        emit Transfer(from, to, amount);
    }
}
// https://dweb.link/ipfs/QmNxiiRWEQEUkfGC6TpGYDPaHSGkxtKxQfzoceuLRX7AR4

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60c0604052600a6080908152690a8d0ca98dee6e890caf60b31b60a0525f906100289082610176565b506040805180820190915260038152620a898960eb1b60208201526001906100509082610176565b506002805460ff19166012179055348015610069575f5ffd5b5060025461007b9060ff16600a610329565b61008d9067016345785d8a000061033b565b6003819055335f81815260046020908152604080832085905551938452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610352565b634e487b7160e01b5f52604160045260245ffd5b600181811c9082168061010657607f821691505b60208210810361012457634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111561017157805f5260205f20601f840160051c8101602085101561014f5750805b601f840160051c820191505b8181101561016e575f815560010161015b565b50505b505050565b81516001600160401b0381111561018f5761018f6100de565b6101a38161019d84546100f2565b8461012a565b6020601f8211600181146101d5575f83156101be5750848201515b5f19600385901b1c1916600184901b17845561016e565b5f84815260208120601f198516915b8281101561020457878501518255602094850194600190920191016101e4565b508482101561022157868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b6001815b600184111561027f5780850481111561026357610263610230565b600184161561027157908102905b60019390931c928002610248565b935093915050565b5f8261029557506001610323565b816102a157505f610323565b81600181146102b757600281146102c1576102dd565b6001915050610323565b60ff8411156102d2576102d2610230565b50506001821b610323565b5060208310610133831016604e8410600b8410161715610300575081810a610323565b61030c5f198484610244565b805f190482111561031f5761031f610230565b0290505b92915050565b5f6103348383610287565b9392505050565b808202811582820484141761032357610323610230565b6106d98061035f5f395ff3fe608060405234801561000f575f5ffd5b5060043610610090575f3560e01c8063313ce56711610063578063313ce567146100ff57806370a082311461011e57806395d89b4114610146578063a9059cbb1461014e578063dd62ed3e14610161575f5ffd5b806306fdde0314610094578063095ea7b3146100b257806318160ddd146100d557806323b872dd146100ec575b5f5ffd5b61009c610199565b6040516100a9919061052e565b60405180910390f35b6100c56100c036600461057e565b610224565b60405190151581526020016100a9565b6100de60035481565b6040519081526020016100a9565b6100c56100fa3660046105a6565b610290565b60025461010c9060ff1681565b60405160ff90911681526020016100a9565b6100de61012c3660046105e0565b6001600160a01b03165f9081526004602052604090205490565b61009c6103b9565b6100c561015c36600461057e565b6103c6565b6100de61016f366004610600565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205490565b5f80546101a590610631565b80601f01602080910402602001604051908101604052809291908181526020018280546101d190610631565b801561021c5780601f106101f35761010080835404028352916020019161021c565b820191905f5260205f20905b8154815290600101906020018083116101ff57829003601f168201915b505050505081565b335f8181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061027e9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600460205260408120548211156102f05760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064015b60405180910390fd5b6001600160a01b0384165f90815260056020908152604080832033845290915290205482111561036c5760405162461bcd60e51b815260206004820152602160248201527f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636044820152606560f81b60648201526084016102e7565b6001600160a01b0384165f9081526005602090815260408083203384529091528120805484929061039e90849061067d565b909155506103af905084848461042c565b5060019392505050565b600180546101a590610631565b335f908152600460205260408120548211156104185760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064016102e7565b61042333848461042c565b50600192915050565b6001600160a01b0382166104825760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207472616e7366657220746f207a65726f20616464726573730060448201526064016102e7565b6001600160a01b0383165f90815260046020526040812080548392906104a990849061067d565b90915550506001600160a01b0382165f90815260046020526040812080548392906104d5908490610690565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161052191815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610579575f5ffd5b919050565b5f5f6040838503121561058f575f5ffd5b61059883610563565b946020939093013593505050565b5f5f5f606084860312156105b8575f5ffd5b6105c184610563565b92506105cf60208501610563565b929592945050506040919091013590565b5f602082840312156105f0575f5ffd5b6105f982610563565b9392505050565b5f5f60408385031215610611575f5ffd5b61061a83610563565b915061062860208401610563565b90509250929050565b600181811c9082168061064557607f821691505b60208210810361066357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561028a5761028a610669565b8082018082111561028a5761028a61066956fea2646970667358221220a67fcea9adc4e1bf4eb66ba7f21882c978857f180a6150e2c9a143e2786f0df464736f6c634300081b0033

Deployed Bytecode

0x608060405234801561000f575f5ffd5b5060043610610090575f3560e01c8063313ce56711610063578063313ce567146100ff57806370a082311461011e57806395d89b4114610146578063a9059cbb1461014e578063dd62ed3e14610161575f5ffd5b806306fdde0314610094578063095ea7b3146100b257806318160ddd146100d557806323b872dd146100ec575b5f5ffd5b61009c610199565b6040516100a9919061052e565b60405180910390f35b6100c56100c036600461057e565b610224565b60405190151581526020016100a9565b6100de60035481565b6040519081526020016100a9565b6100c56100fa3660046105a6565b610290565b60025461010c9060ff1681565b60405160ff90911681526020016100a9565b6100de61012c3660046105e0565b6001600160a01b03165f9081526004602052604090205490565b61009c6103b9565b6100c561015c36600461057e565b6103c6565b6100de61016f366004610600565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205490565b5f80546101a590610631565b80601f01602080910402602001604051908101604052809291908181526020018280546101d190610631565b801561021c5780601f106101f35761010080835404028352916020019161021c565b820191905f5260205f20905b8154815290600101906020018083116101ff57829003601f168201915b505050505081565b335f8181526005602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061027e9086815260200190565b60405180910390a35060015b92915050565b6001600160a01b0383165f908152600460205260408120548211156102f05760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064015b60405180910390fd5b6001600160a01b0384165f90815260056020908152604080832033845290915290205482111561036c5760405162461bcd60e51b815260206004820152602160248201527f5472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636044820152606560f81b60648201526084016102e7565b6001600160a01b0384165f9081526005602090815260408083203384529091528120805484929061039e90849061067d565b909155506103af905084848461042c565b5060019392505050565b600180546101a590610631565b335f908152600460205260408120548211156104185760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820746f6b656e7360781b60448201526064016102e7565b61042333848461042c565b50600192915050565b6001600160a01b0382166104825760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207472616e7366657220746f207a65726f20616464726573730060448201526064016102e7565b6001600160a01b0383165f90815260046020526040812080548392906104a990849061067d565b90915550506001600160a01b0382165f90815260046020526040812080548392906104d5908490610690565b92505081905550816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161052191815260200190565b60405180910390a3505050565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b0381168114610579575f5ffd5b919050565b5f5f6040838503121561058f575f5ffd5b61059883610563565b946020939093013593505050565b5f5f5f606084860312156105b8575f5ffd5b6105c184610563565b92506105cf60208501610563565b929592945050506040919091013590565b5f602082840312156105f0575f5ffd5b6105f982610563565b9392505050565b5f5f60408385031215610611575f5ffd5b61061a83610563565b915061062860208401610563565b90509250929050565b600181811c9082168061064557607f821691505b60208210810361066357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8181038181111561028a5761028a610669565b8082018082111561028a5761028a61066956fea2646970667358221220a67fcea9adc4e1bf4eb66ba7f21882c978857f180a6150e2c9a143e2786f0df464736f6c634300081b0033

Deployed Bytecode Sourcemap

557:2228:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;584:33;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1767:206;;;;;;:::i;:::-;;:::i;:::-;;;1085:14:1;;1078:22;1060:41;;1048:2;1033:18;1767:206:0;920:187:1;762:26:0;;;;;;;;;1258:25:1;;;1246:2;1231:18;762:26:0;1112:177:1;2122:389:0;;;;;;:::i;:::-;;:::i;688:26::-;;;;;;;;;;;;1845:4:1;1833:17;;;1815:36;;1803:2;1788:18;688:26:0;1673:184:1;1415:109:0;;;;;;:::i;:::-;-1:-1:-1;;;;;1499:17:0;1472:7;1499:17;;;:8;:17;;;;;;;1415:109;624:28;;;:::i;1532:227::-;;;;;;:::i;:::-;;:::i;1981:133::-;;;;;;:::i;:::-;-1:-1:-1;;;;;2080:17:0;;;2053:7;2080:17;;;:10;:17;;;;;;;;:26;;;;;;;;;;;;;1981:133;584:33;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1767:206::-;1861:10;1833:4;1850:22;;;:10;:22;;;;;;;;-1:-1:-1;;;;;1850:31:0;;;;;;;;;;:40;;;1906:37;1833:4;;1850:31;;1906:37;;;;1884:6;1258:25:1;;1246:2;1231:18;;1112:177;1906:37:0;;;;;;;;-1:-1:-1;1961:4:0;1767:206;;;;;:::o;2122:389::-;-1:-1:-1;;;;;2236:16:0;;2211:4;2236:16;;;:8;:16;;;;;;:26;-1:-1:-1;2236:26:0;2228:56;;;;-1:-1:-1;;;2228:56:0;;2905:2:1;2228:56:0;;;2887:21:1;2944:2;2924:18;;;2917:30;-1:-1:-1;;;2963:18:1;;;2956:47;3020:18;;2228:56:0;;;;;;;;;-1:-1:-1;;;;;2303:18:0;;;;;;:10;:18;;;;;;;;2322:10;2303:30;;;;;;;;:40;-1:-1:-1;2303:40:0;2295:86;;;;-1:-1:-1;;;2295:86:0;;3251:2:1;2295:86:0;;;3233:21:1;3290:2;3270:18;;;3263:30;3329:34;3309:18;;;3302:62;-1:-1:-1;;;3380:18:1;;;3373:31;3421:19;;2295:86:0;3049:397:1;2295:86:0;-1:-1:-1;;;;;2394:18:0;;;;;;:10;:18;;;;;;;;2413:10;2394:30;;;;;;;:40;;2428:6;;2394:18;:40;;2428:6;;2394:40;:::i;:::-;;;;-1:-1:-1;2445:36:0;;-1:-1:-1;2455:6:0;2463:9;2474:6;2445:9;:36::i;:::-;-1:-1:-1;2499:4:0;2122:389;;;;;:::o;624:28::-;;;;;;;:::i;1532:227::-;1635:10;1601:4;1626:20;;;:8;:20;;;;;;:30;-1:-1:-1;1626:30:0;1618:60;;;;-1:-1:-1;;;1618:60:0;;2905:2:1;1618:60:0;;;2887:21:1;2944:2;2924:18;;;2917:30;-1:-1:-1;;;2963:18:1;;;2956:47;3020:18;;1618:60:0;2703:341:1;1618:60:0;1689:40;1699:10;1711:9;1722:6;1689:9;:40::i;:::-;-1:-1:-1;1747:4:0;1532:227;;;;:::o;2519:263::-;-1:-1:-1;;;;;2608:16:0;;2600:60;;;;-1:-1:-1;;;2600:60:0;;3918:2:1;2600:60:0;;;3900:21:1;3957:2;3937:18;;;3930:30;3996:33;3976:18;;;3969:61;4047:18;;2600:60:0;3716:355:1;2600:60:0;-1:-1:-1;;;;;2673:14:0;;;;;;:8;:14;;;;;:24;;2691:6;;2673:14;:24;;2691:6;;2673:24;:::i;:::-;;;;-1:-1:-1;;;;;;;2708:12:0;;;;;;:8;:12;;;;;:22;;2724:6;;2708:12;:22;;2724:6;;2708:22;:::i;:::-;;;;;;;;2763:2;-1:-1:-1;;;;;2748:26:0;2757:4;-1:-1:-1;;;;;2748:26:0;;2767:6;2748:26;;;;1258:25:1;;1246:2;1231:18;;1112:177;2748:26:0;;;;;;;;2519:263;;;:::o;14:418:1:-;163:2;152:9;145:21;126:4;195:6;189:13;238:6;233:2;222:9;218:18;211:34;297:6;292:2;284:6;280:15;275:2;264:9;260:18;254:50;353:1;348:2;339:6;328:9;324:22;320:31;313:42;423:2;416;412:7;407:2;399:6;395:15;391:29;380:9;376:45;372:54;364:62;;;14:418;;;;:::o;437:173::-;505:20;;-1:-1:-1;;;;;554:31:1;;544:42;;534:70;;600:1;597;590:12;534:70;437:173;;;:::o;615:300::-;683:6;691;744:2;732:9;723:7;719:23;715:32;712:52;;;760:1;757;750:12;712:52;783:29;802:9;783:29;:::i;:::-;773:39;881:2;866:18;;;;853:32;;-1:-1:-1;;;615:300:1:o;1294:374::-;1371:6;1379;1387;1440:2;1428:9;1419:7;1415:23;1411:32;1408:52;;;1456:1;1453;1446:12;1408:52;1479:29;1498:9;1479:29;:::i;:::-;1469:39;;1527:38;1561:2;1550:9;1546:18;1527:38;:::i;:::-;1294:374;;1517:48;;-1:-1:-1;;;1634:2:1;1619:18;;;;1606:32;;1294:374::o;1862:186::-;1921:6;1974:2;1962:9;1953:7;1949:23;1945:32;1942:52;;;1990:1;1987;1980:12;1942:52;2013:29;2032:9;2013:29;:::i;:::-;2003:39;1862:186;-1:-1:-1;;;1862:186:1:o;2053:260::-;2121:6;2129;2182:2;2170:9;2161:7;2157:23;2153:32;2150:52;;;2198:1;2195;2188:12;2150:52;2221:29;2240:9;2221:29;:::i;:::-;2211:39;;2269:38;2303:2;2292:9;2288:18;2269:38;:::i;:::-;2259:48;;2053:260;;;;;:::o;2318:380::-;2397:1;2393:12;;;;2440;;;2461:61;;2515:4;2507:6;2503:17;2493:27;;2461:61;2568:2;2560:6;2557:14;2537:18;2534:38;2531:161;;2614:10;2609:3;2605:20;2602:1;2595:31;2649:4;2646:1;2639:15;2677:4;2674:1;2667:15;2531:161;;2318:380;;;:::o;3451:127::-;3512:10;3507:3;3503:20;3500:1;3493:31;3543:4;3540:1;3533:15;3567:4;3564:1;3557:15;3583:128;3650:9;;;3671:11;;;3668:37;;;3685:18;;:::i;4076:125::-;4141:9;;;4162:10;;;4159:36;;;4175:18;;:::i

Swarm Source

ipfs://a67fcea9adc4e1bf4eb66ba7f21882c978857f180a6150e2c9a143e2786f0df4

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

Transaction 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.