This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ipfsClient = require("ipfs-http-client"); | |
const ipfs = ipfsClient.create({ | |
host: "ipfs.infura.io", | |
port: 5001, | |
protocol: "https", | |
}); | |
const item = { | |
// describe something | |
} |