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
| /** | |
| * X402 MCP Integration | |
| * | |
| * Based on: | |
| * - Coinbase's x402 (Apache 2.0): https://github.com/coinbase/x402 | |
| * - @ethanniser and his work at https://github.com/ethanniser/x402-mcp | |
| */ | |
| import type { | |
| McpServer, |
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 { z } from "zod"; | |
| import { | |
| defineDAINService, | |
| ToolConfig, | |
| ServiceConfig, | |
| ToolboxConfig, | |
| } from "@dainprotocol/service-sdk"; | |
| import labsV2 from "@api/labs-v2"; |
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 * as anchor from '@coral-xyz/anchor'; | |
| import { Program } from '@coral-xyz/anchor'; | |
| import { Keypair } from '@solana/web3.js'; | |
| import { Journal } from '../target/types/journal'; | |
| describe('journal', () => { | |
| // Configure the client to use the local cluster. | |
| const provider = anchor.AnchorProvider.env(); | |
| anchor.setProvider(provider); | |
| const payer = provider.wallet as anchor.Wallet; |
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 { | |
| SlashCommandBuilder, | |
| EmbedBuilder, | |
| AttachmentBuilder, | |
| ButtonBuilder, | |
| ButtonStyle, | |
| ActionRowBuilder, | |
| ComponentAssertions, | |
| } = require("discord.js"); | |
| const fs = require("fs"); |
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 { | |
| ActionPostResponse, | |
| createPostResponse, | |
| ActionGetResponse, | |
| ActionPostRequest, | |
| createActionHeaders, | |
| } from '@solana/actions'; | |
| import { | |
| clusterApiUrl, | |
| Connection, |