Toggle Menu
Blockchain
Validators
Ecosystem
Security
Services
Developers
Resources
Mainnet
Toggle theme
Connect Wallet
Vyper EVM Compiler
v0.3.10
Browser-Based Vyper Compiler
Compile Pythonic Vyper smart contracts directly into EVM ABI and bytecode for XOLIXBlock.
Vyper Source Code Editor
Compiler Version:
# @version ^0.3.10 balanceOf: public(HashMap[address, uint256]) totalSupply: public(uint256) owner: public(address) event Transfer: sender: indexed(address) receiver: indexed(address) value: uint256 @external def __init__(_initial_supply: uint256): self.totalSupply = _initial_supply self.balanceOf[msg.sender] = _initial_supply self.owner = msg.sender @external def transfer(_to: address, _amount: uint256) -> bool: assert self.balanceOf[msg.sender] >= _amount, "Insufficient balance" self.balanceOf[msg.sender] -= _amount self.balanceOf[_to] += _amount log Transfer(msg.sender, _to, _amount) return True
Compile Vyper Contract