Skip to content

Subscription hub - #374

Closed
Yunusabdul38 wants to merge 4 commits into
DistinctCodes:mainfrom
Yunusabdul38:subscription-hub-id
Closed

Subscription hub#374
Yunusabdul38 wants to merge 4 commits into
DistinctCodes:mainfrom
Yunusabdul38:subscription-hub-id

Conversation

@Yunusabdul38

@Yunusabdul38 Yunusabdul38 commented Oct 5, 2025

Copy link
Copy Markdown
Contributor

This implementation adds support for multi-location (hub) subscriptions to the Soroban smart contract. Users can now have subscriptions tied to specific hubs/locations, enabling organizations to manage memberships across multiple physical or virtual locations.

Updated Subscription Struct (types.rs)

pub struct Subscription {
    pub id: String,
    pub hub_id: String,  // NEW: Hub identifier
    pub user: Address,
    pub payment_token: Address,
    pub amount: i128,
    pub status: MembershipStatus,
    pub created_at: u64,
    pub expires_at: u64,
}

closes: #222
Screenshot 2025-10-05 at 17 48 57

@vercel

vercel Bot commented Oct 5, 2025

Copy link
Copy Markdown

@Yunusabdul38 is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[CONTRACT] Add Multi-Hub Support in Subscription Contract

2 participants