Skip to content

Instantly share code, notes, and snippets.

View santhosh-reddy-6404's full-sized avatar
🎯
Focusing

Santhosh Reddy santhosh-reddy-6404

🎯
Focusing
View GitHub Profile
@santhosh-reddy-6404
santhosh-reddy-6404 / exchange.sol
Created March 21, 2022 08:31
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol";
import "github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol";
contract DEX {
using SafeMath for uint;
@santhosh-reddy-6404
santhosh-reddy-6404 / nft-minter.sol
Last active March 16, 2022 03:25
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=builtin&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^ 0.8.*;
import "github.com/OpenZeppelin/openzeppelin-contracts/contracts/utils/Counters.sol";
import "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/ERC721.sol";
import "github.com/OpenZeppelin/openzeppelin-contracts/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
contract FactoryNFT is ERC721URIStorage {
using Counters for Counters.Counter;
/* Author: Santhosh Reddy */
//SPDX-License-Identifier: MIT
pragma solidity 0.8.*;
contract carInsurance {
address addrs = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
address payable insurer = payable(addrs);
/* Author : Santhosh Reddy */
//SPDX-License-Identifier: MIT
pragma solidity 0.8.*;
contract smartCityGov {
/* All required properties (variable, structs, mappings,
enums, events and modifiers) */