Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: solana-labs/solana-program-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9fd9805345b81e9db19bfb15baa35fc7caa5d1d1
Choose a base ref
...
head repository: solana-labs/solana-program-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8f9c33b3a04250938a573809cd9dfdb698025972
Choose a head ref
Loading
Showing 667 changed files with 33,318 additions and 212,164 deletions.
43 changes: 35 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
version: 2
updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
time: "01:00"
timezone: America/Los_Angeles
labels:
- "automerge"
open-pull-requests-limit: 6
ignore:
- dependency-name: "cbindgen"
- package-ecosystem: npm
directory: "/token/js"
schedule:
interval: daily
time: "01:00"
time: "02:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
labels:
@@ -13,7 +24,7 @@ updates:
directory: "/token-lending/js"
schedule:
interval: daily
time: "02:00"
time: "03:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
labels:
@@ -22,19 +33,35 @@ updates:
directory: "/token-swap/js"
schedule:
interval: daily
time: "03:00"
time: "04:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
labels:
- "automerge"
- package-ecosystem: cargo
directory: "/"
- package-ecosystem: npm
directory: "/stake-pool/js"
schedule:
interval: daily
time: "04:00"
time: "05:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
labels:
- "automerge"
- package-ecosystem: npm
directory: "/name-service/js"
schedule:
interval: daily
time: "06:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
ignore:
- dependency-name: "cbindgen"
labels:
- "automerge"
- package-ecosystem: npm
directory: "/memo/js"
schedule:
interval: daily
time: "07:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 3
labels:
- "automerge"
27 changes: 27 additions & 0 deletions .github/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
question:
issues:
# Post a comment, `{issue-author}` is an optional placeholder
comment: >
Hi @{issue-author},
Thanks for your question!
We want to make sure to keep signal strong in the GitHub issue tracker – to make sure
that it remains the best place to track issues that affect the development of Solana itself.
Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that
this is a bug with Solana itself, please post your question to the Solana Stack Exchange
using this link: https://solana.stackexchange.com/questions/ask
---
_This
[automated message](https://github.com/solana-labs/solana-program-library/blob/master/.github/label-actions.yml)
is a result of having added the ‘question’ tag_.
# Close the issue
close: true
15 changes: 15 additions & 0 deletions .github/workflows/label-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "Issue Label Actions"

on:
issues:
types: [labeled, unlabeled]

permissions:
contents: read
issues: write

jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/label-actions@v2
15 changes: 14 additions & 1 deletion .github/workflows/pull-request-name-service.yml
Original file line number Diff line number Diff line change
@@ -57,10 +57,18 @@ jobs:
- name: Build and test
run: ./ci/cargo-test-sbf.sh name-service

- name: Upload programs
uses: actions/upload-artifact@v2
with:
name: name-service-programs
path: "target/deploy/*.so"
if-no-files-found: error

js-test:
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ env.NODE_VERSION }}
@@ -73,4 +81,9 @@ jobs:
key: node-${{ hashFiles('name-service/js/yarn.lock') }}
restore-keys: |
node-
- name: Download programs
uses: actions/download-artifact@v2
with:
name: name-service-programs
path: target/deploy
- run: ./ci/js-test-name-service.sh
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ jobs:
js-test:
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-token-swap.yml
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ jobs:
js-test:
runs-on: ubuntu-latest
env:
NODE_VERSION: 14.x
NODE_VERSION: 16.x
needs: cargo-test-sbf
steps:
- uses: actions/checkout@v2
13 changes: 9 additions & 4 deletions .github/workflows/pull-request-token.yml
Original file line number Diff line number Diff line change
@@ -64,6 +64,9 @@ jobs:
- name: Build and test ATA
run: ./ci/cargo-test-sbf.sh associated-token-account

- name: Build and test transfer hook example
run: ./ci/cargo-test-sbf.sh token/transfer-hook-example

- name: Build and test token-2022 with "serde" activated
run: |
cargo +"${{ env.RUST_STABLE }}" test \
@@ -86,15 +89,15 @@ jobs:

- name: Set env vars
run: |
echo "RUST_STABLE_VERSION=1.65.0" >> $GITHUB_ENV
echo "RUST_STABLE_VERSION=1.66.1" >> $GITHUB_ENV
source ci/rust-version.sh
echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV
source ci/solana-version.sh
echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_STABLE }}
toolchain: ${{ env.RUST_STABLE_VERSION }}
override: true
profile: minimal

@@ -103,7 +106,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE }}
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE_VERSION }}

- name: Install dependencies
run: |
@@ -114,7 +117,9 @@ jobs:
- name: Build and test token-2022 twoxtx (TEMPORARY)
run: |
./token/twoxtx-setup.sh
./ci/cargo-test-sbf.sh token/program-2022-test
./token/twoxtx-solana/cargo-build-sbf --manifest-path token/program-2022/Cargo.toml
./token/twoxtx-solana/cargo-build-sbf --manifest-path instruction-padding/program/Cargo.toml
./token/twoxtx-solana/cargo-test-sbf --manifest-path token/program-2022-test/Cargo.toml -- --nocapture
js-test:
runs-on: ubuntu-latest
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -99,7 +99,7 @@ jobs:
uses: actions-rs/install@v0.1
with:
crate: cargo-audit
version: latest
version: 0.17.5 # TODO use latest once repo uses Rust v1.63+

- name: Run Cargo Audit
run: ./ci/do-audit.sh
1 change: 1 addition & 0 deletions .github/workflows/spl_action.yml
Original file line number Diff line number Diff line change
@@ -24,3 +24,4 @@ jobs:
./build.sh
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }}
4 changes: 3 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
anchor_version = "0.24.2"
solana_version = "1.14.10"
solana_version = "1.14.12"

[workspace]
members = [
"governance/program",
"governance/chat/program",
"memo/program",
"stake-pool/program",
"token/program",
@@ -19,6 +20,7 @@ wallet = "~/.config/solana/id.json"

[programs.mainnet]
spl_governance = "GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw"
spl_governance_chat = "gCHAtYKrUUktTVzE4hEnZdLV4LXrdBf6Hh9qMaJALET"
spl_stake_pool = "SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy"
spl_token = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
spl_token_2022 = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
Loading