Skip to content

Add key factory contract for standardised creator key deployment #995

Description

@Chucks1093

Summary

Build a key factory contract that deploys new creator key contract instances with validated configuration, ensuring all keys conform to platform standards at creation time.

Scope

  • deploy_key(config) — deploys new key contract with validated params
  • Config validation: name, symbol, curve params, fee structure, supply cap
  • Emits KeyDeployed event with new contract address and creator
  • Factory registry maps creator wallet to deployed key addresses
  • get_keys_by_creator(wallet) — returns all deployed key addresses

Acceptance Criteria

  • deploy_key rejects invalid configs with descriptive errors
  • Deployed key contract initialised with correct config
  • KeyDeployed event includes contract address and creator
  • Registry correctly maps creator to all their deployed keys
  • get_keys_by_creator returns correct addresses in deployment order

ETA

24 hours

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions