This file contains 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
hello mo |
This file contains 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
// 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") |
This file contains 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
// 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; | |
This file contains 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 | |
// 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 { |
This file contains 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
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 |
This file contains 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 | |
// 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"; |
This file contains 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 | |
// 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"; |