Contract 0xf085a237aad38fcd81a45503d5eac353b1d03c12

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x54959c9dfcd8b53ac689fa5e865d550ade33a0f800bd2f38b04cf361eb6328dbWithdraw All139591132022-06-07 9:50:38118 days 23 hrs ago0x59b9fac77b64dcc0006207a2a41d90d96b3bc301 IN  0xf085a237aad38fcd81a45503d5eac353b1d03c120 ETH0.00021068503 ETH
0x6679c026cffaddb7f322ab2124b2c9a015662b8a5b9c873832a9565fdb41a66eAppreciate139590902022-06-07 9:50:29118 days 23 hrs ago0x59b9fac77b64dcc0006207a2a41d90d96b3bc301 IN  0xf085a237aad38fcd81a45503d5eac353b1d03c120.025 ETH0.000271601376 ETH
0xc74595d296c42624c298fb79548d9424019467d7ba2b26cac7a84181883637bf0x7359b9fa139588812022-06-07 9:47:54118 days 23 hrs ago0x59b9fac77b64dcc0006207a2a41d90d96b3bc301 IN  Create: Vyper_contract0 ETH0.002627955799 ETH
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x54959c9dfcd8b53ac689fa5e865d550ade33a0f800bd2f38b04cf361eb6328db139591132022-06-07 9:50:38118 days 23 hrs ago 0xf085a237aad38fcd81a45503d5eac353b1d03c120x59b9fac77b64dcc0006207a2a41d90d96b3bc3010.025 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Vyper_contract

Compiler Version
vyper:0.3.0

Optimization Enabled:
N/A

Other Settings:
, MIT license

Contract Source Code (Vyper language format)

# @version ^0.3.0

# state variables
balanceOf: public(HashMap[address, uint256])
allowance: public(HashMap[address, HashMap[address, uint256]])
totalSupply: public(uint256)
greypixel: address

event Transfer:
    sender: indexed(address)
    receiver: indexed(address)
    value: uint256

event Approval:
    owner: indexed(address)
    spender: indexed(address)
    value: uint256

# Functions
@view
@external
def name() -> String[28]:
    return "greypixel appreciation token"

@view
@external
def symbol() -> String[4]:
    return "GPXL"

@view
@external
def decimals() -> uint256:
    return 18

@external
def __init__():
    self.greypixel = 0x59B9FaC77b64Dcc0006207a2A41d90D96b3Bc301

# NOTE: allowance & balanceOf getter is auto generated by the public state variable.

@external
def transfer(_to: address, _value: uint256) -> bool:
    # underflow would revert.
    self.balanceOf[msg.sender] -= _value
    self.balanceOf[_to] += _value
    log Transfer(msg.sender, _to, _value)
    return True

@external
def transferFrom(_from: address, _to: address, _value: uint256) -> bool:
    self.balanceOf[_from] -= _value
    self.balanceOf[_to] += _value
    self.allowance[_from][msg.sender] -= _value
    log Transfer(_from, _to, _value)
    return True

@external
def approve(_spender: address, _value: uint256) -> bool:
    self.allowance[msg.sender][_spender] += _value
    log Approval(msg.sender, _spender, _value)
    return True

@payable
@external
def appreciate(numTimes: uint256):
    # At least 0.025 ETH.
    assert msg.value >= 25000000000000000 * numTimes
    amt:uint256 = numTimes * 10 ** 18
    self.balanceOf[msg.sender] += amt
    self.totalSupply += amt
    log Transfer(ZERO_ADDRESS, msg.sender, amt)

@external
def withdrawAll():
    send(self.greypixel, self.balance)

Contract ABI

[{"name":"Transfer","inputs":[{"name":"sender","type":"address","indexed":true},{"name":"receiver","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"name":"owner","type":"address","indexed":true},{"name":"spender","type":"address","indexed":true},{"name":"value","type":"uint256","indexed":false}],"anonymous":false,"type":"event"},{"stateMutability":"view","type":"function","name":"name","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":6203},{"stateMutability":"view","type":"function","name":"symbol","inputs":[],"outputs":[{"name":"","type":"string"}],"gas":6233},{"stateMutability":"view","type":"function","name":"decimals","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":486},{"stateMutability":"nonpayable","type":"constructor","inputs":[],"outputs":[]},{"stateMutability":"nonpayable","type":"function","name":"transfer","inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":78892},{"stateMutability":"nonpayable","type":"function","name":"transferFrom","inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":116634},{"stateMutability":"nonpayable","type":"function","name":"approve","inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"outputs":[{"name":"","type":"bool"}],"gas":41631},{"stateMutability":"payable","type":"function","name":"appreciate","inputs":[{"name":"numTimes","type":"uint256"}],"outputs":[],"gas":79139},{"stateMutability":"nonpayable","type":"function","name":"withdrawAll","inputs":[],"outputs":[],"gas":38801},{"stateMutability":"view","type":"function","name":"balanceOf","inputs":[{"name":"arg0","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3038},{"stateMutability":"view","type":"function","name":"allowance","inputs":[{"name":"arg0","type":"address"},{"name":"arg1","type":"address"}],"outputs":[{"name":"","type":"uint256"}],"gas":3340},{"stateMutability":"view","type":"function","name":"totalSupply","inputs":[],"outputs":[{"name":"","type":"uint256"}],"gas":2826}]

7359b9fac77b64dcc0006207a2a41d90d96b3bc30160035561058056600436101561000d57610559565b60046000601c376000516335e476af8114156100e8576658d15e1762800060043580820282158284830414171561055f5780905090509050341061055f57600435670de0b6b3a764000080820282158284830414171561055f57809050905090506101405260003360e05260c052604060c020805461014051818183011061055f57808201905090508155506002805461014051818183011061055f57808201905090508155503360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef61014051610160526020610160a3005b3461055f576306fdde0381141561019257610180806020808252601c610140527f67726579706978656c20617070726563696174696f6e20746f6b656e00000000610160526101408184018082805160200180838284600060045af11561055f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905080905090509050610180f35b6395d89b41811415610237576101808060208082526004610140527f4750584c00000000000000000000000000000000000000000000000000000000610160526101408184018082805160200180838284600060045af11561055f5750508051806020830101818260206001820306601f8201039050033682375050805160200160206001820306601f82010390509050905090508101905080905090509050610180f35b63313ce567811415610250576012610140526020610140f35b63a9059cbb8114156102fb576004358060a01c61055f578090506101405260003360e05260c052604060c020805460243580821061055f578082039050905081555060006101405160e05260c052604060c0208054602435818183011061055f578082019050905081555061014051337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602435610160526020610160a36001610160526020610160f35b6323b872dd8114156103f1576004358060a01c61055f57809050610140526024358060a01c61055f578090506101605260006101405160e05260c052604060c020805460443580821061055f578082039050905081555060006101605160e05260c052604060c0208054604435818183011061055f578082019050905081555060016101405160e05260c052604060c0203360e05260c052604060c020805460443580821061055f578082039050905081555061016051610140517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef604435610180526020610180a36001610180526020610180f35b63095ea7b3811415610484576004358060a01c61055f578090506101405260013360e05260c052604060c0206101405160e05260c052604060c0208054602435818183011061055f578082019050905081555061014051337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602435610160526020610160a36001610160526020610160f35b63853828b68114156104a6576000600060006000476003546000f11561055f57005b6370a082318114156104e1576004358060a01c61055f578090506101405260006101405160e05260c052604060c02054610160526020610160f35b63dd62ed3e81141561053d576004358060a01c61055f57809050610140526024358060a01c61055f578090506101605260016101405160e05260c052604060c0206101605160e05260c052604060c02054610180526020610180f35b6318160ddd81141561055757600254610140526020610140f35b505b60006000fd5b600080fd5b61001c6105800361001c60003961001c610580036000f3

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.