Skip to content
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/first-swap-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: First swap example
on:
pull_request:
paths:
- 'shield-swap-sdk/examples/first-swap/**'
- 'shield-swap-sdk/pyproject.toml'
- 'shield-swap-sdk/python/**'
- 'sdk/python/**'
- '.github/workflows/first-swap-example.yml'
push:
paths:
- 'shield-swap-sdk/examples/first-swap/**'
- 'shield-swap-sdk/pyproject.toml'
- 'shield-swap-sdk/python/**'
- 'sdk/python/**'
- '.github/workflows/first-swap-example.yml'
jobs:
offline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: python -m pip wheel --no-deps ./shield-swap-sdk -w /tmp/first-swap-wheel
- name: Check packaged example and exclude state
run: |
python - <<'PY'
from pathlib import Path
from zipfile import ZipFile
wheel = next(Path('/tmp/first-swap-wheel').glob('*.whl'))
with ZipFile(wheel) as archive:
examples = sorted(name for name in archive.namelist() if '/examples/' in name)
assert examples == [
'aleo_shield_swap/examples/first_swap/README.md',
'aleo_shield_swap/examples/first_swap/swap.py',
], examples
compile(archive.read(examples[1]), examples[1], 'exec')
PY
4 changes: 2 additions & 2 deletions .github/workflows/sdk-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
args: --release --out dist --features mainnet
sccache: 'true'
manylinux: ${{ startsWith(matrix.platform.name, 'linux') && '2_28' || 'auto' }}
# The manylinux container needs git (snarkvm is a git dependency)
# and cmake + a C toolchain (aws-lc-sys builds C sources).
# Install build tools in the manylinux container.
# aws-lc-sys needs cmake and a C toolchain.
before-script-linux: |
if command -v dnf &> /dev/null; then
dnf install -y git cmake clang
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Aleo Python SDK — Agent Guide

Python SDK for Aleo: PyO3 bindings over **snarkvm v4.9.1** plus pure-Python
Python SDK for Aleo: PyO3 bindings over **snarkvm v4.10.0** plus pure-Python
client / record-scanner / delegated-proving layers and a Web3.py-style facade.
Two shipped packages:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,6 @@ assert signature.verify(key.address, b"hello")
`aleo.testnet` provides the corresponding types when the testnet extension is
built. Match the types and client to the intended network.

The SDK uses snarkVM 4.9.1. The repository also contains [zkML tooling](zkml/)
The SDK uses snarkVM 4.10.0. The repository also contains [zkML tooling](zkml/)
for translating Python machine-learning models into Leo and
[zkML research](zkml-research/) on model accuracy and constraint costs.
Loading
Loading