From eb5ee7e2d84f8d0f82acbf862093b5783617c0e3 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:22:28 -0800 Subject: [PATCH 01/17] add solana-relay discovery plugin --- .../pedalboard/apps/solana-relay/.eslintrc.js | 4 + .../pedalboard/apps/solana-relay/package.json | 51 +++ .../apps/solana-relay/src/config.ts | 63 +++ .../apps/solana-relay/src/errors.ts | 23 + .../pedalboard/apps/solana-relay/src/index.ts | 28 ++ .../apps/solana-relay/src/logger.ts | 8 + .../src/middleware/errorHandler.ts | 39 ++ .../solana-relay/src/middleware/locals.ts | 9 + .../solana-relay/src/middleware/logging.ts | 40 ++ .../src/middleware/signerRecovery.ts | 26 ++ .../pedalboard/apps/solana-relay/src/redis.ts | 41 ++ .../solana-relay/src/routes/cache/cache.ts | 27 ++ .../relay/InvalidRelayInstructionError.ts | 6 + .../relay/assertRelayAllowedInstructions.ts | 399 ++++++++++++++++++ .../solana-relay/src/routes/relay/relay.ts | 86 ++++ .../apps/solana-relay/tsconfig.json | 11 + 16 files changed, 861 insertions(+) create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/.eslintrc.js create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/errors.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/logger.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/InvalidRelayInstructionError.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/tsconfig.json diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/.eslintrc.js b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/.eslintrc.js new file mode 100644 index 00000000000..2308ff96843 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/.eslintrc.js @@ -0,0 +1,4 @@ +module.exports = { + root: true, + extends: ["custom-server"], +}; diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json new file mode 100644 index 00000000000..593e9787d41 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json @@ -0,0 +1,51 @@ +{ + "name": "@pedalboard/solana-relay", + "version": "0.0.0", + "private": true, + "scripts": { + "build": "tsc", + "watch": "tsc -w", + "clean": "rm -rf dist", + "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", + "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", + "start": "node ./dist/index.js", + "test": "jest --detectOpenHandles" + }, + "jest": { + "preset": "jest-presets/jest/node" + }, + "dependencies": { + "@audius/spl": "*", + "@pedalboard/basekit": "*", + "@pedalboard/logger": "*", + "@pedalboard/storage": "*", + "@solana/web3.js": "1.78.4", + "body-parser": "1.19.0", + "bs58": "4.0.1", + "cors": "2.8.5", + "eth-sig-util": "3.0.1", + "express": "4.17.1", + "morgan": "1.10.0", + "pino": "8.16.1", + "redis": "4.6.11" + }, + "devDependencies": { + "@types/body-parser": "1.19.0", + "@types/cors": "2.8.10", + "@types/express": "4.17.12", + "@types/jest": "26.0.22", + "@types/morgan": "1.9.2", + "@types/node": "15.12.2", + "@types/supertest": "2.0.11", + "esbuild": "0.14.38", + "esbuild-register": "3.3.2", + "eslint": "7.32.0", + "eslint-config-custom-server": "*", + "jest": "26.6.3", + "jest-presets": "*", + "nodemon": "2.0.15", + "supertest": "6.1.3", + "tsconfig": "*", + "typescript": "4.5.3" + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts new file mode 100644 index 00000000000..91e2068196b --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts @@ -0,0 +1,63 @@ +import dotenv from 'dotenv' +import { cleanEnv, str, num, json } from 'envalid' +import { logger } from './logger' +import { Keypair } from '@solana/web3.js' + +// reads .env file based on environment +const readDotEnv = () => { + const environment = process.env.audius_discprov_env || 'dev' + const dotenvConfig = (filename: string) => + dotenv.config({ path: `${filename}.env` }) + logger.info(`running on ${environment} network`) + dotenvConfig(environment) +} + +type FeePayerWallet = { + privateKey: number[] +} + +const readConfig = () => { + readDotEnv() + + // validate env + const env = cleanEnv(process.env, { + audius_solana_endpoint: str({ + default: 'http://solana-test-validator:8899' + }), + audius_db_url: str({ + default: + 'postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_1' + }), + audius_solana_waudio_mint: str({ default: '' }), + audius_solana_usdc_mint: str({ default: '' }), + audius_solana_user_bank_program_address: str({ default: '' }), + audius_solana_rewards_manager_program_address: str({ default: '' }), + audius_solana_rewards_manager_account: str({ default: '' }), + audius_solana_fee_payer_wallets: json({ default: [] }), + solana_relay_server_host: str({ default: '0.0.0.0' }), + solana_relay_server_port: num({ default: 6002 }), + AUDIUS_REDIS_URL: str({ default: 'redis://identity-service-redis:6379/00' }) + }) + const solanaFeePayerWalletsParsed = env.audius_solana_fee_payer_wallets + let solanaFeePayerWallets: Keypair[] = [] + if (Array.isArray(solanaFeePayerWalletsParsed)) { + solanaFeePayerWallets = solanaFeePayerWalletsParsed.map((wallet) => + Keypair.fromSecretKey(Uint8Array.from(wallet.privateKey)) + ) + } + return { + discoveryDbConnectionString: env.audius_db_url, + serverHost: env.solana_relay_server_host, + serverPort: env.solana_relay_server_port, + redisUrl: env.AUDIUS_REDIS_URL, + solanaEndpoint: env.audius_solana_endpoint, + rewardsManagerProgramId: env.audius_solana_rewards_manager_program_address, + rewardsManagerAccountAddress: env.audius_solana_rewards_manager_account, + claimableTokenProgramId: env.audius_solana_user_bank_program_address, + usdcMintAddress: env.audius_solana_usdc_mint, + waudioMintAddress: env.audius_solana_waudio_mint, + solanaFeePayerWallets + } +} + +export const config = readConfig() diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/errors.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/errors.ts new file mode 100644 index 00000000000..45eb15df4b7 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/errors.ts @@ -0,0 +1,23 @@ +export class ResponseError extends Error { + status = 500 +} + +export class InternalServerError extends ResponseError { + name = 'Internal Server Error' + status = 500 +} + +export class BadRequestError extends ResponseError { + name = 'Bad Request' + status = 400 +} + +export class UnauthorizedError extends ResponseError { + name = 'Unauthorized' + status = 401 +} + +export class ForbiddenError extends ResponseError { + name = 'Forbidden' + status = 403 +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts new file mode 100644 index 00000000000..077ad46c601 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts @@ -0,0 +1,28 @@ +import express from 'express' +import { json } from 'body-parser' +import cors from 'cors' +import { config } from './config' +import { logger } from './logger' +import { + incomingRequestLogger, + outgoingRequestLogger +} from './middleware/logging' +import { relay } from './routes/relay/relay' +import { errorHandlerMiddleware } from './middleware/errorHandler' +import { signerRecoveryMiddleware } from './middleware/signerRecovery' + +const main = async () => { + const { serverHost, serverPort } = config + const app = express() + app.use(json()) + app.use(cors()) + app.use(signerRecoveryMiddleware) + app.post('/solana/relay', incomingRequestLogger, relay, outgoingRequestLogger) + app.use(errorHandlerMiddleware) + + app.listen(serverPort, serverHost, () => { + logger.info({ serverHost, serverPort }, 'server initialized') + }) +} + +main().catch(logger.error.bind(logger)) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/logger.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/logger.ts new file mode 100644 index 00000000000..e40acaec139 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/logger.ts @@ -0,0 +1,8 @@ +import pino, { stdTimeFunctions } from 'pino' + +// set config for logger here +export const logger = pino({ + name: `solana-relay`, + base: undefined, + timestamp: stdTimeFunctions.isoTime +}) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts new file mode 100644 index 00000000000..5da14bce43a --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts @@ -0,0 +1,39 @@ +import { NextFunction, Request, Response } from 'express' +import { ResponseError } from '../errors' +import { logger } from '../logger' + +const getErrorMessage = (error: unknown) => + error instanceof Error + ? error.message !== '' + ? error.message + : error.name + : 'Internal Server Error' + +export const errorHandlerMiddleware = ( + err: unknown, + req: Request, + res: Response, + _next: NextFunction +) => { + if (err instanceof ResponseError) { + res.status(err.status).send({ error: getErrorMessage(err) }) + } else { + res.status(500).send({ error: getErrorMessage(err) }) + } + // in milliseconds + const responseTime = new Date().getTime() - res.locals.ctx.startTime.getTime() + const { route, method } = req + const { locals: ctx } = res + const statusCode = res.statusCode + logger.info( + { + route, + method, + ctx, + responseTime, + statusCode, + error: getErrorMessage(err) + }, + 'request completed' + ) +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts new file mode 100644 index 00000000000..9995cefa3fd --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts @@ -0,0 +1,9 @@ +import { Users } from '@pedalboard/storage' + +declare global { + namespace Express { + interface Locals { + signer?: Users + } + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts new file mode 100644 index 00000000000..0a4429faaf8 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts @@ -0,0 +1,40 @@ +import { NextFunction, Request, Response } from 'express' +import { v4 as uuidv4 } from 'uuid' +import { logger } from '../logger' + +export const incomingRequestLogger = ( + request: Request, + response: Response, + next: NextFunction +) => { + const startTime = new Date(new Date().getTime()) + const requestId = uuidv4() + const oldCtx = response.locals.ctx + response.locals.ctx = { ...oldCtx, startTime, requestId } + + const { route, method } = request + logger.info({ requestId, route, method }, 'incoming request') + next() +} + +export const outgoingLog = (request: Request, response: Response) => { + // in milliseconds + const responseTime = + new Date().getTime() - response.locals.ctx.startTime.getTime() + const { route, method } = request + const { locals: ctx } = response + const statusCode = response.statusCode + logger.info( + { route, method, ctx, responseTime, statusCode }, + 'request completed' + ) +} + +export const outgoingRequestLogger = ( + request: Request, + response: Response, + next: NextFunction +) => { + outgoingLog(request, response) + next() +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts new file mode 100644 index 00000000000..2e72dfce3f6 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts @@ -0,0 +1,26 @@ +import { NextFunction, Request, Response } from 'express' +import { recoverPersonalSignature } from 'eth-sig-util' +import { Table, Users } from '@pedalboard/storage' +import { initializeDiscoveryDb } from '@pedalboard/basekit' +import { config } from '../config' + +const discoveryDb = initializeDiscoveryDb(config.discoveryDbConnectionString) + +export const signerRecoveryMiddleware = async ( + req: Request, + res: Response, + next: NextFunction +) => { + const data = JSON.stringify(req.body) + const sig = req.get('Signature') + if (!sig) { + return next() + } + const walletAddress = recoverPersonalSignature({ data, sig }) + const user = await discoveryDb(Table.Users) + .where('wallet', '=', walletAddress) + .andWhere('is_current', '=', true) + .first() + res.locals.signer = user + next() +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts new file mode 100644 index 00000000000..04eed28969b --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts @@ -0,0 +1,41 @@ +import { createClient, RedisClientType } from 'redis' +import { config } from './config' + +let redisClient: RedisClientType +let isReady: boolean + +export async function getRedisConnection() { + if (!isReady) { + redisClient = createClient({ url: config.redisUrl }) + redisClient.on('ready', () => { + isReady = true + }) + await redisClient.connect() + } + return redisClient +} + +export const cacheTransaction = async ( + signature: string, + transaction: string +) => { + const redis = await getRedisConnection() + const key = `solana:transaction:${signature}` + await redis.set(key, transaction) + await redis.expire(key, 30) +} + +export const getCachedDiscoveryNodes = async () => { + const redis = await getRedisConnection() + const key = 'all-discovery-nodes' + const json = await redis.get(key) + try { + const parsed = json === null ? [] : JSON.parse(json) + if (!Array.isArray(parsed)) { + return [] + } + return parsed.filter((endpoint) => typeof endpoint === 'string') as string[] + } catch { + return [] + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts new file mode 100644 index 00000000000..c54b810f745 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts @@ -0,0 +1,27 @@ +import { NextFunction, Request, Response } from 'express' +import { BadRequestError } from '../../errors' +import { cacheTransaction } from '../../redis' +import { logger } from '../../logger' + +type RequestBody = { + signature: string + transaction: string +} + +export const cache = async ( + req: Request, + res: Response, + next: NextFunction +) => { + try { + const { signature, transaction } = req.body + if (!signature || !transaction) { + throw new BadRequestError() + } + await cacheTransaction(signature, transaction) + res.status(200).send({ signature, transaction }) + logger.info(`cached transaction: ${signature}`) + } catch (e) { + next(e) + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/InvalidRelayInstructionError.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/InvalidRelayInstructionError.ts new file mode 100644 index 00000000000..ec066bee2e3 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/InvalidRelayInstructionError.ts @@ -0,0 +1,6 @@ +export class InvalidRelayInstructionError extends Error { + constructor(instructionIndex: number, message: string) { + super(`Instruction ${instructionIndex ?? '?'}: ${message}`) + this.name = 'InvalidRelayInstructionError' + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts new file mode 100644 index 00000000000..fe4a48c31bd --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts @@ -0,0 +1,399 @@ +import { + NATIVE_MINT, + ASSOCIATED_TOKEN_PROGRAM_ID, + TOKEN_PROGRAM_ID, + decodeInstruction, + isCloseAccountInstruction, + isTransferCheckedInstruction, + isSyncNativeInstruction +} from '@solana/spl-token' +import { + PublicKey, + TransactionInstruction, + Secp256k1Program, + SystemProgram, + SystemInstruction +} from '@solana/web3.js' +import { InvalidRelayInstructionError } from './InvalidRelayInstructionError' + +import { + decodeAssociatedTokenAccountInstruction, + decodeClaimableTokenInstruction, + decodeRewardManagerInstruction, + isCreateAssociatedTokenAccountIdempotentInstruction, + isCreateAssociatedTokenAccountInstruction +} from '@audius/spl' +import { config } from '../../config' +import bs58 from 'bs58' + +const MEMO_PROGRAM_ID = 'Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo' +const CLAIMABLE_TOKEN_PROGRAM_ID = config.claimableTokenProgramId +const REWARDS_MANAGER_PROGRAM_ID = config.rewardsManagerProgramId +const JUPITER_AGGREGATOR_V6_PROGRAM_ID = + 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' + +const waudioMintAddress = config.waudioMintAddress +const usdcMintAddress = config.usdcMintAddress + +const REWARD_MANAGER = config.rewardsManagerAccountAddress + +const deriveTokenAuthority = (mint: string) => + PublicKey.findProgramAddressSync( + [new PublicKey(mint).toBytes().slice(0, 32)], + new PublicKey(CLAIMABLE_TOKEN_PROGRAM_ID) + )[0] + +const claimableTokenAuthorities = { + usdc: deriveTokenAuthority(usdcMintAddress), + waudio: deriveTokenAuthority(waudioMintAddress) +} + +const deriveUserBank = async ( + ethAddress: string, + claimableTokenAuthority: PublicKey +) => { + const ethAddressArray = Uint8Array.from( + Buffer.from(ethAddress.substring(2), 'hex') + ) + return await PublicKey.createWithSeed( + claimableTokenAuthority, + bs58.encode(ethAddressArray), + TOKEN_PROGRAM_ID + ) +} + +/** + * Only allow the createTokenAccount instruction of the Associated Token + * Account program, provided it has matching close instructions. + * Close instructions are on the Token Programand are not validated here. + */ +const assertAllowedAssociatedTokenAccountProgramInstruction = ( + instructionIndex: number, + instruction: TransactionInstruction, + instructions: TransactionInstruction[] +) => { + const decodedInstruction = + decodeAssociatedTokenAccountInstruction(instruction) + if ( + isCreateAssociatedTokenAccountInstruction(decodedInstruction) || + isCreateAssociatedTokenAccountIdempotentInstruction(decodedInstruction) + ) { + const allowedMints = [NATIVE_MINT.toBase58(), usdcMintAddress] + const mintAddress = decodedInstruction.keys.mint.pubkey.toBase58() + if (!allowedMints.includes(mintAddress)) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Mint not allowed for Associated Token Account program: ${mintAddress}` + ) + } + + // Protect against feePayer drain by ensuring that there's always as + // many account close instructions as creates + const matchingCreateInstructions = instructions + .filter((instr) => instr.programId.equals(ASSOCIATED_TOKEN_PROGRAM_ID)) + .map(decodeAssociatedTokenAccountInstruction) + .filter( + (instr) => + (isCreateAssociatedTokenAccountInstruction(instr) || + isCreateAssociatedTokenAccountIdempotentInstruction(instr)) && + decodedInstruction.keys.associatedToken.pubkey.equals( + instr.keys.associatedToken.pubkey + ) && + decodedInstruction.keys.payer.pubkey.equals(instr.keys.payer.pubkey) + ) + const matchingCloseInstructions = instructions + .filter((instr) => instr.programId.equals(TOKEN_PROGRAM_ID)) + .map((instr) => decodeInstruction(instr)) + .filter( + (instr) => + isCloseAccountInstruction(instr) && + decodedInstruction.keys.associatedToken.pubkey.equals( + instr.keys.account.pubkey + ) && + decodedInstruction.keys.payer.pubkey.equals( + instr.keys.destination.pubkey + ) + ) + if ( + matchingCreateInstructions.length !== matchingCloseInstructions.length + ) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Mismatched number of create and close instructions for account: ${decodedInstruction.keys.associatedToken.pubkey.toBase58()}` + ) + } + } else { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Unsupported Associated Token Program instruction' + ) + } +} + +/** + * Allow normal transfers provided they are into userbanks, and allow + * close account instructions and sync native (to unwrap wSOL) instructions. + */ +const assertAllowedTokenProgramInstruction = async ( + instructionIndex: number, + instruction: TransactionInstruction, + wallet?: string +) => { + const decodedInstruction = decodeInstruction(instruction) + if (isTransferCheckedInstruction(decodedInstruction)) { + if (!wallet) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Transfer Checked requires authentication` + ) + } + const destination = decodedInstruction.keys.destination.pubkey + const userbank = await deriveUserBank( + wallet, + claimableTokenAuthorities['waudio'] + ) + if (!destination.equals(userbank)) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid destination account: ${destination.toBase58()}` + ) + } + } else if ( + !isCloseAccountInstruction(decodedInstruction) && + !isSyncNativeInstruction(decodedInstruction) + ) { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Unsupported Token Program instruction' + ) + } +} + +/** + * Checks that the Reward Manager account on the Reward Manager program + * matches the one in use on our deployed program. + */ +const assertAllowedRewardsManagerProgramInstruction = ( + instructionIndex: number, + instruction: TransactionInstruction +) => { + const decodedInstruction = decodeRewardManagerInstruction(instruction) + const rewardManager = decodedInstruction.keys.rewardManager.pubkey.toBase58() + if (rewardManager !== REWARD_MANAGER) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid Reward Manager Account: ${rewardManager}` + ) + } +} + +/** + * Checks that the claimable token authority matches the one in use on our + * deployed program. Optionally also check the user's social proof for transfers. + */ +const assertAllowedClaimableTokenProgramInstruction = async ( + instructionIndex: number, + instruction: TransactionInstruction, + user?: { blockchainUserId?: number; handle?: string | null } +) => { + const decodedInstruction = decodeClaimableTokenInstruction(instruction) + const authority = decodedInstruction.keys.authority.pubkey + if ( + !authority.equals(claimableTokenAuthorities['usdc']) && + !authority.equals(claimableTokenAuthorities['waudio']) + ) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid Claimable Token Authority: ${authority}` + ) + } +} + +/** + * Indexes of various accounts in a Jupiter V6 sharedAccountsRoute instruction. + * https://github.com/jup-ag/jupiter-cpi/blob/main/idl.json + */ +const JupiterSharedSwapAccountIndex = { + TOKEN_PROGRAM: 0, + PROGRAM_AUTHORITY: 1, + USER_TRANSFER_AUTHORITY: 2, + SOURCE_TOKEN_ACCOUNT: 3, + PROGRAM_SOURCE_TOKEN_ACCOUNT: 4, + PROGRAM_DESTINATION_TOKEN_ACCOUNT: 5, + DESTINATION_TOKEN_ACCOUNT: 6, + SOURCE_MINT: 7, + DESTINATION_MINT: 8, + PLATFORM_FEE_ACCOUNT: 9, + TOKEN_2022_PROGRAM: 10 +} +// Only allow swaps from USDC (for withdrawals) or SOL (for userbank purchases) +const allowedSourceMints = [NATIVE_MINT.toBase58(), usdcMintAddress] +const allowedDestinationMints = [ + NATIVE_MINT.toBase58(), + usdcMintAddress, + waudioMintAddress +] +// Only allow swaps to SOL (for withdrawals) or USDC or AUDIO (for userbank purchases) +const assertAllowedJupiterProgramInstruction = async ( + instructionIndex: number, + instruction: TransactionInstruction, + wallet?: string +) => { + if (!wallet) { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Jupiter Swap requires authentication' + ) + } + const sourceMint = + instruction.keys[ + JupiterSharedSwapAccountIndex.SOURCE_MINT + ].pubkey.toBase58() + const destinationMint = + instruction.keys[ + JupiterSharedSwapAccountIndex.DESTINATION_MINT + ].pubkey.toBase58() + const userWallet = + instruction.keys[ + JupiterSharedSwapAccountIndex.USER_TRANSFER_AUTHORITY + ].pubkey.toBase58() + + if (!allowedSourceMints.includes(sourceMint)) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid source mint: ${sourceMint}` + ) + } + + if (!allowedDestinationMints.includes(destinationMint)) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid destination mint: ${destinationMint}` + ) + } + + // Don't allow swaps on the feepayers + const feePayerAddresses = config.solanaFeePayerWallets.map((kp) => + kp.publicKey.toBase58() + ) + if (feePayerAddresses?.includes(userWallet)) { + throw new InvalidRelayInstructionError( + instructionIndex, + `Invalid transfer authority: ${userWallet}` + ) + } +} + +const assertAllowedSystemProgramInstruction = ( + instructionIndex: number, + instruction: TransactionInstruction, + walletAddress?: string, + feePayer?: string +) => { + if (!walletAddress) { + throw new InvalidRelayInstructionError( + instructionIndex, + 'System program requires authentication' + ) + } + if (!feePayer) { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Invalid fee payer' + ) + } + const decodedInstructionType = + SystemInstruction.decodeInstructionType(instruction) + if (decodedInstructionType !== 'Transfer') { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Invalid System Program Instruction' + ) + } else { + const decodedInstruction = SystemInstruction.decodeTransfer(instruction) + if (decodedInstruction.fromPubkey.toBase58() === feePayer) { + throw new InvalidRelayInstructionError( + instructionIndex, + 'Invalid fromPubkey for transfer' + ) + } + } +} + +/** + * Checks each of the instructions to make sure it's something we want to relay. + * The main goals of the checks are to ensure the feePayer isn't abused. + * Major checks include: + * - Checking the caller is interacting with our deployed versions of the programs + * - Checking the caller isn't creating token accounts that can be rent-drained + * - Checking the caller isn't interacting with non-Audius related programs + * @param instructions the instructions to check + * @param user the user, if signed in + * @param socialProofEnabled if social proof is enabled + * @throws {InvalidRelayInstructionError} if the instruction isn't supported + */ +export const assertRelayAllowedInstructions = async ( + instructions: TransactionInstruction[], + options?: { + user?: { + walletAddress?: string + blockchainUserId?: number + handle?: string | null + } + feePayer?: string + } +) => { + for (let i = 0; i < instructions.length; i++) { + const instruction = instructions[i] + switch (instruction.programId.toBase58()) { + case ASSOCIATED_TOKEN_PROGRAM_ID.toBase58(): + assertAllowedAssociatedTokenAccountProgramInstruction( + i, + instruction, + instructions + ) + break + case TOKEN_PROGRAM_ID.toBase58(): + await assertAllowedTokenProgramInstruction( + i, + instruction, + options?.user?.walletAddress + ) + break + case REWARDS_MANAGER_PROGRAM_ID: + assertAllowedRewardsManagerProgramInstruction(i, instruction) + break + case CLAIMABLE_TOKEN_PROGRAM_ID: + await assertAllowedClaimableTokenProgramInstruction( + i, + instruction, + options?.user + ) + break + case JUPITER_AGGREGATOR_V6_PROGRAM_ID: + await assertAllowedJupiterProgramInstruction( + i, + instruction, + options?.user?.walletAddress + ) + break + case SystemProgram.programId.toBase58(): + assertAllowedSystemProgramInstruction( + i, + instruction, + options?.user?.walletAddress, + options?.feePayer + ) + break + case Secp256k1Program.programId.toBase58(): + case MEMO_PROGRAM_ID: + // All instructions of these programs are allowed + break + default: + throw new InvalidRelayInstructionError( + i, + `Unknown Program: ${instruction.programId.toBase58()}` + ) + } + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts new file mode 100644 index 00000000000..908282a757d --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts @@ -0,0 +1,86 @@ +import { + Connection, + PublicKey, + TransactionMessage, + VersionedTransaction +} from '@solana/web3.js' +import { Request, Response, NextFunction } from 'express' +import { config } from '../../config' +import { BadRequestError } from '../../errors' +import { logger } from '../../logger' +import { assertRelayAllowedInstructions } from './assertRelayAllowedInstructions' +import { cacheTransaction, getCachedDiscoveryNodes } from '../../redis' +import fetch from 'cross-fetch' + +type RequestBody = { + transaction: string +} + +const connection = new Connection(config.solanaEndpoint) + +const getFeePayerKeyPair = (feePayerPublicKey?: PublicKey) => { + if (!feePayerPublicKey) { + return null + } + return ( + config.solanaFeePayerWallets.find((kp) => + kp.publicKey.equals(feePayerPublicKey) + ) ?? null + ) +} + +const forwardTransaction = async (signature: string, transaction: string) => { + const endpoints = await getCachedDiscoveryNodes() + logger.info(`Forwarding ${signature} to ${endpoints.length} endpoints...`) + await Promise.all( + endpoints.map((endpoint) => + fetch(`${endpoint}/solana/cache`, { + method: 'POST', + body: JSON.stringify({ transaction }), + headers: { 'content-type': 'application/json' } + }) + .then(() => { + logger.info(`Forwarded ${signature} to ${endpoint}`) + }) + .catch((e) => { + logger.warn( + `Failed to forward transaction ${signature} to endpoint ${endpoint}` + ) + }) + ) + ) +} + +export const relay = async ( + req: Request, + res: Response, + next: NextFunction +) => { + try { + const decoded = Buffer.from(req.body.transaction, 'base64') + const transaction = VersionedTransaction.deserialize(decoded) + const decompiled = TransactionMessage.decompile(transaction.message) + const feePayerKey = transaction.message.getAccountKeys().get(0) + const feePayerKeyPair = getFeePayerKeyPair(feePayerKey) + if (!feePayerKey || !feePayerKeyPair) { + throw new BadRequestError( + `No fee payer for address '${feePayerKey?.toBase58()}'` + ) + } + await assertRelayAllowedInstructions(decompiled.instructions, { + user: res.locals.signer, + feePayer: feePayerKey.toBase58() + }) + + transaction.sign([feePayerKeyPair]) + const serializedTx = transaction.serialize() + const signature = await connection.sendRawTransaction(serializedTx) + const encoded = Buffer.from(serializedTx).toString('base64') + await cacheTransaction(signature, encoded) + await forwardTransaction(signature, encoded) + res.status(200).send({ signature }) + next() + } catch (e) { + next(e) + } +} diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/tsconfig.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/tsconfig.json new file mode 100644 index 00000000000..d5f38558187 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/tsconfig.json @@ -0,0 +1,11 @@ +{ + "compilerOptions": { + "lib": ["es2020"], + "module": "CommonJS", + "outDir": "./dist", + "rootDir": "./src" + }, + "exclude": ["node_modules"], + "extends": "../../packages/tsconfig/base.json", + "include": ["src"] +} From 58028e7153053803f51e545badfbde3a4634501f Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:23:05 -0800 Subject: [PATCH 02/17] add associated token to spl --- packages/spl/src/associated-token/index.ts | 155 +++++++++++++++++++++ packages/spl/src/index.ts | 1 + 2 files changed, 156 insertions(+) create mode 100644 packages/spl/src/associated-token/index.ts diff --git a/packages/spl/src/associated-token/index.ts b/packages/spl/src/associated-token/index.ts new file mode 100644 index 00000000000..8dc36f565c2 --- /dev/null +++ b/packages/spl/src/associated-token/index.ts @@ -0,0 +1,155 @@ +import type { + AccountMeta, + PublicKey, + TransactionInstruction +} from '@solana/web3.js' + +enum AssociatedTokenInstruction { + Create = 0, + CreateIdempotent = 1, + RecoverNested = 2 +} + +type DecodedCreateAssociatedTokenAccountInstruction = { + programId: PublicKey + keys: { + payer: AccountMeta + associatedToken: AccountMeta + owner: AccountMeta + mint: AccountMeta + systemProgramId: AccountMeta + tokenProgramId: AccountMeta + } + data: { instruction: AssociatedTokenInstruction.Create } +} + +type DecodedCreateAssociatedTokenAccountIdempotentInstruction = { + programId: PublicKey + keys: { + payer: AccountMeta + associatedToken: AccountMeta + owner: AccountMeta + mint: AccountMeta + systemProgramId: AccountMeta + tokenProgramId: AccountMeta + } + data: { instruction: AssociatedTokenInstruction.CreateIdempotent } +} + +type DecodedRecoverNestedInstruction = { + programId: PublicKey + keys: { + nestedAssociatedToken: AccountMeta + nestedMint: AccountMeta + destinationAssociatedToken: AccountMeta + ownerAssociatedToken: AccountMeta + ownerMint: AccountMeta + owner: AccountMeta + tokenProgramId: AccountMeta + } + data: { instruction: AssociatedTokenInstruction.RecoverNested } +} + +type DecodedAssociatedTokenInstruction = + | DecodedCreateAssociatedTokenAccountInstruction + | DecodedCreateAssociatedTokenAccountIdempotentInstruction + | DecodedRecoverNestedInstruction + +const decodeCreateAssociatedTokenAccountInstruction = ({ + programId, + keys: [payer, associatedToken, owner, mint, systemProgramId, tokenProgramId], + data +}: TransactionInstruction): DecodedCreateAssociatedTokenAccountInstruction => ({ + programId, + keys: { + payer, + associatedToken, + owner, + mint, + systemProgramId, + tokenProgramId + }, + data: { instruction: data[0] as AssociatedTokenInstruction.Create } +}) + +const decodeCreateAssociatedTokenAccountIdempotentInstruction = ({ + programId, + keys: [payer, associatedToken, owner, mint, systemProgramId, tokenProgramId], + data +}: TransactionInstruction): DecodedCreateAssociatedTokenAccountIdempotentInstruction => ({ + programId, + keys: { + payer, + associatedToken, + owner, + mint, + systemProgramId, + tokenProgramId + }, + data: { instruction: data[0] as AssociatedTokenInstruction.CreateIdempotent } +}) + +const decodeRecoverNestedInstruction = ({ + programId, + keys: [ + nestedAssociatedToken, + nestedMint, + destinationAssociatedToken, + ownerAssociatedToken, + ownerMint, + owner, + tokenProgramId + ], + data +}: TransactionInstruction): DecodedRecoverNestedInstruction => ({ + programId, + keys: { + nestedAssociatedToken, + nestedMint, + destinationAssociatedToken, + ownerAssociatedToken, + ownerMint, + owner, + tokenProgramId + }, + data: { instruction: data[0] as AssociatedTokenInstruction.RecoverNested } +}) + +export const decodeAssociatedTokenAccountInstruction = ( + instruction: TransactionInstruction +) => { + switch (instruction.data[0]) { + // CreateAssociatedTokenAccount is with null/undefined or 0 as the data + // AssociatedTokenAccount program code: https://github.com/solana-labs/solana-program-library/blob/a95c6d14d9305d6a77656bc6bc36c10d54ad7e97/associated-token-account/program/src/processor.rs#L37C1-L63C2 + // @solana/spl-token createAssociatedTokenAccountInstruction: https://github.com/solana-labs/solana-program-library/blob/a95c6d14d9305d6a77656bc6bc36c10d54ad7e97/token/js/src/instructions/associatedTokenAccount.ts#L17 + case null: + case undefined: + case AssociatedTokenInstruction.Create: + return decodeCreateAssociatedTokenAccountInstruction(instruction) + case AssociatedTokenInstruction.CreateIdempotent: + return decodeCreateAssociatedTokenAccountIdempotentInstruction( + instruction + ) + case AssociatedTokenInstruction.RecoverNested: + return decodeRecoverNestedInstruction(instruction) + default: + throw new Error('Invalid Associated Token Program Instruction') + } +} + +export const isCreateAssociatedTokenAccountInstruction = ( + decoded: DecodedAssociatedTokenInstruction +): decoded is DecodedCreateAssociatedTokenAccountInstruction => + decoded.data.instruction === AssociatedTokenInstruction.Create || + decoded.data.instruction === null || + decoded.data.instruction === undefined + +export const isCreateAssociatedTokenAccountIdempotentInstruction = ( + decoded: DecodedAssociatedTokenInstruction +): decoded is DecodedCreateAssociatedTokenAccountIdempotentInstruction => + decoded.data.instruction === AssociatedTokenInstruction.CreateIdempotent + +export const isRecoverNestedInstruction = ( + decoded: DecodedAssociatedTokenInstruction +): decoded is DecodedRecoverNestedInstruction => + decoded.data.instruction === AssociatedTokenInstruction.RecoverNested diff --git a/packages/spl/src/index.ts b/packages/spl/src/index.ts index 519fa0a12d8..e4079b78f26 100644 --- a/packages/spl/src/index.ts +++ b/packages/spl/src/index.ts @@ -1,2 +1,3 @@ export * from './claimable-tokens' export * from './reward-manager' +export * from './associated-token' From 8b1570e0668ebe8264a4c34d3eba3639612b9d93 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:24:00 -0800 Subject: [PATCH 03/17] allow dns to be listed under network healthcheck --- packages/discovery-provider/src/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discovery-provider/src/utils/helpers.py b/packages/discovery-provider/src/utils/helpers.py index bfb12668a6c..754628d9c37 100644 --- a/packages/discovery-provider/src/utils/helpers.py +++ b/packages/discovery-provider/src/utils/helpers.py @@ -70,7 +70,7 @@ def bytes32_to_str(bytes32input): # Regex used to verify valid FQDN fqdn_regex = re.compile( - r"^(?:^|[ \t])((https?:\/\/)?(?:localhost|(cn[0-9]_creator-node_1:[0-9]+)|(audius-protocol-creator-node-[0-9])|[\w-]+(?:\.[\w-]+)+)(:\d+)?(\/\S*)?)$" + r"^(?:^|[ \t])((https?:\/\/)?(?:localhost|(cn[0-9]_creator-node_1:[0-9]+)|(audius-protocol-creator-node-[0-9])|(audius-protocol-discovery-provider-[0-9])|[\w-]+(?:\.[\w-]+)+)(:\d+)?(\/\S*)?)$" ) From 5fd6aea5c160cac99a1904fd7e497cd65637e23c Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:25:14 -0800 Subject: [PATCH 04/17] add solana-relay project to workspace and compose --- .../compose/docker-compose.pedalboard.dev.yml | 9 + .../docker-compose.pedalboard.prod.yml | 18 + dev-tools/compose/docker-compose.yml | 10 +- dev-tools/compose/nginx_ingress.conf | 7 + package-lock.json | 3590 +++++++++++++++-- .../discovery-provider/nginx_conf/nginx.conf | 7 + 6 files changed, 3295 insertions(+), 346 deletions(-) diff --git a/dev-tools/compose/docker-compose.pedalboard.dev.yml b/dev-tools/compose/docker-compose.pedalboard.dev.yml index 60cb4c97dcd..66e10112c25 100644 --- a/dev-tools/compose/docker-compose.pedalboard.dev.yml +++ b/dev-tools/compose/docker-compose.pedalboard.dev.yml @@ -41,3 +41,12 @@ services: dockerfile: ${PROJECT_ROOT}/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev volumes: - ${PROJECT_ROOT}:/app + + solana-relay: + extends: + file: docker-compose.pedalboard.prod.yml + service: solana-relay + build: + dockerfile: ${PROJECT_ROOT}/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev + volumes: + - ${PROJECT_ROOT}:/app diff --git a/dev-tools/compose/docker-compose.pedalboard.prod.yml b/dev-tools/compose/docker-compose.pedalboard.prod.yml index 5f82a4b8665..30d20323aa4 100644 --- a/dev-tools/compose/docker-compose.pedalboard.prod.yml +++ b/dev-tools/compose/docker-compose.pedalboard.prod.yml @@ -41,6 +41,24 @@ services: TURBO_TOKEN: '${TURBO_TOKEN}' restart: always + solana-relay: + container_name: solana-relay + build: + context: ${PROJECT_ROOT} + dockerfile: ${PROJECT_ROOT}/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.prod + args: + app_name: solana-relay + environment: + audius_solana_rewards_manager_program_address: '${SOLANA_REWARD_MANAGER_PUBLIC_KEY}' + audius_solana_rewards_manager_account: '${SOLANA_REWARD_MANAGER_PDA_PUBLIC_KEY}' + audius_solana_user_bank_program_address: '${SOLANA_CLAIMABLE_TOKENS_PUBLIC_KEY}' + audius_solana_waudio_mint: '${SOLANA_TOKEN_MINT_PUBLIC_KEY}' + audius_solana_usdc_mint: '${SOLANA_USDC_TOKEN_MINT_PUBLIC_KEY}' + audius_solana_fee_payer_wallets: '[{"privateKey":${SOLANA_FEEPAYER_SECRET_KEY}}]' + restart: always + profiles: + - pedalboard + sla-auditor: container_name: sla-auditor build: diff --git a/dev-tools/compose/docker-compose.yml b/dev-tools/compose/docker-compose.yml index 47682354ced..1e0fa79ed61 100644 --- a/dev-tools/compose/docker-compose.yml +++ b/dev-tools/compose/docker-compose.yml @@ -86,9 +86,9 @@ services: <<: *common # Protocol dashboard - + dashboard: - extends: + extends: file: docker-compose.protocol-dashboard.yml service: dashboard <<: *common @@ -148,6 +148,12 @@ services: service: relay <<: *common + solana-relay: + extends: + file: docker-compose.pedalboard.${DOCKERCOMPOSE_ENV_TYPE:-dev}.yml + service: solana-relay + <<: *common + sla-auditor: extends: file: docker-compose.pedalboard.${DOCKERCOMPOSE_ENV_TYPE:-dev}.yml diff --git a/dev-tools/compose/nginx_ingress.conf b/dev-tools/compose/nginx_ingress.conf index 7df96896050..d60b284f399 100644 --- a/dev-tools/compose/nginx_ingress.conf +++ b/dev-tools/compose/nginx_ingress.conf @@ -30,6 +30,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + location ~ ^/solana(/.*)?$ { + resolver 127.0.0.11 valid=30s; + proxy_pass http://solana-relay:6002/solana$1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location ^~ /healthz { resolver 127.0.0.11 valid=30s; proxy_pass http://healthz; diff --git a/package-lock.json b/package-lock.json index 1421b5b2c21..f056e864cb5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10619,6 +10619,10 @@ "resolved": "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor", "link": true }, + "node_modules/@pedalboard/solana-relay": { + "resolved": "packages/discovery-provider/plugins/pedalboard/apps/solana-relay", + "link": true + }, "node_modules/@pedalboard/storage": { "resolved": "packages/discovery-provider/plugins/pedalboard/packages/storage", "link": true @@ -13310,6 +13314,64 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/@redis/bloom": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@redis/bloom/-/bloom-1.2.0.tgz", + "integrity": "sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/client": { + "version": "1.5.12", + "resolved": "https://registry.npmjs.org/@redis/client/-/client-1.5.12.tgz", + "integrity": "sha512-/ZjE18HRzMd80eXIIUIPcH81UoZpwulbo8FmbElrjPqH0QC0SeIKu1BOU49bO5trM5g895kAjhvalt5h77q+4A==", + "dependencies": { + "cluster-key-slot": "1.1.2", + "generic-pool": "3.9.0", + "yallist": "4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@redis/client/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, + "node_modules/@redis/graph": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@redis/graph/-/graph-1.1.1.tgz", + "integrity": "sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/json": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@redis/json/-/json-1.0.6.tgz", + "integrity": "sha512-rcZO3bfQbm2zPRpqo82XbW8zg4G/w4W3tI7X8Mqleq9goQjAGLL7q/1n1ZX4dXEAmORVZ4s1+uKLaUOg7LrUhw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/search": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@redis/search/-/search-1.1.6.tgz", + "integrity": "sha512-mZXCxbTYKBQ3M2lZnEddwEAks0Kc7nauire8q20oA0oA/LoA+E/b5Y5KZn232ztPb1FkIGqo12vh3Lf+Vw5iTw==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, + "node_modules/@redis/time-series": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@redis/time-series/-/time-series-1.0.5.tgz", + "integrity": "sha512-IFjIgTusQym2B5IZJG3XKr5llka7ey84fw/NOYqESP5WUfQs9zz1ww/9+qoz4ka/S6KcGBodzlCeZ5UImKbscg==", + "peerDependencies": { + "@redis/client": "^1.0.0" + } + }, "node_modules/@redux-devtools/extension": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/@redux-devtools/extension/-/extension-3.2.6.tgz", @@ -124292,10 +124354,2598 @@ "url": "https://opencollective.com/eslint" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/eslint-utils": { + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/eslint-utils": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^1.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/mysticatea" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/espree": { + "version": "7.3.1", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^7.4.0", + "acorn-jsx": "^5.3.1", + "eslint-visitor-keys": "^1.3.0" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "1.3.0", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/expect": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-styles": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express": { + "version": "4.18.2", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/body-parser": { + "version": "1.20.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/raw-body": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/fill-range": { + "version": "7.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/fsevents": { + "version": "2.3.3", + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/glob-parent": { + "version": "5.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/globals": { + "version": "13.22.0", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/has-flag": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/http-proxy-agent": { + "version": "4.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/ignore": { + "version": "4.0.6", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-binary-path": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-ci": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-number": { + "version": "7.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/istanbul-lib-instrument": { + "version": "4.0.3", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.7.5", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "6.3.1", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^26.6.3", + "import-local": "^3.0.2", + "jest-cli": "^26.6.3" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-changed-files": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "execa": "^4.0.0", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-cli": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^26.6.3", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "import-local": "^3.0.2", + "is-ci": "^2.0.0", + "jest-config": "^26.6.3", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "prompts": "^2.0.1", + "yargs": "^15.4.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-config": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^26.6.3", + "@jest/types": "^26.6.2", + "babel-jest": "^26.6.3", + "chalk": "^4.0.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.4", + "jest-environment-jsdom": "^26.6.2", + "jest-environment-node": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-jasmine2": "^26.6.3", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-diff": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-docblock": { + "version": "26.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-each": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-environment-jsdom": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2", + "jsdom": "^16.4.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-environment-node": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-get-type": { + "version": "26.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-haste-map": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-regex-util": "^26.0.0", + "jest-serializer": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "micromatch": "^4.0.2", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "fsevents": "^2.1.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-jasmine2": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^26.6.2", + "is-generator-fn": "^2.0.0", + "jest-each": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "pretty-format": "^26.6.2", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-leak-detector": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-matcher-utils": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-message-util": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "micromatch": "^4.0.2", + "pretty-format": "^26.6.2", + "slash": "^3.0.0", + "stack-utils": "^2.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-mock": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-regex-util": { + "version": "26.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-resolve": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^26.6.2", + "read-pkg-up": "^7.0.1", + "resolve": "^1.18.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-resolve-dependencies": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-snapshot": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-runner": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.7.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-docblock": "^26.0.0", + "jest-haste-map": "^26.6.2", + "jest-leak-detector": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-runtime": "^26.6.3", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "source-map-support": "^0.5.6", + "throat": "^5.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-runtime": { + "version": "26.6.3", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/environment": "^26.6.2", + "@jest/fake-timers": "^26.6.2", + "@jest/globals": "^26.6.2", + "@jest/source-map": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0", + "cjs-module-lexer": "^0.6.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.4", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "slash": "^3.0.0", + "strip-bom": "^4.0.0", + "yargs": "^15.4.1" + }, + "bin": { + "jest-runtime": "bin/jest-runtime.js" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-serializer": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.4" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-snapshot": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0", + "@jest/types": "^26.6.2", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.0.0", + "chalk": "^4.0.0", + "expect": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-diff": "^26.6.2", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.6.2", + "jest-matcher-utils": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-resolve": "^26.6.2", + "natural-compare": "^1.4.0", + "pretty-format": "^26.6.2", + "semver": "^7.3.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-util": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "is-ci": "^2.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-validate": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "camelcase": "^6.0.0", + "chalk": "^4.0.0", + "jest-get-type": "^26.3.0", + "leven": "^3.1.0", + "pretty-format": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-watcher": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^26.6.2", + "string-length": "^4.0.1" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-worker": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jsdom": { + "version": "16.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jsdom/node_modules/acorn": { + "version": "8.10.0", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/mime": { + "version": "1.6.0", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/ms": { + "version": "2.1.3", + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/node-notifier": { + "version": "8.0.2", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "growly": "^1.3.0", + "is-wsl": "^2.2.0", + "semver": "^7.3.2", + "shellwords": "^0.1.1", + "uuid": "^8.3.0", + "which": "^2.0.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon": { + "version": "2.0.22", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^3.2.7", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^5.7.1", + "simple-update-notifier": "^1.0.7", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=8.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/debug": { + "version": "3.2.7", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/semver": { + "version": "5.7.2", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/supports-color": { + "version": "5.5.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/on-finished": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/p-each-series": { + "version": "2.2.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/parse5": { + "version": "6.0.1", + "dev": true, + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/path-to-regexp": { + "version": "0.1.7", + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/pretty-format": { + "version": "26.6.2", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/punycode": { + "version": "2.3.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/raw-body": { + "version": "2.5.2", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/react-is": { + "version": "17.0.2", + "dev": true, + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/readdirp": { + "version": "3.6.0", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/saxes": { + "version": "5.0.1", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/semver": { + "version": "7.5.4", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send": { + "version": "0.18.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/serve-static": { + "version": "1.15.0", + "license": "MIT", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/setprototypeof": { + "version": "1.2.0", + "license": "ISC" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/simple-update-notifier": { + "version": "1.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "~7.0.0" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/simple-update-notifier/node_modules/semver": { + "version": "7.0.0", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/slash": { + "version": "3.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/source-map": { + "version": "0.7.4", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supertest": { + "version": "6.3.3", + "dev": true, + "license": "MIT", + "dependencies": { + "methods": "^1.1.2", + "superagent": "^8.0.5" + }, + "engines": { + "node": ">=6.4.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supports-color": { + "version": "7.2.0", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supports-color/node_modules/has-flag": { + "version": "4.0.0", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/to-regex-range": { + "version": "5.0.1", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/tr46": { + "version": "2.1.0", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/type-fest": { + "version": "0.20.2", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/uuid": { + "version": "8.3.2", + "dev": true, + "license": "MIT", + "optional": true, + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/v8-to-istanbul": { + "version": "7.1.2", + "dev": true, + "license": "ISC", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/webidl-conversions": { + "version": "6.1.0", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-encoding": { + "version": "1.0.5", + "dev": true, + "license": "MIT", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-mimetype": { + "version": "2.3.0", + "dev": true, + "license": "MIT" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-url": { + "version": "8.7.0", + "dev": true, + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/write-file-atomic": { + "version": "3.0.3", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/xml-name-validator": { + "version": "3.0.0", + "dev": true, + "license": "Apache-2.0" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/y18n": { + "version": "4.0.3", + "dev": true, + "license": "ISC" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs": { + "version": "15.4.1", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs-parser": { + "version": "18.1.3", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs-parser/node_modules/camelcase": { + "version": "5.3.1", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay": { + "name": "@pedalboard/solana-relay", + "version": "0.0.0", + "dependencies": { + "@audius/spl": "*", + "@pedalboard/basekit": "*", + "@pedalboard/logger": "*", + "@pedalboard/storage": "*", + "@solana/web3.js": "1.78.4", + "body-parser": "1.19.0", + "bs58": "4.0.1", + "cors": "2.8.5", + "eth-sig-util": "3.0.1", + "express": "4.17.1", + "morgan": "1.10.0", + "pino": "8.16.1", + "redis": "4.6.11" + }, + "devDependencies": { + "@types/body-parser": "1.19.0", + "@types/cors": "2.8.10", + "@types/express": "4.17.12", + "@types/jest": "26.0.22", + "@types/morgan": "1.9.2", + "@types/node": "15.12.2", + "@types/supertest": "2.0.11", + "esbuild": "0.14.38", + "esbuild-register": "3.3.2", + "eslint": "7.32.0", + "eslint-config-custom-server": "*", + "jest": "26.6.3", + "jest-presets": "*", + "nodemon": "2.0.15", + "supertest": "6.1.3", + "tsconfig": "*", + "typescript": "4.5.3" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@babel/code-frame": { + "version": "7.12.11", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", + "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.10.4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@eslint/eslintrc": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", + "integrity": "sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==", + "dev": true, + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.1.1", + "espree": "^7.3.0", + "globals": "^13.9.0", + "ignore": "^4.0.6", + "import-fresh": "^3.2.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@humanwhocodes/config-array": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz", + "integrity": "sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==", + "dev": true, + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.0", + "debug": "^4.1.1", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/console": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", + "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^26.6.2", + "jest-util": "^26.6.2", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/core": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", + "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/reporters": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.4", + "jest-changed-files": "^26.6.2", + "jest-config": "^26.6.3", + "jest-haste-map": "^26.6.2", + "jest-message-util": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-resolve": "^26.6.2", + "jest-resolve-dependencies": "^26.6.3", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3", + "jest-snapshot": "^26.6.2", + "jest-util": "^26.6.2", + "jest-validate": "^26.6.2", + "jest-watcher": "^26.6.2", + "micromatch": "^4.0.2", + "p-each-series": "^2.1.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/environment": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", + "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/node": "*", + "jest-mock": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/fake-timers": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", + "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", + "dev": true, + "dependencies": { + "@jest/types": "^26.6.2", + "@sinonjs/fake-timers": "^6.0.1", + "@types/node": "*", + "jest-message-util": "^26.6.2", + "jest-mock": "^26.6.2", + "jest-util": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/globals": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", + "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "dev": true, + "dependencies": { + "@jest/environment": "^26.6.2", + "@jest/types": "^26.6.2", + "expect": "^26.6.2" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/reporters": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", + "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^26.6.2", + "@jest/test-result": "^26.6.2", + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.4", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.0.2", + "jest-haste-map": "^26.6.2", + "jest-resolve": "^26.6.2", + "jest-util": "^26.6.2", + "jest-worker": "^26.6.2", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^7.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "optionalDependencies": { + "node-notifier": "^8.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/source-map": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", + "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "dev": true, + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.4", + "source-map": "^0.6.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/test-result": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", + "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "dev": true, + "dependencies": { + "@jest/console": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/test-sequencer": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", + "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^26.6.2", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-runner": "^26.6.3", + "jest-runtime": "^26.6.3" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/transform": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", + "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "dev": true, + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^26.6.2", + "babel-plugin-istanbul": "^6.0.0", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.4", + "jest-haste-map": "^26.6.2", + "jest-regex-util": "^26.0.0", + "jest-util": "^26.6.2", + "micromatch": "^4.0.2", + "pirates": "^4.0.1", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@sinonjs/fake-timers": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", + "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==", + "dev": true, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/cors": { + "version": "2.8.10", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.10.tgz", + "integrity": "sha512-C7srjHiVG3Ey1nR6d511dtDkCEjxuN9W1HWAEjGq8kpcwmNM6JJkpC0xvabM7BXTG2wDq8Eu33iH9aQKa7IvLQ==", + "dev": true + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/express": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.12.tgz", + "integrity": "sha512-pTYas6FrP15B1Oa0bkN5tQMNqOcVXa9j4FTFtO8DWI9kppKib+6NJtfTOOLcwxuuYvcX2+dVG6et1SxW/Kc17Q==", + "dev": true, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.18", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/jest": { + "version": "26.0.22", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.22.tgz", + "integrity": "sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==", + "dev": true, + "dependencies": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/morgan": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.2.tgz", + "integrity": "sha512-edtGMEdit146JwwIeyQeHHg9yID4WSolQPxpEorHmN3KuytuCHyn2ELNr5Uxy8SerniFbbkmgKMrGM933am5BQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/node": { + "version": "15.12.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.2.tgz", + "integrity": "sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww==", + "dev": true + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/supertest": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/supertest/-/supertest-2.0.11.tgz", + "integrity": "sha512-uci4Esokrw9qGb9bvhhSVEjd6rkny/dk5PK/Qz4yxKiyppEI+dOPlNrZBahE3i+PoKFYyDxChVXZ/ysS/nrm1Q==", + "dev": true, + "dependencies": { + "@types/superagent": "*" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/yargs": { + "version": "15.0.19", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.19.tgz", + "integrity": "sha512-2XUaGVmyQjgyAZldf0D0c14vvo/yv0MhQBSTJcejMMaitsn3nxCB6TmH4G0ZQf+uxROOa9mpanoSm8h6SG/1ZA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/acorn-globals": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", + "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", + "dev": true, + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-jest": { + "version": "26.6.3", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", + "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "dev": true, + "dependencies": { + "@jest/transform": "^26.6.2", + "@jest/types": "^26.6.2", + "@types/babel__core": "^7.1.7", + "babel-plugin-istanbul": "^6.0.0", + "babel-preset-jest": "^26.6.2", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.4", + "slash": "^3.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-plugin-jest-hoist": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", + "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-preset-jest": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", + "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^26.6.2", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": ">= 10.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/binary-extensions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", + "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dependencies": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dependencies": { + "ms": "2.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "engines": { + "node": ">= 0.8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/chokidar": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", + "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cjs-module-lexer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", + "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", + "dev": true + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cliui": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", + "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dependencies": { + "safe-buffer": "5.1.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "engines": { + "node": ">= 0.6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cssom": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", + "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", + "dev": true + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/data-urls": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", + "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "dev": true, + "engines": { + "node": ">= 10.14.2" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", + "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dev": true, + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", + "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/emittery": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", + "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.38.tgz", + "integrity": "sha512-12fzJ0fsm7gVZX1YQ1InkOE5f9Tl7cgf6JPYXRJtPIoE0zkWAbHdPHVPPaLi9tYAcEBqheGzqLn/3RdTOyBfcA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "esbuild-android-64": "0.14.38", + "esbuild-android-arm64": "0.14.38", + "esbuild-darwin-64": "0.14.38", + "esbuild-darwin-arm64": "0.14.38", + "esbuild-freebsd-64": "0.14.38", + "esbuild-freebsd-arm64": "0.14.38", + "esbuild-linux-32": "0.14.38", + "esbuild-linux-64": "0.14.38", + "esbuild-linux-arm": "0.14.38", + "esbuild-linux-arm64": "0.14.38", + "esbuild-linux-mips64le": "0.14.38", + "esbuild-linux-ppc64le": "0.14.38", + "esbuild-linux-riscv64": "0.14.38", + "esbuild-linux-s390x": "0.14.38", + "esbuild-netbsd-64": "0.14.38", + "esbuild-openbsd-64": "0.14.38", + "esbuild-sunos-64": "0.14.38", + "esbuild-windows-32": "0.14.38", + "esbuild-windows-64": "0.14.38", + "esbuild-windows-arm64": "0.14.38" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-android-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-android-64/-/esbuild-android-64-0.14.38.tgz", + "integrity": "sha512-aRFxR3scRKkbmNuGAK+Gee3+yFxkTJO/cx83Dkyzo4CnQl/2zVSurtG6+G86EQIZ+w+VYngVyK7P3HyTBKu3nw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-android-arm64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.38.tgz", + "integrity": "sha512-L2NgQRWuHFI89IIZIlpAcINy9FvBk6xFVZ7xGdOwIm8VyhX1vNCEqUJO3DPSSy945Gzdg98cxtNt8Grv1CsyhA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-darwin-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.38.tgz", + "integrity": "sha512-5JJvgXkX87Pd1Og0u/NJuO7TSqAikAcQQ74gyJ87bqWRVeouky84ICoV4sN6VV53aTW+NE87qLdGY4QA2S7KNA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-darwin-arm64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.38.tgz", + "integrity": "sha512-eqF+OejMI3mC5Dlo9Kdq/Ilbki9sQBw3QlHW3wjLmsLh+quNfHmGMp3Ly1eWm981iGBMdbtSS9+LRvR2T8B3eQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-freebsd-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.38.tgz", + "integrity": "sha512-epnPbhZUt93xV5cgeY36ZxPXDsQeO55DppzsIgWM8vgiG/Rz+qYDLmh5ts3e+Ln1wA9dQ+nZmVHw+RjaW3I5Ig==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-freebsd-arm64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.38.tgz", + "integrity": "sha512-/9icXUYJWherhk+y5fjPI5yNUdFPtXHQlwP7/K/zg8t8lQdHVj20SqU9/udQmeUo5pDFHMYzcEFfJqgOVeKNNQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-32": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.38.tgz", + "integrity": "sha512-QfgfeNHRFvr2XeHFzP8kOZVnal3QvST3A0cgq32ZrHjSMFTdgXhMhmWdKzRXP/PKcfv3e2OW9tT9PpcjNvaq6g==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.38.tgz", + "integrity": "sha512-uuZHNmqcs+Bj1qiW9k/HZU3FtIHmYiuxZ/6Aa+/KHb/pFKr7R3aVqvxlAudYI9Fw3St0VCPfv7QBpUITSmBR1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-arm": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.38.tgz", + "integrity": "sha512-FiFvQe8J3VKTDXG01JbvoVRXQ0x6UZwyrU4IaLBZeq39Bsbatd94Fuc3F1RGqPF5RbIWW7RvkVQjn79ejzysnA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-arm64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.38.tgz", + "integrity": "sha512-HlMGZTEsBrXrivr64eZ/EO0NQM8H8DuSENRok9d+Jtvq8hOLzrxfsAT9U94K3KOGk2XgCmkaI2KD8hX7F97lvA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-mips64le": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.38.tgz", + "integrity": "sha512-qd1dLf2v7QBiI5wwfil9j0HG/5YMFBAmMVmdeokbNAMbcg49p25t6IlJFXAeLzogv1AvgaXRXvgFNhScYEUXGQ==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-ppc64le": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.38.tgz", + "integrity": "sha512-mnbEm7o69gTl60jSuK+nn+pRsRHGtDPfzhrqEUXyCl7CTOCLtWN2bhK8bgsdp6J/2NyS/wHBjs1x8aBWwP2X9Q==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-riscv64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.38.tgz", + "integrity": "sha512-+p6YKYbuV72uikChRk14FSyNJZ4WfYkffj6Af0/Tw63/6TJX6TnIKE+6D3xtEc7DeDth1fjUOEqm+ApKFXbbVQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-linux-s390x": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.38.tgz", + "integrity": "sha512-0zUsiDkGJiMHxBQ7JDU8jbaanUY975CdOW1YDrurjrM0vWHfjv9tLQsW9GSyEb/heSK1L5gaweRjzfUVBFoybQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-netbsd-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.38.tgz", + "integrity": "sha512-cljBAApVwkpnJZfnRVThpRBGzCi+a+V9Ofb1fVkKhtrPLDYlHLrSYGtmnoTVWDQdU516qYI8+wOgcGZ4XIZh0Q==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-openbsd-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.38.tgz", + "integrity": "sha512-CDswYr2PWPGEPpLDUO50mL3WO/07EMjnZDNKpmaxUPsrW+kVM3LoAqr/CE8UbzugpEiflYqJsGPLirThRB18IQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-register": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/esbuild-register/-/esbuild-register-3.3.2.tgz", + "integrity": "sha512-jceAtTO6zxPmCfSD5cBb3rgIK1vmuqCKYwgylHiS1BF4pq0jJiJb4K2QMuqF4BEw7XDBRatYzip0upyTzfkgsQ==", + "dev": true, + "peerDependencies": { + "esbuild": ">=0.12 <1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-sunos-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.38.tgz", + "integrity": "sha512-2mfIoYW58gKcC3bck0j7lD3RZkqYA7MmujFYmSn9l6TiIcAMpuEvqksO+ntBgbLep/eyjpgdplF7b+4T9VJGOA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-windows-32": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.38.tgz", + "integrity": "sha512-L2BmEeFZATAvU+FJzJiRLFUP+d9RHN+QXpgaOrs2klshoAm1AE6Us4X6fS9k33Uy5SzScn2TpcgecbqJza1Hjw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-windows-64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.38.tgz", + "integrity": "sha512-Khy4wVmebnzue8aeSXLC+6clo/hRYeNIm0DyikoEqX+3w3rcvrhzpoix0S+MF9vzh6JFskkIGD7Zx47ODJNyCw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild-windows-arm64": { + "version": "0.14.38", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.38.tgz", + "integrity": "sha512-k3FGCNmHBkqdJXuJszdWciAH77PukEyDsdIryEHn9cKLQFxzhT39dSumeTuggaQcXY57UlmLGIkklWZo2qzHpw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/eslint": { + "version": "7.32.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz", + "integrity": "sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "7.12.11", + "@eslint/eslintrc": "^0.4.3", + "@humanwhocodes/config-array": "^0.5.0", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "eslint-visitor-keys": "^2.0.0", + "espree": "^7.3.1", + "esquery": "^1.4.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "functional-red-black-tree": "^1.0.1", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "js-yaml": "^3.13.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.0.4", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "progress": "^2.0.0", + "regexpp": "^3.1.0", + "semver": "^7.2.1", + "strip-ansi": "^6.0.0", + "strip-json-comments": "^3.1.0", + "table": "^6.0.9", + "text-table": "^0.2.0", + "v8-compile-cache": "^2.0.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/eslint-utils": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", "dev": true, - "license": "MIT", "dependencies": { "eslint-visitor-keys": "^1.1.0" }, @@ -124306,18 +126956,20 @@ "url": "https://github.com/sponsors/mysticatea" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/eslint-utils/node_modules/eslint-visitor-keys": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/eslint-utils/node_modules/eslint-visitor-keys": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/espree": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/espree": { "version": "7.3.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-7.3.1.tgz", + "integrity": "sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==", "dev": true, - "license": "BSD-2-Clause", "dependencies": { "acorn": "^7.4.0", "acorn-jsx": "^5.3.1", @@ -124327,18 +126979,77 @@ "node": "^10.12.0 || >=12.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/espree/node_modules/eslint-visitor-keys": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/espree/node_modules/eslint-visitor-keys": { "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", "dev": true, - "license": "Apache-2.0", "engines": { "node": ">=4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/expect": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/eth-sig-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/eth-sig-util/-/eth-sig-util-3.0.1.tgz", + "integrity": "sha512-0Us50HiGGvZgjtWTyAI/+qTzYPMLy5Q451D0Xy68bxq1QMWdoOddDwGvsqcFT27uohKgalM9z/yxplyt+mY2iQ==", + "deprecated": "Deprecated in favor of '@metamask/eth-sig-util'", + "dependencies": { + "ethereumjs-abi": "^0.6.8", + "ethereumjs-util": "^5.1.1", + "tweetnacl": "^1.0.3", + "tweetnacl-util": "^0.15.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/eth-sig-util/node_modules/ethereumjs-util": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.1.tgz", + "integrity": "sha512-v3kT+7zdyCm1HIqWlLNrHGqHGLpGYIhjeHxQjnDXjLT2FyGJDsd3LWMYUo7pAFRrk86CR3nUJfhC81CCoJNNGQ==", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", + "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ethereumjs-abi": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz", + "integrity": "sha512-Tx0r/iXI6r+lRsdvkFDlut0N08jWMnKRZ6Gkq+Nmw75lZe4e6o3EkSnkaBP5NF6+m5PTGAr9JP43N3LyeoglsA==", + "dependencies": { + "bn.js": "^4.11.8", + "ethereumjs-util": "^6.0.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/expect": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", + "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "ansi-styles": "^4.0.0", @@ -124351,38 +127062,38 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express": { - "version": "4.18.2", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", "dependencies": { - "accepts": "~1.3.8", + "accepts": "~1.3.7", "array-flatten": "1.1.1", - "body-parser": "1.20.1", - "content-disposition": "0.5.4", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", "content-type": "~1.0.4", - "cookie": "0.5.0", + "cookie": "0.4.0", "cookie-signature": "1.0.6", "debug": "2.6.9", - "depd": "2.0.0", + "depd": "~1.1.2", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "1.2.0", + "finalhandler": "~1.1.2", "fresh": "0.5.2", - "http-errors": "2.0.0", "merge-descriptors": "1.0.1", "methods": "~1.1.2", - "on-finished": "2.4.1", + "on-finished": "~2.3.0", "parseurl": "~1.3.3", "path-to-regexp": "0.1.7", - "proxy-addr": "~2.0.7", - "qs": "6.11.0", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "0.18.0", - "serve-static": "1.15.0", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" @@ -124391,56 +127102,32 @@ "node": ">= 0.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/body-parser": { - "version": "1.20.1", - "license": "MIT", - "dependencies": { - "bytes": "3.1.2", - "content-type": "~1.0.4", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "on-finished": "2.4.1", - "qs": "6.11.0", - "raw-body": "2.5.1", - "type-is": "~1.6.18", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/debug": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/express/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/ms": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/express/node_modules/ms": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/express/node_modules/raw-body": { - "version": "2.5.1", - "license": "MIT", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/fast-redact": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", + "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", "engines": { - "node": ">= 0.8" + "node": ">=6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/fill-range": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/fill-range": { "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, - "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -124448,37 +127135,52 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler": { - "version": "1.2.0", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", - "on-finished": "2.4.1", + "on-finished": "~2.3.0", "parseurl": "~1.3.3", - "statuses": "2.0.1", + "statuses": "~1.5.0", "unpipe": "~1.0.0" }, "engines": { "node": ">= 0.8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler/node_modules/debug": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/finalhandler/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/finalhandler/node_modules/ms": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/finalhandler/node_modules/ms": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/fsevents": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/formidable": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", + "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==", + "deprecated": "Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau", + "dev": true, + "funding": { + "url": "https://ko-fi.com/tunnckoCore/commissions" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/fsevents": { "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, - "license": "MIT", + "hasInstallScript": true, "optional": true, "os": [ "darwin" @@ -124487,10 +127189,11 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/glob-parent": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/glob-parent": { "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, - "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -124498,10 +127201,11 @@ "node": ">= 6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/globals": { - "version": "13.22.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/globals": { + "version": "13.23.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz", + "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==", "dev": true, - "license": "MIT", "dependencies": { "type-fest": "^0.20.2" }, @@ -124512,18 +127216,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/has-flag": { - "version": "3.0.0", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/html-encoding-sniffer": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/html-encoding-sniffer": { "version": "2.0.1", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", + "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", "dev": true, - "license": "MIT", "dependencies": { "whatwg-encoding": "^1.0.5" }, @@ -124531,24 +127228,26 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/http-errors": { - "version": "2.0.0", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">= 0.6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/http-proxy-agent": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/http-proxy-agent": { "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, - "license": "MIT", "dependencies": { "@tootallnate/once": "1", "agent-base": "6", @@ -124558,9 +127257,10 @@ "node": ">= 6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/iconv-lite": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/iconv-lite": { "version": "0.4.24", - "license": "MIT", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -124568,18 +127268,25 @@ "node": ">=0.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/ignore": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ignore": { "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true, - "license": "MIT", "engines": { "node": ">= 4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-binary-path": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-binary-path": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, - "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -124587,10 +127294,11 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-ci": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-ci": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "dev": true, - "license": "MIT", "dependencies": { "ci-info": "^2.0.0" }, @@ -124598,18 +127306,20 @@ "is-ci": "bin.js" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/is-number": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-number": { "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.12.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/istanbul-lib-instrument": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/istanbul-lib-instrument": { "version": "4.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", + "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.7.5", "@istanbuljs/schema": "^0.1.2", @@ -124620,18 +127330,20 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/istanbul-lib-instrument/node_modules/semver": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/istanbul-lib-instrument/node_modules/semver": { "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver.js" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", + "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^26.6.3", "import-local": "^3.0.2", @@ -124644,10 +127356,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-changed-files": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-changed-files": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", + "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "execa": "^4.0.0", @@ -124657,10 +127370,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-cli": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-cli": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", + "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/core": "^26.6.3", "@jest/test-result": "^26.6.2", @@ -124683,10 +127397,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-config": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-config": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", + "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/core": "^7.1.0", "@jest/test-sequencer": "^26.6.3", @@ -124719,10 +127434,11 @@ } } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-diff": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-diff": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "diff-sequences": "^26.6.2", @@ -124733,10 +127449,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-docblock": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-docblock": { "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", + "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", "dev": true, - "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, @@ -124744,10 +127461,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-each": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-each": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", + "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "chalk": "^4.0.0", @@ -124759,10 +127477,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-environment-jsdom": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-environment-jsdom": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", + "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^26.6.2", "@jest/fake-timers": "^26.6.2", @@ -124776,10 +127495,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-environment-node": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-environment-node": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", + "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", "dev": true, - "license": "MIT", "dependencies": { "@jest/environment": "^26.6.2", "@jest/fake-timers": "^26.6.2", @@ -124792,18 +127512,20 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-get-type": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-get-type": { "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-haste-map": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-haste-map": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", + "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "@types/graceful-fs": "^4.1.2", @@ -124826,10 +127548,11 @@ "fsevents": "^2.1.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-jasmine2": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-jasmine2": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", + "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", "dev": true, - "license": "MIT", "dependencies": { "@babel/traverse": "^7.1.0", "@jest/environment": "^26.6.2", @@ -124854,10 +127577,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-leak-detector": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-leak-detector": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", + "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", "dev": true, - "license": "MIT", "dependencies": { "jest-get-type": "^26.3.0", "pretty-format": "^26.6.2" @@ -124866,10 +127590,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-matcher-utils": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-matcher-utils": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", + "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", "dev": true, - "license": "MIT", "dependencies": { "chalk": "^4.0.0", "jest-diff": "^26.6.2", @@ -124880,10 +127605,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-message-util": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-message-util": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", + "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", "dev": true, - "license": "MIT", "dependencies": { "@babel/code-frame": "^7.0.0", "@jest/types": "^26.6.2", @@ -124899,10 +127625,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-mock": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-mock": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", + "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "@types/node": "*" @@ -124911,18 +127638,20 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-regex-util": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-regex-util": { "version": "26.0.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", + "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", "dev": true, - "license": "MIT", "engines": { "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-resolve": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-resolve": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", + "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "chalk": "^4.0.0", @@ -124937,10 +127666,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-resolve-dependencies": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-resolve-dependencies": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", + "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "jest-regex-util": "^26.0.0", @@ -124950,10 +127680,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-runner": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-runner": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", + "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^26.6.2", "@jest/environment": "^26.6.2", @@ -124980,10 +127711,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-runtime": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-runtime": { "version": "26.6.3", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", + "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", "dev": true, - "license": "MIT", "dependencies": { "@jest/console": "^26.6.2", "@jest/environment": "^26.6.2", @@ -125020,10 +127752,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-serializer": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-serializer": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", + "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "graceful-fs": "^4.2.4" @@ -125032,10 +127765,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-snapshot": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-snapshot": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", + "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", "dev": true, - "license": "MIT", "dependencies": { "@babel/types": "^7.0.0", "@jest/types": "^26.6.2", @@ -125058,10 +127792,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-util": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-util": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", + "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "@types/node": "*", @@ -125074,10 +127809,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-validate": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-validate": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", + "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "camelcase": "^6.0.0", @@ -125090,10 +127826,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-watcher": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-watcher": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", + "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", "dev": true, - "license": "MIT", "dependencies": { "@jest/test-result": "^26.6.2", "@jest/types": "^26.6.2", @@ -125107,10 +127844,11 @@ "node": ">= 10.14.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jest-worker": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-worker": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", + "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", "dev": true, - "license": "MIT", "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", @@ -125120,10 +127858,11 @@ "node": ">= 10.13.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jsdom": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jsdom": { "version": "16.7.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", + "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", "dev": true, - "license": "MIT", "dependencies": { "abab": "^2.0.5", "acorn": "^8.2.4", @@ -125165,10 +127904,11 @@ } } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/jsdom/node_modules/acorn": { - "version": "8.10.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jsdom/node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", "dev": true, - "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -125176,9 +127916,11 @@ "node": ">=0.4.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/lru-cache": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/lru-cache": { "version": "6.0.0", - "license": "ISC", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, "dependencies": { "yallist": "^4.0.0" }, @@ -125186,9 +127928,10 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/mime": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/mime": { "version": "1.6.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", "bin": { "mime": "cli.js" }, @@ -125196,14 +127939,17 @@ "node": ">=4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/ms": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ms": { "version": "2.1.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/node-notifier": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/node-notifier": { "version": "8.0.2", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", + "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", "dev": true, - "license": "MIT", "optional": true, "dependencies": { "growly": "^1.3.0", @@ -125214,21 +127960,23 @@ "which": "^2.0.2" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon": { - "version": "2.0.22", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon": { + "version": "2.0.15", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.15.tgz", + "integrity": "sha512-gdHMNx47Gw7b3kWxJV64NI+Q5nfl0y5DgDbiVtShiwa7Z0IZ07Ll4RLFo6AjrhzMtoEZn5PDE3/c2AbVsiCkpA==", "dev": true, - "license": "MIT", + "hasInstallScript": true, "dependencies": { "chokidar": "^3.5.2", "debug": "^3.2.7", "ignore-by-default": "^1.0.1", - "minimatch": "^3.1.2", + "minimatch": "^3.0.4", "pstree.remy": "^1.1.8", "semver": "^5.7.1", - "simple-update-notifier": "^1.0.7", "supports-color": "^5.5.0", "touch": "^3.1.0", - "undefsafe": "^2.0.5" + "undefsafe": "^2.0.5", + "update-notifier": "^5.1.0" }, "bin": { "nodemon": "bin/nodemon.js" @@ -125241,26 +127989,38 @@ "url": "https://opencollective.com/nodemon" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/debug": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/debug": { "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, - "license": "MIT", "dependencies": { "ms": "^2.1.1" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/semver": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/semver": { "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, - "license": "ISC", "bin": { "semver": "bin/semver" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/nodemon/node_modules/supports-color": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/supports-color": { "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, - "license": "MIT", "dependencies": { "has-flag": "^3.0.0" }, @@ -125268,20 +128028,11 @@ "node": ">=4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/on-finished": { - "version": "2.4.1", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/p-each-series": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/p-each-series": { "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", + "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" }, @@ -125289,27 +128040,57 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/parse5": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/parse5": { "version": "6.0.1", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", + "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/path-key": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/path-key": { "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/path-to-regexp": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/path-to-regexp": { "version": "0.1.7", - "license": "MIT" + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/pretty-format": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/pino": { + "version": "8.16.1", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.16.1.tgz", + "integrity": "sha512-3bKsVhBmgPjGV9pyn4fO/8RtoVDR8ssW1ev819FsRXlRNgW8gR/9Kx+gCK4UPWd4JjrRDLWpzd/pb1AyWm3MGA==", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.1.1", + "on-exit-leak-free": "^2.1.0", + "pino-abstract-transport": "v1.1.0", + "pino-std-serializers": "^6.0.0", + "process-warning": "^2.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.2.0", + "safe-stable-stringify": "^2.3.1", + "sonic-boom": "^3.7.0", + "thread-stream": "^2.0.0" + }, + "bin": { + "pino": "bin.js" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/pino-std-serializers": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", + "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/pretty-format": { "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", "dev": true, - "license": "MIT", "dependencies": { "@jest/types": "^26.6.2", "ansi-regex": "^5.0.0", @@ -125320,33 +128101,35 @@ "node": ">= 10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/punycode": { - "version": "2.3.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/qs": { - "version": "6.11.0", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.0.4" - }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", "engines": { "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/raw-body": { - "version": "2.5.2", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/quick-format-unescaped": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz", + "integrity": "sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", + "bytes": "3.1.0", + "http-errors": "1.7.2", "iconv-lite": "0.4.24", "unpipe": "1.0.0" }, @@ -125354,15 +128137,17 @@ "node": ">= 0.8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/react-is": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/react-is": { "version": "17.0.2", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", + "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/readdirp": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/readdirp": { "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, - "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -125370,10 +128155,29 @@ "node": ">=8.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/saxes": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/redis": { + "version": "4.6.11", + "resolved": "https://registry.npmjs.org/redis/-/redis-4.6.11.tgz", + "integrity": "sha512-kg1Lt4NZLYkAjPOj/WcyIGWfZfnyfKo1Wg9YKVSlzhFwxpFIl3LYI8BWy1Ab963LLDsTz2+OwdsesHKljB3WMQ==", + "dependencies": { + "@redis/bloom": "1.2.0", + "@redis/client": "1.5.12", + "@redis/graph": "1.1.1", + "@redis/json": "1.0.6", + "@redis/search": "1.1.6", + "@redis/time-series": "1.0.5" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/saxes": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", + "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", "dev": true, - "license": "ISC", "dependencies": { "xmlchars": "^2.2.0" }, @@ -125381,9 +128185,11 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/semver": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/semver": { "version": "7.5.4", - "license": "ISC", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -125394,60 +128200,71 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send": { - "version": "0.18.0", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", "dependencies": { "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", + "depd": "~1.1.2", + "destroy": "~1.0.4", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "0.5.2", - "http-errors": "2.0.0", + "http-errors": "~1.7.2", "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "2.4.1", + "ms": "2.1.1", + "on-finished": "~2.3.0", "range-parser": "~1.2.1", - "statuses": "2.0.1" + "statuses": "~1.5.0" }, "engines": { "node": ">= 0.8.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send/node_modules/debug": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/send/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/send/node_modules/debug/node_modules/ms": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/send/node_modules/debug/node_modules/ms": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/serve-static": { - "version": "1.15.0", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/send/node_modules/ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.18.0" + "send": "0.17.1" }, "engines": { "node": ">= 0.8.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/setprototypeof": { - "version": "1.2.0", - "license": "ISC" + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/shebang-command": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/shebang-command": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, - "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -125455,91 +128272,129 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/shebang-regex": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/shebang-regex": { "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "license": "MIT", "engines": { "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/simple-update-notifier": { - "version": "1.1.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "license": "MIT", - "dependencies": { - "semver": "~7.0.0" - }, "engines": { - "node": ">=8.10.0" + "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/simple-update-notifier/node_modules/semver": { - "version": "7.0.0", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/sonic-boom": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", + "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", + "dependencies": { + "atomic-sleep": "^1.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/slash": { - "version": "3.0.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "MIT", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/source-map": { - "version": "0.7.4", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", + "engines": { + "node": ">= 0.6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-6.1.0.tgz", + "integrity": "sha512-OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg==", + "deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at .", "dev": true, - "license": "BSD-3-Clause", + "dependencies": { + "component-emitter": "^1.3.0", + "cookiejar": "^2.1.2", + "debug": "^4.1.1", + "fast-safe-stringify": "^2.0.7", + "form-data": "^3.0.0", + "formidable": "^1.2.2", + "methods": "^1.1.2", + "mime": "^2.4.6", + "qs": "^6.9.4", + "readable-stream": "^3.6.0", + "semver": "^7.3.2" + }, "engines": { - "node": ">= 8" + "node": ">= 7.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/statuses": { - "version": "2.0.1", - "license": "MIT", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent/node_modules/mime": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", + "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "dev": true, + "bin": { + "mime": "cli.js" + }, "engines": { - "node": ">= 0.8" + "node": ">=4.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supertest": { - "version": "6.3.3", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent/node_modules/qs": { + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", "dev": true, - "license": "MIT", "dependencies": { - "methods": "^1.1.2", - "superagent": "^8.0.5" + "side-channel": "^1.0.4" }, "engines": { - "node": ">=6.4.0" + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supports-color": { - "version": "7.2.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/supertest": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.1.3.tgz", + "integrity": "sha512-v2NVRyP73XDewKb65adz+yug1XMtmvij63qIWHZzSX8tp6wiq6xBLUy4SUAd2NII6wIipOmHT/FD9eicpJwdgQ==", "dev": true, - "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "methods": "^1.1.2", + "superagent": "^6.1.0" }, "engines": { - "node": ">=8" + "node": ">=6.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/supports-color/node_modules/has-flag": { - "version": "4.0.0", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, - "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, "engines": { "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/to-regex-range": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/to-regex-range": { "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, - "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -125547,10 +128402,19 @@ "node": ">=8.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/tr46": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "engines": { + "node": ">=0.6" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/tr46": { "version": "2.1.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", + "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", "dev": true, - "license": "MIT", "dependencies": { "punycode": "^2.1.1" }, @@ -125558,10 +128422,11 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/type-fest": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/type-fest": { "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, - "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -125569,19 +128434,34 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/uuid": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/typescript": { + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.3.tgz", + "integrity": "sha512-eVYaEHALSt+s9LbvgEv4Ef+Tdq7hBiIZgii12xXJnukryt3pMgJf6aKhoCZ3FWQsu6sydEnkg11fYXLzhLBjeQ==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/uuid": { "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, - "license": "MIT", "optional": true, "bin": { "uuid": "dist/bin/uuid" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/v8-to-istanbul": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/v8-to-istanbul": { "version": "7.1.2", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", + "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", "dev": true, - "license": "ISC", "dependencies": { "@types/istanbul-lib-coverage": "^2.0.1", "convert-source-map": "^1.6.0", @@ -125591,10 +128471,20 @@ "node": ">=10.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/w3c-xmlserializer": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/w3c-xmlserializer": { "version": "2.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", + "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", "dev": true, - "license": "MIT", "dependencies": { "xml-name-validator": "^3.0.0" }, @@ -125602,31 +128492,35 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/webidl-conversions": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/webidl-conversions": { "version": "6.1.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", + "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", "dev": true, - "license": "BSD-2-Clause", "engines": { "node": ">=10.4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-encoding": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-encoding": { "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", "dev": true, - "license": "MIT", "dependencies": { "iconv-lite": "0.4.24" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-mimetype": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-mimetype": { "version": "2.3.0", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/whatwg-url": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-url": { "version": "8.7.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", + "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", "dev": true, - "license": "MIT", "dependencies": { "lodash": "^4.7.0", "tr46": "^2.1.0", @@ -125636,10 +128530,11 @@ "node": ">=10" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/write-file-atomic": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/write-file-atomic": { "version": "3.0.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", + "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", "dev": true, - "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", "is-typedarray": "^1.0.0", @@ -125647,24 +128542,29 @@ "typedarray-to-buffer": "^3.1.5" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/xml-name-validator": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/xml-name-validator": { "version": "3.0.0", - "dev": true, - "license": "Apache-2.0" + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/y18n": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/y18n": { "version": "4.0.3", - "dev": true, - "license": "ISC" + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yallist": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yallist": { "version": "4.0.0", - "license": "ISC" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs": { "version": "15.4.1", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", + "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", "dev": true, - "license": "MIT", "dependencies": { "cliui": "^6.0.0", "decamelize": "^1.2.0", @@ -125682,10 +128582,11 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs-parser": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs-parser": { "version": "18.1.3", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", + "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", "dev": true, - "license": "ISC", "dependencies": { "camelcase": "^5.0.0", "decamelize": "^1.2.0" @@ -125694,10 +128595,11 @@ "node": ">=6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/node_modules/yargs-parser/node_modules/camelcase": { + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs-parser/node_modules/camelcase": { "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -133034,7 +135936,7 @@ "packages/embed": { "version": "1.5.52", "dependencies": { - "@audius/fetch-nft": "^0.1.8", + "@audius/fetch-nft": "0.1.8", "@audius/harmony": "*", "@audius/sdk": "*", "@audius/stems": "*", diff --git a/packages/discovery-provider/nginx_conf/nginx.conf b/packages/discovery-provider/nginx_conf/nginx.conf index d34f6648cc6..91d2641bb69 100644 --- a/packages/discovery-provider/nginx_conf/nginx.conf +++ b/packages/discovery-provider/nginx_conf/nginx.conf @@ -306,6 +306,13 @@ http { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + location ~ ^/solana(/.*)?$ { + resolver 127.0.0.11 valid=30s; + proxy_pass http://solana-relay:6002/solana$1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location ~* ^/(nethermind|chain)/peer { add_header 'Access-Control-Allow-Origin' '*'; From 6188e58cb065127b53f18b142f1192741c31a446 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:25:27 -0800 Subject: [PATCH 05/17] update readme --- packages/discovery-provider/plugins/pedalboard/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/discovery-provider/plugins/pedalboard/README.md b/packages/discovery-provider/plugins/pedalboard/README.md index 65a82f1df82..b45629f1d04 100644 --- a/packages/discovery-provider/plugins/pedalboard/README.md +++ b/packages/discovery-provider/plugins/pedalboard/README.md @@ -49,7 +49,7 @@ npm i ./packages/storage # Building and running apps in isolation -At the root of this project is a [docker compose](./docker-compose.yml) file that houses all of the applications. Building and running your new application alongside the other is as simple as following the `app-template` example. +Inside `/dev-tools/compose` is a [docker compose for pedalboard](../../../../dev-tools/compose/docker-compose.pedalboard.dev.yml) file that houses all of the applications. Building and running your new application alongside the other is as simple as following the `app-template` example. 1. Add your new service by copying what the `app-template` does. From 1caa1c56839ecd98a7dee4180aff8c2c2abc52ac Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:46:24 -0800 Subject: [PATCH 06/17] check signature --- .../apps/solana-relay/src/routes/cache/cache.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts index c54b810f745..2e2495dfcb7 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts @@ -2,6 +2,8 @@ import { NextFunction, Request, Response } from 'express' import { BadRequestError } from '../../errors' import { cacheTransaction } from '../../redis' import { logger } from '../../logger' +import { VersionedTransaction } from '@solana/web3.js' +import base58 from 'bs58' type RequestBody = { signature: string @@ -18,6 +20,16 @@ export const cache = async ( if (!signature || !transaction) { throw new BadRequestError() } + const decoded = Buffer.from(transaction, 'base64') + const tx = VersionedTransaction.deserialize(decoded) + const sig = tx.signatures[0] + if (!sig) { + throw new BadRequestError('No signature on transaction') + } + const txSignature = base58.encode(sig) + if (txSignature !== signature) { + throw new BadRequestError('Invalid signature') + } await cacheTransaction(signature, transaction) res.status(200).send({ signature, transaction }) logger.info(`cached transaction: ${signature}`) From c22e2f06d0ac012dca9943028d597cd7edfb9d59 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:48:41 -0800 Subject: [PATCH 07/17] improve plugin devex --- package-lock.json | 1738 +---------------- .../pedalboard/apps/app-template/package.json | 1 + .../pedalboard/apps/relay/package.json | 1 + .../pedalboard/apps/sla-auditor/package.json | 1 + .../pedalboard/apps/solana-relay/package.json | 17 +- .../trending-challenge-rewards/package.json | 1 + .../plugins/pedalboard/docker/Dockerfile.dev | 2 +- 7 files changed, 115 insertions(+), 1646 deletions(-) diff --git a/package-lock.json b/package-lock.json index f056e864cb5..0691779552b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -125786,7 +125786,6 @@ "@types/body-parser": "1.19.0", "@types/cors": "2.8.10", "@types/express": "4.17.12", - "@types/jest": "26.0.22", "@types/morgan": "1.9.2", "@types/node": "15.12.2", "@types/supertest": "2.0.11", @@ -125794,10 +125793,7 @@ "esbuild-register": "3.3.2", "eslint": "7.32.0", "eslint-config-custom-server": "*", - "jest": "26.6.3", - "jest-presets": "*", - "nodemon": "2.0.15", - "supertest": "6.1.3", + "ts-node": "10.7.0", "tsconfig": "*", "typescript": "4.5.3" } @@ -125811,6 +125807,18 @@ "@babel/highlight": "^7.10.4" } }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-consumer": "0.8.0" + }, + "engines": { + "node": ">=12" + } + }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@eslint/eslintrc": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", @@ -125845,251 +125853,6 @@ "node": ">=10.10.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/console": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", - "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^26.6.2", - "jest-util": "^26.6.2", - "slash": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/core": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", - "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/reporters": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-changed-files": "^26.6.2", - "jest-config": "^26.6.3", - "jest-haste-map": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-resolve-dependencies": "^26.6.3", - "jest-runner": "^26.6.3", - "jest-runtime": "^26.6.3", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "jest-watcher": "^26.6.2", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/environment": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", - "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/fake-timers": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", - "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@sinonjs/fake-timers": "^6.0.1", - "@types/node": "*", - "jest-message-util": "^26.6.2", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/globals": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", - "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", - "dev": true, - "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/types": "^26.6.2", - "expect": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/reporters": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", - "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.4", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^4.0.3", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "jest-haste-map": "^26.6.2", - "jest-resolve": "^26.6.2", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^7.0.0" - }, - "engines": { - "node": ">= 10.14.2" - }, - "optionalDependencies": { - "node-notifier": "^8.0.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/source-map": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", - "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.4", - "source-map": "^0.6.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/test-result": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", - "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/test-sequencer": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", - "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", - "dev": true, - "dependencies": { - "@jest/test-result": "^26.6.2", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^26.6.2", - "jest-runner": "^26.6.3", - "jest-runtime": "^26.6.3" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/transform": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", - "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", - "dev": true, - "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^26.6.2", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-util": "^26.6.2", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@jest/types": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", - "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@sinonjs/fake-timers": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", - "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", @@ -126118,16 +125881,6 @@ "@types/serve-static": "*" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/jest": { - "version": "26.0.22", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.22.tgz", - "integrity": "sha512-eeWwWjlqxvBxc4oQdkueW5OF/gtfSceKk4OnOAGlUSwS/liBRtZppbJuz1YkgbrbfGOoeBHun9fOvXnjNwrSOw==", - "dev": true, - "dependencies": { - "jest-diff": "^26.0.0", - "pretty-format": "^26.0.0" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/morgan": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/@types/morgan/-/morgan-1.9.2.tgz", @@ -126152,25 +125905,6 @@ "@types/superagent": "*" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@types/yargs": { - "version": "15.0.19", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.19.tgz", - "integrity": "sha512-2XUaGVmyQjgyAZldf0D0c14vvo/yv0MhQBSTJcejMMaitsn3nxCB6TmH4G0ZQf+uxROOa9mpanoSm8h6SG/1ZA==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -126202,80 +125936,11 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-jest": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", - "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", - "dev": true, - "dependencies": { - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/babel__core": "^7.1.7", - "babel-plugin-istanbul": "^6.0.0", - "babel-preset-jest": "^26.6.2", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "slash": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-plugin-jest-hoist": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", - "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/babel-preset-jest": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", - "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^26.6.2", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": ">= 10.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" - } + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/bn.js": { "version": "4.12.0", @@ -126315,18 +125980,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/bytes": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", @@ -126335,18 +125988,6 @@ "node": ">= 0.8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -126363,56 +126004,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cjs-module-lexer": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", - "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/content-disposition": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", @@ -126458,66 +126049,13 @@ "node": ">= 8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/diff-sequences": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", - "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", - "dev": true, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/emittery": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", - "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" + "node": ">=0.3.1" } }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/esbuild": { @@ -127045,23 +126583,6 @@ "ethereumjs-util": "^6.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/expect": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", - "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "ansi-styles": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-regex-util": "^26.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/express": { "version": "4.17.1", "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", @@ -127123,18 +126644,6 @@ "node": ">=6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/finalhandler": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", @@ -127165,30 +126674,6 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/formidable": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", - "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==", - "deprecated": "Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau", - "dev": true, - "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", @@ -127216,18 +126701,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/http-errors": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", @@ -127243,20 +126716,6 @@ "node": ">= 0.6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -127282,650 +126741,16 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "dependencies": { - "binary-extensions": "^2.0.0" + "yallist": "^4.0.0" }, "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", - "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", - "dev": true, - "dependencies": { - "@jest/core": "^26.6.3", - "import-local": "^3.0.2", - "jest-cli": "^26.6.3" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-changed-files": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", - "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "execa": "^4.0.0", - "throat": "^5.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-cli": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", - "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", - "dev": true, - "dependencies": { - "@jest/core": "^26.6.3", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "import-local": "^3.0.2", - "is-ci": "^2.0.0", - "jest-config": "^26.6.3", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "prompts": "^2.0.1", - "yargs": "^15.4.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-config": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", - "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.1.0", - "@jest/test-sequencer": "^26.6.3", - "@jest/types": "^26.6.2", - "babel-jest": "^26.6.3", - "chalk": "^4.0.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-environment-jsdom": "^26.6.2", - "jest-environment-node": "^26.6.2", - "jest-get-type": "^26.3.0", - "jest-jasmine2": "^26.6.3", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "micromatch": "^4.0.2", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - }, - "peerDependencies": { - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - } - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-diff": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", - "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-docblock": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", - "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-each": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", - "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-util": "^26.6.2", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-environment-jsdom": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", - "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", - "dev": true, - "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2", - "jsdom": "^16.4.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-environment-node": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", - "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", - "dev": true, - "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-get-type": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", - "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", - "dev": true, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-haste-map": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", - "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^26.0.0", - "jest-serializer": "^26.6.2", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7" - }, - "engines": { - "node": ">= 10.14.2" - }, - "optionalDependencies": { - "fsevents": "^2.1.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-jasmine2": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", - "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.1.0", - "@jest/environment": "^26.6.2", - "@jest/source-map": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^26.6.2", - "is-generator-fn": "^2.0.0", - "jest-each": "^26.6.2", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-runtime": "^26.6.3", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "pretty-format": "^26.6.2", - "throat": "^5.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-leak-detector": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", - "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", - "dev": true, - "dependencies": { - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-matcher-utils": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", - "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-message-util": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", - "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "@jest/types": "^26.6.2", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "micromatch": "^4.0.2", - "pretty-format": "^26.6.2", - "slash": "^3.0.0", - "stack-utils": "^2.0.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-mock": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", - "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-regex-util": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", - "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", - "dev": true, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-resolve": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", - "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^26.6.2", - "read-pkg-up": "^7.0.1", - "resolve": "^1.18.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-resolve-dependencies": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", - "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-snapshot": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-runner": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", - "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/environment": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.7.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-config": "^26.6.3", - "jest-docblock": "^26.0.0", - "jest-haste-map": "^26.6.2", - "jest-leak-detector": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-resolve": "^26.6.2", - "jest-runtime": "^26.6.3", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "source-map-support": "^0.5.6", - "throat": "^5.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-runtime": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", - "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/globals": "^26.6.2", - "@jest/source-map": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0", - "cjs-module-lexer": "^0.6.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-config": "^26.6.3", - "jest-haste-map": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-mock": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "slash": "^3.0.0", - "strip-bom": "^4.0.0", - "yargs": "^15.4.1" - }, - "bin": { - "jest-runtime": "bin/jest-runtime.js" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-serializer": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", - "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", - "dev": true, - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.4" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-snapshot": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", - "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0", - "@jest/types": "^26.6.2", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.0.0", - "chalk": "^4.0.0", - "expect": "^26.6.2", - "graceful-fs": "^4.2.4", - "jest-diff": "^26.6.2", - "jest-get-type": "^26.3.0", - "jest-haste-map": "^26.6.2", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-resolve": "^26.6.2", - "natural-compare": "^1.4.0", - "pretty-format": "^26.6.2", - "semver": "^7.3.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-util": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", - "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "micromatch": "^4.0.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-validate": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", - "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "camelcase": "^6.0.0", - "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", - "leven": "^3.1.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-watcher": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", - "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", - "dev": true, - "dependencies": { - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "jest-util": "^26.6.2", - "string-length": "^4.0.1" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", - "dev": true, - "dependencies": { - "@types/node": "*", - "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">= 10.13.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/jsdom/node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "node": ">=10" } }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/mime": { @@ -127939,113 +126764,6 @@ "node": ">=4" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/node-notifier": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", - "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", - "dev": true, - "optional": true, - "dependencies": { - "growly": "^1.3.0", - "is-wsl": "^2.2.0", - "semver": "^7.3.2", - "shellwords": "^0.1.1", - "uuid": "^8.3.0", - "which": "^2.0.2" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon": { - "version": "2.0.15", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.15.tgz", - "integrity": "sha512-gdHMNx47Gw7b3kWxJV64NI+Q5nfl0y5DgDbiVtShiwa7Z0IZ07Ll4RLFo6AjrhzMtoEZn5PDE3/c2AbVsiCkpA==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "chokidar": "^3.5.2", - "debug": "^3.2.7", - "ignore-by-default": "^1.0.1", - "minimatch": "^3.0.4", - "pstree.remy": "^1.1.8", - "semver": "^5.7.1", - "supports-color": "^5.5.0", - "touch": "^3.1.0", - "undefsafe": "^2.0.5", - "update-notifier": "^5.1.0" - }, - "bin": { - "nodemon": "bin/nodemon.js" - }, - "engines": { - "node": ">=8.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/nodemon" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/nodemon/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -128086,30 +126804,6 @@ "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/pretty-format": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", - "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": ">= 10" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/qs": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", @@ -128137,24 +126831,6 @@ "node": ">= 0.8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/redis": { "version": "4.6.11", "resolved": "https://registry.npmjs.org/redis/-/redis-4.6.11.tgz", @@ -128173,18 +126849,6 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -128263,119 +126927,38 @@ "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/sonic-boom": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", - "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", - "dependencies": { - "atomic-sleep": "^1.0.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/statuses": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-6.1.0.tgz", - "integrity": "sha512-OUDHEssirmplo3F+1HWKUrUjvnQuA+nZI6i/JJBdXb5eq9IyEQwPyPpqND+SSsxf6TygpBEkUjISVRN4/VOpeg==", - "deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at .", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "dependencies": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.2", - "debug": "^4.1.1", - "fast-safe-stringify": "^2.0.7", - "form-data": "^3.0.0", - "formidable": "^1.2.2", - "methods": "^1.1.2", - "mime": "^2.4.6", - "qs": "^6.9.4", - "readable-stream": "^3.6.0", - "semver": "^7.3.2" + "shebang-regex": "^3.0.0" }, "engines": { - "node": ">= 7.0.0" + "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, - "bin": { - "mime": "cli.js" - }, "engines": { - "node": ">=4.0.0" + "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/superagent/node_modules/qs": { - "version": "6.11.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", - "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", - "dev": true, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/sonic-boom": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", + "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", "dependencies": { - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "atomic-sleep": "^1.0.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/supertest": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/supertest/-/supertest-6.1.3.tgz", - "integrity": "sha512-v2NVRyP73XDewKb65adz+yug1XMtmvij63qIWHZzSX8tp6wiq6xBLUy4SUAd2NII6wIipOmHT/FD9eicpJwdgQ==", - "dev": true, - "dependencies": { - "methods": "^1.1.2", - "superagent": "^6.1.0" - }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", "engines": { - "node": ">=6.0.0" + "node": ">= 0.6" } }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/supports-color": { @@ -128390,18 +126973,6 @@ "node": ">=8" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/toidentifier": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", @@ -128410,16 +126981,68 @@ "node": ">=0.6" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ts-node": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", + "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", "dev": true, "dependencies": { - "punycode": "^2.1.1" + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.0", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ts-node/node_modules/acorn": { + "version": "8.11.2", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", + "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", + "dev": true, + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=8" + "node": ">=0.4.0" + } + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ts-node/node_modules/acorn-walk": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.0.tgz", + "integrity": "sha512-FS7hV565M5l1R08MXqo8odwMTB02C2UqzB17RVgu9EyuYFBqJZ3/ZY97sQD5FewVu1UyDFc1yztUDrAwT0EypA==", + "dev": true, + "engines": { + "node": ">=0.4.0" } }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/type-fest": { @@ -128447,163 +127070,12 @@ "node": ">=4.2.0" } }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "optional": true, - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/v8-to-istanbul": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", - "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yargs-parser/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards": { "name": "@pedalboard/trending-challenge-rewards", "version": "0.0.6", diff --git a/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json b/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json index 8bbf77be532..cb6c545370a 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json @@ -8,6 +8,7 @@ "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", + "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json index 89374a255ce..7e98b7cfa86 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json @@ -11,6 +11,7 @@ "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "sandbox": "npx ts-node ./src/scripts/sandbox.ts", "start": "node ./dist/index.js", + "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json b/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json index 7597ff8644b..b5553649d49 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json @@ -9,6 +9,7 @@ "format": "prettier --write \"**/*.{ts,tsx,md}\"", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", + "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json index 593e9787d41..0ce85623b07 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json @@ -3,13 +3,9 @@ "version": "0.0.0", "private": true, "scripts": { - "build": "tsc", - "watch": "tsc -w", - "clean": "rm -rf dist", - "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", - "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", - "start": "node ./dist/index.js", - "test": "jest --detectOpenHandles" + "start": "ts-node ./src/index.ts", + "start:dev": "ts-node-dev ./src/index.ts", + "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"" }, "jest": { "preset": "jest-presets/jest/node" @@ -33,7 +29,6 @@ "@types/body-parser": "1.19.0", "@types/cors": "2.8.10", "@types/express": "4.17.12", - "@types/jest": "26.0.22", "@types/morgan": "1.9.2", "@types/node": "15.12.2", "@types/supertest": "2.0.11", @@ -41,11 +36,9 @@ "esbuild-register": "3.3.2", "eslint": "7.32.0", "eslint-config-custom-server": "*", - "jest": "26.6.3", - "jest-presets": "*", - "nodemon": "2.0.15", - "supertest": "6.1.3", "tsconfig": "*", + "ts-node": "10.7.0", + "ts-node-dev": "2.0.0", "typescript": "4.5.3" } } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json b/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json index 7ed6588cb00..4b4ded78c04 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json @@ -8,6 +8,7 @@ "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", + "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev index fe32a8c91c9..9219c2016d5 100644 --- a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev +++ b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev @@ -8,4 +8,4 @@ ENV APP_NAME=${app_name} WORKDIR /app/packages/discovery-provider/plugins/pedalboard/apps/${APP_NAME} -CMD npm run start +CMD npm run start:dev From f56f67841be8ee8a8e22400e770826d5bc064d24 Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:49:05 -0800 Subject: [PATCH 08/17] add defaults to config --- .../apps/solana-relay/src/config.ts | 34 +++++++++++++++---- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts index 91e2068196b..1b7064072f2 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts @@ -28,12 +28,34 @@ const readConfig = () => { default: 'postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_1' }), - audius_solana_waudio_mint: str({ default: '' }), - audius_solana_usdc_mint: str({ default: '' }), - audius_solana_user_bank_program_address: str({ default: '' }), - audius_solana_rewards_manager_program_address: str({ default: '' }), - audius_solana_rewards_manager_account: str({ default: '' }), - audius_solana_fee_payer_wallets: json({ default: [] }), + audius_solana_waudio_mint: str({ + default: '37RCjhgV1qGV2Q54EHFScdxZ22ydRMdKMtVgod47fDP3' + }), + audius_solana_usdc_mint: str({ + default: '26Q7gP8UfkDzi7GMFEQxTJaNJ8D2ybCUjex58M5MLu8y' + }), + audius_solana_user_bank_program_address: str({ + default: 'testHKV1B56fbvop4w6f2cTGEub9dRQ2Euta5VmqdX9' + }), + audius_solana_rewards_manager_program_address: str({ + default: 'testLsJKtyABc9UXJF8JWFKf1YH4LmqCWBC42c6akPb' + }), + audius_solana_rewards_manager_account: str({ + default: 'DJPzVothq58SmkpRb1ATn5ddN2Rpv1j2TcGvM3XsHf1c' + }), + audius_solana_fee_payer_wallets: json({ + default: [ + { + privateKey: [ + 170, 161, 84, 122, 118, 210, 128, 213, 96, 185, 143, 218, 54, 254, + 217, 204, 157, 175, 137, 71, 202, 108, 51, 242, 21, 50, 56, 77, 54, + 116, 103, 56, 251, 64, 77, 100, 199, 88, 103, 189, 42, 163, 67, 251, + 101, 204, 7, 59, 70, 109, 113, 50, 209, 154, 55, 164, 227, 108, 203, + 146, 121, 148, 85, 119 + ] + } + ] + }), solana_relay_server_host: str({ default: '0.0.0.0' }), solana_relay_server_port: num({ default: 6002 }), AUDIUS_REDIS_URL: str({ default: 'redis://identity-service-redis:6379/00' }) From 2b4bbf76c22e0aff95fe404c54ced9b70a4ac31a Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:09:34 -0800 Subject: [PATCH 09/17] Run an instance of solana-relay and redis for each DN replica --- .../compose/docker-compose.discovery.yml | 15 ++++++++++- .../docker-compose.pedalboard.prod.yml | 4 ++- dev-tools/compose/docker-compose.yml | 8 ++++++ dev-tools/compose/nginx_ingress.conf | 16 +++++++++++- dev-tools/startup/discovery-provider.sh | 4 +++ .../apps/solana-relay/src/config.ts | 16 ++++++++---- .../plugins/pedalboard/docker/Dockerfile.dev | 2 +- .../pedalboard/docker/setup-replica-env.sh | 26 +++++++++++++++++++ 8 files changed, 82 insertions(+), 9 deletions(-) create mode 100644 packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh diff --git a/dev-tools/compose/docker-compose.discovery.yml b/dev-tools/compose/docker-compose.discovery.yml index 4c21b6f3543..edf99f7a235 100644 --- a/dev-tools/compose/docker-compose.discovery.yml +++ b/dev-tools/compose/docker-compose.discovery.yml @@ -2,13 +2,24 @@ version: '3.9' services: + discovery-provider-redis: + image: redis:7.0 + command: redis-server + healthcheck: + test: ['CMD', 'redis-cli', 'PING'] + interval: 10s + timeout: 5s + deploy: + mode: replicated + replicas: '${DISCOVERY_PROVIDER_REPLICAS}' + discovery-provider-notifications: build: context: ${PROJECT_ROOT}/packages/discovery-provider/plugins/notifications args: git_sha: '${GIT_COMMIT}' environment: - AUDIUS_REDIS_URL: 'redis://identity-service-redis:6379/00' + AUDIUS_REDIS_URL: 'redis://discovery-provider-redis:6379/00' DN_DB_URL: 'postgresql://postgres:postgres@db:5432/discovery_provider_1' IDENTITY_DB_URL: 'postgresql://postgres:postgres@db:5432/identity_service' volumes: @@ -125,6 +136,8 @@ services: condition: service_healthy discovery-provider-elasticsearch: condition: '${ELASTICSEARCH_CONDITION}' + discovery-provider-redis: + condition: service_healthy deploy: mode: replicated replicas: '${DISCOVERY_PROVIDER_REPLICAS}' diff --git a/dev-tools/compose/docker-compose.pedalboard.prod.yml b/dev-tools/compose/docker-compose.pedalboard.prod.yml index 30d20323aa4..40e52cb29fe 100644 --- a/dev-tools/compose/docker-compose.pedalboard.prod.yml +++ b/dev-tools/compose/docker-compose.pedalboard.prod.yml @@ -42,7 +42,6 @@ services: restart: always solana-relay: - container_name: solana-relay build: context: ${PROJECT_ROOT} dockerfile: ${PROJECT_ROOT}/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.prod @@ -58,6 +57,9 @@ services: restart: always profiles: - pedalboard + deploy: + mode: replicated + replicas: '${DISCOVERY_PROVIDER_REPLICAS}' sla-auditor: container_name: sla-auditor diff --git a/dev-tools/compose/docker-compose.yml b/dev-tools/compose/docker-compose.yml index 1e0fa79ed61..e4bff47c02e 100644 --- a/dev-tools/compose/docker-compose.yml +++ b/dev-tools/compose/docker-compose.yml @@ -18,6 +18,8 @@ x-common: &common - 'audius-protocol-creator-node-2:host-gateway' - 'audius-protocol-creator-node-3:host-gateway' - 'audius-protocol-discovery-provider-1:host-gateway' + - 'audius-protocol-discovery-provider-2:host-gateway' + - 'audius-protocol-discovery-provider-3:host-gateway' - 'audius-protocol-identity-service-1:host-gateway' - 'audius-protocol-solana-test-validator-1:host-gateway' - 'audius-protocol-eth-ganache-1:host-gateway' @@ -103,6 +105,12 @@ services: # Discovery + discovery-provider-redis: + extends: + file: docker-compose.discovery.yml + service: discovery-provider-redis + <<: *common + discovery-provider-notifications: extends: file: docker-compose.discovery.yml diff --git a/dev-tools/compose/nginx_ingress.conf b/dev-tools/compose/nginx_ingress.conf index d60b284f399..203818d53fd 100644 --- a/dev-tools/compose/nginx_ingress.conf +++ b/dev-tools/compose/nginx_ingress.conf @@ -32,7 +32,7 @@ server { location ~ ^/solana(/.*)?$ { resolver 127.0.0.11 valid=30s; - proxy_pass http://solana-relay:6002/solana$1; + proxy_pass http://audius-protocol-solana-relay-1:6002/solana$1; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } @@ -74,6 +74,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + location ~ ^/solana(/.*)?$ { + resolver 127.0.0.11 valid=30s; + proxy_pass http://audius-protocol-solana-relay-2:6002/solana$1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location ^~ /healthz { resolver 127.0.0.11 valid=30s; proxy_pass http://healthz; @@ -109,6 +116,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + location ~ ^/solana(/.*)?$ { + resolver 127.0.0.11 valid=30s; + proxy_pass http://audius-protocol-solana-relay-3:6002/solana$1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location ^~ /healthz { resolver 127.0.0.11 valid=30s; proxy_pass http://healthz; diff --git a/dev-tools/startup/discovery-provider.sh b/dev-tools/startup/discovery-provider.sh index c7a45a9978a..a17292bf912 100644 --- a/dev-tools/startup/discovery-provider.sh +++ b/dev-tools/startup/discovery-provider.sh @@ -5,6 +5,10 @@ if [[ "$audius_db_url" == "" ]]; then export audius_db_url_read_replica="postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_${replica}" fi +if [[ "$audius_redis_url" == "" ]]; then + export audius_redis_url="redis://audius-protocol-discovery-provider-redis-${replica}:6379/00" +fi + export audius_enable_rsyslog=false export audius_discprov_url="http://audius-protocol-discovery-provider-${replica}" diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts index 1b7064072f2..320cf691fab 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts @@ -21,13 +21,19 @@ const readConfig = () => { // validate env const env = cleanEnv(process.env, { - audius_solana_endpoint: str({ - default: 'http://solana-test-validator:8899' + audius_discprov_url: str({ + default: 'http://audius-protocol-discovery-provider-1' }), audius_db_url: str({ default: 'postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_1' }), + audius_redis_url: str({ + default: 'redis://audius-protocol-discovery-provider-redis-1:6379/00' + }), + audius_solana_endpoint: str({ + default: 'http://solana-test-validator:8899' + }), audius_solana_waudio_mint: str({ default: '37RCjhgV1qGV2Q54EHFScdxZ22ydRMdKMtVgod47fDP3' }), @@ -57,8 +63,7 @@ const readConfig = () => { ] }), solana_relay_server_host: str({ default: '0.0.0.0' }), - solana_relay_server_port: num({ default: 6002 }), - AUDIUS_REDIS_URL: str({ default: 'redis://identity-service-redis:6379/00' }) + solana_relay_server_port: num({ default: 6002 }) }) const solanaFeePayerWalletsParsed = env.audius_solana_fee_payer_wallets let solanaFeePayerWallets: Keypair[] = [] @@ -68,10 +73,11 @@ const readConfig = () => { ) } return { + endpoint: env.audius_discprov_url, discoveryDbConnectionString: env.audius_db_url, + redisUrl: env.audius_redis_url, serverHost: env.solana_relay_server_host, serverPort: env.solana_relay_server_port, - redisUrl: env.AUDIUS_REDIS_URL, solanaEndpoint: env.audius_solana_endpoint, rewardsManagerProgramId: env.audius_solana_rewards_manager_program_address, rewardsManagerAccountAddress: env.audius_solana_rewards_manager_account, diff --git a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev index 9219c2016d5..6282dd88007 100644 --- a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev +++ b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev @@ -8,4 +8,4 @@ ENV APP_NAME=${app_name} WORKDIR /app/packages/discovery-provider/plugins/pedalboard/apps/${APP_NAME} -CMD npm run start:dev +CMD sh ../../docker/setup-replica-env.sh && npm run start:dev diff --git a/packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh b/packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh new file mode 100644 index 00000000000..0bb913f618f --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env sh + +# NOTE: This script is meant to be used from within docker containers + +# Get the replica number from the host name +export replica=$(nslookup $(hostname -i) | sed -n "s/^.*audius-protocol-[A-z\-]*\([0-9]\)\+.*$/\1/p") + +# Get the relevant environment variables for that host +if [[ "$audius_db_url" == "" ]]; then + export audius_db_url="postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_${replica}" + export audius_db_url_read_replica="postgresql+psycopg2://postgres:postgres@db:5432/discovery_provider_${replica}" +fi + +if [[ "$audius_redis_url" == "" ]]; then + export audius_redis_url="redis://audius-protocol-discovery-provider-redis-${replica}:6379/00" +fi + +export audius_discprov_url="http://audius-protocol-discovery-provider-${replica}" + +export audius_delegate_owner_wallet=$(printenv "DP${replica}_DELEGATE_OWNER_ADDRESS") +export audius_delegate_private_key=$(printenv "DP${replica}_DELEGATE_OWNER_PRIVATE_KEY") +elasticsearch_host="audius-protocol-discovery-provider-elasticsearch-${replica}" +if nslookup "$elasticsearch_host" >/dev/null 2>&1; then + export audius_elasticsearch_url="http://${elasticsearch_host}:9200" + export audius_elasticsearch_run_indexer="true" +fi \ No newline at end of file From 5df7caa7723d71380461d8edd087e23aabf8298e Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:10:06 -0800 Subject: [PATCH 10/17] better logging --- .../src/middleware/errorHandler.ts | 9 +--- .../solana-relay/src/middleware/locals.ts | 4 ++ .../solana-relay/src/middleware/logging.ts | 33 ++++++------ .../solana-relay/src/routes/cache/cache.ts | 4 +- .../solana-relay/src/routes/relay/relay.ts | 53 ++++++++++++------- 5 files changed, 62 insertions(+), 41 deletions(-) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts index 5da14bce43a..1b647b05936 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts @@ -21,15 +21,10 @@ export const errorHandlerMiddleware = ( res.status(500).send({ error: getErrorMessage(err) }) } // in milliseconds - const responseTime = new Date().getTime() - res.locals.ctx.startTime.getTime() - const { route, method } = req - const { locals: ctx } = res + const responseTime = new Date().getTime() - res.locals.requestStartTime const statusCode = res.statusCode - logger.info( + res.locals.logger.info( { - route, - method, - ctx, responseTime, statusCode, error: getErrorMessage(err) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts index 9995cefa3fd..d60a9c5c716 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts @@ -1,9 +1,13 @@ import { Users } from '@pedalboard/storage' +import { Logger } from 'pino' declare global { namespace Express { interface Locals { signer?: Users + logger: Logger + requestStartTime: number + [k: string]: never } } } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts index 0a4429faaf8..951eedd5584 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts @@ -7,27 +7,30 @@ export const incomingRequestLogger = ( response: Response, next: NextFunction ) => { - const startTime = new Date(new Date().getTime()) + const startTime = new Date().getTime() + response.locals.requestStartTime = startTime const requestId = uuidv4() - const oldCtx = response.locals.ctx - response.locals.ctx = { ...oldCtx, startTime, requestId } - - const { route, method } = request - logger.info({ requestId, route, method }, 'incoming request') + const { + route: { path }, + method + } = request + response.locals.logger = logger.child({ + requestId, + path, + method + }) + response.locals.logger.info( + { startTime: new Date(startTime) }, + 'incoming request' + ) next() } -export const outgoingLog = (request: Request, response: Response) => { +export const outgoingLog = (_request: Request, response: Response) => { // in milliseconds - const responseTime = - new Date().getTime() - response.locals.ctx.startTime.getTime() - const { route, method } = request - const { locals: ctx } = response + const responseTime = new Date().getTime() - response.locals.requestStartTime const statusCode = response.statusCode - logger.info( - { route, method, ctx, responseTime, statusCode }, - 'request completed' - ) + response.locals.logger.info({ responseTime, statusCode }, 'request completed') } export const outgoingRequestLogger = ( diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts index 2e2495dfcb7..fe310de0923 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts @@ -17,6 +17,8 @@ export const cache = async ( ) => { try { const { signature, transaction } = req.body + const logger = res.locals.logger.child({ signature, transaction }) + logger.info('Received cache request') if (!signature || !transaction) { throw new BadRequestError() } @@ -32,7 +34,7 @@ export const cache = async ( } await cacheTransaction(signature, transaction) res.status(200).send({ signature, transaction }) - logger.info(`cached transaction: ${signature}`) + next() } catch (e) { next(e) } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts index 908282a757d..ba76fa39c6e 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts @@ -7,10 +7,10 @@ import { import { Request, Response, NextFunction } from 'express' import { config } from '../../config' import { BadRequestError } from '../../errors' -import { logger } from '../../logger' import { assertRelayAllowedInstructions } from './assertRelayAllowedInstructions' import { cacheTransaction, getCachedDiscoveryNodes } from '../../redis' import fetch from 'cross-fetch' +import { Logger } from 'pino' type RequestBody = { transaction: string @@ -29,25 +29,39 @@ const getFeePayerKeyPair = (feePayerPublicKey?: PublicKey) => { ) } -const forwardTransaction = async (signature: string, transaction: string) => { +const forwardTransaction = async ( + logger: Logger, + signature: string, + transaction: string +) => { const endpoints = await getCachedDiscoveryNodes() - logger.info(`Forwarding ${signature} to ${endpoints.length} endpoints...`) + logger.info(`Forwarding to ${endpoints.length} endpoints...`) await Promise.all( - endpoints.map((endpoint) => - fetch(`${endpoint}/solana/cache`, { - method: 'POST', - body: JSON.stringify({ transaction }), - headers: { 'content-type': 'application/json' } - }) - .then(() => { - logger.info(`Forwarded ${signature} to ${endpoint}`) + endpoints + .filter((endpoint) => endpoint !== config.endpoint) + .map((endpoint) => + fetch(`${endpoint}/solana/cache`, { + method: 'POST', + body: JSON.stringify({ signature, transaction }), + headers: { 'content-type': 'application/json' } }) - .catch((e) => { - logger.warn( - `Failed to forward transaction ${signature} to endpoint ${endpoint}` - ) - }) - ) + .then((res) => { + if (res.ok) { + logger.info( + { endpoint, status: res.status }, + `Forwarded successfully` + ) + } else { + throw new Error(res.statusText) + } + }) + .catch((e) => { + logger.warn( + { endpoint }, + `Failed to forward transaction to endpoint: ${e}` + ) + }) + ) ) } @@ -76,8 +90,11 @@ export const relay = async ( const serializedTx = transaction.serialize() const signature = await connection.sendRawTransaction(serializedTx) const encoded = Buffer.from(serializedTx).toString('base64') + const logger = res.locals.logger.child({ signature, transaction: encoded }) + logger.info('Caching transaction...') await cacheTransaction(signature, encoded) - await forwardTransaction(signature, encoded) + logger.info('Forwarding transaction...') + await forwardTransaction(logger, signature, encoded) res.status(200).send({ signature }) next() } catch (e) { From 530985c65e70c5452638817ec8e02e47393e1f0a Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:10:17 -0800 Subject: [PATCH 11/17] register route (oops) --- .../plugins/pedalboard/apps/solana-relay/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts index 077ad46c601..f23499683a9 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts @@ -10,6 +10,7 @@ import { import { relay } from './routes/relay/relay' import { errorHandlerMiddleware } from './middleware/errorHandler' import { signerRecoveryMiddleware } from './middleware/signerRecovery' +import { cache } from './routes/cache/cache' const main = async () => { const { serverHost, serverPort } = config @@ -18,6 +19,7 @@ const main = async () => { app.use(cors()) app.use(signerRecoveryMiddleware) app.post('/solana/relay', incomingRequestLogger, relay, outgoingRequestLogger) + app.post('/solana/cache', incomingRequestLogger, cache, outgoingRequestLogger) app.use(errorHandlerMiddleware) app.listen(serverPort, serverHost, () => { From 79e2b70f36afe6867ea4a015a03ac38de776d25e Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Wed, 22 Nov 2023 21:14:46 -0800 Subject: [PATCH 12/17] ensure cross fetch and ts-node-dev are installed --- package-lock.json | 48 +++++++++++++++++++ .../pedalboard/apps/solana-relay/package.json | 1 + 2 files changed, 49 insertions(+) diff --git a/package-lock.json b/package-lock.json index 0691779552b..d1788d8d2a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -125776,6 +125776,7 @@ "body-parser": "1.19.0", "bs58": "4.0.1", "cors": "2.8.5", + "cross-fetch": "3.1.8", "eth-sig-util": "3.0.1", "express": "4.17.1", "morgan": "1.10.0", @@ -125794,6 +125795,7 @@ "eslint": "7.32.0", "eslint-config-custom-server": "*", "ts-node": "10.7.0", + "ts-node-dev": "2.0.0", "tsconfig": "*", "typescript": "4.5.3" } @@ -126035,6 +126037,14 @@ "node": ">= 0.10" } }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cross-fetch": { + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz", + "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==", + "dependencies": { + "node-fetch": "^2.6.12" + } + }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -126764,6 +126774,25 @@ "node": ">=4" } }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -126981,6 +127010,11 @@ "node": ">=0.6" } }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/ts-node": { "version": "10.7.0", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", @@ -127070,6 +127104,20 @@ "node": ">=4.2.0" } }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json index 0ce85623b07..b1d55d8809b 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json @@ -19,6 +19,7 @@ "body-parser": "1.19.0", "bs58": "4.0.1", "cors": "2.8.5", + "cross-fetch": "3.1.8", "eth-sig-util": "3.0.1", "express": "4.17.1", "morgan": "1.10.0", From 0f821485ba789c5fde69d489c514c95ed11f495f Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Thu, 23 Nov 2023 01:10:56 -0800 Subject: [PATCH 13/17] add tests --- package-lock.json | 4 +- .../pedalboard/apps/solana-relay/package.json | 7 +- .../assertRelayAllowedInstructions.test.ts | 1006 +++++++++++++++++ .../relay/assertRelayAllowedInstructions.ts | 2 +- .../src/services/solana/SolanaWeb3Manager.ts | 4 +- 5 files changed, 1017 insertions(+), 6 deletions(-) create mode 100644 packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.test.ts diff --git a/package-lock.json b/package-lock.json index d1788d8d2a2..188d30fbefa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -125784,6 +125784,7 @@ "redis": "4.6.11" }, "devDependencies": { + "@audius/sdk": "*", "@types/body-parser": "1.19.0", "@types/cors": "2.8.10", "@types/express": "4.17.12", @@ -125797,7 +125798,8 @@ "ts-node": "10.7.0", "ts-node-dev": "2.0.0", "tsconfig": "*", - "typescript": "4.5.3" + "typescript": "4.5.3", + "vitest": "0.34.6" } }, "packages/discovery-provider/plugins/pedalboard/apps/solana-relay/node_modules/@babel/code-frame": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json index b1d55d8809b..41b55684ee7 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json @@ -5,6 +5,7 @@ "scripts": { "start": "ts-node ./src/index.ts", "start:dev": "ts-node-dev ./src/index.ts", + "test": "vitest", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"" }, "jest": { @@ -27,6 +28,7 @@ "redis": "4.6.11" }, "devDependencies": { + "@audius/sdk": "*", "@types/body-parser": "1.19.0", "@types/cors": "2.8.10", "@types/express": "4.17.12", @@ -37,9 +39,10 @@ "esbuild-register": "3.3.2", "eslint": "7.32.0", "eslint-config-custom-server": "*", - "tsconfig": "*", "ts-node": "10.7.0", "ts-node-dev": "2.0.0", - "typescript": "4.5.3" + "tsconfig": "*", + "typescript": "4.5.3", + "vitest": "0.34.6" } } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.test.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.test.ts new file mode 100644 index 00000000000..c693ae96f47 --- /dev/null +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.test.ts @@ -0,0 +1,1006 @@ +import { + NATIVE_MINT, + TOKEN_PROGRAM_ID, + createApproveInstruction, + createAssociatedTokenAccountInstruction, + createCloseAccountInstruction, + createInitializeAccountInstruction, + createSyncNativeInstruction, + createTransferCheckedInstruction +} from '@solana/spl-token' +import { + Keypair, + PublicKey, + Secp256k1Program, + SystemProgram, + TransactionInstruction +} from '@solana/web3.js' +import assert from 'assert' +import { assertRelayAllowedInstructions } from './assertRelayAllowedInstructions' +import { config } from '../../config' +import { + createClaimableTokenAccountInstruction, + createTransferClaimableTokenInstruction, + createEvaluateAttestationsInstruction, + createSenderPublicInstruction, + createSubmitAttestationInstruction, + RewardManagerInstruction +} from '@audius/spl' +import { InvalidRelayInstructionError } from './InvalidRelayInstructionError' +import { describe, it } from 'vitest' +import { AudiusLibs } from '@audius/sdk' + +const CLAIMABLE_TOKEN_PROGRAM_ID = new PublicKey(config.claimableTokenProgramId) + +const REWARD_MANAGER_PROGRAM_ID = new PublicKey(config.rewardsManagerProgramId) +const REWARD_MANAGER_ACCOUNT = new PublicKey( + config.rewardsManagerAccountAddress +) + +const MEMO_PROGRAM_ID = new PublicKey( + 'Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo' +) + +const usdcMintKey = new PublicKey(config.usdcMintAddress) +const audioMintKey = new PublicKey(config.waudioMintAddress) + +const usdcClaimableTokenAuthority = PublicKey.findProgramAddressSync( + [usdcMintKey.toBytes().slice(0, 32)], + CLAIMABLE_TOKEN_PROGRAM_ID +)[0] +const audioClaimableTokenAuthority = PublicKey.findProgramAddressSync( + [audioMintKey.toBytes().slice(0, 32)], + CLAIMABLE_TOKEN_PROGRAM_ID +)[0] + +const getRandomPublicKey = () => Keypair.generate().publicKey + +const getInittedLibs = async () => { + // @ts-ignore + const libs = new AudiusLibs({ + solanaWeb3Config: { + solanaClusterEndpoint: config.solanaEndpoint, + mintAddress: config.waudioMintAddress, + usdcMintAddress: config.usdcMintAddress, + solanaTokenAddress: TOKEN_PROGRAM_ID.toBase58(), + feePayerAddress: config.solanaFeePayerWallets[0].publicKey, + claimableTokenProgramAddress: config.claimableTokenProgramId, + rewardsManagerProgramId: config.rewardsManagerProgramId, + rewardsManagerProgramPDA: config.rewardsManagerAccountAddress, + rewardsManagerTokenPDA: '', + useRelay: false, + confirmationTimeout: 0 + } + }) + await libs.init() + return libs +} + +describe('Solana Relay', function () { + describe('Associated Token Account Program', function () { + it('should allow create token account with matching close for valid mints', async function () { + const payer = getRandomPublicKey() + const associatedToken = getRandomPublicKey() + const owner = getRandomPublicKey() + + // Basic case + const instructions = [ + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + usdcMintKey + ), + createCloseAccountInstruction(associatedToken, payer, owner) + ] + await assertRelayAllowedInstructions(instructions) + }) + + it('should allow create/close matches regardless of order', async function () { + const payer = getRandomPublicKey() + const associatedToken = getRandomPublicKey() + const owner = getRandomPublicKey() + const associatedToken2 = getRandomPublicKey() + const payer2 = getRandomPublicKey() + const complexInstructions = [ + createCloseAccountInstruction(associatedToken2, payer2, owner), + createAssociatedTokenAccountInstruction( + payer2, + associatedToken2, + owner, + usdcMintKey + ), + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + NATIVE_MINT + ), + createCloseAccountInstruction(associatedToken, payer, owner) + ] + await assertRelayAllowedInstructions(complexInstructions) + }) + + it('should not allow create token account without close', async function () { + const payer = getRandomPublicKey() + const associatedToken = getRandomPublicKey() + const owner = getRandomPublicKey() + + // Ensure every associated token account create instruction has a close account instruction + const missingCloseInstructions = [ + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + usdcMintKey + ) + ] + await assert.rejects( + async () => assertRelayAllowedInstructions(missingCloseInstructions), + InvalidRelayInstructionError, + 'Missing close instructions' + ) + + // Ensure the payer is refunded + const unmatchedPayerInstructions = [ + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + usdcMintKey + ), + createCloseAccountInstruction( + associatedToken, + getRandomPublicKey(), + owner + ) + ] + await assert.rejects( + async () => assertRelayAllowedInstructions(unmatchedPayerInstructions), + InvalidRelayInstructionError, + 'Mismatched account creation payer and close instruction destination' + ) + + // Ensure both instructions are for the same account + const unmatchedAccountInstructions = [ + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + usdcMintKey + ), + createCloseAccountInstruction(getRandomPublicKey(), payer, owner) + ] + await assert.rejects( + async () => + assertRelayAllowedInstructions(unmatchedAccountInstructions), + InvalidRelayInstructionError, + 'Mismatched target token accounts' + ) + }) + + it('should not allow create token account with arbitrary mints', async function () { + const payer = getRandomPublicKey() + const associatedToken = getRandomPublicKey() + const owner = getRandomPublicKey() + const mint = getRandomPublicKey() + const instructions = [ + createAssociatedTokenAccountInstruction( + payer, + associatedToken, + owner, + mint + ), + createCloseAccountInstruction(associatedToken, payer, owner) + ] + await assert.rejects( + async () => assertRelayAllowedInstructions(instructions), + InvalidRelayInstructionError, + 'Mint not allowed' + ) + }) + }) + + describe('Token Program', function () { + it('should allow close instructions', async function () { + const payer = getRandomPublicKey() + const associatedToken = getRandomPublicKey() + const owner = getRandomPublicKey() + const instructions = [ + createCloseAccountInstruction(associatedToken, payer, owner) + ] + await assertRelayAllowedInstructions(instructions) + }) + + it('should allow USDC transfers to userbanks', async function () { + // Dummy eth address to make the encoder happy + const wallet = '0xe42b199d864489387bf64262874fc6472bcbc151' + const userbank = await ( + await getInittedLibs() + ).solanaWeb3Manager!.deriveUserBank({ + mint: 'usdc', + ethAddress: wallet + }) + + const source = getRandomPublicKey() + const owner = getRandomPublicKey() + const instructions = [ + createTransferCheckedInstruction( + source, + usdcMintKey, + userbank, + owner, + 1, + 6 + ) + ] + await assertRelayAllowedInstructions(instructions, { + user: { + walletAddress: wallet + } + }) + }) + + it('should not allow transfers to non-userbanks', async function () { + // Some dummy eth addresses to make the encoder happy + const wallet = '0x1dc3070311552fce47e06db9f4f1328187f14c85' + + const source = getRandomPublicKey() + const owner = getRandomPublicKey() + const destination = getRandomPublicKey() + const instructions = [ + createTransferCheckedInstruction( + source, + usdcMintKey, + destination, + owner, + 1, + 6 + ) + ] + + await assert.rejects( + async () => assertRelayAllowedInstructions(instructions), + InvalidRelayInstructionError, + 'Not logged in' + ) + + await assert.rejects( + async () => + assertRelayAllowedInstructions(instructions, { + user: { + walletAddress: wallet + } + }), + InvalidRelayInstructionError, + 'Transfer not to userbank' + ) + }) + + it('should allow syncNative instructions', async function () { + await assertRelayAllowedInstructions([ + createSyncNativeInstruction(getRandomPublicKey()) + ]) + }) + + it('should not allow other instructions (non-exhaustive)', async function () { + const account = getRandomPublicKey() + const owner = getRandomPublicKey() + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createInitializeAccountInstruction(account, usdcMintKey, owner) + ]), + InvalidRelayInstructionError, + 'initializeAccount' + ) + const delegate = getRandomPublicKey() + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createApproveInstruction(account, delegate, owner, 0) + ]), + InvalidRelayInstructionError, + 'approve' + ) + }) + }) + + describe('Reward Manager Program', function () { + it('should allow public instructions with valid reward manager', async function () { + const transferId = 'some:id:thing' + // Some dummy eth addresses to make the encoder happy + const senderEthAddress = '0x1dc3070311552fce47e06db9f4f1328187f14c85' + const operatorEthAddress = '0x430ef095e4c5ac71a465b30d566bab0bb0985346' + const destinationEthAddress = '0x7311c8ec02f087cba0fdbb056d4cebc86519d871' + const verifiedMessages = getRandomPublicKey() + const authority = getRandomPublicKey() + const payer = getRandomPublicKey() + const sender = getRandomPublicKey() + const rewardManagerTokenSource = getRandomPublicKey() + const destinationUserbank = getRandomPublicKey() + const transferAccount = getRandomPublicKey() + const antiAbuse = getRandomPublicKey() + const existingSenders = [ + getRandomPublicKey(), + getRandomPublicKey(), + getRandomPublicKey() + ] + await assertRelayAllowedInstructions([ + createSenderPublicInstruction( + senderEthAddress, + operatorEthAddress, + REWARD_MANAGER_ACCOUNT, + authority, + payer, + sender, + existingSenders, + REWARD_MANAGER_PROGRAM_ID + ), + createSubmitAttestationInstruction( + transferId, + verifiedMessages, + REWARD_MANAGER_ACCOUNT, + authority, + payer, + sender, + REWARD_MANAGER_PROGRAM_ID + ), + createEvaluateAttestationsInstruction( + transferId, + destinationEthAddress, + BigInt(100), + verifiedMessages, + REWARD_MANAGER_ACCOUNT, + authority, + rewardManagerTokenSource, + destinationUserbank, + transferAccount, + antiAbuse, + payer, + TOKEN_PROGRAM_ID, + REWARD_MANAGER_PROGRAM_ID + ) + ]) + }) + + it('should not allow public instructions with invalid reward manager', async function () { + const transferId = 'some:id:thing' + // Some dummy eth addresses to make the encoder happy + const senderEthAddress = '0x1dc3070311552fce47e06db9f4f1328187f14c85' + const operatorEthAddress = '0x430ef095e4c5ac71a465b30d566bab0bb0985346' + const destinationEthAddress = '0x7311c8ec02f087cba0fdbb056d4cebc86519d871' + const verifiedMessages = getRandomPublicKey() + const authority = getRandomPublicKey() + const payer = getRandomPublicKey() + const sender = getRandomPublicKey() + const rewardManager = getRandomPublicKey() + const rewardManagerTokenSource = getRandomPublicKey() + const destinationUserbank = getRandomPublicKey() + const transferAccount = getRandomPublicKey() + const antiAbuse = getRandomPublicKey() + const existingSenders = [ + getRandomPublicKey(), + getRandomPublicKey(), + getRandomPublicKey() + ] + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createSenderPublicInstruction( + senderEthAddress, + operatorEthAddress, + rewardManager, + authority, + payer, + sender, + existingSenders, + REWARD_MANAGER_PROGRAM_ID + ) + ]), + InvalidRelayInstructionError, + 'invalid reward manager for createSenderPublic' + ) + + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createSubmitAttestationInstruction( + transferId, + verifiedMessages, + rewardManager, + authority, + payer, + sender, + REWARD_MANAGER_PROGRAM_ID + ) + ]), + InvalidRelayInstructionError, + 'invalid reward manager for submitAttestation' + ) + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createEvaluateAttestationsInstruction( + transferId, + destinationEthAddress, + BigInt(100), + verifiedMessages, + rewardManager, + authority, + rewardManagerTokenSource, + destinationUserbank, + transferAccount, + antiAbuse, + payer, + TOKEN_PROGRAM_ID, + REWARD_MANAGER_PROGRAM_ID + ) + ]), + InvalidRelayInstructionError, + 'invalid reward manager for evaluateAttestations' + ) + }) + + it('should not allow non-public instructions', async function () { + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + new TransactionInstruction({ + programId: REWARD_MANAGER_PROGRAM_ID, + keys: [], + data: Buffer.from([RewardManagerInstruction.Init]) + }) + ]), + 'reward manager init' + ) + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + new TransactionInstruction({ + programId: REWARD_MANAGER_PROGRAM_ID, + keys: [], + data: Buffer.from([RewardManagerInstruction.ChangeManagerAccount]) + }) + ]), + 'reward manager change manager account' + ) + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + new TransactionInstruction({ + programId: REWARD_MANAGER_PROGRAM_ID, + keys: [], + data: Buffer.from([RewardManagerInstruction.CreateSender]) + }) + ]), + 'non public create sender' + ) + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + new TransactionInstruction({ + programId: REWARD_MANAGER_PROGRAM_ID, + keys: [], + data: Buffer.from([RewardManagerInstruction.DeleteSender]) + }) + ]), + 'non public delete sender' + ) + }) + }) + + describe('Claimable Tokens Program', function () { + it('should allow claimable token program instructions with valid authority', async function () { + // Dummy eth address to make the encoder happy + const wallet = '0xe42b199d864489387bf64262874fc6472bcbc151' + const payer = getRandomPublicKey() + const mint = getRandomPublicKey() + const userbank = getRandomPublicKey() + const destination = getRandomPublicKey() + const nonceAccount = getRandomPublicKey() + const instructions = [ + createClaimableTokenAccountInstruction( + wallet, + payer, + mint, + usdcClaimableTokenAuthority, + userbank, + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ), + createTransferClaimableTokenInstruction( + payer, + userbank, + destination, + nonceAccount, + BigInt(0), + usdcClaimableTokenAuthority, + BigInt(1), + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ), + createClaimableTokenAccountInstruction( + wallet, + payer, + mint, + audioClaimableTokenAuthority, + userbank, + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ), + createTransferClaimableTokenInstruction( + payer, + userbank, + destination, + nonceAccount, + BigInt(0), + audioClaimableTokenAuthority, + BigInt(1), + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ) + ] + await assertRelayAllowedInstructions(instructions) + }) + + it('should not allow claimable token program instructions with invalid authority', async function () { + // Dummy eth addresse to make the encoder happy + const wallet = '0x36034724e7bda41d5142efd85e1f6773460f5679' + const payer = getRandomPublicKey() + const mint = getRandomPublicKey() + const authority = getRandomPublicKey() + const userbank = getRandomPublicKey() + const destination = getRandomPublicKey() + const nonceAccount = getRandomPublicKey() + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createClaimableTokenAccountInstruction( + wallet, + payer, + mint, + authority, + userbank, + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ) + ]), + 'Invalid authority for create user bank' + ) + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + createTransferClaimableTokenInstruction( + payer, + userbank, + destination, + nonceAccount, + BigInt(0), + authority, + BigInt(1), + TOKEN_PROGRAM_ID, + CLAIMABLE_TOKEN_PROGRAM_ID + ) + ]), + InvalidRelayInstructionError, + 'Invalid authority for transfer user bank' + ) + }) + }) + + describe('Jupiter Swap Program', function () { + it('should allow Jupiter sharedAccountsRoute swaps between USDC and SOL when authenticated', async function () { + const JUPITER_AGGREGATOR_V6_PROGRAM_ID = new PublicKey( + 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' + ) + const programAuthority = getRandomPublicKey() + const userTransferAuthority = getRandomPublicKey() + const sourceTokenAccount = getRandomPublicKey() + const programSourceTokenAccount = getRandomPublicKey() + const programDestinationTokenAccount = getRandomPublicKey() + const destinationTokenAccount = getRandomPublicKey() + const instructions = [ + new TransactionInstruction({ + programId: JUPITER_AGGREGATOR_V6_PROGRAM_ID, + data: Buffer.from([ + 193, 32, 155, 51, 65, 214, 156, 129, 2, 1, 0, 0, 0, 3, 100, 0, 1, + 92, 161, 0, 0, 0, 0, 0, 0, 236, 52, 31, 0, 0, 0, 0, 0, 3, 0, 0 + ]), + keys: [ + { + pubkey: TOKEN_PROGRAM_ID, + isSigner: false, + isWritable: false + }, + { + pubkey: programAuthority, + isSigner: false, + isWritable: false + }, + { + pubkey: userTransferAuthority, + isSigner: true, + isWritable: true + }, + { + pubkey: sourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programSourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programDestinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: destinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: usdcMintKey, + isSigner: false, + isWritable: false + }, + { + pubkey: NATIVE_MINT, + isSigner: false, + isWritable: false + } + ] + }) + ] + + await assertRelayAllowedInstructions(instructions, { + user: { + walletAddress: 'something' + } + }) + }) + + it('should not allow Jupiter sharedAccountsRoute when not authenticated', async function () { + const JUPITER_AGGREGATOR_V6_PROGRAM_ID = new PublicKey( + 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' + ) + const programAuthority = getRandomPublicKey() + const userTransferAuthority = getRandomPublicKey() + const sourceTokenAccount = getRandomPublicKey() + const programSourceTokenAccount = getRandomPublicKey() + const programDestinationTokenAccount = getRandomPublicKey() + const destinationTokenAccount = getRandomPublicKey() + const instructions = [ + new TransactionInstruction({ + programId: JUPITER_AGGREGATOR_V6_PROGRAM_ID, + data: Buffer.from([ + 193, 32, 155, 51, 65, 214, 156, 129, 2, 1, 0, 0, 0, 3, 100, 0, 1, + 92, 161, 0, 0, 0, 0, 0, 0, 236, 52, 31, 0, 0, 0, 0, 0, 3, 0, 0 + ]), + keys: [ + { + pubkey: TOKEN_PROGRAM_ID, + isSigner: false, + isWritable: false + }, + { + pubkey: programAuthority, + isSigner: false, + isWritable: false + }, + { + pubkey: userTransferAuthority, + isSigner: true, + isWritable: true + }, + { + pubkey: sourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programSourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programDestinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: destinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: usdcMintKey, + isSigner: false, + isWritable: false + }, + { + pubkey: NATIVE_MINT, + isSigner: false, + isWritable: false + } + ] + }) + ] + + await assert.rejects( + async () => assertRelayAllowedInstructions(instructions), + InvalidRelayInstructionError, + 'Unauthorized' + ) + }) + + it('should not allow Jupiter sharedAccountsRoute swaps between other mints', async function () { + const JUPITER_AGGREGATOR_V6_PROGRAM_ID = new PublicKey( + 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' + ) + const programAuthority = getRandomPublicKey() + const userTransferAuthority = getRandomPublicKey() + const sourceTokenAccount = getRandomPublicKey() + const programSourceTokenAccount = getRandomPublicKey() + const programDestinationTokenAccount = getRandomPublicKey() + const destinationTokenAccount = getRandomPublicKey() + const randomDestinationMint = getRandomPublicKey() + const instructions = [ + new TransactionInstruction({ + programId: JUPITER_AGGREGATOR_V6_PROGRAM_ID, + data: Buffer.from([ + 193, 32, 155, 51, 65, 214, 156, 129, 2, 1, 0, 0, 0, 3, 100, 0, 1, + 92, 161, 0, 0, 0, 0, 0, 0, 236, 52, 31, 0, 0, 0, 0, 0, 3, 0, 0 + ]), + keys: [ + { + pubkey: TOKEN_PROGRAM_ID, + isSigner: false, + isWritable: false + }, + { + pubkey: programAuthority, + isSigner: false, + isWritable: false + }, + { + pubkey: userTransferAuthority, + isSigner: true, + isWritable: true + }, + { + pubkey: sourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programSourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programDestinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: destinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: usdcMintKey, + isSigner: false, + isWritable: false + }, + { + pubkey: randomDestinationMint, + isSigner: false, + isWritable: false + } + ] + }) + ] + + await assert.rejects( + async () => + assertRelayAllowedInstructions(instructions, { + user: { + walletAddress: 'something' + } + }), + InvalidRelayInstructionError, + 'Invalid mints for swap' + ) + }) + + it('should not allow Jupiter sharedAccountsRoute swaps using the fee payer', async function () { + const JUPITER_AGGREGATOR_V6_PROGRAM_ID = new PublicKey( + 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4' + ) + const programAuthority = getRandomPublicKey() + const userTransferAuthority = config.solanaFeePayerWallets[0].publicKey + const sourceTokenAccount = getRandomPublicKey() + const programSourceTokenAccount = getRandomPublicKey() + const programDestinationTokenAccount = getRandomPublicKey() + const destinationTokenAccount = getRandomPublicKey() + const instructions = [ + new TransactionInstruction({ + programId: JUPITER_AGGREGATOR_V6_PROGRAM_ID, + data: Buffer.from([ + 193, 32, 155, 51, 65, 214, 156, 129, 2, 1, 0, 0, 0, 3, 100, 0, 1, + 92, 161, 0, 0, 0, 0, 0, 0, 236, 52, 31, 0, 0, 0, 0, 0, 3, 0, 0 + ]), + keys: [ + { + pubkey: TOKEN_PROGRAM_ID, + isSigner: false, + isWritable: false + }, + { + pubkey: programAuthority, + isSigner: false, + isWritable: false + }, + { + pubkey: userTransferAuthority, + isSigner: true, + isWritable: true + }, + { + pubkey: sourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programSourceTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: programDestinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: destinationTokenAccount, + isSigner: false, + isWritable: true + }, + { + pubkey: usdcMintKey, + isSigner: false, + isWritable: false + }, + { + pubkey: NATIVE_MINT, + isSigner: false, + isWritable: false + } + ] + }) + ] + + await assert.rejects( + async () => + assertRelayAllowedInstructions(instructions, { + user: { + walletAddress: 'something' + } + }), + InvalidRelayInstructionError, + 'Invalid user transfer authority' + ) + }) + }) + + describe('System Program', function () { + it('should allow transfers when authenticated', async function () { + const feePayer = getRandomPublicKey() + const fromPubkey = getRandomPublicKey() + const toPubkey = getRandomPublicKey() + // Dummy eth address, no significance + const walletAddress = '0x36034724e7bda41d5142efd85e1f6773460f5679' + await assertRelayAllowedInstructions( + [ + SystemProgram.transfer({ + fromPubkey, + toPubkey, + lamports: 1 + }) + ], + { user: { walletAddress }, feePayer: feePayer.toBase58() } + ) + }) + + it('should not allow transfers when not authenticated', async function () { + const feePayer = getRandomPublicKey() + const fromPubkey = getRandomPublicKey() + const toPubkey = getRandomPublicKey() + await assert.rejects(async () => + assertRelayAllowedInstructions([ + SystemProgram.transfer({ + fromPubkey, + toPubkey, + lamports: 1 + }) + ]) + ) + }) + + it('should not allow transfers from the feePayer', async function () { + const walletAddress = '0x36034724e7bda41d5142efd85e1f6773460f5679' + const feePayer = getRandomPublicKey() + const toPubkey = getRandomPublicKey() + await assert.rejects(async () => + assertRelayAllowedInstructions( + [ + SystemProgram.transfer({ + fromPubkey: feePayer, + toPubkey, + lamports: 1 + }) + ], + + { user: { walletAddress }, feePayer: feePayer.toBase58() } + ) + ) + }) + + it('should not allow other system instructions', async function () { + const walletAddress = '0x36034724e7bda41d5142efd85e1f6773460f5679' + const feePayer = getRandomPublicKey() + const fromPubkey = getRandomPublicKey() + const newAccountPubkey = getRandomPublicKey() + const programId = getRandomPublicKey() + await assert.rejects(async () => + assertRelayAllowedInstructions( + [ + SystemProgram.createAccount({ + fromPubkey, + newAccountPubkey, + programId, + lamports: 1, + space: 0 + }) + ], + + { user: { walletAddress }, feePayer: feePayer.toBase58() } + ) + ) + }) + }) + + describe('Other Programs', function () { + it('allows memo and SECP instructions', async function () { + await assertRelayAllowedInstructions([ + new TransactionInstruction({ programId: MEMO_PROGRAM_ID, keys: [] }), + Secp256k1Program.createInstructionWithEthAddress({ + // Dummy eth address to make the encoder happy + ethAddress: '0xe42b199d864489387bf64262874fc6472bcbc151', + message: Buffer.from('some message', 'utf-8'), + signature: Buffer.alloc(64), + recoveryId: 0 + }) + ]) + }) + + it('does not allow other random programs', async function () { + await assert.rejects( + async () => + assertRelayAllowedInstructions([ + new TransactionInstruction({ + programId: getRandomPublicKey(), + keys: [] + }) + ]), + InvalidRelayInstructionError, + 'random program' + ) + }) + }) +}) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts index fe4a48c31bd..1dc96592b7d 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/assertRelayAllowedInstructions.ts @@ -150,7 +150,7 @@ const assertAllowedTokenProgramInstruction = async ( const destination = decodedInstruction.keys.destination.pubkey const userbank = await deriveUserBank( wallet, - claimableTokenAuthorities['waudio'] + claimableTokenAuthorities['usdc'] ) if (!destination.equals(userbank)) { throw new InvalidRelayInstructionError( diff --git a/packages/libs/src/services/solana/SolanaWeb3Manager.ts b/packages/libs/src/services/solana/SolanaWeb3Manager.ts index 317f6a604b1..109649b32f6 100644 --- a/packages/libs/src/services/solana/SolanaWeb3Manager.ts +++ b/packages/libs/src/services/solana/SolanaWeb3Manager.ts @@ -355,14 +355,14 @@ export class SolanaWeb3Manager { ethAddress?: string mint?: MintName } = {}) { - if (!this.web3Manager) { + if (!ethAddress && !this.web3Manager) { throw new Error( 'A web3Manager is required for this solanaWeb3Manager method' ) } const derivationSourceAddress = - ethAddress ?? this.web3Manager.getWalletAddress() + ethAddress ?? this.web3Manager!.getWalletAddress() const bank = await getBankAccountAddress( derivationSourceAddress, From 90ed65af2a31194de27a893410568b96f884cf8d Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Thu, 23 Nov 2023 05:31:26 -0800 Subject: [PATCH 14/17] cache rpc response, not raw tx, and sign cache request --- .../docker-compose.pedalboard.prod.yml | 1 + .../apps/solana-relay/src/config.ts | 9 +- .../pedalboard/apps/solana-relay/src/index.ts | 14 ++- .../src/middleware/errorHandler.ts | 5 +- .../solana-relay/src/middleware/locals.ts | 3 +- .../solana-relay/src/middleware/logging.ts | 5 +- .../src/middleware/signerRecovery.ts | 33 +++++- .../pedalboard/apps/solana-relay/src/redis.ts | 34 ++++-- .../solana-relay/src/routes/cache/cache.ts | 32 +++--- .../solana-relay/src/routes/relay/relay.ts | 104 ++++++++++++++---- .../plugins/pedalboard/docker/Dockerfile.dev | 2 +- .../{setup-replica-env.sh => startup.sh} | 4 +- 12 files changed, 178 insertions(+), 68 deletions(-) rename packages/discovery-provider/plugins/pedalboard/docker/{setup-replica-env.sh => startup.sh} (98%) diff --git a/dev-tools/compose/docker-compose.pedalboard.prod.yml b/dev-tools/compose/docker-compose.pedalboard.prod.yml index 40e52cb29fe..d15a4c8a965 100644 --- a/dev-tools/compose/docker-compose.pedalboard.prod.yml +++ b/dev-tools/compose/docker-compose.pedalboard.prod.yml @@ -47,6 +47,7 @@ services: dockerfile: ${PROJECT_ROOT}/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.prod args: app_name: solana-relay + env_file: .env # used by the startup script environment: audius_solana_rewards_manager_program_address: '${SOLANA_REWARD_MANAGER_PUBLIC_KEY}' audius_solana_rewards_manager_account: '${SOLANA_REWARD_MANAGER_PDA_PUBLIC_KEY}' diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts index 320cf691fab..a9e7fc1de2e 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/config.ts @@ -63,7 +63,8 @@ const readConfig = () => { ] }), solana_relay_server_host: str({ default: '0.0.0.0' }), - solana_relay_server_port: num({ default: 6002 }) + solana_relay_server_port: num({ default: 6002 }), + audius_delegate_private_key: str({ default: '' }) }) const solanaFeePayerWalletsParsed = env.audius_solana_fee_payer_wallets let solanaFeePayerWallets: Keypair[] = [] @@ -72,6 +73,9 @@ const readConfig = () => { Keypair.fromSecretKey(Uint8Array.from(wallet.privateKey)) ) } + const delegatePrivateKey: Buffer = env.audius_delegate_private_key + ? Buffer.from(env.audius_delegate_private_key, 'hex') + : Buffer.from([]) return { endpoint: env.audius_discprov_url, discoveryDbConnectionString: env.audius_db_url, @@ -84,7 +88,8 @@ const readConfig = () => { claimableTokenProgramId: env.audius_solana_user_bank_program_address, usdcMintAddress: env.audius_solana_usdc_mint, waudioMintAddress: env.audius_solana_waudio_mint, - solanaFeePayerWallets + solanaFeePayerWallets, + delegatePrivateKey } } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts index f23499683a9..26ae2c2c792 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/index.ts @@ -9,7 +9,10 @@ import { } from './middleware/logging' import { relay } from './routes/relay/relay' import { errorHandlerMiddleware } from './middleware/errorHandler' -import { signerRecoveryMiddleware } from './middleware/signerRecovery' +import { + userSignerRecoveryMiddleware, + discoveryNodeSignerRecoveryMiddleware +} from './middleware/signerRecovery' import { cache } from './routes/cache/cache' const main = async () => { @@ -17,9 +20,12 @@ const main = async () => { const app = express() app.use(json()) app.use(cors()) - app.use(signerRecoveryMiddleware) - app.post('/solana/relay', incomingRequestLogger, relay, outgoingRequestLogger) - app.post('/solana/cache', incomingRequestLogger, cache, outgoingRequestLogger) + app.use(incomingRequestLogger) + app.use(userSignerRecoveryMiddleware) + app.use(discoveryNodeSignerRecoveryMiddleware) + app.post('/solana/relay', relay) + app.post('/solana/cache', cache) + app.use(outgoingRequestLogger) app.use(errorHandlerMiddleware) app.listen(serverPort, serverHost, () => { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts index 1b647b05936..8da17e11b3d 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/errorHandler.ts @@ -1,6 +1,6 @@ import { NextFunction, Request, Response } from 'express' import { ResponseError } from '../errors' -import { logger } from '../logger' +import { logger as rootLogger } from '../logger' const getErrorMessage = (error: unknown) => error instanceof Error @@ -23,7 +23,8 @@ export const errorHandlerMiddleware = ( // in milliseconds const responseTime = new Date().getTime() - res.locals.requestStartTime const statusCode = res.statusCode - res.locals.logger.info( + const logger = res.locals.logger ?? rootLogger + logger.info( { responseTime, statusCode, diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts index d60a9c5c716..c2476fdab09 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/locals.ts @@ -4,7 +4,8 @@ import { Logger } from 'pino' declare global { namespace Express { interface Locals { - signer?: Users + signerUser?: Users + isSignedByDiscovery?: boolean logger: Logger requestStartTime: number [k: string]: never diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts index 951eedd5584..cda1387732f 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/logging.ts @@ -10,10 +10,7 @@ export const incomingRequestLogger = ( const startTime = new Date().getTime() response.locals.requestStartTime = startTime const requestId = uuidv4() - const { - route: { path }, - method - } = request + const { path, method } = request response.locals.logger = logger.child({ requestId, path, diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts index 2e72dfce3f6..fd5f1ecf1d2 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts @@ -3,16 +3,17 @@ import { recoverPersonalSignature } from 'eth-sig-util' import { Table, Users } from '@pedalboard/storage' import { initializeDiscoveryDb } from '@pedalboard/basekit' import { config } from '../config' +import { getCachedDiscoveryNodeWallets } from '../redis' const discoveryDb = initializeDiscoveryDb(config.discoveryDbConnectionString) -export const signerRecoveryMiddleware = async ( +export const userSignerRecoveryMiddleware = async ( req: Request, res: Response, next: NextFunction ) => { const data = JSON.stringify(req.body) - const sig = req.get('Signature') + const sig = req.get('User-Signature') if (!sig) { return next() } @@ -21,6 +22,32 @@ export const signerRecoveryMiddleware = async ( .where('wallet', '=', walletAddress) .andWhere('is_current', '=', true) .first() - res.locals.signer = user + res.locals.signerUser = user + next() +} + +export const discoveryNodeSignerRecoveryMiddleware = async ( + req: Request, + res: Response, + next: NextFunction +) => { + const data = JSON.stringify(req.body) + const sig = req.get('Discovery-Signature') + if (!sig) { + res.locals.isSignedByDiscovery = false + return next() + } + const walletAddress = recoverPersonalSignature({ data, sig }) + const discoveryWallets = await getCachedDiscoveryNodeWallets() + const isSignedByDiscovery = discoveryWallets + .map((wallet) => wallet.toLowerCase()) + .includes(walletAddress) + res.locals.isSignedByDiscovery = isSignedByDiscovery + if (!isSignedByDiscovery) { + res.locals.logger.warn( + { walletAddress, discoveryWallets }, + 'Bad Discovery Signature' + ) + } next() } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts index 04eed28969b..63c6c673e4b 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/redis.ts @@ -4,7 +4,7 @@ import { config } from './config' let redisClient: RedisClientType let isReady: boolean -export async function getRedisConnection() { +const getRedisConnection = async () => { if (!isReady) { redisClient = createClient({ url: config.redisUrl }) redisClient.on('ready', () => { @@ -15,6 +15,18 @@ export async function getRedisConnection() { return redisClient } +const parseStringArray = (json: string | null) => { + try { + const parsed = JSON.parse(json ?? '[]') + if (!Array.isArray(parsed)) { + return [] + } + return parsed.filter((value): value is string => typeof value === 'string') + } catch { + return [] + } +} + export const cacheTransaction = async ( signature: string, transaction: string @@ -22,20 +34,18 @@ export const cacheTransaction = async ( const redis = await getRedisConnection() const key = `solana:transaction:${signature}` await redis.set(key, transaction) - await redis.expire(key, 30) } -export const getCachedDiscoveryNodes = async () => { +export const getCachedDiscoveryNodeEndpoints = async () => { const redis = await getRedisConnection() const key = 'all-discovery-nodes' const json = await redis.get(key) - try { - const parsed = json === null ? [] : JSON.parse(json) - if (!Array.isArray(parsed)) { - return [] - } - return parsed.filter((endpoint) => typeof endpoint === 'string') as string[] - } catch { - return [] - } + return parseStringArray(json) +} + +export const getCachedDiscoveryNodeWallets = async () => { + const redis = await getRedisConnection() + const key = 'all-discovery-nodes-wallets' + const json = await redis.get(key) + return parseStringArray(json) } diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts index fe310de0923..68bf4334ddd 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/cache/cache.ts @@ -1,12 +1,10 @@ import { NextFunction, Request, Response } from 'express' -import { BadRequestError } from '../../errors' +import { BadRequestError, UnauthorizedError } from '../../errors' import { cacheTransaction } from '../../redis' -import { logger } from '../../logger' -import { VersionedTransaction } from '@solana/web3.js' -import base58 from 'bs58' +import { TransactionResponse } from '@solana/web3.js' +import { config } from '../../config' type RequestBody = { - signature: string transaction: string } @@ -16,24 +14,20 @@ export const cache = async ( next: NextFunction ) => { try { - const { signature, transaction } = req.body - const logger = res.locals.logger.child({ signature, transaction }) - logger.info('Received cache request') - if (!signature || !transaction) { - throw new BadRequestError() + if (!res.locals.isSignedByDiscovery) { + throw new UnauthorizedError() } - const decoded = Buffer.from(transaction, 'base64') - const tx = VersionedTransaction.deserialize(decoded) - const sig = tx.signatures[0] - if (!sig) { - throw new BadRequestError('No signature on transaction') + const { transaction } = req.body + if (!transaction) { + throw new BadRequestError() } - const txSignature = base58.encode(sig) - if (txSignature !== signature) { - throw new BadRequestError('Invalid signature') + const transactionResponse = JSON.parse(transaction) as { + result: TransactionResponse } + const signature = transactionResponse.result.transaction.signatures[0] + res.locals.logger.info({ signature }, 'Caching transaction...') await cacheTransaction(signature, transaction) - res.status(200).send({ signature, transaction }) + res.status(200).send({ signature }) next() } catch (e) { next(e) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts index ba76fa39c6e..51324ee30a8 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/routes/relay/relay.ts @@ -1,5 +1,9 @@ import { + BaseTransactionConfirmationStrategy, + BlockhashWithExpiryBlockHeight, + Commitment, Connection, + DurableNonceTransactionConfirmationStrategy, PublicKey, TransactionMessage, VersionedTransaction @@ -8,12 +12,26 @@ import { Request, Response, NextFunction } from 'express' import { config } from '../../config' import { BadRequestError } from '../../errors' import { assertRelayAllowedInstructions } from './assertRelayAllowedInstructions' -import { cacheTransaction, getCachedDiscoveryNodes } from '../../redis' +import { cacheTransaction, getCachedDiscoveryNodeEndpoints } from '../../redis' import fetch from 'cross-fetch' import { Logger } from 'pino' - +import base58 from 'bs58' +import { personalSign } from 'eth-sig-util' +type Prettify = { + [K in keyof T]: T[K] +} & {} type RequestBody = { transaction: string + confirmationOptions?: { + strategy?: Prettify< + | Omit< + DurableNonceTransactionConfirmationStrategy, + keyof BaseTransactionConfirmationStrategy + > + | BlockhashWithExpiryBlockHeight + > + commitment?: Commitment + } } const connection = new Connection(config.solanaEndpoint) @@ -29,21 +47,23 @@ const getFeePayerKeyPair = (feePayerPublicKey?: PublicKey) => { ) } -const forwardTransaction = async ( - logger: Logger, - signature: string, - transaction: string -) => { - const endpoints = await getCachedDiscoveryNodes() +const forwardTransaction = async (logger: Logger, transaction: string) => { + const endpoints = await getCachedDiscoveryNodeEndpoints() logger.info(`Forwarding to ${endpoints.length} endpoints...`) + const body = JSON.stringify({ transaction }) await Promise.all( endpoints .filter((endpoint) => endpoint !== config.endpoint) .map((endpoint) => fetch(`${endpoint}/solana/cache`, { method: 'POST', - body: JSON.stringify({ signature, transaction }), - headers: { 'content-type': 'application/json' } + body, + headers: { + 'content-type': 'application/json', + 'Discovery-Signature': personalSign(config.delegatePrivateKey, { + data: body + }) + } }) .then((res) => { if (res.ok) { @@ -52,7 +72,10 @@ const forwardTransaction = async ( `Forwarded successfully` ) } else { - throw new Error(res.statusText) + logger.warn( + { endpoint }, + `Failed to forward transaction to endpoint: ${res.statusText}` + ) } }) .catch((e) => { @@ -71,7 +94,11 @@ export const relay = async ( next: NextFunction ) => { try { - const decoded = Buffer.from(req.body.transaction, 'base64') + const { transaction: encodedTransaction, confirmationOptions } = req.body + const { strategy, commitment } = confirmationOptions ?? {} + const confirmationStrategy = + strategy ?? (await connection.getLatestBlockhash()) + const decoded = Buffer.from(encodedTransaction, 'base64') const transaction = VersionedTransaction.deserialize(decoded) const decompiled = TransactionMessage.decompile(transaction.message) const feePayerKey = transaction.message.getAccountKeys().get(0) @@ -82,21 +109,60 @@ export const relay = async ( ) } await assertRelayAllowedInstructions(decompiled.instructions, { - user: res.locals.signer, + user: res.locals.signerUser, feePayer: feePayerKey.toBase58() }) transaction.sign([feePayerKeyPair]) + + const logger = res.locals.logger.child({ + signature: base58.encode(transaction.signatures[0]) + }) + logger.info('Sending transaction...') const serializedTx = transaction.serialize() + const signature = await connection.sendRawTransaction(serializedTx) - const encoded = Buffer.from(serializedTx).toString('base64') - const logger = res.locals.logger.child({ signature, transaction: encoded }) - logger.info('Caching transaction...') - await cacheTransaction(signature, encoded) - logger.info('Forwarding transaction...') - await forwardTransaction(logger, signature, encoded) + if (commitment) { + logger.info(`Waiting for transaction to be ${commitment}...`) + await connection.confirmTransaction( + { + ...confirmationStrategy, + signature + }, + commitment + ) + } res.status(200).send({ signature }) next() + // Confirm, fetch, cache and forward after success response + // Only wait for confirmation if we haven't already + if ( + !commitment || + (commitment !== 'confirmed' && commitment !== 'finalized') + ) { + logger.info(`Confirming transaction...`) + await connection.confirmTransaction( + { + ...confirmationStrategy, + signature + }, + 'confirmed' + ) + } + logger.info('Fetching transaction...') + const rpcResponse = await connection.getTransaction(signature, { + maxSupportedTransactionVersion: 0, + commitment: 'confirmed' + }) + // Need to rewrap so that Solders knows how to parse it + const formattedResponse = JSON.stringify({ + jsonrpc: '2.0', + result: rpcResponse + }) + logger.info('Caching transaction...') + await cacheTransaction(signature, formattedResponse) + logger.info('Forwarding transaction...') + await forwardTransaction(logger, formattedResponse) } catch (e) { next(e) } diff --git a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev index 6282dd88007..7f7d4d843f2 100644 --- a/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev +++ b/packages/discovery-provider/plugins/pedalboard/docker/Dockerfile.dev @@ -8,4 +8,4 @@ ENV APP_NAME=${app_name} WORKDIR /app/packages/discovery-provider/plugins/pedalboard/apps/${APP_NAME} -CMD sh ../../docker/setup-replica-env.sh && npm run start:dev +CMD sh ../../docker/startup.sh diff --git a/packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh b/packages/discovery-provider/plugins/pedalboard/docker/startup.sh similarity index 98% rename from packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh rename to packages/discovery-provider/plugins/pedalboard/docker/startup.sh index 0bb913f618f..7ef03f83188 100644 --- a/packages/discovery-provider/plugins/pedalboard/docker/setup-replica-env.sh +++ b/packages/discovery-provider/plugins/pedalboard/docker/startup.sh @@ -23,4 +23,6 @@ elasticsearch_host="audius-protocol-discovery-provider-elasticsearch-${replica}" if nslookup "$elasticsearch_host" >/dev/null 2>&1; then export audius_elasticsearch_url="http://${elasticsearch_host}:9200" export audius_elasticsearch_run_indexer="true" -fi \ No newline at end of file +fi + +npm run start:dev \ No newline at end of file From ca55ca21c26dbaf64320f735ca8fe903f62072db Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:21:50 -0800 Subject: [PATCH 15/17] start:dev => dev --- .../plugins/pedalboard/apps/app-template/package.json | 1 - .../plugins/pedalboard/apps/relay/package.json | 1 - .../plugins/pedalboard/apps/sla-auditor/package.json | 1 - .../plugins/pedalboard/apps/solana-relay/package.json | 2 +- .../pedalboard/apps/trending-challenge-rewards/package.json | 1 - .../discovery-provider/plugins/pedalboard/docker/startup.sh | 2 +- 6 files changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json b/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json index 234f8dee106..feb5c499f38 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/app-template/package.json @@ -8,7 +8,6 @@ "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", - "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json index 49ebe2db799..222d769989a 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/relay/package.json @@ -11,7 +11,6 @@ "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "sandbox": "npx ts-node ./src/scripts/sandbox.ts", "start": "node ./dist/index.js", - "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json b/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json index 7d885b67815..77f41c81fbc 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/sla-auditor/package.json @@ -9,7 +9,6 @@ "format": "prettier --write \"**/*.{ts,tsx,md}\"", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", - "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json index 41b55684ee7..3801fe3cf90 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "start": "ts-node ./src/index.ts", - "start:dev": "ts-node-dev ./src/index.ts", + "dev": "ts-node-dev ./src/index.ts", "test": "vitest", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"" }, diff --git a/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json b/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json index b6f0263930e..241413b428b 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json +++ b/packages/discovery-provider/plugins/pedalboard/apps/trending-challenge-rewards/package.json @@ -8,7 +8,6 @@ "dev": "nodemon --exec \"node -r esbuild-register ./src/index.ts\" -e .ts", "lint": "tsc --noEmit && eslint \"src/**/*.ts*\"", "start": "node ./dist/index.js", - "start:dev": "node ./dist/index.js", "test": "jest --detectOpenHandles" }, "jest": { diff --git a/packages/discovery-provider/plugins/pedalboard/docker/startup.sh b/packages/discovery-provider/plugins/pedalboard/docker/startup.sh index 7ef03f83188..53d43076f71 100644 --- a/packages/discovery-provider/plugins/pedalboard/docker/startup.sh +++ b/packages/discovery-provider/plugins/pedalboard/docker/startup.sh @@ -25,4 +25,4 @@ if nslookup "$elasticsearch_host" >/dev/null 2>&1; then export audius_elasticsearch_run_indexer="true" fi -npm run start:dev \ No newline at end of file +npm run dev \ No newline at end of file From 92108109f7aef1ed208753299551c91f3269f31c Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:49:34 -0800 Subject: [PATCH 16/17] remove is_current check --- .../apps/solana-relay/src/middleware/signerRecovery.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts index fd5f1ecf1d2..bfd016a17a4 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts @@ -20,7 +20,6 @@ export const userSignerRecoveryMiddleware = async ( const walletAddress = recoverPersonalSignature({ data, sig }) const user = await discoveryDb(Table.Users) .where('wallet', '=', walletAddress) - .andWhere('is_current', '=', true) .first() res.locals.signerUser = user next() From e1c974f23cb09ab9c51336de080bb52e2a2b341a Mon Sep 17 00:00:00 2001 From: Marcus Pasell <3690498+rickyrombo@users.noreply.github.com> Date: Tue, 28 Nov 2023 14:54:26 -0800 Subject: [PATCH 17/17] warn for bad user sig --- .../apps/solana-relay/src/middleware/signerRecovery.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts index bfd016a17a4..42f6476672a 100644 --- a/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts +++ b/packages/discovery-provider/plugins/pedalboard/apps/solana-relay/src/middleware/signerRecovery.ts @@ -22,6 +22,12 @@ export const userSignerRecoveryMiddleware = async ( .where('wallet', '=', walletAddress) .first() res.locals.signerUser = user + if (!user) { + res.locals.logger.warn( + { walletAddress }, + 'No user found matching signature' + ) + } next() }