Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,31 @@ jobs:
name: Soroban contracts
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: contracts
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Check if contracts exist
id: check_contracts
shell: bash
run: |
if [ -d "contracts" ] && [ -f "contracts/Cargo.toml" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "Soroban contracts moved to dedicated repo; skipping contracts gate."
echo "exists=false" >> $GITHUB_OUTPUT
fi

- name: Install pinned Rust toolchain
if: steps.check_contracts.outputs.exists == 'true'
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.91.0
components: rustfmt, clippy
targets: wasm32v1-none

- name: Cache Cargo dependencies
if: steps.check_contracts.outputs.exists == 'true'
uses: actions/cache@v4
with:
path: |
Expand All @@ -72,13 +82,21 @@ jobs:
restore-keys: ${{ runner.os }}-cargo-

- name: Check formatting
if: steps.check_contracts.outputs.exists == 'true'
working-directory: contracts
run: cargo fmt --all -- --check

- name: Run Clippy
if: steps.check_contracts.outputs.exists == 'true'
working-directory: contracts
run: cargo clippy --workspace --all-targets --locked -- -D warnings

- name: Run contract tests
if: steps.check_contracts.outputs.exists == 'true'
working-directory: contracts
run: cargo test --workspace --locked

- name: Build release WASM
if: steps.check_contracts.outputs.exists == 'true'
working-directory: contracts
run: cargo build --workspace --locked --release --target wasm32v1-none
10 changes: 7 additions & 3 deletions frontend/soroban.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const LOCAL_SDK_PATH = "./vendor/stellar-sdk.js";
const SDK_URL = "https://esm.sh/@stellar/stellar-sdk@14.5.0?bundle";

export const TESTNET = Object.freeze({
Expand All @@ -11,9 +12,12 @@ let sdkPromise;

function loadSdk() {
if (!sdkPromise) {
sdkPromise = import(SDK_URL).catch((error) => {
sdkPromise = null;
throw new Error(`Stellar SDK could not load: ${error.message}`);
sdkPromise = import(LOCAL_SDK_PATH).catch((localErr) => {
console.warn("Vendored SDK load fallback to CDN:", localErr);
return import(SDK_URL).catch((error) => {
sdkPromise = null;
throw new Error(`Stellar SDK could not load: ${error.message}`);
});
});
}
return sdkPromise;
Expand Down
3 changes: 3 additions & 0 deletions frontend/vendor/freighter-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions frontend/vendor/integrity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"version": "1.0.0",
"vendored_at": "2026-09-09T03:19:00Z",
"packages": {
"@stellar/stellar-sdk": {
"version": "14.5.0",
"source": "https://esm.sh/@stellar/stellar-sdk@14.5.0?bundle",
"vendored_file": "frontend/vendor/stellar-sdk.js",
"sha256": "sha256-a94982482ae4c644f6c485c6b121bdbb93471fb456f3ce7146d81daf64104140",
"sha384": "sha384-153704f526c9b7e4937c204c9a651bc641445c004c4ce581cc68a1377bf6d730443f6e20a6e359dd80a6a0410022e24f",
"size": 1020644
},
"@stellar/freighter-api": {
"version": "5.0.0",
"source": "https://esm.sh/@stellar/freighter-api@5.0.0?bundle",
"vendored_file": "frontend/vendor/freighter-api.js",
"sha256": "sha256-44a97accefe5e65168570784fe59efffd5211da2a56248658068dc97c67a3ae7",
"sha384": "sha384-c1e342302f7c22bfd6d4e818f44977552f86d833f24b31f71ccb00e1a5ac6f32d052ee1ec15e2933876654c1e4ec3faa",
"size": 10895
}
}
}
Loading
Loading