Liquid Coin
About
Features
Explorer
Wallet
Arctic IDE
Create Wallet
Layer 2 Contract Development
Arctic IDE
.
Build, compile, and deploy smart contracts on the GLASS Layer 2 network
Example Contracts
ERC-20 Token
Standard fungible token with privacy features
Private NFT
Non-fungible token with stealth minting
Staking Contract
Stake GLASS tokens with privacy
IDE Features
Syntax highlighting
Real-time compilation
Gas estimation
Privacy validation
Layer 2 deployment
Network
Select Network
Mainnet (5113)
Stagenet (5114) - Testing
Testnet (5115)
Chain
GLASS L2
Status
Connected
Gas Price
0.001 GLASS
contract.sol
Solidity
Save
Compile
Editor
Output
// GLASS Smart Contract // Arctic IDE - Layer 2 Contract Development Environment contract Token { // State variables mapping(address => uint256) public balances; mapping(address => mapping(address => uint256)) public allowances; string public name = "My Token"; string public symbol = "MTK"; uint8 public decimals = 18; uint256 public totalSupply; // Privacy features bool public privacyEnabled = true; // Events event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); // Constructor constructor(uint256 _initialSupply) { totalSupply = _initialSupply * 10 ** uint256(decimals); balances[msg.sender] = totalSupply; } // Transfer function with privacy option function transfer(address _to, uint256 _value) public returns (bool) { require(balances[msg.sender] >= _value, "Insufficient balance"); require(_to != address(0), "Invalid address"); balances[msg.sender] -= _value; balances[_to] += _value; emit Transfer(msg.sender, _to, _value); return true; } // Get balance function balanceOf(address _owner) public view returns (uint256) { return balances[_owner]; } // Approve spending function approve(address _spender, uint256 _value) public returns (bool) { allowances[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } }
51 lines