Skip to content

Commit f694280

Browse files
tarrencevkariyclaude
authored
Add Avnu paymaster and VRF integration (#399)
Depends on #417 Adds sidecar integration for `paymaster-service` and `vrf-server`, including CLI/config flags, bootstrap, VRF wrapping in cartridge outside execution, and paymaster profile generation with Avnu pricing. Removes custom katana paymaster/VRF crates, updates Docker to install sidecar binaries from `.tool-versions`, refreshes spec, trims the release workflow, derives a u64 VRF secret from the configured account key for `vrf-server` compatibility, and fixes paymaster/VRF CLI arg ids/defaults to avoid startup crashes. Adds unit tests for sidecar helpers and VRF seed/parsing to improve coverage. Tests: `cargo check -p katana-node --features cartridge`, `cargo test -p katana-node --features cartridge`, `cargo test -p katana-rpc-server --features cartridge --lib`, `cargo test -p katana-rpc-server --features cartridge --test paymaster_proxy`, `cargo test -p katana-cli --features cartridge`. **Paymaster service**: https://github.com/avnu-labs/paymaster/tree/main/crates/paymaster-service **VRF Service**: https://github.com/cartridge-gg/vrf/tree/main/server --------- Co-authored-by: Ammar Arif <kariy@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Ammar Arif <evergreenkary@gmail.com>
1 parent 9c32a1c commit f694280

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4711
-3096
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ jobs:
208208
if: ${{ matrix.job.native_build == false }}
209209
shell: bash
210210
run: |
211-
cargo build --bin katana --profile performance --target ${{ matrix.job.target }}
211+
cargo build -p katana --bin katana --profile performance --target ${{ matrix.job.target }}
212212
213213
- name: Build binary ( w/ cairo-native )
214214
if: ${{ matrix.job.native_build == true }}
215215
shell: bash
216216
run: |
217-
cargo build --bin katana --profile performance --features native --target ${{ matrix.job.target }}
217+
cargo build -p katana --bin katana --profile performance --features native --target ${{ matrix.job.target }}
218218
219219
- name: Archive binaries
220220
id: artifacts

.gitmodules

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
path = crates/explorer/ui
1313
url = https://github.com/cartridge-gg/explorer
1414
branch = main
15-
[submodule "contracts/vrf"]
16-
path = contracts/vrf
17-
url = https://github.com/cartridge-gg/vrf
1815
[submodule "crates/cartridge/controller"]
1916
path = crates/cartridge/controller
2017
url = https://github.com/cartridge-gg/controller-rs.git
18+
[submodule "crates/contracts/contracts/vrf"]
19+
path = crates/contracts/contracts/vrf
20+
url = https://github.com/cartridge-gg/vrf.git
21+
[submodule "crates/contracts/contracts/avnu"]
22+
path = crates/contracts/contracts/avnu
23+
url = https://github.com/avnu-labs/paymaster

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
scarb 2.15.0
22
katana 1.7.0
3+
vrf 0.3.1
4+
paymaster 0.2.3

0 commit comments

Comments
 (0)