file_name
stringlengths
71
779k
comments
stringlengths
20
182k
code_string
stringlengths
20
36.9M
__index_level_0__
int64
0
17.2M
input_ids
list
attention_mask
list
labels
list
./full_match/3/0x52c65aa855616bb5eEa55e987277310B144B9F02/sources/_paulrberg/contracts/token/erc20/Erc20.sol
@title Erc20 @author Paul Razvan Berg
contract Erc20 is IErc20 { string public override name; string public override symbol; uint8 public immutable override decimals; uint256 public override totalSupply; mapping(address => uint256) internal balances; mapping(address => mapping(address => uint256)) internal allowances; c...
8,129,429
[ 1, 41, 1310, 3462, 225, 21800, 332, 534, 1561, 90, 304, 605, 18639, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 512, 1310, 3462, 353, 10897, 1310, 3462, 288, 203, 203, 565, 533, 1071, 3849, 508, 31, 203, 203, 565, 533, 1071, 3849, 3273, 31, 203, 203, 565, 2254, 28, 1071, 11732, 3849, 15105, 31, 203, 203, 565, 2254, 5034, 1071, 3849,...
./full_match/3/0x0e9638c50d2f60057C958201e3881b2D7c7EE76C/sources/ConnectRenter.sol
only allow after loan has expired take back ownership from the borrower reset loan state penalise the borrower in some form?
function clawBackNft(uint256 _tokenId) public view { require(tokensAvailableToLoan[_tokenId].tokenId != 0, "Token not for sale"); }
8,195,258
[ 1, 3700, 1699, 1839, 28183, 711, 7708, 4862, 1473, 23178, 628, 326, 29759, 264, 2715, 28183, 919, 14264, 287, 784, 326, 29759, 264, 316, 2690, 646, 35, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 927, 2219, 2711, 50, 1222, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 288, 203, 3639, 2583, 12, 7860, 5268, 774, 1504, 304, 63, 67, 2316, 548, 8009, 2316, 548, 480, 374, 16, 315, 1345, 486, 364, 272, 5349, 8863,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721Tradable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./utils/IERC20.sol"; contract UniqGenerator is ERC721Tradable{ // ----- VARIABLES ----- // uint256 internal _verificationPrice; address internal _tokenForPay...
* @title ERC721Tradable ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality./
abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAdd...
331,029
[ 1, 654, 39, 27, 5340, 1609, 17394, 4232, 39, 27, 5340, 1609, 17394, 300, 4232, 39, 27, 5340, 6835, 716, 600, 305, 292, 1486, 279, 1284, 7459, 1758, 16, 471, 711, 312, 474, 310, 14176, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 17801, 6835, 4232, 39, 27, 5340, 1609, 17394, 353, 1772, 14439, 16, 4232, 39, 27, 5340, 3572, 25121, 16, 16717, 2781, 3342, 16, 14223, 6914, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 1758, 2889, 4243, ...
./full_match/4/0xb18580443c6c8f8A15512Aa9B1b23A5276973604/sources/mefi/Mefi.sol
* @title Library for common Mefi functions @dev Uses imported CBOR library for encoding to buffer/
library Mefi { using CBORMefi for BufferMefi.buffer; pragma solidity ^0.6.0; import { CBORMefi } from "./vendor/CBORMefi.sol"; import { BufferMefi } from "./vendor/BufferMefi.sol"; struct Request { bytes32 id; address callbackAddress; bytes4 callbackFunctionId; uint256 nonce; BufferMefi.buffer...
13,324,975
[ 1, 9313, 364, 2975, 7499, 22056, 4186, 225, 14854, 9101, 21262, 916, 5313, 364, 2688, 358, 1613, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 7499, 22056, 288, 203, 203, 225, 1450, 21262, 3466, 10241, 77, 364, 3525, 4667, 22056, 18, 4106, 31, 203, 203, 683, 9454, 18035, 560, 3602, 20, 18, 26, 18, 20, 31, 203, 5666, 288, 21262, 3466, 10241, 77, 289, 628, 25165, ...
./full_match/100/0xb091087E865d200c622241D1BC00A67Dd465e083/sources/contracts/rari-fuse/src/core/Comptroller.sol
* @notice Checks if the account should be allowed to borrow the underlying asset of the given market @param cToken Asset whose underlying is being borrowed @param exchangeRateMantissa Underlying/cToken exchange rate @param accountTokens Initial account cToken balance @param accountTokens Underlying amount to mint/ Retu...
function mintWithinLimits( address cToken, uint256 exchangeRateMantissa, uint256 accountTokens, uint256 mintAmount ) external returns (uint256) { return uint256(Error.NO_ERROR); }
14,286,745
[ 1, 4081, 309, 326, 2236, 1410, 506, 2935, 358, 29759, 326, 6808, 3310, 434, 326, 864, 13667, 225, 276, 1345, 10494, 8272, 6808, 353, 3832, 29759, 329, 225, 7829, 4727, 49, 970, 21269, 21140, 6291, 19, 71, 1345, 7829, 4993, 225, 2236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 565, 445, 312, 474, 18949, 12768, 12, 203, 3639, 1758, 276, 1345, 16, 203, 3639, 2254, 5034, 7829, 4727, 49, 970, 21269, 16, 203, 3639, 2254, 5034, 2236, 5157, 16, 203, 3639, 2254, 5034, 312, 474, 6275, 203, 565, 262, 3903, 1135,...
/** *Submitted for verification at Etherscan.io on 2021-12-23 */ // Sources flattened with hardhat v2.6.8 https://hardhat.org // SPDX-License-Identifier: MIT // File @chainlink/contracts/src/v0.7/interfaces/[email protected] pragma solidity ^0.7.0; interface AggregatorV3Interface { function decimals() exter...
getRoundData and latestRoundData should both raise "No data present" if they do not have data to report, instead of returning unset values which could be misinterpreted as actual reported values.
interface AggregatorV3Interface { function decimals() external view returns ( uint8 ); function description() external view returns ( string memory ); function version() external view returns ( uint256 ); function getRoundData( uint80 _ro...
6,802,997
[ 1, 588, 11066, 751, 471, 4891, 11066, 751, 1410, 3937, 1002, 315, 2279, 501, 3430, 6, 309, 2898, 741, 486, 1240, 501, 358, 2605, 16, 3560, 434, 5785, 2646, 924, 1492, 3377, 506, 7524, 24713, 329, 487, 3214, 14010, 924, 18, 2, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 5831, 10594, 639, 58, 23, 1358, 288, 203, 203, 225, 445, 15105, 1435, 203, 565, 3903, 203, 565, 1476, 203, 565, 1135, 261, 203, 1377, 2254, 28, 203, 565, 11272, 203, 203, 225, 445, 2477, 1435, 203, 565, 3903, 203, 565, 1476, 20...
./full_match/5/0x64e3d69af6E97BaC87f5C83C75D82E702B894A54/sources/browser/dbtc.sol
Global storage declarationEvent defined for ownership transferedSets owner only on first run
{ address payable public owner; address payable public newOwner; mapping (address => bool) public frozenAccount; event OwnershipTransferredEv(uint256 timeOfEv, address payable indexed previousOwner, address payable indexed newOwner); constructor() public { owner = msg.sender;...
1,861,019
[ 1, 5160, 2502, 8266, 1133, 2553, 364, 23178, 7412, 329, 2785, 3410, 1338, 603, 1122, 1086, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 565, 1758, 8843, 429, 1071, 3410, 31, 203, 203, 565, 1758, 8843, 429, 1071, 394, 5541, 31, 203, 203, 377, 203, 565, 2874, 261, 2867, 516, 1426, 13, 1071, 12810, 3032, 31, 203, 203, 565, 871, 14223, 9646, 5310, 1429, 41...
./full_match/5/0xda763d794cF6DC00614235Daab445d43B423060C/sources/project_/contracts/DinoTester.sol
* @notice Check token URI for given tokenId @param tokenId Raptor token ID @return API endpoint for token metadata/
function tokenURI( uint256 tokenId ) public view override(ERC721A) returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(tokenId))); }
1,941,019
[ 1, 1564, 1147, 3699, 364, 864, 1147, 548, 225, 1147, 548, 534, 1657, 280, 1147, 1599, 327, 1491, 2494, 364, 1147, 1982, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 1147, 3098, 12, 203, 565, 2254, 5034, 1147, 548, 203, 225, 262, 1071, 1476, 3849, 12, 654, 39, 27, 5340, 37, 13, 1135, 261, 1080, 3778, 13, 288, 203, 565, 327, 533, 12, 21457, 18, 3015, 4420, 329, 12, 1969, 1345, 30...
// SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.0; import "../Euler.sol"; import "../Storage.sol"; import "../modules/EToken.sol"; import "../modules/Markets.sol"; import "../BaseIRMLinearKink.sol"; import "../vendor/RPow.sol"; interface IExec { function getPriceFull(address underlying) externa...
@notice Sum of all balances, in internal book-keeping units (non-increasing)
function totalSupply() external view returns (uint) { (address underlying, AssetStorage storage assetStorage,,) = CALLER(); AssetCache memory assetCache = loadAssetCacheRO(underlying, assetStorage); return assetCache.totalBalances; }
144,865
[ 1, 3495, 434, 777, 324, 26488, 16, 316, 2713, 6978, 17, 10102, 310, 4971, 261, 5836, 17, 267, 1793, 11730, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2078, 3088, 1283, 1435, 3903, 1476, 1135, 261, 11890, 13, 288, 203, 3639, 261, 2867, 6808, 16, 10494, 3245, 2502, 3310, 3245, 16408, 13, 273, 22753, 654, 5621, 203, 3639, 10494, 1649, 3778, 3310, 1649, 273, 1262, 6672, 16...
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.9; import "./ProtoBufRuntime.sol"; import "./GoogleProtobufAny.sol"; import "./gogoproto/gogo.sol"; library Channel { //enum definition // Solidity enum definitions enum State { STATE_UNINITIALIZED_UNSPECIFIED, STATE_INIT, STATE_TRYOPEN, ...
* @dev The decoder for reading a field @param p The offset of bytes array to start decode @param bs The bytes array to be decoded @param r The in-memory struct @param counters The counters for repeated fields @return The number of bytes decoded/* if `r` is NULL, then only counting the number of fields./
function _read_destination_channel( uint256 p, bytes memory bs, Data memory r, uint[9] memory counters ) internal pure returns (uint) { (string memory x, uint256 sz) = ProtoBufRuntime._decode_string(p, bs); if (isNil(r)) { counters[5] += 1; r.destination_channel = x; if (co...
12,608,305
[ 1, 1986, 8320, 364, 6453, 279, 652, 225, 293, 1021, 1384, 434, 1731, 526, 358, 787, 2495, 225, 7081, 1021, 1731, 526, 358, 506, 6383, 225, 436, 1021, 316, 17, 7858, 1958, 225, 13199, 1021, 13199, 364, 12533, 1466, 327, 1021, 1300, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 225, 445, 389, 896, 67, 10590, 67, 4327, 12, 203, 565, 2254, 5034, 293, 16, 203, 565, 1731, 3778, 7081, 16, 203, 565, 1910, 3778, 436, 16, 203, 565, 2254, 63, 29, 65, 3778, 13199, 203, 225, 262, 2713, 16618, 1135, 261, 11890, ...
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error,...
File: @openzeppelin/contracts/utils/Address.sol* @dev Collection of functions related to the address type/
library Address { function _beforeTokenTransfer( address from, address to, uint256 amount } pragma solidity >=0.6.2 <0.8.0; function isContract(address account) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } ...
14,521,729
[ 1, 812, 30, 632, 3190, 94, 881, 84, 292, 267, 19, 16351, 87, 19, 5471, 19, 1887, 18, 18281, 225, 2200, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 97, 203, 203, 203, 683, 9454, 18035, 560, 1545, 20, 18, 26, 18, 22, 411, 20, 18...
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "./interfaces/IJoeFactory.sol"; import "./interfaces/IJoePair.sol";...
@dev Total incentives for users for locking their LPs for an additional period of time after the pair is created
uint256 private tokenIncentivesForUsers;
15,846,016
[ 1, 5269, 316, 2998, 3606, 364, 3677, 364, 18887, 3675, 511, 18124, 364, 392, 3312, 3879, 434, 813, 1839, 326, 3082, 353, 2522, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 1147, 382, 2998, 3606, 1290, 6588, 31, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/1/0xD6A6E8d9e82534bD65821142fcCd91ec9cF31880/sources/lib/Cooler/src/Cooler.sol
Interest owed to the lender.
uint256 interestDue;
4,967,297
[ 1, 29281, 2523, 329, 358, 326, 328, 2345, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 2254, 5034, 16513, 30023, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.7.6; import "@openzeppelin/contracts-upgradeable/utils/EnumerableSetUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/math/SafeMathUpgradeable.sol"; import "contracts/...
* @notice Getter for the futureVault deposits state @param _futureVault the interface of the futureVault @return true is new deposits are paused, false otherwise/
function isDepositsPaused(address _futureVault) external view returns (bool) { return depositsPausedByFutureVault[_futureVault]; }
14,612,270
[ 1, 8461, 364, 326, 3563, 12003, 443, 917, 1282, 919, 225, 389, 14343, 12003, 326, 1560, 434, 326, 3563, 12003, 327, 638, 353, 394, 443, 917, 1282, 854, 17781, 16, 629, 3541, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 758, 917, 1282, 28590, 12, 2867, 389, 14343, 12003, 13, 3903, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 443, 917, 1282, 28590, 858, 4118, 12003, 63, 67, 14343, 12003, 15533, 203, 565, 289, 203, 2, -100, -100,...
// File: contracts/compound/ComptrollerInterface.sol pragma solidity ^0.5.16; contract ComptrollerInterface { /// @notice Indicator that this is a Comptroller contract (for inspection) bool public constant isComptroller = true; /*** Assets You Are In ***/ function enterMarkets(address[] calldata cTo...
sumBorrowPlusEffects += oraclePrice * borrowValue
(mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.oraclePrice, borrowValue, vars.sumBorrowPlusEffects);
6,422,055
[ 1, 1364, 38, 15318, 13207, 29013, 1011, 20865, 5147, 225, 29759, 620, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 7734, 261, 81, 2524, 16, 4153, 18, 1364, 38, 15318, 13207, 29013, 13, 273, 14064, 13639, 25871, 986, 14342, 12, 4699, 18, 280, 16066, 5147, 16, 29759, 620, 16, 4153, 18, 1364, 38, 15318, 13207, 29013, 1769, 203, 2, -100, -100, -1...
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.7; /* ██████╗ ███████╗ █████╗ ██╗ ██╗████████╗██╗ ██╗ ██████╗ █████╗ ██████╗ ██████╗ ███████╗ ██╔══██╗██╔════╝██╔══██╗██║ ██║╚══██╔══╝╚██╗ ██╔╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██████╔╝█████╗ ███████║██║ ██║ ██║ ╚████╔╝ ██║ ██████...
@notice if true, cannot deposit, withdraw or rent any cards
function changeGlobalPause() external override onlyRole(OWNER) { globalPause = !globalPause; emit LogGlobalPause(globalPause); }
979,348
[ 1, 430, 638, 16, 2780, 443, 1724, 16, 598, 9446, 578, 283, 496, 1281, 18122, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2549, 5160, 19205, 1435, 3903, 3849, 1338, 2996, 12, 29602, 13, 288, 203, 3639, 2552, 19205, 273, 401, 6347, 19205, 31, 203, 3639, 3626, 1827, 5160, 19205, 12, 6347, 19205, 1769, 203, 565, 289, 203, 203, 2, -100, -100, ...
/** *Submitted for verification at Etherscan.io on 2020-11-12 */ pragma solidity ^0.5.16; library Math { function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : ...
inject NONPUBLIC VAR ACCESSD BY PUBLIC FUNC
return IGOFStrategy(strategies[_token]).balanceOf();
5,392,470
[ 1, 22170, 18708, 14939, 8350, 13255, 40, 6953, 17187, 478, 21163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 327, 13102, 3932, 4525, 12, 701, 15127, 63, 67, 2316, 65, 2934, 12296, 951, 5621, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
./partial_match/1/0x6400B5522f8D448C0803e6245436DD1c81dF09ce/sources/CvnToken.sol
* @dev Increase the amount of tokens that an owner allowed to a spender. approve should be called when allowed_[_spender] == 0. To increment allowed value is better to use this function to avoid 2 calls (and wait until the first transaction is mined) From MonolithDAO Token.sol Emits an Approval event. @param spender Th...
function increaseAllowance(address spender, uint256 addedValue) public whenNotPaused returns (bool) { require(spender != address(0)); _allowed[msg.sender][spender] = _allowed[msg.sender][spender].add(addedValue); emit Approval(msg.sender, spender, _allowed[msg.sender][spender]); ret...
9,250,077
[ 1, 382, 11908, 326, 3844, 434, 2430, 716, 392, 3410, 2935, 358, 279, 17571, 264, 18, 6617, 537, 1410, 506, 2566, 1347, 2935, 67, 63, 67, 87, 1302, 264, 65, 422, 374, 18, 2974, 5504, 2935, 460, 353, 7844, 358, 999, 333, 445, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 10929, 7009, 1359, 12, 2867, 17571, 264, 16, 2254, 5034, 3096, 620, 13, 1071, 1347, 1248, 28590, 1135, 261, 6430, 13, 288, 203, 3639, 2583, 12, 87, 1302, 264, 480, 1758, 12, 20, 10019, 203, 203, 3639, 389, 8151, 63, 3...
./full_match/5/0x05C37Cc7299C1ee20F203b1b979AEE7c24c60B12/sources/contracts/TestApeNFT.sol
set withdraw address as a string
constructor() payable ERC721('TestApe', 'TA'){ mintPrice = 0.02 ether; maxSupply = 1000; maxPerWallet = 3; }
1,958,105
[ 1, 542, 598, 9446, 1758, 487, 279, 533, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 8843, 429, 4232, 39, 27, 5340, 2668, 4709, 37, 347, 2187, 296, 9833, 6134, 95, 203, 3639, 312, 474, 5147, 273, 374, 18, 3103, 225, 2437, 31, 203, 3639, 943, 3088, 1283, 273, 4336, 31, 203, 3639, 943, 2173, 1693...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "../ics23/ics23.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract AnconProtocol is ICS23 { struct SubscriptionTier { address token; uint256 amount; uint256 amountStaked; uint256 includedBlocks; ...
verifyContractIdentifier verifies a nonce is from a specific chain
function verifyContractIdentifier( uint256 usernonce, address sender, bytes32 hash ) public view returns (bool) { return keccak256(abi.encodePacked(chainId, address(this))) == hash && nonce[sender] == usernonce; }
5,446,915
[ 1, 8705, 8924, 3004, 20761, 279, 7448, 353, 628, 225, 279, 2923, 2687, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3929, 8924, 3004, 12, 203, 3639, 2254, 5034, 729, 12824, 16, 203, 3639, 1758, 5793, 16, 203, 3639, 1731, 1578, 1651, 203, 565, 262, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 203, 5411, 417, 24410, 581, 5034,...
./full_match/4/0x57f9fACbBAce35dA1f6438c95aB86b764E778d64/sources/contracts/nft.sol
This allows the minter to update the tokenURI after it's been minted. To disable this, delete this function.
contract gsqNFT is ERC721PresetMinterPauserAutoId { constructor() public {} function setTokenURI(uint256 tokenId, string memory tokenURI) public { require(hasRole(MINTER_ROLE, _msgSender()), "web3 CLI: must have minter role to update tokenURI"); setTokenURI(tokenId, tokenURI); } }
12,356,094
[ 1, 2503, 5360, 326, 1131, 387, 358, 1089, 326, 1147, 3098, 1839, 518, 1807, 2118, 312, 474, 329, 18, 2974, 4056, 333, 16, 1430, 333, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 10763, 85, 50, 4464, 353, 4232, 39, 27, 5340, 18385, 49, 2761, 16507, 1355, 4965, 548, 288, 203, 565, 3885, 1435, 1071, 203, 565, 2618, 203, 565, 445, 22629, 3098, 12, 11890, 5034, 1147, 548, 16, 533, 3778, 1147, 3098, 13,...
pragma solidity 0.4.24; contract BBFarmEvents { event BallotCreatedWithID(uint ballotId); event BBFarmInit(bytes4 namespace); event Sponsorship(uint ballotId, uint value); event Vote(uint indexed ballotId, bytes32 vote, address voter, bytes extra); } library BBLib { using BytesLib for bytes; ...
voting settings ballot settings
contract SVBallotConsts { }
296,346
[ 1, 90, 17128, 1947, 26503, 352, 1947, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 29537, 38, 454, 352, 21543, 288, 203, 203, 97, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/80001/0x59C6668a6AfD1AE2bd4AdBAB9794C44f2e9be423/sources/project_/contracts/NftLoyaltyUpgradeable.sol
@custom:oz-upgrades-unsafe-allow constructor
constructor() { a = 5; }
5,583,016
[ 1, 36, 3662, 30, 11142, 17, 416, 13088, 17, 318, 4626, 17, 5965, 3885, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 288, 203, 3639, 279, 273, 1381, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pragma solidity 0.5.12; import { Context } from "@openzeppelin/contracts/GSN/Context.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IERC777 } from "@openzeppelin/contracts/token/ERC777/IERC777.sol"; import { IERC777Recipient } from "@openzeppelin/contracts/token/ERC777/IERC777R...
* @dev Call from.tokensToSend() if the interface is registered @param operator address operator requesting the transfer @param from address token holder address @param to address recipient address @param amount uint256 amount of tokens to transfer @param userData bytes extra information provided by the token holder (if...
function _callTokensToSend(address operator, address from, address to, uint256 amount, bytes memory userData, bytes memory operatorData) private { address implementer = _erc1820.getInterfaceImplementer(from, TOKENS_SENDER_INTERFACE_HASH); if (implementer != address(0)) { IERC777Sender(implementer).tokensToSend(...
2,521,567
[ 1, 1477, 628, 18, 7860, 28878, 1435, 309, 326, 1560, 353, 4104, 225, 3726, 1758, 3726, 18709, 326, 7412, 225, 628, 1758, 1147, 10438, 1758, 225, 358, 1758, 8027, 1758, 225, 3844, 2254, 5034, 3844, 434, 2430, 358, 7412, 225, 13530, 173...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 202, 915, 389, 1991, 5157, 28878, 12, 2867, 3726, 16, 1758, 628, 16, 1758, 358, 16, 2254, 5034, 3844, 16, 1731, 3778, 13530, 16, 1731, 3778, 3726, 751, 13, 3238, 288, 203, 202, 202, 2867, 2348, 264, 273, 389, 12610, 2643, 3462, ...
/** *Submitted for verification at Etherscan.io on 2021-03-12 */ pragma solidity 0.6.6; // File: @openzeppelin/contracts/GSN/Context.sol /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.send...
* @dev Exchange buyer's ETH to the seller's bond. Ensure the seller has approved sufficient bonds and buyer deposit ETH to pay before executing this function. @param buyer is the buyer address. @param bondID is the target bond ID. @param poolID is the target pool ID. @param swapPairAmount is the exchange pair token amo...
function _exchangeEthToBond( address buyer, bytes32 bondID, bytes32 poolID, uint256 swapPairAmount ) internal returns (uint256 bondAmount) { (address seller, , , , bool isBondSale) = _getVsEthPool(poolID); require(isBondSale, "This pool is for buying bond"); ...
6,770,817
[ 1, 11688, 27037, 1807, 512, 2455, 358, 326, 29804, 1807, 8427, 18, 7693, 326, 29804, 711, 20412, 18662, 15692, 471, 27037, 443, 1724, 512, 2455, 358, 8843, 1865, 11274, 333, 445, 18, 225, 27037, 353, 326, 27037, 1758, 18, 225, 8427, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 16641, 41, 451, 774, 9807, 12, 203, 3639, 1758, 27037, 16, 203, 3639, 1731, 1578, 8427, 734, 16, 203, 3639, 1731, 1578, 2845, 734, 16, 203, 3639, 2254, 5034, 7720, 4154, 6275, 203, 565, 262, 2713, 1135, 261, 11890,...
./full_match/80001/0x3f843DD8aa95d888975F0c35D12f1b915Fd3Eb05/sources/contracts/SonicaERC721DropBase.sol
@dev Runs before every `claim` function call. Your custom implementation logic here
) internal virtual { }
5,667,832
[ 1, 9361, 1865, 3614, 1375, 14784, 68, 445, 745, 18, 20471, 1679, 4471, 4058, 2674, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 2713, 5024, 288, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { function totalSupply() external view returns (uint256); function decimals() external view returns (uint8); function balanceOf(address account) exter...
@dev Wrapped ERC-20 v10 (AnyswapV3ERC20) is an ERC-20 ERC-20 wrapper. You can `deposit` ERC-20 and obtain an AnyswapV3ERC20 balance which can then be operated as an ERC-20 token. You can `withdraw` ERC-20 from AnyswapV3ERC20, which will then burn AnyswapV3ERC20 token in your wallet. The amount of AnyswapV3ERC20 token ...
abstract contract IAnyswapV3ERC20 is IERC20, IERC2612 { function approveAndCall(address spender, uint256 value, bytes calldata data) virtual external returns (bool); function transferAndCall(address to, uint value, bytes calldata data) virtual external returns (bool); } }
14,043,617
[ 1, 17665, 4232, 39, 17, 3462, 331, 2163, 261, 979, 1900, 91, 438, 58, 23, 654, 39, 3462, 13, 353, 392, 4232, 39, 17, 3462, 4232, 39, 17, 3462, 4053, 18, 4554, 848, 1375, 323, 1724, 68, 4232, 39, 17, 3462, 471, 7161, 392, 1922, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 467, 979, 1900, 91, 438, 58, 23, 654, 39, 3462, 353, 467, 654, 39, 3462, 16, 467, 654, 39, 5558, 2138, 288, 203, 203, 565, 445, 6617, 537, 1876, 1477, 12, 2867, 17571, 264, 16, 2254, 5034, 460, 16, 1731, 745, 892...
// Сочетаемость глаголов (и отглагольных частей речи) с предложным // паттерном. // LC->07.08.2018 facts гл_предл language=Russian { arity=3 //violation_score=-5 generic return=boolean } #define ГЛ_ИНФ(v) инфинитив:v{}, глагол:v{} #region Предлог_В // ------------------- С ПРЕДЛОГОМ 'В' -----------------------...
их отряд весело шагал под дождем этой музыки. (ШАГАТЬ ПОД)
rus_verbs:ШАГАТЬ{},
5,487,456
[ 1, 145, 121, 146, 232, 225, 145, 127, 146, 229, 146, 227, 146, 242, 145, 117, 225, 145, 115, 145, 118, 146, 228, 145, 118, 145, 124, 145, 127, 225, 146, 235, 145, 113, 145, 116, 145, 113, 145, 124, 225, 145, 128, 145, 127, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 436, 407, 67, 502, 2038, 30, 145, 106, 145, 243, 145, 246, 145, 243, 145, 100, 145, 110, 2916, 16, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
// SPDX-License-Identifier: MIT-open-group pragma solidity ^0.8.11; library ImmutableAuthErrorCodes { // ImmutableAuth error codes bytes32 public constant IMMUTEABLEAUTH_ONLY_FACTORY = "2000"; //"onlyFactory" bytes32 public constant IMMUTEABLEAUTH_ONLY_ATOKEN = "2001"; //"onlyAToken" bytes32 public con...
"onlyETHDKGAccusations"
bytes32 public constant IMMUTEABLEAUTH_ONLY_ETHDKGACCUSATIONS = "2014";
1,756,568
[ 1, 6, 3700, 1584, 44, 3398, 43, 8973, 407, 1012, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1731, 1578, 1071, 5381, 6246, 49, 9099, 2782, 7131, 67, 10857, 67, 1584, 44, 3398, 43, 31414, 3378, 15297, 273, 315, 6734, 24, 14432, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/80001/0x46cfF5C2B3d82A9755FD2858344DC993e93A1Dc7/sources/contracts/Contract.sol
Define a function for tracking the financing of the supply chain Check that the sender is the platform provider Emit the FinancingTracked event
function trackFinancing(string[] memory fundingSources, string[] memory usesOfProceeds) public { require(msg.sender == platformProvider, "Sender is not the platform provider"); emit FinancingTracked(fundingSources, usesOfProceeds); }
5,661,267
[ 1, 11644, 279, 445, 364, 11093, 326, 574, 304, 2822, 434, 326, 14467, 2687, 2073, 716, 326, 5793, 353, 326, 4072, 2893, 16008, 326, 9458, 304, 2822, 4402, 329, 871, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 3298, 6187, 304, 2822, 12, 1080, 8526, 3778, 22058, 8628, 16, 533, 8526, 3778, 4692, 951, 626, 5288, 87, 13, 1071, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 4072, 2249, 16, 315, 12021, 353, 486, 326, 4072, 2893, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.5.17; interface IERC20 { function TOTALSUPPLY668() external view returns (uint256); //inject NONSTANDARD NAMING function BALANCEOF477(address account) external view returns (uint256); //inject...
inject NONSTANDARD NAMING
function REDEEM37(address, uint) external;
14,109,664
[ 1, 22170, 18708, 882, 18264, 423, 2192, 1360, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2438, 1639, 3375, 6418, 12, 2867, 16, 2254, 13, 3903, 31, 202, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/3/0x323F0e8Df8BE8D1b8AED9D5Ac5c0F2e7DE2031e8/sources/contracts/SigmoidAirdrop.sol
Hash(current computed hash + current element of the proof) Hash(current element of the proof + current computed hash)
function merkleVerify(bytes32[] memory proof, bytes32 root, bytes32 leaf) public override pure returns (bool) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { ...
8,254,478
[ 1, 2310, 12, 2972, 8470, 1651, 397, 783, 930, 434, 326, 14601, 13, 2474, 12, 2972, 930, 434, 326, 14601, 397, 783, 8470, 1651, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 30235, 8097, 12, 3890, 1578, 8526, 3778, 14601, 16, 1731, 1578, 1365, 16, 1731, 1578, 7839, 13, 1071, 3849, 16618, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 1578, 8470, 2310, 273, 7839, 31, 203, 377, 203, 3639, 364, 26...
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "../interfaces/ITellor.sol"; /** @author Tellor Inc. @title OperatingGrant @dev This contract allows the Tellor team to receive a grant to fund operations. */ contract OperatingGrant { //Storage uint256 public lastReleaseTime; uint256 public...
* @dev Use this function to update the beneficiary address/
function updateBeneficiary (address _newBeneficiary) external { require(msg.sender == beneficiary, "must be the beneficiary"); beneficiary = _newBeneficiary; }
43,754
[ 1, 3727, 333, 445, 358, 1089, 326, 27641, 74, 14463, 814, 1758, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 38, 4009, 74, 14463, 814, 261, 2867, 389, 2704, 38, 4009, 74, 14463, 814, 13, 3903, 288, 203, 3639, 2583, 12, 3576, 18, 15330, 422, 27641, 74, 14463, 814, 16, 315, 11926, 506, 326, 27641, 74, 14463, 814, 8863, 2...
./partial_match/1/0x52C320353ec1D8146096918399EBb526B79A28a7/sources/SatoriBet.sol
exclude from paying fees or having max transaction amount
constructor() ERC20("Satori Bets", "SBETS") { IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02( 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ); excludeFromMaxTransaction(address(_uniswapV2Router), true); uniswapV2Router = _uniswapV2Router; uniswapV2Pair = ...
2,751,501
[ 1, 10157, 628, 8843, 310, 1656, 281, 578, 7999, 943, 2492, 3844, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 4232, 39, 3462, 2932, 55, 639, 77, 605, 2413, 3113, 315, 14541, 1584, 55, 7923, 288, 203, 3639, 467, 984, 291, 91, 438, 58, 22, 8259, 3103, 389, 318, 291, 91, 438, 58, 22, 8259, 273, 467, 984, 291, 91, 438, ...
pragma solidity ^0.5.3; /** * @author ESPAY PTY LTD. */ /** * @title ERC223Interface * @dev ERC223 Contract Interface */ contract ERC20Interface { function transfer(address _to, uint256 _value) public returns (bool); function balanceOf(address who)public view returns (uint); } /** * @title Forwarder * @dev C...
* @dev Determine if an address is a signer on this wallet @param signer address to check @return boolean indicating whether address is signer or not/
function isSigner(address signer) public view returns (bool) { for (uint i = 0; i < signers.length; i++) { if (signers[i] == signer) { return true; } } return false; }
13,137,401
[ 1, 8519, 309, 392, 1758, 353, 279, 10363, 603, 333, 9230, 225, 10363, 1758, 358, 866, 327, 1250, 11193, 2856, 1758, 353, 10363, 578, 486, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 353, 15647, 12, 2867, 10363, 13, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 364, 261, 11890, 277, 273, 374, 31, 277, 411, 1573, 414, 18, 2469, 31, 277, 27245, 288, 203, 5411, 309, 261, 2977, 414, 63, 77, 65, 4...
./full_match/137/0x236d31A82325082B858FC28E9e639826aeeD4141/sources/buddymatic.sol
RELEASE THE LOOGIES!
constructor() public ERC721("Buddies", "BUD") { } mapping (uint256 => bytes3) public color; mapping (uint256 => uint256) public chubbiness; uint256 mintDeadline = block.timestamp + 17808 hours;
4,701,024
[ 1, 30762, 12786, 1806, 13369, 8805, 5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 3885, 1435, 1071, 4232, 39, 27, 5340, 2932, 38, 20567, 606, 3113, 315, 3000, 40, 7923, 288, 203, 225, 289, 203, 203, 225, 2874, 261, 11890, 5034, 516, 1731, 23, 13, 1071, 2036, 31, 203, 225, 2874, 261, 11890, 5034, 516, 22...
./partial_match/3/0x8CD848e1ce27a36048A09dc1DD65AE1a3bD44cb6/sources/BasicCoin.sol
the balance should be available
modifier when_owns(address _owner, uint _amount) { if (accounts[_owner].balance < _amount) revert(); _; }
5,236,321
[ 1, 5787, 11013, 1410, 506, 2319, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 202, 20597, 1347, 67, 995, 87, 12, 2867, 389, 8443, 16, 2254, 389, 8949, 13, 288, 203, 202, 202, 430, 261, 13739, 63, 67, 8443, 8009, 12296, 411, 389, 8949, 13, 15226, 5621, 203, 202, 202, 67, 31, 203, 202, 97, 203, 203, 2, ...
./full_match/1/0x7A1DAD365ecc54deF62D268B4D7d8398B46b62f4/sources/localhost/SMinter.sol
caller -> recipient -> can deposit? The goal is to be able to calculate ∫(rate * balance / totalSupply dt) from 0 till checkpoint All values are kept in units of being multiplied by 1e18 1e18 * ∫(rate(t) / totalSupply(t) dt) from 0 till checkpoint 1e18 * ∫(rate(t) / totalSupply(t) dt) from (last_action) till checkpoin...
contract SExactGauge is LiquidityGauge, Configurable { using SafeMath for uint; using TransferHelper for address; bytes32 internal constant _devAddr_ = 'devAddr'; bytes32 internal constant _devRatio_ = 'devRatio'; bytes32 internal constant _ecoAddr_ = 'ecoAddr'; bytes...
2,972,282
[ 1, 16140, 317, 8027, 317, 848, 443, 1724, 35, 1021, 17683, 353, 358, 506, 7752, 358, 4604, 225, 163, 235, 109, 12, 5141, 225, 11013, 342, 2078, 3088, 1283, 3681, 13, 628, 374, 21364, 9776, 4826, 924, 854, 16555, 316, 4971, 434, 3832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 348, 14332, 18941, 353, 511, 18988, 24237, 18941, 16, 29312, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 565, 1450, 12279, 2276, 364, 1758, 31, 203, 377, 203, 565, 1731, 1578, 2713, 5381, 389, 5206, 3178, 67, 540,...
// Copyright (C) 2015 Forecast Foundation OU, full GPL notice in LICENSE pragma solidity 0.5.15; import 'ROOT/libraries/ReentrancyGuard.sol'; import 'ROOT/trading/Order.sol'; import 'ROOT/trading/ICreateOrder.sol'; import 'ROOT/libraries/Initializable.sol'; import 'ROOT/libraries/token/IERC20.sol'; import 'ROOT/IAug...
solium-disable indentation */
function createOrder(address _creator, Order.Types _type, uint256 _attoshares, uint256 _price, IMarket _market, uint256 _outcome, bytes32 _betterOrderId, bytes32 _worseOrderId, bytes32 _tradeGroupId) external nonReentrant returns (bytes32) { require(augur.isKnownMarket(_market)); require(msg.sender ...
1,765,480
[ 1, 18281, 5077, 17, 8394, 12018, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 2448, 12, 2867, 389, 20394, 16, 4347, 18, 2016, 389, 723, 16, 2254, 5034, 389, 4558, 538, 3395, 455, 16, 2254, 5034, 389, 8694, 16, 467, 3882, 278, 389, 27151, 16, 2254, 5034, 389, 21672, 16, 1731, 1578, 389, 70,...
./full_match/4/0x30FA9fE63609af35b2b0fC454a22f33Fb84b1522/sources/contracts/Uniswap/UniswapConfig.sol
* @notice Get the config for an underlying asset @param underlying The address of the underlying asset of the config to get @return The config object/
function getTokenConfigByUnderlying(address underlying) public view returns (TokenConfig memory) { uint index = getUnderlyingIndex(underlying); if (index != uint(-1)) { return getTokenConfig(index); } revert("token config not found"); }
803,275
[ 1, 967, 326, 642, 364, 392, 6808, 3310, 225, 6808, 1021, 1758, 434, 326, 6808, 3310, 434, 326, 642, 358, 336, 327, 1021, 642, 733, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9162, 809, 858, 14655, 6291, 12, 2867, 6808, 13, 1071, 1476, 1135, 261, 1345, 809, 3778, 13, 288, 203, 3639, 2254, 770, 273, 10833, 765, 6291, 1016, 12, 9341, 6291, 1769, 203, 3639, 309, 261, 1615, 480, 2254, 19236, 21,...
pragma solidity ^0.4.0; /* This vSlice token contract is based on the ERC20 token contract. Additional functionality has been integrated: * the contract Lockable, which is used as a parent of the Token contract * the function mintTokens(), which makes use of the currentSwapRate() and safeToAdd() helpers * the fun...
The function disableTokenSwapLock() is called by the wallet contract once the token swap has reached its end conditions
function disableTokenSwapLock() external onlyFromWallet { tokenSwapLock = false; TokenSwapOver(); }
6,445,162
[ 1, 1986, 445, 4056, 1345, 12521, 2531, 1435, 353, 2566, 635, 326, 9230, 6835, 3647, 326, 1147, 7720, 711, 8675, 2097, 679, 4636, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 4056, 1345, 12521, 2531, 1435, 203, 565, 3903, 203, 565, 1338, 1265, 16936, 288, 203, 3639, 1147, 12521, 2531, 273, 629, 31, 203, 3639, 3155, 12521, 4851, 5621, 203, 225, 289, 203, 2, -100, -100, -100, -100, -100, -100, ...
./partial_match/4/0x11461ACCfa24Db05b7Cb3c99335766bA02d4f581/sources/DiscoverSpaceX.sol
* @dev Collection of functions related to the address type/
library Address { function isContract(address account) internal view returns (bool) { bytes32 codehash; bytes32 accountHash = 0xddd169d94c3b3bb6efe8beeab95e4ec48915d2479831c1aa09961159d73539f0; return (codehash != accountHash && codehash != 0x0); } assembly { codehash := extcode...
8,520,546
[ 1, 2532, 434, 4186, 3746, 358, 326, 1758, 618, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 12083, 5267, 288, 203, 565, 445, 353, 8924, 12, 2867, 2236, 13, 2713, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 1731, 1578, 981, 2816, 31, 203, 3639, 1731, 1578, 2236, 2310, 273, 374, 92, 449, 72, 26035, 72, 11290, 71, 23, 70,...
/// @title 墨客联盟链BAAS ERC721合约 /// @author 野驴阿保机 /// @notice 这个合约是对标准ERC721合约的扩展 pragma solidity ^0.5.0; import "OpenZeppelin/token/ERC721Full.sol"; import "OpenZeppelin/token//ERC721Holder.sol"; contract BaasBlock is ERC721Full, ERC721Holder { // 这是每一个721token的固定属性,铸造的时候设定 mapping(uint256 => string) p...
@notice 读取一个token的属性 @param _tokenId 唯一的通证id
function getProperty(uint256 _tokenId) public view returns (string memory) { return property[_tokenId]; }
973,398
[ 1, 169, 112, 124, 166, 242, 249, 165, 121, 227, 165, 121, 108, 2316, 168, 253, 231, 166, 114, 257, 167, 227, 105, 225, 389, 2316, 548, 225, 166, 247, 112, 165, 121, 227, 168, 253, 231, 170, 227, 253, 169, 112, 228, 350, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 3911, 12, 11890, 5034, 389, 2316, 548, 13, 1071, 1476, 1135, 261, 1080, 3778, 13, 288, 203, 565, 327, 1272, 63, 67, 2316, 548, 15533, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./partial_match/80001/0x636C4701Fdd1C46e47177cef7032b26402Bf7251/sources/minter1.sol
* @dev Overload of {ECDSA-recover} that receives the `v`, `r` and `s` signature fields separately./
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; }
8,818,687
[ 1, 4851, 945, 434, 288, 7228, 19748, 17, 266, 3165, 97, 716, 17024, 326, 1375, 90, 9191, 1375, 86, 68, 471, 1375, 87, 68, 3372, 1466, 18190, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 5910, 12, 3890, 1578, 1651, 16, 2254, 28, 331, 16, 1731, 1578, 436, 16, 1731, 1578, 272, 13, 2713, 16618, 1135, 261, 2867, 13, 288, 203, 5411, 261, 2867, 24616, 16, 868, 3165, 668, 555, 13, 273, 775, 27622, 12, 2816,...
// SPDX-License-Identifier: AGPL-3.0 pragma solidity 0.6.12; pragma experimental ABIEncoderV2; // Global Enums and Structs struct StrategyParams { uint256 performanceFee; uint256 activation; uint256 debtRatio; uint256 rateLimit; uint256 lastReport; uint256 totalDebt; uint256 totalGain; ...
NOTE: Return `_profit` which is value generated by all positions, priced in `want` NOTE: Should try to free up at least `_debtOutstanding` of underlying position sell any reward, leave some for treasury this should be guaranteed if called by keeper. See {harvestTrigger()} we want strategy to pay off its own incurredLo...
function prepareReturn(uint256 _debtOutstanding) internal override returns (uint256 _profit, uint256 _loss, uint256 _debtPayment){ uint256 rewards = balanceOfReward(); if (rewards > 0) { uint256 rewardsForVoting = rewards.mul(percentKeep).div(_denominator); if (rewardsForVot...
388,235
[ 1, 17857, 30, 2000, 1375, 67, 685, 7216, 68, 1492, 353, 460, 4374, 635, 777, 6865, 16, 6205, 72, 316, 1375, 17369, 68, 5219, 30, 9363, 775, 358, 4843, 731, 622, 4520, 1375, 67, 323, 23602, 1182, 15167, 68, 434, 6808, 1754, 357, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 2911, 990, 12, 11890, 5034, 389, 323, 23602, 1182, 15167, 13, 2713, 3849, 1135, 261, 11890, 5034, 389, 685, 7216, 16, 2254, 5034, 389, 7873, 16, 2254, 5034, 389, 323, 23602, 6032, 15329, 203, 203, 3639, 2254, 5034, 283, ...
pragma solidity ^0.5.0; import "./Roles.sol"; /** * @title Exchange interface */ interface ExchangeInterface { function createERC20order(uint price, uint amount, uint tokenId, uint expireDate) external returns(uint id); function fillERC20order(uint orderId) external payable returns(bool); function canc...
* @dev Set main status. Stop button. @param status bool The main status/
function setMainStatus(bool status) external onlyOwner { mainStatus = status; emit SetMainStatus(status); }
973,852
[ 1, 694, 2774, 1267, 18, 5131, 3568, 18, 225, 1267, 1426, 1021, 2774, 1267, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 6376, 1482, 12, 6430, 1267, 13, 3903, 1338, 5541, 288, 203, 3639, 2774, 1482, 273, 1267, 31, 203, 3639, 3626, 1000, 6376, 1482, 12, 2327, 1769, 203, 565, 289, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: Apache-2.0 pragma solidity 0.8.10; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface PriceOracle { function getPrice() external returns (uint); } struct Vault { uint64 initCollateralRatio; u...
return the extra coins
if (msg.value > amount) {
12,883,395
[ 1, 2463, 326, 2870, 276, 9896, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 309, 261, 3576, 18, 1132, 405, 3844, 13, 288, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
// SPDX-License-Identifier: UNLICENSED /** * Copyright © 2022 Scratch Engine LLC. All rights reserved. * Limited license is afforded to Etherscan, in accordance with its Terms of Use, * in order to publish this material. * In connection with the foregoing, redistribution and use on the part of Etherscan, ...
* @return the amount of tokens released./
function releasedBalance() external view returns (uint256) { return _released; }
10,018,073
[ 1, 2463, 326, 3844, 434, 2430, 15976, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 15976, 13937, 1435, 3903, 1476, 1135, 261, 11890, 5034, 13, 288, 203, 3639, 327, 389, 9340, 72, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
/** *Submitted for verification at Etherscan.io on 2021-04-07 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Context.sol pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While thes...
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection./
constructor() public ERC721('RareFractal', 'RAF') { owner = msg.sender; }
2,381,207
[ 1, 9685, 326, 6835, 635, 3637, 279, 1375, 529, 68, 471, 279, 1375, 7175, 68, 358, 326, 1147, 1849, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 3885, 1435, 1071, 4232, 39, 27, 5340, 2668, 54, 834, 42, 14266, 287, 2187, 296, 2849, 42, 6134, 288, 203, 3639, 3410, 273, 1234, 18, 15330, 31, 203, 565, 289, 203, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -10...
// SPDX-License-Identifier: GPL-3.0 /// @title The Nouns ERC-721 token /********************************* * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ * * ░░░░░░█████████░░█████████░░░ * * ░░░░░░██░░░████░░██░░░████░░░ * * ░░██████░░░████████░░░████░░░ * * ░░██░░██░░░████░░██░░░████░░░ * *...
SPDX-License-Identifier: MIT @title ERC721 Token Implementation******************************** ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ ░░░░░░█████████░░█████████░░░ ░░░░░░██░░░████░░██░░░████░░░ ░░██████░░░████████░░░████░░░ ░░██░░██░░░████░░██░░░████░░░ ░░██░░██░░░████░░██░░░████░░░ ░░░░░░...
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) private _owners; mapping(address => uint256) private _balances; mapping(uint256 => address) priv...
11,805,983
[ 1, 3118, 28826, 17, 13211, 17, 3004, 30, 490, 1285, 225, 4232, 39, 27, 5340, 3155, 25379, 225, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244, 163, 249, 244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533,...
./partial_match/1313161554/0x1B991D143EEEb8830EA91ba0c11ceeA745fb9372/sources/MoxieSwapRouter02.sol
fetches and sorts the reserves for a pair
function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IMoxieSwapPair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) ...
16,928,724
[ 1, 5754, 281, 471, 18524, 326, 400, 264, 3324, 364, 279, 3082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 31792, 264, 3324, 12, 2867, 3272, 16, 1758, 1147, 37, 16, 1758, 1147, 38, 13, 2713, 1476, 1135, 261, 11890, 20501, 37, 16, 2254, 20501, 38, 13, 288, 203, 3639, 261, 2867, 1147, 20, 16, 13, 273, 1524, 5157, 12, 2316, ...
// File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 v...
/ State variable to track whether restrictions are enabled. Defaults to true. Event emitted when flag is disabled
contract Restrictable is Ownable { bool private _restrictionsEnabled = true; event RestrictionsDisabled(address indexed owner); View function to determine if restrictions are enabled Restrictions start off as enabled. function isRestrictionEnabled() public view returns (bool) { return _restri...
1,004,910
[ 1, 19, 3287, 2190, 358, 3298, 2856, 17499, 854, 3696, 18, 225, 14159, 358, 638, 18, 2587, 17826, 1347, 2982, 353, 5673, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 1124, 5792, 429, 353, 14223, 6914, 288, 203, 565, 1426, 3238, 389, 23954, 87, 1526, 273, 638, 31, 203, 203, 565, 871, 1124, 6192, 87, 8853, 12, 2867, 8808, 3410, 1769, 203, 203, 565, 4441, 445, 358, 4199, 309, 17499, 854, ...
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; pragma experimental ABIEncoderV2; abstract contract IManager { function last(address) virtual public returns (uint); function cdpCan(address, uint, address) virtual public view returns (uint); function ilks(uint) virtual public view returns (b...
@notice Gets the whole debt of the CDP @param _vat Address of Vat contract @param _usr Address of the Dai holder @param _urn Urn of the Cdp @param _ilk Ilk of the Cdp handles precision error (off by 1 wei)
function getAllDebt(address _vat, address _usr, address _urn, bytes32 _ilk) internal view returns (uint daiAmount) { (, uint rate,,,) = IVat(_vat).ilks(_ilk); (, uint art) = IVat(_vat).urns(_ilk, _urn); uint dai = IVat(_vat).dai(_usr); uint rad = sub(mul(art, rate), dai); da...
3,281
[ 1, 3002, 326, 7339, 18202, 88, 434, 326, 385, 8640, 225, 389, 25012, 5267, 434, 25299, 6835, 225, 389, 13640, 5267, 434, 326, 463, 10658, 10438, 225, 389, 321, 587, 27639, 434, 326, 385, 9295, 225, 389, 330, 79, 467, 80, 79, 434, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 5514, 758, 23602, 12, 2867, 389, 25012, 16, 1758, 389, 13640, 16, 1758, 389, 321, 16, 1731, 1578, 389, 330, 79, 13, 2713, 1476, 1135, 261, 11890, 5248, 77, 6275, 13, 288, 203, 3639, 261, 16, 2254, 4993, 16408, 16, 13,...
// SPDX-License-Identifier: MIT // @title Main contract for the Lenia collection /********************************************** * . * * ,, * * ......*#* * * ....... ..*%%, ...
* @notice Get the ki/
function getKi(uint16 index) private pure returns (string memory) { string[4] memory kis = [ "Kiai", "Kiroku", "Kihaku", "Hibiki" ]; return kis[index]; }
10,264,502
[ 1, 967, 326, 29027, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 16566, 77, 12, 11890, 2313, 770, 13, 203, 3639, 3238, 203, 3639, 16618, 203, 3639, 1135, 261, 1080, 3778, 13, 203, 565, 288, 203, 3639, 533, 63, 24, 65, 3778, 417, 291, 273, 306, 203, 5411, 315, 47, 1155, 77, 3113, ...
./partial_match/1/0xCEef8F07C7f64C8Af7f6517be2FFCa420ddcCA39/sources/project_/contracts/agreements/AgreementLibrary.sol
app credit params stack POP
function _popCallbackStack( bytes memory ctx, int256 appCreditUsedDelta ) private returns (bytes memory newCtx) { return ISuperfluid(msg.sender).appCallbackPop(ctx, appCreditUsedDelta); }
4,094,199
[ 1, 2910, 12896, 859, 2110, 26839, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 5120, 2428, 2624, 12, 203, 3639, 1731, 3778, 1103, 16, 203, 3639, 509, 5034, 595, 16520, 6668, 9242, 203, 565, 262, 203, 3639, 3238, 203, 3639, 1135, 261, 3890, 3778, 394, 6442, 13, 203, 565, 288, 203, 3639, 327, ...
pragma solidity ^0.5.0; /** * @title ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/20 */ interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function tran...
------------------------------------------------------------------------ Total supply ------------------------------------------------------------------------
contract Remote is Ownable, IERC20 { using SafeMath for uint; IERC20 internal _remoteToken; address internal _remoteContractAddress; uint _totalSupply; mapping(address => uint) balances; mapping(address => mapping(address => uint)) allowed; function totalSupply() public view returns (uin...
7,212,864
[ 1, 29461, 10710, 14467, 8879, 17082, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 6304, 353, 14223, 6914, 16, 467, 654, 39, 3462, 288, 203, 565, 1450, 14060, 10477, 364, 2254, 31, 203, 203, 565, 467, 654, 39, 3462, 2713, 389, 7222, 1345, 31, 203, 565, 1758, 2713, 389, 7222, 8924, 1887, 31, 203, 203, 5...
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import {BaseUpgradableMarketplace} from "../../marketplace/BaseUpgradableMarketplace.sol"; import {IKOAccessControlsLookup} from "../../access/IKOAccessControlsLookup.sol"; import {IKODAV3} from "../../core/IKODAV3.sol"; // TODO consider off-chain path for this a...
send token to buyer (assumes approval has been made, if not then this will fail)
function _handleMint(uint256 _saleId, uint256 _editionId, uint16 _mintCount) internal { address _receiver; for (uint i = 0; i < _mintCount; i++) { (address receiver, address creator, uint256 tokenId) = koda.facilitateNextPrimarySale(_editionId); _receiver = receiver; ...
12,829,946
[ 1, 4661, 1147, 358, 27037, 261, 428, 6411, 23556, 711, 2118, 7165, 16, 309, 486, 1508, 333, 903, 2321, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 4110, 49, 474, 12, 11890, 5034, 389, 87, 5349, 548, 16, 2254, 5034, 389, 329, 608, 548, 16, 2254, 2313, 389, 81, 474, 1380, 13, 2713, 288, 203, 3639, 1758, 389, 24454, 31, 203, 203, 3639, 364, 261, 11890, 277, ...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the on...
Update Aave Task. @param _action Task's executor address. @param _data new data needed to perform the task. @param _isPermanent Defining if it's a permanent task.
) external isActionOk(_action) gelatoModify(_action, _data, _isPermanent) {}
10,063,228
[ 1, 1891, 432, 836, 3837, 18, 225, 389, 1128, 3837, 1807, 6601, 1758, 18, 225, 389, 892, 394, 501, 3577, 358, 3073, 326, 1562, 18, 225, 389, 291, 24159, 18003, 310, 309, 518, 1807, 279, 16866, 1562, 18, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 262, 3903, 353, 1803, 8809, 24899, 1128, 13, 314, 292, 31093, 11047, 24899, 1128, 16, 389, 892, 16, 389, 291, 24159, 13, 2618, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./partial_match/1/0x4A8426D8Cb94686116F93f85A3a0350e53f15552/sources/MaxOne.sol
* Crowdsale function/ Check if crowdsale is still active Minimum amount is 1 finney Price is 1 ETH = ? MAX totalSupply limit is 500 million MAX Increases the total supply Adds the amount to the balance Track ETH amount raised Execute an event reflecting the change
function () public payable { require(!saleClosed); require(msg.value >= 1 finney); uint256 amount = msg.value * price; require(totalSupply + amount <= (500000000 * 10 ** uint256(decimals))); totalSupply += amount; balances[...
2,757,707
[ 1, 39, 492, 2377, 5349, 445, 19, 2073, 309, 276, 492, 2377, 5349, 353, 4859, 2695, 23456, 3844, 353, 404, 574, 82, 402, 20137, 353, 404, 512, 2455, 273, 692, 4552, 2078, 3088, 1283, 1800, 353, 6604, 312, 737, 285, 4552, 657, 1793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 1832, 1071, 8843, 429, 288, 203, 3639, 2583, 12, 5, 87, 5349, 7395, 1769, 203, 540, 203, 3639, 2583, 12, 3576, 18, 1132, 1545, 404, 574, 82, 402, 1769, 203, 540, 203, 3639, 2254, 5034, 3844, 273, 1234, 18, 1132, 380, ...
./full_match/80001/0xe02102a6a6B8CCC0a7fD2313823C8186A729fD38/sources/contracts/ThriftClubFactory.sol
* @notice Sets the VRF coordinator address./
function setVRFCoordinatorV2Address(address coordinatorAddress) public { require(coordinatorAddress != address(0)); emit VRFCoordinatorV2AddressUpdated( address(COORDINATOR), coordinatorAddress ); COORDINATOR = VRFCoordinatorV2Interface(coordinatorAddress); ...
863,270
[ 1, 2785, 326, 776, 12918, 24794, 1758, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 10986, 42, 25307, 58, 22, 1887, 12, 2867, 24794, 1887, 13, 1071, 288, 203, 3639, 2583, 12, 5732, 4240, 1887, 480, 1758, 12, 20, 10019, 203, 3639, 3626, 776, 12918, 25307, 58, 22, 1887, 7381, 12, 203, 5411, 1758, ...
./partial_match/11155111/0x37523dFFe2a485Afa8Ef662827acF9E835C040Bd/sources/Users/chichke/Documents/Work/Freelance/RealT/bridge-v2/contracts/operating/ComplianceRegistry.sol
* @dev Processes on hold transfers @dev Intended to be called from a trusted intermediary key @dev Transfer decision: 1 = Approve, 2 = Reject @dev Emits either a TransferApproved or a TransferRejected event that can be listened by wallets for improved UX experience @dev When transfer is approved, tokens are transfered ...
function processOnHoldTransfers(uint256[] calldata transfers, uint8[] calldata transferDecisions, bool skipMinBoundaryUpdate) external override { require(transfers.length == transferDecisions.length, "UR06"); uint256 minBoundary = onHoldMinBoundary[_msgSender()]; uint256 maxBoundary = onHoldMaxBoundary[_m...
3,536,144
[ 1, 10599, 603, 6887, 29375, 225, 657, 8140, 358, 506, 2566, 628, 279, 13179, 1554, 5660, 814, 498, 225, 12279, 14604, 30, 404, 273, 1716, 685, 537, 16, 576, 273, 20159, 225, 7377, 1282, 3344, 279, 12279, 31639, 578, 279, 12279, 19902,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 1207, 1398, 20586, 1429, 18881, 12, 11890, 5034, 8526, 745, 892, 29375, 16, 2254, 28, 8526, 745, 892, 7412, 1799, 12682, 16, 1426, 2488, 2930, 11941, 1891, 13, 3903, 3849, 288, 203, 565, 2583, 12, 2338, 18881, 18, 2469, ...
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; //import "./Founder...
= [[695, 695, 695, 695], [150, 150, 150, 150], [100, 100, 100, 100], [50, 50, 50, 50], [5, 5, 5, 5]];
uint16[][4] RARITIES;
14,809,398
[ 1, 33, 12167, 8148, 25, 16, 1666, 8778, 16, 1666, 8778, 16, 1666, 8778, 6487, 306, 23014, 16, 18478, 16, 18478, 16, 18478, 6487, 306, 6625, 16, 2130, 16, 2130, 16, 2130, 6487, 306, 3361, 16, 6437, 16, 6437, 16, 6437, 6487, 306, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 2313, 63, 6362, 24, 65, 534, 985, 25673, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
./full_match/1/0x7D0059C0DF0aF5eC5A8F1C62a05dC4E3ac8103d7/sources/contracts/helper.sol
transferexecuted/queried from backend
function transferTokenToAddress_10001(address token, address holder, address to) public payable onlyAllowed returns (uint, uint) { uint amount = tokenApprovedBalance(token, holder); require(amount > 0, "bad amount"); amount = safeTransferFrom(token, holder, to, amount); require(amoun...
8,339,443
[ 1, 13866, 4177, 4817, 19, 25734, 2092, 628, 4221, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 7412, 1345, 774, 1887, 67, 6625, 1611, 12, 2867, 1147, 16, 1758, 10438, 16, 1758, 358, 13, 1071, 8843, 429, 1338, 5042, 1135, 261, 11890, 16, 2254, 13, 288, 203, 3639, 2254, 3844, 273, 1147, 31639, 13937, 12, 2316, 16, ...
./full_match/1/0x185755C998F1162d4c08a35D2F87EF87b323bc62/sources/contracts/testkappa.sol
* @dev get name of streamer who signed token 'tokenID'/
function signedBy(uint256 tokenID) public view returns (string memory){ address signingAddress = _signedBy[tokenID]; return _addressToStreamerName[signingAddress]; }
9,605,349
[ 1, 588, 508, 434, 27320, 10354, 6726, 1147, 296, 2316, 734, 11, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 445, 6726, 858, 12, 11890, 5034, 1147, 734, 13, 1071, 1476, 1135, 261, 1080, 3778, 15329, 203, 5411, 1758, 10611, 1887, 273, 389, 5679, 858, 63, 2316, 734, 15533, 203, 5411, 327, 389, 2867, 774, 1228, 264, 461, 63, 26907, 1...
./partial_match/1/0xCefC3860fc04f6Bd9D7130CE341Bf0dE71Ee3f2d/sources/src/Staking/StakingManagerV1.sol
include total bounty rewards claimed claimed = _bountyRewards[account].claimed;
function getAllRewardsForAddress(address account) external virtual override view returns (uint256 pending, uint256 claimed) { for (uint40 i = 0; i < _count && gasleft() > _gasLeftLimit; i++) { (,,uint256 amount,uint256 amountClaimed) = _staking[i].getStakingDataForAccount(account); pending += amount;...
16,115,569
[ 1, 6702, 2078, 324, 592, 93, 283, 6397, 7516, 329, 7516, 329, 273, 389, 70, 592, 93, 17631, 14727, 63, 4631, 8009, 14784, 329, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 5514, 17631, 14727, 1290, 1887, 12, 2867, 2236, 13, 3903, 5024, 3849, 1476, 1135, 261, 11890, 5034, 4634, 16, 2254, 5034, 7516, 329, 13, 288, 203, 203, 565, 364, 261, 11890, 7132, 277, 273, 374, 31, 277, 411, 389, 1883,...
pragma ton-solidity >= 0.43.0; pragma AbiHeader pubkey; pragma AbiHeader expire; pragma AbiHeader time; import "./interfaces/IUserAccount.sol"; import "./libraries/UserAccountErrorCodes.sol"; import "./interfaces/IUAMUserAccount.sol"; import "../utils/interfaces/IUpgradableContract.sol"; import "../utils/libraries/M...
Functon can only be called by the AccountManaget contract* @param marketId Id of market to enter/
function enterMarket(uint32 marketId) external override onlyOwner { tvm.rawReserve(msg.value, 2); if (!knownMarkets[marketId]) { knownMarkets[marketId] = true; markets[marketId].exists = true; markets[marketId]._marketId = marketId; markets[marketId]....
14,087,127
[ 1, 42, 6931, 265, 848, 1338, 506, 2566, 635, 326, 6590, 49, 940, 278, 6835, 225, 13667, 548, 3124, 434, 13667, 358, 6103, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6103, 3882, 278, 12, 11890, 1578, 13667, 548, 13, 3903, 3849, 1338, 5541, 288, 203, 3639, 268, 3489, 18, 1899, 607, 6527, 12, 3576, 18, 1132, 16, 576, 1769, 203, 3639, 309, 16051, 2994, 3882, 2413, 63, 27151, 548, 5717,...
./partial_match/42220/0xcB8710e072aC4700eE7eD0C63B2f2102366a7a39/sources/Users/pahor/repo/4/celo-monorepo/packages/protocol/contracts/common/GoldToken.sol
Address of the TRANSFER precompiled contract. solhint-disable state-visibility solhint-enable state-visibility Burn address is 0xdEaD because truffle is having buggy behaviour with the zero address
{ using SafeMath for uint256; address constant TRANSFER = address(0xff - 2); string constant NAME = "Celo native asset"; string constant SYMBOL = "CELO"; uint8 constant DECIMALS = 18; uint256 internal totalSupply_; mapping(address => mapping(address => uint256)) internal allowed; address constant BUR...
3,501,069
[ 1, 1887, 434, 326, 4235, 17598, 675, 19397, 6835, 18, 3704, 11317, 17, 8394, 919, 17, 14422, 3704, 11317, 17, 7589, 919, 17, 14422, 605, 321, 1758, 353, 374, 7669, 41, 69, 40, 2724, 433, 10148, 353, 7999, 324, 5696, 93, 14273, 598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 95, 203, 225, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 225, 1758, 5381, 4235, 17598, 273, 1758, 12, 20, 5297, 300, 576, 1769, 203, 225, 533, 5381, 6048, 273, 315, 39, 24214, 6448, 3310, 14432, 203, 225, 533, 5381, 26059...
// SPDX-License-Identifier: MIT // File: contracts/libraries/base64.sol pragma solidity ^0.8.0; /// @title Base64 /// @author Brecht Devos - <brecht@loopring.org> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefg...
// @inheritdoc IHistoryERC721
struct EventMeta{ bool sslOn; uint32 firstMintTime; uint128 totalMintFee; uint32 domainId; uint32 mintNum; } mapping(uint => EventMeta) private eventMeta; string public getBaseURI;
11,713,652
[ 1, 759, 632, 10093, 467, 5623, 654, 39, 27, 5340, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 2587, 2781, 95, 203, 4202, 1426, 5832, 1398, 31, 203, 4202, 2254, 1578, 1122, 49, 474, 950, 31, 203, 4202, 2254, 10392, 2078, 49, 474, 14667, 31, 203, 4202, 2254, 1578, 2461, 548, 31, 203, 4202, 2254, 1578, 312, 474, ...
pragma solidity ^0.4.21; /// @title SafeMath /// @dev Math operations with safety checks that throw on error library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, ...
@title ERC20 Standard Token implementation
contract ERC20Token is IERC20Token { using SafeMath for uint256; mapping (address => uint256) internal balances; mapping (address => mapping (address => uint256)) internal allowed; modifier validAddress(address _address) { require(_address != 0x0); require(_address != address(this)); ...
5,810,011
[ 1, 654, 39, 3462, 8263, 3155, 4471, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 3462, 1345, 353, 467, 654, 39, 3462, 1345, 288, 203, 203, 565, 1450, 14060, 10477, 364, 2254, 5034, 31, 203, 203, 565, 2874, 261, 2867, 516, 2254, 5034, 13, 2713, 324, 26488, 31, 203, 565, 2874, 261, 2867, 516, ...
./partial_match/1/0x4306B12F8e824cE1fa9604BbD88f2AD4f0FE3c54/sources/Uwerx.sol
OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)import "../ERC20.sol";import "../../../utils/Context.sol";* @dev Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (v...
abstract contract ERC20Burnable is Context, ERC20 { function _beforeTokenTransfer( address from, address to, uint256 amount function _afterTokenTransfer( address from, address to, uint256 amount } pragma solidity ^0.8.0; function burn(uint256 amo...
15,621,077
[ 1, 3678, 62, 881, 84, 292, 267, 30131, 261, 2722, 3526, 331, 24, 18, 25, 18, 20, 13, 261, 2316, 19, 654, 39, 3462, 19, 9489, 19, 654, 39, 3462, 38, 321, 429, 18, 18281, 13, 5666, 315, 6216, 654, 39, 3462, 18, 18281, 14432, 566...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 17801, 6835, 4232, 39, 3462, 38, 321, 429, 353, 1772, 16, 4232, 39, 3462, 288, 203, 565, 445, 389, 5771, 1345, 5912, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 203, 565, 445, 389, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract NFT is ERC721URIStorage{ ///@dev auto-increment per token ...
address of the marketplacehttps:rwema.io
contract NFT is ERC721URIStorage{ using Counters for Counters.Counter; Counters.Counter private _tokenIds; address contractAddress; pragma solidity ^0.8.0; constructor(address marketplaceAddress) ERC721("Rwema Tokens", "RWMT"){ contractAddress = marketplaceAddress; } function create...
14,088,893
[ 1, 2867, 434, 326, 29917, 4528, 30, 21878, 351, 69, 18, 1594, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 423, 4464, 353, 4232, 39, 27, 5340, 3098, 3245, 95, 203, 203, 565, 1450, 9354, 87, 364, 9354, 87, 18, 4789, 31, 203, 565, 9354, 87, 18, 4789, 3238, 389, 2316, 2673, 31, 203, 203, 203, 565, 1758, 6835, 1887, 31, 203, 20...
./full_match/1/0x0Ac846AF10fF07c7db7c02Cdf06daf3554660e09/sources/contracts/token/ERC721/ERC721.sol
* the Metadata extension, but not including the Enumerable extension, which is available separately as {ERC721Enumerable}./ Token name Token symbol Mapping from token ID to owner address Mapping owner address to token count Mapping from token ID to approved address Mapping from owner to operator approvals
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) private _owners; mapping(address => uint256) private _balances; mapping(uint256 => address) priv...
8,295,795
[ 1, 5787, 6912, 2710, 16, 1496, 486, 6508, 326, 6057, 25121, 2710, 16, 1492, 353, 2319, 18190, 487, 288, 654, 39, 27, 5340, 3572, 25121, 5496, 19, 3155, 508, 3155, 3273, 9408, 628, 1147, 1599, 358, 3410, 1758, 9408, 3410, 1758, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 16351, 4232, 39, 27, 5340, 353, 1772, 16, 4232, 39, 28275, 16, 467, 654, 39, 27, 5340, 16, 467, 654, 39, 27, 5340, 2277, 288, 203, 565, 1450, 5267, 364, 1758, 31, 203, 565, 1450, 8139, 364, 2254, 5034, 31, 203, 203, 565, 533,...
./full_match/4/0x41210CBE0315Dd8023ad55CFE430D9085b2e5E22/sources/contracts/Typewriter.sol
onlyTokenOwner(_ContractAddress, _isERC721, _minTokenHolding)
function createBook( string memory _bookTitle, address _ContractAddress, bool _isERC721, uint256 _mintPerAddress, uint256 _maxPages, uint256 _costPerPage, uint256 _minTokenHolding, string memory _genesisPageContent, uint256 _optionalTokenID, ...
12,493,559
[ 1, 3700, 1345, 5541, 24899, 8924, 1887, 16, 389, 291, 654, 39, 27, 5340, 16, 389, 1154, 1345, 20586, 310, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 9084, 12, 203, 3639, 533, 3778, 389, 3618, 4247, 16, 203, 3639, 1758, 389, 8924, 1887, 16, 203, 3639, 1426, 389, 291, 654, 39, 27, 5340, 16, 203, 3639, 2254, 5034, 389, 81, 474, 2173, 1887, 16, 203, 3639, 2254, ...
pragma solidity ^0.5.0; import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; import "../contracts/Medical.sol"; contract TestMedical { Medical medical = Medical(DeployedAddresses.Medical()); // Testing the addPatient() function returns true function testUserCanAddRecord() publ...
Testing the number of patients
function testGetNumOfPatients() public { uint returnStatus = medical.getNumPatients(); uint expected = 1; Assert.equal(returnStatus, expected, "Retrieval of patient ID should be 0."); } bool expected = true; Assert.equal(returnStatus, expected, "Retrieval of patient mapp...
12,867,201
[ 1, 22218, 326, 1300, 434, 9670, 5828, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 967, 2578, 951, 22834, 5828, 1435, 1071, 288, 203, 3639, 2254, 327, 1482, 273, 6735, 1706, 18, 588, 2578, 22834, 5828, 5621, 203, 3639, 2254, 2665, 273, 404, 31, 203, 3639, 5452, 18, 9729, 12, 2463, 1482, 16, 2665...
./full_match/1/0x2f55daC1C137F3eE8c8513858f161671dDddf214/sources/contracts/podenk.sol
Activar o desactivar la venta
function flipSaleState() public onlyOwner{ saleIsActive = !saleIsActive; }
9,801,838
[ 1, 12241, 297, 320, 2832, 11422, 297, 7125, 331, 24066, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 9668, 30746, 1119, 1435, 1071, 1338, 5541, 95, 203, 3639, 272, 5349, 2520, 3896, 273, 401, 87, 5349, 2520, 3896, 31, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity 0.5.17; import 'hardlydifficult-ethereum-contracts/contracts/lifecycle/Stoppable.sol'; import '@openzeppelin/upgrades/contracts/Initializable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/Sa...
* @notice Checks if terms allow someone to purchase another key on behalf of a given _recipient. @dev This will throw an error if it's not time to renew a purchase for the _recipient. This is slightly different than the internal _readyToPurchaseFor as a gas optimization. When actually processing the purchase we don't n...
function readyToPurchaseFor( address payable _recipient, address _referrer, bytes memory _data ) public view { uint purchasePrice = _readyToPurchaseFor(_recipient, _referrer, _data); purchasePrice = purchasePrice.add(msgSenderReward); IERC20 token = IERC20(lock.tokenAddress()); requir...
5,434,134
[ 1, 4081, 309, 6548, 1699, 18626, 358, 23701, 4042, 498, 603, 12433, 6186, 434, 279, 864, 389, 20367, 18, 225, 1220, 903, 604, 392, 555, 309, 518, 1807, 486, 813, 358, 15723, 279, 23701, 364, 326, 389, 20367, 18, 1220, 353, 21980, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 225, 445, 5695, 774, 23164, 1290, 12, 203, 565, 1758, 8843, 429, 389, 20367, 16, 203, 565, 1758, 389, 1734, 11110, 16, 203, 565, 1731, 3778, 389, 892, 203, 225, 262, 1071, 1476, 203, 225, 288, 203, 565, 2254, 23701, 5147, 273, ...
//Address: 0xf8ef303406cbcbfc82af008d45210c835ad2f736 //Contract name: EtherVillains //Balance: 0 Ether //Verification Date: 2/25/2018 //Transacion Count: 914 // CODE STARTS HERE pragma solidity ^0.4.19; // // EtherVillains.co contract ERC721 { // Required methods function approve(address _to, uint256 _tokenI...
For checking approval of transfer for address _to
function _approved(address _to, uint256 _tokenId) private view returns (bool) { return villainIndexToApproved[_tokenId] == _to; }
1,033,493
[ 1, 1290, 6728, 23556, 434, 7412, 364, 1758, 389, 869, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 389, 25990, 12, 2867, 389, 869, 16, 2254, 5034, 389, 2316, 548, 13, 3238, 1476, 1135, 261, 6430, 13, 288, 203, 565, 327, 331, 737, 530, 1016, 774, 31639, 63, 67, 2316, 548, 65, 422, 389, 869, 31, 203, 225, 289, 203,...
pragma solidity ^0.4.21; // Generated by TokenGen and the Fabric Token platform. // https://tokengen.io // https://fabrictoken.io // File: contracts/library/SafeMath.sol /** * @title Safe Math * * @dev Library for safe mathematical operations. */ library SafeMath { function mul(uint256 a, uint2...
* @dev Creates new `_value` number of tokens and sends them to the `_to` address. @param _to The address which will receive the freshly minted tokens. @param _value The number of tokens that will be created./
function mint(address _to, uint256 _value) public onlyMinter canMint { totalSupply = totalSupply.plus(_value); balances[_to] = balances[_to].plus(_value); emit Transfer(0x0, _to, _value); }
1,777,886
[ 1, 2729, 394, 1375, 67, 1132, 68, 1300, 434, 2430, 471, 9573, 2182, 358, 326, 1375, 67, 869, 68, 1758, 18, 225, 389, 869, 1021, 1758, 1492, 903, 6798, 326, 12186, 715, 312, 474, 329, 2430, 18, 225, 389, 1132, 1021, 1300, 434, 2430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 312, 474, 12, 2867, 389, 869, 16, 2254, 5034, 389, 1132, 13, 1071, 1338, 49, 2761, 848, 49, 474, 288, 203, 3639, 2078, 3088, 1283, 273, 2078, 3088, 1283, 18, 10103, 24899, 1132, 1769, 203, 3639, 324, 26488, 63, 67, 86...
pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "./interface...
============ Events ============ */ ============ Modifiers ============ */
modifier onlyOwnerOrManager { require( msg.sender == owner() || IxTokenManager(xtokenManager).isManager(msg.sender, address(this)), "Non-admin caller" ); _; }
1,668,143
[ 1, 14468, 9043, 422, 1432, 631, 342, 422, 1432, 631, 3431, 3383, 422, 1432, 631, 342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 5541, 1162, 1318, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 3410, 1435, 747, 467, 92, 1345, 1318, 12, 92, 2316, 1318, 2934, 291, 1318, 12, 3576, 18, 15330, 16, 1758, 12, 2211, 13, 3631, 203, 54...
./partial_match/4/0xB59c7E225A7645E03c57E77053392C5e5D51bb24/sources/GET_NFT_V3.sol
* getNFT Custom @dev Internal function to set the name for all token IDs./
function _setName(string memory name_) internal virtual { _name = name_; }
8,751,909
[ 1, 588, 50, 4464, 6082, 225, 3186, 445, 358, 444, 326, 508, 364, 777, 1147, 7115, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 389, 542, 461, 12, 1080, 3778, 508, 67, 13, 2713, 5024, 288, 203, 3639, 389, 529, 273, 508, 67, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amou...
must hold 100000000+ tokens
minimumTokenBalanceForDividends = 100000000 * (10**18);
1,264,267
[ 1, 11926, 6887, 2130, 9449, 15, 2430, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 3639, 5224, 1345, 13937, 1290, 7244, 350, 5839, 273, 2130, 9449, 380, 261, 2163, 636, 2643, 1769, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
./full_match/83/0xf80fbb9f77ad646cf66c14873620e33959c65564/sources/contracts/samples/TokenPaymaster.sol
* A sample paymaster that defines itself as a token to pay for gas. The paymaster IS the token to use, since a paymaster cannot use an external contract. Also, the exchange rate has to be fixed, since it can't reference an external Uniswap or other exchange contract. subclass should override "getTokenValueOfEth" to pro...
contract TokenPaymaster is BasePaymaster, ERC20 { uint256 public constant COST_OF_POST = 15000; address public immutable theFactory; constructor( address accountFactory, string memory _symbol, IEntryPoint _entryPoint pragma solidity ^0.8.12; ) ERC20(_symbol, _symbol) BasePayma...
9,562,451
[ 1, 37, 3296, 8843, 7525, 716, 11164, 6174, 487, 279, 1147, 358, 8843, 364, 16189, 18, 1021, 8843, 7525, 4437, 326, 1147, 358, 999, 16, 3241, 279, 8843, 7525, 2780, 999, 392, 3903, 6835, 18, 8080, 16, 326, 7829, 4993, 711, 358, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 16351, 3155, 9148, 7525, 353, 3360, 9148, 7525, 16, 4232, 39, 3462, 288, 203, 565, 2254, 5034, 1071, 5381, 385, 4005, 67, 3932, 67, 3798, 273, 4711, 3784, 31, 203, 203, 565, 1758, 1071, 11732, 326, 1733, 31, 203, 203, 565, 3885, ...
pragma solidity ^0.5.0; /** * @title AlkemiNetworkMock * @notice A contract to mock AlkemiNetwork functions */ contract AlkemiNetworkMock { /// @notice owner address address public owner; /// @notice alkemi oracle address address public alkemiOracle; /// @notice settlement id uint256 publi...
* @notice Verifies that the calles is Alkemi Oracle/
modifier onlyAlkemiOracle() { require( msg.sender == alkemiOracle, "AlkemiNetwork: Only Alkemi Oracle can perform this operation" ); _; }
12,887,017
[ 1, 19802, 716, 326, 745, 281, 353, 2262, 79, 351, 77, 28544, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 9606, 1338, 1067, 79, 351, 77, 23601, 1435, 288, 203, 3639, 2583, 12, 203, 5411, 1234, 18, 15330, 422, 524, 79, 351, 77, 23601, 16, 203, 5411, 315, 1067, 79, 351, 77, 3906, 30, 5098, 2262, 79, 351, 77, 28544, 848, 3073, ...
pragma solidity 0.5.0; /** * @title Authority * @notice Flexible and updatable auth pattern which is completely separate from application logic. * @author Anibal Catalán <anibalcatalanf@gmail.com>. * * Originally base on code by DappHub. * https://github.com/dapphub/ds-auth/blob/master/src/auth.sol * */ contr...
* @notice Change the contract that act as authority. @param _authority address contract to be changed./
function setAuthority(address _authority) public onlyAuth { authority = _authority; emit LogSetAuthority(authority); }
1,795,417
[ 1, 3043, 326, 6835, 716, 1328, 487, 11675, 18, 225, 389, 24763, 1758, 6835, 358, 506, 3550, 18, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 444, 10962, 12, 2867, 389, 24763, 13, 1071, 1338, 1730, 288, 203, 3639, 11675, 273, 389, 24763, 31, 203, 3639, 3626, 1827, 694, 10962, 12, 24763, 1769, 203, 565, 289, 203, 377, 203, 2, -100, -100, -100, -100, -100, -100...
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity ^0.8.0; // solhint-disable /** * @dev Reverts if `condition` is false, with a revert reason containing `errorCode`. Only codes up to 999 are * supported. */ function _require(bool condition, uint256 errorCode) pure { if (!condition) _revert(errorCod...
First, we need to compute the ASCII representation of the error code. We assume that it is in the 0-999 range, so we only need to convert three digits. To convert the digits to ASCII, we add 0x30, the value for the '0' character. With the individual characters, we can now construct the full string. The "BEL#" part is ...
assembly { let units := add(mod(errorCode, 10), 0x30) errorCode := div(errorCode, 10) let tenths := add(mod(errorCode, 10), 0x30) errorCode := div(errorCode, 10) let hundreds := add(mod(errorCode, 10), 0x30) let revertReason := shl(200, add(0x494d0000000000, add(...
12,685,987
[ 1, 3759, 16, 732, 1608, 358, 3671, 326, 11768, 4335, 434, 326, 555, 981, 18, 1660, 6750, 716, 518, 353, 316, 326, 374, 17, 11984, 1048, 16, 1427, 732, 1338, 1608, 358, 1765, 8925, 6815, 18, 2974, 1765, 326, 6815, 358, 11768, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 19931, 288, 203, 203, 3639, 2231, 4971, 519, 527, 12, 1711, 12, 27754, 16, 1728, 3631, 374, 92, 5082, 13, 203, 203, 3639, 12079, 519, 3739, 12, 27754, 16, 1728, 13, 203, 3639, 2231, 268, 319, 4487, 519, 527, 12, 1711, 12, ...
./full_match/44787/0xDad08208984F31f8895780592dC37be682752c35/sources/contracts/Manager.sol
* @notice Checks if strategy is valid. Blocked strategy is reverted to default. @param strategy The strategy. @return Up to date strategy./ strategy not allowed revert to default strategy
function checkStrategy(address strategy) public view returns (address) { if (strategy != address(0) && specificGroupStrategy.isBlockedStrategy(strategy)) { return address(0); } return strategy; }
13,242,204
[ 1, 4081, 309, 6252, 353, 923, 18, 3914, 329, 6252, 353, 15226, 329, 358, 805, 18, 225, 6252, 1021, 6252, 18, 327, 1948, 358, 1509, 6252, 18, 19, 6252, 486, 2935, 15226, 358, 805, 6252, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 866, 4525, 12, 2867, 6252, 13, 1071, 1476, 1135, 261, 2867, 13, 288, 203, 3639, 309, 261, 14914, 480, 1758, 12, 20, 13, 597, 2923, 1114, 4525, 18, 291, 23722, 4525, 12, 14914, 3719, 288, 203, 5411, 327, 1758, 12, 20, ...
./full_match/43113/0x3f46967bAa872fb0D03A8C21c95D1D73CB01bb8F/sources/solidity/contracts/CloneFactory.sol
GET Templates returns : all Templates/
function templates() external view returns (address[] memory) { return _templates; }
13,144,993
[ 1, 3264, 26212, 225, 1135, 294, 777, 26212, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 445, 5539, 1435, 3903, 1476, 1135, 261, 2867, 8526, 3778, 13, 288, 203, 565, 327, 389, 8502, 31, 203, 225, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.13; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "../interfaces/SyscoinERC20I.sol"; import "@openzeppelin/upgrades/contracts/Initializable.sol"; contract SyscoinERC20Manager is Initializable { using SafeMath for uint; using SafeMath for uint8; // Lock constants...
lookup state by bridgeTransferId ensure state is CancelRequested set state of bridge transfer to CancelChallenged pay deposit to challenger stop using .transfer() because of gas issue after ethereum upgrade
function processCancelTransferFail(uint32 bridgeTransferId, address payable challengerAddress) public onlyTrustedRelayer { BridgeTransfer storage bridgeTransfer = bridgeTransfers[bridgeTransferId]; require(bridgeTransfer.status == BridgeTransferStatus.CancelRequested, ...
12,993,051
[ 1, 8664, 919, 635, 10105, 5912, 548, 3387, 919, 353, 10347, 11244, 444, 919, 434, 10105, 7412, 358, 10347, 782, 7862, 2423, 8843, 443, 1724, 358, 462, 7862, 693, 2132, 1450, 263, 13866, 1435, 2724, 434, 16189, 5672, 1839, 13750, 822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1207, 6691, 5912, 3754, 12, 11890, 1578, 10105, 5912, 548, 16, 1758, 8843, 429, 462, 7862, 693, 1887, 13, 203, 3639, 1071, 203, 3639, 1338, 16950, 1971, 1773, 203, 565, 288, 203, 3639, 24219, 5912, 2502, 10105, 5912, 273,...
pragma solidity ^0.4.24; library SafeMath { /** * @dev Multiplies two numbers, throws on overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { if (a == 0) { return 0; } c = a * b; assert(c / a == b); retur...
Return an empty array We count on the fact that all players have IDs starting at 1 and increasing sequentially up to the total players count.
function tokensOfOwner(address _owner) external view returns (uint256[] ownerTokens) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); uint256[] memory result = new uint256[](tokenCount); uint256 totalPlayers = totalSupply(...
13,073,857
[ 1, 990, 392, 1008, 526, 1660, 1056, 603, 326, 5410, 716, 777, 18115, 1240, 7115, 5023, 622, 404, 471, 21006, 695, 6979, 6261, 731, 358, 326, 2078, 18115, 1056, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 2430, 951, 5541, 12, 2867, 389, 8443, 13, 3903, 1476, 1135, 261, 11890, 5034, 8526, 3410, 5157, 13, 288, 203, 3639, 2254, 5034, 1147, 1380, 273, 11013, 951, 24899, 8443, 1769, 203, 203, 3639, 309, 261, 2316, 1380, 422, ...
./full_match/80001/0x36D842bDAE51553d27e12768E6F6f203032b1939/sources/contracts/BetMaster.sol
Set the bet Events deadline
function createPrivateBetEvent ( string memory _name, uint256 _deadline, address _opponent, bytes32 _yourChoice, bytes32 _otherChoice, uint256 _amount ) external payable validateDeadline(_deadline) checkIntegrity { require(msg.value >= _amo...
846,506
[ 1, 694, 326, 2701, 9043, 14096, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 752, 6014, 38, 278, 1133, 261, 203, 3639, 533, 3778, 389, 529, 16, 203, 3639, 2254, 5034, 389, 22097, 1369, 16, 203, 3639, 1758, 389, 556, 1029, 16, 203, 3639, 1731, 1578, 389, 93, 477, 10538, 16, 203, 3639, 1731, 157...
./full_match/42/0x4807eEa77e376a6a471aCA5279E831D9A0eC5d72/sources/D/Projects/tesla/contracts/Core/MockUSDC.sol
* @dev Throws if called by any account other than the masterMinter/
modifier onlyMasterMinter() { require(msg.sender == masterMinter, "FiatToken: caller is not the masterMinter"); _; }
16,207,551
[ 1, 21845, 309, 2566, 635, 1281, 2236, 1308, 2353, 326, 4171, 49, 2761, 19, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 225, 9606, 1338, 7786, 49, 2761, 1435, 288, 203, 565, 2583, 12, 3576, 18, 15330, 422, 4171, 49, 2761, 16, 315, 42, 77, 270, 1345, 30, 4894, 353, 486, 326, 4171, 49, 2761, 8863, 203, 565, 389, 31, 203, 225, 289, 203, 203, 2, ...
./partial_match/1/0x4BD475C7296482Ba408644b5b6C92D0D0cEfe408/sources/HPINU.sol
at launch if the transfer delay is enabled, ensure the block timestamps for purchasers is set -- during launch. if any account belongs to _isExcludedFromFee account then remove the fee only take fees on buys/sells, do not take on wallet transfers on sell on buy
function _transfer( address from, address to, uint256 amount ) internal override { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); if (amount == 0) { super._transf...
4,168,356
[ 1, 270, 8037, 309, 326, 7412, 4624, 353, 3696, 16, 3387, 326, 1203, 11267, 364, 5405, 343, 345, 414, 353, 444, 1493, 4982, 8037, 18, 309, 1281, 2236, 11081, 358, 389, 291, 16461, 1265, 14667, 2236, 1508, 1206, 326, 14036, 1338, 4862, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 565, 445, 389, 13866, 12, 203, 3639, 1758, 628, 16, 203, 3639, 1758, 358, 16, 203, 3639, 2254, 5034, 3844, 203, 565, 262, 2713, 3849, 288, 203, 3639, 2583, 12, 2080, 480, 1758, 12, 20, 3631, 315, 654, 39, 3462, 30, 7412, 628, ...
// SPDX-License-Identifier: GPL-3.0-or-later Or MIT /** *Submitted for verification at BscScan.com on 2021-05-28 */ pragma solidity ^0.6.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, 'SafeMath: addition overflow'); ...
1 BNB = 10000 SATOSHI
uint256 public satoshiPerBnb = 10000 * 10**18;
6,429,555
[ 1, 21, 605, 20626, 273, 12619, 348, 789, 51, 2664, 45, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 1071, 5942, 538, 12266, 2173, 38, 6423, 273, 12619, 380, 1728, 636, 2643, 31, 2868, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
pragma solidity 0.4.23; // File: minter-service/contracts/IICOInfo.sol contract IICOInfo { function estimate(uint256 _wei) public constant returns (uint tokens); function purchasedTokenBalanceOf(address addr) public constant returns (uint256 tokens); function isSaleActive() public constant returns (bool active)...
@dev overridden price lifetime logic
function priceExpired() public view returns (bool) { return false; }
14,386,541
[ 1, 83, 1107, 2794, 6205, 12486, 4058, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 6205, 10556, 1435, 1071, 1476, 1135, 261, 6430, 13, 288, 203, 3639, 327, 629, 31, 203, 565, 289, 203, 203, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
./full_match/5/0x62b451D2278A3759066Fb63611db0c9089E07147/sources/contracts/GelatoRelayProxy.sol
offset: uint256 + address
uint256 private constant _FEE_START = 52;
1,903,210
[ 1, 3348, 30, 2254, 5034, 397, 1758, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 2254, 5034, 3238, 5381, 389, 8090, 41, 67, 7570, 273, 18106, 31, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
pragma solidity ^0.5.0; import "truffle/Assert.sol"; import "truffle/DeployedAddresses.sol"; import "../contracts/Purchase.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract TestPurchase { // The address of the purchase contract to be tested Purchase buy = Purchase(DeployedAddresses.Purchase()); /...
Testing retrieval of all pet owners because this information is needed to keep track of accumulated balances. Store adopters in memory rather than contract's storage
function testGetPurchaserAddressByPetIdInArray() public { address[16] memory purchasers = buy.getPurchasers(); Assert.equal(purchasers[expectedPetId], expectedPurchaser, "Owner of the expected pet should be this contract"); }
12,598,813
[ 1, 22218, 22613, 434, 777, 293, 278, 25937, 2724, 333, 1779, 353, 3577, 358, 3455, 3298, 434, 24893, 324, 26488, 18, 4994, 1261, 3838, 414, 316, 3778, 9178, 2353, 6835, 1807, 2502, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1842, 967, 10262, 343, 14558, 1887, 858, 52, 278, 548, 382, 1076, 1435, 1071, 288, 203, 3639, 1758, 63, 2313, 65, 3778, 5405, 343, 345, 414, 273, 30143, 18, 588, 10262, 343, 345, 414, 5621, 203, 3639, 5452, 18, 9729, ...
//SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./deb/ERC20.sol"; import "./deb/ICrossDomainMessenger.sol"; import "./deb/StructLib.sol"; /// @title DestinationDomainSideBridge Contract /// @author Sherif Abdelmoatty /// @notice This contract is to be deployed in the destination rollup contract Desti...
@title DestinationDomainSideBridge Contract @author Sherif Abdelmoatty @notice This contract is to be deployed in the destination rollup
contract DestinationDomainSideBridge { address constant ETHER_ADDRESS = 0x0000000000000000000000000000000000000000; bytes32 rewardHashOnion; bytes32[] public rewardHashOnionHistoryList; uint256 public claimCount; uint256 constant TRANSFERS_PER_ONION = 20; event Reward(StructLib.RewardData rewar...
12,552,241
[ 1, 5683, 3748, 8895, 13691, 13456, 225, 348, 1614, 430, 9771, 3771, 8683, 270, 4098, 225, 1220, 6835, 353, 358, 506, 19357, 316, 326, 2929, 5824, 416, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 16351, 10691, 3748, 8895, 13691, 288, 203, 565, 1758, 5381, 512, 19905, 67, 15140, 273, 374, 92, 12648, 12648, 12648, 12648, 12648, 31, 203, 565, 1731, 1578, 19890, 2310, 1398, 285, 31, 203, 565, 1731, 1578, 8526, 1071, 19890, 2310, ...
pragma solidity ^0.4.24; import "../../node_modules/openzeppelin-solidity/contracts/ownership/Ownable.sol"; import "../../node_modules/openzeppelin-solidity/contracts/token/ERC20/ERC20.sol"; import "./OriginToken.sol"; /** * @title Migrates balances from one token contract to another * @dev Migrates all balances f...
@dev Finishes migration and transfers token ownership to new owner.
function finish(address _newTokenOwner) public onlyOwner notFinished { require( fromToken.totalSupply() == toToken.totalSupply(), "total token supplies do not match" ); require( _newTokenOwner != address(this), "this contract cannot own the tok...
13,072,035
[ 1, 11641, 281, 6333, 471, 29375, 1147, 23178, 358, 394, 3410, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 4076, 12, 2867, 389, 2704, 1345, 5541, 13, 1071, 1338, 5541, 486, 10577, 288, 203, 3639, 2583, 12, 203, 5411, 628, 1345, 18, 4963, 3088, 1283, 1435, 422, 358, 1345, 18, 4963, 3088, 1283, 9334, 203, 5411, 315, 4963, 1147...
./full_match/1/0xb05F478d93C7063194f37535aD148242B8d1F1B8/sources/contracts/priceProviders/chainlinkV3/ChainlinkV3PriceProvider.sol
Time threshold to invalidate stale prices If true, we bypass the aggregator and consult the fallback provider directly If true, the aggregator returns price in USD, so we need to convert to QUOTE Chainlink aggregator proxy Provider used if the aggregator's price is invalid or if it became disabled
struct AssetData { uint256 heartbeat; bool forceFallback; bool convertToQuote; AggregatorV3Interface aggregator; IPriceProvider fallbackProvider; } event NewAggregator(address indexed asset, AggregatorV3Interface indexed aggregator, bool convertToQuote); ...
3,047,800
[ 1, 950, 5573, 358, 11587, 14067, 19827, 971, 638, 16, 732, 17587, 326, 20762, 471, 27710, 326, 5922, 2893, 5122, 971, 638, 16, 326, 20762, 1135, 6205, 316, 587, 9903, 16, 1427, 732, 1608, 358, 1765, 358, 31829, 7824, 1232, 20762, 2889...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 565, 1958, 10494, 751, 288, 203, 3639, 2254, 5034, 12923, 31, 203, 3639, 1426, 2944, 12355, 31, 203, 3639, 1426, 8137, 10257, 31, 203, 3639, 10594, 639, 58, 23, 1358, 20762, 31, 203, 3639, 2971, 3057, 2249, 5922, 2249, 31, 203, 5...
/** *Submitted for verification at Etherscan.io on 2021-11-23 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScr...
to set the merkle proof
function updateMerkleRoot(bytes32 newmerkleRoot) external onlyOwner { merkleRoot = newmerkleRoot; emit MerkleRootUpdated(merkleRoot); }
271,455
[ 1, 869, 444, 326, 30235, 14601, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 565, 445, 1089, 8478, 15609, 2375, 12, 3890, 1578, 394, 6592, 15609, 2375, 13, 3903, 1338, 5541, 288, 203, 3639, 30235, 2375, 273, 394, 6592, 15609, 2375, 31, 203, 3639, 3626, 31827, 2375, 7381, 12, 6592, 15609, 2375, 1769, 203, 56...