Skip to content

Instantly share code, notes, and snippets.

View ehsanshojaeiiii's full-sized avatar
🎯
Focusing

Ehsan Shojaei ehsanshojaeiiii

🎯
Focusing
  • Moon
View GitHub Profile
@Chmarusso
Chmarusso / DamnSimpleNftStake.sol
Created February 13, 2022 15:54
Super Simple NFT staking
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol";
contract NftStaker {
IERC1155 public parentNFT;
struct Stake {
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol";
import "@openzeppelin/[email protected]/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/[email protected]/access/Ownable.sol";
contract MyToken is ERC721, ERC721Enumerable, Ownable {
@islishude
islishude / uniswap-airdrop.sol
Created December 9, 2020 03:44
uniswap airdrop contract 0x090d4613473dee047c3f2706764f49e0821d256e
/**
*Submitted for verification at Etherscan.io on 2020-09-16
*/
// SPDX-License-Identifier: UNLICENSED
pragma solidity =0.6.11;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/