Sonic Blaze Testnet

Contract

0x162Dc03cb525d21B73599ffE4d1Cf40D2B907548

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

Please try again later

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

Contract Source Code Verified (Exact Match)

Contract Name:
UpgradeStorage

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : GetSet.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

contract UpgradeStorage {
    uint256 private storedValue; // Variable to store the value
    uint256[] private allValues; // Array to store all values set in the contract

    // Function to set a value
    function set(uint256 _value) public {
        storedValue = _value;
        allValues.push(_value); // Add the value to the history
    }

    // Function to update the stored value without adding to history
    function update(uint256 _newValue) public {
        storedValue = _newValue;
    }

    // Function to get the stored value
    function get() public view returns (uint256) {
        return storedValue;
    }

    // Function to get all stored values
    function getAll() public view returns (uint256[] memory) {
        return allValues;
    }
}

Settings
{
  "remappings": [
    "forge-std/=src/v0.8/vendor/forge-std/src/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "@arbitrum/=node_modules/@arbitrum/",
    "hardhat/=node_modules/hardhat/",
    "@eth-optimism/=node_modules/@eth-optimism/",
    "@scroll-tech/=node_modules/@scroll-tech/",
    "@zksync/=node_modules/@zksync/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": true,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {}
}

Contract ABI

[{"inputs":[],"name":"get","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAll","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newValue","type":"uint256"}],"name":"update","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5061019a806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806353ed51431461005157806360fe47b11461006f5780636d4ce63c146100b457806382ab890a146100c5575b600080fd5b6100596100d8565b6040516100669190610130565b60405180910390f35b6100b261007d366004610174565b600081815560018054808201825591527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60155565b005b600054604051908152602001610066565b6100b26100d3366004610174565b600055565b6060600180548060200260200160405190810160405280929190818152602001828054801561012657602002820191906000526020600020905b815481526020019060010190808311610112575b5050505050905090565b6020808252825182820181905260009190848201906040850190845b818110156101685783518352928401929184019160010161014c565b50909695505050505050565b60006020828403121561018657600080fd5b503591905056fea164736f6c6343000818000a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806353ed51431461005157806360fe47b11461006f5780636d4ce63c146100b457806382ab890a146100c5575b600080fd5b6100596100d8565b6040516100669190610130565b60405180910390f35b6100b261007d366004610174565b600081815560018054808201825591527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60155565b005b600054604051908152602001610066565b6100b26100d3366004610174565b600055565b6060600180548060200260200160405190810160405280929190818152602001828054801561012657602002820191906000526020600020905b815481526020019060010190808311610112575b5050505050905090565b6020808252825182820181905260009190848201906040850190845b818110156101685783518352928401929184019160010161014c565b50909695505050505050565b60006020828403121561018657600080fd5b503591905056fea164736f6c6343000818000a

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

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.