Skip to content

feat(common): add shared types to common crate#187

Merged
ayshadogo merged 1 commit into
Dfunder:mainfrom
wumibals:feat/162-common-types
May 29, 2026
Merged

feat(common): add shared types to common crate#187
ayshadogo merged 1 commit into
Dfunder:mainfrom
wumibals:feat/162-common-types

Conversation

@wumibals
Copy link
Copy Markdown
Contributor

Summary

Extends common/src/lib.rs with the shared types needed across all contracts:

  • CampaignStatusDraft, Active, Completed, Cancelled
  • MilestoneStatusPending, Completed, Failed
  • AssetInfo — struct with code: u32 and issuer: u32
  • ErrorCodeNotInitialized, AlreadyInitialized, Unauthorized, InvalidAmount

All types use #[contracttype] / #[contracterror] for on-chain serialization compatibility.

Related

closes #162

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@wumibals Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

@ayshadogo ayshadogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thank you for your contribution

@ayshadogo ayshadogo merged commit 29de4ae into Dfunder:main May 29, 2026
1 check failed
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.

Set up shared common library crate

2 participants