source_code stringlengths 52 864k | success stringclasses 1
value |
|---|---|
// SPDX-License-Identifier: MIT
// Developed by KG Technologies (https://kgtechnologies.io)
pragma solidity 0.8.11;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { MerkleProof } from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
/... | True |
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* ... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
import "@openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "./SwapAdmin.sol";
contract SwapTokenLocker is SwapAdmin {
using SafeMath for uint;
... | True |
library SafeMath
{
uint256 constant public MAX_UINT256 =
0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function GET_MAX_UINT256() pure internal returns(uint256){
return MAX_UINT256;
}
function mul(uint a, uint b) internal returns(uint){
uint c = a * b;
... | True |
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity =0.8.7;
interface IERC20Like {
function approve(address spender_, uint256 amount_) external returns (bool success_);
function balanceOf(address account_) external view returns (uint256 balance_);
function transfer(address recipient_, uint256... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: Stories after Dark
/// @author: manifold.xyz
import "./ERC721Creator.sol";
////////////////////////////////////////////////////////////////////////////////////////////////
// ... | True |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.6;
import "./ownable.sol";
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address... | True |
pragma solidity ^0.4.20;
contract quiz_quest
{
function Try(string _response) external payable {
require(msg.sender == tx.origin);
if(responseHash == keccak256(_response) && msg.value > 3 ether)
{
msg.sender.transfer(this.balance);
}
}
string public... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract Fattie is ERC721, Ownable {
uint256 public totalSupply;
mapping (uint256 => string) private _tokenURIs;
event MintFattie(address ... | True |
pragma solidity ^0.4.23;
// https://www.pennyether.com
/******* USING Registry **************************
Gives the inherting contract access to:
.addressOf(bytes32): returns current address mapped to the name.
[modifier] .fromOwner(): requires the sender is owner.
******************************************... | True |
/**
* See you on the Moon
*
* Token name : Gangster Inu
* Supply: 1,000,000,000
* Decimal place: 18
* Symbol : GANGSINU
*/
// File: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/*
* @dev Provides infor... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: Rain Water Series By Brooke Dahl
/// @author: manifold.xyz
import "./ERC721Creator.sol";
/////////////////////////////////////////////////
// //
// //
// ^... | True |
/*
____ _ ____ _ _____ _
/ ___|___ ___ | | _ \(_)_ __ ___ | ___(_)_ __ __ _ _ __ ___ ___
| | / _ \ / _ \| | | | | | '_ \ / _ \ | |_ | | '_ \ / _` | '_ \ / __/ _ \
| |__| (_) | (_) | | |_| | | | | | (_) | | _| | | | | | (_| | | | | (_| __/
\___... | True |
pragma solidity ^0.5.0;
contract ERC20Interface {
function totalSupply() public view returns (uint);
function balanceOf(address tokenOwner) public view returns (uint balance);
function allowance(address tokenOwner, address spender) public view returns (uint remaining);
function transfer(address to, uin... | True |
// SPDX-License-Identifier: MIT
/*
███████╗██╗ ██╗███████╗██╗ ██████╗ ███╗ ██╗ ███████╗██████╗ █████╗ ██████╗████████╗ █████╗ ██╗ ███████╗
██╔════╝██║ ██║██╔════╝██║██╔═══██╗████╗ ██║ ██╔════╝██╔══██╗██╔══██╗██╔════╝╚══██╔══╝██╔══██╗██║ ██╔════╝
█████╗ ██║ ██║███████╗██║██║ ██║██╔██╗ ██║ ... | True |
/**
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMWWWWWWWWWWWWWWWMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMWWNXXKKKKKKKXXXXKKKKKKXXNWWMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMWNXKKKKXXNWWWWMMWWWWMWWWWNXXXKKKXNWMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWNXKKKXNWMMMMMMM... | True |
//IGNITE-A unprecedented prediction market of based decentralization network.
//Website:IGToken.net
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
functi... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-... | True |
pragma solidity ^0.5.0;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uin... | True |
// 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;
... | True |
pragma solidity ^0.4.25;
/*
Trust based betting system, affiliated with NeutrinoTokenStandard contract.
Rules:
Welcome Fee - 25%, including:
Boss - 10%
Yearly jackpot - 2%
Referral bonus - ... | True |
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <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... | True |
pragma solidity 0.5.15;
// Treasury contract for YAM ecosystem
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function... | True |
pragma solidity 0.5.16;
interface IBEP20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | True |
pragma solidity ^0.5.0;
library SafeMath{
/**
* Returns the addition of two unsigned integers, reverting on
* overflow.
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
uint256 c = a + b;
... | True |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "./libraries/math/SafeMath.sol";
import "./libraries/token/IERC20.sol";
import "./interfaces/IX2TimeDistributor.sol";
import "./interfaces/IX2Farm.sol";
contract X2StakeReader {
using SafeMath for uint256;
uint256 constant PRECISION = 1e30;
... | True |
/*
Copyright 2021 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | True |
/*
https://t.me/flokimasterportal
*/
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.7;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address token... | True |
pragma solidity ^0.4.18;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
assert(c / a == b);
return c;
}
... | True |
// Dependency file: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.7.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 progr... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when de... | True |
/**
*Submitted for verification at Etherscan.io on 2021-06-06
*/
/**
*Submitted for verification at Etherscan.io on 2021-06-05
*/
pragma solidity ^0.6.0;
/**
- Busa Inu (BINU)
- https://t.me/busainu
- https://busainucoin.com
*/
library SafeMath {
/**
* @dev Returns the addition of ... | True |
/*
We aim to aid those that help without expecting anything in return. 🙋
Telegram Chat: https://t.me/volunteerinu
*/
pragma solidity ^0.7.5;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virt... | True |
pragma solidity ^0.4.18;
/**
* @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, uint256 b) in... | True |
// Sources flattened with hardhat v2.6.8 https://hardhat.org
// File src/interfaces/controller.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
interface IController {
function jars(address) external view returns (address);
function rewards() external view returns (address);
function devfun... | True |
// SPDX-License-Identifier: Unlicensed
/*
Telegram: https://t.me/tamamikasa
Mikasa Fan based token
Stealth Launch
Tokenomics:
Total Tax:12%
Liquidity Pool: 4%
Buy Back and Burn: 3%
Marketing: 3%
Dev 2%
*/
pragma solidity ^0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns ... | True |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Investors' token contract
//
// Deployed to : 0x0f062Fed1C7Fd3D9dbB40701406196361C6D4edD
// Symbol : INVT
// Name : Investors Token
// Total supply: 10000000000
// Decimals : 18
//
// Enjoy.
//
/... | True |
pragma solidity ^0.4.24;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousO... | True |
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {SafeMath} from "@openzeppelin/contracts/math/SafeMath.sol";
import {IAlchemist} from "./alchemist/Alchemist.sol";
co... | True |
pragma solidity ^0.4.18;
/**
* @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, uint256 b) in... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function ad... | True |
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) exter... | True |
// File: contracts/SafeMath.sol
pragma solidity 0.5.17;
// Note: This file has been modified to include the sqrt function for quadratic voting
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint2... | True |
/*
Calls, puts, froth, a death cross and a dead-cat bounce.
Black Diamond
https://t.me/BlackDiamondETH
*/
pragma solidity ^0.8.4;
// SPDX-License-Identifier: UNLICENSED
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC... | True |
pragma solidity 0.8.11;
contract MusicForTheBitcoinGeneration {
/*
ANNOUNCING THE LAUNCH OF COMMUNITY BASED MUSIC :
NOTORISED ON THE BLOCKCHAIN ON FEBRUARY 22 2022 AT 22.22 PM THAI TIME .
THE CAMPFIRE ERA .
IS HERE .
FOLLOWING PERFECT SQUARE PRINCIPLE 1 ,
AS NOTORISED ON THE BLOCKCHAIN ON OCTOBER 20 2020 AT 2... | True |
// Sources flattened with hardhat v2.4.1 https://hardhat.org
// File contracts/upgrades/MathUpgradeable.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.6.12;
pragma experimental ABIEncoderV2;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library MathUpgradeable {
/**
* @dev... | True |
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
contract DSMath {
function add(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x + y) >= x);
}
function sub(uint256 x, uint256 y) internal pure returns (uint256 z) {
require((z = x - y) <= x);
}
fun... | True |
// SPDX-License-Identifier: UNLICENSED
/**
*Submitted for verification at Etherscan.io on 2019-06-10
*/
pragma solidity 0.8.11;
/// @title Multicall - Aggregate results from multiple read-only function calls
/// @author Michael Elliot <[email protected]>
/// @author Joshua Levine <[email protected]>
/// @author Nic... | True |
// File: TestContracts/ProxyTarget.sol
pragma solidity 0.8.7;
/// @dev Proxy for NFT Factory
contract ProxyTarget {
// Storage for this proxy
bytes32 internal constant IMPLEMENTATION_SLOT = bytes32(0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc);
bytes32 internal constant ADMIN_SLOT ... | True |
// CryptoPuppies Source code
// Copied from: https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user... | True |
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts@3.4.0/utils/Address.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 these are generally available
* via msg.sender and msg.data, t... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title: -- .- -.-.
/// @author: manifold.xyz
import "./ERC1155Creator.sol";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ... | True |
// File: openzeppelin-solidity-2.3.0/contracts/ownership/Ownable.sol
pragma solidity ^0.5.0;
/**
* @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.
*
* This module is used through inheritance... | True |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Welcome To BDT Airdrop
//
// send at least 0.0001 ETH to Smart Contract 0x97A4C01894F4B727979f6Ea86924E13C9fe2E619
// NOTE: do not forget to set the gas price 120,000 for the transaction to run smoothly
//EXC... | True |
// File: @openzeppelin/contracts/math/Math.sol
pragma solidity 0.5.16;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a >= b... | True |
// SPDX-License-Identifier: GPL-3.0-or-later
// a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math)
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily resu... | True |
pragma solidity ^0.4.20;
contract owned {
address public owner;
constructor() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
inte... | True |
pragma solidity ^0.4.21;
/*
* Abstract Token Smart Contract. Copyright © 2017 by ABDK Consulting.
* Author: Mikhail Vladimirov <mikhail.vladimirov@gmail.com>
*/
/**
* ERC-20 standard token interface, as defined
* <a href="http://github.com/ethereum/EIPs/issues/20">here</a>.
*/
contract Token {
/**
* Get to... | True |
/*
Copyright 2021 Popcorn Network https://popcorn.network/
*/
pragma solidity ^0.8.9;
// SPDX-License-Identifier: MIT
interface ERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint2... | True |
pragma solidity ^0.5.17;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pure returns (uint c) {
... | True |
pragma solidity ^0.4.16;
contract owned {
address public owner;
function owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) onlyOwner public {
owner = newOwner;
}
}
i... | True |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// /$$$$$$ /$$$$$$$ /$$
// /$$$_ $$ | $$__ $$ |__/
// | $$$$\ $$ /$... | True |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Decentralized ecosystem for financial product development
// YDFI Finance
// https://ydfi.finance
//----------------------------------------------------------------------------
// Safe maths
// -----------------... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";... | True |
/**
*Submitted for verification at Etherscan.io on 2020-09-25
*/
// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol
pragma solidity ^0.6.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in ex... | True |
pragma solidity ^0.4.19;
contract SupportedContract {
// Members can call any contract that exposes a `theCyberMessage` method.
function theCyberMessage(string) public;
}
contract ERC20 {
// We want to be able to recover & donate any tokens sent to the contract.
function balanceOf(address _who) public view ... | True |
/*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | True |
pragma solidity 0.6.11;
// SPDX-License-Identifier: BSD-3-Clause
/**
* @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... | True |
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.4;
import {ERC20} from "ERC20.sol";
import {SafeTransferLib} from "SafeTransferLib.sol";
import {Ownable} from "Ownable.sol";
import {FullMath} from "FullMath.sol";
import {ERC20 as CloneERC20} from "ERC20.sol";
/// @title xERC20
/// @author zefram.eth
/// @n... | True |
// SPDX-License-Identifier: MIT
pragma solidity 0.8.0;
import "./ERC20.sol";
import "./IERC20.sol";
contract PizzaToken is ERC20{
address public deployer;
constructor() ERC20("pizza-token.finance", "PZZ" ) {
_mint(msg.sender, 100000 * (10 ** uint256(18)));
deployer = msg.sender;
}
... | True |
/*
Copyright 2019-2021 StarkWare Industries Ltd.
Licensed under the Apache License, Version 2.0 (the "License").
You may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.starkware.co/open-source-license/
Unless required by applicable law or agre... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns... | True |
pragma solidity =0.6.6;
import './interfaces/IFomodexFactory.sol';
import '@uniswap/lib/contracts/libraries/TransferHelper.sol';
import './interfaces/IFomodexRouter02.sol';
import './libraries/FomodexLibrary.sol';
import './libraries/SafeMath.sol';
import './interfaces/IERC20.sol';
import './interfaces/IWETH.sol';
c... | True |
pragma solidity 0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract SENTToken is ERC20 {
constructor(
string memory name,
string memory symbol,
uint256 initialSupply
) ERC20(name, symbol) {
_mint(msg.sender, initialSupply);
}
}
// SPDX-License-Identifie... | True |
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.6.12;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability war... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzep... | True |
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | True |
// File: contracts/XFactory/storage/XFactorySlot.sol
pragma solidity ^0.6.12;
/**
* @title BiFi-X XFactorySlot contract
* @notice For prevent proxy storage variable mismatch
* @author BiFi-X(seinmyung25, Miller-kk, tlatkdgus1, dongchangYoo)
*/
contract XFactorySlot {
address public storageAddr;
address pu... | True |
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
}
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) ext... | True |
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more information see https://tokenmarket.net
*
* Licensed under the Apache License, version 2.0: https://github.com/TokenMarketNet/ico/blob/master/LICENSE.txt
*/
/**
* This smart contract code is Copyright 2017 TokenMarket Ltd. For more inform... | True |
// SPDX-License-Identifier: MIT License
// www.snap-universe.com
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
//MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM... | True |
pragma solidity ^0.4.26;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
import "@openzeppelin/contracts/math/Math.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./interfaces/IFeeCollector.sol";
import "./libraries/UniERC20.sol";
import "./libraries/Sqrt.sol";... | True |
// Sources flattened with hardhat v2.2.0 https://hardhat.org
// File @openzeppelin/contracts/GSN/Context.sol@v3.3.0
// SPDX-License-Identifier: MIT
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... | True |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./interfaces/ITheCoachFunds.sol";
import "@openzeppelin/contracts/utils/Address.sol";
contract TheCoachPreminter {
using Address for address payable;
ITheCoachFunds private coachContract;
constructor(address _coachContract) {
coachCo... | True |
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "./structs/DragonInfo.sol";
import "./access/BaseAccessControl.sol";
import "./DragonToken.sol";
contract DragonCreator is BaseAccessControl {
using Address for address;
address pr... | True |
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;
/**
* @title InstaConnectorsV2
* @dev Registry for Connectors.
*/
interface IndexInterface {
function master() external view returns (address);
}
interface ConnectorInterface {
function name() external view returns (string memory);
}
contract Cont... | True |
// @author Unstoppable Domains, Inc.
// @date August 12th, 2021
pragma solidity ^0.8.0;
import './IForwarder.sol';
import './BaseRoutingForwarder.sol';
/**
* @title CNSRegistryForwarder
* @dev CNSRegistryForwarder simplifies operation with legacy meta-transactions.
* It works on top of existing SignatureControlle... | True |
pragma solidity ^0.4.21;
interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) external; }
contract token {
/* 公共变量 */
string public name; //代币名称
string public symbol; //代币符号
uint8 public decimals = 4; //代币单位,展示的小数点后面多少个0
uint256 pub... | True |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function ba... | True |
/**
*Submitted for verification at Etherscan.io on 2022-03-12
*/
/**
*Submitted for verification at Etherscan.io on 2022-03-04
*/
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
... | True |
/*
LIQ: 2%
MARKETING: 6%
DEV: 4%
*/
pragma solidity ^0.8.9;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return payable(msg.sender);
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence sta... | True |
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.7.6;
import "../StrategyCommon.sol";
contract Arbitrary is StrategyCommon {
/**
@notice a strategy is dedicated to exactly one oneToken instance
@param oneTokenFactory_ bind this instance to oneTokenFactory instance
@param oneToken_ bind this... | True |
pragma solidity ^0.6.0;
abstract contract Context {/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA*/
function _msgSender() internal view virtual returns (address payable) {/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAMXdyYA*/
return msg.sender;/*rxXPosiyfLzpxAMXdyYArxXPosiyfLzpxAM... | True |
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.0;
interface ICaller{
function ownerOf(uint _tokenId) external returns(address);
}
contract TheKey {
string public sponsoringContent = "";
function updateSponsoringContent(string memory newSponsoringContent) external {
address own... | True |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function ba... | True |
pragma solidity ^0.6.0;
import "../Initializable.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.sender and msg.data, they should not be accessed in such a direct
* manner, since when dea... | True |
pragma solidity ^0.4.18;
/**
* @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, uint256 b) in... | True |
/*
Copyright 2021 Set Labs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in... | True |
//WEB: https://astroelon.net
//TG: https://t.me/astroeloncadets
//TWITTER: https://twitter.com/AstroElon
//INSTAGRAM: https://instagram.com/astroeloncadets
//GITHUB: https://github.com/astroelon
//MEDIUM: https://medium.com/@AstroElon
//REDDIT: https://reddit.com/r/AstroElon
/* ASTROELON - $ELONONE */
// SPDX-License... | True |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.