Skip to content

Instantly share code, notes, and snippets.

View shahzaintariq's full-sized avatar
👨‍🎓
Studying

Shahzain Tariq shahzaintariq

👨‍🎓
Studying
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
@shahzaintariq
shahzaintariq / $fud.sol
Created January 28, 2021 18:39
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=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&runs=200&gist=
/**
*Submitted for verification at Etherscan.io on 2020-04-28
*/
// BUILT FOR FREE ON https://vittominacori.github.io/erc20-generator
// File: @openzeppelin/contracts/GSN/Context.sol
pragma solidity ^0.6.0;
@shahzaintariq
shahzaintariq / 1_Storage.sol
Created August 18, 2020 12: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=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@shahzaintariq
shahzaintariq / 1_Storage.sol
Created July 20, 2020 15:33
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=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
@shahzaintariq
shahzaintariq / 1_Storage.sol
Created July 2, 2020 21:04
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=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.7.0;
/**
* @title Storage
* @dev Store & retreive value in a variable
*/
contract Storage {
uint256 number;
var web3 = new Web3('HTTP://127.0.0.1:8545')
var abi = [
{
"inputs": [],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
body {
background-color: rgb(255, 255, 209);
}
header{
padding: 5%;
margin-left: 35%;
font-family: 'Oswald', sans-serif;;
font-size: large;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Oswald:700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
pragma solidity 0.6.1;
contract votting{
struct candidate{
uint id;
string name;
uint voted;
}
address private owner;
@shahzaintariq
shahzaintariq / ERC.sol
Created February 21, 2020 20:01
ERC20 contract
pragma solidity ^0.6.1;
import {ERC20TokenInterface} from './IERC20.sol';
contract ERC20 is ERC20TokenInterface{
string internal tName;
string internal tSymbol;
uint256 internal tTotalSupply;
uint256 internal tdecimals;