Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arbgoerli #115

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .env.sample

This file was deleted.

1 change: 1 addition & 0 deletions .well-known/walletconnect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ff2e32bf-22ae-4721-9268-63f5d94c16ea=70c4a5ca5970334bf32c87042fea243818f3362f2f3b95c5e036e88beb1d425d
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const nextConfig = {
headers: [
{
key: "Access-Control-Allow-Origin",
value: "http://localhost:5555",
value: "https://sea-grants.vercel.app",
},
{
key: "Access-Control-Allow-Methods",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@rainbow-me/rainbowkit": "^1.2.0",
"@tailwindcss/forms": "^0.5.7",
"dotenv": "^16.3.1",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"next": "14.0.1",
"pino-pretty": "^10.2.3",
Expand Down
6 changes: 3 additions & 3 deletions src/services/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export type Config = {

export const getIPFSClient = (): IPFSClient => {

const jwt = process.env.NEXT_PUBLIC_PINATA_JWT;
const readGateway = process.env.NEXT_PUBLIC_IPFS_READ_GATEWAY;
const writeGateway = process.env.NEXT_PUBLIC_IPFS_WRITE_GATEWAY;
const jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI1ZTlmNjIxNi0xMDMwLTQzZjktYWUxYi1kZTc2NTExNGUyNjIiLCJlbWFpbCI6InJjZXNhckB1ZWVzLmVkdS5lYyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJwaW5fcG9saWN5Ijp7InJlZ2lvbnMiOlt7ImlkIjoiRlJBMSIsImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxfSx7ImlkIjoiTllDMSIsImRlc2lyZWRSZXBsaWNhdGlvbkNvdW50IjoxfV0sInZlcnNpb24iOjF9LCJtZmFfZW5hYmxlZCI6ZmFsc2UsInN0YXR1cyI6IkFDVElWRSJ9LCJhdXRoZW50aWNhdGlvblR5cGUiOiJzY29wZWRLZXkiLCJzY29wZWRLZXlLZXkiOiI2NDEzNjk5N2E2MDhiMmJmOTk1NSIsInNjb3BlZEtleVNlY3JldCI6Ijg0NTc1MzNhZTk3ODY5YTZiYzBjNGVkOTMxOTVkZjUwY2RkOTk4NTZiMzI0MmQ2NGFlMGMwMjI5ZWUyNjkyYmMiLCJpYXQiOjE3MDM3MTk5Mjh9.qo-r-yjF8yQ5QhhjsXG10zYdgoezC8okPwpKB13oE9c";
const readGateway = "amber-major-owl-227.mypinata.cloud";
const writeGateway = "https://api.pinata.cloud/";

if (!jwt || !readGateway || !writeGateway) {
throw new Error("Missing IPFS configuration");
Expand Down
16 changes: 10 additions & 6 deletions src/services/wagmi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ import { getDefaultWallets } from "@rainbow-me/rainbowkit";
import { configureChains, createConfig } from "wagmi";
import {
arbitrum,
arbitrumSepolia,
base,
celo,
goerli,
mainnet,
optimism,
polygon
polygon,
arbitrumGoerli,
} from "wagmi/chains";
import { publicProvider } from "wagmi/providers/public";

Expand All @@ -21,13 +23,15 @@ dotenv.config();

const stagingChains = [
// celoAlfajores,
goerli,
//goerli,
// sepolia,
// polygonMumbai,
// arbitrumGoerli,
arbitrumSepolia,
arbitrumGoerli
];

const productionChains = [arbitrum, base, celo, mainnet, polygon, optimism];
const productionChains = [arbitrumGoerli];

const availableChains =
process.env.NEXT_PUBLIC_ENVIRONMENT === "dev"
Expand All @@ -40,19 +44,19 @@ const { chains, publicClient } = configureChains(
alchemyProvider({
apiKey:
(process.env.ALCHEMY_ID as string) ||
"ajWJk5YwtfTZ5vCAhMg8I8L61XFhyJpa",
"Ws39Z-twSPfg7p8ubLkjKXPARyfsUGBl",
}),
infuraProvider({
apiKey:
(process.env.INFURA_ID as string) || "ae484befdd004b64bfe2059d3526a138",
(process.env.INFURA_ID as string) || "ae7716bbd9e540efb367c0694f9c4667",
}),
publicProvider(),
],
);

const { connectors } = getDefaultWallets({
appName: "Micro Grants",
projectId: (process.env.PROJECT_ID as string) || "YOUR_PROJECT_ID",
projectId: (process.env.PROJECT_ID as string) || "950dbdf6f1d331fbc81e384788249b0b",
chains,
});

Expand Down
2 changes: 1 addition & 1 deletion src/utils/query.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { gql } from "graphql-request";

export const graphqlEndpoint = process.env.NEXT_PUBLIC_GRAPHQL_URL || "";
export const graphqlEndpoint = process.env.NEXT_PUBLIC_GRAPHQL_URL || "https://alloscan.spec.dev/graphql";

export const checkIfRecipientIsIndexedQuery = gql`
query checkIfRecipientIsIndexedQuery(
Expand Down
36 changes: 30 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz#d2a39395c587e092d77cbbc80acf956a54f38bf7"
integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q==

"@allo-team/allo-v2-sdk@^1.0.15":
version "1.0.15"
resolved "https://registry.yarnpkg.com/@allo-team/allo-v2-sdk/-/allo-v2-sdk-1.0.15.tgz#018fdae88cb21723afdd8b5f0d311b3694108044"
integrity sha512-inAQj0sfk/648KxKqIybIsE6H9h/beVVnNeXXaYuPOWTzSGPnKMz1YZcSikNpt9MdvifSxu6nmg+Q4/vhbSRIw==
"@allo-team/allo-v2-sdk@^1.0.33":
version "1.0.34"
resolved "https://registry.yarnpkg.com/@allo-team/allo-v2-sdk/-/allo-v2-sdk-1.0.34.tgz#93f90fce01580a0be1011ce1ba33e60742c46612"
integrity sha512-3rRRZQqyGsii5bro2JkshfVq38JQ1NfXx7naDu6ggI0uu2ssPtNDZYqLhFW3+FYjw8+RgVP06iZAd+3ol2gOfQ==
dependencies:
dotenv "^16.3.1"
events "^3.3.0"
viem "^1.19.0"
viem "^1.19.9"

"@alloc/quick-lru@^5.2.0":
version "5.2.0"
Expand Down Expand Up @@ -2772,6 +2772,11 @@ graphql-request@^6.1.0:
"@graphql-typed-document-node/core" "^3.2.0"
cross-fetch "^3.1.5"

graphql@^16.8.1:
version "16.8.1"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07"
integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==

h3@^1.8.1, h3@^1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/h3/-/h3-1.8.2.tgz#69ea8ca0285c1bb268cd08b9a7017e02939f88b7"
Expand Down Expand Up @@ -4604,6 +4609,11 @@ react-hook-form@^7.48.2:
resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.48.2.tgz#01150354d2be61412ff56a030b62a119283b9935"
integrity sha512-H0T2InFQb1hX7qKtDIZmvpU1Xfn/bdahWBN1fH19gSe4bBEqTfmlr7H3XWTaVtiK4/tpPaI1F3355GPMZYge+A==

react-icons@^4.12.0:
version "4.12.0"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.12.0.tgz#54806159a966961bfd5cdb26e492f4dafd6a8d78"
integrity sha512-IBaDuHiShdZqmfc/TwHu6+d6k2ltNCf3AszxNmjJc1KUfXdEeRJOKyNvLmAHaarhzGmTSVygNdyu8/opXv2gaw==

react-image-crop@^10.1.8:
version "10.1.8"
resolved "https://registry.yarnpkg.com/react-image-crop/-/react-image-crop-10.1.8.tgz#6f7b33d069f6cfb887e66faee16a9fb2e6d31137"
Expand Down Expand Up @@ -5600,7 +5610,7 @@ vfile@^6.0.0:
unist-util-stringify-position "^4.0.0"
vfile-message "^4.0.0"

viem@^1.0.0, viem@^1.19.0, viem@^1.19.1:
viem@^1.0.0:
version "1.19.3"
resolved "https://registry.yarnpkg.com/viem/-/viem-1.19.3.tgz#896443d4f68005d68b9a1b5b61370ceb7bdf913b"
integrity sha512-SymIbCO0nIq2ucna8R3XV4f/lEshKGLuhYU2f6O+OAbmE2ugBxBKx2axMKQrQML87nE0jb2qqqtRJka5SO/7MA==
Expand All @@ -5614,6 +5624,20 @@ viem@^1.0.0, viem@^1.19.0, viem@^1.19.1:
isows "1.0.3"
ws "8.13.0"

viem@^1.19.11, viem@^1.19.9:
version "1.21.4"
resolved "https://registry.yarnpkg.com/viem/-/viem-1.21.4.tgz#883760e9222540a5a7e0339809202b45fe6a842d"
integrity sha512-BNVYdSaUjeS2zKQgPs+49e5JKocfo60Ib2yiXOWBT6LuVxY1I/6fFX3waEtpXvL1Xn4qu+BVitVtMh9lyThyhQ==
dependencies:
"@adraffy/ens-normalize" "1.10.0"
"@noble/curves" "1.2.0"
"@noble/hashes" "1.3.2"
"@scure/bip32" "1.3.2"
"@scure/bip39" "1.2.1"
abitype "0.9.8"
isows "1.0.3"
ws "8.13.0"

wagmi@^1.4.6:
version "1.4.7"
resolved "https://registry.yarnpkg.com/wagmi/-/wagmi-1.4.7.tgz#4236007e3d01359c4281cce34b7884ddcae3fa02"
Expand Down