{ "observed_at_utc": "2026-10-28T16:03:17.574Z", "method": "Compiled OpenZeppelin ERC20 5.4.0 subclass; executed bytecode via EthereumJS EVM runCall in isolated in-memory Shanghai state; not signed transactions, a public-chain deployment, RPC, wallet UI, security audit or human expert signoff.", "environment": { "node": "v20.20.2", "solc": "0.8.30+commit.73712a01.Emscripten.clang", "openzeppelin": "5.4.0", "ethereumjs_vm": "8.1.1", "ethereumjs_common": "4.4.0", "ethereumjs_util": "9.1.0", "ethers": "6.13.5", "decimals": 6, "hardfork": "Shanghai" }, "compiler_input": { "language": "Solidity", "sources": { "LabToken.sol": { "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\nimport {ERC20} from \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\n// Test-only, unrestricted mint, unsuitable for real deployment.\ncontract LabToken is ERC20 {\n constructor() ERC20(\"Local Lab Token\", \"LAB\") { _mint(msg.sender, 2000000); }\n function decimals() public pure override returns(uint8) { return 6; }\n function mintForLab(address to,uint256 n) external { _mint(to,n); }\n}" } }, "settings": { "evmVersion": "shanghai", "optimizer": { "enabled": false }, "outputSelection": { "*": { "*": [ "abi", "evm.bytecode.object" ] } } } }, "import_sha256": { "@openzeppelin/contracts/token/ERC20/ERC20.sol": "9f906af4cba6e7e091dc12d45e6687e1239cf82d17678198424250fd64ab96bd", "@openzeppelin/contracts/token/ERC20/IERC20.sol": "01b6f5c4fa45fd38822b286ecef6daf983d27306dd6362496fa71b3e4600b72c", "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol": "0b7132f17d14d1d84b41b0bb429be62dafdff00fd3470f68724d8018eb07f57a", "@openzeppelin/contracts/utils/Context.sol": "847fda5460fee70f56f4200f59b82ae622bb03c79c77e67af010e31b7e2cc5b6", "@openzeppelin/contracts/interfaces/draft-IERC6093.sol": "df936240c9a5d342582cbda70dd773b1c1d0e0dda3042b1c17b902ef0c36827b" }, "creation_bytecode_sha256": "cfc843082dbe79043721ce1a61598d15391c1cd82ecf360ad397ff750f98c4ce", "package_lock_sha256": "703935e46f8fa3e4d58f83c74314d36f1c4f99815ff52d2771849755d33e66f4", "cases": [ { "label": "approve 5 LAB with balance 2 LAB", "method": "approve", "args": [ "0x2222222222222222222222222222222222222222", "5000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "2000000", "recipient_balance_raw": "0", "allowance_raw": "0" }, "after": { "owner_balance_raw": "2000000", "recipient_balance_raw": "0", "allowance_raw": "5000000" }, "logs": 1, "events": [ "Approval" ] }, { "label": "try transfer 3 LAB: enough allowance, insufficient balance", "method": "transferFrom", "args": [ "0x1111111111111111111111111111111111111111", "0x3333333333333333333333333333333333333333", "3000000" ], "success": false, "error": "ERC20InsufficientBalance", "before": { "owner_balance_raw": "2000000", "recipient_balance_raw": "0", "allowance_raw": "5000000" }, "after": { "owner_balance_raw": "2000000", "recipient_balance_raw": "0", "allowance_raw": "5000000" }, "logs": 0, "events": [] }, { "label": "transfer 2 LAB", "method": "transferFrom", "args": [ "0x1111111111111111111111111111111111111111", "0x3333333333333333333333333333333333333333", "2000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "2000000", "recipient_balance_raw": "0", "allowance_raw": "5000000" }, "after": { "owner_balance_raw": "0", "recipient_balance_raw": "2000000", "allowance_raw": "3000000" }, "logs": 1, "events": [ "Transfer" ] }, { "label": "test-only mint 4 more LAB", "method": "mintForLab", "args": [ "0x1111111111111111111111111111111111111111", "4000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "0", "recipient_balance_raw": "2000000", "allowance_raw": "3000000" }, "after": { "owner_balance_raw": "4000000", "recipient_balance_raw": "2000000", "allowance_raw": "3000000" }, "logs": 1, "events": [ "Transfer" ] }, { "label": "spender uses remaining 3 LAB after top-up", "method": "transferFrom", "args": [ "0x1111111111111111111111111111111111111111", "0x3333333333333333333333333333333333333333", "3000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "4000000", "recipient_balance_raw": "2000000", "allowance_raw": "3000000" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "logs": 1, "events": [ "Transfer" ] }, { "label": "approve 5 then overwrite with 3: first 5", "method": "approve", "args": [ "0x2222222222222222222222222222222222222222", "5000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "5000000" }, "logs": 1, "events": [ "Approval" ] }, { "label": "approve 3 overwrites rather than adds", "method": "approve", "args": [ "0x2222222222222222222222222222222222222222", "3000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "5000000" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "3000000" }, "logs": 1, "events": [ "Approval" ] }, { "label": "set allowance to zero", "method": "approve", "args": [ "0x2222222222222222222222222222222222222222", "0" ], "success": true, "error": null, "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "3000000" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "logs": 1, "events": [ "Approval" ] }, { "label": "nonzero transfer after zero allowance fails", "method": "transferFrom", "args": [ "0x1111111111111111111111111111111111111111", "0x3333333333333333333333333333333333333333", "1" ], "success": false, "error": "ERC20InsufficientAllowance", "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "logs": 0, "events": [] }, { "label": "maximum uint256 approval in this implementation", "method": "approve", "args": [ "0x2222222222222222222222222222222222222222", "115792089237316195423570985008687907853269984665640564039457584007913129639935" ], "success": true, "error": null, "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "0" }, "after": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "115792089237316195423570985008687907853269984665640564039457584007913129639935" }, "logs": 1, "events": [ "Approval" ] }, { "label": "transfer 1 LAB with maximum approval", "method": "transferFrom", "args": [ "0x1111111111111111111111111111111111111111", "0x3333333333333333333333333333333333333333", "1000000" ], "success": true, "error": null, "before": { "owner_balance_raw": "1000000", "recipient_balance_raw": "5000000", "allowance_raw": "115792089237316195423570985008687907853269984665640564039457584007913129639935" }, "after": { "owner_balance_raw": "0", "recipient_balance_raw": "6000000", "allowance_raw": "115792089237316195423570985008687907853269984665640564039457584007913129639935" }, "logs": 1, "events": [ "Transfer" ] } ], "limits": [ "Only this version and test wrapper were executed. Fee, rebasing, proxy, permit, NFT, token-specific behavior and real transfer race conditions were not tested.", "No actual wallet connection, user account, secret, RPC or blockchain funds were used. Addresses and balances exist only in local memory.", "Input is fixed to exhibit balance/allowance and overwrite/max-allowance behavior. It is not advice to approve or move real assets." ] }