Skip to content

Instantly share code, notes, and snippets.

View torresnova's full-sized avatar
Success!

AngryMan torresnova

Success!
View GitHub Profile
@torresnova
torresnova / ChatGPT-Client.sol
Created September 24, 2024 15:07 — forked from formysister/ChatGPT-Client.sol
Ethereum + OpenAI integration using Chainlink
pragma solidity ^0.6.7;
import "@chainlink/contracts/src/v0.6/ChainlinkClient.sol";
import "@chainlink/contracts/src/v0.6/vendor/Ownable.sol";
contract ChatGPT is ChainlinkClient, Ownable {
uint256 private fee;
address private oracle;
bytes32 private jobId;
event ResponseReceived(
@torresnova
torresnova / index.js
Created September 24, 2024 15:07 — forked from formysister/index.js
Analyze EVM network blocks and transactions and pick transactions that ERC721 NFT smart contract deployed.
'use strict'
const ethers = require('ethers');
const readline = require('readline').createInterface({
input: process.stdin,
output: process.stdout,
});
const { RPC_URL_HTTP_ENDPOINT } = require('./config');
const ERC721 = require('./erc721-abi.json');
@torresnova
torresnova / uploadetoipfs.js
Last active June 11, 2022 01:54
Upload something to IPFS using JS
const ipfsClient = require("ipfs-http-client");
const ipfs = ipfsClient.create({
host: "ipfs.infura.io",
port: 5001,
protocol: "https",
});
const item = {
// describe something
}