Skip to content

Instantly share code, notes, and snippets.

View malik672's full-sized avatar
🎯
Focusing

malik malik672

🎯
Focusing
View GitHub Profile
@malik672
malik672 / test.rs
Last active February 9, 2024 01:34
// Import the crates
use clap::{App, Arg, SubCommand};
use reqwest::Client;
#[tokio::main]
async fn main() {
// Create a CLI app with clap
let app = App::new("Rick and Morty CLI")
.version("0.1.0")
@malik672
malik672 / rickmorty.rs
Created February 11, 2024 07:30
rickmorty
// Import the crates
use clap::{App, Arg, SubCommand};
use reqwest::Client;
use std::error::Error;
use hyper::service::{make_service_fn, service_fn};
use hyper::{Body, Request, Response, Server};
use std::net::SocketAddr;
use std::convert::Infallible;
// SPDX-License-Identifier: MIT
// Lp Token Lock by proxystudio
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";
contract LpLocker is Context, Ownable {
interface NonFungibleContract {
/// @notice Returns the position information associated with a given token ID.
/// @dev Throws if the token ID is not valid.
/// @param tokenId The ID of the token that represents the position
/// @return nonce The nonce for permits
/// @return operator The address that is approved for spending
/// @return token0 The address of the token0 for a specific pool
/// @return token1 The address of the token1 for a specific pool
/// @return fee The fee associated with the pool
/// @return tickLower The lower end of the tick range for the position
// SPDX-License-Identifier: MIT
// Lp Token Lock by proxystudio
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./IManager.sol";
// SPDX-License-Identifier: MIT
// Lp Token Lock by proxystudio
pragma solidity ^0.8.20;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "./IManager.sol";