Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
58 lines
1.8 KiB
Solidity
58 lines
1.8 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.4;
|
|
|
|
contract RevertingToken {
|
|
/*///////////////////////////////////////////////////////////////
|
|
EVENTS
|
|
//////////////////////////////////////////////////////////////*/
|
|
|
|
event Transfer(address indexed from, address indexed to, uint256 amount);
|
|
|
|
event Approval(address indexed owner, address indexed spender, uint256 amount);
|
|
|
|
/*///////////////////////////////////////////////////////////////
|
|
METADATA STORAGE
|
|
//////////////////////////////////////////////////////////////*/
|
|
|
|
string public constant name = "RevertingToken";
|
|
|
|
string public constant symbol = "RT";
|
|
|
|
uint8 public constant decimals = 18;
|
|
|
|
/*///////////////////////////////////////////////////////////////
|
|
ERC20 STORAGE
|
|
//////////////////////////////////////////////////////////////*/
|
|
|
|
uint256 public totalSupply;
|
|
|
|
mapping(address => uint256) public balanceOf;
|
|
|
|
mapping(address => mapping(address => uint256)) public allowance;
|
|
|
|
/*///////////////////////////////////////////////////////////////
|
|
CONSTRUCTOR
|
|
//////////////////////////////////////////////////////////////*/
|
|
|
|
constructor() {
|
|
totalSupply = type(uint256).max;
|
|
balanceOf[msg.sender] = type(uint256).max;
|
|
}
|
|
|
|
/*///////////////////////////////////////////////////////////////
|
|
ERC20 LOGIC
|
|
//////////////////////////////////////////////////////////////*/
|
|
|
|
function approve(address, uint256) public virtual {
|
|
revert();
|
|
}
|
|
|
|
function transfer(address, uint256) public virtual {
|
|
revert();
|
|
}
|
|
|
|
function transferFrom(address, address, uint256) public virtual {
|
|
revert();
|
|
}
|
|
}
|