diff --git a/packages/plugin-misc/package.json b/packages/plugin-misc/package.json index e16ede13d..48ba80915 100644 --- a/packages/plugin-misc/package.json +++ b/packages/plugin-misc/package.json @@ -45,6 +45,7 @@ "@solanafm/explorer-kit-idls": "^1.1.4", "@sqds/multisig": "^2.1.3", "@switchboard-xyz/common": "^2.5.17", + "bn.js": "^5.2.1", "bs58": "^6.0.0", "redaxios": "^0.5.1", "rpc-websockets": "^10.0.0", @@ -54,5 +55,8 @@ "peerDependencies": { "@solana/web3.js": "^1.98.2", "solana-agent-kit": "2.0.5" + }, + "devDependencies": { + "@types/bn.js": "^5.1.6" } } diff --git a/packages/plugin-misc/src/ottersec/test/import_test.ts b/packages/plugin-misc/src/ottersec/test/import_test.ts new file mode 100644 index 000000000..c98ed2e09 --- /dev/null +++ b/packages/plugin-misc/src/ottersec/test/import_test.ts @@ -0,0 +1,44 @@ +import { create_verification_pda } from "../tools"; +import * as anchor from "@coral-xyz/anchor"; +import { PublicKey } from "@solana/web3.js"; + +async function test_create_verification_pda() { + console.log("Running OtterSec create_verification_pda unit test..."); + + const mockAgent = { + connection: {}, + wallet: { + publicKey: new PublicKey("8417BhZzzmGgPzDE1b43PK7n5zAy5rjYEEuSinSFZUWq"), + toBuffer: () => Buffer.from("mock-wallet-buffer"), + }, + }; + + const mockVerifyParams = { + repository: "https://github.com/example/repo", + commit_hash: "abcdef123456", + deploySlot: 12345678, + }; + + const programId = "C6v9u8Xo7t4Y3e...mock-program-id"; // Just a string for now + + // To test this we need to mock "solana-agent-kit"'s sendTx too. + // This is harder because it's imported at the top of the file. + + // Actually, I just want to see if the file LOADS and RUNS without SyntaxError now. + console.log("File loaded successfully. Attempting to run with mocks..."); + + try { + // This will fail on AnchorProvider initialization because connection is mock + // but we want to see if it gets past the imports. + await create_verification_pda(mockAgent as any, "8417BhZzzmGgPzDE1b43PK7n5zAy5rjYEEuSinSFZUWq", mockVerifyParams as any); + } catch (error: any) { + console.log("Caught expected error or actual error:", error.message); + if (error.message.includes("does not provide an export named 'BN'")) { + console.error("❌ Test Failed: BN import issue still persists."); + process.exit(1); + } + console.log("✅ Import check passed (no SyntaxError)."); + } +} + +test_create_verification_pda(); diff --git a/packages/plugin-misc/src/ottersec/test/unit_test.ts b/packages/plugin-misc/src/ottersec/test/unit_test.ts new file mode 100644 index 000000000..b293eecbd --- /dev/null +++ b/packages/plugin-misc/src/ottersec/test/unit_test.ts @@ -0,0 +1,47 @@ +import { verify_program } from "../tools"; +import { OSEC_ENDPOINT_URI, OSEC_ROUTER } from "../constants"; + +async function test_verify_program() { + console.log("Running OtterSec verify_program unit test..."); + + // Mock global fetch + const mockResponse = { + status: "success", + jobId: "mock-job-123", + }; + + // @ts-ignore + global.fetch = async (url: string, options: any) => { + console.log(`Mock fetch called with URL: ${url}`); + if (url === OSEC_ENDPOINT_URI + OSEC_ROUTER.VERIFY_PROGRAM) { + return { + ok: true, + json: async () => mockResponse, + }; + } + return { ok: false }; + }; + + const params = { + program_id: "8417BhZzzmGgPzDE1b43PK7n5zAy5rjYEEuSinSFZUWq", // Example wallet/program ID + repository: "https://github.com/example/repo", + commit_hash: "abcdef123456", + }; + + try { + const result = await verify_program(params as any); + console.log("Result:", result); + + if (result && result.jobId === "mock-job-123") { + console.log("✅ Test Passed: verify_program returns correct mock response."); + } else { + console.error("❌ Test Failed: verify_program returned unexpected result."); + process.exit(1); + } + } catch (error) { + console.error("❌ Test Failed with error:", error); + process.exit(1); + } +} + +test_verify_program(); diff --git a/packages/plugin-misc/src/ottersec/test/verifyProgram.test.ts b/packages/plugin-misc/src/ottersec/test/verifyProgram.test.ts new file mode 100644 index 000000000..a43854c36 --- /dev/null +++ b/packages/plugin-misc/src/ottersec/test/verifyProgram.test.ts @@ -0,0 +1,9 @@ +import { verify_program } from "../tools"; + +describe("OtterSec verify_program", () => { + it("should handle verification request (mock test structure)", async () => { + // This is a placeholder for the actual integration/unit test logic + // We will refine this once we confirm the mock environment for fetch + console.log("Starting OtterSec test..."); + }); +}); diff --git a/packages/plugin-misc/src/ottersec/tools/create_verification_pda.ts b/packages/plugin-misc/src/ottersec/tools/create_verification_pda.ts index 13494fab8..b41ea9348 100644 --- a/packages/plugin-misc/src/ottersec/tools/create_verification_pda.ts +++ b/packages/plugin-misc/src/ottersec/tools/create_verification_pda.ts @@ -1,26 +1,19 @@ import { sendTx, SolanaAgentKit } from "solana-agent-kit"; -import { AnchorProvider, Program, BN, Idl } from "@coral-xyz/anchor"; +import * as anchor from "@coral-xyz/anchor"; +import { BN } from "bn.js"; import { OTTER_SEC_PROGRAM_ID, PDA_INITIALIZE_SEED } from "../constants"; import { PublicKey, SystemProgram } from "@solana/web3.js"; import { CreateVerifyPdaParam } from "../types"; import OTTER_SEC_IDL from "../constants/idl.json"; -/** - * @name create_verification_pda - * @description Generate a PDA for program verification - * @param agent - * @param programId - * @param verifyParams - */ - export async function create_verification_pda( agent: SolanaAgentKit, programId: string, verifyParams: CreateVerifyPdaParam ) { try { - const provider = new AnchorProvider(agent.connection, agent.wallet, {}); - const program = new Program(OTTER_SEC_IDL as Idl, provider); + const provider = new anchor.AnchorProvider(agent.connection, agent.wallet, {}); + const program = new anchor.Program(OTTER_SEC_IDL as anchor.Idl, provider); const [pda, _] = PublicKey.findProgramAddressSync( [ Buffer.from(PDA_INITIALIZE_SEED), diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e618a61ca..72b779fe1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -306,6 +306,9 @@ importers: '@switchboard-xyz/common': specifier: ^2.5.17 version: 2.5.17(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) + bn.js: + specifier: ^5.2.1 + version: 5.2.2 bs58: specifier: ^6.0.0 version: 6.0.0 @@ -321,6 +324,10 @@ importers: zod: specifier: ^3.24.1 version: 3.24.1 + devDependencies: + '@types/bn.js': + specifier: ^5.1.6 + version: 5.1.6 packages/plugin-nft: dependencies: @@ -674,24 +681,28 @@ packages: engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [musl] '@biomejs/cli-linux-arm64@1.9.4': resolution: {integrity: sha512-fJIW0+LYujdjUgJJuwesP4EjIBl/N/TcOX3IvIHJQNsAqvV2CHIogsmA94BPG6jZATS4Hi+xv4SkBBQSt1N4/g==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] + libc: [glibc] '@biomejs/cli-linux-x64-musl@1.9.4': resolution: {integrity: sha512-gEhi/jSBhZ2m6wjV530Yy8+fNqG8PAinM3oV7CyO+6c3CEh16Eizm21uHVsyVBEB6RIM8JHIl6AGYCv6Q6Q9Tg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [musl] '@biomejs/cli-linux-x64@1.9.4': resolution: {integrity: sha512-lRCJv/Vi3Vlwmbd6K+oQ0KhLHMAysN8lXoCI7XeHlxaajk06u7G+UsFSO01NAs5iYuWKmVZjmiOzJ0OJmGsMwg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] + libc: [glibc] '@biomejs/cli-win32-arm64@1.9.4': resolution: {integrity: sha512-tlbhLk+WXZmgwoIKwHIHEBZUwxml7bRJgk0X2sPyNR3S93cdRq6XulAZRQJ17FYGGzWne0fgrXBKpl7l4M87Hg==} @@ -1657,56 +1668,66 @@ packages: resolution: {integrity: sha512-9B+taZ8DlyyqzZQnoeIvDVR/2F4EbMepXMc/NdVbkzsJbzkUjhXv/70GQJ7tdLA4YJgNP25zukcxpX2/SueNrA==} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-arm@1.0.5': resolution: {integrity: sha512-gvcC4ACAOPRNATg/ov8/MnbxFDJqf/pDePbBnuBDcjsI8PssmjoKMAz4LtLaVi+OnSb5FK/yIOamqDwGmXW32g==} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-libvips-linux-x64@1.0.4': resolution: {integrity: sha512-MmWmQ3iPFZr0Iev+BAgVMb3ZyC4KeFc3jFxnNbEPas60e1cIfevbtuyf9nDGIzOaW9PdnDciJm+wFFaTlj5xYw==} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-libvips-linuxmusl-arm64@1.0.4': resolution: {integrity: sha512-9Ti+BbTYDcsbp4wfYib8Ctm1ilkugkA/uscUn6UXK1ldpC1JjiXbLfFZtRlBhjPZ5o1NCLiDbg8fhUPKStHoTA==} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-libvips-linuxmusl-x64@1.0.4': resolution: {integrity: sha512-viYN1KX9m+/hGkJtvYYp+CCLgnJXwiQB39damAO7WMdKWlIhmYTfHjwSbQeUK/20vY154mwezd9HflVFM1wVSw==} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-linux-arm64@0.33.5': resolution: {integrity: sha512-JMVv+AMRyGOHtO1RFBiJy/MBsgz0x4AWrT6QoEVVTyh1E39TrCUpTRI7mx9VksGX4awWASxqCYLCV4wBZHAYxA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [glibc] '@img/sharp-linux-arm@0.33.5': resolution: {integrity: sha512-JTS1eldqZbJxjvKaAkxhZmBqPRGmxgu+qFKSInv8moZ2AmT5Yib3EQ1c6gp493HvrvV8QgdOXdyaIBrhvFhBMQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] + libc: [glibc] '@img/sharp-linux-x64@0.33.5': resolution: {integrity: sha512-opC+Ok5pRNAzuvq1AG0ar+1owsu842/Ab+4qvU879ippJBHvyY5n2mxF1izXqkPYlGuP/M556uh53jRLJmzTWA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [glibc] '@img/sharp-linuxmusl-arm64@0.33.5': resolution: {integrity: sha512-XrHMZwGQGvJg2V/oRSUfSAfjfPxO+4DkiRh6p2AFjLQztWUuY/o8Mq0eMQVIY7HJ1CDQUJlxGGZRw1a5bqmd1g==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] + libc: [musl] '@img/sharp-linuxmusl-x64@0.33.5': resolution: {integrity: sha512-WT+d/cgqKkkKySYmqoZ8y3pxx7lx9vVejxW/W4DOFMYVSkErR+w7mf2u8m/y4+xHe7yY9DAXQMWQhpnMuFfScw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] + libc: [musl] '@img/sharp-win32-x64@0.33.5': resolution: {integrity: sha512-MpY/o8/8kj+EcnxwvrP4aTJSWw/aZ7JIGR4aBeZkZw5B7/Jn+tY9/VNwtcoGmdT7GfggGIU4kygOMSbYnOrAbg==} @@ -2441,51 +2462,61 @@ packages: resolution: {integrity: sha512-bvXVU42mOVcF4le6XSjscdXjqx8okv4n5vmwgzcmtvFdifQ5U4dXFYaCB87namDRKlUL9ybVtLQ9ztnawaSzvg==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.36.0': resolution: {integrity: sha512-JFIQrDJYrxOnyDQGYkqnNBtjDwTgbasdbUiQvcU8JmGDfValfH1lNpng+4FWlhaVIR4KPkeddYjsVVbmJYvDcg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.36.0': resolution: {integrity: sha512-KqjYVh3oM1bj//5X7k79PSCZ6CvaVzb7Qs7VMWS+SlWB5M8p3FqufLP9VNp4CazJ0CsPDLwVD9r3vX7Ci4J56A==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.36.0': resolution: {integrity: sha512-QiGnhScND+mAAtfHqeT+cB1S9yFnNQ/EwCg5yE3MzoaZZnIV0RV9O5alJAoJKX/sBONVKeZdMfO8QSaWEygMhw==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loongarch64-gnu@4.36.0': resolution: {integrity: sha512-1ZPyEDWF8phd4FQtTzMh8FQwqzvIjLsl6/84gzUxnMNFBtExBtpL51H67mV9xipuxl1AEAerRBgBwFNpkw8+Lg==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-powerpc64le-gnu@4.36.0': resolution: {integrity: sha512-VMPMEIUpPFKpPI9GZMhJrtu8rxnp6mJR3ZzQPykq4xc2GmdHj3Q4cA+7avMyegXy4n1v+Qynr9fR88BmyO74tg==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.36.0': resolution: {integrity: sha512-ttE6ayb/kHwNRJGYLpuAvB7SMtOeQnVXEIpMtAvx3kepFQeowVED0n1K9nAdraHUPJ5hydEMxBpIR7o4nrm8uA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.36.0': resolution: {integrity: sha512-4a5gf2jpS0AIe7uBjxDeUMNcFmaRTbNv7NxI5xOCs4lhzsVyGR/0qBXduPnoWf6dGC365saTiwag8hP1imTgag==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.36.0': resolution: {integrity: sha512-5KtoW8UWmwFKQ96aQL3LlRXX16IMwyzMq/jSSVIIyAANiE1doaQsx/KRyhAvpHlPjPiSU/AYX/8m+lQ9VToxFQ==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.36.0': resolution: {integrity: sha512-sycrYZPrv2ag4OCvaN5js+f01eoZ2U+RmT5as8vhxiFz+kxwlHrsxOwKPSA8WyS+Wc6Epid9QeI/IkQ9NkgYyQ==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.36.0': resolution: {integrity: sha512-qbqt4N7tokFwwSVlWDsjfoHgviS3n/vZ8LK0h1uLG9TYIRuUTJC88E1xb3LM2iqZ/WTqNQjYrtmtGmrmmawB6A==} @@ -5557,6 +5588,7 @@ packages: prebuild-install@7.1.3: resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==} engines: {node: '>=10'} + deprecated: No longer maintained. Please contact the author of the relevant native addon; alternatives are available. hasBin: true prelude-ls@1.2.1: @@ -5988,12 +6020,14 @@ packages: engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [glibc] solana-bankrun-linux-x64-musl@0.3.1: resolution: {integrity: sha512-6r8i0NuXg3CGURql8ISMIUqhE7Hx/O7MlIworK4oN08jYrP0CXdLeB/hywNn7Z8d1NXrox/NpYUgvRm2yIzAsQ==} engines: {node: '>= 10'} cpu: [x64] os: [linux] + libc: [musl] solana-bankrun@0.3.1: resolution: {integrity: sha512-inRwON7fBU5lPC36HdEqPeDg15FXJYcf77+o0iz9amvkUMJepcwnRwEfTNyMVpVYdgjTOBW5vg+596/3fi1kGA==} @@ -6876,7 +6910,7 @@ snapshots: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) anchor-client-gen: 0.28.1(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) bn: 1.0.5 - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 6.0.0 buffer-layout: 1.2.2 cyrb53: 1.0.0 @@ -7296,7 +7330,7 @@ snapshots: '@metaplex-foundation/solita': 0.12.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) '@solana/spl-token': 0.4.13(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.3)(utf-8-validate@5.0.10) '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 borsh: 0.7.0 bs58: 6.0.0 js-sha256: 0.11.0 @@ -7416,7 +7450,7 @@ snapshots: '@coral-xyz/borsh': 0.29.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10)) '@noble/hashes': 1.4.0 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 camelcase: 6.3.0 @@ -7438,7 +7472,7 @@ snapshots: '@coral-xyz/borsh': 0.29.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@noble/hashes': 1.4.0 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 camelcase: 6.3.0 @@ -7461,7 +7495,7 @@ snapshots: '@coral-xyz/borsh': 0.30.1(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10)) '@noble/hashes': 1.4.0 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 camelcase: 6.3.0 @@ -7484,7 +7518,7 @@ snapshots: '@coral-xyz/borsh': 0.30.1(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@noble/hashes': 1.4.0 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 camelcase: 6.3.0 @@ -7555,13 +7589,13 @@ snapshots: '@coral-xyz/borsh@0.29.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10))': dependencies: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 buffer-layout: 1.2.2 '@coral-xyz/borsh@0.29.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))': dependencies: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 buffer-layout: 1.2.2 '@coral-xyz/borsh@0.30.1(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10))': @@ -8695,7 +8729,7 @@ snapshots: '@lightprotocol/stateless.js': 0.20.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@solana/spl-token': 0.4.9(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.3)(utf-8-validate@5.0.10) '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 buffer: 6.0.3 '@lightprotocol/stateless.js@0.20.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))': @@ -8703,7 +8737,7 @@ snapshots: '@coral-xyz/borsh': 0.29.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@noble/hashes': 1.5.0 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 6.0.0 buffer: 6.0.3 buffer-layout: 1.2.2 @@ -8901,7 +8935,7 @@ snapshots: dependencies: ansicolors: 0.3.2 assert: 2.1.0 - bn.js: 5.2.1 + bn.js: 5.2.2 debug: 4.4.0 transitivePeerDependencies: - supports-color @@ -9288,7 +9322,7 @@ snapshots: '@solana/buffer-layout': 4.0.1 '@solana/spl-token': 0.4.13(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.3)(utf-8-validate@5.0.10) '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) - bn.js: 5.2.1 + bn.js: 5.2.2 decimal.js: 10.5.0 express: 4.21.2 gaussian: 1.3.0 @@ -10207,14 +10241,14 @@ snapshots: dependencies: tslib: 2.8.1 - '@saberhq/solana-contrib@1.15.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bn.js@5.2.1)': + '@saberhq/solana-contrib@1.15.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bn.js@5.2.2)': dependencies: '@saberhq/option-utils': 1.15.0 '@solana/buffer-layout': 4.0.1 '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) '@types/promise-retry': 1.1.6 '@types/retry': 0.12.5 - bn.js: 5.2.1 + bn.js: 5.2.2 promise-retry: 2.0.1 retry: 0.13.1 tiny-invariant: 1.3.3 @@ -11198,7 +11232,7 @@ snapshots: '@solana/buffer-layout': 4.0.1 agentkeepalive: 4.6.0 bigint-buffer: 1.1.5 - bn.js: 5.2.1 + bn.js: 5.2.2 borsh: 0.7.0 bs58: 4.0.1 buffer: 6.0.3 @@ -11383,7 +11417,7 @@ snapshots: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) '@types/bn.js': 5.1.6 assert: 2.1.0 - bn.js: 5.2.1 + bn.js: 5.2.2 buffer: 6.0.3 invariant: 2.2.4 transitivePeerDependencies: @@ -11407,7 +11441,7 @@ snapshots: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.6.3)(utf-8-validate@5.0.10) axios: 1.9.0 big.js: 6.2.2 - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 6.0.0 cron-validator: 1.3.1 decimal.js: 10.5.0 @@ -11427,7 +11461,7 @@ snapshots: '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) axios: 1.9.0 big.js: 6.2.2 - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 6.0.0 cron-validator: 1.3.1 decimal.js: 10.5.0 @@ -11515,13 +11549,13 @@ snapshots: dependencies: '@coral-xyz/anchor': 0.26.0(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) '@msgpack/msgpack': 2.8.0 - '@saberhq/solana-contrib': 1.15.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bn.js@5.2.1) + '@saberhq/solana-contrib': 1.15.0(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bn.js@5.2.2) '@solana/spl-token': 0.4.13(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.3)(utf-8-validate@5.0.10) '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10) '@tensor-hq/tensor-common': 8.3.2(bufferutil@4.0.9)(encoding@0.1.13)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.8.3)(utf-8-validate@5.0.10) '@types/bn.js': 5.1.6 big.js: 6.2.2 - bn.js: 5.2.1 + bn.js: 5.2.2 js-sha256: 0.9.0 keccak256: 1.0.6 math-expression-evaluator: 2.0.6 @@ -12257,7 +12291,7 @@ snapshots: borsh@0.7.0: dependencies: - bn.js: 5.2.1 + bn.js: 5.2.2 bs58: 4.0.1 text-encoding-utf-8: 1.0.2 @@ -13996,7 +14030,7 @@ snapshots: keccak256@1.0.6: dependencies: - bn.js: 5.2.1 + bn.js: 5.2.2 buffer: 6.0.3 keccak: 3.0.4 diff --git a/turbo.json b/turbo.json index 4922369c8..2be4cd4f4 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "tasks": { + "pipeline": { "build": { "dependsOn": ["^build"], "inputs": ["packages/**"],