Nuclei Templates
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
| { | |
| function abi_decode_t_address(offset, end) -> value { | |
| value := calldataload(offset) | |
| validator_revert_t_address(value) | |
| } | |
| function abi_decode_t_uint256(offset, end) -> value { | |
| value := calldataload(offset) | |
| validator_revert_t_uint256(value) |
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
| { | |
| function abi_decode_t_address(offset, end) -> value { | |
| value := calldataload(offset) | |
| validator_revert_t_address(value) | |
| } | |
| function abi_decode_t_uint256(offset, end) -> value { | |
| value := calldataload(offset) | |
| validator_revert_t_uint256(value) |
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
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.8.2 <0.9.0; | |
| /** | |
| * @title Storage | |
| * @dev Store & retrieve value in a variable | |
| * @custom:dev-run-script ./scripts/deploy_with_ethers.ts | |
| */ | |
| contract Storage { |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "./IERC20.sol"; | |
| contract Airdropx { | |
| mapping (address => uint256) failTransferList; | |
| address public tokenaddr; | |
| constructor(address TokenContract) payable { | |
| tokenaddr = TokenContract; | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "./IERC20.sol"; | |
| contract Airdropx { | |
| mapping (address => uint256) failTransferList; | |
| address public tokenaddr; | |
| constructor(address TokenContract) payable { | |
| tokenaddr = TokenContract; | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "./IERC20.sol"; | |
| contract Airdropx { | |
| mapping (address => uint256) failTransferList; | |
| address public tokenaddr; | |
| constructor(address TokenContract) payable { | |
| tokenaddr = TokenContract; | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "./IERC20.sol"; | |
| contract Airdropx { | |
| mapping (address => uint256) failTransferList; | |
| address public tokenaddr; | |
| constructor(address TokenContract) payable { | |
| tokenaddr = TokenContract; | |
| } |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "./IERC20.sol"; | |
| contract Faucet{ | |
| address public faucetAddr; | |
| uint256 public amount = 100; | |
| mapping (address => bool) public requestAddr ; | |
| event Transfer(address indexed to, uint256 indexed amount); |
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
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| interface IERC20 { | |
| event Transfer(address indexed from, address indexed to , uint256 value); | |
| event Approval(address indexed owener, address indexed spender,uint256 value); | |
| function totalSupply() external view returns (uint256); | |
| function balanceOf(address account) external view returns (uint256); | |
| function transfer(address to ,uint256 amount) external returns (bool); |
NewerOlder