Mumbai Testnet

Contract

0xcB8CA530d932121cE4078E0FC6a2A847b93EFCa7

Overview

MATIC Balance

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
0x60806040284462492022-10-04 18:34:04653 days ago1664908444IN
 Contract Creation
0 MATIC0.000456321.50000001

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

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xa74f2B25...161478775
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
QueryDataStorage

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 300 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : QueryDataStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.3;

/**
 @author Tellor Inc.
 @title QueryDataStorage
 @dev This contract is used for storing query data
*/
contract QueryDataStorage {
    mapping(bytes32 => bytes) public queryData; // queryId => queryData

    event QueryDataStored(bytes32 _queryId);

    /**
     * @dev Stores query data in a mapping from queryId
     * @param _queryData The query data
     */
    function storeData(bytes memory _queryData) external {
        bytes32 _queryId = keccak256(_queryData);
        if (queryData[_queryId].length == 0) {
            queryData[_queryId] = _queryData;
            emit QueryDataStored(_queryId);
        }
    }

    /**
     * @dev Retrieves query data
     * @param _queryId Unique identifier for the query
     * @return _queryData Stored query data
     */
    function getQueryData(bytes32 _queryId)
        public
        view
        returns (bytes memory _queryData)
    {
        return queryData[_queryId];
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 300
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"QueryDataStored","type":"event"},{"inputs":[{"internalType":"bytes32","name":"_queryId","type":"bytes32"}],"name":"getQueryData","outputs":[{"internalType":"bytes","name":"_queryData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queryData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_queryData","type":"bytes"}],"name":"storeData","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063836d093e1461004657806385a546e01461006f578063ac5c853514610082575b600080fd5b6100596100543660046102ee565b610097565b60405161006691906103b0565b60405180910390f35b61005961007d3660046102ee565b610139565b610095610090366004610306565b6101d3565b005b60008181526020819052604090208054606091906100b490610403565b80601f01602080910402602001604051908101604052809291908181526020018280546100e090610403565b801561012d5780601f106101025761010080835404028352916020019161012d565b820191906000526020600020905b81548152906001019060200180831161011057829003601f168201915b50505050509050919050565b6000602081905290815260409020805461015290610403565b80601f016020809104026020016040519081016040528092919081815260200182805461017e90610403565b80156101cb5780601f106101a0576101008083540402835291602001916101cb565b820191906000526020600020905b8154815290600101906020018083116101ae57829003601f168201915b505050505081565b8051602080830191909120600081815291829052604090912080546101f790610403565b1515905061025157600081815260208181526040909120835161021c92850190610255565b506040518181527fac85a9ff5335fccb796cfdf7a78fcd71ee5acc158b4893228f7ab8e62ca532d79060200160405180910390a15b5050565b82805461026190610403565b90600052602060002090601f01602090048101928261028357600085556102c9565b82601f1061029c57805160ff19168380011785556102c9565b828001600101855582156102c9579182015b828111156102c95782518255916020019190600101906102ae565b506102d59291506102d9565b5090565b5b808211156102d557600081556001016102da565b6000602082840312156102ff578081fd5b5035919050565b600060208284031215610317578081fd5b813567ffffffffffffffff8082111561032e578283fd5b818401915084601f830112610341578283fd5b8135818111156103535761035361043e565b604051601f8201601f19908116603f0116810190838211818310171561037b5761037b61043e565b81604052828152876020848701011115610393578586fd5b826020860160208301379182016020019490945295945050505050565b6000602080835283518082850152825b818110156103dc578581018301518582016040015282016103c0565b818111156103ed5783604083870101525b50601f01601f1916929092016040019392505050565b600181811c9082168061041757607f821691505b6020821081141561043857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fdfea26469706673582212209be03f847f98cfa34d2f3f3a4424a24a6a4e2117ea25f6c83a9ad29abdf69cd064736f6c63430008030033

Block Transaction Difficulty 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

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.