@aephia/atlas-kit 0.6.0-next.162 → 0.6.0-next.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/contracts.d.ts +1 -1
- package/dist/client/contracts.d.ts.map +1 -1
- package/dist/fleets/actions/deployment-storage.d.ts +161 -0
- package/dist/fleets/actions/deployment-storage.d.ts.map +1 -0
- package/dist/fleets/actions/deployment-storage.js +297 -0
- package/dist/fleets/actions/deployment-storage.js.map +1 -0
- package/dist/fleets/actions/index.d.ts +1 -0
- package/dist/fleets/actions/index.d.ts.map +1 -1
- package/dist/fleets/actions/index.js +1 -0
- package/dist/fleets/actions/index.js.map +1 -1
- package/dist/identity/index.d.ts +58 -0
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +58 -0
- package/dist/identity/index.js.map +1 -1
- package/dist/internal/c4/career-xp.d.ts +58 -0
- package/dist/internal/c4/career-xp.d.ts.map +1 -0
- package/dist/internal/c4/career-xp.js +80 -0
- package/dist/internal/c4/career-xp.js.map +1 -0
- package/dist/internal/c4/fleet-creation.d.ts +9 -2
- package/dist/internal/c4/fleet-creation.d.ts.map +1 -1
- package/dist/internal/c4/fleet-creation.js +12 -6
- package/dist/internal/c4/fleet-creation.js.map +1 -1
- package/dist/internal/c4/fleet-disband.d.ts +14 -0
- package/dist/internal/c4/fleet-disband.d.ts.map +1 -1
- package/dist/internal/c4/fleet-disband.js +37 -14
- package/dist/internal/c4/fleet-disband.js.map +1 -1
- package/package.json +1 -1
|
@@ -57,7 +57,7 @@ export type SageWriteRpc = Rpc<GetBlockHeightApi & GetLatestBlockhashApi & GetFe
|
|
|
57
57
|
* const type: EntityType = 'fleet';
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
export type EntityType = 'game' | 'profile' | 'profileFaction' | 'character' | 'fleet' | 'fleetCrewBinding' | 'starSystem' | 'celestialBody' | 'starbasePlayer' | 'starbaseUpgradeProcess' | 'cargoPod' | 'claimStakeInstance' | 'recipe' | 'craftingHabInstance' | 'craftingProcess' | 'market' | 'marketOrder' | 'scanPattern' | 'scanSignal' | 'scanPatternPolicy' | 'scanLootProfile' | 'loot' | 'outlawFlag' | 'atlasRewardRegistry' | 'atlasRewardConfig' | 'atlasRewardTreasury' | 'faction' | 'factionConfig' | 'factionEconomicsConfig' | 'factionRelationTracker' | 'factionStanding' | 'factionTreasury' | 'factionOwnership' | 'kingSystemTracker' | 'regionTracker' | 'loyaltyEpoch' | 'loyaltyContribution' | 'loyaltyAtlasBank';
|
|
60
|
+
export type EntityType = 'game' | 'profile' | 'profileFaction' | 'character' | 'fleet' | 'fleetCrewBinding' | 'starSystem' | 'celestialBody' | 'starbasePlayer' | 'starbaseUpgradeProcess' | 'cargoPod' | 'claimStakeInstance' | 'recipe' | 'craftingHabInstance' | 'craftingProcess' | 'market' | 'marketOrder' | 'scanPattern' | 'scanSignal' | 'scanPatternPolicy' | 'scanLootProfile' | 'loot' | 'outlawFlag' | 'atlasRewardRegistry' | 'atlasRewardConfig' | 'atlasRewardTreasury' | 'faction' | 'factionConfig' | 'factionEconomicsConfig' | 'factionRelationTracker' | 'factionStanding' | 'factionTreasury' | 'factionOwnership' | 'kingSystemTracker' | 'regionTracker' | 'loyaltyEpoch' | 'loyaltyContribution' | 'loyaltyAtlasBank' | 'careerXpBudget' | 'xpBudgetConfig';
|
|
61
61
|
/** A known deployment preset supported by the installed SDK version.
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/client/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,IAAI,UAAU,EACrB,UAAU,IAAI,aAAa,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,GAAG,EACH,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC;AAEjC;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GAAG,GAAG,CACvB,iBAAiB,GAAG,sBAAsB,GAAG,qBAAqB,CACnE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,YAAY,GAAG,GAAG,CAC5B,iBAAiB,GACf,qBAAqB,GACrB,mBAAmB,GACnB,sBAAsB,GACtB,kBAAkB,GAClB,uBAAuB,CAC1B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,SAAS,GACT,gBAAgB,GAChB,WAAW,GACX,OAAO,GACP,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,wBAAwB,GACxB,UAAU,GACV,oBAAoB,GACpB,QAAQ,GACR,qBAAqB,GACrB,iBAAiB,GACjB,QAAQ,GACR,aAAa,GACb,aAAa,GACb,YAAY,GACZ,mBAAmB,GACnB,iBAAiB,GACjB,MAAM,GACN,YAAY,GACZ,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GACrB,SAAS,GACT,eAAe,GACf,wBAAwB,GACxB,wBAAwB,GACxB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,eAAe,GACf,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/client/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,IAAI,UAAU,EACrB,UAAU,IAAI,aAAa,EAC3B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IACjC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,WAAW,CAAC,SAAS;IACpC,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,IAAI,EACX,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,YAAY,GAAG,WAAW,CAAC;IAC5E,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;CACnC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { type Address } from '@solana/kit';
|
|
2
|
+
import type { SageContext } from '../../client/contracts.js';
|
|
3
|
+
/** A proposed Fleet deployment, sized before any of it runs.
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* declare const starbasePlayer: Address;
|
|
7
|
+
* const input: FleetDeploymentStorageInput = {
|
|
8
|
+
* starbasePlayer,
|
|
9
|
+
* label: 'Miner 6',
|
|
10
|
+
* ships: [{ shipId: 1301, amount: 1n }],
|
|
11
|
+
* cargoIds: [7560],
|
|
12
|
+
* };
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export interface FleetDeploymentStorageInput {
|
|
16
|
+
/** The StarbasePlayer the Fleet is created at; it holds the hulls,
|
|
17
|
+
* components and cargo the deployment draws on. */
|
|
18
|
+
readonly starbasePlayer: Address;
|
|
19
|
+
/** An owned Fleet Docked at the same Starbase to disband first. */
|
|
20
|
+
readonly disband?: Address;
|
|
21
|
+
/** The new Fleet's label. With it, the estimate reads the Fleet's address
|
|
22
|
+
* and credits lamports already sent there; without it, the Fleet is assumed
|
|
23
|
+
* to hold none. */
|
|
24
|
+
readonly label?: string;
|
|
25
|
+
/** Ship configurations to add, one assembly per entry, in order. */
|
|
26
|
+
readonly ships: readonly {
|
|
27
|
+
readonly shipId: number;
|
|
28
|
+
readonly amount: bigint;
|
|
29
|
+
}[];
|
|
30
|
+
/** Cargo ids loaded into the new Fleet's cargo hold. Fuel and ammo use fixed
|
|
31
|
+
* slots, so leaving them out tightens the bound. */
|
|
32
|
+
readonly cargoIds?: readonly number[];
|
|
33
|
+
}
|
|
34
|
+
/** One account a deployment stage resizes or settles at an unchanged size.
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* declare const account: FleetDeploymentStorageAccount;
|
|
38
|
+
* console.log(account.sizeAfter - account.sizeBefore, account.rentMinimum);
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export interface FleetDeploymentStorageAccount {
|
|
42
|
+
readonly account: 'fleet' | 'starbasePlayer';
|
|
43
|
+
/** Undefined for the new Fleet when no label was given. */
|
|
44
|
+
readonly address: Address | undefined;
|
|
45
|
+
readonly sizeBefore: number;
|
|
46
|
+
readonly sizeAfter: number;
|
|
47
|
+
/** Rent minimum of the account at `sizeAfter`, in lamports. */
|
|
48
|
+
readonly rentMinimum: bigint;
|
|
49
|
+
}
|
|
50
|
+
/** One stage of a Fleet deployment and its gross Profile storage debit.
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* declare const stage: FleetDeploymentStorageStage;
|
|
54
|
+
* if (stage.kind === 'add-ships') console.log(stage.shipId, stage.profileDebit);
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export type FleetDeploymentStorageStage = {
|
|
58
|
+
readonly accounts: readonly FleetDeploymentStorageAccount[];
|
|
59
|
+
/** Upper bound on the lamports this stage withdraws from the Profile. */
|
|
60
|
+
readonly profileDebit: bigint;
|
|
61
|
+
} & ({
|
|
62
|
+
readonly kind: 'disband';
|
|
63
|
+
readonly fleet: Address;
|
|
64
|
+
} | {
|
|
65
|
+
readonly kind: 'create';
|
|
66
|
+
} | {
|
|
67
|
+
readonly kind: 'add-ships';
|
|
68
|
+
readonly shipId: number;
|
|
69
|
+
readonly amount: bigint;
|
|
70
|
+
} | {
|
|
71
|
+
readonly kind: 'load-cargo';
|
|
72
|
+
readonly cargoIds: readonly number[];
|
|
73
|
+
});
|
|
74
|
+
/** A requirement the deployment needs that the Character or StarbasePlayer
|
|
75
|
+
* does not meet today. `stage` indexes `stages`.
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* declare const prerequisite: FleetDeploymentPrerequisite;
|
|
79
|
+
* console.log(prerequisite.kind, prerequisite.message);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
export interface FleetDeploymentPrerequisite {
|
|
83
|
+
readonly kind: 'fleet-slot' | 'ship-size' | 'research' | 'fleet-size' | 'components';
|
|
84
|
+
readonly stage: number;
|
|
85
|
+
readonly message: string;
|
|
86
|
+
}
|
|
87
|
+
/** Storage a proposed Fleet deployment needs, stage by stage.
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* declare const estimate: FleetDeploymentStorageEstimate;
|
|
91
|
+
* console.log(estimate.totalProfileDebit, estimate.unmetPrerequisites.length);
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
export interface FleetDeploymentStorageEstimate {
|
|
95
|
+
readonly stages: readonly FleetDeploymentStorageStage[];
|
|
96
|
+
/** Sum of the stage debits. No refund or freed storage is credited, so this
|
|
97
|
+
* is also the peak the Profile must hold above its own rent reserve. */
|
|
98
|
+
readonly totalProfileDebit: bigint;
|
|
99
|
+
readonly unmetPrerequisites: readonly FleetDeploymentPrerequisite[];
|
|
100
|
+
readonly profile: Address;
|
|
101
|
+
readonly character: Address;
|
|
102
|
+
/** Slot of the StarbasePlayer read the estimate is based on. */
|
|
103
|
+
readonly observedSlot: bigint;
|
|
104
|
+
readonly rent: {
|
|
105
|
+
readonly lamportsPerByteYear: bigint;
|
|
106
|
+
readonly exemptionThreshold: number;
|
|
107
|
+
};
|
|
108
|
+
readonly profileUnit: 'lamports';
|
|
109
|
+
readonly transactionFees: 'excluded';
|
|
110
|
+
readonly characterResync: 'excluded';
|
|
111
|
+
toJSON(): unknown;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Estimates the Profile storage funding a proposed Fleet deployment needs
|
|
115
|
+
* before any of it runs: optionally disbanding a Docked Fleet, creating an
|
|
116
|
+
* empty Fleet, adding ship configurations in order (with their components) and
|
|
117
|
+
* loading its initial cargo hold. Each stage reports the accounts it settles,
|
|
118
|
+
* their sizes and rent minimums, and an upper bound on its Profile debit.
|
|
119
|
+
*
|
|
120
|
+
* Verified against the program's behaviour: each stage sets every resized
|
|
121
|
+
* account to the rent minimum of its new size, withdrawing a shortfall from
|
|
122
|
+
* the Profile. A disband grows the StarbasePlayer by a hangar entry per ship id
|
|
123
|
+
* and a cargo line per cargo id it lacks. Creation funds the empty Fleet less
|
|
124
|
+
* any lamports already at its address. Each assembly adds a ship line and the
|
|
125
|
+
* configuration's component lines to the Fleet, and a hangar entry to the
|
|
126
|
+
* StarbasePlayer when it has none for that configuration; it settles the
|
|
127
|
+
* StarbasePlayer's rent even when its size is unchanged. Loading cargo adds a
|
|
128
|
+
* cargo hold line per new cargo id; loading crew resizes nothing, so it has no
|
|
129
|
+
* stage. Observed balances count for the first stage that touches an account;
|
|
130
|
+
* later stages assume it was left at its rent minimum. The disbanded Fleet's
|
|
131
|
+
* refund, lines that empty and any other freed storage are never credited.
|
|
132
|
+
*
|
|
133
|
+
* Unmet Character or StarbasePlayer requirements (a free Fleet slot, maximum
|
|
134
|
+
* ship size, research, Fleet size, components) are listed, not enforced, so a
|
|
135
|
+
* roster can be sized before it is eligible. A roster no Character can field
|
|
136
|
+
* (above the Game's Fleet size, or too many Commanders or Titans) is refused.
|
|
137
|
+
* Hull availability, transaction fees, the Profile's own rent reserve and a
|
|
138
|
+
* Character resynchronization are not included. Plan each real stage with its
|
|
139
|
+
* planner after the previous one confirms.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```ts
|
|
143
|
+
* import { estimateFleetDeploymentStorage } from '@aephia/atlas-kit/fleets/actions';
|
|
144
|
+
*
|
|
145
|
+
* declare const ctx: SageContext;
|
|
146
|
+
* declare const starbasePlayer: Address;
|
|
147
|
+
* declare const oldFleet: Address;
|
|
148
|
+
* const estimate = await estimateFleetDeploymentStorage(ctx, {
|
|
149
|
+
* starbasePlayer,
|
|
150
|
+
* disband: oldFleet,
|
|
151
|
+
* label: 'Miner 6',
|
|
152
|
+
* ships: [{ shipId: 1301, amount: 1n }],
|
|
153
|
+
* cargoIds: [7560],
|
|
154
|
+
* });
|
|
155
|
+
* for (const stage of estimate.stages) console.log(stage.kind, stage.profileDebit);
|
|
156
|
+
* for (const missing of estimate.unmetPrerequisites) console.log(missing.message);
|
|
157
|
+
* console.log(`Profile needs ${estimate.totalProfileDebit} lamports above its reserve`);
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
export declare function estimateFleetDeploymentStorage(ctx: SageContext, input: FleetDeploymentStorageInput): Promise<FleetDeploymentStorageEstimate>;
|
|
161
|
+
//# sourceMappingURL=deployment-storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-storage.d.ts","sourceRoot":"","sources":["../../../src/fleets/actions/deployment-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAiC7D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,2BAA2B;IAC1C;uDACmD;IACnD,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC,mEAAmE;IACnE,QAAQ,CA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+
import { readContextRawAccounts } from '../../client/reconciliation.js';
|
|
4
|
+
import { requireGameAddress } from '../../internal/game-context.js';
|
|
5
|
+
import { attachJsonSerialization } from '../../internal/json.js';
|
|
6
|
+
import { characterAccountDefinition } from '../../internal/c4/character.js';
|
|
7
|
+
import { fleetAccountDefinition } from '../../internal/c4/fleet.js';
|
|
8
|
+
import { deriveFleetCreationAddress, emptyDockedFleetSize, } from '../../internal/c4/fleet-creation.js';
|
|
9
|
+
import { decodeCanonicalStarbasePlayer, starbasePlayerSize, withDisbandedFleet, withHangarEntry, } from '../../internal/c4/fleet-disband.js';
|
|
10
|
+
import { MAX_COMMANDERS_AND_TITANS_PER_FLEET, MAX_TITANS_PER_FLEET, fleetCapacityPoints, shipSizeName, shipSizeRank, } from '../../internal/c4/fleet-ship-assembly.js';
|
|
11
|
+
import { decodeCanonicalFleet } from '../../internal/c4/fleet-storage.js';
|
|
12
|
+
import { starbasePlayerAccountDefinition } from '../../internal/c4/starbase.js';
|
|
13
|
+
import { validateFleetCreationLabel } from '../../internal/planning/fleet-creation.js';
|
|
14
|
+
import { RENT_ADDRESS, readRent } from '../../internal/planning/rent.js';
|
|
15
|
+
import { readFreshGameShipAssemblyCatalog } from '../../registry/ships.js';
|
|
16
|
+
const SYSTEM_PROGRAM = '11111111111111111111111111111111';
|
|
17
|
+
function readInput(input) {
|
|
18
|
+
const bad = () => {
|
|
19
|
+
throw new InvalidActionInputError('input', input, 'starbasePlayer, optional disband and label, ships as { shipId: u16, amount: 1n through 255n }[] with at least one entry, and optional u16 cargoIds', 'Describe the proposed deployment with addresses, ship configuration ids and cargo ids only, then estimate again.');
|
|
20
|
+
};
|
|
21
|
+
if (typeof input !== 'object' || input === null)
|
|
22
|
+
return bad();
|
|
23
|
+
const value = input;
|
|
24
|
+
const allowed = ['starbasePlayer', 'disband', 'label', 'ships', 'cargoIds'];
|
|
25
|
+
const u16 = (id) => typeof id === 'number' && Number.isInteger(id) && id >= 0 && id <= 65535;
|
|
26
|
+
if (Object.keys(value).some((key) => !allowed.includes(key)) ||
|
|
27
|
+
typeof value.starbasePlayer !== 'string' ||
|
|
28
|
+
!isAddress(value.starbasePlayer) ||
|
|
29
|
+
(value.disband !== undefined &&
|
|
30
|
+
(typeof value.disband !== 'string' || !isAddress(value.disband))) ||
|
|
31
|
+
!Array.isArray(value.ships) ||
|
|
32
|
+
value.ships.length === 0 ||
|
|
33
|
+
!value.ships.every((ship) => typeof ship === 'object' &&
|
|
34
|
+
ship !== null &&
|
|
35
|
+
Object.keys(ship).every((key) => key === 'shipId' || key === 'amount') &&
|
|
36
|
+
u16(ship.shipId) &&
|
|
37
|
+
typeof ship.amount === 'bigint' &&
|
|
38
|
+
ship.amount >= 1n &&
|
|
39
|
+
ship.amount <= 255n) ||
|
|
40
|
+
(value.cargoIds !== undefined &&
|
|
41
|
+
(!Array.isArray(value.cargoIds) || !value.cargoIds.every(u16))))
|
|
42
|
+
return bad();
|
|
43
|
+
if (value.label !== undefined)
|
|
44
|
+
validateFleetCreationLabel(value.label);
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
function refuse(message) {
|
|
48
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', message);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Estimates the Profile storage funding a proposed Fleet deployment needs
|
|
52
|
+
* before any of it runs: optionally disbanding a Docked Fleet, creating an
|
|
53
|
+
* empty Fleet, adding ship configurations in order (with their components) and
|
|
54
|
+
* loading its initial cargo hold. Each stage reports the accounts it settles,
|
|
55
|
+
* their sizes and rent minimums, and an upper bound on its Profile debit.
|
|
56
|
+
*
|
|
57
|
+
* Verified against the program's behaviour: each stage sets every resized
|
|
58
|
+
* account to the rent minimum of its new size, withdrawing a shortfall from
|
|
59
|
+
* the Profile. A disband grows the StarbasePlayer by a hangar entry per ship id
|
|
60
|
+
* and a cargo line per cargo id it lacks. Creation funds the empty Fleet less
|
|
61
|
+
* any lamports already at its address. Each assembly adds a ship line and the
|
|
62
|
+
* configuration's component lines to the Fleet, and a hangar entry to the
|
|
63
|
+
* StarbasePlayer when it has none for that configuration; it settles the
|
|
64
|
+
* StarbasePlayer's rent even when its size is unchanged. Loading cargo adds a
|
|
65
|
+
* cargo hold line per new cargo id; loading crew resizes nothing, so it has no
|
|
66
|
+
* stage. Observed balances count for the first stage that touches an account;
|
|
67
|
+
* later stages assume it was left at its rent minimum. The disbanded Fleet's
|
|
68
|
+
* refund, lines that empty and any other freed storage are never credited.
|
|
69
|
+
*
|
|
70
|
+
* Unmet Character or StarbasePlayer requirements (a free Fleet slot, maximum
|
|
71
|
+
* ship size, research, Fleet size, components) are listed, not enforced, so a
|
|
72
|
+
* roster can be sized before it is eligible. A roster no Character can field
|
|
73
|
+
* (above the Game's Fleet size, or too many Commanders or Titans) is refused.
|
|
74
|
+
* Hull availability, transaction fees, the Profile's own rent reserve and a
|
|
75
|
+
* Character resynchronization are not included. Plan each real stage with its
|
|
76
|
+
* planner after the previous one confirms.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* import { estimateFleetDeploymentStorage } from '@aephia/atlas-kit/fleets/actions';
|
|
81
|
+
*
|
|
82
|
+
* declare const ctx: SageContext;
|
|
83
|
+
* declare const starbasePlayer: Address;
|
|
84
|
+
* declare const oldFleet: Address;
|
|
85
|
+
* const estimate = await estimateFleetDeploymentStorage(ctx, {
|
|
86
|
+
* starbasePlayer,
|
|
87
|
+
* disband: oldFleet,
|
|
88
|
+
* label: 'Miner 6',
|
|
89
|
+
* ships: [{ shipId: 1301, amount: 1n }],
|
|
90
|
+
* cargoIds: [7560],
|
|
91
|
+
* });
|
|
92
|
+
* for (const stage of estimate.stages) console.log(stage.kind, stage.profileDebit);
|
|
93
|
+
* for (const missing of estimate.unmetPrerequisites) console.log(missing.message);
|
|
94
|
+
* console.log(`Profile needs ${estimate.totalProfileDebit} lamports above its reserve`);
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export async function estimateFleetDeploymentStorage(ctx, input) {
|
|
98
|
+
const { starbasePlayer, disband, label, ships, cargoIds = [], } = readInput(input);
|
|
99
|
+
const game = requireGameAddress(ctx);
|
|
100
|
+
const [playerRaw, rentRaw, disbandRaw] = await readContextRawAccounts(ctx, [
|
|
101
|
+
starbasePlayer,
|
|
102
|
+
RENT_ADDRESS,
|
|
103
|
+
...(disband === undefined ? [] : [disband]),
|
|
104
|
+
]);
|
|
105
|
+
if (!playerRaw)
|
|
106
|
+
refuse(`StarbasePlayer ${starbasePlayer} does not exist. Register at the Starbase where the Fleet will be created, then estimate again.`);
|
|
107
|
+
const player = starbasePlayerAccountDefinition.decode(playerRaw);
|
|
108
|
+
const profile = player.playerProfile;
|
|
109
|
+
const fleetAddress = label === undefined
|
|
110
|
+
? undefined
|
|
111
|
+
: await deriveFleetCreationAddress(game, profile, label);
|
|
112
|
+
const [{ catalog }, [characterRaw, targetRaw]] = await Promise.all([
|
|
113
|
+
readFreshGameShipAssemblyCatalog(ctx),
|
|
114
|
+
readContextRawAccounts(ctx, [
|
|
115
|
+
player.character,
|
|
116
|
+
...(fleetAddress === undefined ? [] : [fleetAddress]),
|
|
117
|
+
]),
|
|
118
|
+
]);
|
|
119
|
+
if (!characterRaw)
|
|
120
|
+
refuse(`Character ${player.character} of the StarbasePlayer does not exist. Register the Character, then estimate again.`);
|
|
121
|
+
const character = characterAccountDefinition.decode(characterRaw);
|
|
122
|
+
if (character.game !== game || character.playerProfile !== profile)
|
|
123
|
+
refuse(`The StarbasePlayer's Character belongs to another Game or Profile than the configured Game ${game} and Profile ${profile}. Select a StarbasePlayer of this Game, then estimate again.`);
|
|
124
|
+
if (!rentRaw)
|
|
125
|
+
refuse('The Rent sysvar is unavailable. Check the configured RPC endpoint, then estimate again.');
|
|
126
|
+
const rent = readRent(rentRaw);
|
|
127
|
+
const stages = [];
|
|
128
|
+
const unmet = [];
|
|
129
|
+
// The StarbasePlayer only grows in this estimate: lines a stage empties are
|
|
130
|
+
// kept, so freed storage is never credited.
|
|
131
|
+
let playerValue = decodeCanonicalStarbasePlayer(playerRaw, 'Refresh a valid StarbasePlayer before estimating a Fleet deployment.');
|
|
132
|
+
let playerSize = playerRaw.data.length;
|
|
133
|
+
let playerBalance = playerRaw.lamports;
|
|
134
|
+
const resizePlayer = (next) => {
|
|
135
|
+
const size = starbasePlayerSize(next);
|
|
136
|
+
const minimum = rent(size);
|
|
137
|
+
const account = Object.freeze({
|
|
138
|
+
account: 'starbasePlayer',
|
|
139
|
+
address: starbasePlayer,
|
|
140
|
+
sizeBefore: playerSize,
|
|
141
|
+
sizeAfter: size,
|
|
142
|
+
rentMinimum: minimum,
|
|
143
|
+
});
|
|
144
|
+
const debit = minimum > playerBalance ? minimum - playerBalance : 0n;
|
|
145
|
+
playerValue = next;
|
|
146
|
+
playerSize = size;
|
|
147
|
+
playerBalance = minimum;
|
|
148
|
+
return { account, debit };
|
|
149
|
+
};
|
|
150
|
+
let freedSlot = 0;
|
|
151
|
+
if (disband !== undefined) {
|
|
152
|
+
if (!disbandRaw)
|
|
153
|
+
refuse(`Fleet ${disband} does not exist. Select an owned Fleet Docked at this Starbase to disband, then estimate again.`);
|
|
154
|
+
const fleet = fleetAccountDefinition.decode(disbandRaw);
|
|
155
|
+
if (fleet.game !== game ||
|
|
156
|
+
fleet.ownerProfile !== profile ||
|
|
157
|
+
fleet.state.kind !== 'docked' ||
|
|
158
|
+
fleet.state.system !== player.system)
|
|
159
|
+
refuse(`Fleet ${disband} is not owned by the StarbasePlayer's Profile and Docked at its Starbase. Dock it there or estimate without disbanding it.`);
|
|
160
|
+
const { account, debit } = resizePlayer(withDisbandedFleet(decodeCanonicalFleet(disbandRaw), playerValue));
|
|
161
|
+
stages.push(Object.freeze({
|
|
162
|
+
kind: 'disband',
|
|
163
|
+
fleet: disband,
|
|
164
|
+
accounts: Object.freeze([account]),
|
|
165
|
+
profileDebit: debit,
|
|
166
|
+
}));
|
|
167
|
+
freedSlot = 1;
|
|
168
|
+
}
|
|
169
|
+
const values = character.modifiers.values;
|
|
170
|
+
if (character.counts.fleets - freedSlot >= values.fleetConcurrency)
|
|
171
|
+
unmet.push({
|
|
172
|
+
kind: 'fleet-slot',
|
|
173
|
+
stage: stages.length,
|
|
174
|
+
message: `The Character uses ${String(character.counts.fleets - freedSlot)} of ${String(values.fleetConcurrency)} Fleet slots${freedSlot ? ' after the disband' : ''}. Disband another Fleet or unlock research that raises Fleet concurrency.`,
|
|
175
|
+
});
|
|
176
|
+
if (targetRaw &&
|
|
177
|
+
(targetRaw.executable ||
|
|
178
|
+
targetRaw.owner !== SYSTEM_PROGRAM ||
|
|
179
|
+
targetRaw.data.length !== 0))
|
|
180
|
+
refuse(`The Fleet address for label ${String(label)} (${String(fleetAddress)}) already holds state. Choose a different label, then estimate again.`);
|
|
181
|
+
const fleetShips = new Map();
|
|
182
|
+
const components = new Map();
|
|
183
|
+
const cargoHold = new Map();
|
|
184
|
+
let fleetSize = emptyDockedFleetSize();
|
|
185
|
+
let fleetBalance = targetRaw?.lamports ?? 0n;
|
|
186
|
+
const resizeFleet = (sizeBefore) => {
|
|
187
|
+
const size = emptyDockedFleetSize({ fleetShips, components, cargoHold });
|
|
188
|
+
const minimum = rent(size);
|
|
189
|
+
const account = Object.freeze({
|
|
190
|
+
account: 'fleet',
|
|
191
|
+
address: fleetAddress,
|
|
192
|
+
sizeBefore,
|
|
193
|
+
sizeAfter: size,
|
|
194
|
+
rentMinimum: minimum,
|
|
195
|
+
});
|
|
196
|
+
const debit = minimum > fleetBalance ? minimum - fleetBalance : 0n;
|
|
197
|
+
fleetSize = size;
|
|
198
|
+
fleetBalance = minimum;
|
|
199
|
+
return { account, debit };
|
|
200
|
+
};
|
|
201
|
+
const created = resizeFleet(0);
|
|
202
|
+
stages.push(Object.freeze({
|
|
203
|
+
kind: 'create',
|
|
204
|
+
accounts: Object.freeze([created.account]),
|
|
205
|
+
profileDebit: created.debit,
|
|
206
|
+
}));
|
|
207
|
+
const classes = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
208
|
+
const held = new Map(playerValue.cargoPod.amounts);
|
|
209
|
+
for (const { shipId, amount } of ships) {
|
|
210
|
+
const stage = stages.length;
|
|
211
|
+
const row = catalog.rows.find((candidate) => candidate.id === shipId);
|
|
212
|
+
if (!row)
|
|
213
|
+
throw new InvalidActionInputError('ships', shipId, 'a ship configuration id in the current Game ship definitions', `Ship configuration ${String(shipId)} is not in the current Game ship definitions. Select a defined configuration, then estimate again.`);
|
|
214
|
+
const size = shipSizeName(row.sizeClass);
|
|
215
|
+
if (row.sizeClass > shipSizeRank(values.maxShipSize))
|
|
216
|
+
unmet.push({
|
|
217
|
+
kind: 'ship-size',
|
|
218
|
+
stage,
|
|
219
|
+
message: `Ship configuration ${String(shipId)} is ${size}, above the Character's maximum ship size ${values.maxShipSize}. Unlock research that raises the maximum ship size.`,
|
|
220
|
+
});
|
|
221
|
+
const missing = row.researchRequirements.filter((tag) => !values.researchTags.includes(tag));
|
|
222
|
+
if (missing.length > 0)
|
|
223
|
+
unmet.push({
|
|
224
|
+
kind: 'research',
|
|
225
|
+
stage,
|
|
226
|
+
message: `Ship configuration ${String(shipId)} requires research tags [${missing.join(', ')}] the Character lacks. Unlock the research nodes that grant them.`,
|
|
227
|
+
});
|
|
228
|
+
classes[row.sizeClass] = classes[row.sizeClass] + Number(amount);
|
|
229
|
+
const points = fleetCapacityPoints(classes);
|
|
230
|
+
if (points > catalog.maxFleetSize)
|
|
231
|
+
throw new InvalidActionInputError('ships', input.ships, `a roster within the Game's ${String(catalog.maxFleetSize)}-point Fleet limit`, `The roster uses ${String(points)} Fleet points by ship configuration ${String(shipId)}, above the Game's ${String(catalog.maxFleetSize)}-point Fleet limit. Reduce the roster, then estimate again.`);
|
|
232
|
+
if (classes[7] > MAX_TITANS_PER_FLEET ||
|
|
233
|
+
classes[6] + classes[7] > MAX_COMMANDERS_AND_TITANS_PER_FLEET)
|
|
234
|
+
throw new InvalidActionInputError('ships', input.ships, `at most ${String(MAX_TITANS_PER_FLEET)} Titan and ${String(MAX_COMMANDERS_AND_TITANS_PER_FLEET)} Commanders and Titans together`, 'A Fleet holds at most one Titan, and at most two Commanders and Titans together. Split the roster across Fleets, then estimate again.');
|
|
235
|
+
if (points > values.fleetSize)
|
|
236
|
+
unmet.push({
|
|
237
|
+
kind: 'fleet-size',
|
|
238
|
+
stage,
|
|
239
|
+
message: `The roster uses ${String(points)} Fleet points after ship configuration ${String(shipId)}, above the Character's Fleet size ${String(values.fleetSize)}. Unlock Fleet-size research or reduce the roster.`,
|
|
240
|
+
});
|
|
241
|
+
const short = [];
|
|
242
|
+
for (const [cargoId, required] of row.componentRequirements) {
|
|
243
|
+
const moved = BigInt(required) * amount;
|
|
244
|
+
const available = held.get(cargoId) ?? 0n;
|
|
245
|
+
if (available < moved)
|
|
246
|
+
short.push(`${String(moved)} of cargo ${String(cargoId)} (holds ${String(available)})`);
|
|
247
|
+
held.set(cargoId, available > moved ? available - moved : 0n);
|
|
248
|
+
components.set(cargoId, (components.get(cargoId) ?? 0n) + moved);
|
|
249
|
+
}
|
|
250
|
+
if (short.length > 0)
|
|
251
|
+
unmet.push({
|
|
252
|
+
kind: 'components',
|
|
253
|
+
stage,
|
|
254
|
+
message: `Ship configuration ${String(shipId)} needs components the StarbasePlayer does not hold: ${short.join(', ')}. Buy, craft or move them to this StarbasePlayer.`,
|
|
255
|
+
});
|
|
256
|
+
fleetShips.set(shipId, (fleetShips.get(shipId) ?? 0n) + amount);
|
|
257
|
+
const fleet = resizeFleet(fleetSize);
|
|
258
|
+
// Assembly settles the StarbasePlayer's rent even when its hangar already
|
|
259
|
+
// holds this configuration, so its balance advances on every assembly.
|
|
260
|
+
const player = resizePlayer(withHangarEntry(playerValue, shipId));
|
|
261
|
+
stages.push(Object.freeze({
|
|
262
|
+
kind: 'add-ships',
|
|
263
|
+
shipId,
|
|
264
|
+
amount,
|
|
265
|
+
accounts: Object.freeze([fleet.account, player.account]),
|
|
266
|
+
profileDebit: fleet.debit + player.debit,
|
|
267
|
+
}));
|
|
268
|
+
}
|
|
269
|
+
const loaded = [...new Set(cargoIds)];
|
|
270
|
+
if (loaded.length > 0) {
|
|
271
|
+
for (const cargoId of loaded)
|
|
272
|
+
cargoHold.set(cargoId, cargoHold.get(cargoId) ?? 0n);
|
|
273
|
+
const fleet = resizeFleet(fleetSize);
|
|
274
|
+
stages.push(Object.freeze({
|
|
275
|
+
kind: 'load-cargo',
|
|
276
|
+
cargoIds: Object.freeze(loaded),
|
|
277
|
+
accounts: Object.freeze([fleet.account]),
|
|
278
|
+
profileDebit: fleet.debit,
|
|
279
|
+
}));
|
|
280
|
+
}
|
|
281
|
+
return Object.freeze(attachJsonSerialization({
|
|
282
|
+
stages: Object.freeze(stages),
|
|
283
|
+
totalProfileDebit: stages.reduce((total, stage) => total + stage.profileDebit, 0n),
|
|
284
|
+
unmetPrerequisites: Object.freeze(unmet.map((p) => Object.freeze(p))),
|
|
285
|
+
profile,
|
|
286
|
+
character: player.character,
|
|
287
|
+
observedSlot: playerRaw.slot,
|
|
288
|
+
rent: Object.freeze({
|
|
289
|
+
lamportsPerByteYear: rent.rentLamportsPerByteYear,
|
|
290
|
+
exemptionThreshold: rent.rentExemptionThreshold,
|
|
291
|
+
}),
|
|
292
|
+
profileUnit: 'lamports',
|
|
293
|
+
transactionFees: 'excluded',
|
|
294
|
+
characterResync: 'excluded',
|
|
295
|
+
}));
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=deployment-storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-storage.js","sourceRoot":"","sources":["../../../src/fleets/actions/deployment-storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAgB,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,kBAAkB,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AC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACxC,YAAY,EAAE,KAAK,CAAC,KAAK;SAC1B,CAAC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAClB,uBAAuB,CAAC;QACtB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAC7B,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAC9B,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,YAAY,EAC5C,EAAE,CACH;QACD,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,OAAO;QACP,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,YAAY,EAAE,SAAS,CAAC,IAAI;QAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;YAClB,mBAAmB,EAAE,IAAI,CAAC,uBAAuB;YACjD,kBAAkB,EAAE,IAAI,CAAC,sBAAsB;SAChD,CAAC;QACF,WAAW,EAAE,UAAU;QACvB,eAAe,EAAE,UAAU;QAC3B,eAAe,EAAE,UAAU;KACnB,CAAC,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -262,5 +262,6 @@ export { planFleetDisband, type PlanFleetDisbandOptions } from './disband.js';
|
|
|
262
262
|
export { planSyncFleetWithGame } from './sync.js';
|
|
263
263
|
export { planFleetStartRespawn, planFleetCompleteRespawn, type PlanFleetRespawnOptions, } from './respawn.js';
|
|
264
264
|
export { planLoadFleetCrew, planUnloadFleetCrew, type PlanFleetCrewTransferOptions, } from './crew-transfer.js';
|
|
265
|
+
export { estimateFleetDeploymentStorage, type FleetDeploymentPrerequisite, type FleetDeploymentStorageAccount, type FleetDeploymentStorageEstimate, type FleetDeploymentStorageInput, type FleetDeploymentStorageStage, } from './deployment-storage.js';
|
|
265
266
|
export { getFleetDockDebitBounds, type FleetDockDebitBounds, } from './dock-bounds.js';
|
|
266
267
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fleets/actions/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAa,KAAK,OAAO,EAAoB,MAAM,aAAa,CAAC;AAExE,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,2BAA2B,CAAC;AA8CzE,OAAO,EAQL,KAAK,iBAAiB,EACvB,MAAM,kDAAkD,CAAC;AAC1D,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAKjD,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAqBlC;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;CAC3C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,kCAAkC,GAC1C;IACE,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChD,QAAQ,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC;CACjC,GACD;IACE,QAAQ,CAAC,aAAa,EAAE,iBAAiB,CAAC;IAC1C,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE;QACvB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC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AM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,uBAAuB,GAC7B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,4BAA4B,GAClC,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,8BAA8B,EAC9B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC"}
|
|
@@ -1016,5 +1016,6 @@ export { planFleetDisband } from './disband.js';
|
|
|
1016
1016
|
export { planSyncFleetWithGame } from './sync.js';
|
|
1017
1017
|
export { planFleetStartRespawn, planFleetCompleteRespawn, } from './respawn.js';
|
|
1018
1018
|
export { planLoadFleetCrew, planUnloadFleetCrew, } from './crew-transfer.js';
|
|
1019
|
+
export { estimateFleetDeploymentStorage, } from './deployment-storage.js';
|
|
1019
1020
|
export { getFleetDockDebitBounds, } from './dock-bounds.js';
|
|
1020
1021
|
//# sourceMappingURL=index.js.map
|