Skip to content

Instantly share code, notes, and snippets.

View ggviana's full-sized avatar
💭
On fire 🔥

Guilherme Guimarães ggviana

💭
On fire 🔥
View GitHub Profile
@dabit3
dabit3 / marketplace.sol
Last active April 29, 2025 06:06
NFT Marketplace Smart Contract (V2)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
contract NFTMarketplace is ERC721URIStorage {
@z0r0z
z0r0z / Multisig.sol
Last active March 9, 2022 01:50
Simple gas-optimized multi-signature contract.
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.8.4;
/// @notice Simple gas-optimized multi-signature contract.
contract Multisig {
event Propose(address indexed proposer, uint256 indexed proposal);
event Sign(address indexed signer, uint256 indexed proposal);
event Execute(uint256 indexed proposal);
error NotSigner();
@hbarcelos
hbarcelos / MedianEthUsd.json
Last active May 30, 2020 04:37
Getting the USD/ETH price from MakerDAO feed [off-chain only]
[
{
"constant": false,
"inputs": [
{
"internalType": "address",
"name": "usr",
"type": "address"
}
],
@Pompeu
Pompeu / cpf_consulta_api_sus.js
Last active December 1, 2020 23:29
cpf_consulta_api_sus.js
'use strict';
// @deprecade
const http = require('http');
const cpf = process.argv[2];
const parse = JSON.parse;
const log = console.log;
const url = `http://dabsistemas.saude.gov.br/sistemas/sadab/js/buscar_cpf_dbpessoa.json.php?cpf=${cpf}`;
http.get(url, res => {