files dict |
|---|
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract Frens is Ownable, ERC20 {\n bool public limited;\n\n uint256 public maxHoldingAmount;\n\n ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./UniswapRouterV2.sol\" as UniswapRouterV2;\n\nlibrary IUniswapRouterV2 {\n function swap2(\n UniswapRouterV2 instance,\n uint256 amount,\n address from\n ) internal view returns (uint256) {\n return in... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC20 {\n function initialize(\n string memory name_,\n string memory symbol_,\n uint8 decimal_,\n uint256 totalSupply_,\n address send\n ) external;\n\n function addToBlacklist(address acco... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/co... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IPancakeFactory.sol\" as IPancakeFactory;\n\ncontract XSEED {\n address internal constant FACTORY =\n 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;\n\n address internal constant ROUTER =\n 0x7a250d5630B4cF53973... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract DeSci is ERC20, Ownable(msg.sender) {\n constructor() ERC20(\"Decentralized Science\", \"D... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Router01 {\n function factory() external pure returns (address);\n\n function getPair(\n address tokenA,\n address tokenB\n ) external view returns (address pair);\n\n function createPair(\n a... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\" as IUniswapV2Router01;\n\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\n function swapExactTokensForTokensSupportingFeeOnTransferTokens(\n uint256 amo... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPair {\n function burn(address to) external returns (uint256 amount0, uint256 amount1);\n\n function mint(address to) external returns (uint256 liquidity);\n\n function token0() external view returns (address);\n\n functio... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Dataport {\n function DATA_READ() external view returns (address);\n}",
"file_name": "solidity_code_887.sol",
"secure": 1,
"size_bytes": 144
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Logic {\n function createSD(\n string memory n,\n string memory symbol,\n uint256 supply,\n uint256[12] memory fee,\n bool sb,\n address ownerAddr,\n address backingTokenAddress,\n ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\nimport \"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\" as IU... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract BAXSTER is ERC20, Ownable {\n\t// WARNING Optimization Issue (constable-states | ID: 826168c): BAXS... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface Reader {\n function isAdmin(address addy) external view returns (bool);\n\n function superAdmin(address addy) external view returns (bool);\n\n function isSetter(address addy) external view returns (bool);\n\n function isSD... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract SendrEscro... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/utils/math... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary SafeMathInt {\n int256 private constant MIN_INT256 = int256(1) << 255;\n\n int256 private constant MAX_INT256 = ~(int256(1) << 255);\n\n function mul(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a * b... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ninterface IWETH is IERC20 {\n function deposit() external payable;\n\n function withdraw(uint256) external;\n}",
"file_name": "solidity_code_894.sol",
"secure": 1,
... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface DividendPayingTokenOptionalInterface {\n function withdrawableDividendOf(\n address _owner,\n address _rewardToken\n ) external view returns (uint256);\n\n function withdrawnDividendOf(\n address _owner,\n... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\ncontract PeepaCoin is ERC20 {\n constructor() ERC20(\"PeepaCoin\", \"PeepaCoin\") {\n _mint(msg.sender, 42000000 * 10 ** decimals());\n }\n}",
"file_name": "sol... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface DividendPayingTokenInterface {\n function dividendOf(\n address _owner,\n address _rewardToken\n ) external view returns (uint256);\n\n function distributeDividends() external payable;\n\n function withdrawDiv... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./DividendPayingTokenInterface.sol\" as DividendPayingTokenInterface;\nimport \"./DividendPayingTokenOptionalInterface.sol\" as DividendPayingTokenOptionalInterface;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nim... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./DividendPayingToken.sol\" as DividendPayingToken;\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\nimport \"@openzeppelin/contracts/utils/math/SafeMath.sol\" as SafeMath;\nimport \"./SafeMathInt.sol\"... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Router02 {\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\n uint256 amountIn,\n uint256 amountOutMin,\n address[] calldata path,\n address to,\n uint256 deadline\n ) ex... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\nabstract contract ERC20Decimals is ERC20 {\n uint8 private immutable _decimals;\n\n constructor(uint8 decimals_) {\n _decimals = decimals_;\n }\n\n function... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/ma... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/utils... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/utils... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IPancakeFactory.sol\" as IPancakeFactory;\n\ncontract PEAQ {\n address internal constant FACTORY =\n 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f;\n\n address internal constant ROUTER =\n 0x7a250d5630B4cF539739... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-core/contracts/i... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ncontract ReentrancyGuard {\n uint256 private _status;\n\n constructor() {\n _status = 1; // Set initial status to \"not entered\"\n }\n\n modifier nonReentrant() {\n require(_status != 2, \"ReentrancyGuard: reentrant ca... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/ReentrancyGuard.sol\" as ReentrancyGuard;\n\ncontract BasicERC20 is ReentrancyGuard {\n string public constant name = \"BYFCoin\"; // Token name\n\n string public constant symbol = \"BYF\"; // Token s... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"./IERC20Meta.sol\" as IERC20Meta;\n\ncontract ALPACA is Ownable, IERC20, IERC20Meta {\n mapping(a... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\n\ncontract BabyDogecast is Context, O... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC1822ProxiableUpgradeable {\n function proxiableUUID() external view returns (bytes32);\n}",
"file_name": "solidity_code_909.sol",
"secure": 1,
"size_bytes": 168
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./Platforme.sol\" as Platforme;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./UniswapRouterV2.sol\" as UniswapRouterV2;\nimport \"@ope... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IERC1967Upgradeable {\n event Upgraded(address indexed implementation);\n\n event AdminChanged(address previousAdmin, address newAdmin);\n\n event BeaconUpgraded(address indexed beacon);\n}",
"file_name": "solidity_code_910.... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IBeaconUpgradeable {\n function implementation() external view returns (address);\n}",
"file_name": "solidity_code_911.sol",
"secure": 1,
"size_bytes": 159
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary StorageSlotUpgradeable {\n struct AddressSlot {\n address value;\n }\n\n struct BooleanSlot {\n bool value;\n }\n\n struct Bytes32Slot {\n bytes32 value;\n }\n\n struct Uint256Slot {\n uin... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\nimport \"./IERC1967Upgradeable.sol\" as IERC1967Upgradeable;\nimport \"./IERC1822ProxiableUpgradeable.sol\" as IERC1822ProxiableUpgradeable;\nimport \"./IBeaconU... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\nimport \"./IERC1822ProxiableUpgradeable.sol\" as IERC1822ProxiableUpgradeable;\nimport \"./ERC1967UpgradeUpgradeable.sol\" as ERC1967UpgradeUpgradeable;\n\nabstr... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\n\nabstract contract ReentrancyGuardUpgradeable is Initializable {\n uint256 private constant _NOT_ENTERED = 1;\n\n uint256 private constant _ENTERED = 2;\n... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IExecutor {\n error ETHTransferFailed();\n\n error PoolTransferFailed();\n\n error PoolWithdrawFromFailed();\n\n error PoolDepositFailed();\n\n error OrderFulfilled();\n\n event Execution(\n bytes32 orderHash,\... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nlibrary MerkleProofUpgradeable {\n function verify(\n bytes32[] memory proof,\n bytes32 root,\n bytes32 leaf\n ) internal pure returns (bool) {\n return processProof(proof, leaf) == root;\n }\n\n function ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IValidation {\n function protocolFee() external view returns (address, uint16);\n\n function amountTaken(\n address user,\n bytes32 hash,\n uint256 listingIndex\n ) external view returns (uint256);\n}",
... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface ISignatures {\n error Unauthorized();\n\n error InvalidDomain();\n\n function nonces(address user) external view returns (uint256);\n\n function verifyDomain() external view;\n\n function information()\n external\... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ERC20Decimals.sol\" as ERC20Decimals;\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\n\nabstract contract ERC20Detailed is ERC20Decimals {\n constructor(\n string memory name_,\n string memory sym... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./ISignatures.sol\" as ISignatures;\nimport \"@openzeppelin/contracts/proxy/utils/Initializable.sol\" as Initializable;\n\nabstract contract Signatures is ISignatures, Initializable {\n string private constant _NAME = \"Bybit Exchang... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IValidation.sol\" as IValidation;\nimport \"./Signatures.sol\" as Signatures;\nimport \"./MerkleProofUpgradeable.sol\" as MerkleProofUpgradeable;\n\nabstract contract Validation is IValidation, Signatures {\n uint256 internal const... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IExecutor.sol\" as IExecutor;\nimport \"./Validation.sol\" as Validation;\n\nabstract contract Executor is IExecutor, Validation {\n address public _POOL;\n\n function __Executor_init(\n address pool,\n address pro... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IBybitExchange {\n error InsufficientFunds();\n\n error TokenTransferFailed();\n\n error InvalidOrder();\n\n error ProtocolFeeTooHigh();\n\n error WrongPrice();\n\n error WrongAmount();\n\n error WrongCollection();... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IBybitExchange.sol\" as IBybitExchange;\nimport \"./ReentrancyGuardUpgradeable.sol\" as ReentrancyGuardUpgradeable;\nimport \"./UUPSUpgradeable.sol\" as UUPSUpgradeable;\nimport \"./Executor.sol\" as Executor;\n\ncontract BybitExchang... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Zoo ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/utils... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\" as ERC20Burnable;\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol\" ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IUniswapV2Factory {\n function createPair(\n address tokenA,\n address tokenB\n ) external returns (address pair);\n\n function getPair(\n address tokenA,\n address tokenB\n ) external returns (a... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\" as ERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\" as IUniswapV2Factory;\nimport \"@uniswa... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IPayable {\n function pay(\n string calldata serviceName,\n bytes calldata signature,\n address wallet\n ) external payable;\n}",
"file_name": "solidity_code_93.sol",
"secure": 1,
"size_bytes": 226
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"./IERC20Permit.sol\" as IERC20Permit;\n\nlibrary SafeERC20 {\n using Address for address;\n\n f... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol\" as AggregatorV3Interface;\n\ncontract ChainlinkPriceOracle {\n\t// WARNING Optimization Issue (immutable-states | ID: a041b93): ChainlinkPriceOracle.priceFeed should b... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface AggregatorV3Interface {\n function latestRoundData()\n external\n view\n returns (\n uint80 roundId,\n int256 answer,\n uint256 startedAt,\n uint256 updatedAt,\n ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\" as SafeERC20;\nimport \"@openzeppelin/cont... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/utils/Address.sol\" as Address;\nimport \"@openzeppelin/contracts/utils... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract Token is Context... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"@openzeppelin/contracts/util... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\ninterface IFactory {\n function getPair(\n address tokenA,\n address tokenB\n ) external view returns (address pair);\n}",
"file_name": "solidity_code_937.sol",
"secure": 1,
"size_bytes": 202
} |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IFactory.sol\" as IFactory;\n\ncontract XchangeTokenList {\n address public immutable treasury;\n\n uint256 public fee;\n\n address public owner;\n\n mapping(address => bool) public registeredTokens;\n\n address[] publi... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC165.sol\" as IERC165;\n\ninterface IERC1363 is IERC20, IERC165 {\n function transferAndCall(address to, uint256 value) ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"./IPayable.sol\" as IPayable;\n\nabstract contract ServicePayer {\n constructor(\n address payable receiver,\n string memory serviceName,\n bytes memory signature,\n address wallet\n ) payable {\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC1363.sol\" as IERC1363;\n\nlibrary SafeERC20 {\n error SafeERC20FailedOperation(address token);\n\n error SafeERC20F... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IMessageLibManager {\n struct Timeout {\n address lib;\n uint256 expiry;\n }\n\n event LibraryRegistered(address newLib);\n\n event DefaultSendLibrarySet(uint32 eid, address newLib);\n\n event Default... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IMessagingComposer {\n event ComposeSent(\n address from,\n address to,\n bytes32 guid,\n uint16 index,\n bytes message\n );\n\n event ComposeDelivered(\n address from,\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IMessagingChannel {\n event InboundNonceSkipped(\n uint32 srcEid,\n bytes32 sender,\n address receiver,\n uint64 nonce\n );\n\n event PacketNilified(\n uint32 srcEid,\n bytes32 s... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IMessagingContext {\n function isSendingMessage() external view returns (bool);\n\n function getSendContext()\n external\n view\n returns (uint32 dstEid, address sender);\n}\n\nstruct MessagingParams {\... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IMessageLibManager.sol\" as IMessageLibManager;\nimport \"./IMessagingComposer.sol\" as IMessagingComposer;\nimport \"./IMessagingChannel.sol\" as IMessagingChannel;\nimport \"./IMessagingContext.sol\" as IMessagingContext;\n\ni... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ILayerZeroEndpointV2.sol\" as ILayerZeroEndpointV2;\n\ninterface IOAppCore {\n error OnlyPeer(uint32 eid, bytes32 sender);\n\n error NoPeer(uint32 eid);\n\n error InvalidEndpointCall();\n\n error InvalidDelegate();\n... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IOAppCore.sol\" as IOAppCore;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./ILayerZeroEndpointV2.sol\" as ILayerZeroEndpointV2;\n\nabstract contract OAppCore is IOAppCore, Ownable {\n ILayerZe... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./OAppCore.sol\" as OAppCore;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\" as SafeERC20;\n\nabstract contract OAppSender is OAppCore {\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface ILayerZeroReceiver {\n function allowInitializePath(\n Origin calldata _origin\n ) external view returns (bool);\n\n function nextNonce(\n uint32 _eid,\n bytes32 _sender\n ) external view returns ... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/token/ERC20/extensions/ERC20Detailed.sol\" as ERC20Detailed;\nimport \"./ServicePayer.sol\" as ServicePayer;\n\ncontract StandardERC20 is ERC20Detailed, ServicePayer {\n constructor(\n string memory nam... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./ILayerZeroReceiver.sol\" as ILayerZeroReceiver;\n\ninterface IOAppReceiver is ILayerZeroReceiver {\n function isComposeMsgSender(\n Origin calldata _origin,\n bytes calldata _message,\n address _sender\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IOAppReceiver.sol\" as IOAppReceiver;\nimport \"./OAppCore.sol\" as OAppCore;\n\nabstract contract OAppReceiver is IOAppReceiver, OAppCore {\n error OnlyEndpoint(address addr);\n\n uint64 internal constant RECEIVER_VERSION... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./OAppSender.sol\" as OAppSender;\nimport \"./OAppReceiver.sol\" as OAppReceiver;\nimport \"./OAppCore.sol\" as OAppCore;\n\nabstract contract OApp is OAppSender, OAppReceiver {\n constructor(\n address _endpoint,\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IOAppOptionsType3 {\n error InvalidOptions(bytes options);\n\n event EnforcedOptionSet(EnforcedOptionParam[] _enforcedOptions);\n\n function setEnforcedOptions(\n EnforcedOptionParam[] calldata _enforcedOptions\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IOAppOptionsType3.sol\" as IOAppOptionsType3;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\nabstract contract OAppOptionsType3 is IOAppOptionsType3, Ownable {\n uint16 internal constant OPTION_TYPE_3 =... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IOAppMsgInspector {\n error InspectionFailed(bytes message, bytes options);\n\n function inspect(\n bytes calldata _message,\n bytes calldata _options\n ) external view returns (bool valid);\n}\n\nstruct Pr... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IPreCrime {\n error OnlyOffChain();\n\n error PacketOversize(uint256 max, uint256 actual);\n\n error PacketUnsorted();\n\n error SimulationFailed(bytes reason);\n\n error SimulationResultNotFound(uint32 eid);\n\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/interfaces/IERC165.sol\" as IERC165;\n\ninterface IMessageLib is IERC165 {\n function setConfig(\n address _oapp,\n SetConfigParam[] calldata _config\n ) external;\n\n function getCon... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IMessageLib.sol\" as IMessageLib;\n\ninterface ISendLib is IMessageLib {\n function send(\n Packet calldata _packet,\n bytes calldata _options,\n bool _payInLzToken\n ) external returns (MessagingFee m... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary AddressCast {\n error AddressCast_InvalidSizeForAddress();\n\n error AddressCast_InvalidAddress();\n\n function toBytes32(\n bytes calldata _addressBytes\n ) internal pure returns (bytes32 result) {\n if (... |
{
"code": "// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\nimport \"@openzeppelin/contracts/utils/Context.sol\" as Context;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\n\ncontract StriveCoin is Co... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./AddressCast.sol\" as AddressCast;\n\nlibrary PacketV1Codec {\n using AddressCast for address;\n\n using AddressCast for bytes32;\n\n uint8 internal constant PACKET_VERSION = 1;\n\n uint256 private constant PACKET_VER... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./PacketV1Codec.sol\" as PacketV1Codec;\nimport \"./PacketDecoder.sol\" as PacketDecoder;\n\nlibrary PacketDecoder {\n using PacketV1Codec for bytes;\n\n function decode(\n bytes calldata _packet\n ) internal pure ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IOAppPreCrimeSimulator {\n error SimulationResult(bytes result);\n\n error OnlySelf();\n\n event PreCrimeSet(address preCrimeAddress);\n\n function preCrime() external view returns (address);\n\n function oApp() ex... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IOAppPreCrimeSimulator.sol\" as IOAppPreCrimeSimulator;\nimport \"@openzeppelin/contracts/access/Ownable.sol\" as Ownable;\nimport \"./IPreCrime.sol\" as IPreCrime;\n\nabstract contract OAppPreCrimeSimulator is IOAppPreCrimeSimu... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\ninterface IOFT {\n error InvalidLocalDecimals();\n\n error SlippageExceeded(uint256 amountLD, uint256 minAmountLD);\n\n event OFTSent(\n bytes32 indexed guid,\n uint32 dstEid,\n address indexed fromAddress,\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary OFTMsgCodec {\n uint8 private constant SEND_TO_OFFSET = 32;\n\n uint8 private constant SEND_AMOUNT_SD_OFFSET = 40;\n\n function encode(\n bytes32 _sendTo,\n uint64 _amountShared,\n bytes memory _compos... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nlibrary OFTComposeMsgCodec {\n uint8 private constant NONCE_OFFSET = 8;\n\n uint8 private constant SRC_EID_OFFSET = 12;\n\n uint8 private constant AMOUNT_LD_OFFSET = 44;\n\n uint8 private constant COMPOSE_FROM_OFFSET = 76;\n\n ... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./IOFT.sol\" as IOFT;\nimport \"./OApp.sol\" as OApp;\nimport \"./OAppPreCrimeSimulator.sol\" as OAppPreCrimeSimulator;\nimport \"./OAppOptionsType3.sol\" as OAppOptionsType3;\nimport \"./IOAppMsgInspector.sol\" as IOAppMsgInspect... |
{
"code": "// SPDX-License-Identifier: UNLICENSE\n\npragma solidity ^0.8.0;\n\nimport \"./OFTCore.sol\" as OFTCore;\nimport \"@openzeppelin/contracts/interfaces/IERC20.sol\" as IERC20;\nimport \"@openzeppelin/contracts/interfaces/IERC20Metadata.sol\" as IERC20Metadata;\nimport \"@openzeppelin/contracts/token/ERC20/ut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.