Documentation Index
Fetch the complete documentation index at: https://vowena.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Name | Type | Description |
|---|---|---|
subscriber | Address | The subscriber’s Stellar address. Must sign the transaction. |
sub_id | u64 | The old subscription ID with a pending migration. |
Authorization
accept_migration() call, the old subscription cancellation, and the new token.approve() for the target plan.
Return value
u64 - the new subscription ID on the target plan.
Events emitted
| Event | Topics | Data |
|---|---|---|
mig_accept | subscriber, old_sub_id, new_sub_id | Migration details |
Error cases
| Code | Name | Description |
|---|---|---|
| 9 | Unauthorized | Caller is not the subscriber on this subscription. |
| 12 | NoMigrationPending | No migration has been requested for this subscription. |
Examples
- SDK
- Soroban CLI
The new subscription inherits the subscriber’s billing history context but starts fresh on the new plan’s terms. The old subscription is permanently cancelled. The new allowance is calculated based on the new plan’s
price_ceiling and max_periods.