Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
A smart contract
Compiler Version
vyper:0.4.0
Optimization Enabled:
Yes with gas option
Other Settings:
cancun EvmVersion
Contract Source Code (Vyper Json-Input format)
# @pragma version ^0.4.0 """ @title A smart contract @author Some person on the internet @license none """ import math # Other ways to import # import math as m # from . import math # from . import math as m stored_number: public(uint256) @deploy def __init__(): self.stored_number = 0 @external def call_math_mul(x: uint256, y: uint256): self.stored_number = math.mul(x, y) @view @external def get_number() -> uint256: return self.stored_number
# @pragma version ^0.4.0 @pure def mul(x: uint256, y: uint256) -> uint256: return x * y
{ "evmVersion": "cancun", "optimize": "gas", "outputSelection": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }
[{"inputs":[{"name":"x","type":"uint256"},{"name":"y","type":"uint256"}],"name":"call_math_mul","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"get_number","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stored_number","outputs":[{"name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"outputs":[],"stateMutability":"nonpayable","type":"constructor"}]
Contract Creation Code
34610017575f5f556100a861001b6000396100a86000f35b5f80fd5f3560e01c60026003820660011b6100a201601e395f51565b638fa56054811861007b5760443610341761009e576040600460403761003e608061007f565b6080515f55005b63eeb4e367811861007b573461009e575f5460405260206040f35b6398716725811861007b573461009e575f5460405260206040f35b5f5ffd5b60405160605180820281158383830414171561009e5790509050815250565b5f80fd0060004500188418a8810600a1657679706572830004000013
Deployed Bytecode
0x5f3560e01c60026003820660011b6100a201601e395f51565b638fa56054811861007b5760443610341761009e576040600460403761003e608061007f565b6080515f55005b63eeb4e367811861007b573461009e575f5460405260206040f35b6398716725811861007b573461009e575f5460405260206040f35b5f5ffd5b60405160605180820281158383830414171561009e5790509050815250565b5f80fd006000450018
Loading...
Loading
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.