This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts@0.4.0/SuperBatcher.sol": ".deps/npm/contracts@0.4.0/SuperBatcher.sol" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts@0.4.0/SuperBatcher.sol": ".deps/npm/contracts@0.4.0/SuperBatcher.sol" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts/SuperBatcher.sol": { | |
| "__sources__": { | |
| "contracts/SuperBatcher.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/**\n * @title SuperBatcher\n * @dev 工业级批量转账工具:支持 ERC20 (USDT) 授权转账与原生代币 (BNB) 转账\n * 针对 200+ 笔转账进行了 Gas 优化,并具备应急提取功能\n */\ninterface IERC20 {\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n function balanceOf(address account) external view returns (uint256);\n function approve(address spender, uint256 amount) external returns (bool);\n}\n\ncontract SuperBatcher {\n address public owner;\n\n // 事件:用于前端追踪批量转账结果\n event BatchTokenTransferred(\n address indexed token,\n uint256 totalRecipients,\n uint256 totalAmount\n );\n event BatchBNBTransferred(uint256 totalRecipients, uint256 totalAmount);\n event EmergencyWithdraw(address indexed token, uint256 amount);\n\n constructor() {\n owner = msg.sen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "contracts/SuperBatcher.sol": { | |
| "__sources__": { | |
| "contracts/SuperBatcher.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\n/**\n * @title SuperBatcher\n * @dev 工业级批量转账工具:支持 ERC20 (USDT) 授权转账与原生代币 (BNB) 转账\n * 针对 200+ 笔转账进行了 Gas 优化,并具备应急提取功能\n */\ninterface IERC20 {\n function transferFrom(\n address sender,\n address recipient,\n uint256 amount\n ) external returns (bool);\n function balanceOf(address account) external view returns (uint256);\n function approve(address spender, uint256 amount) external returns (bool);\n}\n\ncontract SuperBatcher {\n address public owner;\n\n // 事件:用于前端追踪批量转账结果\n event BatchTokenTransferred(\n address indexed token,\n uint256 totalRecipients,\n uint256 totalAmount\n );\n event BatchBNBTransferred(uint256 totalRecipients, uint256 totalAmount);\n event EmergencyWithdraw(address indexed token, uint256 amount);\n\n constructor() {\n owner = msg.sen |