This file contains 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
events { worker_connections 2014; } | |
http { | |
include /etc/nginx/conf.d/*.conf; | |
default_type text/plain; | |
error_log /var/log/nginx/example_debug_error.log debug; | |
access_log /var/log/nginx/example_access.log; |
This file contains 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 client"; | |
import { useState } from "react"; | |
import { gql } from "@apollo/client"; | |
import { useQuery } from "@apollo/client"; | |
import type { NextPage } from "next"; | |
import { useAccount } from "wagmi"; | |
import { Address, AddressInput, Balance } from "~~/components/scaffold-eth"; | |
import { | |
useAccountBalance, |
This file contains 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
import * as chains from "wagmi/chains"; | |
// Base chain | |
export const base = { | |
id: 8453, | |
network: "base", | |
name: "Base", | |
nativeCurrency: { name: "Base", symbol: "ETH", decimals: 18 }, | |
rpcUrls: { | |
default: { |
This file contains 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
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { worker_connections 1024; } | |
http { | |
default_type text/html; | |
log_format main '$remote_addr -> $request $status $body_bytes_sent bytes -> $upstream_addr'; | |
access_log /var/log/nginx/access.log main; |
This file contains 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
import type { NextPage } from "next"; | |
import { MetaHeader } from "~~/components/MetaHeader"; | |
import { gql } from "@apollo/client"; | |
import { useQuery } from "@apollo/client"; | |
import { Address } from "~~/components/scaffold-eth"; | |
export const GET_MESSAGES = gql` | |
{ | |
sendMessages(first: 5) { |
This file contains 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
# load dynamic modules | |
load_module /etc/nginx/modules/ngx_http_geoip_module.so; | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { worker_connections 1024; } | |
http { |
This file contains 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
import { useState } from 'react'; | |
import ipfsHttpClient from 'ipfs-http-client'; | |
const IPFSUploader: React.FC = () => { | |
const [name, setName] = useState<string>(''); | |
const [description, setDescription] = useState<string>(''); | |
const [budget, setBudget] = useState<number>(0); | |
const [image, setImage] = useState<File | null>(null); | |
const [ipfsResponse, setIPFSResponse] = useState<any | null>(null); |
This file contains 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
type PostCreated @entity(immutable: true) { | |
id: Bytes! | |
ownerId: BigInt! | |
contentURI: String! | |
timestamp: BigInt! | |
} | |
type PostContent @entity(immutable: true) { | |
id: Bytes! | |
hash: String! |
This file contains 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
import { | |
Bytes, | |
dataSource, | |
DataSourceContext, | |
DataSourceTemplate, | |
log, | |
ipfs, | |
json, | |
} from "@graphprotocol/graph-ts"; | |
import { |
This file contains 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
import Link from "next/link"; | |
import type { NextPage } from "next"; | |
import { BugAntIcon, MagnifyingGlassIcon, SparklesIcon } from "@heroicons/react/24/outline"; | |
import { MetaHeader } from "~~/components/MetaHeader"; | |
import { gql } from '@apollo/client'; | |
import { useQuery } from '@apollo/client'; | |
export const GET_MESSAGES = gql` | |
{ | |
messages(first: 10, orderBy: createdAt, orderDirection: asc) { |
NewerOlder