From 77754f040479b7202fc906370410e6e198df5d03 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 10:56:46 -0400 Subject: [PATCH 01/10] ci: fix matrix stride, pin actions, add timeouts - Fix matrix slicing stride: jobs sliced with hardcoded MIN_PROJECTS_PER_JOB while the matrix was sized with the computed projects_per_job, silently skipping projects once a project type crosses 256 directories. Slicing now uses the computed value. - Cancel superseded in-progress runs on PR pushes (concurrency groups). - Add timeout-minutes to every job so a hung validator cannot run to the 6-hour ceiling. - Add least-privilege top-level permissions (contents: read). - Pin third-party actions (dorny/paths-filter, pnpm/action-setup, extractions/setup-just, heyAyushh/setup-solana, dtolnay/rust-toolchain) to full commit SHAs; upgrade solana-asm's paths-filter from v3 to the same pinned v4 used elsewhere. --- .github/actions/setup-anchor/action.yml | 2 +- .github/workflows/anchor.yml | 20 ++++++++++++++++--- .github/workflows/just.yml | 16 ++++++++++++--- .github/workflows/rust.yml | 15 ++++++++++++-- .github/workflows/solana-asm.yml | 24 ++++++++++++++++++----- .github/workflows/solana-native.yml | 26 +++++++++++++++++++------ .github/workflows/solana-pinocchio.yml | 26 +++++++++++++++++++------ .github/workflows/typescript.yml | 10 +++++++++- 8 files changed, 112 insertions(+), 27 deletions(-) diff --git a/.github/actions/setup-anchor/action.yml b/.github/actions/setup-anchor/action.yml index 1bf682e2b..cf2164461 100644 --- a/.github/actions/setup-anchor/action.yml +++ b/.github/actions/setup-anchor/action.yml @@ -37,7 +37,7 @@ runs: echo "Using Node version: $(node -v)" - name: Setup Solana - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: ${{ inputs.solana-cli-version }} diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 8ba753dcb..abf22c693 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -11,6 +11,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: MAX_JOBS: 64 MIN_PROJECTS_PER_JOB: 4 @@ -25,15 +32,18 @@ env: jobs: changes: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: + contents: read pull-requests: read outputs: changed_projects: ${{ steps.analyze.outputs.changed_projects }} total_projects: ${{ steps.analyze.outputs.total_projects }} matrix: ${{ steps.matrix.outputs.matrix }} + projects_per_job: ${{ steps.matrix.outputs.projects_per_job }} steps: - uses: actions/checkout@v7 - - uses: dorny/paths-filter@v4 + - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4 id: changes if: github.event_name == 'pull_request' with: @@ -88,6 +98,7 @@ jobs: # Generate matrix based on number of projects if [ "$total_projects" -lt "$min_projects_for_matrix" ]; then echo "matrix=[0]" >> $GITHUB_OUTPUT + echo "projects_per_job=$total_projects" >> $GITHUB_OUTPUT else projects_per_job=$(( (total_projects + max_jobs - 1) / max_jobs )) projects_per_job=$(( projects_per_job > min_projects_per_job ? projects_per_job : min_projects_per_job )) @@ -95,12 +106,14 @@ jobs: indices=$(seq 0 $(( num_jobs - 1 ))) echo "matrix=[$(echo $indices | tr ' ' ',')]" >> $GITHUB_OUTPUT + echo "projects_per_job=$projects_per_job" >> $GITHUB_OUTPUT fi build-and-test: needs: changes if: needs.changes.outputs.total_projects != '0' runs-on: ubuntu-latest + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -110,7 +123,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - uses: ./.github/actions/setup-anchor with: anchor-version: 1.0.2 @@ -125,7 +138,7 @@ jobs: - name: Build and Test env: TOTAL_PROJECTS: ${{ needs.changes.outputs.total_projects }} - PROJECTS_PER_JOB: ${{ env.MIN_PROJECTS_PER_JOB }} + PROJECTS_PER_JOB: ${{ needs.changes.outputs.projects_per_job }} run: | function build_and_test() { local project=$1 @@ -214,6 +227,7 @@ jobs: needs: [changes, build-and-test] if: always() runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v7 - name: Create job summary diff --git a/.github/workflows/just.yml b/.github/workflows/just.yml index 5fa354393..39e05cf47 100644 --- a/.github/workflows/just.yml +++ b/.github/workflows/just.yml @@ -16,6 +16,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: CARGO_NET_RETRY: "10" CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse @@ -25,7 +32,9 @@ env: jobs: discover: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: + contents: read pull-requests: read outputs: projects: ${{ steps.find.outputs.projects }} @@ -78,6 +87,7 @@ jobs: needs: discover if: needs.discover.outputs.any == 'true' runs-on: ubuntu-latest + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -85,16 +95,16 @@ jobs: name: ${{ matrix.project }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - name: Use Node.js uses: actions/setup-node@v5 with: node-version-file: ${{ matrix.project }}/.nvmrc check-latest: true - name: Install just - uses: extractions/setup-just@v4 + uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4 - name: Setup Solana - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: stable - name: Build and test diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f4ae0566c..fa4786827 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,6 +14,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: # See https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -25,10 +32,12 @@ jobs: fmt: name: Rustfmt runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v7 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable with: + toolchain: stable # Specific to dtolnay/rust-toolchain: Comma-separated string of additional components to install components: rustfmt - name: Enforce formatting @@ -38,10 +47,12 @@ jobs: clippy: name: Clippy runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v7 - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable with: + toolchain: stable components: clippy - name: Linting # Allow diverging_sub_expression: false positive from Anchor 1.0's #[program] macro expansion diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index 8bb00710e..7ac5ebb0d 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -11,6 +11,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: MAX_JOBS: 64 MIN_PROJECTS_PER_JOB: 4 @@ -23,15 +30,18 @@ env: jobs: changes: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: + contents: read pull-requests: read outputs: changed_projects: ${{ steps.analyze.outputs.changed_projects }} total_projects: ${{ steps.analyze.outputs.total_projects }} matrix: ${{ steps.matrix.outputs.matrix }} + projects_per_job: ${{ steps.matrix.outputs.projects_per_job }} steps: - uses: actions/checkout@v7 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4 id: changes if: github.event_name == 'pull_request' with: @@ -87,6 +97,7 @@ jobs: if [ "$total_projects" -lt "$min_projects_for_matrix" ]; then echo "matrix=[0]" >> $GITHUB_OUTPUT + echo "projects_per_job=$total_projects" >> $GITHUB_OUTPUT else projects_per_job=$(( (total_projects + max_jobs - 1) / max_jobs )) projects_per_job=$(( projects_per_job > min_projects_per_job ? projects_per_job : min_projects_per_job )) @@ -94,12 +105,14 @@ jobs: indices=$(seq 0 $(( num_jobs - 1 ))) echo "matrix=[$(echo $indices | tr ' ' ',')]" >> $GITHUB_OUTPUT + echo "projects_per_job=$projects_per_job" >> $GITHUB_OUTPUT fi build-and-test: needs: changes if: needs.changes.outputs.total_projects != '0' runs-on: ubuntu-latest + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -161,8 +174,8 @@ jobs: local solana_version=$1 readarray -t all_projects < <(echo '${{ needs.changes.outputs.changed_projects }}' | jq -r '.[]?') - start_index=$(( ${{ matrix.index }} * ${{ env.MIN_PROJECTS_PER_JOB }} )) - end_index=$(( start_index + ${{ env.MIN_PROJECTS_PER_JOB }} )) + start_index=$(( ${{ matrix.index }} * ${{ needs.changes.outputs.projects_per_job }} )) + end_index=$(( start_index + ${{ needs.changes.outputs.projects_per_job }} )) end_index=$(( end_index > ${{ needs.changes.outputs.total_projects }} ? ${{ needs.changes.outputs.total_projects }} : end_index )) echo "Projects to build and test in this job" @@ -196,7 +209,7 @@ jobs: # example. Keep in sync with the pinned Solana version below. cargo install --git https://github.com/blueshift-gg/sbpf.git --rev 0223df0e7ba622d4956b4ecf3cf2397f6945b76b - name: Setup Solana Stable - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: # Pinned to 4.0.3, the last version the ASM examples passed on (paired # with sbpf v0.1.9 above). Floating "stable" moved to 4.1.1 in the same @@ -214,7 +227,7 @@ jobs: # with heyAyushh/setup-solana — beta setup clears the stable install first. - name: Setup Solana Beta continue-on-error: true - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta @@ -240,6 +253,7 @@ jobs: needs: [changes, build-and-test] if: always() runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v7 - name: Create job summary diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index 88ce565e6..7a669572a 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -11,6 +11,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: MAX_JOBS: 64 MIN_PROJECTS_PER_JOB: 4 @@ -25,15 +32,18 @@ env: jobs: changes: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: + contents: read pull-requests: read outputs: changed_projects: ${{ steps.analyze.outputs.changed_projects }} total_projects: ${{ steps.analyze.outputs.total_projects }} matrix: ${{ steps.matrix.outputs.matrix }} + projects_per_job: ${{ steps.matrix.outputs.projects_per_job }} steps: - uses: actions/checkout@v7 - - uses: dorny/paths-filter@v4 + - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4 id: changes if: github.event_name == 'pull_request' with: @@ -89,6 +99,7 @@ jobs: if [ "$total_projects" -lt "$min_projects_for_matrix" ]; then echo "matrix=[0]" >> $GITHUB_OUTPUT + echo "projects_per_job=$total_projects" >> $GITHUB_OUTPUT else projects_per_job=$(( (total_projects + max_jobs - 1) / max_jobs )) projects_per_job=$(( projects_per_job > min_projects_per_job ? projects_per_job : min_projects_per_job )) @@ -96,12 +107,14 @@ jobs: indices=$(seq 0 $(( num_jobs - 1 ))) echo "matrix=[$(echo $indices | tr ' ' ',')]" >> $GITHUB_OUTPUT + echo "projects_per_job=$projects_per_job" >> $GITHUB_OUTPUT fi build-and-test: needs: changes if: needs.changes.outputs.total_projects != '0' runs-on: ubuntu-latest + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -111,7 +124,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - name: Use Node.js uses: actions/setup-node@v5 with: @@ -172,8 +185,8 @@ jobs: local solana_version=$1 readarray -t all_projects < <(echo '${{ needs.changes.outputs.changed_projects }}' | jq -r '.[]?') - start_index=$(( ${{ matrix.index }} * ${{ env.MIN_PROJECTS_PER_JOB }} )) - end_index=$(( start_index + ${{ env.MIN_PROJECTS_PER_JOB }} )) + start_index=$(( ${{ matrix.index }} * ${{ needs.changes.outputs.projects_per_job }} )) + end_index=$(( start_index + ${{ needs.changes.outputs.projects_per_job }} )) end_index=$(( end_index > ${{ needs.changes.outputs.total_projects }} ? ${{ needs.changes.outputs.total_projects }} : end_index )) echo "Projects to build and test in this job" @@ -198,7 +211,7 @@ jobs: chmod +x build_and_test.sh - name: Setup Solana Stable - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: stable - name: Build and Test with Stable @@ -212,7 +225,7 @@ jobs: # with heyAyushh/setup-solana — beta setup clears the stable install first. - name: Setup Solana Beta continue-on-error: true - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta @@ -238,6 +251,7 @@ jobs: needs: [changes, build-and-test] if: always() runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v7 - name: Create job summary diff --git a/.github/workflows/solana-pinocchio.yml b/.github/workflows/solana-pinocchio.yml index cb0f0fbf6..9c556fe2d 100644 --- a/.github/workflows/solana-pinocchio.yml +++ b/.github/workflows/solana-pinocchio.yml @@ -11,6 +11,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: MAX_JOBS: 64 MIN_PROJECTS_PER_JOB: 4 @@ -25,15 +32,18 @@ env: jobs: changes: runs-on: ubuntu-latest + timeout-minutes: 10 permissions: + contents: read pull-requests: read outputs: changed_projects: ${{ steps.analyze.outputs.changed_projects }} total_projects: ${{ steps.analyze.outputs.total_projects }} matrix: ${{ steps.matrix.outputs.matrix }} + projects_per_job: ${{ steps.matrix.outputs.projects_per_job }} steps: - uses: actions/checkout@v7 - - uses: dorny/paths-filter@v4 + - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4 id: changes if: github.event_name == 'pull_request' with: @@ -89,6 +99,7 @@ jobs: if [ "$total_projects" -lt "$min_projects_for_matrix" ]; then echo "matrix=[0]" >> $GITHUB_OUTPUT + echo "projects_per_job=$total_projects" >> $GITHUB_OUTPUT else projects_per_job=$(( (total_projects + max_jobs - 1) / max_jobs )) projects_per_job=$(( projects_per_job > min_projects_per_job ? projects_per_job : min_projects_per_job )) @@ -96,12 +107,14 @@ jobs: indices=$(seq 0 $(( num_jobs - 1 ))) echo "matrix=[$(echo $indices | tr ' ' ',')]" >> $GITHUB_OUTPUT + echo "projects_per_job=$projects_per_job" >> $GITHUB_OUTPUT fi build-and-test: needs: changes if: needs.changes.outputs.total_projects != '0' runs-on: ubuntu-latest + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -111,7 +124,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - name: Use Node.js uses: actions/setup-node@v5 with: @@ -172,8 +185,8 @@ jobs: local solana_version=$1 readarray -t all_projects < <(echo '${{ needs.changes.outputs.changed_projects }}' | jq -r '.[]?') - start_index=$(( ${{ matrix.index }} * ${{ env.MIN_PROJECTS_PER_JOB }} )) - end_index=$(( start_index + ${{ env.MIN_PROJECTS_PER_JOB }} )) + start_index=$(( ${{ matrix.index }} * ${{ needs.changes.outputs.projects_per_job }} )) + end_index=$(( start_index + ${{ needs.changes.outputs.projects_per_job }} )) end_index=$(( end_index > ${{ needs.changes.outputs.total_projects }} ? ${{ needs.changes.outputs.total_projects }} : end_index )) echo "Projects to build and test in this job" @@ -198,7 +211,7 @@ jobs: chmod +x build_and_test.sh - name: Setup Solana Stable - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: stable - name: Build and Test with Stable @@ -212,7 +225,7 @@ jobs: # with heyAyushh/setup-solana — beta setup clears the stable install first. - name: Setup Solana Beta continue-on-error: true - uses: heyAyushh/setup-solana@v5.9 + uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta @@ -238,6 +251,7 @@ jobs: needs: [changes, build-and-test] if: always() runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v7 - name: Create job summary diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index 781f706c2..aeaea6645 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -9,6 +9,13 @@ on: branches: - main +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: # See https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true @@ -17,9 +24,10 @@ jobs: biome: name: Biome check runs-on: ubuntu-latest + timeout-minutes: 15 steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@v4 + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - uses: actions/setup-node@v4 with: node-version: 20 From b92543de5d39bbd0d689f77ad9447b73aa70067e Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 10:58:02 -0400 Subject: [PATCH 02/10] ci: run Solana beta legs on nightly schedule only Beta setup and test steps were continue-on-error on every PR and push, so they doubled build time while never blocking, and a beta 404 left a soft-failed step indistinguishable from a pass. Beta now runs only on the nightly schedule, skips the test leg when beta setup fails, and reports passed/failed/skipped explicitly in the job summary. --- .github/workflows/solana-asm.yml | 19 ++++++++++++++++--- .github/workflows/solana-native.yml | 19 ++++++++++++++++--- .github/workflows/solana-pinocchio.yml | 19 ++++++++++++++++--- 3 files changed, 48 insertions(+), 9 deletions(-) diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index 7ac5ebb0d..f5a76bf70 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -222,21 +222,34 @@ jobs: solana -V rustc -V process_projects "stable" - # continue-on-error because the beta channel may not have a valid release - # (e.g. v4.0 returns 404 from release.anza.xyz). This is an upstream issue - # with heyAyushh/setup-solana — beta setup clears the stable install first. + # Beta runs only on the nightly schedule and never blocks: the beta + # channel may not have a valid release (e.g. v4.0 returns 404 from + # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and + # beta setup clears the stable install first. - name: Setup Solana Beta + id: setup-beta + if: github.event_name == 'schedule' continue-on-error: true uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta + id: test-beta + if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' continue-on-error: true run: | source build_and_test.sh solana -V rustc -V process_projects "beta" + - name: Report Beta outcome + if: github.event_name == 'schedule' + run: | + case "${{ steps.setup-beta.outcome }}/${{ steps.test-beta.outcome }}" in + success/success) echo ":white_check_mark: Beta: build and tests passed" >> $GITHUB_STEP_SUMMARY ;; + success/*) echo ":x: Beta: build or tests failed (non-blocking)" >> $GITHUB_STEP_SUMMARY ;; + *) echo ":warning: Beta: skipped — beta toolchain setup failed (channel likely has no release)" >> $GITHUB_STEP_SUMMARY ;; + esac - name: Set failed projects output id: set-failed diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index 7a669572a..f1808da9d 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -220,21 +220,34 @@ jobs: solana -V rustc -V process_projects "stable" - # continue-on-error because the beta channel may not have a valid release - # (e.g. v4.0 returns 404 from release.anza.xyz). This is an upstream issue - # with heyAyushh/setup-solana — beta setup clears the stable install first. + # Beta runs only on the nightly schedule and never blocks: the beta + # channel may not have a valid release (e.g. v4.0 returns 404 from + # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and + # beta setup clears the stable install first. - name: Setup Solana Beta + id: setup-beta + if: github.event_name == 'schedule' continue-on-error: true uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta + id: test-beta + if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' continue-on-error: true run: | source build_and_test.sh solana -V rustc -V process_projects "beta" + - name: Report Beta outcome + if: github.event_name == 'schedule' + run: | + case "${{ steps.setup-beta.outcome }}/${{ steps.test-beta.outcome }}" in + success/success) echo ":white_check_mark: Beta: build and tests passed" >> $GITHUB_STEP_SUMMARY ;; + success/*) echo ":x: Beta: build or tests failed (non-blocking)" >> $GITHUB_STEP_SUMMARY ;; + *) echo ":warning: Beta: skipped — beta toolchain setup failed (channel likely has no release)" >> $GITHUB_STEP_SUMMARY ;; + esac - name: Set failed projects output id: set-failed diff --git a/.github/workflows/solana-pinocchio.yml b/.github/workflows/solana-pinocchio.yml index 9c556fe2d..851daa219 100644 --- a/.github/workflows/solana-pinocchio.yml +++ b/.github/workflows/solana-pinocchio.yml @@ -220,21 +220,34 @@ jobs: solana -V rustc -V process_projects "stable" - # continue-on-error because the beta channel may not have a valid release - # (e.g. v4.0 returns 404 from release.anza.xyz). This is an upstream issue - # with heyAyushh/setup-solana — beta setup clears the stable install first. + # Beta runs only on the nightly schedule and never blocks: the beta + # channel may not have a valid release (e.g. v4.0 returns 404 from + # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and + # beta setup clears the stable install first. - name: Setup Solana Beta + id: setup-beta + if: github.event_name == 'schedule' continue-on-error: true uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: solana-cli-version: beta - name: Build and Test with Beta + id: test-beta + if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' continue-on-error: true run: | source build_and_test.sh solana -V rustc -V process_projects "beta" + - name: Report Beta outcome + if: github.event_name == 'schedule' + run: | + case "${{ steps.setup-beta.outcome }}/${{ steps.test-beta.outcome }}" in + success/success) echo ":white_check_mark: Beta: build and tests passed" >> $GITHUB_STEP_SUMMARY ;; + success/*) echo ":x: Beta: build or tests failed (non-blocking)" >> $GITHUB_STEP_SUMMARY ;; + *) echo ":warning: Beta: skipped — beta toolchain setup failed (channel likely has no release)" >> $GITHUB_STEP_SUMMARY ;; + esac - name: Set failed projects output id: set-failed From c6037b258c555f79cc9cec783b9885ee4d956b98 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 11:25:20 -0400 Subject: [PATCH 03/10] ci: typecheck TypeScript in every build workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Nothing in CI ran tsc before: Biome only lints, and ts-mocha/tsx transpile without checking, so type errors shipped invisibly (e.g. counter/native called createIncrementInstruction with two args). Each build workflow now runs tsc --noEmit -p tsconfig.json per project when a tsconfig exists — after pnpm install for native/pinocchio/asm, after anchor build for anchor so generated target/types and target/idl resolve. Repairs to make all CI-covered projects pass: - skipLibCheck, es2020 target/lib, and node in types across failing tsconfigs; @types/node added and typescript 4.x bumped to ^5.3.3 (lockfiles regenerated) - resolveJsonModule for projects importing target/idl JSON; nodenext module where tests use import attributes; allowImportingTsExtensions + noEmit where tests import generated .ts files by extension - root tsconfig.json added to counter/native, counter/pinocchio, realloc/pinocchio, close-account/native, which only had a broken tests/tsconfig.test.json (typeRoots resolved relative to tests/) - close-account/native: added missing borsh dependency and a MyInstruction type alias; counter/native: dropped the extra argument in two createIncrementInstruction calls Projects .ghaignore'd or outside CI discovery (pblock-list, world-cup webapp, nft-meta-data-pointer app, cnft-*, cutils) were left untouched and still have known type errors. --- .github/workflows/anchor.yml | 11 ++++ .github/workflows/solana-asm.yml | 10 +++ .github/workflows/solana-native.yml | 10 +++ .github/workflows/solana-pinocchio.yml | 10 +++ basics/account-data/anchor/package.json | 3 +- basics/account-data/anchor/pnpm-lock.yaml | 3 + basics/account-data/anchor/tsconfig.json | 12 ++-- basics/account-data/native/package.json | 3 +- basics/account-data/native/pnpm-lock.yaml | 59 +++++++++--------- basics/account-data/native/tsconfig.json | 9 +-- basics/checking-accounts/anchor/package.json | 3 +- .../checking-accounts/anchor/pnpm-lock.yaml | 3 + basics/checking-accounts/anchor/tsconfig.json | 12 ++-- basics/checking-accounts/native/package.json | 5 +- .../checking-accounts/native/pnpm-lock.yaml | 59 +++++++++--------- basics/checking-accounts/native/tsconfig.json | 9 +-- basics/close-account/anchor/package.json | 3 +- basics/close-account/anchor/pnpm-lock.yaml | 3 + basics/close-account/anchor/tsconfig.json | 5 +- basics/close-account/native/package.json | 6 +- basics/close-account/native/pnpm-lock.yaml | 62 ++++++++++--------- .../native/tests/tsconfig.test.json | 9 +-- .../native/ts/instructions/index.ts | 2 + basics/close-account/native/tsconfig.json | 10 +++ basics/counter/anchor/package.json | 3 +- basics/counter/anchor/pnpm-lock.yaml | 3 + basics/counter/anchor/tsconfig.json | 7 ++- basics/counter/native/package.json | 3 +- basics/counter/native/pnpm-lock.yaml | 45 +++++++------- basics/counter/native/tests/counter.test.ts | 4 +- .../counter/native/tests/tsconfig.test.json | 9 +-- basics/counter/native/tsconfig.json | 10 +++ basics/counter/pinocchio/package.json | 3 +- basics/counter/pinocchio/pnpm-lock.yaml | 45 +++++++------- .../pinocchio/tests/tsconfig.test.json | 9 +-- basics/counter/pinocchio/tsconfig.json | 10 +++ basics/create-account/anchor/package.json | 3 +- basics/create-account/anchor/pnpm-lock.yaml | 3 + basics/create-account/anchor/tsconfig.json | 7 ++- basics/create-account/asm/package.json | 3 +- basics/create-account/asm/pnpm-lock.yaml | 61 +++++++++--------- basics/create-account/asm/tsconfig.json | 9 +-- basics/create-account/native/package.json | 3 +- basics/create-account/native/pnpm-lock.yaml | 59 +++++++++--------- basics/create-account/native/tsconfig.json | 9 +-- basics/create-account/pinocchio/package.json | 3 +- .../create-account/pinocchio/pnpm-lock.yaml | 59 +++++++++--------- basics/create-account/pinocchio/tsconfig.json | 9 +-- .../anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 3 + .../anchor/tsconfig.json | 7 ++- basics/favorites/anchor/package.json | 3 +- basics/favorites/anchor/pnpm-lock.yaml | 3 + basics/favorites/anchor/tsconfig.json | 7 ++- basics/hello-solana/anchor/package.json | 3 +- basics/hello-solana/anchor/pnpm-lock.yaml | 3 + basics/hello-solana/anchor/tsconfig.json | 7 ++- basics/hello-solana/asm/package.json | 2 +- basics/hello-solana/asm/pnpm-lock.yaml | 42 ++++++------- basics/hello-solana/asm/tsconfig.json | 9 +-- basics/hello-solana/native/package.json | 3 +- basics/hello-solana/native/pnpm-lock.yaml | 59 +++++++++--------- basics/hello-solana/native/tsconfig.json | 9 +-- basics/pda-rent-payer/anchor/package.json | 3 +- basics/pda-rent-payer/anchor/pnpm-lock.yaml | 25 ++++---- basics/pda-rent-payer/anchor/tsconfig.json | 11 ++-- basics/pda-rent-payer/native/package.json | 3 +- basics/pda-rent-payer/native/pnpm-lock.yaml | 59 +++++++++--------- basics/pda-rent-payer/native/tsconfig.json | 9 +-- basics/pda-rent-payer/pinocchio/package.json | 3 +- .../pda-rent-payer/pinocchio/pnpm-lock.yaml | 59 +++++++++--------- basics/pda-rent-payer/pinocchio/tsconfig.json | 9 +-- .../anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 3 + .../anchor/tests/test.ts | 2 +- .../anchor/tsconfig.json | 11 ++-- .../native/package.json | 3 +- .../native/pnpm-lock.yaml | 59 +++++++++--------- .../native/tsconfig.json | 9 +-- .../pinocchio/package.json | 3 +- .../pinocchio/pnpm-lock.yaml | 59 +++++++++--------- .../pinocchio/tsconfig.json | 9 +-- .../anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 3 + .../anchor/tsconfig.json | 11 ++-- .../native/package.json | 3 +- .../native/pnpm-lock.yaml | 59 +++++++++--------- .../native/tsconfig.json | 9 +-- .../pinocchio/package.json | 3 +- .../pinocchio/pnpm-lock.yaml | 59 +++++++++--------- .../pinocchio/tsconfig.json | 9 +-- basics/realloc/anchor/package.json | 3 +- basics/realloc/anchor/pnpm-lock.yaml | 3 + basics/realloc/anchor/tsconfig.json | 11 ++-- basics/realloc/pinocchio/package.json | 3 +- basics/realloc/pinocchio/pnpm-lock.yaml | 59 +++++++++--------- .../pinocchio/tests/tsconfig.test.json | 9 +-- basics/realloc/pinocchio/tsconfig.json | 10 +++ basics/rent/anchor/package.json | 3 +- basics/rent/anchor/pnpm-lock.yaml | 3 + basics/rent/anchor/tsconfig.json | 11 ++-- basics/rent/native/package.json | 3 +- basics/rent/native/pnpm-lock.yaml | 59 +++++++++--------- basics/rent/native/tsconfig.json | 9 +-- basics/rent/pinocchio/package.json | 3 +- basics/rent/pinocchio/pnpm-lock.yaml | 59 +++++++++--------- basics/rent/pinocchio/tsconfig.json | 9 +-- basics/repository-layout/anchor/package.json | 3 +- .../repository-layout/anchor/pnpm-lock.yaml | 3 + basics/repository-layout/anchor/tsconfig.json | 11 ++-- basics/repository-layout/native/package.json | 3 +- .../repository-layout/native/pnpm-lock.yaml | 59 +++++++++--------- basics/repository-layout/native/tsconfig.json | 9 +-- basics/transfer-sol/anchor/package.json | 3 +- basics/transfer-sol/anchor/pnpm-lock.yaml | 25 ++++---- basics/transfer-sol/anchor/tsconfig.json | 11 ++-- basics/transfer-sol/asm/package.json | 3 +- basics/transfer-sol/asm/pnpm-lock.yaml | 61 +++++++++--------- basics/transfer-sol/asm/tsconfig.json | 9 +-- basics/transfer-sol/native/package.json | 3 +- basics/transfer-sol/native/pnpm-lock.yaml | 59 +++++++++--------- basics/transfer-sol/native/tsconfig.json | 9 +-- basics/transfer-sol/pinocchio/package.json | 3 +- basics/transfer-sol/pinocchio/pnpm-lock.yaml | 59 +++++++++--------- basics/transfer-sol/pinocchio/tsconfig.json | 9 +-- tokens/create-token/anchor/package.json | 3 +- tokens/create-token/anchor/pnpm-lock.yaml | 25 ++++---- tokens/create-token/anchor/tsconfig.json | 9 +-- tokens/nft-minter/anchor/package.json | 3 +- tokens/nft-minter/anchor/pnpm-lock.yaml | 25 ++++---- tokens/nft-minter/anchor/tsconfig.json | 9 +-- tokens/nft-operations/anchor/package.json | 3 +- tokens/nft-operations/anchor/pnpm-lock.yaml | 17 ++--- tokens/nft-operations/anchor/tsconfig.json | 9 +-- tokens/pda-mint-authority/anchor/package.json | 3 +- .../pda-mint-authority/anchor/pnpm-lock.yaml | 25 ++++---- .../pda-mint-authority/anchor/tsconfig.json | 10 +-- tokens/spl-token-minter/anchor/package.json | 3 +- tokens/spl-token-minter/anchor/pnpm-lock.yaml | 25 ++++---- tokens/spl-token-minter/anchor/tsconfig.json | 10 +-- tokens/token-2022/basics/anchor/package.json | 3 +- .../token-2022/basics/anchor/pnpm-lock.yaml | 25 ++++---- tokens/token-2022/basics/anchor/tsconfig.json | 9 +-- .../token-2022/cpi-guard/anchor/package.json | 3 +- .../cpi-guard/anchor/pnpm-lock.yaml | 25 ++++---- .../token-2022/cpi-guard/anchor/tsconfig.json | 9 +-- .../default-account-state/anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 21 ++----- .../anchor/tsconfig.json | 9 +-- .../default-account-state/native/package.json | 3 +- .../native/pnpm-lock.yaml | 3 + .../native/tsconfig.json | 9 +-- .../immutable-owner/anchor/package.json | 3 +- .../immutable-owner/anchor/pnpm-lock.yaml | 25 ++++---- .../immutable-owner/anchor/tsconfig.json | 9 +-- .../interest-bearing/anchor/package.json | 3 +- .../interest-bearing/anchor/pnpm-lock.yaml | 21 ++----- .../interest-bearing/anchor/tsconfig.json | 9 +-- .../memo-transfer/anchor/package.json | 3 +- .../memo-transfer/anchor/pnpm-lock.yaml | 21 ++----- .../memo-transfer/anchor/tsconfig.json | 9 +-- .../mint-close-authority/anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 21 ++----- .../mint-close-authority/anchor/tsconfig.json | 9 +-- .../multiple-extensions/native/package.json | 3 +- .../multiple-extensions/native/pnpm-lock.yaml | 3 + .../multiple-extensions/native/tsconfig.json | 9 +-- .../non-transferable/anchor/package.json | 3 +- .../non-transferable/anchor/pnpm-lock.yaml | 21 ++----- .../non-transferable/anchor/tsconfig.json | 9 +-- .../permanent-delegate/anchor/package.json | 3 +- .../permanent-delegate/anchor/pnpm-lock.yaml | 21 ++----- .../permanent-delegate/anchor/tsconfig.json | 9 +-- .../transfer-fee/anchor/package.json | 3 +- .../transfer-fee/anchor/pnpm-lock.yaml | 21 ++----- .../transfer-fee/anchor/tsconfig.json | 9 +-- .../account-data-as-seed/anchor/package.json | 3 +- .../anchor/pnpm-lock.yaml | 3 + .../account-data-as-seed/anchor/tsconfig.json | 9 +-- .../transfer-hook/counter/anchor/package.json | 3 +- .../counter/anchor/pnpm-lock.yaml | 3 + .../counter/anchor/tsconfig.json | 9 +-- .../hello-world/anchor/package.json | 3 +- .../hello-world/anchor/pnpm-lock.yaml | 3 + .../hello-world/anchor/tsconfig.json | 9 +-- .../transfer-cost/anchor/package.json | 3 +- .../transfer-cost/anchor/pnpm-lock.yaml | 21 ++----- .../transfer-cost/anchor/tsconfig.json | 9 +-- .../transfer-switch/anchor/package.json | 3 +- .../transfer-switch/anchor/pnpm-lock.yaml | 21 ++----- .../transfer-switch/anchor/tsconfig.json | 10 +-- .../whitelist/anchor/package.json | 3 +- .../whitelist/anchor/pnpm-lock.yaml | 21 ++----- .../whitelist/anchor/tsconfig.json | 9 +-- tokens/token-fundraiser/anchor/package.json | 3 +- tokens/token-fundraiser/anchor/pnpm-lock.yaml | 21 ++----- tokens/token-fundraiser/anchor/tsconfig.json | 10 +-- tokens/transfer-tokens/anchor/package.json | 3 +- tokens/transfer-tokens/anchor/pnpm-lock.yaml | 21 ++----- tokens/transfer-tokens/anchor/tsconfig.json | 10 +-- 200 files changed, 1503 insertions(+), 1224 deletions(-) create mode 100644 basics/close-account/native/tsconfig.json create mode 100644 basics/counter/native/tsconfig.json create mode 100644 basics/counter/pinocchio/tsconfig.json create mode 100644 basics/realloc/pinocchio/tsconfig.json diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index abf22c693..56660f525 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -164,6 +164,17 @@ jobs: return 1 fi + # Typecheck (after anchor build so generated target/types exist) + if [ -f tsconfig.json ]; then + if ! pnpm exec tsc --noEmit -p tsconfig.json; then + echo "::error::typecheck failed for $project" + echo "$project: typecheck failed" >> $GITHUB_WORKSPACE/failed_projects.txt + rm -rf target + cd - > /dev/null + return 1 + fi + fi + # Run anchor test. Anchor 1.0.x syncs program ids to the ephemeral # keypair during its own build, so no separate keys sync is needed — # re-verify this if anchor-version is bumped. diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index f5a76bf70..574d29f56 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -146,6 +146,16 @@ jobs: return 1 fi + # Typecheck + if [ -f tsconfig.json ]; then + if ! pnpm exec tsc --noEmit -p tsconfig.json; then + echo "::error::typecheck failed for $project" + echo "$project: typecheck failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt + cd - > /dev/null + return 1 + fi + fi + # Build and Test if ! pnpm build-and-test; then echo "::error::build-and-test failed for $project" diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index f1808da9d..4260cd5b3 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -149,6 +149,16 @@ jobs: return 1 fi + # Typecheck + if [ -f tsconfig.json ]; then + if ! pnpm exec tsc --noEmit -p tsconfig.json; then + echo "::error::typecheck failed for $project" + echo "$project: typecheck failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt + cd - > /dev/null + return 1 + fi + fi + # Build if ! pnpm build; then echo "::error::build failed for $project" diff --git a/.github/workflows/solana-pinocchio.yml b/.github/workflows/solana-pinocchio.yml index 851daa219..abfbb0c0c 100644 --- a/.github/workflows/solana-pinocchio.yml +++ b/.github/workflows/solana-pinocchio.yml @@ -149,6 +149,16 @@ jobs: return 1 fi + # Typecheck + if [ -f tsconfig.json ]; then + if ! pnpm exec tsc --noEmit -p tsconfig.json; then + echo "::error::typecheck failed for $project" + echo "$project: typecheck failed with $solana_version" >> $GITHUB_WORKSPACE/failed_projects.txt + cd - > /dev/null + return 1 + fi + fi + # Build if ! pnpm build; then echo "::error::build failed for $project" diff --git a/basics/account-data/anchor/package.json b/basics/account-data/anchor/package.json index 495f5d0cc..72face9e9 100644 --- a/basics/account-data/anchor/package.json +++ b/basics/account-data/anchor/package.json @@ -11,7 +11,8 @@ "litesvm": "^0.3.3", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" }, "type": "module" } diff --git a/basics/account-data/anchor/pnpm-lock.yaml b/basics/account-data/anchor/pnpm-lock.yaml index fea07a0c0..e1f6acb93 100644 --- a/basics/account-data/anchor/pnpm-lock.yaml +++ b/basics/account-data/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/account-data/anchor/tsconfig.json b/basics/account-data/anchor/tsconfig.json index cd5d2e3d0..9927ea8d2 100644 --- a/basics/account-data/anchor/tsconfig.json +++ b/basics/account-data/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "lib": ["es2020"], + "module": "nodenext", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/basics/account-data/native/package.json b/basics/account-data/native/package.json index 8a9cc7950..744189d47 100644 --- a/basics/account-data/native/package.json +++ b/basics/account-data/native/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/account-data/native/pnpm-lock.yaml b/basics/account-data/native/pnpm-lock.yaml index 684a5c5f5..8484061eb 100644 --- a/basics/account-data/native/pnpm-lock.yaml +++ b/basics/account-data/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -35,13 +38,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -104,8 +107,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.18': - resolution: {integrity: sha512-v1DKRfUdyW+jJhZNEI1PYy29S2YRxMV5AOO/x/SjKmW0acCIOqmbj6Haf9eHAhsPmrhlHSxEhv/1WszcLWV4cg==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -623,9 +626,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -722,30 +725,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -768,13 +771,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.18 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.18 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -783,7 +786,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.18': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -791,11 +794,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.18 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.18 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1200,9 +1203,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1292,7 +1295,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/account-data/native/tsconfig.json b/basics/account-data/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/account-data/native/tsconfig.json +++ b/basics/account-data/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/checking-accounts/anchor/package.json b/basics/checking-accounts/anchor/package.json index 748d2adf5..9d8040a93 100644 --- a/basics/checking-accounts/anchor/package.json +++ b/basics/checking-accounts/anchor/package.json @@ -13,6 +13,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/checking-accounts/anchor/pnpm-lock.yaml b/basics/checking-accounts/anchor/pnpm-lock.yaml index d0feff1e4..441b7b8fc 100644 --- a/basics/checking-accounts/anchor/pnpm-lock.yaml +++ b/basics/checking-accounts/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 anchor-bankrun: specifier: ^0.4.0 version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) diff --git a/basics/checking-accounts/anchor/tsconfig.json b/basics/checking-accounts/anchor/tsconfig.json index cd5d2e3d0..9927ea8d2 100644 --- a/basics/checking-accounts/anchor/tsconfig.json +++ b/basics/checking-accounts/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "lib": ["es2020"], + "module": "nodenext", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/basics/checking-accounts/native/package.json b/basics/checking-accounts/native/package.json index f7dd7c5d1..5edbb452d 100644 --- a/basics/checking-accounts/native/package.json +++ b/basics/checking-accounts/native/package.json @@ -16,7 +16,8 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5", - "solana-bankrun": "^0.3.0" + "typescript": "^5.3.3", + "solana-bankrun": "^0.3.0", + "@types/node": "^20.9.0" } } diff --git a/basics/checking-accounts/native/pnpm-lock.yaml b/basics/checking-accounts/native/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/checking-accounts/native/pnpm-lock.yaml +++ b/basics/checking-accounts/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/checking-accounts/native/tsconfig.json b/basics/checking-accounts/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/checking-accounts/native/tsconfig.json +++ b/basics/checking-accounts/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/close-account/anchor/package.json b/basics/close-account/anchor/package.json index a34261367..208dfc2c5 100644 --- a/basics/close-account/anchor/package.json +++ b/basics/close-account/anchor/package.json @@ -17,7 +17,8 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" }, "type": "module" } diff --git a/basics/close-account/anchor/pnpm-lock.yaml b/basics/close-account/anchor/pnpm-lock.yaml index 6d5cf4fb1..156a2c4a2 100644 --- a/basics/close-account/anchor/pnpm-lock.yaml +++ b/basics/close-account/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 anchor-bankrun: specifier: ^0.4.0 version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) diff --git a/basics/close-account/anchor/tsconfig.json b/basics/close-account/anchor/tsconfig.json index ce454c83b..8b01e5a98 100644 --- a/basics/close-account/anchor/tsconfig.json +++ b/basics/close-account/anchor/tsconfig.json @@ -5,6 +5,9 @@ "module": "nodenext", "target": "es2020", "esModuleInterop": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/close-account/native/package.json b/basics/close-account/native/package.json index f464f367f..03e772ede 100644 --- a/basics/close-account/native/package.json +++ b/basics/close-account/native/package.json @@ -7,7 +7,8 @@ "deploy": "solana program deploy ./program/target/so/program.so" }, "dependencies": { - "@solana/web3.js": "^1.98.4" + "@solana/web3.js": "^1.98.4", + "borsh": "^0.7.0" }, "devDependencies": { "@types/bn.js": "^5.1.0", @@ -17,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/close-account/native/pnpm-lock.yaml b/basics/close-account/native/pnpm-lock.yaml index 6f8339c0b..40a54b3d1 100644 --- a/basics/close-account/native/pnpm-lock.yaml +++ b/basics/close-account/native/pnpm-lock.yaml @@ -10,7 +10,10 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + borsh: + specifier: ^0.7.0 + version: 0.7.0 devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +35,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +617,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +716,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +762,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +777,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +785,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1190,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1282,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/close-account/native/tests/tsconfig.test.json b/basics/close-account/native/tests/tsconfig.test.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/close-account/native/tests/tsconfig.test.json +++ b/basics/close-account/native/tests/tsconfig.test.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/close-account/native/ts/instructions/index.ts b/basics/close-account/native/ts/instructions/index.ts index d3e93a140..53e1b08ff 100644 --- a/basics/close-account/native/ts/instructions/index.ts +++ b/basics/close-account/native/ts/instructions/index.ts @@ -5,3 +5,5 @@ export const MyInstruction = { CreateUser: 0, CloseUser: 1, } as const; + +export type MyInstruction = (typeof MyInstruction)[keyof typeof MyInstruction]; diff --git a/basics/close-account/native/tsconfig.json b/basics/close-account/native/tsconfig.json new file mode 100644 index 000000000..ffdcea9a3 --- /dev/null +++ b/basics/close-account/native/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "types": ["mocha", "chai", "node"], + "lib": ["es2020"], + "module": "commonjs", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true + } +} diff --git a/basics/counter/anchor/package.json b/basics/counter/anchor/package.json index 5696f5b0e..9b7bbe94a 100644 --- a/basics/counter/anchor/package.json +++ b/basics/counter/anchor/package.json @@ -16,7 +16,8 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" }, "type": "module" } diff --git a/basics/counter/anchor/pnpm-lock.yaml b/basics/counter/anchor/pnpm-lock.yaml index ca3afd7ff..9c0f2f84a 100644 --- a/basics/counter/anchor/pnpm-lock.yaml +++ b/basics/counter/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/counter/anchor/tsconfig.json b/basics/counter/anchor/tsconfig.json index 395d18165..28e33b1a1 100644 --- a/basics/counter/anchor/tsconfig.json +++ b/basics/counter/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], "module": "nodenext", "target": "es2020", - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/counter/native/package.json b/basics/counter/native/package.json index 1a1808650..2a389b3cd 100644 --- a/basics/counter/native/package.json +++ b/basics/counter/native/package.json @@ -21,7 +21,8 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" }, "dependencies": { "@solana/web3.js": "^1.98.4", diff --git a/basics/counter/native/pnpm-lock.yaml b/basics/counter/native/pnpm-lock.yaml index 01f3d4a54..d9443dc66 100644 --- a/basics/counter/native/pnpm-lock.yaml +++ b/basics/counter/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + version: 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) bn.js: specifier: ^5.2.2 version: 5.2.2 @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -32,13 +35,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.0(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + version: 0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) ts-mocha: specifier: ^10.0.0 version: 10.0.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -616,9 +619,9 @@ packages: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@5.26.5: @@ -721,30 +724,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.3.0(typescript@4.9.5)': + '@solana/codecs-core@2.3.0(typescript@5.9.3)': dependencies: - '@solana/errors': 2.3.0(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.3.0(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.3.0(typescript@4.9.5)': + '@solana/codecs-numbers@2.3.0(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.3.0(typescript@4.9.5) - '@solana/errors': 2.3.0(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.3.0(typescript@5.9.3) + '@solana/errors': 2.3.0(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.3.0(typescript@4.9.5)': + '@solana/errors@2.3.0(typescript@5.9.3)': dependencies: chalk: 5.6.2 commander: 14.0.3 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6)': + '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6)': dependencies: '@babel/runtime': 7.28.6 '@noble/curves': 1.9.7 '@noble/hashes': 1.4.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.3.0(typescript@4.9.5) + '@solana/codecs-numbers': 2.3.0(typescript@5.9.3) agentkeepalive: 4.5.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -1195,9 +1198,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.0: optional: true - solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6): + solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.0 @@ -1287,7 +1290,7 @@ snapshots: type-detect@4.0.8: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@5.26.5: {} diff --git a/basics/counter/native/tests/counter.test.ts b/basics/counter/native/tests/counter.test.ts index 97784546b..82c6bf77c 100644 --- a/basics/counter/native/tests/counter.test.ts +++ b/basics/counter/native/tests/counter.test.ts @@ -27,7 +27,7 @@ describe("Counter Solana Native", async () => { space: COUNTER_ACCOUNT_SIZE, programId: PROGRAM_ID, }); - const incrementIx: TransactionInstruction = createIncrementInstruction({ counter }, {}); + const incrementIx: TransactionInstruction = createIncrementInstruction({ counter }); const tx = new Transaction().add(allocIx).add(incrementIx); // Explicitly set the feePayer to be our wallet (this is set to first signer by default) @@ -81,7 +81,7 @@ describe("Counter Solana Native", async () => { console.log(`[allocate] count is: ${counterAccount.count.toNumber()}`); // Check increment tx - const incrementIx: TransactionInstruction = createIncrementInstruction({ counter }, {}); + const incrementIx: TransactionInstruction = createIncrementInstruction({ counter }); tx = new Transaction().add(incrementIx); tx.feePayer = payer.publicKey; tx.recentBlockhash = blockhash; diff --git a/basics/counter/native/tests/tsconfig.test.json b/basics/counter/native/tests/tsconfig.test.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/counter/native/tests/tsconfig.test.json +++ b/basics/counter/native/tests/tsconfig.test.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/counter/native/tsconfig.json b/basics/counter/native/tsconfig.json new file mode 100644 index 000000000..ffdcea9a3 --- /dev/null +++ b/basics/counter/native/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "types": ["mocha", "chai", "node"], + "lib": ["es2020"], + "module": "commonjs", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true + } +} diff --git a/basics/counter/pinocchio/package.json b/basics/counter/pinocchio/package.json index 42c66670b..bc23ab460 100644 --- a/basics/counter/pinocchio/package.json +++ b/basics/counter/pinocchio/package.json @@ -21,7 +21,8 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" }, "dependencies": { "@solana/web3.js": "^1.98.4" diff --git a/basics/counter/pinocchio/pnpm-lock.yaml b/basics/counter/pinocchio/pnpm-lock.yaml index ed2f0a0c9..1328ce9c4 100644 --- a/basics/counter/pinocchio/pnpm-lock.yaml +++ b/basics/counter/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + version: 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.0(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + version: 0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) ts-mocha: specifier: ^10.0.0 version: 10.0.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -613,9 +616,9 @@ packages: resolution: {integrity: sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@5.26.5: @@ -718,30 +721,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.3.0(typescript@4.9.5)': + '@solana/codecs-core@2.3.0(typescript@5.9.3)': dependencies: - '@solana/errors': 2.3.0(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.3.0(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.3.0(typescript@4.9.5)': + '@solana/codecs-numbers@2.3.0(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.3.0(typescript@4.9.5) - '@solana/errors': 2.3.0(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.3.0(typescript@5.9.3) + '@solana/errors': 2.3.0(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.3.0(typescript@4.9.5)': + '@solana/errors@2.3.0(typescript@5.9.3)': dependencies: chalk: 5.6.2 commander: 14.0.3 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6)': + '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6)': dependencies: '@babel/runtime': 7.28.6 '@noble/curves': 1.9.7 '@noble/hashes': 1.4.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.3.0(typescript@4.9.5) + '@solana/codecs-numbers': 2.3.0(typescript@5.9.3) agentkeepalive: 4.5.0 bn.js: 5.2.1 borsh: 0.7.0 @@ -1192,9 +1195,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.0: optional: true - solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6): + solana-bankrun@0.3.0(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@4.9.5)(utf-8-validate@6.0.6) + '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@6.0.6) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.0 @@ -1284,7 +1287,7 @@ snapshots: type-detect@4.0.8: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@5.26.5: {} diff --git a/basics/counter/pinocchio/tests/tsconfig.test.json b/basics/counter/pinocchio/tests/tsconfig.test.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/counter/pinocchio/tests/tsconfig.test.json +++ b/basics/counter/pinocchio/tests/tsconfig.test.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/counter/pinocchio/tsconfig.json b/basics/counter/pinocchio/tsconfig.json new file mode 100644 index 000000000..ffdcea9a3 --- /dev/null +++ b/basics/counter/pinocchio/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "types": ["mocha", "chai", "node"], + "lib": ["es2020"], + "module": "commonjs", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true + } +} diff --git a/basics/create-account/anchor/package.json b/basics/create-account/anchor/package.json index b20a6eca1..71aa537ba 100644 --- a/basics/create-account/anchor/package.json +++ b/basics/create-account/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.4.1", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/create-account/anchor/pnpm-lock.yaml b/basics/create-account/anchor/pnpm-lock.yaml index 78092f214..4f120a27e 100644 --- a/basics/create-account/anchor/pnpm-lock.yaml +++ b/basics/create-account/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.4.1 version: 4.4.1 diff --git a/basics/create-account/anchor/tsconfig.json b/basics/create-account/anchor/tsconfig.json index 395d18165..28e33b1a1 100644 --- a/basics/create-account/anchor/tsconfig.json +++ b/basics/create-account/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], "module": "nodenext", "target": "es2020", - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/create-account/asm/package.json b/basics/create-account/asm/package.json index d4462af90..0212e54df 100644 --- a/basics/create-account/asm/package.json +++ b/basics/create-account/asm/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/create-account/asm/pnpm-lock.yaml b/basics/create-account/asm/pnpm-lock.yaml index 315de63a2..706b01418 100644 --- a/basics/create-account/asm/pnpm-lock.yaml +++ b/basics/create-account/asm/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.47.3 - version: 1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -525,12 +528,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==} @@ -609,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -708,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -754,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -769,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -777,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1182,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1274,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/create-account/asm/tsconfig.json b/basics/create-account/asm/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/create-account/asm/tsconfig.json +++ b/basics/create-account/asm/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/create-account/native/package.json b/basics/create-account/native/package.json index 1cbcc238f..844e5f244 100644 --- a/basics/create-account/native/package.json +++ b/basics/create-account/native/package.json @@ -17,6 +17,7 @@ "solana-bankrun": "^0.3.0", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/create-account/native/pnpm-lock.yaml b/basics/create-account/native/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/create-account/native/pnpm-lock.yaml +++ b/basics/create-account/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/create-account/native/tsconfig.json b/basics/create-account/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/create-account/native/tsconfig.json +++ b/basics/create-account/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/create-account/pinocchio/package.json b/basics/create-account/pinocchio/package.json index 763c5728e..4974537ea 100644 --- a/basics/create-account/pinocchio/package.json +++ b/basics/create-account/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/create-account/pinocchio/pnpm-lock.yaml b/basics/create-account/pinocchio/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/create-account/pinocchio/pnpm-lock.yaml +++ b/basics/create-account/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/create-account/pinocchio/tsconfig.json b/basics/create-account/pinocchio/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/create-account/pinocchio/tsconfig.json +++ b/basics/create-account/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/cross-program-invocation/anchor/package.json b/basics/cross-program-invocation/anchor/package.json index 13909a394..dcfdd97f1 100644 --- a/basics/cross-program-invocation/anchor/package.json +++ b/basics/cross-program-invocation/anchor/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/cross-program-invocation/anchor/pnpm-lock.yaml b/basics/cross-program-invocation/anchor/pnpm-lock.yaml index e9d23b11d..945430017 100644 --- a/basics/cross-program-invocation/anchor/pnpm-lock.yaml +++ b/basics/cross-program-invocation/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/cross-program-invocation/anchor/tsconfig.json b/basics/cross-program-invocation/anchor/tsconfig.json index 395d18165..28e33b1a1 100644 --- a/basics/cross-program-invocation/anchor/tsconfig.json +++ b/basics/cross-program-invocation/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], "module": "nodenext", "target": "es2020", - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/favorites/anchor/package.json b/basics/favorites/anchor/package.json index f11a93525..f2a1284d1 100644 --- a/basics/favorites/anchor/package.json +++ b/basics/favorites/anchor/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/favorites/anchor/pnpm-lock.yaml b/basics/favorites/anchor/pnpm-lock.yaml index d54575b8d..213e56205 100644 --- a/basics/favorites/anchor/pnpm-lock.yaml +++ b/basics/favorites/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.14.2 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/favorites/anchor/tsconfig.json b/basics/favorites/anchor/tsconfig.json index 395d18165..28e33b1a1 100644 --- a/basics/favorites/anchor/tsconfig.json +++ b/basics/favorites/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], "module": "nodenext", "target": "es2020", - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/hello-solana/anchor/package.json b/basics/hello-solana/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/hello-solana/anchor/package.json +++ b/basics/hello-solana/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/hello-solana/anchor/pnpm-lock.yaml b/basics/hello-solana/anchor/pnpm-lock.yaml index 685c53440..b6b308b8f 100644 --- a/basics/hello-solana/anchor/pnpm-lock.yaml +++ b/basics/hello-solana/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/hello-solana/anchor/tsconfig.json b/basics/hello-solana/anchor/tsconfig.json index 395d18165..28e33b1a1 100644 --- a/basics/hello-solana/anchor/tsconfig.json +++ b/basics/hello-solana/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], "module": "nodenext", "target": "es2020", - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/hello-solana/asm/package.json b/basics/hello-solana/asm/package.json index 5ac94b3b6..68c8d119b 100644 --- a/basics/hello-solana/asm/package.json +++ b/basics/hello-solana/asm/package.json @@ -18,6 +18,6 @@ "mocha": "^9.2.2", "solana-bankrun": "^0.3.1", "ts-mocha": "^10.1.0", - "typescript": "^4.9.5" + "typescript": "^5.3.3" } } diff --git a/basics/hello-solana/asm/pnpm-lock.yaml b/basics/hello-solana/asm/pnpm-lock.yaml index 9d6a0472c..906c9f9a4 100644 --- a/basics/hello-solana/asm/pnpm-lock.yaml +++ b/basics/hello-solana/asm/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.2.0 @@ -32,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.1 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.1.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.9.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -614,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -713,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -1187,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1279,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/hello-solana/asm/tsconfig.json b/basics/hello-solana/asm/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/hello-solana/asm/tsconfig.json +++ b/basics/hello-solana/asm/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/hello-solana/native/package.json b/basics/hello-solana/native/package.json index 85211af3d..551a9dc35 100644 --- a/basics/hello-solana/native/package.json +++ b/basics/hello-solana/native/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/hello-solana/native/pnpm-lock.yaml b/basics/hello-solana/native/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/hello-solana/native/pnpm-lock.yaml +++ b/basics/hello-solana/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/hello-solana/native/tsconfig.json b/basics/hello-solana/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/hello-solana/native/tsconfig.json +++ b/basics/hello-solana/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/pda-rent-payer/anchor/package.json b/basics/pda-rent-payer/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/pda-rent-payer/anchor/package.json +++ b/basics/pda-rent-payer/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/pda-rent-payer/anchor/pnpm-lock.yaml b/basics/pda-rent-payer/anchor/pnpm-lock.yaml index 37a30dda9..244c5cc3d 100644 --- a/basics/pda-rent-payer/anchor/pnpm-lock.yaml +++ b/basics/pda-rent-payer/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -115,8 +118,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -664,8 +667,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -833,13 +836,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -848,19 +851,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1377,7 +1380,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/basics/pda-rent-payer/anchor/tsconfig.json b/basics/pda-rent-payer/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/pda-rent-payer/anchor/tsconfig.json +++ b/basics/pda-rent-payer/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/pda-rent-payer/native/package.json b/basics/pda-rent-payer/native/package.json index 063fb5279..419c05d20 100644 --- a/basics/pda-rent-payer/native/package.json +++ b/basics/pda-rent-payer/native/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/pda-rent-payer/native/pnpm-lock.yaml b/basics/pda-rent-payer/native/pnpm-lock.yaml index 0c029978a..bd89fedcf 100644 --- a/basics/pda-rent-payer/native/pnpm-lock.yaml +++ b/basics/pda-rent-payer/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -32,13 +35,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -617,9 +620,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -716,30 +719,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -762,13 +765,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -777,7 +780,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -785,11 +788,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1192,9 +1195,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1284,7 +1287,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/pda-rent-payer/native/tsconfig.json b/basics/pda-rent-payer/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/pda-rent-payer/native/tsconfig.json +++ b/basics/pda-rent-payer/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/pda-rent-payer/pinocchio/package.json b/basics/pda-rent-payer/pinocchio/package.json index 763c5728e..4974537ea 100644 --- a/basics/pda-rent-payer/pinocchio/package.json +++ b/basics/pda-rent-payer/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/pda-rent-payer/pinocchio/pnpm-lock.yaml b/basics/pda-rent-payer/pinocchio/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/pda-rent-payer/pinocchio/pnpm-lock.yaml +++ b/basics/pda-rent-payer/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/pda-rent-payer/pinocchio/tsconfig.json b/basics/pda-rent-payer/pinocchio/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/pda-rent-payer/pinocchio/tsconfig.json +++ b/basics/pda-rent-payer/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/processing-instructions/anchor/package.json b/basics/processing-instructions/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/processing-instructions/anchor/package.json +++ b/basics/processing-instructions/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/processing-instructions/anchor/pnpm-lock.yaml b/basics/processing-instructions/anchor/pnpm-lock.yaml index a439ab7e5..4159907e4 100644 --- a/basics/processing-instructions/anchor/pnpm-lock.yaml +++ b/basics/processing-instructions/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/processing-instructions/anchor/tests/test.ts b/basics/processing-instructions/anchor/tests/test.ts index 5e26f7296..0568481b1 100644 --- a/basics/processing-instructions/anchor/tests/test.ts +++ b/basics/processing-instructions/anchor/tests/test.ts @@ -1,5 +1,5 @@ import * as anchor from "@anchor-lang/core"; -import type { ProcessingInstructions } from "../target/types/processing_instructions"; +import type { ProcessingInstructions } from "../target/types/processing_instructions.ts"; describe("custom-instruction-data", () => { const provider = anchor.AnchorProvider.env(); diff --git a/basics/processing-instructions/anchor/tsconfig.json b/basics/processing-instructions/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/processing-instructions/anchor/tsconfig.json +++ b/basics/processing-instructions/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/processing-instructions/native/package.json b/basics/processing-instructions/native/package.json index 063fb5279..419c05d20 100644 --- a/basics/processing-instructions/native/package.json +++ b/basics/processing-instructions/native/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/processing-instructions/native/pnpm-lock.yaml b/basics/processing-instructions/native/pnpm-lock.yaml index 0c029978a..bd89fedcf 100644 --- a/basics/processing-instructions/native/pnpm-lock.yaml +++ b/basics/processing-instructions/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -32,13 +35,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -617,9 +620,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -716,30 +719,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -762,13 +765,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -777,7 +780,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -785,11 +788,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1192,9 +1195,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1284,7 +1287,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/processing-instructions/native/tsconfig.json b/basics/processing-instructions/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/processing-instructions/native/tsconfig.json +++ b/basics/processing-instructions/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/processing-instructions/pinocchio/package.json b/basics/processing-instructions/pinocchio/package.json index 763c5728e..4974537ea 100644 --- a/basics/processing-instructions/pinocchio/package.json +++ b/basics/processing-instructions/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/processing-instructions/pinocchio/pnpm-lock.yaml b/basics/processing-instructions/pinocchio/pnpm-lock.yaml index 6f8339c0b..0d91ceb1a 100644 --- a/basics/processing-instructions/pinocchio/pnpm-lock.yaml +++ b/basics/processing-instructions/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -29,13 +32,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -611,9 +614,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -710,30 +713,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -756,13 +759,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -771,7 +774,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -779,11 +782,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1184,9 +1187,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1276,7 +1279,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/processing-instructions/pinocchio/tsconfig.json b/basics/processing-instructions/pinocchio/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/processing-instructions/pinocchio/tsconfig.json +++ b/basics/processing-instructions/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/program-derived-addresses/anchor/package.json b/basics/program-derived-addresses/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/program-derived-addresses/anchor/package.json +++ b/basics/program-derived-addresses/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/program-derived-addresses/anchor/pnpm-lock.yaml b/basics/program-derived-addresses/anchor/pnpm-lock.yaml index 685c53440..b6b308b8f 100644 --- a/basics/program-derived-addresses/anchor/pnpm-lock.yaml +++ b/basics/program-derived-addresses/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/program-derived-addresses/anchor/tsconfig.json b/basics/program-derived-addresses/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/program-derived-addresses/anchor/tsconfig.json +++ b/basics/program-derived-addresses/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/program-derived-addresses/native/package.json b/basics/program-derived-addresses/native/package.json index 95b4a9812..516474509 100644 --- a/basics/program-derived-addresses/native/package.json +++ b/basics/program-derived-addresses/native/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/program-derived-addresses/native/pnpm-lock.yaml b/basics/program-derived-addresses/native/pnpm-lock.yaml index 35eeafff5..1ef6504b7 100644 --- a/basics/program-derived-addresses/native/pnpm-lock.yaml +++ b/basics/program-derived-addresses/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -27,18 +27,21 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 mocha: specifier: ^9.0.3 version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -593,9 +596,9 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -692,30 +695,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -738,13 +741,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -753,7 +756,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -761,11 +764,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1142,9 +1145,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1232,7 +1235,7 @@ snapshots: tslib@2.8.1: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/program-derived-addresses/native/tsconfig.json b/basics/program-derived-addresses/native/tsconfig.json index 8634a05df..2469f714e 100644 --- a/basics/program-derived-addresses/native/tsconfig.json +++ b/basics/program-derived-addresses/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha"], + "types": ["mocha", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/program-derived-addresses/pinocchio/package.json b/basics/program-derived-addresses/pinocchio/package.json index e0feaab01..492846a47 100644 --- a/basics/program-derived-addresses/pinocchio/package.json +++ b/basics/program-derived-addresses/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/program-derived-addresses/pinocchio/pnpm-lock.yaml b/basics/program-derived-addresses/pinocchio/pnpm-lock.yaml index 78f9a6774..3373a82dd 100644 --- a/basics/program-derived-addresses/pinocchio/pnpm-lock.yaml +++ b/basics/program-derived-addresses/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) fs: specifier: ^0.0.1-security version: 0.0.1-security @@ -24,18 +24,21 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 mocha: specifier: ^9.0.3 version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -587,9 +590,9 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -686,30 +689,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -732,13 +735,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -747,7 +750,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -755,11 +758,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1134,9 +1137,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1224,7 +1227,7 @@ snapshots: tslib@2.8.1: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/program-derived-addresses/pinocchio/tsconfig.json b/basics/program-derived-addresses/pinocchio/tsconfig.json index 8634a05df..2469f714e 100644 --- a/basics/program-derived-addresses/pinocchio/tsconfig.json +++ b/basics/program-derived-addresses/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha"], + "types": ["mocha", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/realloc/anchor/package.json b/basics/realloc/anchor/package.json index fd06afc13..7d573aa26 100644 --- a/basics/realloc/anchor/package.json +++ b/basics/realloc/anchor/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/realloc/anchor/pnpm-lock.yaml b/basics/realloc/anchor/pnpm-lock.yaml index f7baf21bd..8f821ba8f 100644 --- a/basics/realloc/anchor/pnpm-lock.yaml +++ b/basics/realloc/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.4.1 version: 4.4.1 diff --git a/basics/realloc/anchor/tsconfig.json b/basics/realloc/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/realloc/anchor/tsconfig.json +++ b/basics/realloc/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/realloc/pinocchio/package.json b/basics/realloc/pinocchio/package.json index c01413a56..a915c2120 100644 --- a/basics/realloc/pinocchio/package.json +++ b/basics/realloc/pinocchio/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/realloc/pinocchio/pnpm-lock.yaml b/basics/realloc/pinocchio/pnpm-lock.yaml index a79f68d42..ebd1566a3 100644 --- a/basics/realloc/pinocchio/pnpm-lock.yaml +++ b/basics/realloc/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) fs: specifier: ^0.0.1-security version: 0.0.1-security @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -32,13 +35,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -617,9 +620,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -716,30 +719,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -762,13 +765,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -777,7 +780,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -785,11 +788,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1192,9 +1195,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1284,7 +1287,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/realloc/pinocchio/tests/tsconfig.test.json b/basics/realloc/pinocchio/tests/tsconfig.test.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/realloc/pinocchio/tests/tsconfig.test.json +++ b/basics/realloc/pinocchio/tests/tsconfig.test.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/realloc/pinocchio/tsconfig.json b/basics/realloc/pinocchio/tsconfig.json new file mode 100644 index 000000000..ffdcea9a3 --- /dev/null +++ b/basics/realloc/pinocchio/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "types": ["mocha", "chai", "node"], + "lib": ["es2020"], + "module": "commonjs", + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true + } +} diff --git a/basics/rent/anchor/package.json b/basics/rent/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/rent/anchor/package.json +++ b/basics/rent/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/rent/anchor/pnpm-lock.yaml b/basics/rent/anchor/pnpm-lock.yaml index a1b80e5e9..52ffdfa02 100644 --- a/basics/rent/anchor/pnpm-lock.yaml +++ b/basics/rent/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/rent/anchor/tsconfig.json b/basics/rent/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/rent/anchor/tsconfig.json +++ b/basics/rent/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/rent/native/package.json b/basics/rent/native/package.json index 5ad118cd1..a3189434a 100644 --- a/basics/rent/native/package.json +++ b/basics/rent/native/package.json @@ -20,6 +20,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/rent/native/pnpm-lock.yaml b/basics/rent/native/pnpm-lock.yaml index 4d6d07c99..2c6f9fe46 100644 --- a/basics/rent/native/pnpm-lock.yaml +++ b/basics/rent/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -38,13 +41,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -107,8 +110,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -626,9 +629,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -725,30 +728,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -771,13 +774,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -786,7 +789,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -794,11 +797,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1203,9 +1206,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1295,7 +1298,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/rent/native/tsconfig.json b/basics/rent/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/rent/native/tsconfig.json +++ b/basics/rent/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/rent/pinocchio/package.json b/basics/rent/pinocchio/package.json index 5ad118cd1..a3189434a 100644 --- a/basics/rent/pinocchio/package.json +++ b/basics/rent/pinocchio/package.json @@ -20,6 +20,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/rent/pinocchio/pnpm-lock.yaml b/basics/rent/pinocchio/pnpm-lock.yaml index 4d6d07c99..2c6f9fe46 100644 --- a/basics/rent/pinocchio/pnpm-lock.yaml +++ b/basics/rent/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -38,13 +41,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -107,8 +110,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -626,9 +629,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -725,30 +728,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -771,13 +774,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -786,7 +789,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -794,11 +797,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1203,9 +1206,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1295,7 +1298,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/rent/pinocchio/tsconfig.json b/basics/rent/pinocchio/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/rent/pinocchio/tsconfig.json +++ b/basics/rent/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/repository-layout/anchor/package.json b/basics/repository-layout/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/repository-layout/anchor/package.json +++ b/basics/repository-layout/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/repository-layout/anchor/pnpm-lock.yaml b/basics/repository-layout/anchor/pnpm-lock.yaml index ddb089051..e9dd6599c 100644 --- a/basics/repository-layout/anchor/pnpm-lock.yaml +++ b/basics/repository-layout/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/basics/repository-layout/anchor/tsconfig.json b/basics/repository-layout/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/repository-layout/anchor/tsconfig.json +++ b/basics/repository-layout/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/repository-layout/native/package.json b/basics/repository-layout/native/package.json index 8a9cc7950..744189d47 100644 --- a/basics/repository-layout/native/package.json +++ b/basics/repository-layout/native/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/repository-layout/native/pnpm-lock.yaml b/basics/repository-layout/native/pnpm-lock.yaml index 288b405f3..8484061eb 100644 --- a/basics/repository-layout/native/pnpm-lock.yaml +++ b/basics/repository-layout/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -35,13 +38,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -104,8 +107,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -623,9 +626,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -722,30 +725,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -768,13 +771,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -783,7 +786,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -791,11 +794,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1200,9 +1203,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1292,7 +1295,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/repository-layout/native/tsconfig.json b/basics/repository-layout/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/repository-layout/native/tsconfig.json +++ b/basics/repository-layout/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/transfer-sol/anchor/package.json b/basics/transfer-sol/anchor/package.json index a77db16c0..ea95f6801 100644 --- a/basics/transfer-sol/anchor/package.json +++ b/basics/transfer-sol/anchor/package.json @@ -12,6 +12,7 @@ "chai": "^4.3.4", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/transfer-sol/anchor/pnpm-lock.yaml b/basics/transfer-sol/anchor/pnpm-lock.yaml index 37a30dda9..244c5cc3d 100644 --- a/basics/transfer-sol/anchor/pnpm-lock.yaml +++ b/basics/transfer-sol/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -115,8 +118,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -664,8 +667,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -833,13 +836,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -848,19 +851,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1377,7 +1380,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/basics/transfer-sol/anchor/tsconfig.json b/basics/transfer-sol/anchor/tsconfig.json index beb254c00..28e33b1a1 100644 --- a/basics/transfer-sol/anchor/tsconfig.json +++ b/basics/transfer-sol/anchor/tsconfig.json @@ -1,10 +1,13 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "nodenext", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/transfer-sol/asm/package.json b/basics/transfer-sol/asm/package.json index d889378f3..fb3917956 100644 --- a/basics/transfer-sol/asm/package.json +++ b/basics/transfer-sol/asm/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/transfer-sol/asm/pnpm-lock.yaml b/basics/transfer-sol/asm/pnpm-lock.yaml index 6901d9d9d..d4f5f4012 100644 --- a/basics/transfer-sol/asm/pnpm-lock.yaml +++ b/basics/transfer-sol/asm/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.47.3 - version: 1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer-layout: specifier: ^1.2.2 version: 1.2.2 @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -35,13 +38,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -104,8 +107,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -538,12 +541,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==} @@ -622,9 +627,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -721,30 +726,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -767,13 +772,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -782,7 +787,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -790,11 +795,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1199,9 +1204,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.2(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1291,7 +1296,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/transfer-sol/asm/tsconfig.json b/basics/transfer-sol/asm/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/transfer-sol/asm/tsconfig.json +++ b/basics/transfer-sol/asm/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/transfer-sol/native/package.json b/basics/transfer-sol/native/package.json index e4884b988..820e89222 100644 --- a/basics/transfer-sol/native/package.json +++ b/basics/transfer-sol/native/package.json @@ -20,6 +20,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/transfer-sol/native/pnpm-lock.yaml b/basics/transfer-sol/native/pnpm-lock.yaml index fc03a408a..b02a4c0aa 100644 --- a/basics/transfer-sol/native/pnpm-lock.yaml +++ b/basics/transfer-sol/native/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) borsh: specifier: ^2.0.0 version: 2.0.0 @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -38,13 +41,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -107,8 +110,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -630,9 +633,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -729,30 +732,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -775,13 +778,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -790,7 +793,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -798,11 +801,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1209,9 +1212,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1301,7 +1304,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/transfer-sol/native/tsconfig.json b/basics/transfer-sol/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/transfer-sol/native/tsconfig.json +++ b/basics/transfer-sol/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/basics/transfer-sol/pinocchio/package.json b/basics/transfer-sol/pinocchio/package.json index 142007bcd..95b8ce314 100644 --- a/basics/transfer-sol/pinocchio/package.json +++ b/basics/transfer-sol/pinocchio/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/basics/transfer-sol/pinocchio/pnpm-lock.yaml b/basics/transfer-sol/pinocchio/pnpm-lock.yaml index 19b111713..a998ac7ec 100644 --- a/basics/transfer-sol/pinocchio/pnpm-lock.yaml +++ b/basics/transfer-sol/pinocchio/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@solana/web3.js': specifier: ^1.98.4 - version: 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer-layout: specifier: ^1.2.2 version: 1.2.2 @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -35,13 +38,13 @@ importers: version: 9.2.2 solana-bankrun: specifier: ^0.3.0 - version: 0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + version: 0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.1.0(mocha@9.2.2) typescript: - specifier: ^4.3.5 - version: 4.9.5 + specifier: ^5.3.3 + version: 5.9.3 packages: @@ -104,8 +107,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.19': - resolution: {integrity: sha512-3vMNr4TzNQyjHcRZadojpRaD9Ofr6LsonZAoQ+HMUa/9ORTPoxVIw0e0mpqWpdjj8xybyCM+oKOUH2vwFu/oEw==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -624,9 +627,9 @@ packages: resolution: {integrity: sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==} engines: {node: '>=4'} - typescript@4.9.5: - resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} - engines: {node: '>=4.2.0'} + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} hasBin: true undici-types@6.21.0: @@ -723,30 +726,30 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@4.9.5)': + '@solana/codecs-core@2.1.1(typescript@5.9.3)': dependencies: - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/codecs-numbers@2.1.1(typescript@4.9.5)': + '@solana/codecs-numbers@2.1.1(typescript@5.9.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@4.9.5) - '@solana/errors': 2.1.1(typescript@4.9.5) - typescript: 4.9.5 + '@solana/codecs-core': 2.1.1(typescript@5.9.3) + '@solana/errors': 2.1.1(typescript@5.9.3) + typescript: 5.9.3 - '@solana/errors@2.1.1(typescript@4.9.5)': + '@solana/errors@2.1.1(typescript@5.9.3)': dependencies: chalk: 5.4.1 commander: 13.1.0 - typescript: 4.9.5 + typescript: 5.9.3 - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.27.1 '@noble/curves': 1.9.1 '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@4.9.5) + '@solana/codecs-numbers': 2.1.1(typescript@5.9.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -769,13 +772,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -784,7 +787,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.19': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -792,11 +795,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.19 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1201,9 +1204,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.1: optional: true - solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10): + solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@4.9.5)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.1 @@ -1293,7 +1296,7 @@ snapshots: type-detect@4.1.0: {} - typescript@4.9.5: {} + typescript@5.9.3: {} undici-types@6.21.0: {} diff --git a/basics/transfer-sol/pinocchio/tsconfig.json b/basics/transfer-sol/pinocchio/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/basics/transfer-sol/pinocchio/tsconfig.json +++ b/basics/transfer-sol/pinocchio/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/create-token/anchor/package.json b/tokens/create-token/anchor/package.json index 59b307edc..83ce55aa6 100644 --- a/tokens/create-token/anchor/package.json +++ b/tokens/create-token/anchor/package.json @@ -16,6 +16,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/create-token/anchor/pnpm-lock.yaml b/tokens/create-token/anchor/pnpm-lock.yaml index 2562c11f2..c7feeb618 100644 --- a/tokens/create-token/anchor/pnpm-lock.yaml +++ b/tokens/create-token/anchor/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -132,8 +135,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -677,8 +680,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -880,13 +883,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -895,19 +898,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1424,7 +1427,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/create-token/anchor/tsconfig.json b/tokens/create-token/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/create-token/anchor/tsconfig.json +++ b/tokens/create-token/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/nft-minter/anchor/package.json b/tokens/nft-minter/anchor/package.json index 4cecf0fbc..da37555ba 100644 --- a/tokens/nft-minter/anchor/package.json +++ b/tokens/nft-minter/anchor/package.json @@ -15,6 +15,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/nft-minter/anchor/pnpm-lock.yaml b/tokens/nft-minter/anchor/pnpm-lock.yaml index eed086d2d..acf347834 100644 --- a/tokens/nft-minter/anchor/pnpm-lock.yaml +++ b/tokens/nft-minter/anchor/pnpm-lock.yaml @@ -23,6 +23,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -187,8 +190,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -752,8 +755,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -1043,13 +1046,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -1058,19 +1061,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1603,7 +1606,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/nft-minter/anchor/tsconfig.json b/tokens/nft-minter/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/nft-minter/anchor/tsconfig.json +++ b/tokens/nft-minter/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/nft-operations/anchor/package.json b/tokens/nft-operations/anchor/package.json index 903bf47bc..c28f1a8ba 100644 --- a/tokens/nft-operations/anchor/package.json +++ b/tokens/nft-operations/anchor/package.json @@ -24,6 +24,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/nft-operations/anchor/pnpm-lock.yaml b/tokens/nft-operations/anchor/pnpm-lock.yaml index 9fa6868ba..2cbbc752c 100644 --- a/tokens/nft-operations/anchor/pnpm-lock.yaml +++ b/tokens/nft-operations/anchor/pnpm-lock.yaml @@ -36,6 +36,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.14.10 anchor-bankrun: specifier: ^0.4.0 version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -294,9 +297,6 @@ packages: '@types/node@20.14.10': resolution: {integrity: sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -972,9 +972,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1439,10 +1436,6 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': @@ -1451,7 +1444,7 @@ snapshots: '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.14.10 '@types/ws@8.5.10': dependencies: @@ -2102,8 +2095,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/nft-operations/anchor/tsconfig.json b/tokens/nft-operations/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/nft-operations/anchor/tsconfig.json +++ b/tokens/nft-operations/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/pda-mint-authority/anchor/package.json b/tokens/pda-mint-authority/anchor/package.json index cae91ba71..2c1d63846 100644 --- a/tokens/pda-mint-authority/anchor/package.json +++ b/tokens/pda-mint-authority/anchor/package.json @@ -17,6 +17,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/pda-mint-authority/anchor/pnpm-lock.yaml b/tokens/pda-mint-authority/anchor/pnpm-lock.yaml index 6c962e400..5efbc1dfb 100644 --- a/tokens/pda-mint-authority/anchor/pnpm-lock.yaml +++ b/tokens/pda-mint-authority/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -188,8 +191,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -753,8 +756,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -1044,13 +1047,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -1059,19 +1062,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1604,7 +1607,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/pda-mint-authority/anchor/tsconfig.json b/tokens/pda-mint-authority/anchor/tsconfig.json index cd5d2e3d0..4037516ce 100644 --- a/tokens/pda-mint-authority/anchor/tsconfig.json +++ b/tokens/pda-mint-authority/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/tokens/spl-token-minter/anchor/package.json b/tokens/spl-token-minter/anchor/package.json index cae91ba71..2c1d63846 100644 --- a/tokens/spl-token-minter/anchor/package.json +++ b/tokens/spl-token-minter/anchor/package.json @@ -17,6 +17,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/spl-token-minter/anchor/pnpm-lock.yaml b/tokens/spl-token-minter/anchor/pnpm-lock.yaml index 6c962e400..5efbc1dfb 100644 --- a/tokens/spl-token-minter/anchor/pnpm-lock.yaml +++ b/tokens/spl-token-minter/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -188,8 +191,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -753,8 +756,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -1044,13 +1047,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -1059,19 +1062,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1604,7 +1607,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/spl-token-minter/anchor/tsconfig.json b/tokens/spl-token-minter/anchor/tsconfig.json index cd5d2e3d0..4037516ce 100644 --- a/tokens/spl-token-minter/anchor/tsconfig.json +++ b/tokens/spl-token-minter/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/tokens/token-2022/basics/anchor/package.json b/tokens/token-2022/basics/anchor/package.json index 273b394d6..0f8cfb8ef 100644 --- a/tokens/token-2022/basics/anchor/package.json +++ b/tokens/token-2022/basics/anchor/package.json @@ -18,6 +18,7 @@ "prettier": "^2.6.2", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/basics/anchor/pnpm-lock.yaml b/tokens/token-2022/basics/anchor/pnpm-lock.yaml index 5eaa9f1db..812f857f1 100644 --- a/tokens/token-2022/basics/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/basics/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -135,8 +138,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -685,8 +688,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -883,13 +886,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -898,19 +901,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1429,7 +1432,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/token-2022/basics/anchor/tsconfig.json b/tokens/token-2022/basics/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/basics/anchor/tsconfig.json +++ b/tokens/token-2022/basics/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/cpi-guard/anchor/package.json b/tokens/token-2022/cpi-guard/anchor/package.json index 2c9c49143..6d0aa3c41 100644 --- a/tokens/token-2022/cpi-guard/anchor/package.json +++ b/tokens/token-2022/cpi-guard/anchor/package.json @@ -18,6 +18,7 @@ "prettier": "^2.6.2", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml b/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml index e2f036e39..400596471 100644 --- a/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 anchor-bankrun: specifier: ^0.4.0 version: 0.4.1(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) @@ -194,8 +197,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -764,8 +767,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -1059,13 +1062,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -1074,19 +1077,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1621,7 +1624,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/token-2022/cpi-guard/anchor/tsconfig.json b/tokens/token-2022/cpi-guard/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/cpi-guard/anchor/tsconfig.json +++ b/tokens/token-2022/cpi-guard/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/default-account-state/anchor/package.json b/tokens/token-2022/default-account-state/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/default-account-state/anchor/package.json +++ b/tokens/token-2022/default-account-state/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/default-account-state/anchor/pnpm-lock.yaml b/tokens/token-2022/default-account-state/anchor/pnpm-lock.yaml index 4ad69fa59..91bb29367 100644 --- a/tokens/token-2022/default-account-state/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/default-account-state/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.7.2': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/default-account-state/anchor/tsconfig.json b/tokens/token-2022/default-account-state/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/default-account-state/anchor/tsconfig.json +++ b/tokens/token-2022/default-account-state/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/default-account-state/native/package.json b/tokens/token-2022/default-account-state/native/package.json index 375fa1281..f2d985f31 100644 --- a/tokens/token-2022/default-account-state/native/package.json +++ b/tokens/token-2022/default-account-state/native/package.json @@ -21,6 +21,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5" + "typescript": "^5", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/default-account-state/native/pnpm-lock.yaml b/tokens/token-2022/default-account-state/native/pnpm-lock.yaml index 8507d821d..38cfb96ee 100644 --- a/tokens/token-2022/default-account-state/native/pnpm-lock.yaml +++ b/tokens/token-2022/default-account-state/native/pnpm-lock.yaml @@ -36,6 +36,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.12 chai: specifier: ^4.4.1 version: 4.4.1 diff --git a/tokens/token-2022/default-account-state/native/tsconfig.json b/tokens/token-2022/default-account-state/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/default-account-state/native/tsconfig.json +++ b/tokens/token-2022/default-account-state/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/immutable-owner/anchor/package.json b/tokens/token-2022/immutable-owner/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/immutable-owner/anchor/package.json +++ b/tokens/token-2022/immutable-owner/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/immutable-owner/anchor/pnpm-lock.yaml b/tokens/token-2022/immutable-owner/anchor/pnpm-lock.yaml index bb8d11208..4a6065d52 100644 --- a/tokens/token-2022/immutable-owner/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/immutable-owner/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -174,8 +177,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.7.2': - resolution: {integrity: sha512-/NbVmcGTP+lj5oa4yiYxxeBjRivKQ5Ns1eSZeB99ExsEQ6rX5XYU1Zy/gGxY/ilqtD4Etx9mKyrPxZRetiahhA==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -701,8 +704,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -967,13 +970,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -982,19 +985,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.7.2': + '@types/node@20.19.43': dependencies: - undici-types: 7.14.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.7.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1492,7 +1495,7 @@ snapshots: typescript@5.9.3: {} - undici-types@7.14.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/tokens/token-2022/immutable-owner/anchor/tsconfig.json b/tokens/token-2022/immutable-owner/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/immutable-owner/anchor/tsconfig.json +++ b/tokens/token-2022/immutable-owner/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/interest-bearing/anchor/package.json b/tokens/token-2022/interest-bearing/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/interest-bearing/anchor/package.json +++ b/tokens/token-2022/interest-bearing/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/interest-bearing/anchor/pnpm-lock.yaml b/tokens/token-2022/interest-bearing/anchor/pnpm-lock.yaml index 841b2d24e..b9de56323 100644 --- a/tokens/token-2022/interest-bearing/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/interest-bearing/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/interest-bearing/anchor/tsconfig.json b/tokens/token-2022/interest-bearing/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/interest-bearing/anchor/tsconfig.json +++ b/tokens/token-2022/interest-bearing/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/memo-transfer/anchor/package.json b/tokens/token-2022/memo-transfer/anchor/package.json index 6c9523931..566bdd856 100644 --- a/tokens/token-2022/memo-transfer/anchor/package.json +++ b/tokens/token-2022/memo-transfer/anchor/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml b/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml index 93e2d0007..467a5a61d 100644 --- a/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -191,9 +194,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -763,9 +763,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1086,7 +1083,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1099,19 +1096,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1671,8 +1664,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/memo-transfer/anchor/tsconfig.json b/tokens/token-2022/memo-transfer/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/memo-transfer/anchor/tsconfig.json +++ b/tokens/token-2022/memo-transfer/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/mint-close-authority/anchor/package.json b/tokens/token-2022/mint-close-authority/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/mint-close-authority/anchor/package.json +++ b/tokens/token-2022/mint-close-authority/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/mint-close-authority/anchor/pnpm-lock.yaml b/tokens/token-2022/mint-close-authority/anchor/pnpm-lock.yaml index 841b2d24e..b9de56323 100644 --- a/tokens/token-2022/mint-close-authority/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/mint-close-authority/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/mint-close-authority/anchor/tsconfig.json b/tokens/token-2022/mint-close-authority/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/mint-close-authority/anchor/tsconfig.json +++ b/tokens/token-2022/mint-close-authority/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/multiple-extensions/native/package.json b/tokens/token-2022/multiple-extensions/native/package.json index 375fa1281..f2d985f31 100644 --- a/tokens/token-2022/multiple-extensions/native/package.json +++ b/tokens/token-2022/multiple-extensions/native/package.json @@ -21,6 +21,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5" + "typescript": "^5", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/multiple-extensions/native/pnpm-lock.yaml b/tokens/token-2022/multiple-extensions/native/pnpm-lock.yaml index 8507d821d..38cfb96ee 100644 --- a/tokens/token-2022/multiple-extensions/native/pnpm-lock.yaml +++ b/tokens/token-2022/multiple-extensions/native/pnpm-lock.yaml @@ -36,6 +36,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.12 chai: specifier: ^4.4.1 version: 4.4.1 diff --git a/tokens/token-2022/multiple-extensions/native/tsconfig.json b/tokens/token-2022/multiple-extensions/native/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/multiple-extensions/native/tsconfig.json +++ b/tokens/token-2022/multiple-extensions/native/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/non-transferable/anchor/package.json b/tokens/token-2022/non-transferable/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/non-transferable/anchor/package.json +++ b/tokens/token-2022/non-transferable/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/non-transferable/anchor/pnpm-lock.yaml b/tokens/token-2022/non-transferable/anchor/pnpm-lock.yaml index 841b2d24e..b9de56323 100644 --- a/tokens/token-2022/non-transferable/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/non-transferable/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/non-transferable/anchor/tsconfig.json b/tokens/token-2022/non-transferable/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/non-transferable/anchor/tsconfig.json +++ b/tokens/token-2022/non-transferable/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/permanent-delegate/anchor/package.json b/tokens/token-2022/permanent-delegate/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/permanent-delegate/anchor/package.json +++ b/tokens/token-2022/permanent-delegate/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/permanent-delegate/anchor/pnpm-lock.yaml b/tokens/token-2022/permanent-delegate/anchor/pnpm-lock.yaml index 841b2d24e..b9de56323 100644 --- a/tokens/token-2022/permanent-delegate/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/permanent-delegate/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/permanent-delegate/anchor/tsconfig.json b/tokens/token-2022/permanent-delegate/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/permanent-delegate/anchor/tsconfig.json +++ b/tokens/token-2022/permanent-delegate/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-fee/anchor/package.json b/tokens/token-2022/transfer-fee/anchor/package.json index 0ab4611da..975bb5745 100644 --- a/tokens/token-2022/transfer-fee/anchor/package.json +++ b/tokens/token-2022/transfer-fee/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-fee/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-fee/anchor/pnpm-lock.yaml index 841b2d24e..b9de56323 100644 --- a/tokens/token-2022/transfer-fee/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-fee/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/transfer-fee/anchor/tsconfig.json b/tokens/token-2022/transfer-fee/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-fee/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-fee/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/package.json b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/package.json index c4ab86214..0b5391208 100644 --- a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/package.json +++ b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/pnpm-lock.yaml index 17b058e96..5b9ad1065 100644 --- a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/account-data-as-seed/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/counter/anchor/package.json b/tokens/token-2022/transfer-hook/counter/anchor/package.json index c4ab86214..0b5391208 100644 --- a/tokens/token-2022/transfer-hook/counter/anchor/package.json +++ b/tokens/token-2022/transfer-hook/counter/anchor/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/counter/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/counter/anchor/pnpm-lock.yaml index 17b058e96..5b9ad1065 100644 --- a/tokens/token-2022/transfer-hook/counter/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/counter/anchor/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/tokens/token-2022/transfer-hook/counter/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/counter/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-hook/counter/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/counter/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/hello-world/anchor/package.json b/tokens/token-2022/transfer-hook/hello-world/anchor/package.json index c4ab86214..0b5391208 100644 --- a/tokens/token-2022/transfer-hook/hello-world/anchor/package.json +++ b/tokens/token-2022/transfer-hook/hello-world/anchor/package.json @@ -19,6 +19,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/hello-world/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/hello-world/anchor/pnpm-lock.yaml index 17b058e96..5b9ad1065 100644 --- a/tokens/token-2022/transfer-hook/hello-world/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/hello-world/anchor/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 diff --git a/tokens/token-2022/transfer-hook/hello-world/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/hello-world/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-hook/hello-world/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/hello-world/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json b/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json index 0839cf5e9..e992f4597 100644 --- a/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json +++ b/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json @@ -16,6 +16,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml index ca2563c13..01ad5caed 100644 --- a/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -182,9 +185,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -754,9 +754,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1072,7 +1069,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1085,19 +1082,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1657,8 +1650,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/transfer-hook/transfer-cost/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/transfer-cost/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-hook/transfer-cost/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/transfer-cost/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/transfer-switch/anchor/package.json b/tokens/token-2022/transfer-hook/transfer-switch/anchor/package.json index 1cfed0947..a3a4ff293 100644 --- a/tokens/token-2022/transfer-hook/transfer-switch/anchor/package.json +++ b/tokens/token-2022/transfer-hook/transfer-switch/anchor/package.json @@ -14,6 +14,7 @@ "prettier": "^2.6.2", "solana-bankrun": "^0.4.0", "ts-mocha": "^10.0.0", - "typescript": "^5" + "typescript": "^5", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/transfer-switch/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/transfer-switch/anchor/pnpm-lock.yaml index 9a8c97edf..12b112d99 100644 --- a/tokens/token-2022/transfer-hook/transfer-switch/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/transfer-switch/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: 10.0.9 version: 10.0.9 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 anchor-bankrun: specifier: ^0.5.0 version: 0.5.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.6.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.6.3)(utf-8-validate@5.0.10))(solana-bankrun@0.4.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -202,9 +205,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -792,9 +792,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1134,7 +1131,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1147,19 +1144,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 JSONStream@1.3.5: dependencies: @@ -1731,8 +1724,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/transfer-hook/transfer-switch/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/transfer-switch/anchor/tsconfig.json index cd5d2e3d0..4037516ce 100644 --- a/tokens/token-2022/transfer-hook/transfer-switch/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/transfer-switch/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/tokens/token-2022/transfer-hook/whitelist/anchor/package.json b/tokens/token-2022/transfer-hook/whitelist/anchor/package.json index 1d970c8e4..7486aa4e0 100644 --- a/tokens/token-2022/transfer-hook/whitelist/anchor/package.json +++ b/tokens/token-2022/transfer-hook/whitelist/anchor/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "prettier": "^2.6.2", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml index 8bd73a769..2f127946d 100644 --- a/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 chai: specifier: ^4.3.4 version: 4.4.1 @@ -191,9 +194,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -768,9 +768,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1090,7 +1087,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/json5@0.0.29': optional: true @@ -1103,19 +1100,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1680,8 +1673,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/token-2022/transfer-hook/whitelist/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/whitelist/anchor/tsconfig.json index cd5d2e3d0..219f1fd62 100644 --- a/tokens/token-2022/transfer-hook/whitelist/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/whitelist/anchor/tsconfig.json @@ -1,10 +1,11 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-fundraiser/anchor/package.json b/tokens/token-fundraiser/anchor/package.json index 2c9c49143..6d0aa3c41 100644 --- a/tokens/token-fundraiser/anchor/package.json +++ b/tokens/token-fundraiser/anchor/package.json @@ -18,6 +18,7 @@ "prettier": "^2.6.2", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "@types/node": "^20.9.0" } } diff --git a/tokens/token-fundraiser/anchor/pnpm-lock.yaml b/tokens/token-fundraiser/anchor/pnpm-lock.yaml index 541bb9af2..46726e8df 100644 --- a/tokens/token-fundraiser/anchor/pnpm-lock.yaml +++ b/tokens/token-fundraiser/anchor/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.14.6 anchor-bankrun: specifier: ^0.4.0 version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -191,9 +194,6 @@ packages: '@types/node@20.14.6': resolution: {integrity: sha512-JbA0XIJPL1IiNnU7PFxDXyfAwcwVVrOoqyzzyQTyMeVhBzkJVMSkC1LlVsRQ2lpqiY4n6Bb9oCS6lzDKVQxbZw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -772,9 +772,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1085,7 +1082,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.14.6 '@types/json5@0.0.29': optional: true @@ -1098,19 +1095,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.14.6 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.14.6 '@ungap/promise-all-settled@1.1.2': {} @@ -1650,8 +1643,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.4 diff --git a/tokens/token-fundraiser/anchor/tsconfig.json b/tokens/token-fundraiser/anchor/tsconfig.json index cd5d2e3d0..4037516ce 100644 --- a/tokens/token-fundraiser/anchor/tsconfig.json +++ b/tokens/token-fundraiser/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } diff --git a/tokens/transfer-tokens/anchor/package.json b/tokens/transfer-tokens/anchor/package.json index bead3eb65..64c4575f8 100644 --- a/tokens/transfer-tokens/anchor/package.json +++ b/tokens/transfer-tokens/anchor/package.json @@ -18,6 +18,7 @@ "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", "typescript": "^5.3.3", - "zx": "^8.1.4" + "zx": "^8.1.4", + "@types/node": "^20.9.0" } } diff --git a/tokens/transfer-tokens/anchor/pnpm-lock.yaml b/tokens/transfer-tokens/anchor/pnpm-lock.yaml index 85e0185a7..3942b7ba8 100644 --- a/tokens/transfer-tokens/anchor/pnpm-lock.yaml +++ b/tokens/transfer-tokens/anchor/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: '@types/mocha': specifier: ^9.0.0 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.12.11 anchor-bankrun: specifier: ^0.4.0 version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -205,9 +208,6 @@ packages: '@types/node@20.12.11': resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==} - '@types/node@24.8.0': - resolution: {integrity: sha512-5x08bUtU8hfboMTrJ7mEO4CpepS9yBwAqcL52y86SWNmbPX8LVbNs3EP4cNrIZgdjk2NAlP2ahNihozpoZIxSg==} - '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -812,9 +812,6 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@7.14.0: - resolution: {integrity: sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA==} - utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} engines: {node: '>=6.14.2'} @@ -1155,7 +1152,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/fs-extra@11.0.4': dependencies: @@ -1179,19 +1176,15 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@24.8.0': - dependencies: - undici-types: 7.14.0 - '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.12.11 '@types/ws@8.18.1': dependencies: - '@types/node': 24.8.0 + '@types/node': 20.12.11 '@ungap/promise-all-settled@1.1.2': {} @@ -1783,8 +1776,6 @@ snapshots: undici-types@5.26.5: {} - undici-types@7.14.0: {} - utf-8-validate@5.0.10: dependencies: node-gyp-build: 4.8.1 diff --git a/tokens/transfer-tokens/anchor/tsconfig.json b/tokens/transfer-tokens/anchor/tsconfig.json index cd5d2e3d0..4037516ce 100644 --- a/tokens/transfer-tokens/anchor/tsconfig.json +++ b/tokens/transfer-tokens/anchor/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { - "types": ["mocha", "chai"], + "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], + "lib": ["es2020"], "module": "commonjs", - "target": "es6", - "esModuleInterop": true + "target": "es2020", + "esModuleInterop": true, + "skipLibCheck": true, + "resolveJsonModule": true } } From 4766a13cd2a54d8434462dd9e827898f551c6e9e Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 11:27:49 -0400 Subject: [PATCH 04/10] ci: cache pnpm store, cargo registry, and sbpf binary No build workflow cached anything: every job re-downloaded the pnpm store and the cargo registry, and asm recompiled the sbpf assembler from git on every run. - setup-node pnpm store cache keyed on all project lockfiles (per project lockfile for just.yml) - Swatinem/rust-cache for the shared root-workspace cargo registry (cache-targets off: SBF target dirs are too large and anchor wipes them between projects); full target cache for the clippy job and per-workspace for just.yml - asm: sbpf binary cached keyed on its pinned rev, install skipped on hit; pnpm now installed via pinned pnpm/action-setup reading the packageManager field instead of npm install -g --- .github/actions/setup-anchor/action.yml | 2 ++ .github/workflows/anchor.yml | 4 ++++ .github/workflows/just.yml | 6 +++++ .github/workflows/rust.yml | 3 +++ .github/workflows/solana-asm.yml | 32 +++++++++++++++++-------- .github/workflows/solana-native.yml | 6 +++++ .github/workflows/solana-pinocchio.yml | 6 +++++ 7 files changed, 49 insertions(+), 10 deletions(-) diff --git a/.github/actions/setup-anchor/action.yml b/.github/actions/setup-anchor/action.yml index cf2164461..e2225e39e 100644 --- a/.github/actions/setup-anchor/action.yml +++ b/.github/actions/setup-anchor/action.yml @@ -28,6 +28,8 @@ runs: - uses: actions/setup-node@v4 with: node-version: ${{ inputs.node-version }} + cache: pnpm + cache-dependency-path: '**/pnpm-lock.yaml' - name: Output Node Version id: node_v diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 56660f525..390a33f64 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -124,6 +124,10 @@ jobs: steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + shared-key: cargo-registry + cache-targets: false - uses: ./.github/actions/setup-anchor with: anchor-version: 1.0.2 diff --git a/.github/workflows/just.yml b/.github/workflows/just.yml index 39e05cf47..eac82e775 100644 --- a/.github/workflows/just.yml +++ b/.github/workflows/just.yml @@ -101,6 +101,12 @@ jobs: with: node-version-file: ${{ matrix.project }}/.nvmrc check-latest: true + cache: pnpm + cache-dependency-path: ${{ matrix.project }}/pnpm-lock.yaml + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + workspaces: ${{ matrix.project }} + shared-key: ${{ matrix.project }} - name: Install just uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4 - name: Setup Solana diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fa4786827..8c6b351c4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,6 +54,9 @@ jobs: with: toolchain: stable components: clippy + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + shared-key: clippy - name: Linting # Allow diverging_sub_expression: false positive from Anchor 1.0's #[program] macro expansion run: cargo clippy -- -D warnings -A clippy::diverging_sub_expression diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index 574d29f56..1249ab237 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -122,11 +122,33 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 + # pnpm/action-setup installs the packageManager version pinned in + # package.json (unpinned latest pnpm fails CI with ERR_PNPM_IGNORED_BUILDS) + - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - name: Use Node.js uses: actions/setup-node@v4 with: node-version: "lts/*" check-latest: true + cache: pnpm + cache-dependency-path: '**/pnpm-lock.yaml' + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + shared-key: cargo-registry + cache-targets: false + - name: Cache sbpf assembler + id: cache-sbpf + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/sbpf + key: ${{ runner.os }}-sbpf-0223df0e7ba622d4956b4ecf3cf2397f6945b76b + # Pinned to v0.1.9 (0223df0e): the unpinned tip moved to v0.2.2, which + # emits an sBPF binary the runtime loader rejects at execution + # ("Program is not deployed"), breaking every ASM example. Keep in sync + # with the pinned Solana version below. + - name: Install sbpf assembler + if: steps.cache-sbpf.outputs.cache-hit != 'true' + run: cargo install --git https://github.com/blueshift-gg/sbpf.git --rev 0223df0e7ba622d4956b4ecf3cf2397f6945b76b - name: Setup build environment id: setup run: | @@ -208,16 +230,6 @@ jobs: # Make the script executable chmod +x build_and_test.sh - - # Install pnpm (pin to the repo's packageManager version; unpinned - # latest pnpm fails CI with ERR_PNPM_IGNORED_BUILDS) - npm install --global pnpm@10.33.0 - - # Install sbpf assembler. Pinned to v0.1.9 (0223df0e): the unpinned - # tip moved to v0.2.2, which emits an sBPF binary the runtime loader - # rejects at execution ("Program is not deployed"), breaking every ASM - # example. Keep in sync with the pinned Solana version below. - cargo install --git https://github.com/blueshift-gg/sbpf.git --rev 0223df0e7ba622d4956b4ecf3cf2397f6945b76b - name: Setup Solana Stable uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 with: diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index 4260cd5b3..a3bad5b22 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -130,6 +130,12 @@ jobs: with: node-version: 'lts/*' check-latest: true + cache: pnpm + cache-dependency-path: '**/pnpm-lock.yaml' + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + shared-key: cargo-registry + cache-targets: false - name: Setup build environment id: setup run: | diff --git a/.github/workflows/solana-pinocchio.yml b/.github/workflows/solana-pinocchio.yml index abfbb0c0c..96a36c5ac 100644 --- a/.github/workflows/solana-pinocchio.yml +++ b/.github/workflows/solana-pinocchio.yml @@ -130,6 +130,12 @@ jobs: with: node-version: "lts/*" check-latest: true + cache: pnpm + cache-dependency-path: '**/pnpm-lock.yaml' + - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + shared-key: cargo-registry + cache-targets: false - name: Setup build environment id: setup run: | From e5987abff2c296a2afe72b9b527a3d0ef02d961f Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 11:30:33 -0400 Subject: [PATCH 05/10] ci: gate workspace membership, cover npm in dependabot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rust.yml gains a workspace-membership job: any crate with a [package] section must be a root workspace member or listed in .github/.workspace-ignore, so fmt/clippy coverage can no longer drop silently. The ignore file is seeded with the 53 crates currently outside the workspace as a ratchet. - dependabot now updates npm across all example directories (grouped, biweekly, patch-only — same posture as cargo), covering the manual dependency-bump toil. - typescript.yml renamed to Lint: it runs Biome only; typechecking lives in the build workflows. --- .github/.workspace-ignore | 56 ++++++++++++++++++++++++++++++++ .github/dependabot.yml | 12 +++++++ .github/workflows/rust.yml | 20 ++++++++++++ .github/workflows/typescript.yml | 2 +- 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 .github/.workspace-ignore diff --git a/.github/.workspace-ignore b/.github/.workspace-ignore new file mode 100644 index 000000000..ad2ba797b --- /dev/null +++ b/.github/.workspace-ignore @@ -0,0 +1,56 @@ +# Crates outside the root Cargo workspace, so rust.yml fmt/clippy do not cover them. +# New crates must join [workspace] members in Cargo.toml or be listed here with a reason. +# One directory path per line; comments and blank lines are ignored. +basics/cross-program-invocation/native/programs/hand +basics/cross-program-invocation/native/programs/lever +basics/favorites/anchor/programs/favorites +compression/cnft-burn/anchor/programs/cnft-burn +compression/cnft-vault/anchor/programs/cnft-vault +compression/cutils/anchor/programs/cutils +games/world-cup/pinocchio/clients/rust +games/world-cup/pinocchio/program +games/world-cup/pinocchio/tests/integration-tests +oracles/pyth/anchor/programs/pythexample +tokens/create-token/anchor/programs/create-token +tokens/create-token/native/program +tokens/escrow/anchor/programs/escrow +tokens/escrow/native/program +tokens/external-delegate-token-master/anchor/programs/external-delegate-token-master +tokens/nft-minter/anchor/programs/nft-minter +tokens/nft-minter/native/program +tokens/nft-operations/anchor/programs/mint-nft +tokens/pda-mint-authority/anchor/programs/token-minter +tokens/pda-mint-authority/native/program +tokens/spl-token-minter/anchor/programs/spl-token-minter +tokens/spl-token-minter/native/program +tokens/token-2022/basics/anchor/programs/basics +tokens/token-2022/cpi-guard/anchor/programs/cpi-guard +tokens/token-2022/default-account-state/anchor/programs/default-account-state +tokens/token-2022/group/anchor/programs/group +tokens/token-2022/immutable-owner/anchor/programs/immutable-owner +tokens/token-2022/interest-bearing/anchor/programs/interest-bearing +tokens/token-2022/memo-transfer/anchor/programs/memo-transfer +tokens/token-2022/metadata/anchor/programs/metadata +tokens/token-2022/mint-close-authority/anchor/programs/mint-close-authority +tokens/token-2022/nft-meta-data-pointer/anchor-example/anchor/programs/extension_nft +tokens/token-2022/non-transferable/anchor/programs/non-transferable +tokens/token-2022/permanent-delegate/anchor/programs/permanent-delegate +tokens/token-2022/transfer-fee/anchor/programs/transfer-fee +tokens/token-2022/transfer-hook/account-data-as-seed/anchor/programs/transfer-hook +tokens/token-2022/transfer-hook/allow-block-list-token/anchor/programs/abl-token +tokens/token-2022/transfer-hook/counter/anchor/programs/transfer-hook +tokens/token-2022/transfer-hook/hello-world/anchor/programs/transfer-hook +tokens/token-2022/transfer-hook/pblock-list/cli +tokens/token-2022/transfer-hook/pblock-list/pino/cli +tokens/token-2022/transfer-hook/pblock-list/pino/program +tokens/token-2022/transfer-hook/pblock-list/pino/sdk/rust +tokens/token-2022/transfer-hook/pblock-list/program +tokens/token-2022/transfer-hook/pblock-list/sdk/rust +tokens/token-2022/transfer-hook/transfer-cost/anchor/programs/transfer-hook +tokens/token-2022/transfer-hook/transfer-switch/anchor/programs/transfer-switch +tokens/token-2022/transfer-hook/whitelist/anchor/programs/transfer-hook +tokens/token-fundraiser/anchor/programs/fundraiser +tokens/token-swap/anchor/programs/token-swap +tokens/transfer-tokens/anchor/programs/transfer-tokens +tokens/transfer-tokens/native/program +tools/shank-and-solita/native/program diff --git a/.github/dependabot.yml b/.github/dependabot.yml index dc5cf6286..40447a1fb 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -30,3 +30,15 @@ updates: - dependency-name: "*" update-types: - version-update:semver-patch + + - package-ecosystem: npm + directories: + - "**/*" + multi-ecosystem-group: all-deps + patterns: ["*"] + cooldown: + default-days: 7 + allow: + - dependency-name: "*" + update-types: + - version-update:semver-patch diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8c6b351c4..d806c4836 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,6 +43,26 @@ jobs: - name: Enforce formatting run: cargo fmt --check + workspace-membership: + name: Workspace membership + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v7 + - name: Check every crate is covered by the root workspace + run: | + ignore_pattern=$(grep -v '^#' .github/.workspace-ignore | grep -v '^$' | tr '\n' '|' | sed 's/|$//') + [ -z "$ignore_pattern" ] && ignore_pattern='^$' + member_dirs=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].manifest_path' | xargs -n1 dirname | sed "s#^$PWD/##" | sort -u) + crate_dirs=$(grep -rl --include=Cargo.toml '^\[package\]' . | grep -v node_modules | grep -v '/target/' | xargs -n1 dirname | sed 's#^\./##' | sort -u) + missing=$(comm -13 <(echo "$member_dirs") <(echo "$crate_dirs") | grep -vE "^($ignore_pattern)$" || true) + if [ -n "$missing" ]; then + echo "::error::Crates outside the root workspace escape fmt/clippy. Add them to [workspace] members in Cargo.toml or to .github/.workspace-ignore:" + echo "$missing" + exit 1 + fi + echo "All crates are workspace members or explicitly ignored." + # `clippy` container job clippy: name: Clippy diff --git a/.github/workflows/typescript.yml b/.github/workflows/typescript.yml index aeaea6645..257b35074 100644 --- a/.github/workflows/typescript.yml +++ b/.github/workflows/typescript.yml @@ -1,4 +1,4 @@ -name: TypeScript +name: Lint on: push: From 5440047647e1b79e96629ae393b43879330ff69d Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 11:52:48 -0400 Subject: [PATCH 06/10] ci: unify toolchain setup into one composite action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One .github/actions/setup action with install-* toggles and version inputs (pnpm/Node, Solana, Anchor, just, sbpf) plus built-in caching, called by every build workflow. Replaces the vendored setup-anchor action and all remote heyAyushh/setup-solana references — that action checks out its own default branch at runtime for its scripts, so even a SHA pin executed unpinned code. Solana installs straight from release.anza.xyz; "stable"/"beta" resolve through the vendored channel-info.sh. Also fixes an upstream bug inherited by the old action: when a channel has no tag, its empty field shifted the other tag into the wrong slot on read, so "stable" could resolve to nothing and 404 (true today — beta currently has no tag). The script now emits "none" placeholders and the action errors explicitly on a tagless channel. --- .github/actions/setup-anchor/action.yml | 142 --------- .../actions/{setup-anchor => setup}/LICENSE | 0 .github/actions/setup/action.yml | 295 ++++++++++++++++++ .github/actions/setup/scripts/channel-info.sh | 122 ++++++++ .github/actions/setup/scripts/semver.sh | 135 ++++++++ .github/workflows/anchor.yml | 11 +- .github/workflows/just.yml | 22 +- .github/workflows/solana-asm.yml | 53 +--- .github/workflows/solana-native.yml | 28 +- .github/workflows/solana-pinocchio.yml | 28 +- 10 files changed, 589 insertions(+), 247 deletions(-) delete mode 100644 .github/actions/setup-anchor/action.yml rename .github/actions/{setup-anchor => setup}/LICENSE (100%) create mode 100644 .github/actions/setup/action.yml create mode 100755 .github/actions/setup/scripts/channel-info.sh create mode 100755 .github/actions/setup/scripts/semver.sh diff --git a/.github/actions/setup-anchor/action.yml b/.github/actions/setup-anchor/action.yml deleted file mode 100644 index e2225e39e..000000000 --- a/.github/actions/setup-anchor/action.yml +++ /dev/null @@ -1,142 +0,0 @@ -# Vendored from https://github.com/heyAyushh/setup-anchor @v4.999 (MIT, see LICENSE) -name: 'Setup Anchor' -description: 'Install Anchor, Solana CLI tools, and Node.js.' -branding: - icon: anchor - color: blue -inputs: - node-version: - description: 'Version of node.js to use' - required: false - default: 'lts/*' - solana-cli-version: - description: 'Version of Solana CLI to use' - required: false - default: 'stable' - anchor-version: - description: 'Version of Anchor to use' - required: false - default: '0.31.1' - use-avm: - description: 'Use Anchor Version Manager (AVM) to install Anchor' - required: false - default: "true" - -runs: - using: 'composite' - steps: - - uses: actions/setup-node@v4 - with: - node-version: ${{ inputs.node-version }} - cache: pnpm - cache-dependency-path: '**/pnpm-lock.yaml' - - - name: Output Node Version - id: node_v - shell: bash - run: | - echo "node_v=$(node -v)" >> $GITHUB_OUTPUT - echo "Using Node version: $(node -v)" - - - name: Setup Solana - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 - with: - solana-cli-version: ${{ inputs.solana-cli-version }} - - - name: Verify Solana installation - shell: bash - run: | - if ! command -v solana &> /dev/null; then - echo "ERROR: Solana CLI installation failed" - exit 1 - fi - echo "Solana CLI version: $(solana --version)" - solana_version=$(echo $(solana --version) | awk '{print $2}') - echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV - - - name: Generate cache key - id: cache-key - shell: bash - run: | - echo "key=${{ runner.os }}-anchor-v${{ inputs.anchor-version }}-solana-v$SOLANA_VERSION" >> $GITHUB_OUTPUT - - - name: Cache Anchor and Cargo - id: cache-anchor - uses: actions/cache@v4 - with: - path: | - ~/.cargo/bin/avm - ~/.cargo/bin/anchor - ~/.avm - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - key: ${{ steps.cache-key.outputs.key }} - - - name: Check for existing anchor installation - id: check-anchor - shell: bash - run: | - if command -v anchor &> /dev/null; then - installed_version=$(anchor --version | awk '/^anchor-cli / {v=$2} END {print v}') - echo "anchor_exists=true" >> $GITHUB_OUTPUT - echo "installed_version=$installed_version" >> $GITHUB_OUTPUT - echo "Found existing Anchor installation: $installed_version" - else - echo "anchor_exists=false" >> $GITHUB_OUTPUT - echo "No existing Anchor installation found" - fi - - - name: Clean existing Anchor installation if version mismatch - if: steps.check-anchor.outputs.anchor_exists == 'true' && steps.check-anchor.outputs.installed_version != inputs.anchor-version - shell: bash - run: | - echo "Removing existing Anchor version to install requested version" - rm -rf ~/.cargo/bin/anchor - rm -rf ~/.avm - - - name: Install Anchor with AVM - if: (steps.cache-anchor.outputs.cache-hit != 'true') || (steps.check-anchor.outputs.anchor_exists != 'true') - shell: bash - run: | - echo "Installing Anchor v${{ inputs.anchor-version }} via AVM..." - set -e - if ! command -v avm &> /dev/null; then - echo "Installing AVM..." - cargo install --git https://github.com/coral-xyz/anchor avm --force - fi - avm --version - avm install ${{ inputs.anchor-version }} - avm use ${{ inputs.anchor-version }} - - if ! command -v anchor &> /dev/null; then - echo "ERROR: AVM installation failed, falling back to direct cargo install" - cargo install --git https://github.com/coral-xyz/anchor --tag v${{ inputs.anchor-version }} anchor-cli --force - if ! command -v anchor &> /dev/null; then - echo "ERROR: Cargo installation failed." - exit 1 - fi - else - echo "AVM installation successful: $(anchor --version)" - exit 0 - fi - - - name: Verify Anchor and Rust installation - shell: bash - run: | - if ! command -v anchor &> /dev/null; then - echo "ERROR: Anchor installation verification failed" - exit 1 - fi - - anchor_version=$(anchor --version) - echo "Anchor installed successfully: $anchor_version" - - # Verify version matches requested version - if [[ ! "$anchor_version" == *"${{ inputs.anchor-version }}"* ]]; then - echo "WARNING: Installed version ($anchor_version) may not match requested version (${{ inputs.anchor-version }})" - fi - - rust_version=$(rustc --version | awk '{print $2}') - echo "Rust version: $rust_version" diff --git a/.github/actions/setup-anchor/LICENSE b/.github/actions/setup/LICENSE similarity index 100% rename from .github/actions/setup-anchor/LICENSE rename to .github/actions/setup/LICENSE diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 000000000..04ed96f44 --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,295 @@ +# Single setup action for every build workflow: declare what to install and +# which version, get caching for free. Solana installs straight from +# release.anza.xyz ("stable"/"beta" resolve through scripts/channel-info.sh, +# vendored from heyAyushh/setup-solana v5.9, MIT — see LICENSE; the scripts +# themselves come from anza-xyz/agave, Apache-2.0). Anchor/AVM logic folded in +# from the previously vendored setup-anchor action. +name: 'Setup CI Environment' +description: 'Shared setup for pnpm/Node, Solana, Anchor, just, sbpf, and cargo caching' + +inputs: + install-pnpm: + description: 'Install pnpm and Node.js with a pnpm store cache' + required: false + default: 'true' + node-version: + description: 'Node.js version (ignored when node-version-file is set)' + required: false + default: 'lts/*' + node-version-file: + description: 'Path to a version file (e.g. .nvmrc); overrides node-version' + required: false + default: '' + pnpm-lock-glob: + description: 'Lockfile glob that keys the pnpm store cache' + required: false + default: '**/pnpm-lock.yaml' + install-solana: + description: 'Install the Solana CLI' + required: false + default: 'true' + solana-version: + description: "Solana version: exact (e.g. '4.0.3') or channel ('stable' | 'beta')" + required: false + default: 'stable' + install-anchor: + description: 'Install Anchor via AVM' + required: false + default: 'false' + anchor-version: + description: 'Anchor version to install' + required: false + default: '1.0.2' + install-just: + description: 'Install just' + required: false + default: 'false' + install-sbpf: + description: 'Install the sbpf assembler' + required: false + default: 'false' + sbpf-rev: + description: >- + blueshift-gg/sbpf git rev. Pinned to v0.1.9: the tip moved to v0.2.2, + which emits an sBPF binary the runtime loader rejects at execution + ("Program is not deployed"). Keep in sync with the ASM workflow's pinned + Solana version. + required: false + default: '0223df0e7ba622d4956b4ecf3cf2397f6945b76b' + cargo-cache: + description: 'Cache the cargo registry (and optionally targets) via rust-cache' + required: false + default: 'true' + cargo-cache-key: + description: 'Shared key for the cargo cache' + required: false + default: 'cargo-registry' + cargo-cache-workspaces: + description: 'Workspaces argument for rust-cache' + required: false + default: '.' + cargo-cache-targets: + description: 'Also cache target dirs (keep off for SBF builds: too large)' + required: false + default: 'false' + +runs: + using: 'composite' + steps: + - name: Install pnpm + if: inputs.install-pnpm == 'true' + uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 + + - name: Setup Node.js + if: inputs.install-pnpm == 'true' && inputs.node-version-file == '' + uses: actions/setup-node@v5 + with: + node-version: ${{ inputs.node-version }} + check-latest: true + cache: pnpm + cache-dependency-path: ${{ inputs.pnpm-lock-glob }} + + - name: Setup Node.js (version file) + if: inputs.install-pnpm == 'true' && inputs.node-version-file != '' + uses: actions/setup-node@v5 + with: + node-version-file: ${{ inputs.node-version-file }} + check-latest: true + cache: pnpm + cache-dependency-path: ${{ inputs.pnpm-lock-glob }} + + - name: Cargo cache + if: inputs.cargo-cache == 'true' + uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + with: + workspaces: ${{ inputs.cargo-cache-workspaces }} + shared-key: ${{ inputs.cargo-cache-key }} + cache-targets: ${{ inputs.cargo-cache-targets }} + + - name: Resolve Solana version + if: inputs.install-solana == 'true' + id: solana-release + shell: bash + run: | + version='${{ inputs.solana-version }}' + if [[ "$version" =~ ^[0-9] ]]; then + resolved="$version" + # Exact pins get a stable cache key + echo "cache_key=solana-${{ runner.os }}-v$resolved" >> $GITHUB_OUTPUT + else + chmod +x "${{ github.action_path }}/scripts/channel-info.sh" + read -r BETA_CHANNEL_LATEST_TAG STABLE_CHANNEL_LATEST_TAG <<< "$("${{ github.action_path }}/scripts/channel-info.sh")" + case "$version" in + stable) tag="$STABLE_CHANNEL_LATEST_TAG" ;; + beta) tag="$BETA_CHANNEL_LATEST_TAG" ;; + *) echo "::error::Unsupported solana-version '$version' (use an exact version, 'stable', or 'beta')"; exit 1 ;; + esac + if [[ -z "$tag" || "$tag" == "none" ]]; then + echo "::error::No release tag for Solana channel '$version'" + exit 1 + fi + resolved="${tag#v}" + # Channels move: include year+week so the cache refreshes weekly + echo "cache_key=solana-${{ runner.os }}-v$resolved-$(date +%Y%V)" >> $GITHUB_OUTPUT + fi + echo "Using Solana CLI version $resolved" + echo "install_version=v$resolved" >> $GITHUB_OUTPUT + echo "version=$resolved" >> $GITHUB_OUTPUT + + # Clean existing installations to prevent version conflicts (a job may + # call this action twice, e.g. stable then beta) + - name: Clean existing Solana installation + if: inputs.install-solana == 'true' + shell: bash + run: | + rm -rf ~/.cache/solana + rm -rf ~/.local/share/solana + rm -rf ~/.solana + rm -rf ~/.config/solana + rm -rf ~/.cargo/bin/cargo-build-sbf + rm -rf ~/.cargo/bin/cargo-test-sbf + + - name: Cache Solana environment + if: inputs.install-solana == 'true' + id: cache-solana + uses: actions/cache@v4 + with: + path: | + ~/.cache/solana/ + ~/.local/share/solana/ + ~/.solana/ + ~/.config/solana/ + ~/.cargo/bin/cargo-build-sbf + ~/.cargo/bin/cargo-test-sbf + key: ${{ steps.solana-release.outputs.cache_key }} + + - name: Install Solana CLI tools + if: inputs.install-solana == 'true' && steps.cache-solana.outputs.cache-hit != 'true' + shell: bash + run: sh -c "$(curl -sSfL https://release.anza.xyz/${{ steps.solana-release.outputs.install_version }}/install)" + + - name: Verify Solana version + if: inputs.install-solana == 'true' + shell: bash + run: | + echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH + export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH" + + INSTALLED_VERSION=$(solana --version | grep -oP 'solana-cli \K[0-9]+\.[0-9]+\.[0-9]+') + EXPECTED_VERSION="${{ steps.solana-release.outputs.version }}" + + echo "Installed version: $INSTALLED_VERSION" + echo "Expected version: $EXPECTED_VERSION" + + if [[ "$INSTALLED_VERSION" != "$EXPECTED_VERSION" ]]; then + echo "Version mismatch! Expected $EXPECTED_VERSION but got $INSTALLED_VERSION" + rm -rf ~/.cache/solana + rm -rf ~/.local/share/solana + sh -c "$(curl -sSfL https://release.anza.xyz/v$EXPECTED_VERSION/install)" + fi + + echo "Final Solana version:" + solana --version + cargo-build-sbf --version + + - name: Generate Anchor cache key + if: inputs.install-anchor == 'true' + id: anchor-cache-key + shell: bash + run: echo "key=${{ runner.os }}-anchor-v${{ inputs.anchor-version }}-solana-v${{ steps.solana-release.outputs.version }}" >> $GITHUB_OUTPUT + + - name: Cache Anchor and Cargo binaries + if: inputs.install-anchor == 'true' + id: cache-anchor + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/avm + ~/.cargo/bin/anchor + ~/.avm + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + key: ${{ steps.anchor-cache-key.outputs.key }} + + - name: Check for existing Anchor installation + if: inputs.install-anchor == 'true' + id: check-anchor + shell: bash + run: | + if command -v anchor &> /dev/null; then + installed_version=$(anchor --version | awk '/^anchor-cli / {v=$2} END {print v}') + echo "anchor_exists=true" >> $GITHUB_OUTPUT + echo "installed_version=$installed_version" >> $GITHUB_OUTPUT + echo "Found existing Anchor installation: $installed_version" + else + echo "anchor_exists=false" >> $GITHUB_OUTPUT + echo "No existing Anchor installation found" + fi + + - name: Clean existing Anchor installation if version mismatch + if: inputs.install-anchor == 'true' && steps.check-anchor.outputs.anchor_exists == 'true' && steps.check-anchor.outputs.installed_version != inputs.anchor-version + shell: bash + run: | + echo "Removing existing Anchor version to install requested version" + rm -rf ~/.cargo/bin/anchor + rm -rf ~/.avm + + - name: Install Anchor with AVM + if: inputs.install-anchor == 'true' && ((steps.cache-anchor.outputs.cache-hit != 'true') || (steps.check-anchor.outputs.anchor_exists != 'true')) + shell: bash + run: | + echo "Installing Anchor v${{ inputs.anchor-version }} via AVM..." + set -e + if ! command -v avm &> /dev/null; then + echo "Installing AVM..." + cargo install --git https://github.com/coral-xyz/anchor avm --force + fi + avm --version + avm install ${{ inputs.anchor-version }} + avm use ${{ inputs.anchor-version }} + + if ! command -v anchor &> /dev/null; then + echo "ERROR: AVM installation failed, falling back to direct cargo install" + cargo install --git https://github.com/coral-xyz/anchor --tag v${{ inputs.anchor-version }} anchor-cli --force + if ! command -v anchor &> /dev/null; then + echo "ERROR: Cargo installation failed." + exit 1 + fi + else + echo "AVM installation successful: $(anchor --version)" + fi + + - name: Verify Anchor installation + if: inputs.install-anchor == 'true' + shell: bash + run: | + if ! command -v anchor &> /dev/null; then + echo "ERROR: Anchor installation verification failed" + exit 1 + fi + + anchor_version=$(anchor --version) + echo "Anchor installed successfully: $anchor_version" + + if [[ ! "$anchor_version" == *"${{ inputs.anchor-version }}"* ]]; then + echo "WARNING: Installed version ($anchor_version) may not match requested version (${{ inputs.anchor-version }})" + fi + + - name: Install just + if: inputs.install-just == 'true' + uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4 + + - name: Cache sbpf assembler + if: inputs.install-sbpf == 'true' + id: cache-sbpf + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/sbpf + key: ${{ runner.os }}-sbpf-${{ inputs.sbpf-rev }} + + - name: Install sbpf assembler + if: inputs.install-sbpf == 'true' && steps.cache-sbpf.outputs.cache-hit != 'true' + shell: bash + run: cargo install --git https://github.com/blueshift-gg/sbpf.git --rev ${{ inputs.sbpf-rev }} diff --git a/.github/actions/setup/scripts/channel-info.sh b/.github/actions/setup/scripts/channel-info.sh new file mode 100755 index 000000000..bb512d52b --- /dev/null +++ b/.github/actions/setup/scripts/channel-info.sh @@ -0,0 +1,122 @@ +#!/usr/bin/env bash +# Code: https://github.com/anza-xyz/agave/blob/master/ci/channel-info.sh +# Source: Agave project (https://github.com/anza-xyz/agave) +# Copyright (c) 2023 Anza XYZ +# License: Apache-2.0 license +# +# Computes the current branch names of the edge, beta and stable +# channels, as well as the latest tagged release for beta and stable. +# +# stdout of this script may be eval-ed +# + +here="$(dirname "$0")" + +# shellcheck source=scripts/semver.sh +source "$here"/semver.sh + +remote=https://github.com/anza-xyz/agave.git + +# Fetch all vX.Y.Z tags +# +# NOTE: pre-release tags are explicitly ignored +# +# shellcheck disable=SC2207 +tags=( \ + $(git ls-remote --tags $remote \ + | cut -c52- \ + | grep '^v[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*.[[:digit:]][[:digit:]]*$' \ + | cut -c2- \ + ) \ +) + +# Fetch all the vX.Y branches +# +# shellcheck disable=SC2207 +heads=( \ + $(git ls-remote --heads $remote \ + | cut -c53- \ + | grep '^v[[:digit:]][[:digit:]]*\.[[:digit:]][[:digit:]]*$' \ + | cut -c2- \ + ) \ +) + +# Figure the beta channel by looking for the largest vX.Y branch +beta= +for head in "${heads[@]}"; do + if [[ -n $beta ]]; then + if semverLT "$head.0" "$beta.0"; then + continue + fi + fi + beta=$head +done + +# Figure the stable channel by looking for the second largest vX.Y branch +stable= +for head in "${heads[@]}"; do + if [[ $head = "$beta" ]]; then + continue + fi + if [[ -n $stable ]]; then + if semverLT "$head.0" "$stable.0"; then + continue + fi + fi + stable=$head +done + +for tag in "${tags[@]}"; do + if [[ -n $beta && $tag = $beta* ]]; then + if [[ -n $beta_tag ]]; then + if semverLT "$tag" "$beta_tag"; then + continue + fi + fi + beta_tag=$tag + fi + + if [[ -n $stable && $tag = $stable* ]]; then + if [[ -n $stable_tag ]]; then + if semverLT "$tag" "$stable_tag"; then + continue + fi + fi + stable_tag=$tag + fi +done + +EDGE_CHANNEL=master +BETA_CHANNEL=${beta:+v$beta} +STABLE_CHANNEL=${stable:+v$stable} +BETA_CHANNEL_LATEST_TAG=${beta_tag:+v$beta_tag} +STABLE_CHANNEL_LATEST_TAG=${stable_tag:+v$stable_tag} + + +if [[ -n $CI_BASE_BRANCH ]]; then + BRANCH="$CI_BASE_BRANCH" +elif [[ -n $CI_BRANCH ]]; then + BRANCH="$CI_BRANCH" +fi + +if [[ -z "$CHANNEL" ]]; then + if [[ $BRANCH = "$STABLE_CHANNEL" ]]; then + CHANNEL=stable + elif [[ $BRANCH = "$EDGE_CHANNEL" ]]; then + CHANNEL=edge + elif [[ $BRANCH = "$BETA_CHANNEL" ]]; then + CHANNEL=beta + fi +fi + +if [[ $CHANNEL = beta ]]; then + CHANNEL_LATEST_TAG="$BETA_CHANNEL_LATEST_TAG" +elif [[ $CHANNEL = stable ]]; then + CHANNEL_LATEST_TAG="$STABLE_CHANNEL_LATEST_TAG" +fi + +# "none" placeholders keep the two fields positional when a channel has no +# tag (an empty first field would shift stable into the beta slot on read) +echo "${BETA_CHANNEL_LATEST_TAG:-none} ${STABLE_CHANNEL_LATEST_TAG:-none}" + +exit 0 diff --git a/.github/actions/setup/scripts/semver.sh b/.github/actions/setup/scripts/semver.sh new file mode 100755 index 000000000..c57d1aabe --- /dev/null +++ b/.github/actions/setup/scripts/semver.sh @@ -0,0 +1,135 @@ +#!/usr/bin/env sh + +# Code: https://github.com/anza-xyz/agave/blob/master/ci/semver_bash/semver.sh +# Source: Agave project (https://github.com/anza-xyz/agave) +# Copyright (c) 2023 Anza XYZ +# License: Apache-2.0 license + +function semverParseInto() { + local RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)' + #MAJOR + eval $2=`echo $1 | sed -e "s#$RE#\1#"` + #MINOR + eval $3=`echo $1 | sed -e "s#$RE#\2#"` + #MINOR + eval $4=`echo $1 | sed -e "s#$RE#\3#"` + #SPECIAL + eval $5=`echo $1 | sed -e "s#$RE#\4#"` +} + +function semverEQ() { + local MAJOR_A=0 + local MINOR_A=0 + local PATCH_A=0 + local SPECIAL_A=0 + + local MAJOR_B=0 + local MINOR_B=0 + local PATCH_B=0 + local SPECIAL_B=0 + + semverParseInto $1 MAJOR_A MINOR_A PATCH_A SPECIAL_A + semverParseInto $2 MAJOR_B MINOR_B PATCH_B SPECIAL_B + + if [ $MAJOR_A -ne $MAJOR_B ]; then + return 1 + fi + + if [ $MINOR_A -ne $MINOR_B ]; then + return 1 + fi + + if [ $PATCH_A -ne $PATCH_B ]; then + return 1 + fi + + if [[ "_$SPECIAL_A" != "_$SPECIAL_B" ]]; then + return 1 + fi + + + return 0 + +} + +function semverLT() { + local MAJOR_A=0 + local MINOR_A=0 + local PATCH_A=0 + local SPECIAL_A=0 + + local MAJOR_B=0 + local MINOR_B=0 + local PATCH_B=0 + local SPECIAL_B=0 + + semverParseInto $1 MAJOR_A MINOR_A PATCH_A SPECIAL_A + semverParseInto $2 MAJOR_B MINOR_B PATCH_B SPECIAL_B + + if [ $MAJOR_A -lt $MAJOR_B ]; then + return 0 + fi + + if [[ $MAJOR_A -le $MAJOR_B && $MINOR_A -lt $MINOR_B ]]; then + return 0 + fi + + if [[ $MAJOR_A -le $MAJOR_B && $MINOR_A -le $MINOR_B && $PATCH_A -lt $PATCH_B ]]; then + return 0 + fi + + if [[ "_$SPECIAL_A" == "_" ]] && [[ "_$SPECIAL_B" == "_" ]] ; then + return 1 + fi + if [[ "_$SPECIAL_A" == "_" ]] && [[ "_$SPECIAL_B" != "_" ]] ; then + return 1 + fi + if [[ "_$SPECIAL_A" != "_" ]] && [[ "_$SPECIAL_B" == "_" ]] ; then + return 0 + fi + + if [[ "_$SPECIAL_A" < "_$SPECIAL_B" ]]; then + return 0 + fi + + return 1 + +} + +function semverGT() { + semverEQ $1 $2 + local EQ=$? + + semverLT $1 $2 + local LT=$? + + if [ $EQ -ne 0 ] && [ $LT -ne 0 ]; then + return 0 + else + return 1 + fi +} + +if [ "___semver.sh" == "___`basename $0`" ]; then + +MAJOR=0 +MINOR=0 +PATCH=0 +SPECIAL="" + +semverParseInto $1 MAJOR MINOR PATCH SPECIAL +echo "$1 -> M: $MAJOR m:$MINOR p:$PATCH s:$SPECIAL" + +semverParseInto $2 MAJOR MINOR PATCH SPECIAL +echo "$2 -> M: $MAJOR m:$MINOR p:$PATCH s:$SPECIAL" + +semverEQ $1 $2 +echo "$1 == $2 -> $?." + +semverLT $1 $2 +echo "$1 < $2 -> $?." + +semverGT $1 $2 +echo "$1 > $2 -> $?." + +fi diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 390a33f64..419008bac 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -123,15 +123,10 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 + - uses: ./.github/actions/setup with: - shared-key: cargo-registry - cache-targets: false - - uses: ./.github/actions/setup-anchor - with: - anchor-version: 1.0.2 - solana-cli-version: stable + install-anchor: 'true' + anchor-version: '1.0.2' - name: Display Versions run: | solana -V diff --git a/.github/workflows/just.yml b/.github/workflows/just.yml index eac82e775..0887fedec 100644 --- a/.github/workflows/just.yml +++ b/.github/workflows/just.yml @@ -95,24 +95,14 @@ jobs: name: ${{ matrix.project }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - - name: Use Node.js - uses: actions/setup-node@v5 + - uses: ./.github/actions/setup with: node-version-file: ${{ matrix.project }}/.nvmrc - check-latest: true - cache: pnpm - cache-dependency-path: ${{ matrix.project }}/pnpm-lock.yaml - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - with: - workspaces: ${{ matrix.project }} - shared-key: ${{ matrix.project }} - - name: Install just - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4 - - name: Setup Solana - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 - with: - solana-cli-version: stable + pnpm-lock-glob: ${{ matrix.project }}/pnpm-lock.yaml + install-just: 'true' + cargo-cache-workspaces: ${{ matrix.project }} + cargo-cache-key: ${{ matrix.project }} + cargo-cache-targets: 'true' - name: Build and test working-directory: ${{ matrix.project }} run: | diff --git a/.github/workflows/solana-asm.yml b/.github/workflows/solana-asm.yml index 1249ab237..bb075209a 100644 --- a/.github/workflows/solana-asm.yml +++ b/.github/workflows/solana-asm.yml @@ -122,33 +122,14 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - # pnpm/action-setup installs the packageManager version pinned in - # package.json (unpinned latest pnpm fails CI with ERR_PNPM_IGNORED_BUILDS) - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - - name: Use Node.js - uses: actions/setup-node@v4 + # Solana pinned to 4.0.3, the last version the ASM examples passed on + # (paired with the sbpf rev pinned in the setup action). Floating + # "stable" moved to 4.1.1 in the same window the toolchain broke. The + # beta leg below stays on the moving channel on purpose. + - uses: ./.github/actions/setup with: - node-version: "lts/*" - check-latest: true - cache: pnpm - cache-dependency-path: '**/pnpm-lock.yaml' - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - with: - shared-key: cargo-registry - cache-targets: false - - name: Cache sbpf assembler - id: cache-sbpf - uses: actions/cache@v4 - with: - path: ~/.cargo/bin/sbpf - key: ${{ runner.os }}-sbpf-0223df0e7ba622d4956b4ecf3cf2397f6945b76b - # Pinned to v0.1.9 (0223df0e): the unpinned tip moved to v0.2.2, which - # emits an sBPF binary the runtime loader rejects at execution - # ("Program is not deployed"), breaking every ASM example. Keep in sync - # with the pinned Solana version below. - - name: Install sbpf assembler - if: steps.cache-sbpf.outputs.cache-hit != 'true' - run: cargo install --git https://github.com/blueshift-gg/sbpf.git --rev 0223df0e7ba622d4956b4ecf3cf2397f6945b76b + solana-version: '4.0.3' + install-sbpf: 'true' - name: Setup build environment id: setup run: | @@ -230,14 +211,6 @@ jobs: # Make the script executable chmod +x build_and_test.sh - - name: Setup Solana Stable - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 - with: - # Pinned to 4.0.3, the last version the ASM examples passed on (paired - # with sbpf v0.1.9 above). Floating "stable" moved to 4.1.1 in the same - # window the toolchain broke. The beta leg below stays unpinned on - # purpose (it is continue-on-error and tracks the moving channel). - solana-cli-version: 4.0.3 - name: Build and Test with Stable run: | source build_and_test.sh @@ -245,16 +218,18 @@ jobs: rustc -V process_projects "stable" # Beta runs only on the nightly schedule and never blocks: the beta - # channel may not have a valid release (e.g. v4.0 returns 404 from - # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and - # beta setup clears the stable install first. + # channel may not have a tagged release, and beta setup clears the + # stable install first. - name: Setup Solana Beta id: setup-beta if: github.event_name == 'schedule' continue-on-error: true - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 + uses: ./.github/actions/setup with: - solana-cli-version: beta + solana-version: beta + install-pnpm: 'false' + cargo-cache: 'false' + install-sbpf: 'false' - name: Build and Test with Beta id: test-beta if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' diff --git a/.github/workflows/solana-native.yml b/.github/workflows/solana-native.yml index a3bad5b22..df10def3d 100644 --- a/.github/workflows/solana-native.yml +++ b/.github/workflows/solana-native.yml @@ -124,18 +124,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - - name: Use Node.js - uses: actions/setup-node@v5 - with: - node-version: 'lts/*' - check-latest: true - cache: pnpm - cache-dependency-path: '**/pnpm-lock.yaml' - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - with: - shared-key: cargo-registry - cache-targets: false + - uses: ./.github/actions/setup - name: Setup build environment id: setup run: | @@ -226,10 +215,6 @@ jobs: # Make the script executable chmod +x build_and_test.sh - - name: Setup Solana Stable - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 - with: - solana-cli-version: stable - name: Build and Test with Stable run: | source build_and_test.sh @@ -237,16 +222,17 @@ jobs: rustc -V process_projects "stable" # Beta runs only on the nightly schedule and never blocks: the beta - # channel may not have a valid release (e.g. v4.0 returns 404 from - # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and - # beta setup clears the stable install first. + # channel may not have a tagged release, and beta setup clears the + # stable install first. - name: Setup Solana Beta id: setup-beta if: github.event_name == 'schedule' continue-on-error: true - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 + uses: ./.github/actions/setup with: - solana-cli-version: beta + solana-version: beta + install-pnpm: 'false' + cargo-cache: 'false' - name: Build and Test with Beta id: test-beta if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' diff --git a/.github/workflows/solana-pinocchio.yml b/.github/workflows/solana-pinocchio.yml index 96a36c5ac..ec9bbf933 100644 --- a/.github/workflows/solana-pinocchio.yml +++ b/.github/workflows/solana-pinocchio.yml @@ -124,18 +124,7 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 - - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 - - name: Use Node.js - uses: actions/setup-node@v5 - with: - node-version: "lts/*" - check-latest: true - cache: pnpm - cache-dependency-path: '**/pnpm-lock.yaml' - - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2 - with: - shared-key: cargo-registry - cache-targets: false + - uses: ./.github/actions/setup - name: Setup build environment id: setup run: | @@ -226,10 +215,6 @@ jobs: # Make the script executable chmod +x build_and_test.sh - - name: Setup Solana Stable - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 - with: - solana-cli-version: stable - name: Build and Test with Stable run: | source build_and_test.sh @@ -237,16 +222,17 @@ jobs: rustc -V process_projects "stable" # Beta runs only on the nightly schedule and never blocks: the beta - # channel may not have a valid release (e.g. v4.0 returns 404 from - # release.anza.xyz — upstream issue with heyAyushh/setup-solana), and - # beta setup clears the stable install first. + # channel may not have a tagged release, and beta setup clears the + # stable install first. - name: Setup Solana Beta id: setup-beta if: github.event_name == 'schedule' continue-on-error: true - uses: heyAyushh/setup-solana@667aa7cbe39ba7d585e752a99fb8918c870d1bac # v5.9 + uses: ./.github/actions/setup with: - solana-cli-version: beta + solana-version: beta + install-pnpm: 'false' + cargo-cache: 'false' - name: Build and Test with Beta id: test-beta if: github.event_name == 'schedule' && steps.setup-beta.outcome == 'success' From 35b21c344a3e4f5e842684b421c58bae77596b35 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 12:16:43 -0400 Subject: [PATCH 07/10] ci: align anchor Solana toolchain, make projects typecheck standalone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Anchor jobs installed channel-stable Solana while every anchor example pins solana_version 3.1.8, so anchor build fetched 3.1.8 through agave-install at build time — which only worked when the weekly toolchain cache happened to contain it. Install 3.1.8 directly. The typecheck audit ran with the repo-root node_modules present, so tsc resolved @types/node and @solana/web3.js from the parent directory for projects that never declared them — false passes that CI (per project installs, no root install) exposed. Re-audited every CI-covered project with the root node_modules hidden and fixed all 19 failures: missing @types/node (7), missing @solana/web3.js (9), extensionless generated-type imports under nodenext (2), and a broken tsconfig in allow-block-list-token/anchor (typeRoots pointing at a nonexistent local node_modules, inherited bundler moduleResolution). --- .github/workflows/anchor.yml | 5 + .../account-data/anchor/tests/litesvm.test.ts | 6 +- basics/account-data/anchor/tests/test.ts | 2 +- basics/account-data/anchor/tsconfig.json | 4 +- basics/account-data/pinocchio/package.json | 3 +- basics/account-data/pinocchio/pnpm-lock.yaml | 17 +- .../anchor/tests/bankrun.test.ts | 2 +- basics/checking-accounts/anchor/tests/test.ts | 2 +- basics/checking-accounts/anchor/tsconfig.json | 4 +- basics/checking-accounts/asm/package.json | 3 +- basics/checking-accounts/asm/pnpm-lock.yaml | 19 +- .../checking-accounts/pinocchio/package.json | 3 +- .../pinocchio/pnpm-lock.yaml | 17 +- basics/close-account/pinocchio/package.json | 3 +- basics/close-account/pinocchio/pnpm-lock.yaml | 27 +- .../pinocchio/package.json | 3 +- .../pinocchio/pnpm-lock.yaml | 23 +- .../repository-layout/pinocchio/package.json | 3 +- .../pinocchio/pnpm-lock.yaml | 27 +- tokens/create-token/anchor/package.json | 3 +- tokens/create-token/anchor/pnpm-lock.yaml | 4 + tokens/nft-minter/anchor/package.json | 3 + tokens/nft-minter/anchor/pnpm-lock.yaml | 5 + tokens/nft-operations/anchor/package.json | 3 +- tokens/nft-operations/anchor/pnpm-lock.yaml | 203 ++------------ tokens/pda-mint-authority/anchor/package.json | 3 +- .../pda-mint-authority/anchor/pnpm-lock.yaml | 4 + tokens/spl-token-minter/anchor/package.json | 3 +- tokens/spl-token-minter/anchor/pnpm-lock.yaml | 4 + .../token-2022/cpi-guard/anchor/package.json | 3 +- .../cpi-guard/anchor/pnpm-lock.yaml | 4 + .../memo-transfer/anchor/package.json | 3 +- .../memo-transfer/anchor/pnpm-lock.yaml | 248 +++--------------- .../anchor/tsconfig.json | 10 +- .../transfer-cost/anchor/package.json | 3 +- .../transfer-cost/anchor/pnpm-lock.yaml | 242 +++-------------- .../whitelist/anchor/package.json | 3 +- .../whitelist/anchor/pnpm-lock.yaml | 242 +++-------------- tokens/transfer-tokens/pinocchio/package.json | 3 +- .../transfer-tokens/pinocchio/pnpm-lock.yaml | 27 +- 40 files changed, 292 insertions(+), 904 deletions(-) diff --git a/.github/workflows/anchor.yml b/.github/workflows/anchor.yml index 419008bac..fbcc494b6 100644 --- a/.github/workflows/anchor.yml +++ b/.github/workflows/anchor.yml @@ -123,8 +123,13 @@ jobs: failed_projects: ${{ steps.set-failed.outputs.failed_projects }} steps: - uses: actions/checkout@v7 + # Solana 3.1.8 matches the [toolchain] solana_version every anchor + # example pins in Anchor.toml. Installing anything else makes anchor + # build fetch 3.1.8 through agave-install at build time, which fails + # whenever the weekly toolchain cache is cold. - uses: ./.github/actions/setup with: + solana-version: '3.1.8' install-anchor: 'true' anchor-version: '1.0.2' - name: Display Versions diff --git a/basics/account-data/anchor/tests/litesvm.test.ts b/basics/account-data/anchor/tests/litesvm.test.ts index dcf90cafd..dce4c9c85 100644 --- a/basics/account-data/anchor/tests/litesvm.test.ts +++ b/basics/account-data/anchor/tests/litesvm.test.ts @@ -17,11 +17,7 @@ describe("Account Data!", () => { payer = Keypair.generate(); addressInfoAccount = Keypair.generate(); - const programPath = new URL( - "../target/deploy/account_data_anchor_program.so", - // @ts-expect-error - import.meta.url, - ).pathname; + const programPath = new URL("../target/deploy/account_data_anchor_program.so", import.meta.url).pathname; litesvm.addProgramFromFile(programId, programPath); litesvm.airdrop(payer.publicKey, BigInt(100000000000)); diff --git a/basics/account-data/anchor/tests/test.ts b/basics/account-data/anchor/tests/test.ts index 5c2302595..63ee2403a 100644 --- a/basics/account-data/anchor/tests/test.ts +++ b/basics/account-data/anchor/tests/test.ts @@ -1,6 +1,6 @@ import * as anchor from "@anchor-lang/core"; import { Keypair } from "@solana/web3.js"; -import type { AccountDataAnchorProgram } from "../target/types/account_data_anchor_program"; +import type { AccountDataAnchorProgram } from "../target/types/account_data_anchor_program.ts"; describe("Account Data!", () => { const provider = anchor.AnchorProvider.env(); diff --git a/basics/account-data/anchor/tsconfig.json b/basics/account-data/anchor/tsconfig.json index 9927ea8d2..a9c21fe26 100644 --- a/basics/account-data/anchor/tsconfig.json +++ b/basics/account-data/anchor/tsconfig.json @@ -7,6 +7,8 @@ "target": "es2020", "esModuleInterop": true, "skipLibCheck": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/account-data/pinocchio/package.json b/basics/account-data/pinocchio/package.json index 6f43071ad..21fe30d52 100644 --- a/basics/account-data/pinocchio/package.json +++ b/basics/account-data/pinocchio/package.json @@ -17,6 +17,7 @@ "litesvm": "^0.3.3", "mocha": "^9.0.3", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^4.3.5", + "@types/node": "^20.9.0" } } diff --git a/basics/account-data/pinocchio/pnpm-lock.yaml b/basics/account-data/pinocchio/pnpm-lock.yaml index 1599428b6..d143c26fd 100644 --- a/basics/account-data/pinocchio/pnpm-lock.yaml +++ b/basics/account-data/pinocchio/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.2': - resolution: {integrity: sha512-uKXqKN9beGoMdBfcaTY1ecwz6ctxuJAcUlwE55938g0ZJ8lRxwAZqRz2AJ4pzpt5dHdTPMB863UZ0ESiFUcP7A==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -772,13 +775,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -787,7 +790,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.2': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -795,11 +798,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} diff --git a/basics/checking-accounts/anchor/tests/bankrun.test.ts b/basics/checking-accounts/anchor/tests/bankrun.test.ts index cb9839edf..01978d5b2 100644 --- a/basics/checking-accounts/anchor/tests/bankrun.test.ts +++ b/basics/checking-accounts/anchor/tests/bankrun.test.ts @@ -4,7 +4,7 @@ import { Keypair, PublicKey, SystemProgram, Transaction } from "@solana/web3.js" import { BankrunProvider } from "anchor-bankrun"; import { startAnchor } from "solana-bankrun"; import IDL from "../target/idl/checking_account_program.json" with { type: "json" }; -import type { CheckingAccountProgram } from "../target/types/checking_account_program"; +import type { CheckingAccountProgram } from "../target/types/checking_account_program.ts"; const PROGRAM_ID = new PublicKey(IDL.address); diff --git a/basics/checking-accounts/anchor/tests/test.ts b/basics/checking-accounts/anchor/tests/test.ts index 514bca172..949722ee0 100644 --- a/basics/checking-accounts/anchor/tests/test.ts +++ b/basics/checking-accounts/anchor/tests/test.ts @@ -1,6 +1,6 @@ import * as anchor from "@anchor-lang/core"; import { Keypair, SystemProgram, sendAndConfirmTransaction, Transaction } from "@solana/web3.js"; -import type { CheckingAccountProgram } from "../target/types/checking_account_program"; +import type { CheckingAccountProgram } from "../target/types/checking_account_program.ts"; describe("Anchor example", () => { const provider = anchor.AnchorProvider.env(); diff --git a/basics/checking-accounts/anchor/tsconfig.json b/basics/checking-accounts/anchor/tsconfig.json index 9927ea8d2..a9c21fe26 100644 --- a/basics/checking-accounts/anchor/tsconfig.json +++ b/basics/checking-accounts/anchor/tsconfig.json @@ -7,6 +7,8 @@ "target": "es2020", "esModuleInterop": true, "skipLibCheck": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/basics/checking-accounts/asm/package.json b/basics/checking-accounts/asm/package.json index 1de6c61d3..8cbfe6e59 100644 --- a/basics/checking-accounts/asm/package.json +++ b/basics/checking-accounts/asm/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "ts-mocha": "^10.0.0", "typescript": "^4.3.5", - "solana-bankrun": "^0.3.0" + "solana-bankrun": "^0.3.0", + "@types/node": "^20.9.0" } } diff --git a/basics/checking-accounts/asm/pnpm-lock.yaml b/basics/checking-accounts/asm/pnpm-lock.yaml index b70de678a..2e2942243 100644 --- a/basics/checking-accounts/asm/pnpm-lock.yaml +++ b/basics/checking-accounts/asm/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.2': - resolution: {integrity: sha512-uKXqKN9beGoMdBfcaTY1ecwz6ctxuJAcUlwE55938g0ZJ8lRxwAZqRz2AJ4pzpt5dHdTPMB863UZ0ESiFUcP7A==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -528,12 +531,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==} @@ -759,13 +764,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -774,7 +779,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.2': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -782,11 +787,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} diff --git a/basics/checking-accounts/pinocchio/package.json b/basics/checking-accounts/pinocchio/package.json index f7dd7c5d1..f48529045 100644 --- a/basics/checking-accounts/pinocchio/package.json +++ b/basics/checking-accounts/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.0.3", "ts-mocha": "^10.0.0", "typescript": "^4.3.5", - "solana-bankrun": "^0.3.0" + "solana-bankrun": "^0.3.0", + "@types/node": "^20.9.0" } } diff --git a/basics/checking-accounts/pinocchio/pnpm-lock.yaml b/basics/checking-accounts/pinocchio/pnpm-lock.yaml index 40c420431..f8a4579c9 100644 --- a/basics/checking-accounts/pinocchio/pnpm-lock.yaml +++ b/basics/checking-accounts/pinocchio/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@22.15.2': - resolution: {integrity: sha512-uKXqKN9beGoMdBfcaTY1ecwz6ctxuJAcUlwE55938g0ZJ8lRxwAZqRz2AJ4pzpt5dHdTPMB863UZ0ESiFUcP7A==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -761,13 +764,13 @@ snapshots: '@types/bn.js@5.1.6': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -776,7 +779,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@22.15.2': + '@types/node@20.19.43': dependencies: undici-types: 6.21.0 @@ -784,11 +787,11 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 22.15.2 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} diff --git a/basics/close-account/pinocchio/package.json b/basics/close-account/pinocchio/package.json index 1b568942a..0702f73bb 100644 --- a/basics/close-account/pinocchio/package.json +++ b/basics/close-account/pinocchio/package.json @@ -17,6 +17,7 @@ "mocha": "^9.2.2", "solana-bankrun": "^0.3.1", "ts-mocha": "^10.1.0", - "typescript": "^4.9.5" + "typescript": "^4.9.5", + "@types/node": "^20.9.0" } } diff --git a/basics/close-account/pinocchio/pnpm-lock.yaml b/basics/close-account/pinocchio/pnpm-lock.yaml index 4570230e0..3f020553e 100644 --- a/basics/close-account/pinocchio/pnpm-lock.yaml +++ b/basics/close-account/pinocchio/pnpm-lock.yaml @@ -21,6 +21,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.5.0 version: 4.5.0 @@ -98,8 +101,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.10.1': - resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@8.3.4': resolution: {integrity: sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==} @@ -525,12 +528,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==} @@ -614,8 +619,8 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - undici-types@7.16.0: - resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@5.0.10: resolution: {integrity: sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==} @@ -754,13 +759,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 24.10.1 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -769,19 +774,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.10.1': + '@types/node@20.19.43': dependencies: - undici-types: 7.16.0 + undici-types: 6.21.0 '@types/uuid@8.3.4': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 24.10.1 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1276,7 +1281,7 @@ snapshots: typescript@4.9.5: {} - undici-types@7.16.0: {} + undici-types@6.21.0: {} utf-8-validate@5.0.10: dependencies: diff --git a/basics/cross-program-invocation/pinocchio/package.json b/basics/cross-program-invocation/pinocchio/package.json index 2c3736c04..a494eff91 100644 --- a/basics/cross-program-invocation/pinocchio/package.json +++ b/basics/cross-program-invocation/pinocchio/package.json @@ -15,6 +15,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.1", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^4.3.5", + "@types/node": "^20.9.0" } } diff --git a/basics/cross-program-invocation/pinocchio/pnpm-lock.yaml b/basics/cross-program-invocation/pinocchio/pnpm-lock.yaml index c7749be7a..7035d98dd 100644 --- a/basics/cross-program-invocation/pinocchio/pnpm-lock.yaml +++ b/basics/cross-program-invocation/pinocchio/pnpm-lock.yaml @@ -18,6 +18,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -92,8 +95,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@25.9.1': - resolution: {integrity: sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@10.0.0': resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==} @@ -610,8 +613,8 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - undici-types@7.24.6: - resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@6.0.6: resolution: {integrity: sha512-q3l3P9UtEEiAHcsgsqTgf9PPjctrDWoIXW3NpOHFdRDbLvu4DLIcxHangJ4RLrWkBcKjmcs/6NkerI8T/rE4LA==} @@ -757,7 +760,7 @@ snapshots: '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -766,19 +769,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@25.9.1': + '@types/node@20.19.43': dependencies: - undici-types: 7.24.6 + undici-types: 6.21.0 '@types/uuid@10.0.0': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 25.9.1 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1273,7 +1276,7 @@ snapshots: typescript@4.9.5: {} - undici-types@7.24.6: {} + undici-types@6.21.0: {} utf-8-validate@6.0.6: dependencies: diff --git a/basics/repository-layout/pinocchio/package.json b/basics/repository-layout/pinocchio/package.json index 063fb5279..c6e65ec27 100644 --- a/basics/repository-layout/pinocchio/package.json +++ b/basics/repository-layout/pinocchio/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^4.3.5", + "@types/node": "^20.9.0" } } diff --git a/basics/repository-layout/pinocchio/pnpm-lock.yaml b/basics/repository-layout/pinocchio/pnpm-lock.yaml index 4b2f4d88c..fc057aa92 100644 --- a/basics/repository-layout/pinocchio/pnpm-lock.yaml +++ b/basics/repository-layout/pinocchio/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@25.9.1': - resolution: {integrity: sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@10.0.0': resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==} @@ -531,12 +534,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==} @@ -620,8 +625,8 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - undici-types@7.24.6: - resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@6.0.6: resolution: {integrity: sha512-q3l3P9UtEEiAHcsgsqTgf9PPjctrDWoIXW3NpOHFdRDbLvu4DLIcxHangJ4RLrWkBcKjmcs/6NkerI8T/rE4LA==} @@ -765,13 +770,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 25.9.1 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -780,19 +785,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@25.9.1': + '@types/node@20.19.43': dependencies: - undici-types: 7.24.6 + undici-types: 6.21.0 '@types/uuid@10.0.0': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 25.9.1 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1289,7 +1294,7 @@ snapshots: typescript@4.9.5: {} - undici-types@7.24.6: {} + undici-types@6.21.0: {} utf-8-validate@6.0.6: dependencies: diff --git a/tokens/create-token/anchor/package.json b/tokens/create-token/anchor/package.json index 83ce55aa6..1a4d6fe99 100644 --- a/tokens/create-token/anchor/package.json +++ b/tokens/create-token/anchor/package.json @@ -1,7 +1,8 @@ { "type": "module", "dependencies": { - "@anchor-lang/core": "1.0.0-rc.5" + "@anchor-lang/core": "1.0.0-rc.5", + "@solana/web3.js": "^1.98.4" }, "scripts": { "postinstall": "zx prepare.mjs" diff --git a/tokens/create-token/anchor/pnpm-lock.yaml b/tokens/create-token/anchor/pnpm-lock.yaml index c7feeb618..0485e73df 100644 --- a/tokens/create-token/anchor/pnpm-lock.yaml +++ b/tokens/create-token/anchor/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@anchor-lang/core': specifier: 1.0.0-rc.5 version: 1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -689,6 +692,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: diff --git a/tokens/nft-minter/anchor/package.json b/tokens/nft-minter/anchor/package.json index da37555ba..70843c3c7 100644 --- a/tokens/nft-minter/anchor/package.json +++ b/tokens/nft-minter/anchor/package.json @@ -17,5 +17,8 @@ "typescript": "^5.3.3", "zx": "^8.1.4", "@types/node": "^20.9.0" + }, + "dependencies": { + "@solana/web3.js": "^1.98.4" } } diff --git a/tokens/nft-minter/anchor/pnpm-lock.yaml b/tokens/nft-minter/anchor/pnpm-lock.yaml index acf347834..cff2c8040 100644 --- a/tokens/nft-minter/anchor/pnpm-lock.yaml +++ b/tokens/nft-minter/anchor/pnpm-lock.yaml @@ -7,6 +7,10 @@ settings: importers: .: + dependencies: + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@anchor-lang/core': specifier: 1.0.0-rc.5 @@ -764,6 +768,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: diff --git a/tokens/nft-operations/anchor/package.json b/tokens/nft-operations/anchor/package.json index c28f1a8ba..6b05c38d3 100644 --- a/tokens/nft-operations/anchor/package.json +++ b/tokens/nft-operations/anchor/package.json @@ -11,7 +11,8 @@ "@metaplex-foundation/umi": "^0.9.0", "@solana/spl-token": "^0.4.6", "axios": "^1.6.7", - "node-fetch": "^3.3.2" + "node-fetch": "^3.3.2", + "@solana/web3.js": "^1.98.4" }, "devDependencies": { "@types/bn.js": "^5.1.0", diff --git a/tokens/nft-operations/anchor/pnpm-lock.yaml b/tokens/nft-operations/anchor/pnpm-lock.yaml index 2cbbc752c..3a3200b5a 100644 --- a/tokens/nft-operations/anchor/pnpm-lock.yaml +++ b/tokens/nft-operations/anchor/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: '@solana/spl-token': specifier: ^0.4.6 version: 0.4.8(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) axios: specifier: ^1.6.7 version: 1.7.2 @@ -41,7 +44,7 @@ importers: version: 20.14.10 anchor-bankrun: specifier: ^0.4.0 - version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + version: 0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) chai: specifier: ^4.3.4 version: 4.4.1 @@ -53,7 +56,7 @@ importers: version: 2.8.8 solana-bankrun: specifier: ^0.3.0 - version: 0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + version: 0.3.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ts-mocha: specifier: ^10.0.0 version: 10.0.0(mocha@9.2.2) @@ -80,10 +83,6 @@ packages: resolution: {integrity: sha512-kLx7oLGVCRhtWeS9PQWGkzZTDpNrGkiJQBrx1rAhEiFemL4YumhUuEbXaaEVuLBt7qZcT1eBPN4LQxYGj3QWyw==} engines: {node: '>=10'} - '@babel/runtime@7.24.7': - resolution: {integrity: sha512-UwgBRMjJP+xv857DCngvqXI3Iq6J4v0wXmwc6sapg+zyhbwmQX67LUEFrkK5tbyJ30jGuG3ZvWpBiB9LCy1kWw==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.28.4': resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} @@ -133,17 +132,10 @@ packages: '@metaplex-foundation/umi@0.9.2': resolution: {integrity: sha512-9i4Acm4pruQfJcpRrc2EauPBwkfDN0I9QTvJyZocIlKgoZwD6A6wH0PViH1AjOVG5CQCd1YI3tJd5XjYE1ElBw==} - '@noble/curves@1.4.2': - resolution: {integrity: sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==} - '@noble/curves@1.9.7': resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.4.0': - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} @@ -258,15 +250,9 @@ packages: resolution: {integrity: sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==} engines: {node: '>=16'} - '@solana/web3.js@1.95.0': - resolution: {integrity: sha512-iHwJ/HcWrF9qbnI1ctwI1UXHJ0vZXRpnt+lI5UcQIk8WvJNuQ5gV06icxzM6B7ojUES85Q1/FM4jZ49UQ8yZZQ==} - '@solana/web3.js@1.98.4': resolution: {integrity: sha512-vv9lfnvjUsRiq//+j5pBdXig0IQdtzA0BRZ3bXEP4KaIyF1CcaydWqgyzQgfZMNIsWNWmG+AUHwPy4AHOD6gpw==} - '@swc/helpers@0.5.11': - resolution: {integrity: sha512-YNlnKRWF2sVojTpIyzwou9XoTNbzbzONwRhOoniEioF1AtaitTvVZblaQRrAzChWQ1bLYyYSWzM18y4WwgzJ+A==} - '@swc/helpers@0.5.17': resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==} @@ -306,20 +292,9 @@ packages: '@types/ws@8.18.1': resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==} - '@types/ws@8.5.10': - resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} - '@ungap/promise-all-settled@1.1.2': resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==} - JSONStream@1.3.5: - resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} - hasBin: true - - agentkeepalive@4.5.0: - resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} - engines: {node: '>= 8.0.0'} - agentkeepalive@4.6.0: resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} engines: {node: '>= 8.0.0'} @@ -387,9 +362,6 @@ packages: bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - bn.js@5.2.1: - resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} - bn.js@5.2.2: resolution: {integrity: sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==} @@ -419,10 +391,6 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bufferutil@4.0.8: - resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} - engines: {node: '>=6.14.2'} - bufferutil@4.0.9: resolution: {integrity: sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==} engines: {node: '>=6.14.2'} @@ -675,11 +643,6 @@ packages: peerDependencies: ws: '*' - jayson@4.1.1: - resolution: {integrity: sha512-5ZWm4Q/0DHPyeMfAsrwViwUS2DMVsQgWh8bEEIVTkfb3DzHZ2L3G5WUnF+AKmGjjM9r1uAv73SaqC1/U4RL45w==} - engines: {node: '>=8'} - hasBin: true - jayson@4.2.0: resolution: {integrity: sha512-VfJ9t1YLwacIubLhONk0KFeosUBwstRWQ0IRT1KDjEjnVnSOVHC3uwugyV7L0c7R9lpVyrUGT2XWiBA1UTtpyg==} engines: {node: '>=8'} @@ -696,10 +659,6 @@ packages: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true - jsonparse@1.3.1: - resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} - engines: {'0': node >= 0.2.0} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -769,10 +728,6 @@ packages: resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - node-gyp-build@4.8.1: - resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==} - hasBin: true - node-gyp-build@4.8.4: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true @@ -825,16 +780,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - rpc-websockets@9.0.2: - resolution: {integrity: sha512-YzggvfItxMY3Lwuax5rC18inhbjJv9Py7JXRHxTIi94JOLrqBsSsUUc5bbl5W6c11tXhdfpDPK0KzBhoGe8jjw==} - rpc-websockets@9.2.0: resolution: {integrity: sha512-DS/XHdPxplQTtNRKiBCRWGBJfjOk56W7fyFUpiYi9fSTWTzoEMbUkn3J4gB0IMniIEVeAGR1/rzFQogzD5MxvQ==} @@ -926,9 +875,6 @@ packages: text-encoding-utf-8@1.0.2: resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} - through@2.3.8: - resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -954,9 +900,6 @@ packages: tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} - tslib@2.6.3: - resolution: {integrity: sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==} - tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -978,6 +921,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true web-streams-polyfill@3.3.3: @@ -1017,18 +961,6 @@ packages: utf-8-validate: optional: true - ws@8.18.0: - resolution: {integrity: sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.18.3: resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==} engines: {node: '>=10.0.0'} @@ -1101,10 +1033,6 @@ snapshots: '@anchor-lang/errors@1.0.0-rc.5': {} - '@babel/runtime@7.24.7': - dependencies: - regenerator-runtime: 0.14.1 - '@babel/runtime@7.28.4': {} '@coral-xyz/anchor-errors@0.31.1': {} @@ -1175,27 +1103,22 @@ snapshots: '@metaplex-foundation/umi-public-keys': 0.8.9 '@metaplex-foundation/umi-serializers': 0.9.0 - '@noble/curves@1.4.2': - dependencies: - '@noble/hashes': 1.4.0 - '@noble/curves@1.9.7': dependencies: '@noble/hashes': 1.8.0 - '@noble/hashes@1.4.0': {} - '@noble/hashes@1.8.0': {} - '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': + '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.95.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bigint-buffer: 1.1.5 bignumber.js: 9.1.2 transitivePeerDependencies: - bufferutil - encoding + - typescript - utf-8-validate '@solana/buffer-layout@4.0.1': @@ -1335,7 +1258,7 @@ snapshots: '@solana/spl-token@0.4.8(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) '@solana/spl-token-group': 0.0.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3) '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) @@ -1351,28 +1274,6 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/web3.js@1.95.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.24.7 - '@noble/curves': 1.4.2 - '@noble/hashes': 1.4.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.5.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 9.0.2 - superstruct: 2.0.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.28.4 @@ -1396,10 +1297,6 @@ snapshots: - typescript - utf-8-validate - '@swc/helpers@0.5.11': - dependencies: - tslib: 2.6.3 - '@swc/helpers@0.5.17': dependencies: tslib: 2.8.1 @@ -1446,30 +1343,17 @@ snapshots: dependencies: '@types/node': 20.14.10 - '@types/ws@8.5.10': - dependencies: - '@types/node': 20.14.10 - '@ungap/promise-all-settled@1.1.2': {} - JSONStream@1.3.5: - dependencies: - jsonparse: 1.3.1 - through: 2.3.8 - - agentkeepalive@4.5.0: - dependencies: - humanize-ms: 1.2.1 - agentkeepalive@4.6.0: dependencies: humanize-ms: 1.2.1 - anchor-bankrun@0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)): + anchor-bankrun@0.4.0(@coral-xyz/anchor@0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(solana-bankrun@0.3.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)): dependencies: '@coral-xyz/anchor': 0.32.1(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) - solana-bankrun: 0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + solana-bankrun: 0.3.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) ansi-colors@4.1.1: {} @@ -1520,13 +1404,11 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bn.js@5.2.1: {} - bn.js@5.2.2: {} 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 @@ -1554,11 +1436,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bufferutil@4.0.8: - dependencies: - node-gyp-build: 4.8.1 - optional: true - bufferutil@4.0.9: dependencies: node-gyp-build: 4.8.4 @@ -1770,24 +1647,6 @@ snapshots: dependencies: ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) - jayson@4.1.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): - dependencies: - '@types/connect': 3.4.38 - '@types/node': 12.20.55 - '@types/ws': 7.4.7 - JSONStream: 1.3.5 - commander: 2.20.3 - delay: 5.0.0 - es6-promisify: 5.0.0 - eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - json-stringify-safe: 5.0.1 - uuid: 8.3.2 - ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - utf-8-validate - jayson@4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@types/connect': 3.4.38 @@ -1817,8 +1676,6 @@ snapshots: minimist: 1.2.8 optional: true - jsonparse@1.3.1: {} - locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -1899,9 +1756,6 @@ snapshots: fetch-blob: 3.2.0 formdata-polyfill: 4.0.10 - node-gyp-build@4.8.1: - optional: true - node-gyp-build@4.8.4: optional: true @@ -1941,23 +1795,8 @@ snapshots: dependencies: picomatch: 2.3.1 - regenerator-runtime@0.14.1: {} - require-directory@2.1.1: {} - rpc-websockets@9.0.2: - dependencies: - '@swc/helpers': 0.5.11 - '@types/uuid': 8.3.4 - '@types/ws': 8.5.10 - buffer: 6.0.3 - eventemitter3: 5.0.1 - uuid: 8.3.2 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - rpc-websockets@9.2.0: dependencies: '@swc/helpers': 0.5.17 @@ -1992,9 +1831,9 @@ snapshots: solana-bankrun-linux-x64-musl@0.3.0: optional: true - solana-bankrun@0.3.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): + solana-bankrun@0.3.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10): dependencies: - '@solana/web3.js': 1.95.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bs58: 4.0.1 optionalDependencies: solana-bankrun-darwin-arm64: 0.3.0 @@ -2005,6 +1844,7 @@ snapshots: transitivePeerDependencies: - bufferutil - encoding + - typescript - utf-8-validate source-map-support@0.5.21: @@ -2049,8 +1889,6 @@ snapshots: text-encoding-utf-8@1.0.2: {} - through@2.3.8: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -2085,8 +1923,6 @@ snapshots: strip-bom: 3.0.0 optional: true - tslib@2.6.3: {} - tslib@2.8.1: {} type-detect@4.0.8: {} @@ -2097,7 +1933,7 @@ snapshots: utf-8-validate@5.0.10: dependencies: - node-gyp-build: 4.8.1 + node-gyp-build: 4.8.4 optional: true uuid@8.3.2: {} @@ -2130,11 +1966,6 @@ snapshots: bufferutil: 4.0.9 utf-8-validate: 5.0.10 - ws@8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - ws@8.18.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): optionalDependencies: bufferutil: 4.0.9 diff --git a/tokens/pda-mint-authority/anchor/package.json b/tokens/pda-mint-authority/anchor/package.json index 2c1d63846..58c935d73 100644 --- a/tokens/pda-mint-authority/anchor/package.json +++ b/tokens/pda-mint-authority/anchor/package.json @@ -2,7 +2,8 @@ "type": "module", "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", - "@solana/spl-token": "^0.3.8" + "@solana/spl-token": "^0.3.8", + "@solana/web3.js": "^1.98.4" }, "scripts": { "postinstall": "zx prepare.mjs" diff --git a/tokens/pda-mint-authority/anchor/pnpm-lock.yaml b/tokens/pda-mint-authority/anchor/pnpm-lock.yaml index 5efbc1dfb..d9c884567 100644 --- a/tokens/pda-mint-authority/anchor/pnpm-lock.yaml +++ b/tokens/pda-mint-authority/anchor/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@solana/spl-token': specifier: ^0.3.8 version: 0.3.11(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -765,6 +768,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: diff --git a/tokens/spl-token-minter/anchor/package.json b/tokens/spl-token-minter/anchor/package.json index 2c1d63846..58c935d73 100644 --- a/tokens/spl-token-minter/anchor/package.json +++ b/tokens/spl-token-minter/anchor/package.json @@ -2,7 +2,8 @@ "type": "module", "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", - "@solana/spl-token": "^0.3.8" + "@solana/spl-token": "^0.3.8", + "@solana/web3.js": "^1.98.4" }, "scripts": { "postinstall": "zx prepare.mjs" diff --git a/tokens/spl-token-minter/anchor/pnpm-lock.yaml b/tokens/spl-token-minter/anchor/pnpm-lock.yaml index 5efbc1dfb..d9c884567 100644 --- a/tokens/spl-token-minter/anchor/pnpm-lock.yaml +++ b/tokens/spl-token-minter/anchor/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@solana/spl-token': specifier: ^0.3.8 version: 0.3.11(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -765,6 +768,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: diff --git a/tokens/token-2022/cpi-guard/anchor/package.json b/tokens/token-2022/cpi-guard/anchor/package.json index 6d0aa3c41..0baf53de2 100644 --- a/tokens/token-2022/cpi-guard/anchor/package.json +++ b/tokens/token-2022/cpi-guard/anchor/package.json @@ -6,7 +6,8 @@ }, "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", - "@solana/spl-token": "^0.4.6" + "@solana/spl-token": "^0.4.6", + "@solana/web3.js": "^1.98.4" }, "devDependencies": { "@types/bn.js": "^5.1.0", diff --git a/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml b/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml index 400596471..e0f90eaf4 100644 --- a/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/cpi-guard/anchor/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@solana/spl-token': specifier: ^0.4.6 version: 0.4.14(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -776,6 +779,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: diff --git a/tokens/token-2022/memo-transfer/anchor/package.json b/tokens/token-2022/memo-transfer/anchor/package.json index 566bdd856..b36cb930f 100644 --- a/tokens/token-2022/memo-transfer/anchor/package.json +++ b/tokens/token-2022/memo-transfer/anchor/package.json @@ -7,7 +7,8 @@ "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", "@solana/spl-memo": "^0.2.5", - "@solana/spl-token": "^0.4.6" + "@solana/spl-token": "^0.4.6", + "@solana/web3.js": "^1.98.4" }, "devDependencies": { "@types/bn.js": "^5.1.0", diff --git a/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml b/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml index 467a5a61d..2d65adb1b 100644 --- a/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/memo-transfer/anchor/pnpm-lock.yaml @@ -10,13 +10,16 @@ importers: dependencies: '@anchor-lang/core': specifier: 1.0.0-rc.5 - version: 1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + version: 1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) '@solana/spl-memo': specifier: ^0.2.5 - version: 0.2.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) + version: 0.2.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) '@solana/spl-token': specifier: ^0.4.6 - version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10) + version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -62,25 +65,14 @@ packages: resolution: {integrity: sha512-kLx7oLGVCRhtWeS9PQWGkzZTDpNrGkiJQBrx1rAhEiFemL4YumhUuEbXaaEVuLBt7qZcT1eBPN4LQxYGj3QWyw==} engines: {node: '>=10'} - '@babel/runtime@7.24.5': - resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.28.4': resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} - '@noble/curves@1.4.0': - resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==} - '@noble/curves@1.9.7': resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.4.0': - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} @@ -164,9 +156,6 @@ packages: resolution: {integrity: sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==} engines: {node: '>=16'} - '@solana/web3.js@1.91.8': - resolution: {integrity: sha512-USa6OS1jbh8zOapRJ/CBZImZ8Xb7AJjROZl5adql9TpOoBN9BUzyyouS5oPuZHft7S7eB8uJPuXWYjMi6BHgOw==} - '@solana/web3.js@1.98.4': resolution: {integrity: sha512-vv9lfnvjUsRiq//+j5pBdXig0IQdtzA0BRZ3bXEP4KaIyF1CcaydWqgyzQgfZMNIsWNWmG+AUHwPy4AHOD6gpw==} @@ -206,14 +195,6 @@ packages: '@ungap/promise-all-settled@1.1.2': resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==} - JSONStream@1.3.5: - resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} - hasBin: true - - agentkeepalive@4.5.0: - resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} - engines: {node: '>= 8.0.0'} - agentkeepalive@4.6.0: resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} engines: {node: '>= 8.0.0'} @@ -267,9 +248,6 @@ packages: bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - bn.js@5.2.1: - resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} - bn.js@5.2.2: resolution: {integrity: sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==} @@ -299,10 +277,6 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bufferutil@4.0.8: - resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} - engines: {node: '>=6.14.2'} - bufferutil@4.0.9: resolution: {integrity: sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==} engines: {node: '>=6.14.2'} @@ -520,11 +494,6 @@ packages: peerDependencies: ws: '*' - jayson@4.1.0: - resolution: {integrity: sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==} - engines: {node: '>=8'} - hasBin: true - jayson@4.2.0: resolution: {integrity: sha512-VfJ9t1YLwacIubLhONk0KFeosUBwstRWQ0IRT1KDjEjnVnSOVHC3uwugyV7L0c7R9lpVyrUGT2XWiBA1UTtpyg==} engines: {node: '>=8'} @@ -541,10 +510,6 @@ packages: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true - jsonparse@1.3.1: - resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} - engines: {'0': node >= 0.2.0} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -598,10 +563,6 @@ packages: encoding: optional: true - node-gyp-build@4.8.1: - resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==} - hasBin: true - node-gyp-build@4.8.4: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true @@ -651,16 +612,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - rpc-websockets@7.11.0: - resolution: {integrity: sha512-IkLYjayPv6Io8C/TdCL5gwgzd1hFz2vmBZrjMw/SPEXo51ETOhnzgS4Qy5GWi2JQN7HKHa66J3+2mv0fgNh/7w==} - rpc-websockets@9.2.0: resolution: {integrity: sha512-DS/XHdPxplQTtNRKiBCRWGBJfjOk56W7fyFUpiYi9fSTWTzoEMbUkn3J4gB0IMniIEVeAGR1/rzFQogzD5MxvQ==} @@ -699,9 +654,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - superstruct@0.14.2: - resolution: {integrity: sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==} - superstruct@0.15.5: resolution: {integrity: sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==} @@ -720,9 +672,6 @@ packages: text-encoding-utf-8@1.0.2: resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} - through@2.3.8: - resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -769,6 +718,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: @@ -804,30 +754,6 @@ packages: utf-8-validate: optional: true - ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - ws@8.17.0: - resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.18.3: resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==} engines: {node: '>=10.0.0'} @@ -866,18 +792,18 @@ packages: snapshots: - '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))': + '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 buffer-layout: 1.2.2 - '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: - '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) + '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) '@anchor-lang/errors': 1.0.0-rc.5 '@noble/hashes': 1.8.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 @@ -895,33 +821,24 @@ snapshots: '@anchor-lang/errors@1.0.0-rc.5': {} - '@babel/runtime@7.24.5': - dependencies: - regenerator-runtime: 0.14.1 - '@babel/runtime@7.28.4': {} - '@noble/curves@1.4.0': - dependencies: - '@noble/hashes': 1.4.0 - '@noble/curves@1.9.7': dependencies: '@noble/hashes': 1.8.0 - '@noble/hashes@1.4.0': {} - '@noble/hashes@1.8.0': {} - '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bigint-buffer: 1.1.5 bignumber.js: 9.1.2 transitivePeerDependencies: - bufferutil - encoding + - typescript - utf-8-validate '@solana/buffer-layout@4.0.1': @@ -987,68 +904,47 @@ snapshots: '@solana/codecs-core': 2.0.0-preview.2 '@solana/codecs-numbers': 2.0.0-preview.2 - '@solana/spl-memo@0.2.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))': + '@solana/spl-memo@0.2.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer: 6.0.3 - '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10)': + '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer: 6.0.3 transitivePeerDependencies: - bufferutil - encoding - fastestsmallesttextencoderdecoder + - typescript - utf-8-validate '@solana/spl-type-length-value@0.1.0': dependencies: buffer: 6.0.3 - '@solana/web3.js@1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.24.5 - '@noble/curves': 1.4.0 - '@noble/hashes': 1.4.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.5.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 7.11.0 - superstruct: 0.14.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.28.4 '@noble/curves': 1.9.7 @@ -1061,7 +957,7 @@ snapshots: bs58: 4.0.1 buffer: 6.0.3 fast-stable-stringify: 1.0.0 - jayson: 4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + jayson: 4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) node-fetch: 2.7.0 rpc-websockets: 9.2.0 superstruct: 2.0.2 @@ -1108,15 +1004,6 @@ snapshots: '@ungap/promise-all-settled@1.1.2': {} - JSONStream@1.3.5: - dependencies: - jsonparse: 1.3.1 - through: 2.3.8 - - agentkeepalive@4.5.0: - dependencies: - humanize-ms: 1.2.1 - agentkeepalive@4.6.0: dependencies: humanize-ms: 1.2.1 @@ -1160,13 +1047,11 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bn.js@5.2.1: {} - bn.js@5.2.2: {} 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 @@ -1194,11 +1079,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bufferutil@4.0.8: - dependencies: - node-gyp-build: 4.8.1 - optional: true - bufferutil@4.0.9: dependencies: node-gyp-build: 4.8.4 @@ -1381,33 +1261,11 @@ snapshots: isexe@2.0.0: {} - isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)): + isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)): dependencies: - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - isomorphic-ws@4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)): - dependencies: - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - jayson@4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - dependencies: - '@types/connect': 3.4.38 - '@types/node': 12.20.55 - '@types/ws': 7.4.7 - JSONStream: 1.3.5 - commander: 2.20.3 - delay: 5.0.0 - es6-promisify: 5.0.0 - eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - json-stringify-safe: 5.0.1 - uuid: 8.3.2 - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - utf-8-validate + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) - jayson@4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): + jayson@4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@types/connect': 3.4.38 '@types/node': 12.20.55 @@ -1416,11 +1274,11 @@ snapshots: delay: 5.0.0 es6-promisify: 5.0.0 eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)) json-stringify-safe: 5.0.1 stream-json: 1.9.1 uuid: 8.3.2 - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1436,8 +1294,6 @@ snapshots: minimist: 1.2.8 optional: true - jsonparse@1.3.1: {} - locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -1504,9 +1360,6 @@ snapshots: dependencies: whatwg-url: 5.0.0 - node-gyp-build@4.8.1: - optional: true - node-gyp-build@4.8.4: optional: true @@ -1544,19 +1397,8 @@ snapshots: dependencies: picomatch: 2.3.1 - regenerator-runtime@0.14.1: {} - require-directory@2.1.1: {} - rpc-websockets@7.11.0: - dependencies: - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - rpc-websockets@9.2.0: dependencies: '@swc/helpers': 0.5.17 @@ -1604,8 +1446,6 @@ snapshots: strip-json-comments@3.1.1: {} - superstruct@0.14.2: {} - superstruct@0.15.5: {} superstruct@2.0.2: {} @@ -1620,8 +1460,6 @@ snapshots: text-encoding-utf-8@1.0.2: {} - through@2.3.8: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -1666,7 +1504,7 @@ snapshots: utf-8-validate@5.0.10: dependencies: - node-gyp-build: 4.8.1 + node-gyp-build: 4.8.4 optional: true uuid@8.3.2: {} @@ -1692,19 +1530,9 @@ snapshots: wrappy@1.0.2: {} - ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10): + ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10): optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 + bufferutil: 4.0.9 utf-8-validate: 5.0.10 ws@8.18.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): diff --git a/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json index 9abe03fa5..019273853 100644 --- a/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json @@ -1,13 +1,13 @@ { - "extends": "../tsconfig.json", "compilerOptions": { "module": "commonjs", + "moduleResolution": "node", "types": ["jest", "node"], - "typeRoots": ["./node_modules/@types"], - "lib": ["es2015"], - "target": "es6", + "lib": ["es2020"], + "target": "es2020", "resolveJsonModule": true, "allowSyntheticDefaultImports": true, - "esModuleInterop": true + "esModuleInterop": true, + "skipLibCheck": true } } diff --git a/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json b/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json index e992f4597..52b709ae5 100644 --- a/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json +++ b/tokens/token-2022/transfer-hook/transfer-cost/anchor/package.json @@ -6,7 +6,8 @@ }, "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", - "@solana/spl-token": "^0.4.0" + "@solana/spl-token": "^0.4.0", + "@solana/web3.js": "^1.98.4" }, "devDependencies": { "@types/bn.js": "^5.1.0", diff --git a/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml index 01ad5caed..40abe007c 100644 --- a/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/transfer-cost/anchor/pnpm-lock.yaml @@ -10,10 +10,13 @@ importers: dependencies: '@anchor-lang/core': specifier: 1.0.0-rc.5 - version: 1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + version: 1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) '@solana/spl-token': specifier: ^0.4.0 - version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10) + version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -59,25 +62,14 @@ packages: resolution: {integrity: sha512-kLx7oLGVCRhtWeS9PQWGkzZTDpNrGkiJQBrx1rAhEiFemL4YumhUuEbXaaEVuLBt7qZcT1eBPN4LQxYGj3QWyw==} engines: {node: '>=10'} - '@babel/runtime@7.24.5': - resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.28.4': resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} - '@noble/curves@1.4.0': - resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==} - '@noble/curves@1.9.7': resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.4.0': - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} @@ -155,9 +147,6 @@ packages: resolution: {integrity: sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==} engines: {node: '>=16'} - '@solana/web3.js@1.91.8': - resolution: {integrity: sha512-USa6OS1jbh8zOapRJ/CBZImZ8Xb7AJjROZl5adql9TpOoBN9BUzyyouS5oPuZHft7S7eB8uJPuXWYjMi6BHgOw==} - '@solana/web3.js@1.98.4': resolution: {integrity: sha512-vv9lfnvjUsRiq//+j5pBdXig0IQdtzA0BRZ3bXEP4KaIyF1CcaydWqgyzQgfZMNIsWNWmG+AUHwPy4AHOD6gpw==} @@ -197,14 +186,6 @@ packages: '@ungap/promise-all-settled@1.1.2': resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==} - JSONStream@1.3.5: - resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} - hasBin: true - - agentkeepalive@4.5.0: - resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} - engines: {node: '>= 8.0.0'} - agentkeepalive@4.6.0: resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} engines: {node: '>= 8.0.0'} @@ -258,9 +239,6 @@ packages: bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - bn.js@5.2.1: - resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} - bn.js@5.2.2: resolution: {integrity: sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==} @@ -290,10 +268,6 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bufferutil@4.0.8: - resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} - engines: {node: '>=6.14.2'} - bufferutil@4.0.9: resolution: {integrity: sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==} engines: {node: '>=6.14.2'} @@ -511,11 +485,6 @@ packages: peerDependencies: ws: '*' - jayson@4.1.0: - resolution: {integrity: sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==} - engines: {node: '>=8'} - hasBin: true - jayson@4.2.0: resolution: {integrity: sha512-VfJ9t1YLwacIubLhONk0KFeosUBwstRWQ0IRT1KDjEjnVnSOVHC3uwugyV7L0c7R9lpVyrUGT2XWiBA1UTtpyg==} engines: {node: '>=8'} @@ -532,10 +501,6 @@ packages: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true - jsonparse@1.3.1: - resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} - engines: {'0': node >= 0.2.0} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -589,10 +554,6 @@ packages: encoding: optional: true - node-gyp-build@4.8.1: - resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==} - hasBin: true - node-gyp-build@4.8.4: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true @@ -642,16 +603,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - rpc-websockets@7.11.0: - resolution: {integrity: sha512-IkLYjayPv6Io8C/TdCL5gwgzd1hFz2vmBZrjMw/SPEXo51ETOhnzgS4Qy5GWi2JQN7HKHa66J3+2mv0fgNh/7w==} - rpc-websockets@9.2.0: resolution: {integrity: sha512-DS/XHdPxplQTtNRKiBCRWGBJfjOk56W7fyFUpiYi9fSTWTzoEMbUkn3J4gB0IMniIEVeAGR1/rzFQogzD5MxvQ==} @@ -690,9 +645,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - superstruct@0.14.2: - resolution: {integrity: sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==} - superstruct@0.15.5: resolution: {integrity: sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==} @@ -711,9 +663,6 @@ packages: text-encoding-utf-8@1.0.2: resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} - through@2.3.8: - resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -760,6 +709,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: @@ -795,30 +745,6 @@ packages: utf-8-validate: optional: true - ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - ws@8.17.0: - resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.18.3: resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==} engines: {node: '>=10.0.0'} @@ -857,18 +783,18 @@ packages: snapshots: - '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))': + '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 buffer-layout: 1.2.2 - '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: - '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) + '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) '@anchor-lang/errors': 1.0.0-rc.5 '@noble/hashes': 1.8.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 @@ -886,33 +812,24 @@ snapshots: '@anchor-lang/errors@1.0.0-rc.5': {} - '@babel/runtime@7.24.5': - dependencies: - regenerator-runtime: 0.14.1 - '@babel/runtime@7.28.4': {} - '@noble/curves@1.4.0': - dependencies: - '@noble/hashes': 1.4.0 - '@noble/curves@1.9.7': dependencies: '@noble/hashes': 1.8.0 - '@noble/hashes@1.4.0': {} - '@noble/hashes@1.8.0': {} - '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bigint-buffer: 1.1.5 bignumber.js: 9.1.2 transitivePeerDependencies: - bufferutil - encoding + - typescript - utf-8-validate '@solana/buffer-layout@4.0.1': @@ -978,63 +895,42 @@ snapshots: '@solana/codecs-core': 2.0.0-preview.2 '@solana/codecs-numbers': 2.0.0-preview.2 - '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10)': + '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer: 6.0.3 transitivePeerDependencies: - bufferutil - encoding - fastestsmallesttextencoderdecoder + - typescript - utf-8-validate '@solana/spl-type-length-value@0.1.0': dependencies: buffer: 6.0.3 - '@solana/web3.js@1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.24.5 - '@noble/curves': 1.4.0 - '@noble/hashes': 1.4.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.5.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 7.11.0 - superstruct: 0.14.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.28.4 '@noble/curves': 1.9.7 @@ -1047,7 +943,7 @@ snapshots: bs58: 4.0.1 buffer: 6.0.3 fast-stable-stringify: 1.0.0 - jayson: 4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + jayson: 4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) node-fetch: 2.7.0 rpc-websockets: 9.2.0 superstruct: 2.0.2 @@ -1094,15 +990,6 @@ snapshots: '@ungap/promise-all-settled@1.1.2': {} - JSONStream@1.3.5: - dependencies: - jsonparse: 1.3.1 - through: 2.3.8 - - agentkeepalive@4.5.0: - dependencies: - humanize-ms: 1.2.1 - agentkeepalive@4.6.0: dependencies: humanize-ms: 1.2.1 @@ -1146,13 +1033,11 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bn.js@5.2.1: {} - bn.js@5.2.2: {} 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 @@ -1180,11 +1065,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bufferutil@4.0.8: - dependencies: - node-gyp-build: 4.8.1 - optional: true - bufferutil@4.0.9: dependencies: node-gyp-build: 4.8.4 @@ -1367,33 +1247,11 @@ snapshots: isexe@2.0.0: {} - isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)): + isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)): dependencies: - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - isomorphic-ws@4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)): - dependencies: - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - jayson@4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - dependencies: - '@types/connect': 3.4.38 - '@types/node': 12.20.55 - '@types/ws': 7.4.7 - JSONStream: 1.3.5 - commander: 2.20.3 - delay: 5.0.0 - es6-promisify: 5.0.0 - eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - json-stringify-safe: 5.0.1 - uuid: 8.3.2 - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - utf-8-validate + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) - jayson@4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): + jayson@4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@types/connect': 3.4.38 '@types/node': 12.20.55 @@ -1402,11 +1260,11 @@ snapshots: delay: 5.0.0 es6-promisify: 5.0.0 eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)) json-stringify-safe: 5.0.1 stream-json: 1.9.1 uuid: 8.3.2 - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1422,8 +1280,6 @@ snapshots: minimist: 1.2.8 optional: true - jsonparse@1.3.1: {} - locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -1490,9 +1346,6 @@ snapshots: dependencies: whatwg-url: 5.0.0 - node-gyp-build@4.8.1: - optional: true - node-gyp-build@4.8.4: optional: true @@ -1530,19 +1383,8 @@ snapshots: dependencies: picomatch: 2.3.1 - regenerator-runtime@0.14.1: {} - require-directory@2.1.1: {} - rpc-websockets@7.11.0: - dependencies: - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - rpc-websockets@9.2.0: dependencies: '@swc/helpers': 0.5.17 @@ -1590,8 +1432,6 @@ snapshots: strip-json-comments@3.1.1: {} - superstruct@0.14.2: {} - superstruct@0.15.5: {} superstruct@2.0.2: {} @@ -1606,8 +1446,6 @@ snapshots: text-encoding-utf-8@1.0.2: {} - through@2.3.8: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -1652,7 +1490,7 @@ snapshots: utf-8-validate@5.0.10: dependencies: - node-gyp-build: 4.8.1 + node-gyp-build: 4.8.4 optional: true uuid@8.3.2: {} @@ -1678,19 +1516,9 @@ snapshots: wrappy@1.0.2: {} - ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10): + ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10): optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 + bufferutil: 4.0.9 utf-8-validate: 5.0.10 ws@8.18.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): diff --git a/tokens/token-2022/transfer-hook/whitelist/anchor/package.json b/tokens/token-2022/transfer-hook/whitelist/anchor/package.json index 7486aa4e0..0b5391208 100644 --- a/tokens/token-2022/transfer-hook/whitelist/anchor/package.json +++ b/tokens/token-2022/transfer-hook/whitelist/anchor/package.json @@ -6,7 +6,8 @@ }, "dependencies": { "@anchor-lang/core": "1.0.0-rc.5", - "@solana/spl-token": "^0.4.0" + "@solana/spl-token": "^0.4.0", + "@solana/web3.js": "^1.98.4" }, "devDependencies": { "@types/bn.js": "^5.1.0", diff --git a/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml b/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml index 2f127946d..754c1e49d 100644 --- a/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml +++ b/tokens/token-2022/transfer-hook/whitelist/anchor/pnpm-lock.yaml @@ -10,10 +10,13 @@ importers: dependencies: '@anchor-lang/core': specifier: 1.0.0-rc.5 - version: 1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + version: 1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) '@solana/spl-token': specifier: ^0.4.0 - version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10) + version: 0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': + specifier: ^1.98.4 + version: 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) devDependencies: '@types/bn.js': specifier: ^5.1.0 @@ -65,25 +68,14 @@ packages: resolution: {integrity: sha512-kLx7oLGVCRhtWeS9PQWGkzZTDpNrGkiJQBrx1rAhEiFemL4YumhUuEbXaaEVuLBt7qZcT1eBPN4LQxYGj3QWyw==} engines: {node: '>=10'} - '@babel/runtime@7.24.5': - resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==} - engines: {node: '>=6.9.0'} - '@babel/runtime@7.28.4': resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} engines: {node: '>=6.9.0'} - '@noble/curves@1.4.0': - resolution: {integrity: sha512-p+4cb332SFCrReJkCYe8Xzm0OWi4Jji5jVdIZRL/PmacmDkFNw6MrrV+gGpiPxLHbV+zKFRywUWbaseT+tZRXg==} - '@noble/curves@1.9.7': resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==} engines: {node: ^14.21.3 || >=16} - '@noble/hashes@1.4.0': - resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} - engines: {node: '>= 16'} - '@noble/hashes@1.8.0': resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==} engines: {node: ^14.21.3 || >=16} @@ -161,9 +153,6 @@ packages: resolution: {integrity: sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==} engines: {node: '>=16'} - '@solana/web3.js@1.91.8': - resolution: {integrity: sha512-USa6OS1jbh8zOapRJ/CBZImZ8Xb7AJjROZl5adql9TpOoBN9BUzyyouS5oPuZHft7S7eB8uJPuXWYjMi6BHgOw==} - '@solana/web3.js@1.98.4': resolution: {integrity: sha512-vv9lfnvjUsRiq//+j5pBdXig0IQdtzA0BRZ3bXEP4KaIyF1CcaydWqgyzQgfZMNIsWNWmG+AUHwPy4AHOD6gpw==} @@ -206,14 +195,6 @@ packages: '@ungap/promise-all-settled@1.1.2': resolution: {integrity: sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==} - JSONStream@1.3.5: - resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} - hasBin: true - - agentkeepalive@4.5.0: - resolution: {integrity: sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==} - engines: {node: '>= 8.0.0'} - agentkeepalive@4.6.0: resolution: {integrity: sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==} engines: {node: '>= 8.0.0'} @@ -267,9 +248,6 @@ packages: bindings@1.5.0: resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} - bn.js@5.2.1: - resolution: {integrity: sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==} - bn.js@5.2.2: resolution: {integrity: sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw==} @@ -299,10 +277,6 @@ packages: buffer@6.0.3: resolution: {integrity: sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==} - bufferutil@4.0.8: - resolution: {integrity: sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==} - engines: {node: '>=6.14.2'} - bufferutil@4.0.9: resolution: {integrity: sha512-WDtdLmJvAuNNPzByAYpRo2rF1Mmradw6gvWsQKf63476DDXmomT9zUiGypLcG4ibIM67vhAj8jJRdbmEws2Aqw==} engines: {node: '>=6.14.2'} @@ -525,11 +499,6 @@ packages: peerDependencies: ws: '*' - jayson@4.1.0: - resolution: {integrity: sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==} - engines: {node: '>=8'} - hasBin: true - jayson@4.2.0: resolution: {integrity: sha512-VfJ9t1YLwacIubLhONk0KFeosUBwstRWQ0IRT1KDjEjnVnSOVHC3uwugyV7L0c7R9lpVyrUGT2XWiBA1UTtpyg==} engines: {node: '>=8'} @@ -546,10 +515,6 @@ packages: resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==} hasBin: true - jsonparse@1.3.1: - resolution: {integrity: sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==} - engines: {'0': node >= 0.2.0} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -603,10 +568,6 @@ packages: encoding: optional: true - node-gyp-build@4.8.1: - resolution: {integrity: sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw==} - hasBin: true - node-gyp-build@4.8.4: resolution: {integrity: sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==} hasBin: true @@ -656,16 +617,10 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - regenerator-runtime@0.14.1: - resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} - require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} - rpc-websockets@7.11.0: - resolution: {integrity: sha512-IkLYjayPv6Io8C/TdCL5gwgzd1hFz2vmBZrjMw/SPEXo51ETOhnzgS4Qy5GWi2JQN7HKHa66J3+2mv0fgNh/7w==} - rpc-websockets@9.2.0: resolution: {integrity: sha512-DS/XHdPxplQTtNRKiBCRWGBJfjOk56W7fyFUpiYi9fSTWTzoEMbUkn3J4gB0IMniIEVeAGR1/rzFQogzD5MxvQ==} @@ -704,9 +659,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - superstruct@0.14.2: - resolution: {integrity: sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==} - superstruct@0.15.5: resolution: {integrity: sha512-4AOeU+P5UuE/4nOUkmcQdW5y7i9ndt1cQd/3iUe+LTz3RxESf/W/5lg4B74HbDMMv8PHnPnGCQFH45kBcrQYoQ==} @@ -725,9 +677,6 @@ packages: text-encoding-utf-8@1.0.2: resolution: {integrity: sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==} - through@2.3.8: - resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} @@ -774,6 +723,7 @@ packages: uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} + deprecated: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). hasBin: true webidl-conversions@3.0.1: @@ -809,30 +759,6 @@ packages: utf-8-validate: optional: true - ws@7.5.9: - resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} - engines: {node: '>=8.3.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: ^5.0.2 - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - - ws@8.17.0: - resolution: {integrity: sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.18.3: resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==} engines: {node: '>=10.0.0'} @@ -871,18 +797,18 @@ packages: snapshots: - '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))': + '@anchor-lang/borsh@1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))': dependencies: - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 buffer-layout: 1.2.2 - '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@anchor-lang/core@1.0.0-rc.5(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: - '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)) + '@anchor-lang/borsh': 1.0.0-rc.5(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)) '@anchor-lang/errors': 1.0.0-rc.5 '@noble/hashes': 1.8.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bn.js: 5.2.2 bs58: 4.0.1 buffer-layout: 1.2.2 @@ -900,33 +826,24 @@ snapshots: '@anchor-lang/errors@1.0.0-rc.5': {} - '@babel/runtime@7.24.5': - dependencies: - regenerator-runtime: 0.14.1 - '@babel/runtime@7.28.4': {} - '@noble/curves@1.4.0': - dependencies: - '@noble/hashes': 1.4.0 - '@noble/curves@1.9.7': dependencies: '@noble/hashes': 1.8.0 - '@noble/hashes@1.4.0': {} - '@noble/hashes@1.8.0': {} - '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10)': + '@solana/buffer-layout-utils@0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/web3.js': 1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) bigint-buffer: 1.1.5 bignumber.js: 9.1.2 transitivePeerDependencies: - bufferutil - encoding + - typescript - utf-8-validate '@solana/buffer-layout@4.0.1': @@ -992,63 +909,42 @@ snapshots: '@solana/codecs-core': 2.0.0-preview.2 '@solana/codecs-numbers': 2.0.0-preview.2 - '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-group@0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': + '@solana/spl-token-metadata@0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22)': dependencies: '@solana/codecs': 2.0.0-preview.2(fastestsmallesttextencoderdecoder@1.0.22) '@solana/spl-type-length-value': 0.1.0 - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - fastestsmallesttextencoderdecoder - '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.8)(fastestsmallesttextencoderdecoder@1.0.22)(utf-8-validate@5.0.10)': + '@solana/spl-token@0.4.6(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(bufferutil@4.0.9)(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@solana/buffer-layout': 4.0.1 - '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) - '@solana/web3.js': 1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/buffer-layout-utils': 0.2.0(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) + '@solana/spl-token-group': 0.0.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/spl-token-metadata': 0.1.4(@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10))(fastestsmallesttextencoderdecoder@1.0.22) + '@solana/web3.js': 1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10) buffer: 6.0.3 transitivePeerDependencies: - bufferutil - encoding - fastestsmallesttextencoderdecoder + - typescript - utf-8-validate '@solana/spl-type-length-value@0.1.0': dependencies: buffer: 6.0.3 - '@solana/web3.js@1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10)': - dependencies: - '@babel/runtime': 7.24.5 - '@noble/curves': 1.4.0 - '@noble/hashes': 1.4.0 - '@solana/buffer-layout': 4.0.1 - agentkeepalive: 4.5.0 - bigint-buffer: 1.1.5 - bn.js: 5.2.1 - borsh: 0.7.0 - bs58: 4.0.1 - buffer: 6.0.3 - fast-stable-stringify: 1.0.0 - jayson: 4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - node-fetch: 2.7.0 - rpc-websockets: 7.11.0 - superstruct: 0.14.2 - transitivePeerDependencies: - - bufferutil - - encoding - - utf-8-validate - - '@solana/web3.js@1.98.4(bufferutil@4.0.8)(typescript@5.9.3)(utf-8-validate@5.0.10)': + '@solana/web3.js@1.98.4(bufferutil@4.0.9)(typescript@5.9.3)(utf-8-validate@5.0.10)': dependencies: '@babel/runtime': 7.28.4 '@noble/curves': 1.9.7 @@ -1061,7 +957,7 @@ snapshots: bs58: 4.0.1 buffer: 6.0.3 fast-stable-stringify: 1.0.0 - jayson: 4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + jayson: 4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) node-fetch: 2.7.0 rpc-websockets: 9.2.0 superstruct: 2.0.2 @@ -1112,15 +1008,6 @@ snapshots: '@ungap/promise-all-settled@1.1.2': {} - JSONStream@1.3.5: - dependencies: - jsonparse: 1.3.1 - through: 2.3.8 - - agentkeepalive@4.5.0: - dependencies: - humanize-ms: 1.2.1 - agentkeepalive@4.6.0: dependencies: humanize-ms: 1.2.1 @@ -1164,13 +1051,11 @@ snapshots: dependencies: file-uri-to-path: 1.0.0 - bn.js@5.2.1: {} - bn.js@5.2.2: {} 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 @@ -1198,11 +1083,6 @@ snapshots: base64-js: 1.5.1 ieee754: 1.2.1 - bufferutil@4.0.8: - dependencies: - node-gyp-build: 4.8.1 - optional: true - bufferutil@4.0.9: dependencies: node-gyp-build: 4.8.4 @@ -1390,33 +1270,11 @@ snapshots: isexe@2.0.0: {} - isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)): + isomorphic-ws@4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)): dependencies: - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - isomorphic-ws@4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)): - dependencies: - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - - jayson@4.1.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - dependencies: - '@types/connect': 3.4.38 - '@types/node': 12.20.55 - '@types/ws': 7.4.7 - JSONStream: 1.3.5 - commander: 2.20.3 - delay: 5.0.0 - es6-promisify: 5.0.0 - eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - json-stringify-safe: 5.0.1 - uuid: 8.3.2 - ws: 7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - utf-8-validate + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) - jayson@4.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): + jayson@4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@types/connect': 3.4.38 '@types/node': 12.20.55 @@ -1425,11 +1283,11 @@ snapshots: delay: 5.0.0 es6-promisify: 5.0.0 eyes: 0.1.8 - isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10)) + isomorphic-ws: 4.0.1(ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10)) json-stringify-safe: 5.0.1 stream-json: 1.9.1 uuid: 8.3.2 - ws: 7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - utf-8-validate @@ -1445,8 +1303,6 @@ snapshots: minimist: 1.2.8 optional: true - jsonparse@1.3.1: {} - locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -1513,9 +1369,6 @@ snapshots: dependencies: whatwg-url: 5.0.0 - node-gyp-build@4.8.1: - optional: true - node-gyp-build@4.8.4: optional: true @@ -1553,19 +1406,8 @@ snapshots: dependencies: picomatch: 2.3.1 - regenerator-runtime@0.14.1: {} - require-directory@2.1.1: {} - rpc-websockets@7.11.0: - dependencies: - eventemitter3: 4.0.7 - uuid: 8.3.2 - ws: 8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - rpc-websockets@9.2.0: dependencies: '@swc/helpers': 0.5.17 @@ -1613,8 +1455,6 @@ snapshots: strip-json-comments@3.1.1: {} - superstruct@0.14.2: {} - superstruct@0.15.5: {} superstruct@2.0.2: {} @@ -1629,8 +1469,6 @@ snapshots: text-encoding-utf-8@1.0.2: {} - through@2.3.8: {} - to-regex-range@5.0.1: dependencies: is-number: 7.0.0 @@ -1675,7 +1513,7 @@ snapshots: utf-8-validate@5.0.10: dependencies: - node-gyp-build: 4.8.1 + node-gyp-build: 4.8.4 optional: true uuid@8.3.2: {} @@ -1701,19 +1539,9 @@ snapshots: wrappy@1.0.2: {} - ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10): + ws@7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10): optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@7.5.9(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 - utf-8-validate: 5.0.10 - - ws@8.17.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): - optionalDependencies: - bufferutil: 4.0.8 + bufferutil: 4.0.9 utf-8-validate: 5.0.10 ws@8.18.3(bufferutil@4.0.9)(utf-8-validate@5.0.10): diff --git a/tokens/transfer-tokens/pinocchio/package.json b/tokens/transfer-tokens/pinocchio/package.json index 063fb5279..c6e65ec27 100644 --- a/tokens/transfer-tokens/pinocchio/package.json +++ b/tokens/transfer-tokens/pinocchio/package.json @@ -18,6 +18,7 @@ "mocha": "^9.0.3", "solana-bankrun": "^0.3.0", "ts-mocha": "^10.0.0", - "typescript": "^4.3.5" + "typescript": "^4.3.5", + "@types/node": "^20.9.0" } } diff --git a/tokens/transfer-tokens/pinocchio/pnpm-lock.yaml b/tokens/transfer-tokens/pinocchio/pnpm-lock.yaml index 4b2f4d88c..fc057aa92 100644 --- a/tokens/transfer-tokens/pinocchio/pnpm-lock.yaml +++ b/tokens/transfer-tokens/pinocchio/pnpm-lock.yaml @@ -24,6 +24,9 @@ importers: '@types/mocha': specifier: ^9.1.1 version: 9.1.1 + '@types/node': + specifier: ^20.9.0 + version: 20.19.43 chai: specifier: ^4.3.4 version: 4.5.0 @@ -101,8 +104,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@25.9.1': - resolution: {integrity: sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==} + '@types/node@20.19.43': + resolution: {integrity: sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==} '@types/uuid@10.0.0': resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==} @@ -531,12 +534,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==} @@ -620,8 +625,8 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - undici-types@7.24.6: - resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} utf-8-validate@6.0.6: resolution: {integrity: sha512-q3l3P9UtEEiAHcsgsqTgf9PPjctrDWoIXW3NpOHFdRDbLvu4DLIcxHangJ4RLrWkBcKjmcs/6NkerI8T/rE4LA==} @@ -765,13 +770,13 @@ snapshots: '@types/bn.js@5.2.0': dependencies: - '@types/node': 25.9.1 + '@types/node': 20.19.43 '@types/chai@4.3.20': {} '@types/connect@3.4.38': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/json5@0.0.29': optional: true @@ -780,19 +785,19 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@25.9.1': + '@types/node@20.19.43': dependencies: - undici-types: 7.24.6 + undici-types: 6.21.0 '@types/uuid@10.0.0': {} '@types/ws@7.4.7': dependencies: - '@types/node': 12.20.55 + '@types/node': 20.19.43 '@types/ws@8.18.1': dependencies: - '@types/node': 25.9.1 + '@types/node': 20.19.43 '@ungap/promise-all-settled@1.1.2': {} @@ -1289,7 +1294,7 @@ snapshots: typescript@4.9.5: {} - undici-types@7.24.6: {} + undici-types@6.21.0: {} utf-8-validate@6.0.6: dependencies: From a8229df1503425aa16b8e20d5b2bf8d8cfef2e13 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 12:46:08 -0400 Subject: [PATCH 08/10] ci: fix post-build anchor type errors surfaced by typecheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With generated target/types finally present in CI, tsc exposed real API misuse that ts-mocha's transpile-only mode never checked: - .accounts() calls passing PDA accounts that anchor 1.0 auto-resolves are rejected by its strict typing; switch those call sites to .accountsPartial(), which accepts explicitly-passed resolvable accounts unchanged (12 test files across 7 examples) - account-data: JSON-imported IDL widens to plain types, cast to Idl for BorshCoder (standard anchor pattern) - create-token: bankrun test used require() under "type": "module", so mocha 9 loaded zero tests and exited green on main — the test never ran. Use a JSON import attribute (TS is ^5.3 now) with nodenext module so the suite actually executes. - allow-block-list-token: drop explicit moduleResolution — CI's TypeScript rejects node10 as removed; the commonjs default resolves identically without the flag --- basics/account-data/anchor/tests/litesvm.test.ts | 4 ++-- basics/close-account/anchor/tests/test.ts | 4 ++-- tokens/create-token/anchor/tests/bankrun.test.ts | 6 ++---- tokens/create-token/anchor/tsconfig.json | 7 +++++-- tokens/nft-minter/anchor/tests/bankrun.test.ts | 2 +- tokens/nft-minter/anchor/tests/test.ts | 2 +- .../pda-mint-authority/anchor/tests/bankrun.test.ts | 4 ++-- tokens/pda-mint-authority/anchor/tests/test.ts | 4 ++-- tokens/spl-token-minter/anchor/tests/bankrun.test.ts | 4 ++-- tokens/spl-token-minter/anchor/tests/test.ts | 4 ++-- tokens/token-2022/basics/anchor/tests/anchor.ts | 10 +++++----- .../token-2022/basics/anchor/tests/bankrun.test.ts | 10 +++++----- .../transfer-fee/anchor/tests/transfer-fee.ts | 12 ++++++------ .../allow-block-list-token/anchor/tsconfig.json | 1 - tokens/transfer-tokens/anchor/tests/bankrun.test.ts | 6 +++--- tokens/transfer-tokens/anchor/tests/test.ts | 6 +++--- 16 files changed, 43 insertions(+), 43 deletions(-) diff --git a/basics/account-data/anchor/tests/litesvm.test.ts b/basics/account-data/anchor/tests/litesvm.test.ts index dce4c9c85..1bc1cbea3 100644 --- a/basics/account-data/anchor/tests/litesvm.test.ts +++ b/basics/account-data/anchor/tests/litesvm.test.ts @@ -1,4 +1,4 @@ -import { BorshCoder } from "@anchor-lang/core"; +import { BorshCoder, type Idl } from "@anchor-lang/core"; import { Keypair, PublicKey, SystemProgram, Transaction, TransactionInstruction } from "@solana/web3.js"; import { LiteSVM } from "litesvm"; @@ -9,7 +9,7 @@ describe("Account Data!", () => { let programId: PublicKey; let payer: Keypair; let addressInfoAccount: Keypair; - const coder = new BorshCoder(IDL); + const coder = new BorshCoder(IDL as Idl); before(() => { litesvm = new LiteSVM(); diff --git a/basics/close-account/anchor/tests/test.ts b/basics/close-account/anchor/tests/test.ts index 988ebd5f5..a705eb677 100644 --- a/basics/close-account/anchor/tests/test.ts +++ b/basics/close-account/anchor/tests/test.ts @@ -25,7 +25,7 @@ describe("Anchor: Close an account", () => { it("Create an account", async () => { await program.methods .createUser("John Doe") - .accounts({ + .accountsPartial({ user: payer.publicKey, userAccount: userAccountAddress, system_program: SystemProgram.programId, @@ -43,7 +43,7 @@ describe("Anchor: Close an account", () => { it("Close an account", async () => { await program.methods .closeUser() - .accounts({ + .accountsPartial({ user: payer.publicKey, userAccount: userAccountAddress, }) diff --git a/tokens/create-token/anchor/tests/bankrun.test.ts b/tokens/create-token/anchor/tests/bankrun.test.ts index 37a0ab291..f71b201dc 100644 --- a/tokens/create-token/anchor/tests/bankrun.test.ts +++ b/tokens/create-token/anchor/tests/bankrun.test.ts @@ -2,11 +2,9 @@ import * as anchor from "@anchor-lang/core"; import { Keypair, PublicKey } from "@solana/web3.js"; import { BankrunProvider } from "anchor-bankrun"; import { startAnchor } from "solana-bankrun"; -import type { CreateToken } from "../target/types/create_token"; +import IDL from "../target/idl/create_token.json" with { type: "json" }; +import type { CreateToken } from "../target/types/create_token.ts"; -// Use require() for JSON import — the 'import ... with { type: "json" }' syntax -// requires TypeScript 5.3+, but this project uses typescript ^4.3.5 with ts-mocha. -const IDL = require("../target/idl/create_token.json"); const PROGRAM_ID = new PublicKey(IDL.address); const METADATA_PROGRAM_ID = new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"); diff --git a/tokens/create-token/anchor/tsconfig.json b/tokens/create-token/anchor/tsconfig.json index 219f1fd62..a9c21fe26 100644 --- a/tokens/create-token/anchor/tsconfig.json +++ b/tokens/create-token/anchor/tsconfig.json @@ -3,9 +3,12 @@ "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], - "module": "commonjs", + "module": "nodenext", "target": "es2020", "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/tokens/nft-minter/anchor/tests/bankrun.test.ts b/tokens/nft-minter/anchor/tests/bankrun.test.ts index 63958d563..8d523fcfc 100644 --- a/tokens/nft-minter/anchor/tests/bankrun.test.ts +++ b/tokens/nft-minter/anchor/tests/bankrun.test.ts @@ -40,7 +40,7 @@ describe("NFT bankrun Minter", async () => { const transactionSignature = await program.methods .mintNft(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, associatedTokenAccount: associatedTokenAccountAddress, diff --git a/tokens/nft-minter/anchor/tests/test.ts b/tokens/nft-minter/anchor/tests/test.ts index 08d3f3453..645072b50 100644 --- a/tokens/nft-minter/anchor/tests/test.ts +++ b/tokens/nft-minter/anchor/tests/test.ts @@ -25,7 +25,7 @@ describe("NFT Minter", () => { const transactionSignature = await program.methods .mintNft(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, associatedTokenAccount: associatedTokenAccountAddress, diff --git a/tokens/pda-mint-authority/anchor/tests/bankrun.test.ts b/tokens/pda-mint-authority/anchor/tests/bankrun.test.ts index 2948ee994..9d965faac 100644 --- a/tokens/pda-mint-authority/anchor/tests/bankrun.test.ts +++ b/tokens/pda-mint-authority/anchor/tests/bankrun.test.ts @@ -37,7 +37,7 @@ describe("NFT Minter", async () => { it("Create a token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, }) .rpc(); @@ -56,7 +56,7 @@ describe("NFT Minter", async () => { const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ payer: payer.publicKey, associatedTokenAccount: associatedTokenAccountAddress, }) diff --git a/tokens/pda-mint-authority/anchor/tests/test.ts b/tokens/pda-mint-authority/anchor/tests/test.ts index a13a5b413..55973a35e 100644 --- a/tokens/pda-mint-authority/anchor/tests/test.ts +++ b/tokens/pda-mint-authority/anchor/tests/test.ts @@ -23,7 +23,7 @@ describe("NFT Minter", () => { it("Create a token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, }) .rpc(); @@ -42,7 +42,7 @@ describe("NFT Minter", () => { const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ payer: payer.publicKey, associatedTokenAccount: associatedTokenAccountAddress, }) diff --git a/tokens/spl-token-minter/anchor/tests/bankrun.test.ts b/tokens/spl-token-minter/anchor/tests/bankrun.test.ts index 7c59e6eee..8024e54e2 100644 --- a/tokens/spl-token-minter/anchor/tests/bankrun.test.ts +++ b/tokens/spl-token-minter/anchor/tests/bankrun.test.ts @@ -37,7 +37,7 @@ describe("SPL Token Minter", async () => { it("Create an SPL Token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, }) @@ -59,7 +59,7 @@ describe("SPL Token Minter", async () => { // Mint the tokens to the associated token account. const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ mintAuthority: payer.publicKey, recipient: payer.publicKey, mintAccount: mintKeypair.publicKey, diff --git a/tokens/spl-token-minter/anchor/tests/test.ts b/tokens/spl-token-minter/anchor/tests/test.ts index d3d94516b..2945e83d8 100644 --- a/tokens/spl-token-minter/anchor/tests/test.ts +++ b/tokens/spl-token-minter/anchor/tests/test.ts @@ -22,7 +22,7 @@ describe("SPL Token Minter", () => { it("Create an SPL Token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, }) @@ -44,7 +44,7 @@ describe("SPL Token Minter", () => { // Mint the tokens to the associated token account. const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ mintAuthority: payer.publicKey, recipient: payer.publicKey, mintAccount: mintKeypair.publicKey, diff --git a/tokens/token-2022/basics/anchor/tests/anchor.ts b/tokens/token-2022/basics/anchor/tests/anchor.ts index 92e50943a..6b5e600b5 100644 --- a/tokens/token-2022/basics/anchor/tests/anchor.ts +++ b/tokens/token-2022/basics/anchor/tests/anchor.ts @@ -39,7 +39,7 @@ describe("anchor", () => { const ix = await program.methods .createToken(tokenName) - .accounts({ + .accountsPartial({ signer: wallet.publicKey, tokenProgram: TOKEN_2022_PROGRAM_ID, }) @@ -56,7 +56,7 @@ describe("anchor", () => { const ix = await program.methods .createAssociatedTokenAccount() - .accounts({ + .accountsPartial({ tokenAccount: payerATA, mint: mint, signer: wallet.publicKey, @@ -76,7 +76,7 @@ describe("anchor", () => { const tx = new anchor.web3.Transaction(); const ix = await program.methods .createAssociatedTokenAccount() - .accounts({ + .accountsPartial({ tokenAccount: receiverATA, mint: mint, signer: receiver.publicKey, @@ -100,7 +100,7 @@ describe("anchor", () => { const ix = await program.methods .mintToken(new BN(200000000)) - .accounts({ + .accountsPartial({ mint: mint, signer: wallet.publicKey, receiver: payerATA, @@ -120,7 +120,7 @@ describe("anchor", () => { const ix = await program.methods .transferToken(new BN(100)) - .accounts({ + .accountsPartial({ mint: mint, signer: wallet.publicKey, from: payerATA, diff --git a/tokens/token-2022/basics/anchor/tests/bankrun.test.ts b/tokens/token-2022/basics/anchor/tests/bankrun.test.ts index 2edae2ed8..d9619a607 100644 --- a/tokens/token-2022/basics/anchor/tests/bankrun.test.ts +++ b/tokens/token-2022/basics/anchor/tests/bankrun.test.ts @@ -45,7 +45,7 @@ describe("anchor", async () => { const ix = await program.methods .createToken(tokenName) - .accounts({ + .accountsPartial({ signer: wallet.publicKey, tokenProgram: TOKEN_2022_PROGRAM_ID, }) @@ -64,7 +64,7 @@ describe("anchor", async () => { const ix = await program.methods .createAssociatedTokenAccount() - .accounts({ + .accountsPartial({ tokenAccount: payerATA, mint: mint, signer: wallet.publicKey, @@ -85,7 +85,7 @@ describe("anchor", async () => { const tx = new anchor.web3.Transaction(); const ix = await program.methods .createAssociatedTokenAccount() - .accounts({ + .accountsPartial({ tokenAccount: receiverATA, mint: mint, signer: receiver.publicKey, @@ -110,7 +110,7 @@ describe("anchor", async () => { const ix = await program.methods .mintToken(new BN(200000000)) - .accounts({ + .accountsPartial({ mint: mint, signer: wallet.publicKey, receiver: payerATA, @@ -132,7 +132,7 @@ describe("anchor", async () => { const ix = await program.methods .transferToken(new BN(100)) - .accounts({ + .accountsPartial({ mint: mint, signer: wallet.publicKey, from: payerATA, diff --git a/tokens/token-2022/transfer-fee/anchor/tests/transfer-fee.ts b/tokens/token-2022/transfer-fee/anchor/tests/transfer-fee.ts index 78726bc74..912724eda 100644 --- a/tokens/token-2022/transfer-fee/anchor/tests/transfer-fee.ts +++ b/tokens/token-2022/transfer-fee/anchor/tests/transfer-fee.ts @@ -40,7 +40,7 @@ describe("transfer-fee", () => { const transactionSignature = await program.methods .initialize(transferFeeBasisPoints, new anchor.BN(maximumFee)) - .accounts({ mintAccount: mintKeypair.publicKey }) + .accountsPartial({ mintAccount: mintKeypair.publicKey }) .signers([mintKeypair]) .rpc({ skipPreflight: true }); console.log("Your transaction signature", transactionSignature); @@ -75,7 +75,7 @@ describe("transfer-fee", () => { it("Transfer", async () => { const transactionSignature = await program.methods .transfer(new anchor.BN(100)) - .accounts({ + .accountsPartial({ sender: wallet.publicKey, recipient: recipient.publicKey, mintAccount: mintKeypair.publicKey, @@ -89,7 +89,7 @@ describe("transfer-fee", () => { it("Transfer Again, fee limit by maximumFee", async () => { const transactionSignature = await program.methods .transfer(new anchor.BN(200)) - .accounts({ + .accountsPartial({ sender: wallet.publicKey, recipient: recipient.publicKey, mintAccount: mintKeypair.publicKey, @@ -103,7 +103,7 @@ describe("transfer-fee", () => { it("Harvest Transfer Fees to Mint Account", async () => { const transactionSignature = await program.methods .harvest() - .accounts({ mintAccount: mintKeypair.publicKey }) + .accountsPartial({ mintAccount: mintKeypair.publicKey }) .remainingAccounts([ { pubkey: recipientTokenAccountAddress, @@ -118,7 +118,7 @@ describe("transfer-fee", () => { it("Withdraw Transfer Fees from Mint Account", async () => { const transactionSignature = await program.methods .withdraw() - .accounts({ + .accountsPartial({ mintAccount: mintKeypair.publicKey, tokenAccount: senderTokenAccountAddress, }) @@ -132,7 +132,7 @@ describe("transfer-fee", () => { const transactionSignature = await program.methods .updateFee(transferFeeBasisPoints, new anchor.BN(maximumFee)) - .accounts({ mintAccount: mintKeypair.publicKey }) + .accountsPartial({ mintAccount: mintKeypair.publicKey }) .rpc({ skipPreflight: true }); console.log("Your transaction signature", transactionSignature); }); diff --git a/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json b/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json index 019273853..903416da8 100644 --- a/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json +++ b/tokens/token-2022/transfer-hook/allow-block-list-token/anchor/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "module": "commonjs", - "moduleResolution": "node", "types": ["jest", "node"], "lib": ["es2020"], "target": "es2020", diff --git a/tokens/transfer-tokens/anchor/tests/bankrun.test.ts b/tokens/transfer-tokens/anchor/tests/bankrun.test.ts index a0bc25050..8d9a5e2c9 100644 --- a/tokens/transfer-tokens/anchor/tests/bankrun.test.ts +++ b/tokens/transfer-tokens/anchor/tests/bankrun.test.ts @@ -45,7 +45,7 @@ describe("Transfer Tokens Bankrun", async () => { it("Create an SPL Token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, }) @@ -64,7 +64,7 @@ describe("Transfer Tokens Bankrun", async () => { // Mint the tokens to the associated token account. const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ mintAuthority: payer.publicKey, recipient: payer.publicKey, mintAccount: mintKeypair.publicKey, @@ -83,7 +83,7 @@ describe("Transfer Tokens Bankrun", async () => { const transactionSignature = await program.methods .transferTokens(amount) - .accounts({ + .accountsPartial({ sender: payer.publicKey, recipient: recipient.publicKey, mintAccount: mintKeypair.publicKey, diff --git a/tokens/transfer-tokens/anchor/tests/test.ts b/tokens/transfer-tokens/anchor/tests/test.ts index 77a1b0a6d..5e6754c53 100644 --- a/tokens/transfer-tokens/anchor/tests/test.ts +++ b/tokens/transfer-tokens/anchor/tests/test.ts @@ -31,7 +31,7 @@ describe("Transfer Tokens", () => { it("Create an SPL Token!", async () => { const transactionSignature = await program.methods .createToken(metadata.name, metadata.symbol, metadata.uri) - .accounts({ + .accountsPartial({ payer: payer.publicKey, mintAccount: mintKeypair.publicKey, }) @@ -50,7 +50,7 @@ describe("Transfer Tokens", () => { // Mint the tokens to the associated token account. const transactionSignature = await program.methods .mintToken(amount) - .accounts({ + .accountsPartial({ mintAuthority: payer.publicKey, recipient: payer.publicKey, mintAccount: mintKeypair.publicKey, @@ -69,7 +69,7 @@ describe("Transfer Tokens", () => { const transactionSignature = await program.methods .transferTokens(amount) - .accounts({ + .accountsPartial({ sender: payer.publicKey, recipient: recipient.publicKey, mintAccount: mintKeypair.publicKey, From 6959d9d6f5a91f1dc8912c45429b7bf2c4bb8ede Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 13:05:31 -0400 Subject: [PATCH 09/10] ci: fix remaining never-ran bankrun tests and strict account names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nft-minter, nft-operations, and token-2022/basics bankrun tests used require() under "type": "module" like create-token — mocha 9 loaded zero tests and reported green. Converted to JSON import attributes with nodenext modules so the suites execute. close-account passed snake_case system_program where anchor's strict accounts type expects systemProgram; create-token's validator test needed the explicit .ts extension for its generated-type import. --- basics/close-account/anchor/tests/test.ts | 2 +- tokens/create-token/anchor/tests/test.ts | 2 +- tokens/nft-minter/anchor/tests/bankrun.test.ts | 5 ++--- tokens/nft-minter/anchor/tests/test.ts | 2 +- tokens/nft-minter/anchor/tsconfig.json | 7 +++++-- tokens/nft-operations/anchor/tests/bankrun.test.ts | 4 ++-- tokens/nft-operations/anchor/tests/mint-nft.ts | 2 +- tokens/nft-operations/anchor/tsconfig.json | 7 +++++-- tokens/token-2022/basics/anchor/tests/anchor.ts | 2 +- tokens/token-2022/basics/anchor/tests/bankrun.test.ts | 6 ++---- tokens/token-2022/basics/anchor/tsconfig.json | 7 +++++-- 11 files changed, 26 insertions(+), 20 deletions(-) diff --git a/basics/close-account/anchor/tests/test.ts b/basics/close-account/anchor/tests/test.ts index a705eb677..035599b3a 100644 --- a/basics/close-account/anchor/tests/test.ts +++ b/basics/close-account/anchor/tests/test.ts @@ -28,7 +28,7 @@ describe("Anchor: Close an account", () => { .accountsPartial({ user: payer.publicKey, userAccount: userAccountAddress, - system_program: SystemProgram.programId, + systemProgram: SystemProgram.programId, }) .rpc(); diff --git a/tokens/create-token/anchor/tests/test.ts b/tokens/create-token/anchor/tests/test.ts index cafce25ee..0995154e9 100644 --- a/tokens/create-token/anchor/tests/test.ts +++ b/tokens/create-token/anchor/tests/test.ts @@ -1,6 +1,6 @@ import * as anchor from "@anchor-lang/core"; import { Keypair } from "@solana/web3.js"; -import type { CreateToken } from "../target/types/create_token"; +import type { CreateToken } from "../target/types/create_token.ts"; describe("Create Tokens", () => { const provider = anchor.AnchorProvider.env(); diff --git a/tokens/nft-minter/anchor/tests/bankrun.test.ts b/tokens/nft-minter/anchor/tests/bankrun.test.ts index 8d523fcfc..140e8bee5 100644 --- a/tokens/nft-minter/anchor/tests/bankrun.test.ts +++ b/tokens/nft-minter/anchor/tests/bankrun.test.ts @@ -3,10 +3,9 @@ import { getAssociatedTokenAddressSync } from "@solana/spl-token"; import { Keypair, PublicKey } from "@solana/web3.js"; import { BankrunProvider } from "anchor-bankrun"; import { startAnchor } from "solana-bankrun"; -import type { NftMinter } from "../target/types/nft_minter"; +import IDL from "../target/idl/nft_minter.json" with { type: "json" }; +import type { NftMinter } from "../target/types/nft_minter.ts"; -// Use require() for JSON import — "import ... with { type: "json" }" needs TS 5.3+ -const IDL = require("../target/idl/nft_minter.json"); const PROGRAM_ID = new PublicKey(IDL.address); const METADATA_PROGRAM_ID = new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"); diff --git a/tokens/nft-minter/anchor/tests/test.ts b/tokens/nft-minter/anchor/tests/test.ts index 645072b50..a81c95daa 100644 --- a/tokens/nft-minter/anchor/tests/test.ts +++ b/tokens/nft-minter/anchor/tests/test.ts @@ -1,7 +1,7 @@ import * as anchor from "@anchor-lang/core"; import { getAssociatedTokenAddressSync } from "@solana/spl-token"; import { Keypair } from "@solana/web3.js"; -import type { NftMinter } from "../target/types/nft_minter"; +import type { NftMinter } from "../target/types/nft_minter.ts"; describe("NFT Minter", () => { const provider = anchor.AnchorProvider.env(); diff --git a/tokens/nft-minter/anchor/tsconfig.json b/tokens/nft-minter/anchor/tsconfig.json index 219f1fd62..a9c21fe26 100644 --- a/tokens/nft-minter/anchor/tsconfig.json +++ b/tokens/nft-minter/anchor/tsconfig.json @@ -3,9 +3,12 @@ "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], - "module": "commonjs", + "module": "nodenext", "target": "es2020", "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/tokens/nft-operations/anchor/tests/bankrun.test.ts b/tokens/nft-operations/anchor/tests/bankrun.test.ts index b48ab0d3e..87f138ae1 100644 --- a/tokens/nft-operations/anchor/tests/bankrun.test.ts +++ b/tokens/nft-operations/anchor/tests/bankrun.test.ts @@ -4,9 +4,9 @@ import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_PROGR import { Keypair, PublicKey, SystemProgram } from "@solana/web3.js"; import { BankrunProvider } from "anchor-bankrun"; import { startAnchor } from "solana-bankrun"; -import type { MintNft } from "../target/types/mint_nft"; +import IDL from "../target/idl/mint_nft.json" with { type: "json" }; +import type { MintNft } from "../target/types/mint_nft.ts"; -const IDL = require("../target/idl/mint_nft.json"); const PROGRAM_ID = new PublicKey(IDL.address); const METADATA_PROGRAM_ID = new PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"); diff --git a/tokens/nft-operations/anchor/tests/mint-nft.ts b/tokens/nft-operations/anchor/tests/mint-nft.ts index e17981279..43843b867 100644 --- a/tokens/nft-operations/anchor/tests/mint-nft.ts +++ b/tokens/nft-operations/anchor/tests/mint-nft.ts @@ -4,7 +4,7 @@ import type NodeWallet from "@anchor-lang/core/dist/cjs/nodewallet"; import { ASSOCIATED_PROGRAM_ID } from "@anchor-lang/core/dist/cjs/utils/token"; import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { Keypair, SystemProgram } from "@solana/web3.js"; -import type { MintNft } from "../target/types/mint_nft"; +import type { MintNft } from "../target/types/mint_nft.ts"; describe("mint-nft", () => { // Configure the client to use the local cluster. diff --git a/tokens/nft-operations/anchor/tsconfig.json b/tokens/nft-operations/anchor/tsconfig.json index 219f1fd62..a9c21fe26 100644 --- a/tokens/nft-operations/anchor/tsconfig.json +++ b/tokens/nft-operations/anchor/tsconfig.json @@ -3,9 +3,12 @@ "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], - "module": "commonjs", + "module": "nodenext", "target": "es2020", "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } diff --git a/tokens/token-2022/basics/anchor/tests/anchor.ts b/tokens/token-2022/basics/anchor/tests/anchor.ts index 6b5e600b5..af170d7c6 100644 --- a/tokens/token-2022/basics/anchor/tests/anchor.ts +++ b/tokens/token-2022/basics/anchor/tests/anchor.ts @@ -2,7 +2,7 @@ import type { Program } from "@anchor-lang/core"; import * as anchor from "@anchor-lang/core"; import { sendAndConfirmTransaction } from "@solana/web3.js"; import BN from "bn.js"; -import type { Anchor } from "../target/types/anchor"; +import type { Anchor } from "../target/types/anchor.ts"; describe("anchor", () => { // Configure the client to use the local cluster. diff --git a/tokens/token-2022/basics/anchor/tests/bankrun.test.ts b/tokens/token-2022/basics/anchor/tests/bankrun.test.ts index d9619a607..36aa81cd8 100644 --- a/tokens/token-2022/basics/anchor/tests/bankrun.test.ts +++ b/tokens/token-2022/basics/anchor/tests/bankrun.test.ts @@ -3,11 +3,9 @@ import { PublicKey } from "@solana/web3.js"; import { BankrunProvider } from "anchor-bankrun"; import BN from "bn.js"; import { startAnchor } from "solana-bankrun"; -import type { Anchor } from "../target/types/anchor"; +import IDL from "../target/idl/anchor.json" with { type: "json" }; +import type { Anchor } from "../target/types/anchor.ts"; -// Use require() for JSON import — the 'import ... with { type: "json" }' syntax -// requires TypeScript 5.3+, but this project uses typescript ^4.3.5 with ts-mocha. -const IDL = require("../target/idl/anchor.json"); const PROGRAM_ID = new PublicKey(IDL.address); describe("anchor", async () => { diff --git a/tokens/token-2022/basics/anchor/tsconfig.json b/tokens/token-2022/basics/anchor/tsconfig.json index 219f1fd62..a9c21fe26 100644 --- a/tokens/token-2022/basics/anchor/tsconfig.json +++ b/tokens/token-2022/basics/anchor/tsconfig.json @@ -3,9 +3,12 @@ "types": ["mocha", "chai", "node"], "typeRoots": ["./node_modules/@types"], "lib": ["es2020"], - "module": "commonjs", + "module": "nodenext", "target": "es2020", "esModuleInterop": true, - "skipLibCheck": true + "skipLibCheck": true, + "resolveJsonModule": true, + "noEmit": true, + "allowImportingTsExtensions": true } } From dd36b2da031fb1f93d17e5d51fd8b3bf436c70e8 Mon Sep 17 00:00:00 2001 From: Jo D Date: Fri, 24 Jul 2026 13:24:53 -0400 Subject: [PATCH 10/10] ci: replace @anchor-lang/core deep dist imports in nft-operations nodenext resolution rejects dist/cjs subpath imports. NodeWallet is exported as Wallet from the main entry, and ASSOCIATED_PROGRAM_ID is the same constant as @solana/spl-token's ASSOCIATED_TOKEN_PROGRAM_ID these tests already import. --- tokens/nft-operations/anchor/tests/bankrun.test.ts | 3 +-- tokens/nft-operations/anchor/tests/mint-nft.ts | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tokens/nft-operations/anchor/tests/bankrun.test.ts b/tokens/nft-operations/anchor/tests/bankrun.test.ts index 87f138ae1..48ed35ff9 100644 --- a/tokens/nft-operations/anchor/tests/bankrun.test.ts +++ b/tokens/nft-operations/anchor/tests/bankrun.test.ts @@ -1,5 +1,4 @@ import * as anchor from "@anchor-lang/core"; -import { ASSOCIATED_PROGRAM_ID } from "@anchor-lang/core/dist/cjs/utils/token"; import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { Keypair, PublicKey, SystemProgram } from "@solana/web3.js"; import { BankrunProvider } from "anchor-bankrun"; @@ -105,7 +104,7 @@ describe("mint-nft bankrun", async () => { collectionMint, systemProgram: SystemProgram.programId, tokenProgram: TOKEN_PROGRAM_ID, - associatedTokenProgram: ASSOCIATED_PROGRAM_ID, + associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID, tokenMetadataProgram: TOKEN_METADATA_PROGRAM_ID, }) .signers([mintKeypair]) diff --git a/tokens/nft-operations/anchor/tests/mint-nft.ts b/tokens/nft-operations/anchor/tests/mint-nft.ts index 43843b867..6f8d604eb 100644 --- a/tokens/nft-operations/anchor/tests/mint-nft.ts +++ b/tokens/nft-operations/anchor/tests/mint-nft.ts @@ -1,7 +1,5 @@ import type { Program } from "@anchor-lang/core"; import * as anchor from "@anchor-lang/core"; -import type NodeWallet from "@anchor-lang/core/dist/cjs/nodewallet"; -import { ASSOCIATED_PROGRAM_ID } from "@anchor-lang/core/dist/cjs/utils/token"; import { ASSOCIATED_TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID } from "@solana/spl-token"; import { Keypair, SystemProgram } from "@solana/web3.js"; import type { MintNft } from "../target/types/mint_nft.ts"; @@ -11,7 +9,7 @@ describe("mint-nft", () => { const provider = anchor.AnchorProvider.env(); anchor.setProvider(provider); - const wallet = provider.wallet as NodeWallet; + const wallet = provider.wallet as anchor.Wallet; const program = anchor.workspace.MintNft as Program; @@ -96,7 +94,7 @@ describe("mint-nft", () => { collectionMint, systemProgram: SystemProgram.programId, tokenProgram: TOKEN_PROGRAM_ID, - associatedTokenProgram: ASSOCIATED_PROGRAM_ID, + associatedTokenProgram: ASSOCIATED_TOKEN_PROGRAM_ID, tokenMetadataProgram: TOKEN_METADATA_PROGRAM_ID, }) .signers([mintKeypair])