starbases/actions
Interfaces
Section titled “Interfaces”PlanRegisterStarbasePlayerOptions
Section titled “PlanRegisterStarbasePlayerOptions”Defined in: packages/sage/src/starbases/actions/index.ts:69
Address-only StarbasePlayer registration input.
The funder is the sole required signer and pays account rent. Reusing the later assembly fee payer is convenient, but the planner does not require the two addresses to match.
Example
Section titled “Example”declare const funder: Address;const options: PlanRegisterStarbasePlayerOptions = { funder };Properties
Section titled “Properties”funder
Section titled “funder”readonly funder: Address;Defined in: packages/sage/src/starbases/actions/index.ts:70
Functions
Section titled “Functions”planRegisterStarbasePlayer()
Section titled “planRegisterStarbasePlayer()”function planRegisterStarbasePlayer( ctx, character, system,input): Promise<Plan>;Defined in: packages/sage/src/starbases/actions/index.ts:197
Plans one StarbasePlayer registration without signing, assembly, or writes.
The Character and Star System must already be loaded public snapshots. The planner derives and directly validates every plumbing account, requires the current fail-closed Starbase FactionOwnership sidecar, and returns a Plan only when the canonical StarbasePlayer address is absent. Optional faction expansion accounts use the generated omitted-account convention.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ctx | SageContext |
character | CharacterSnapshot |
system | StarSystemSnapshot |
input | PlanRegisterStarbasePlayerOptions |
Returns
Section titled “Returns”Promise<Plan>
Example
Section titled “Example”declare const ctx: SageContext;declare const character: CharacterSnapshot;declare const system: StarSystemSnapshot;declare const funder: Address;const plan = await planRegisterStarbasePlayer( ctx, character, system, { funder },);console.log(plan.describe());