Skip to content

Instantly share code, notes, and snippets.

View Turupawn's full-sized avatar
🇭🇳
Karaoke veteran

Ahmed Castro Turupawn

🇭🇳
Karaoke veteran
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
contract MyToken is ERC20
{
constructor() ERC20("My Token", "TKN")
{
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
contract MaxUINT
{
uint256 MAX_INT = 115792089237316195423570985008687907853269984665640564039457584007913129639935;
uint public a = MAX_INT - 1;
uint public b = 1;
@Turupawn
Turupawn / AnyAPIKovan.sol
Last active March 8, 2022 19:37
Orcales
// SPDX-License-Identifier: MIT
pragma solidity 0.8.12;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
/**
* Request testnet LINK and ETH here: https://faucets.chain.link/
* Find information on LINK Token Contracts and get the latest ETH and LINK faucets here: https://docs.chain.link/docs/link-token-contracts/
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract TimelockDemo {
}
contract MyERC20 is ERC20 {
@Turupawn
Turupawn / fuck.sol
Last active March 29, 2022 04:10
fuck
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract MyERC20 is ERC20 {
constructor () ERC20("My Token", "TKN") {
_mint(msg.sender, 1_000_000 ether);
}
}
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
pragma solidity 0.8.13;
/**
* @title Precompiled contract that exists in every Arbitrum chain at address(100), 0x0000000000000000000000000000000000000064. Exposes a variety of system-level functionality.
*/
interface ArbSys {
/**
* @notice Get internal version number identifying an ArbOS build
* @return version number as int
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
interface ArbSys {
function sendTxToL1(address destination, bytes calldata calldataForL1) external payable returns(uint);
}
contract Bridge {
function executeCall(
@Turupawn
Turupawn / MaiStaking.sol
Created April 29, 2022 20:39
Mai Staking
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
contract MaiStaking
{
uint public genesisTimestamp;
uint public auctionDuration = 15 minutes;
constructor() {
genesisTimestamp = block.timestamp;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
interface IUniswapV2Router02 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function swapExactTokensForETHSupportingFeeOnTransferTokens(