You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement on-chain CapacityBond and PaymentChannel contract integration #327
ADRs 003 and 004 specify on-chain integration with StablePaymentChannel and StakingRegistry contracts on Arbitrum Sepolia. Required for payment settlement and node registration verification.
Relabeled as poc-blocking: bootstrap depends on the registry query (per ADR 012 §Bootstrap step 3 — getActiveNodes(offset, 100) paginated lookup). Without it a freshly-installed client has no way to discover any node, so this gates #318/#320/#317.
Scope can be narrowed for PoC:
✅ StakingRegistry.getActiveNodes() paginated read (sufficient to bootstrap)
✅ Wiring alloy provider from existing rpc_url + eth_keystore config
changed the title [-]Implement on-chain StakingRegistry and PaymentChannel contract integration[/-][+]Implement on-chain CapacityBond and PaymentChannel contract integration[/+]on May 29, 2026
Title renamed StakingRegistry → CapacityBond — the operator-registry contract under the work-token rewrite of ADR 026.
The body still carries drift from when it was filed. Flagging rather than rewriting, since the final Rust shape depends on the not-yet-built PaymentChannel / CapacityBond contract APIs (#452):
ADR 004 → ADR 026. ADR 004 is superseded; tokenomics live in ADR 026.
StablePaymentChannel → PaymentChannel, USDC-only (single immutable token set at deployment, not multi-token).
registerNode(node_id, stake_amount) → capacity-bond register. The bond follows the curve k·Mbps^α against declared capacity, not a flat stake amount; isActive semantics per ADR 003.
Stake-weighted fee tiers (3% / 1.5%) are gone. Settlement routes through the 3-bucket FeeRouter (60/30/10) with served-bytes accounting; there are no stake-weighted fee tiers.
Stays blocked on the PaymentChannel contract landing under #452. Worth a full body refresh once those contracts merge.
Activity
alpergundogdu commentedon Apr 27, 2026
Relabeled as poc-blocking: bootstrap depends on the registry query (per ADR 012 §Bootstrap step 3 —
getActiveNodes(offset, 100)paginated lookup). Without it a freshly-installed client has no way to discover any node, so this gates #318/#320/#317.Scope can be narrowed for PoC:
StakingRegistry.getActiveNodes()paginated read (sufficient to bootstrap)rpc_url+eth_keystoreconfigPaymentChannelopen/close/dispute/settle — can defer until Implement EIP-712 payment voucher creation and verification #319/Implement cdn/client/v1 paid delivery protocol (StreamRequest, StreamResponse, ChunkData, vouchers) #317 landfeat(incentive): add EIP-712 voucher signing, channel state, and rate…
feat(node,cli): load eth_keystore into a live PrivateKeySigner (#406) (…
docs(adr): operator early withdrawal (withdraw-while-open) in ADR 003 (…
[-]Implement on-chain StakingRegistry and PaymentChannel contract integration[/-][+]Implement on-chain CapacityBond and PaymentChannel contract integration[/+]alpergundogdu commentedon May 29, 2026
Title renamed
StakingRegistry→CapacityBond— the operator-registry contract under the work-token rewrite of ADR 026.The body still carries drift from when it was filed. Flagging rather than rewriting, since the final Rust shape depends on the not-yet-built
PaymentChannel/CapacityBondcontract APIs (#452):StablePaymentChannel→PaymentChannel, USDC-only (single immutable token set at deployment, not multi-token).registerNode(node_id, stake_amount)→ capacity-bondregister. The bond follows the curvek·Mbps^αagainst declared capacity, not a flat stake amount;isActivesemantics per ADR 003.FeeRouter(60/30/10) with served-bytes accounting; there are no stake-weighted fee tiers.Stays blocked on the
PaymentChannelcontract landing under #452. Worth a full body refresh once those contracts merge.fix(node): address PR review — RPC-cache, parallel shutdown close, to…
fix(node): address comprehensive PR review — reverted-tx guard, valid…
feat(node): auto-settle closed PaymentChannels after the dispute wind…
feat(node): on-chain PaymentChannel seller settlement + CapacityBond …
test(node): anvil e2e harness for on-chain PaymentChannel settlement (#…
test(node): address Alper's review — anvil spawn retry + accurate clo…
test(node): anvil e2e harness for on-chain PaymentChannel settlement (#…
feat(node): seller-settlement robustness follow-ups (#751) (#781)