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
/* 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) */
@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;
@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 / token.sol
Created March 21, 2022 08:32
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/contracts/token/ERC20/ERC20.sol";
contract SUNcoin is ERC20 {
using SafeMath for uint;
@santhosh-reddy-6404
santhosh-reddy-6404 / token.sol
Created March 22, 2022 04:28
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/contracts/token/ERC20/ERC20.sol";
contract SUNcoin is ERC20 {
using SafeMath for uint;
@santhosh-reddy-6404
santhosh-reddy-6404 / exchange.sol
Created March 22, 2022 04:30
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 / nftify.sol
Created March 25, 2022 09:58
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/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";
import "github.com/OpenZeppelin/openzeppelin-contracts/contracts/access/Ownable.sol";
contract NFTify is ERC721URIStorage, Ownable {
@santhosh-reddy-6404
santhosh-reddy-6404 / interface.sol
Created March 30, 2022 09:16
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/contracts/token/ERC721/IERC721.sol";
contract tradeNFT {
IERC721 internal token;
constructor(address tokenAddress) {
@santhosh-reddy-6404
santhosh-reddy-6404 / nftify.sol
Created April 4, 2022 07:57
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/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";
import "github.com/OpenZeppelin/openzeppelin-contracts/contracts/access/Ownable.sol";
contract NFTjs is ERC721URIStorage, Ownable {