SYMBOL INDEX (143 symbols across 58 files) FILE: chatgpt-plugin/next.config.js method rewrites (line 3) | async rewrites() { FILE: chatgpt-plugin/src/app/layout.tsx function RootLayout (line 13) | function RootLayout({ children }: { children: React.ReactNode }) { FILE: chatgpt-plugin/src/app/page.tsx function Home (line 10) | function Home() { FILE: chatgpt-plugin/src/lib/address.ts type WalletNames (line 12) | interface WalletNames { function resolveAddress (line 79) | async function resolveAddress(address: string): Promise { function resolveToken (line 105) | async function resolveToken(tokenName: string): Promise { FILE: chatgpt-plugin/src/lib/features.tsx type Endpoint (line 3) | type Endpoint = { FILE: chatgpt-plugin/src/lib/helloMoon/index.ts constant VALID_OPERATORS (line 1) | const VALID_OPERATORS = ["=", "!=", ">", "<", ">="]; type Comparison (line 2) | type Comparison = function buildComparison (line 9) | function buildComparison( function cleanSwapPair (line 38) | function cleanSwapPair(pair: string) { FILE: chatgpt-plugin/src/lib/hyperspace/account.ts function loadHyperspaceProgram (line 16) | async function loadHyperspaceProgram( FILE: chatgpt-plugin/src/lib/hyperspace/constants.ts constant FEE_PAYER (line 3) | const FEE_PAYER = "fee_payer"; constant HYPERSPACE (line 4) | const HYPERSPACE = "hyperspace"; constant HYPERSPACE_ID (line 6) | const HYPERSPACE_ID = new PublicKey( constant HYPERSPACE_MARKETPLACE_INSTANCE_ID_STRING (line 10) | const HYPERSPACE_MARKETPLACE_INSTANCE_ID_STRING = constant HYPERSPACE_MARKETPLACE_INSTANCE (line 12) | const HYPERSPACE_MARKETPLACE_INSTANCE = new PublicKey( FILE: chatgpt-plugin/src/lib/hyperspace/idl/hyperspace.ts type Hyperspace (line 1) | type Hyperspace = { FILE: chatgpt-plugin/src/lib/middleware.ts type Options (line 4) | type Options = { function makeApiPostRequest (line 10) | function makeApiPostRequest(handler: NextApiHandler, options?: Options):... FILE: chatgpt-plugin/src/lib/on-chain-metadata/index.ts type SolanaPayTx (line 4) | type SolanaPayTx = { class FakeWallet (line 12) | class FakeWallet { method constructor (line 14) | constructor(publicKey: anchor.web3.PublicKey) { method signTransaction (line 18) | async signTransaction< method signAllTransactions (line 24) | async signAllTransactions< function createWriteNFTMetadataTx (line 31) | async function createWriteNFTMetadataTx( function createCloseNFTMetadataTx (line 91) | async function createCloseNFTMetadataTx( FILE: chatgpt-plugin/src/pages/api/constants.ts constant APP (line 7) | const APP = express(); constant PORT (line 8) | const PORT = process.env.PORT || 3333; constant SOLANA_PAY_LABEL (line 14) | const SOLANA_PAY_LABEL = "Solana Labs ChatGPT Plugin"; constant TRANSACTION_ENDPOINTS (line 15) | const TRANSACTION_ENDPOINTS = [ type TransactionEndpoints (line 20) | type TransactionEndpoints = (typeof TRANSACTION_ENDPOINTS)[number]; constant TX_DESCRIPTIONS (line 21) | const TX_DESCRIPTIONS: Record = { constant HELIUS_URL (line 30) | let HELIUS_URL: string; constant SELF_URL (line 31) | let SELF_URL: string; constant HYPERSPACE_CLIENT (line 32) | let HYPERSPACE_CLIENT: HyperspaceClient; constant HELLOMOON_CLIENT (line 33) | let HELLOMOON_CLIENT: RestClient; constant CONNECTION (line 34) | let CONNECTION: Connection; function index (line 36) | function index() { FILE: chatgpt-plugin/src/pages/api/handlers/getAccountInfo/index.ts function stringifyAnchorObject (line 15) | function stringifyAnchorObject(obj: any): any { function getParsedAccountInfo (line 44) | async function getParsedAccountInfo(connection: Connection, accountAddre... function handler (line 88) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getAssetsByOwner/index.ts function handler (line 35) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getBalance/index.ts function handler (line 7) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getCollectionsByFloorPrice/index.ts type CollectionStats (line 7) | type CollectionStats = { function hyperspaceGetCollectionsByFloorPrice (line 18) | async function hyperspaceGetCollectionsByFloorPrice( function handler (line 85) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getCollectionsByName/index.ts function getCollectionsByName (line 6) | async function getCollectionsByName(req: NextApiRequest, res: NextApiRes... FILE: chatgpt-plugin/src/pages/api/handlers/getListedCollectionNFTs/index.ts type NFTListing (line 6) | type NFTListing = { type ListedNFTResponse (line 12) | type ListedNFTResponse = { function hyperspaceGetListedCollectionNFTs (line 17) | async function hyperspaceGetListedCollectionNFTs( function handler (line 74) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getSignaturesForAddress/index.ts function handler (line 7) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getTokenAccounts/index.ts type TokenInfo (line 7) | type TokenInfo = { function handler (line 12) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getTotalValue/index.ts function getTokenTotal (line 10) | async function getTokenTotal(address: string) { function getNFTTotal (line 75) | async function getNFTTotal(address: string) { function handler (line 103) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/getTransaction/index.ts type IxArgs (line 32) | type IxArgs = Record; type Instruction (line 34) | type Instruction = { constant PROGRAM_CACHE (line 41) | let PROGRAM_CACHE = new Map(); type ParsedTxResponse (line 43) | type ParsedTxResponse = { function getAnchorProgram (line 60) | async function getAnchorProgram(programId: string) { function parseAnchorIxData (line 78) | async function parseAnchorIxData(programId: anchor.web3.PublicKey, ixDat... function parseAnchorIxAccounts (line 87) | async function parseAnchorIxAccounts( function snakeToTitleCase (line 124) | function snakeToTitleCase(str: string): string { function parseAnchorIx (line 129) | async function parseAnchorIx(ix: Instruction) { function parseIx (line 151) | async function parseIx(ix: TransactionInstruction, depth: number): Promi... function parseTokenInstruction (line 273) | async function parseTokenInstruction(ix: TransactionInstruction): Promis... function parseTokenChanges (line 321) | async function parseTokenChanges( function parseSolChanges (line 352) | function parseSolChanges( function parseLogs (line 372) | function parseLogs(logs: string[]): { programId: string; depth: number }... function handler (line 386) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/page/[methodName].ts function createOpenGraphMetaPage (line 8) | function createOpenGraphMetaPage( function handler (line 24) | async function handler( FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/qr/[methodName].ts function createQRCodePng (line 14) | async function createQRCodePng( function handler (line 41) | async function handler( FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createBurnAsset.ts function createBurnAsset (line 15) | async function createBurnAsset(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createBuyNFT.ts function hyperspaceCreateBuyTx (line 9) | async function hyperspaceCreateBuyTx(buyer: string, token: string, price... function createBuyNFT (line 25) | async function createBuyNFT(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createCloseNFTMetadata.ts function createCloseNFTMetadata (line 8) | async function createCloseNFTMetadata(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createListNFT.ts constant AUTH_PROGRAM_ID (line 42) | const AUTH_PROGRAM_ID = new PublicKey("auth9SigNpDKz4sJJ1DfCTuZrZNSAgh9s... function createTradeStateInstruction (line 93) | async function createTradeStateInstruction( function helper (line 134) | async function helper( function hyperspaceCreateListTx (line 247) | async function hyperspaceCreateListTx(seller: string, token: string, pri... function createListNFT (line 284) | async function createListNFT(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createMerkleTree.ts type MerkleTreeArgs (line 19) | interface MerkleTreeArgs { function createTree (line 25) | async function createTree(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createMintCNFT.ts function createMintCNFT (line 23) | async function createMintCNFT(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createMintNFT.ts function createMintNFT (line 9) | async function createMintNFT(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createSetProfilePic.ts function createSetProfilePic (line 10) | async function createSetProfilePic(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createTransferAsset.ts function createTransferAsset (line 16) | async function createTransferAsset(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createTransferSol.ts function createTransferSol (line 8) | async function createTransferSol(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createTransferToken.ts function createTransferToken (line 13) | async function createTransferToken(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/createWriteNFTMetadata.ts function createWriteNFTMetadata (line 8) | async function createWriteNFTMetadata(req: NextApiRequest) { FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/sign/index.ts type TransactionHandler (line 4) | type TransactionHandler = (req: NextApiRequest) => Promise<{ transaction... function makeRespondToSolanaPayGet (line 6) | function makeRespondToSolanaPayGet(apiHandler: NextApiHandler) { function makeRespondToSolanaPayPost (line 19) | function makeRespondToSolanaPayPost(handler: TransactionHandler, options... FILE: chatgpt-plugin/src/pages/api/handlers/solana-pay/utils/helpers.ts function getBubblegumAuthorityPDA (line 7) | async function getBubblegumAuthorityPDA(merkleRollPubKey: PublicKey) { function getNonceCount (line 15) | async function getNonceCount(connection: Connection, tree: PublicKey): P... function bufferToArray (line 20) | function bufferToArray(buffer: Buffer): number[] { function getVoucherPDA (line 28) | async function getVoucherPDA(tree: PublicKey, leafIndex: number): Promis... function getMetadata (line 40) | async function getMetadata(mint: PublicKey) { function getMasterEdition (line 49) | async function getMasterEdition(mint: PublicKey) { function getAsset (line 63) | async function getAsset(assetId: any, rpcUrl: any): Promise { function getAssetProof (line 77) | async function getAssetProof(assetId: any, rpcUrl: any): Promise { FILE: chatgpt-plugin/src/pages/api/handlers/tokenName/index.ts function handler (line 6) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/tx-link/[txSlug].ts function handler (line 7) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/handlers/walletName/index.ts function handler (line 9) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/defi/programNewUsers.ts function handler (line 8) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/defi/programOverlap.ts function handler (line 8) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/defi/tokenStats.ts constant GRANULARITY (line 8) | const GRANULARITY = ["one_day", "one_week", "one_month", "thirty_min", "... function handler (line 9) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/defi/tokenUsers.ts function handler (line 8) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/jupiter/historical.ts constant VALID_GRANULARITY (line 8) | const VALID_GRANULARITY = ["DAILY", "WEEKLY", "MONTHLY"]; function handler (line 9) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/jupiter/pairs.ts function handler (line 9) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/jupiter/summary.ts function handler (line 7) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/helloMoon/jupiter/swaps.ts constant VALID_CATEGORY (line 9) | const VALID_CATEGORY = ["per amm", "whole market", "jupiter only"]; constant CATEGORY_MAP (line 11) | const CATEGORY_MAP: { [key: string]: string } = { function handler (line 17) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/metaplex/getCNFTRent/index.ts function isValidDepthSizePair (line 12) | function isValidDepthSizePair(maxDepth: number, maxBufferSize: number): ... function isEqualDepthSizePair (line 20) | function isEqualDepthSizePair(pair1: DepthSizePair, pair2: DepthSizePair... function handler (line 24) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/metaplex/getPublicTree/index.ts function handler (line 11) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/solflare-pfp/getProfilePic.ts function handler (line 7) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: chatgpt-plugin/src/pages/api/tiplink/makeLink.ts function handler (line 5) | async function handler(req: NextApiRequest, res: NextApiResponse) { FILE: scripts/createNFTCollection.ts constant ASSETS_DIR (line 32) | const ASSETS_DIR = "../chatgpt-plugin/public/assets/"; function createNFTCollection (line 33) | async function createNFTCollection(payer: Keypair, metaplex: Metaplex) { FILE: scripts/createTree.ts type MerkleTreeArgs (line 23) | interface MerkleTreeArgs { function createTree (line 29) | async function createTree( FILE: scripts/helper.ts constant DEFAULT_KEY_DIR_NAME (line 11) | const DEFAULT_KEY_DIR_NAME = ".local_keys"; constant DEFAULT_PUBLIC_KEY_FILE (line 12) | const DEFAULT_PUBLIC_KEY_FILE = "keys.json"; constant DEFAULT_NONCE_FILE (line 13) | const DEFAULT_NONCE_FILE = "nonce.json"; function loadPublicKeysFromFile (line 18) | function loadPublicKeysFromFile( function savePublicKeyToFile (line 45) | function savePublicKeyToFile( function loadNonceFromFile (line 83) | function loadNonceFromFile( function saveNonceToFile (line 110) | function saveNonceToFile( FILE: scripts/send.ts function simulate (line 6) | async function simulate(base64Transaction: string, signers: Signer[]) { function parse (line 13) | function parse(): { function main (line 34) | async function main() { FILE: scripts/uploadMetadata.ts constant ASSETS_DIR (line 10) | const ASSETS_DIR = "../chatgpt-plugin/public/assets/"; function uploadMetadata (line 11) | async function uploadMetadata(metaplex: Metaplex, nonce: number) {