Skip to content

starbases/actions

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.

declare const funder: Address;
const options: PlanRegisterStarbasePlayerOptions = { funder };

readonly funder: Address;

Defined in: packages/sage/src/starbases/actions/index.ts:70

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.

ParameterType
ctxSageContext
characterCharacterSnapshot
systemStarSystemSnapshot
inputPlanRegisterStarbasePlayerOptions

Promise<Plan>

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());