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 client" | |
// contexts/MainContext.tsx | |
import React, { createContext, use, useContext, useEffect, useState } from "react" | |
import { useParams, usePathname, useSearchParams } from "next/navigation" | |
import { useThreadDetail } from "@/lib_v2/frontend/provider/hooks/use-thread-detail" | |
import { useThreads } from "@/lib_v2/frontend/provider/hooks/use-threads" | |
import { useAiAction } from "../hooks/use-ai-action" | |
import { useThreadActions } from "../hooks/use-thread-ai-action" |
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
import { client } from "@/trigger" | |
import { eventTrigger } from "@trigger.dev/sdk" | |
import { OpenAI } from "@trigger.dev/openai" | |
import { Supabase } from "@trigger.dev/supabase" | |
import { z } from "zod" | |
import _ from "lodash" | |
import { write } from "@/lib/neo4j" |
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
import { client } from "@/trigger" | |
import { eventTrigger } from "@trigger.dev/sdk" | |
import { SupabaseManagement, Supabase } from "@trigger.dev/supabase" | |
import { z } from "zod" | |
import _ from "lodash" | |
const supabase = new Supabase({ | |
id: "supabase", | |
supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL!, | |
supabaseKey: process.env.SUPABASE_SERVICE_ROLE_KEY!, |
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 client" | |
import * as React from "react" | |
import { useRouter } from "next/navigation" | |
import { zodResolver } from "@hookform/resolvers/zod" | |
import { User } from "@/types/main" | |
import { useForm } from "react-hook-form" | |
import * as z from "zod" | |
import { cn } from "@/lib/utils" |
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
import type { NextApiRequest, NextApiResponse } from "next" | |
import NextAuth from "next-auth" | |
import GitHubProvider from "next-auth/providers/github"; | |
import DiscordProvider from "next-auth/providers/discord" | |
import { env } from "@/env.mjs"; | |
import { syncDiscord } from "@/app/discord-action" | |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"$metadata": { | |
"uris": { | |
"jsonLdContext": "https://raw.githubusercontent.com/YourGithubAccount/your-repo/main/credential-schema/missio-data.jsonld", | |
"jsonSchema": "https://raw.githubusercontent.com/YourGithubAccount/your-repo/main/credential-schema/missio-data.json" | |
} | |
}, | |
"required": [ |
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
/* Components */ | |
const term = props.searchTerm ? props.searchTerm + "*" : "*"; | |
const bounties = fetch( | |
`https://bafybeie6k6htg2ft626s4n3t6gnwcf3nlmka4tlkluphdrxx2zqs2looem.ipfs.w3s.link/web3storage.json`, | |
{ | |
method: "POST", | |
headers: { | |
Accept: "application/json", | |
"Content-Type": "application/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
[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "from", | |
"type": "address" | |
}, |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC20/utils/TokenTimelock.sol"; | |
contract SimpleTokenLock { | |
// TokenLock List | |
TokenTimelock[] public list_of_timelocks; |