Address Details
contract

0xF8026FBA83b3623530A6096d9B5fC7D70C664bC4

Contract Name
Hello
Creator
0x0abcee–184380 at 0x8e3c92–025a2c
Balance
0 CELO ( )
Locked CELO Balance
0.00 CELO
Voting CELO Balance
0.00 CELO
Pending Unlocked Gold
0.00 CELO
Tokens
Fetching tokens...
Transactions
4 Transactions
Transfers
0 Transfers
Gas Used
176,882
Last Balance Update
11641539
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
Hello




Optimization enabled
true
Compiler version
v0.8.13+commit.abaa5c0e




Optimization runs
200
EVM Version
byzantium




Verified at
2022-05-26T10:08:47.794740Z

project:/contracts/Hello.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

contract Hello {
  string private hello;

  event SetValue(string indexed val, uint256 indexed time);
  event SetValueAddtionalArgs(bool indexed done, uint8 indexed res, address indexed owner);

  constructor(string memory helloYou) {
    hello = helloYou;
    emit SetValue(helloYou, block.timestamp);
  }

  function getValue() public view returns (string memory){
    return hello;
  }

  function setValue(string memory helloYou) public {
    hello = helloYou;
    emit SetValueAddtionalArgs(false, 4, msg.sender);
    emit SetValue(hello, block.timestamp);
  }

  function setValueWithError(string memory helloYou) public {
    hello = helloYou;
    emit SetValue((hello), block.timestamp);
    revert(string.concat("Can not set supplied value: ", helloYou));
  }
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"helloYou","internalType":"string"}]},{"type":"event","name":"SetValue","inputs":[{"type":"string","name":"val","internalType":"string","indexed":true},{"type":"uint256","name":"time","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"SetValueAddtionalArgs","inputs":[{"type":"bool","name":"done","internalType":"bool","indexed":true},{"type":"uint8","name":"res","internalType":"uint8","indexed":true},{"type":"address","name":"owner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getValue","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setValue","inputs":[{"type":"string","name":"helloYou","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setValueWithError","inputs":[{"type":"string","name":"helloYou","internalType":"string"}]}]
              

Contract Creation Code

0x608060405234801561001057600080fd5b5060405161087838038061087883398101604081905261002f91610180565b8051610042906000906020840190610088565b504281604051610052919061022d565b604051908190038120907fc572bc19a5cfd44597b671ecdd2b936572e20e674b01927b342794af86dfe39190600090a35061029c565b82805461009490610249565b90600052602060002090601f0160209004810192826100b657600085556100fc565b82601f106100cf57805160ff19168380011785556100fc565b828001600101855582156100fc579182015b828111156100fc5782518255916020019190600101906100e1565b5061010892915061010c565b5090565b5b80821115610108576000815560010161010d565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60005b8381101561016b578181015183820152602001610153565b8381111561017a576000848401525b50505050565b60006020828403121561019257600080fd5b815167ffffffffffffffff808211156101aa57600080fd5b818401915084601f8301126101be57600080fd5b8151818111156101d0576101d0610121565b604051601f8201601f19908116603f011681019083821181831017156101f8576101f8610121565b8160405282815287602084870101111561021157600080fd5b610222836020830160208801610150565b979650505050505050565b6000825161023f818460208701610150565b9190910192915050565b60028104600182168061025d57607f821691505b602082108103610296577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b6105cd806102ab6000396000f3fe608060405234801561001057600080fd5b506004361061005d577c0100000000000000000000000000000000000000000000000000000000600035046320965255811461006257806393a0935214610080578063fcaf71bc14610095575b600080fd5b61006a6100a8565b6040516100779190610338565b60405180910390f35b61009361008e36600461039a565b61013a565b005b6100936100a336600461039a565b6101c1565b6060600080546100b79061044b565b80601f01602080910402602001604051908101604052809291908181526020018280546100e39061044b565b80156101305780601f1061010557610100808354040283529160200191610130565b820191906000526020600020905b81548152906001019060200180831161011357829003601f168201915b5050505050905090565b805161014d90600090602084019061026f565b5060405133906004906000907fd6bfc4353338908f7f50acfb048503da9173d34efd276ff2b0ed6cf146a4c103908290a442600060405161018e919061049e565b604051908190038120907fc572bc19a5cfd44597b671ecdd2b936572e20e674b01927b342794af86dfe39190600090a350565b80516101d490600090602084019061026f565b504260006040516101e5919061049e565b604051908190038120907fc572bc19a5cfd44597b671ecdd2b936572e20e674b01927b342794af86dfe39190600090a3806040516020016102269190610552565b60408051601f19818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261026691600401610338565b60405180910390fd5b82805461027b9061044b565b90600052602060002090601f01602090048101928261029d57600085556102e3565b82601f106102b657805160ff19168380011785556102e3565b828001600101855582156102e3579182015b828111156102e35782518255916020019190600101906102c8565b506102ef9291506102f3565b5090565b5b808211156102ef57600081556001016102f4565b60005b8381101561032357818101518382015260200161030b565b83811115610332576000848401525b50505050565b6020815260008251806020840152610357816040850160208701610308565b601f01601f19169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156103ac57600080fd5b813567ffffffffffffffff808211156103c457600080fd5b818401915084601f8301126103d857600080fd5b8135818111156103ea576103ea61036b565b604051601f8201601f19908116603f011681019083821181831017156104125761041261036b565b8160405282815287602084870101111561042b57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60028104600182168061045f57607f821691505b602082108103610498577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b81546000908190600281046001808316806104ba57607f831692505b602080841082036104f2577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610506576001811461051757610544565b60ff19861689528489019650610544565b60008a81526020902060005b8681101561053c5781548b820152908501908301610523565b505084890196505b509498975050505050505050565b7f43616e206e6f742073657420737570706c6965642076616c75653a200000000081526000825161058a81601c850160208701610308565b91909101601c019291505056fea264697066735822122006776f244811c338da3121cb153874e73fe677ad0beb45e077512fd1c7ccf59e64736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000968656c6c6f20796f750000000000000000000000000000000000000000000000

Deployed ByteCode

0x608060405234801561001057600080fd5b506004361061005d577c0100000000000000000000000000000000000000000000000000000000600035046320965255811461006257806393a0935214610080578063fcaf71bc14610095575b600080fd5b61006a6100a8565b6040516100779190610338565b60405180910390f35b61009361008e36600461039a565b61013a565b005b6100936100a336600461039a565b6101c1565b6060600080546100b79061044b565b80601f01602080910402602001604051908101604052809291908181526020018280546100e39061044b565b80156101305780601f1061010557610100808354040283529160200191610130565b820191906000526020600020905b81548152906001019060200180831161011357829003601f168201915b5050505050905090565b805161014d90600090602084019061026f565b5060405133906004906000907fd6bfc4353338908f7f50acfb048503da9173d34efd276ff2b0ed6cf146a4c103908290a442600060405161018e919061049e565b604051908190038120907fc572bc19a5cfd44597b671ecdd2b936572e20e674b01927b342794af86dfe39190600090a350565b80516101d490600090602084019061026f565b504260006040516101e5919061049e565b604051908190038120907fc572bc19a5cfd44597b671ecdd2b936572e20e674b01927b342794af86dfe39190600090a3806040516020016102269190610552565b60408051601f19818403018152908290527f08c379a000000000000000000000000000000000000000000000000000000000825261026691600401610338565b60405180910390fd5b82805461027b9061044b565b90600052602060002090601f01602090048101928261029d57600085556102e3565b82601f106102b657805160ff19168380011785556102e3565b828001600101855582156102e3579182015b828111156102e35782518255916020019190600101906102c8565b506102ef9291506102f3565b5090565b5b808211156102ef57600081556001016102f4565b60005b8381101561032357818101518382015260200161030b565b83811115610332576000848401525b50505050565b6020815260008251806020840152610357816040850160208701610308565b601f01601f19169190910160400192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156103ac57600080fd5b813567ffffffffffffffff808211156103c457600080fd5b818401915084601f8301126103d857600080fd5b8135818111156103ea576103ea61036b565b604051601f8201601f19908116603f011681019083821181831017156104125761041261036b565b8160405282815287602084870101111561042b57600080fd5b826020860160208301376000928101602001929092525095945050505050565b60028104600182168061045f57607f821691505b602082108103610498577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b81546000908190600281046001808316806104ba57607f831692505b602080841082036104f2577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b818015610506576001811461051757610544565b60ff19861689528489019650610544565b60008a81526020902060005b8681101561053c5781548b820152908501908301610523565b505084890196505b509498975050505050505050565b7f43616e206e6f742073657420737570706c6965642076616c75653a200000000081526000825161058a81601c850160208701610308565b91909101601c019291505056fea264697066735822122006776f244811c338da3121cb153874e73fe677ad0beb45e077512fd1c7ccf59e64736f6c634300080d0033