Skip to content

feat(channel-auth): wrap asset enable/disable + refresh artifacts for core 0.3.0#36

Merged
AquiGorka merged 1 commit into
mainfrom
feat/asset-lifecycle-0.3.0
Jun 17, 2026
Merged

feat(channel-auth): wrap asset enable/disable + refresh artifacts for core 0.3.0#36
AquiGorka merged 1 commit into
mainfrom
feat/asset-lifecycle-0.3.0

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

Why

soroban-core 0.3.0 (PR #33) adds quorum-gated enable_channel / disable_channel to the Channel Auth contract, plus a ChannelStateChanged event and an expanded error enum. The SDK bundles the contract artifacts + method map, so it has to track the new core version — same cascade as #34 ("update contract artifacts for latest core").

Changes

  • channel-auth: add enable_channel / disable_channel to AuthInvokeMethods; add EnableChannelInput / DisableChannelInput (both { channel, asset }) to AuthInvoke; regenerate AuthSpec from the 0.3.0 contract (18 → 22 entries — the two new fns, ChannelStateChanged, and the expanded MoonlightError).
  • artifacts: refresh test/contracts/channel_auth_contract.wasm + privacy_channel.wasm from the 0.3.0 build (privacy-channel's hash changed via the shared error enum).
  • version: 0.9.1 → 0.10.0.

Verification

  • deno fmt --check (103 files) / deno lint / deno check mod.ts / deno task test:unit16 passed, 0 failed.
  • Spec entries extracted from stellar contract bindings against the freshly-built 0.3.0 WASM (which exports enable_channel/disable_channel).

Merge ordering

Merge after soroban-core #33 releases, so the bundled artifacts match the published 0.3.0 contract. On merge this auto-publishes @moonlight/moonlight-sdk@0.10.0 to JSR; consumers (provider-platform, pay-platform, local-dev) then bump to ^0.10.0.

… core 0.3.0

soroban-core 0.3.0 adds quorum-gated `enable_channel` / `disable_channel`
to the Channel Auth contract (+ `ChannelStateChanged` event and an expanded
error enum). Track it the same way as #34:

- channel-auth: add `enable_channel` / `disable_channel` to AuthInvokeMethods,
  EnableChannelInput / DisableChannelInput to types, and regenerate AuthSpec
  from the 0.3.0 contract (18 → 22 spec entries: new fns, ChannelStateChanged,
  expanded MoonlightError).
- refresh compiled `channel_auth_contract.wasm` + `privacy_channel.wasm`
  artifacts from the 0.3.0 build (privacy-channel changed via the shared
  error enum).

version: 0.9.1 -> 0.10.0
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AquiGorka AquiGorka merged commit 16124c2 into main Jun 17, 2026
2 checks passed
@AquiGorka AquiGorka deleted the feat/asset-lifecycle-0.3.0 branch June 17, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant