Skip to content

link_topologies: Vec<Pubkey> on Link account #3345

@ben-malbeclabs

Description

@ben-malbeclabs

Append link_topologies: Vec<Pubkey> (cap 8) to the serviceability Link account. Foundation-only write restriction. Validate pubkeys against TopologyInfo accounts on set.

Milestone: RFC-18: Onchain Foundation
RFC: #3288


Files affected:

  • smartcontract/programs/doublezero-serviceability/src/state/link.rs
  • smartcontract/programs/doublezero-serviceability/src/processors/link/

Size: Small

Tests:

  • Invalid pubkey rejected
  • Empty vec accepted
  • Cap of 8 enforced
  • Non-foundation key rejected

Blockers: #3344 (TopologyInfo account)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions