Sonic Blaze Testnet

Contract

0x666DEAD055DbD2Eaf01f0f9cB6bA9a61920ED518

Overview

S Balance

Sonic Blaze LogoSonic Blaze LogoSonic Blaze Logo0 S

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

6 Internal Transactions found.

Latest 6 internal transactions

Parent Transaction Hash Block From To
256422272025-03-10 18:50:4539 hrs ago1741632645
0x666DEAD0...1920ED518
0 S
256338972025-03-10 17:44:4741 hrs ago1741628687
0x666DEAD0...1920ED518
0 S
255728652025-03-10 9:39:262 days ago1741599566
0x666DEAD0...1920ED518
0 S
254945692025-03-09 22:30:322 days ago1741559432
0x666DEAD0...1920ED518
0 S
254920142025-03-09 22:08:132 days ago1741558093
0x666DEAD0...1920ED518
0 S
250889862025-03-07 14:01:244 days ago1741356084  Contract Creation0 S
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
sdaemon0x_RarityPrimusNumber

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : RarityPrimusNumber.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
interface sdaemon0x_RarityPrimusNumberInterface {
    function getRarityNumber(uint256 number) external view returns (uint256);
}  
/*
    Just here to formalize the rarity number for sdaemon0x project
    The rarity number is calculated as follows:
    - If the number is 666, the rarity number is 1  
    - If the number is a prime number, the rarity number is 1 + the rank in the array of prime numbers
    - Otherwise, the rarity number is 0
*/
contract sdaemon0x_RarityPrimusNumber is sdaemon0x_RarityPrimusNumberInterface
{
    uint256[] public primeNumbers = [
        2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
        31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
        73, 79, 83, 89, 97, 101, 103, 107, 109, 113,
        127, 131, 137, 139, 149, 151, 157, 163, 167, 173,
        179, 181, 191, 193, 197, 199, 211, 223, 227, 229,
        233, 239, 241, 251, 257, 263, 269, 271, 277, 281,
        283, 293, 307, 311, 313, 317, 331, 337, 347, 349,
        353, 359, 367, 373, 379, 383, 389, 397, 401, 409,
        419, 421, 431, 433, 439, 443, 449, 457, 461, 463,
        467, 479, 487, 491, 499, 503, 509, 521, 523, 541,
        547, 557, 563, 569, 571, 577, 587, 593, 599, 601,
        607, 613, 617, 619, 631, 641, 643, 647, 653, 659,
        661, 673, 677, 683, 691, 701, 709, 719, 727, 733,
        739, 743, 751, 757, 761, 769, 773, 787, 797, 809,
        811, 821, 823, 827, 829, 839, 853, 857, 859, 863,
        877, 881, 883, 887, 907, 911, 919, 929, 937, 941,
        947, 953, 967, 971, 977, 983, 991, 997
    ];
    mapping(uint256 => uint256) public primeCache;
    
    constructor() {
        for (uint256 i = 0; i < primeNumbers.length; i++) {
            primeCache[primeNumbers[i]] = 2+i;
        }
    }
    function isPrime(uint256 number) public view returns (bool) {
        return primeCache[number] > 0;
    }    
    function getPrimeNumberCount() public view returns (uint256) {
        return primeNumbers.length;
    }  
    function getRarityNumber(uint256 number) public view returns (uint256) {
        if (number == 666) return 1;
        if (isPrime(number)) return primeCache[number];
        return 0;
    }
}

Settings
{
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "optimizer": {
    "enabled": true,
    "runs": 1000000
  },
  "viaIR": true,
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"getPrimeNumberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"getRarityNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"isPrime","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"primeCache","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"primeNumbers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

6080346106b7576115008101906001600160401b038211818310176106a157604091825260029182825260209260038484015260058284015260076060840152600b6080840152600d60a08401526011918260c0850152601360e08501526017610100850152601d610120850152601f61014085015260256101608501526029610180850152602b6101a0850152602f6101c085015260356101e0850152603b610200850152603d610220850152604361024085015260476102608501526049610280850152604f6102a085015260536102c085015260596102e0850152606161030085015260656103208501526067610340850152606b610360850152606d61038085015260716103a0850152607f6103c085015260836103e08501526089610400850152608b61042085015260956104408501526097610460850152609d61048085015260a36104a085015260a76104c085015260ad6104e085015260b361050085015260b561052085015260bf61054085015260c161056085015260c561058085015260c76105a085015260d36105c085015260df6105e085015260e361060085015260e561062085015260e961064085015260ef61066085015260f161068085015260fb6106a08501526101016106c08501526101076106e085015261010d61070085015261010f61072085015261011561074085015261011961076085015261011b6107808501526101256107a08501526101336107c08501526101376107e085015261013961080085015261013d61082085015261014b61084085015261015161086085015261015b61088085015261015d6108a08501526101616108c08501526101676108e085015261016f61090085015261017561092085015261017b61094085015261017f61096085015261018561098085015261018d6109a08501526101916109c08501526101996109e08501526101a3610a008501526101a5610a208501526101af610a408501526101b1610a608501526101b7610a808501526101bb610aa08501526101c1610ac08501526101c9610ae08501526101cd610b008501526101cf610b208501526101d3610b408501526101df610b608501526101e7610b808501526101eb610ba08501526101f3610bc08501526101f7610be08501526101fd610c00850152610209610c2085015261020b610c4085015261021d610c60850152610223610c8085015261022d610ca0850152610233610cc0850152610239610ce085015261023b610d00850152610241610d2085015261024b610d40850152610251610d60850152610257610d80850152610259610da085015261025f610dc0850152610265610de0850152610269610e0085015261026b610e20850152610277610e40850152610281610e60850152610283610e80850152610287610ea085015261028d610ec0850152610293610ee0850152610295610f008501526102a1610f208501526102a5610f408501526102ab610f608501526102b3610f808501526102bd610fa08501526102c5610fc08501526102cf610fe08501526102d76110008501526102dd6110208501526102e36110408501526102e76110608501526102ef6110808501526102f56110a08501526102f96110c08501526103016110e085015261030561110085015261031361112085015261031d61114085015261032961116085015261032b6111808501526103356111a08501526103376111c085015261033b6111e085015261033d61120085015261034761122085015261035561124085015261035961126085015261035b61128085015261035f6112a085015261036d6112c08501526103716112e085015261037361130085015261037761132085015261038b61134085015261038f6113608501526103976113808501526103a16113a08501526103a96113c08501526103ad6113e08501526103b36114008501526103b96114208501526103c76114408501526103cb6114608501526103d16114808501526103d76114a08501526103df6114c08501526103e56114e085015260009384549060a89182875580831061067c575b50858052868620865b8381106106665750505050835b84548110156106585780830180841161064457858052868620820154865260018752828620556000198114610630576001016105f9565b634e487b7160e01b85526004849052602485fd5b634e487b7160e01b86526004859052602486fd5b505161025a90816106bd8239f35b825161ffff1682820155918801916001016105ec565b8680528288882091820191015b81811061069657506105e3565b878155600101610689565b634e487b7160e01b600052604160045260246000fd5b600080fdfe60806040818152600436101561001457600080fd5b600091823560e01c9081631a0fe7cd146101765750806342703494146101215780637d79bd9c146100dc578063af71c6ca146100965763fd5f01511461005957600080fd5b3461009257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261009257602091549051908152f35b5080fd5b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610092578060209260043581526001845220549051908152f35b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760209061011a6004356101e3565b9051908152f35b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760209061016d6004356000526001602052604060002054151590565b90519015158152f35b8390346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760043582548110156101df5782602093527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301548152f35b8280fd5b61029a811461021e57610203816000526001602052604060002054151590565b61020d5750600090565b600052600160205260406000205490565b5060019056fea26469706673582212204a4c06821bac8bb40ea0c0b605303a9da84625832c66494000f55e076e8f943864736f6c63430008130033

Deployed Bytecode

0x60806040818152600436101561001457600080fd5b600091823560e01c9081631a0fe7cd146101765750806342703494146101215780637d79bd9c146100dc578063af71c6ca146100965763fd5f01511461005957600080fd5b3461009257817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261009257602091549051908152f35b5080fd5b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610092578060209260043581526001845220549051908152f35b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760209061011a6004356101e3565b9051908152f35b50346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760209061016d6004356000526001602052604060002054151590565b90519015158152f35b8390346100925760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100925760043582548110156101df5782602093527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301548152f35b8280fd5b61029a811461021e57610203816000526001602052604060002054151590565b61020d5750600090565b600052600160205260406000205490565b5060019056fea26469706673582212204a4c06821bac8bb40ea0c0b605303a9da84625832c66494000f55e076e8f943864736f6c63430008130033

Deployed Bytecode Sourcemap

518:1731:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;518:1731:0;1899:10;518:1731;;;-1:-1:-1;518:1731:0;;1899:22;;1821:108;;518:1731;;;;;;;;;;;;;;;;;;;;;;;;;;605:1003;;;;;518:1731;;;;;;;;;;605:1003;;;;2053:193;2149:3;2139:13;;2135:27;;2177:15;;-1:-1:-1;518:1731:0;1899:10;518:1731;;;-1:-1:-1;518:1731:0;;1899:22;;1821:108;;2177:15;2173:46;;2230:8;2237:1;2053:193;:::o;2173:46::-;-1:-1:-1;518:1731:0;2201:10;518:1731;;;-1:-1:-1;518:1731:0;;2194:25;:::o;2135:27::-;2154:8;2161:1;2154:8;:::o

Swarm Source

ipfs://4a4c06821bac8bb40ea0c0b605303a9da84625832c66494000f55e076e8f9438

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.