Dataset Viewer
Auto-converted to Parquet Duplicate
file_name
stringlengths
71
779k
comments
stringlengths
0
29.4k
code_string
stringlengths
20
7.69M
__index_level_0__
int64
2
17.2M
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.7; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzep...
Emergency method, funds gets transferred to the governanceRecoveryFund address
function transferToken(address token, uint256 value) external onlyOwner nonReentrant { require(token != address(0), 'Address is 0'); IERC20Detailed(token).safeTransfer(governanceRecoveryFund, value); }
11,824,201
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/util...
concatenate two lists of strings/
function concat(string[] memory list1, string[] memory list2) internal pure returns (string[] memory) { string[] memory result = new string[](list1.length + list2.length); for (uint256 i = 0; i < list1.length; i++) { result[i] = list1[i]; } for (uint256 i = 0; i < list2.length; i++...
17,505
"// SPDX-License-Identifier: GPL-3.0\n// File: @openzeppelin/contracts/utils/Strings.sol\n\npragma s(...TRUNCATED)
mint a number of NFTs in presale
" function presaleMint(uint256 number, uint8 _v, bytes32 _r, bytes32 _s) onlyValidAccess(_v, _r,(...TRUNCATED)
5,856,582
"// SPDX-License-Identifier: MIT\n\npragma solidity ^0.8.0;\n\n/**\n * @dev String operations.\n */\(...TRUNCATED)
Returns the substraction of two unsigned integers, with an overflow flag. _Available since v3.4._/
" function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n unchecked {\n (...TRUNCATED)
336,020
./full_match/1/0xBe2440C38Cdb7920Ed8D77df6c97112779957286/sources/contracts/BullRun/BullRun.sol
mass update the nftType mapping
" function setBatchNFTType(uint16[] calldata _idNumbers, uint8[] calldata _types) external onlyOw(...TRUNCATED)
17,174,843
"pragma solidity ^0.4.0;\ncontract ItemTracking {\n \n struct Item {\n uint id;\n (...TRUNCATED)
"Extract the sub-components listed in the parameter. Leave the rest of the components in the parent (...TRUNCATED)
" function extract(uint srcId, uint[] toBeExtractedIds)\n itemExists(srcId)\n itemOwnedBySe(...TRUNCATED)
7,320,419
"/**\n *Submitted for verification at Etherscan.io on 2021-04-28\n*/\n\n/**\n\n*/\n\npragma solidity(...TRUNCATED)
"estimate stage return current stage deployed but not initialized not started yet all sold out in sa(...TRUNCATED)
" function stage() constant returns (Stage) { \n if (finalized) {\n return Stag(...TRUNCATED)
2,089,930
"./full_match/1/0x0000000000F7A60F1C88F317f369e3D8679C6689/sources/contracts/tokens/ERC721/ERC721.so(...TRUNCATED)
Returns the total amount of tokens minted in the contract./
" function _totalMinted() internal view virtual returns (uint256) {\n return _mintCounter;(...TRUNCATED)
17,130,791
./full_match/1/0x39159BE9E506d73b776c063D117B8367aA1139e9/sources/contracts/SamuraiJack.sol
Excludes the specified account from tax./
" function exclude(address account) public onlyOwner {\n require(!isExcluded(account), \"E(...TRUNCATED)
2,998,985
"pragma solidity ^0.4.18;\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n(...TRUNCATED)
Agent sign on user data by agent/
" function setAgentVerificationByAgent(bytes32 _property, address _user) public onlyAgent {\n (...TRUNCATED)
6,111,697
End of preview. Expand in Data Studio

Dataset Card for "SolFuncs"

More Information needed

Downloads last month
14