@aephia/atlas-kit 0.6.0-next.13 → 0.6.0-next.130
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/README.md +3 -1
- package/dist/cargo/actions/deposit.d.ts +2 -2
- package/dist/cargo/actions/deposit.d.ts.map +1 -1
- package/dist/cargo/actions/deposit.js +28 -117
- package/dist/cargo/actions/deposit.js.map +1 -1
- package/dist/cargo/actions/index.d.ts +1 -1
- package/dist/cargo/actions/index.d.ts.map +1 -1
- package/dist/cargo/actions/index.js +28 -84
- package/dist/cargo/actions/index.js.map +1 -1
- package/dist/cargo/actions/wallet-context.d.ts +52 -3
- package/dist/cargo/actions/wallet-context.d.ts.map +1 -1
- package/dist/cargo/actions/wallet-context.js +118 -7
- package/dist/cargo/actions/wallet-context.js.map +1 -1
- package/dist/cargo/actions/wallet-token.d.ts +1 -6
- package/dist/cargo/actions/wallet-token.d.ts.map +1 -1
- package/dist/cargo/actions/wallet-token.js +0 -53
- package/dist/cargo/actions/wallet-token.js.map +1 -1
- package/dist/cargo/actions/withdrawal.d.ts +1 -1
- package/dist/cargo/actions/withdrawal.d.ts.map +1 -1
- package/dist/cargo/actions/withdrawal.js +39 -164
- package/dist/cargo/actions/withdrawal.js.map +1 -1
- package/dist/cargo/index.d.ts.map +1 -1
- package/dist/cargo/index.js +2 -10
- package/dist/cargo/index.js.map +1 -1
- package/dist/claim-stakes/actions/index.d.ts +57 -8
- package/dist/claim-stakes/actions/index.d.ts.map +1 -1
- package/dist/claim-stakes/actions/index.js +542 -675
- package/dist/claim-stakes/actions/index.js.map +1 -1
- package/dist/claim-stakes/index.d.ts +14 -0
- package/dist/claim-stakes/index.d.ts.map +1 -1
- package/dist/claim-stakes/index.js +25 -12
- package/dist/claim-stakes/index.js.map +1 -1
- package/dist/client/context.d.ts.map +1 -1
- package/dist/client/context.js +1 -1
- package/dist/client/context.js.map +1 -1
- package/dist/client/contracts.d.ts +16 -6
- package/dist/client/contracts.d.ts.map +1 -1
- package/dist/client/errors.d.ts +2 -2
- package/dist/client/errors.d.ts.map +1 -1
- package/dist/client/errors.js.map +1 -1
- package/dist/client/index.d.ts +35 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +35 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/rpc-subscription-provider.d.ts +35 -0
- package/dist/client/rpc-subscription-provider.d.ts.map +1 -0
- package/dist/client/rpc-subscription-provider.js +190 -0
- package/dist/client/rpc-subscription-provider.js.map +1 -0
- package/dist/combat/actions/index.d.ts +15 -9
- package/dist/combat/actions/index.d.ts.map +1 -1
- package/dist/combat/actions/index.js +245 -274
- package/dist/combat/actions/index.js.map +1 -1
- package/dist/combat/index.d.ts +20 -5
- package/dist/combat/index.d.ts.map +1 -1
- package/dist/combat/index.js +12 -17
- package/dist/combat/index.js.map +1 -1
- package/dist/crafting/actions/index.d.ts +16 -5
- package/dist/crafting/actions/index.d.ts.map +1 -1
- package/dist/crafting/actions/index.js +204 -318
- package/dist/crafting/actions/index.js.map +1 -1
- package/dist/crafting/index.d.ts +33 -3
- package/dist/crafting/index.d.ts.map +1 -1
- package/dist/crafting/index.js +49 -28
- package/dist/crafting/index.js.map +1 -1
- package/dist/factions/actions/index.d.ts +2 -1
- package/dist/factions/actions/index.d.ts.map +1 -1
- package/dist/factions/actions/index.js +6 -4
- package/dist/factions/actions/index.js.map +1 -1
- package/dist/factions/index.d.ts +6 -1
- package/dist/factions/index.d.ts.map +1 -1
- package/dist/factions/index.js +16 -18
- package/dist/factions/index.js.map +1 -1
- package/dist/factions/profile-faction.d.ts +20 -8
- package/dist/factions/profile-faction.d.ts.map +1 -1
- package/dist/factions/profile-faction.js +20 -8
- package/dist/factions/profile-faction.js.map +1 -1
- package/dist/fleets/actions/add-ship.d.ts +35 -0
- package/dist/fleets/actions/add-ship.d.ts.map +1 -0
- package/dist/fleets/actions/add-ship.js +120 -0
- package/dist/fleets/actions/add-ship.js.map +1 -0
- package/dist/fleets/actions/create-fleet.d.ts +36 -0
- package/dist/fleets/actions/create-fleet.d.ts.map +1 -0
- package/dist/fleets/actions/create-fleet.js +108 -0
- package/dist/fleets/actions/create-fleet.js.map +1 -0
- package/dist/fleets/actions/crew-transfer.d.ts +41 -0
- package/dist/fleets/actions/crew-transfer.d.ts.map +1 -0
- package/dist/fleets/actions/crew-transfer.js +94 -0
- package/dist/fleets/actions/crew-transfer.js.map +1 -0
- package/dist/fleets/actions/dock-bounds.d.ts +38 -0
- package/dist/fleets/actions/dock-bounds.d.ts.map +1 -0
- package/dist/fleets/actions/dock-bounds.js +46 -0
- package/dist/fleets/actions/dock-bounds.js.map +1 -0
- package/dist/fleets/actions/index.d.ts +68 -26
- package/dist/fleets/actions/index.d.ts.map +1 -1
- package/dist/fleets/actions/index.js +395 -335
- package/dist/fleets/actions/index.js.map +1 -1
- package/dist/fleets/actions/respawn.d.ts +38 -0
- package/dist/fleets/actions/respawn.d.ts.map +1 -0
- package/dist/fleets/actions/respawn.js +93 -0
- package/dist/fleets/actions/respawn.js.map +1 -0
- package/dist/fleets/actions/ship-import.d.ts +1 -1
- package/dist/fleets/actions/ship-import.d.ts.map +1 -1
- package/dist/fleets/actions/ship-import.js +67 -91
- package/dist/fleets/actions/ship-import.js.map +1 -1
- package/dist/fleets/cooldown.d.ts +44 -0
- package/dist/fleets/cooldown.d.ts.map +1 -0
- package/dist/fleets/cooldown.js +43 -0
- package/dist/fleets/cooldown.js.map +1 -0
- package/dist/fleets/coordinate-warp-estimate.d.ts +70 -0
- package/dist/fleets/coordinate-warp-estimate.d.ts.map +1 -0
- package/dist/fleets/coordinate-warp-estimate.js +46 -0
- package/dist/fleets/coordinate-warp-estimate.js.map +1 -0
- package/dist/fleets/index.d.ts +35 -0
- package/dist/fleets/index.d.ts.map +1 -1
- package/dist/fleets/index.js +54 -12
- package/dist/fleets/index.js.map +1 -1
- package/dist/fleets/movement-arithmetic.d.ts +21 -0
- package/dist/fleets/movement-arithmetic.d.ts.map +1 -0
- package/dist/fleets/movement-arithmetic.js +41 -0
- package/dist/fleets/movement-arithmetic.js.map +1 -0
- package/dist/fleets/subwarp-estimate.d.ts +70 -0
- package/dist/fleets/subwarp-estimate.d.ts.map +1 -0
- package/dist/fleets/subwarp-estimate.js +38 -0
- package/dist/fleets/subwarp-estimate.js.map +1 -0
- package/dist/fleets/travel-profile.d.ts +102 -0
- package/dist/fleets/travel-profile.d.ts.map +1 -0
- package/dist/fleets/travel-profile.js +120 -0
- package/dist/fleets/travel-profile.js.map +1 -0
- package/dist/fleets/warp-lane-estimate.d.ts +59 -0
- package/dist/fleets/warp-lane-estimate.d.ts.map +1 -0
- package/dist/fleets/warp-lane-estimate.js +36 -0
- package/dist/fleets/warp-lane-estimate.js.map +1 -0
- package/dist/fleets/warp-lane-policy.d.ts +68 -0
- package/dist/fleets/warp-lane-policy.d.ts.map +1 -0
- package/dist/fleets/warp-lane-policy.js +91 -0
- package/dist/fleets/warp-lane-policy.js.map +1 -0
- package/dist/fleets/warp-lane-toll.d.ts +55 -0
- package/dist/fleets/warp-lane-toll.d.ts.map +1 -0
- package/dist/fleets/warp-lane-toll.js +79 -0
- package/dist/fleets/warp-lane-toll.js.map +1 -0
- package/dist/identity/actions/create-profile.d.ts +1 -1
- package/dist/identity/actions/create-profile.d.ts.map +1 -1
- package/dist/identity/actions/create-profile.js +2 -2
- package/dist/identity/actions/create-profile.js.map +1 -1
- package/dist/identity/actions/index.d.ts +5 -4
- package/dist/identity/actions/index.d.ts.map +1 -1
- package/dist/identity/actions/index.js +52 -29
- package/dist/identity/actions/index.js.map +1 -1
- package/dist/identity/actions/research-unlock.d.ts +52 -0
- package/dist/identity/actions/research-unlock.d.ts.map +1 -0
- package/dist/identity/actions/research-unlock.js +155 -0
- package/dist/identity/actions/research-unlock.js.map +1 -0
- package/dist/identity/index.d.ts +5 -2
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +6 -12
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/research-state.d.ts +60 -0
- package/dist/identity/research-state.d.ts.map +1 -0
- package/dist/identity/research-state.js +68 -0
- package/dist/identity/research-state.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/internal/c4/account-decoding.d.ts +49 -0
- package/dist/internal/c4/account-decoding.d.ts.map +1 -0
- package/dist/internal/c4/account-decoding.js +74 -0
- package/dist/internal/c4/account-decoding.js.map +1 -0
- package/dist/internal/c4/cargo-bytes-config.d.ts +7 -0
- package/dist/internal/c4/cargo-bytes-config.d.ts.map +1 -0
- package/dist/internal/c4/cargo-bytes-config.js +19 -0
- package/dist/internal/c4/cargo-bytes-config.js.map +1 -0
- package/dist/internal/c4/cargo-pod.d.ts +15 -0
- package/dist/internal/c4/cargo-pod.d.ts.map +1 -0
- package/dist/internal/c4/cargo-pod.js +13 -0
- package/dist/internal/c4/cargo-pod.js.map +1 -0
- package/dist/internal/c4/character-modifier.d.ts +1 -1
- package/dist/internal/c4/character-modifier.d.ts.map +1 -1
- package/dist/internal/c4/character-registration.d.ts +2 -0
- package/dist/internal/c4/character-registration.d.ts.map +1 -1
- package/dist/internal/c4/character-registration.js +2 -0
- package/dist/internal/c4/character-registration.js.map +1 -1
- package/dist/internal/c4/character.d.ts +157 -0
- package/dist/internal/c4/character.d.ts.map +1 -0
- package/dist/internal/c4/character.js +64 -0
- package/dist/internal/c4/character.js.map +1 -0
- package/dist/internal/c4/claim-stake-building-definitions.d.ts.map +1 -1
- package/dist/internal/c4/claim-stake-building-definitions.js +2 -1
- package/dist/internal/c4/claim-stake-building-definitions.js.map +1 -1
- package/dist/internal/c4/claim-stake-configuration.d.ts.map +1 -1
- package/dist/internal/c4/claim-stake-configuration.js +5 -36
- package/dist/internal/c4/claim-stake-configuration.js.map +1 -1
- package/dist/internal/c4/claim-stake-definitions.d.ts +4 -4
- package/dist/internal/c4/claim-stake-definitions.d.ts.map +1 -1
- package/dist/internal/c4/claim-stake-definitions.js +2 -1
- package/dist/internal/c4/claim-stake-definitions.js.map +1 -1
- package/dist/internal/c4/claim-stake-plots.d.ts +17 -0
- package/dist/internal/c4/claim-stake-plots.d.ts.map +1 -0
- package/dist/internal/c4/claim-stake-plots.js +29 -0
- package/dist/internal/c4/claim-stake-plots.js.map +1 -0
- package/dist/internal/c4/claim-stake.d.ts +7 -27
- package/dist/internal/c4/claim-stake.d.ts.map +1 -1
- package/dist/internal/c4/claim-stake.js +38 -83
- package/dist/internal/c4/claim-stake.js.map +1 -1
- package/dist/internal/c4/combat.d.ts +1 -82
- package/dist/internal/c4/combat.d.ts.map +1 -1
- package/dist/internal/c4/combat.js +16 -213
- package/dist/internal/c4/combat.js.map +1 -1
- package/dist/internal/c4/crafting-process-codec.d.ts +13 -0
- package/dist/internal/c4/crafting-process-codec.d.ts.map +1 -0
- package/dist/internal/c4/crafting-process-codec.js +34 -0
- package/dist/internal/c4/crafting-process-codec.js.map +1 -0
- package/dist/internal/c4/crafting.d.ts +27 -33
- package/dist/internal/c4/crafting.d.ts.map +1 -1
- package/dist/internal/c4/crafting.js +76 -127
- package/dist/internal/c4/crafting.js.map +1 -1
- package/dist/internal/c4/currency-cache.d.ts +6 -0
- package/dist/internal/c4/currency-cache.d.ts.map +1 -0
- package/dist/internal/c4/currency-cache.js +27 -0
- package/dist/internal/c4/currency-cache.js.map +1 -0
- package/dist/internal/c4/discriminators.d.ts +85 -0
- package/dist/internal/c4/discriminators.d.ts.map +1 -0
- package/dist/internal/c4/discriminators.js +174 -0
- package/dist/internal/c4/discriminators.js.map +1 -0
- package/dist/internal/c4/docking-funding.d.ts +4 -0
- package/dist/internal/c4/docking-funding.d.ts.map +1 -0
- package/dist/internal/c4/docking-funding.js +11 -0
- package/dist/internal/c4/docking-funding.js.map +1 -0
- package/dist/internal/c4/faction-epoch-meter.d.ts +10 -0
- package/dist/internal/c4/faction-epoch-meter.d.ts.map +1 -0
- package/dist/internal/c4/faction-epoch-meter.js +26 -0
- package/dist/internal/c4/faction-epoch-meter.js.map +1 -0
- package/dist/internal/c4/faction-treasury.d.ts +23 -0
- package/dist/internal/c4/faction-treasury.d.ts.map +1 -0
- package/dist/internal/c4/faction-treasury.js +41 -0
- package/dist/internal/c4/faction-treasury.js.map +1 -0
- package/dist/internal/c4/faction.d.ts +21 -0
- package/dist/internal/c4/faction.d.ts.map +1 -0
- package/dist/internal/c4/faction.js +23 -0
- package/dist/internal/c4/faction.js.map +1 -0
- package/dist/internal/c4/factions.d.ts +15 -57
- package/dist/internal/c4/factions.d.ts.map +1 -1
- package/dist/internal/c4/factions.js +80 -223
- package/dist/internal/c4/factions.js.map +1 -1
- package/dist/internal/c4/fleet-arrival.d.ts +28 -0
- package/dist/internal/c4/fleet-arrival.d.ts.map +1 -0
- package/dist/internal/c4/fleet-arrival.js +42 -0
- package/dist/internal/c4/fleet-arrival.js.map +1 -0
- package/dist/internal/c4/fleet-creation.d.ts +7 -0
- package/dist/internal/c4/fleet-creation.d.ts.map +1 -0
- package/dist/internal/c4/fleet-creation.js +171 -0
- package/dist/internal/c4/fleet-creation.js.map +1 -0
- package/dist/internal/c4/fleet-crew-binding.d.ts +9 -0
- package/dist/internal/c4/fleet-crew-binding.d.ts.map +1 -1
- package/dist/internal/c4/fleet-crew-binding.js +31 -44
- package/dist/internal/c4/fleet-crew-binding.js.map +1 -1
- package/dist/internal/c4/fleet-respawn.d.ts +17 -0
- package/dist/internal/c4/fleet-respawn.d.ts.map +1 -0
- package/dist/internal/c4/fleet-respawn.js +62 -0
- package/dist/internal/c4/fleet-respawn.js.map +1 -0
- package/dist/internal/c4/fleet-ship-assembly.d.ts +11 -0
- package/dist/internal/c4/fleet-ship-assembly.d.ts.map +1 -0
- package/dist/internal/c4/fleet-ship-assembly.js +44 -0
- package/dist/internal/c4/fleet-ship-assembly.js.map +1 -0
- package/dist/internal/c4/fleet.d.ts +48 -19
- package/dist/internal/c4/fleet.d.ts.map +1 -1
- package/dist/internal/c4/fleet.js +50 -87
- package/dist/internal/c4/fleet.js.map +1 -1
- package/dist/internal/c4/game-definition-layout.d.ts +2 -0
- package/dist/internal/c4/game-definition-layout.d.ts.map +1 -1
- package/dist/internal/c4/game-definition-layout.js +4 -0
- package/dist/internal/c4/game-definition-layout.js.map +1 -1
- package/dist/internal/c4/game.d.ts +101 -30
- package/dist/internal/c4/game.d.ts.map +1 -1
- package/dist/internal/c4/game.js +203 -124
- package/dist/internal/c4/game.js.map +1 -1
- package/dist/internal/c4/identity.d.ts +3 -152
- package/dist/internal/c4/identity.d.ts.map +1 -1
- package/dist/internal/c4/identity.js +19 -126
- package/dist/internal/c4/identity.js.map +1 -1
- package/dist/internal/c4/local-market-order.d.ts +29 -0
- package/dist/internal/c4/local-market-order.d.ts.map +1 -0
- package/dist/internal/c4/local-market-order.js +46 -0
- package/dist/internal/c4/local-market-order.js.map +1 -0
- package/dist/internal/c4/loot-layout.js +1 -1
- package/dist/internal/c4/loot-layout.js.map +1 -1
- package/dist/internal/c4/loot.d.ts +89 -0
- package/dist/internal/c4/loot.d.ts.map +1 -0
- package/dist/internal/c4/loot.js +109 -0
- package/dist/internal/c4/loot.js.map +1 -0
- package/dist/internal/c4/loyalty.d.ts +0 -27
- package/dist/internal/c4/loyalty.d.ts.map +1 -1
- package/dist/internal/c4/loyalty.js +32 -160
- package/dist/internal/c4/loyalty.js.map +1 -1
- package/dist/internal/c4/market.d.ts +2 -38
- package/dist/internal/c4/market.d.ts.map +1 -1
- package/dist/internal/c4/market.js +26 -120
- package/dist/internal/c4/market.js.map +1 -1
- package/dist/internal/c4/mining-instructions.d.ts +2 -0
- package/dist/internal/c4/mining-instructions.d.ts.map +1 -0
- package/dist/internal/c4/mining-instructions.js +3 -0
- package/dist/internal/c4/mining-instructions.js.map +1 -0
- package/dist/internal/c4/open-signal.d.ts +8 -0
- package/dist/internal/c4/open-signal.d.ts.map +1 -0
- package/dist/internal/c4/open-signal.js +37 -0
- package/dist/internal/c4/open-signal.js.map +1 -0
- package/dist/internal/c4/pda.d.ts +43 -0
- package/dist/internal/c4/pda.d.ts.map +1 -1
- package/dist/internal/c4/pda.js +83 -17
- package/dist/internal/c4/pda.js.map +1 -1
- package/dist/internal/c4/profile-faction.d.ts +2 -1
- package/dist/internal/c4/profile-faction.d.ts.map +1 -1
- package/dist/internal/c4/profile-faction.js +36 -72
- package/dist/internal/c4/profile-faction.js.map +1 -1
- package/dist/internal/c4/profile-permissions.d.ts +1 -1
- package/dist/internal/c4/profile-permissions.d.ts.map +1 -1
- package/dist/internal/c4/profile-permissions.js +4 -1
- package/dist/internal/c4/profile-permissions.js.map +1 -1
- package/dist/internal/c4/region-geometry.d.ts +8 -0
- package/dist/internal/c4/region-geometry.d.ts.map +1 -0
- package/dist/internal/c4/region-geometry.js +43 -0
- package/dist/internal/c4/region-geometry.js.map +1 -0
- package/dist/internal/c4/rewards.d.ts +1 -61
- package/dist/internal/c4/rewards.d.ts.map +1 -1
- package/dist/internal/c4/rewards.js +23 -203
- package/dist/internal/c4/rewards.js.map +1 -1
- package/dist/internal/c4/runtime-bindings.d.ts +4 -0
- package/dist/internal/c4/runtime-bindings.d.ts.map +1 -0
- package/dist/internal/c4/runtime-bindings.js +4 -0
- package/dist/internal/c4/runtime-bindings.js.map +1 -0
- package/dist/internal/c4/scan-detection-codecs.d.ts +3 -0
- package/dist/internal/c4/scan-detection-codecs.d.ts.map +1 -0
- package/dist/internal/c4/scan-detection-codecs.js +3 -0
- package/dist/internal/c4/scan-detection-codecs.js.map +1 -0
- package/dist/internal/c4/scan-lifecycle.d.ts +306 -0
- package/dist/internal/c4/scan-lifecycle.d.ts.map +1 -0
- package/dist/internal/c4/scan-lifecycle.js +235 -0
- package/dist/internal/c4/scan-lifecycle.js.map +1 -0
- package/dist/internal/c4/scanning.d.ts +4 -41
- package/dist/internal/c4/scanning.d.ts.map +1 -1
- package/dist/internal/c4/scanning.js +27 -108
- package/dist/internal/c4/scanning.js.map +1 -1
- package/dist/internal/c4/ship-import.d.ts +4 -0
- package/dist/internal/c4/ship-import.d.ts.map +1 -0
- package/dist/internal/c4/ship-import.js +13 -0
- package/dist/internal/c4/ship-import.js.map +1 -0
- package/dist/internal/c4/ship-stats.d.ts.map +1 -1
- package/dist/internal/c4/ship-stats.js +45 -43
- package/dist/internal/c4/ship-stats.js.map +1 -1
- package/dist/internal/c4/starbase.d.ts +0 -32
- package/dist/internal/c4/starbase.d.ts.map +1 -1
- package/dist/internal/c4/starbase.js +26 -136
- package/dist/internal/c4/starbase.js.map +1 -1
- package/dist/internal/c4/wallet-cargo-cache.js +2 -1
- package/dist/internal/c4/wallet-cargo-cache.js.map +1 -1
- package/dist/internal/c4/world.d.ts +37 -7
- package/dist/internal/c4/world.d.ts.map +1 -1
- package/dist/internal/c4/world.js +87 -129
- package/dist/internal/c4/world.js.map +1 -1
- package/dist/internal/cargo.d.ts +2 -0
- package/dist/internal/cargo.d.ts.map +1 -1
- package/dist/internal/cargo.js +8 -0
- package/dist/internal/cargo.js.map +1 -1
- package/dist/internal/fleet.d.ts +1 -0
- package/dist/internal/fleet.d.ts.map +1 -1
- package/dist/internal/fleet.js +3 -1
- package/dist/internal/fleet.js.map +1 -1
- package/dist/internal/loyalty-atlas-bank-state.d.ts +16 -0
- package/dist/internal/loyalty-atlas-bank-state.d.ts.map +1 -0
- package/dist/internal/loyalty-atlas-bank-state.js +10 -0
- package/dist/internal/loyalty-atlas-bank-state.js.map +1 -0
- package/dist/internal/planning/account-state.d.ts +6 -0
- package/dist/internal/planning/account-state.d.ts.map +1 -1
- package/dist/internal/planning/account-state.js +13 -0
- package/dist/internal/planning/account-state.js.map +1 -1
- package/dist/internal/planning/action-runtime.d.ts +38 -0
- package/dist/internal/planning/action-runtime.d.ts.map +1 -0
- package/dist/internal/planning/action-runtime.js +63 -0
- package/dist/internal/planning/action-runtime.js.map +1 -0
- package/dist/internal/planning/arrival-guards.d.ts +19 -0
- package/dist/internal/planning/arrival-guards.d.ts.map +1 -0
- package/dist/internal/planning/arrival-guards.js +172 -0
- package/dist/internal/planning/arrival-guards.js.map +1 -0
- package/dist/internal/planning/authorization-adapter.d.ts +55 -37
- package/dist/internal/planning/authorization-adapter.d.ts.map +1 -1
- package/dist/internal/planning/authorization-adapter.js +231 -81
- package/dist/internal/planning/authorization-adapter.js.map +1 -1
- package/dist/internal/planning/character-registration-guard.d.ts +4 -0
- package/dist/internal/planning/character-registration-guard.d.ts.map +1 -0
- package/dist/internal/planning/character-registration-guard.js +59 -0
- package/dist/internal/planning/character-registration-guard.js.map +1 -0
- package/dist/internal/planning/character-registration.d.ts +23 -0
- package/dist/internal/planning/character-registration.d.ts.map +1 -0
- package/dist/internal/planning/character-registration.js +87 -0
- package/dist/internal/planning/character-registration.js.map +1 -0
- package/dist/internal/planning/currency-cache-guard.d.ts +4 -0
- package/dist/internal/planning/currency-cache-guard.d.ts.map +1 -0
- package/dist/internal/planning/currency-cache-guard.js +34 -0
- package/dist/internal/planning/currency-cache-guard.js.map +1 -0
- package/dist/internal/planning/democracy-history.d.ts +50 -0
- package/dist/internal/planning/democracy-history.d.ts.map +1 -0
- package/dist/internal/planning/democracy-history.js +189 -0
- package/dist/internal/planning/democracy-history.js.map +1 -0
- package/dist/internal/planning/direct-options.d.ts +17 -0
- package/dist/internal/planning/direct-options.d.ts.map +1 -0
- package/dist/internal/planning/direct-options.js +43 -0
- package/dist/internal/planning/direct-options.js.map +1 -0
- package/dist/internal/planning/faction-enrollment.d.ts +0 -4
- package/dist/internal/planning/faction-enrollment.d.ts.map +1 -1
- package/dist/internal/planning/faction-enrollment.js +1 -31
- package/dist/internal/planning/faction-enrollment.js.map +1 -1
- package/dist/internal/planning/faction-trade-guards.d.ts +30 -0
- package/dist/internal/planning/faction-trade-guards.d.ts.map +1 -0
- package/dist/internal/planning/faction-trade-guards.js +15 -0
- package/dist/internal/planning/faction-trade-guards.js.map +1 -0
- package/dist/internal/planning/faction-trade-state.d.ts +16 -0
- package/dist/internal/planning/faction-trade-state.d.ts.map +1 -0
- package/dist/internal/planning/faction-trade-state.js +43 -0
- package/dist/internal/planning/faction-trade-state.js.map +1 -0
- package/dist/internal/planning/fleet-arrival.d.ts +40 -0
- package/dist/internal/planning/fleet-arrival.d.ts.map +1 -0
- package/dist/internal/planning/fleet-arrival.js +107 -0
- package/dist/internal/planning/fleet-arrival.js.map +1 -0
- package/dist/internal/planning/fleet-attack-xp.d.ts +20 -0
- package/dist/internal/planning/fleet-attack-xp.d.ts.map +1 -0
- package/dist/internal/planning/fleet-attack-xp.js +104 -0
- package/dist/internal/planning/fleet-attack-xp.js.map +1 -0
- package/dist/internal/planning/fleet-creation.d.ts +30 -0
- package/dist/internal/planning/fleet-creation.d.ts.map +1 -0
- package/dist/internal/planning/fleet-creation.js +89 -0
- package/dist/internal/planning/fleet-creation.js.map +1 -0
- package/dist/internal/planning/fleet-crew-guard.d.ts +28 -0
- package/dist/internal/planning/fleet-crew-guard.d.ts.map +1 -0
- package/dist/internal/planning/fleet-crew-guard.js +48 -0
- package/dist/internal/planning/fleet-crew-guard.js.map +1 -0
- package/dist/internal/planning/fleet-crew-transfer.d.ts +7 -0
- package/dist/internal/planning/fleet-crew-transfer.d.ts.map +1 -0
- package/dist/internal/planning/fleet-crew-transfer.js +123 -0
- package/dist/internal/planning/fleet-crew-transfer.js.map +1 -0
- package/dist/internal/planning/fleet-dock-funding-guard.d.ts +42 -0
- package/dist/internal/planning/fleet-dock-funding-guard.d.ts.map +1 -0
- package/dist/internal/planning/fleet-dock-funding-guard.js +209 -0
- package/dist/internal/planning/fleet-dock-funding-guard.js.map +1 -0
- package/dist/internal/planning/fleet-dock-funding.d.ts +9 -0
- package/dist/internal/planning/fleet-dock-funding.d.ts.map +1 -0
- package/dist/internal/planning/fleet-dock-funding.js +154 -0
- package/dist/internal/planning/fleet-dock-funding.js.map +1 -0
- package/dist/internal/planning/fleet-docking-guard.d.ts +4 -0
- package/dist/internal/planning/fleet-docking-guard.d.ts.map +1 -0
- package/dist/internal/planning/fleet-docking-guard.js +43 -0
- package/dist/internal/planning/fleet-docking-guard.js.map +1 -0
- package/dist/internal/planning/fleet-docking.d.ts +10 -0
- package/dist/internal/planning/fleet-docking.d.ts.map +1 -0
- package/dist/internal/planning/fleet-docking.js +71 -0
- package/dist/internal/planning/fleet-docking.js.map +1 -0
- package/dist/internal/planning/fleet-respawn.d.ts +28 -0
- package/dist/internal/planning/fleet-respawn.d.ts.map +1 -0
- package/dist/internal/planning/fleet-respawn.js +164 -0
- package/dist/internal/planning/fleet-respawn.js.map +1 -0
- package/dist/internal/planning/fleet-ship-assembly.d.ts +36 -0
- package/dist/internal/planning/fleet-ship-assembly.d.ts.map +1 -0
- package/dist/internal/planning/fleet-ship-assembly.js +118 -0
- package/dist/internal/planning/fleet-ship-assembly.js.map +1 -0
- package/dist/internal/planning/fleet-state.d.ts +25 -0
- package/dist/internal/planning/fleet-state.d.ts.map +1 -0
- package/dist/internal/planning/fleet-state.js +28 -0
- package/dist/internal/planning/fleet-state.js.map +1 -0
- package/dist/internal/planning/governance-fees.d.ts +64 -0
- package/dist/internal/planning/governance-fees.d.ts.map +1 -0
- package/dist/internal/planning/governance-fees.js +231 -0
- package/dist/internal/planning/governance-fees.js.map +1 -0
- package/dist/internal/planning/local-market-order-funding.d.ts +8 -0
- package/dist/internal/planning/local-market-order-funding.d.ts.map +1 -0
- package/dist/internal/planning/local-market-order-funding.js +128 -0
- package/dist/internal/planning/local-market-order-funding.js.map +1 -0
- package/dist/internal/planning/local-market-order.d.ts +40 -0
- package/dist/internal/planning/local-market-order.d.ts.map +1 -0
- package/dist/internal/planning/local-market-order.js +139 -0
- package/dist/internal/planning/local-market-order.js.map +1 -0
- package/dist/internal/planning/mining-stop.d.ts +14 -0
- package/dist/internal/planning/mining-stop.d.ts.map +1 -0
- package/dist/internal/planning/mining-stop.js +42 -0
- package/dist/internal/planning/mining-stop.js.map +1 -0
- package/dist/internal/planning/movement-character.d.ts +7 -0
- package/dist/internal/planning/movement-character.d.ts.map +1 -0
- package/dist/internal/planning/movement-character.js +41 -0
- package/dist/internal/planning/movement-character.js.map +1 -0
- package/dist/internal/planning/movement-xp-guard.d.ts +4 -0
- package/dist/internal/planning/movement-xp-guard.d.ts.map +1 -0
- package/dist/internal/planning/movement-xp-guard.js +104 -0
- package/dist/internal/planning/movement-xp-guard.js.map +1 -0
- package/dist/internal/planning/open-signal-guard.d.ts +3 -0
- package/dist/internal/planning/open-signal-guard.d.ts.map +1 -0
- package/dist/internal/planning/open-signal-guard.js +32 -0
- package/dist/internal/planning/open-signal-guard.js.map +1 -0
- package/dist/internal/planning/open-signal.d.ts +31 -0
- package/dist/internal/planning/open-signal.d.ts.map +1 -0
- package/dist/internal/planning/open-signal.js +85 -0
- package/dist/internal/planning/open-signal.js.map +1 -0
- package/dist/internal/planning/original-token.d.ts +40 -0
- package/dist/internal/planning/original-token.d.ts.map +1 -0
- package/dist/internal/planning/original-token.js +112 -0
- package/dist/internal/planning/original-token.js.map +1 -0
- package/dist/internal/planning/own-starbase-facts.d.ts +33 -0
- package/dist/internal/planning/own-starbase-facts.d.ts.map +1 -0
- package/dist/internal/planning/own-starbase-facts.js +49 -0
- package/dist/internal/planning/own-starbase-facts.js.map +1 -0
- package/dist/internal/planning/plan-fields.d.ts +60 -0
- package/dist/internal/planning/plan-fields.d.ts.map +1 -0
- package/dist/internal/planning/plan-fields.js +159 -0
- package/dist/internal/planning/plan-fields.js.map +1 -0
- package/dist/internal/planning/plan-guards.d.ts +4 -0
- package/dist/internal/planning/plan-guards.d.ts.map +1 -0
- package/dist/internal/planning/plan-guards.js +175 -0
- package/dist/internal/planning/plan-guards.js.map +1 -0
- package/dist/internal/planning/profile-key.d.ts +13 -0
- package/dist/internal/planning/profile-key.d.ts.map +1 -0
- package/dist/internal/planning/profile-key.js +20 -0
- package/dist/internal/planning/profile-key.js.map +1 -0
- package/dist/internal/planning/recipe-state.d.ts +9 -0
- package/dist/internal/planning/recipe-state.d.ts.map +1 -0
- package/dist/internal/planning/recipe-state.js +23 -0
- package/dist/internal/planning/recipe-state.js.map +1 -0
- package/dist/internal/planning/rent-catalog.d.ts +37 -0
- package/dist/internal/planning/rent-catalog.d.ts.map +1 -0
- package/dist/internal/planning/rent-catalog.js +165 -0
- package/dist/internal/planning/rent-catalog.js.map +1 -0
- package/dist/internal/planning/rent.d.ts +19 -0
- package/dist/internal/planning/rent.d.ts.map +1 -0
- package/dist/internal/planning/rent.js +35 -0
- package/dist/internal/planning/rent.js.map +1 -0
- package/dist/internal/planning/research-unlock.d.ts +60 -0
- package/dist/internal/planning/research-unlock.d.ts.map +1 -0
- package/dist/internal/planning/research-unlock.js +208 -0
- package/dist/internal/planning/research-unlock.js.map +1 -0
- package/dist/internal/planning/respawn-guards.d.ts +3 -0
- package/dist/internal/planning/respawn-guards.d.ts.map +1 -0
- package/dist/internal/planning/respawn-guards.js +42 -0
- package/dist/internal/planning/respawn-guards.js.map +1 -0
- package/dist/internal/planning/runtime-guards.d.ts +41 -0
- package/dist/internal/planning/runtime-guards.d.ts.map +1 -0
- package/dist/internal/planning/runtime-guards.js +658 -0
- package/dist/internal/planning/runtime-guards.js.map +1 -0
- package/dist/internal/planning/scan-completion-guard.d.ts +43 -0
- package/dist/internal/planning/scan-completion-guard.d.ts.map +1 -0
- package/dist/internal/planning/scan-completion-guard.js +95 -0
- package/dist/internal/planning/scan-completion-guard.js.map +1 -0
- package/dist/internal/planning/scan-completion.d.ts +20 -0
- package/dist/internal/planning/scan-completion.d.ts.map +1 -0
- package/dist/internal/planning/scan-completion.js +197 -0
- package/dist/internal/planning/scan-completion.js.map +1 -0
- package/dist/internal/planning/scan-detect-guard.d.ts +34 -0
- package/dist/internal/planning/scan-detect-guard.d.ts.map +1 -0
- package/dist/internal/planning/scan-detect-guard.js +77 -0
- package/dist/internal/planning/scan-detect-guard.js.map +1 -0
- package/dist/internal/planning/scan-detect.d.ts +24 -0
- package/dist/internal/planning/scan-detect.d.ts.map +1 -0
- package/dist/internal/planning/scan-detect.js +245 -0
- package/dist/internal/planning/scan-detect.js.map +1 -0
- package/dist/internal/planning/scan-input.d.ts +9 -0
- package/dist/internal/planning/scan-input.d.ts.map +1 -0
- package/dist/internal/planning/scan-input.js +58 -0
- package/dist/internal/planning/scan-input.js.map +1 -0
- package/dist/internal/planning/ship-import-funding.d.ts +22 -0
- package/dist/internal/planning/ship-import-funding.d.ts.map +1 -0
- package/dist/internal/planning/ship-import-funding.js +53 -0
- package/dist/internal/planning/ship-import-funding.js.map +1 -0
- package/dist/internal/planning/ship-token.d.ts +1 -6
- package/dist/internal/planning/ship-token.d.ts.map +1 -1
- package/dist/internal/planning/ship-token.js +2 -41
- package/dist/internal/planning/ship-token.js.map +1 -1
- package/dist/internal/planning/starbase-player-owner.d.ts +21 -0
- package/dist/internal/planning/starbase-player-owner.d.ts.map +1 -0
- package/dist/internal/planning/starbase-player-owner.js +17 -0
- package/dist/internal/planning/starbase-player-owner.js.map +1 -0
- package/dist/internal/planning/starbase-system-guard.d.ts +6 -0
- package/dist/internal/planning/starbase-system-guard.d.ts.map +1 -0
- package/dist/internal/planning/starbase-system-guard.js +94 -0
- package/dist/internal/planning/starbase-system-guard.js.map +1 -0
- package/dist/internal/planning/starbase-system.d.ts +15 -0
- package/dist/internal/planning/starbase-system.d.ts.map +1 -0
- package/dist/internal/planning/starbase-system.js +25 -0
- package/dist/internal/planning/starbase-system.js.map +1 -0
- package/dist/internal/planning/token-mint.d.ts +4 -0
- package/dist/internal/planning/token-mint.d.ts.map +1 -0
- package/dist/internal/planning/token-mint.js +16 -0
- package/dist/internal/planning/token-mint.js.map +1 -0
- package/dist/internal/planning/trade-faction-market.d.ts +20 -0
- package/dist/internal/planning/trade-faction-market.d.ts.map +1 -0
- package/dist/internal/planning/trade-faction-market.js +56 -0
- package/dist/internal/planning/trade-faction-market.js.map +1 -0
- package/dist/internal/planning/wallet-starbase.d.ts +34 -0
- package/dist/internal/planning/wallet-starbase.d.ts.map +1 -0
- package/dist/internal/planning/wallet-starbase.js +39 -0
- package/dist/internal/planning/wallet-starbase.js.map +1 -0
- package/dist/internal/planning/xp-runtime.d.ts +36 -0
- package/dist/internal/planning/xp-runtime.d.ts.map +1 -0
- package/dist/internal/planning/xp-runtime.js +117 -0
- package/dist/internal/planning/xp-runtime.js.map +1 -0
- package/dist/internal/read-meta.d.ts +12 -0
- package/dist/internal/read-meta.d.ts.map +1 -1
- package/dist/internal/read-meta.js +10 -0
- package/dist/internal/read-meta.js.map +1 -1
- package/dist/internal/system-program.d.ts +4 -0
- package/dist/internal/system-program.d.ts.map +1 -0
- package/dist/internal/system-program.js +3 -0
- package/dist/internal/system-program.js.map +1 -0
- package/dist/loyalty/actions/index.d.ts +1 -1
- package/dist/loyalty/actions/index.d.ts.map +1 -1
- package/dist/loyalty/actions/index.js +15 -45
- package/dist/loyalty/actions/index.js.map +1 -1
- package/dist/loyalty/index.d.ts.map +1 -1
- package/dist/loyalty/index.js +6 -18
- package/dist/loyalty/index.js.map +1 -1
- package/dist/markets/actions/index.d.ts +62 -4
- package/dist/markets/actions/index.d.ts.map +1 -1
- package/dist/markets/actions/index.js +230 -178
- package/dist/markets/actions/index.js.map +1 -1
- package/dist/markets/actions/trade-faction-market.d.ts +43 -0
- package/dist/markets/actions/trade-faction-market.d.ts.map +1 -0
- package/dist/markets/actions/trade-faction-market.js +277 -0
- package/dist/markets/actions/trade-faction-market.js.map +1 -0
- package/dist/markets/index.d.ts +38 -7
- package/dist/markets/index.d.ts.map +1 -1
- package/dist/markets/index.js +59 -20
- package/dist/markets/index.js.map +1 -1
- package/dist/mining/actions/index.d.ts +87 -0
- package/dist/mining/actions/index.d.ts.map +1 -0
- package/dist/mining/actions/index.js +319 -0
- package/dist/mining/actions/index.js.map +1 -0
- package/dist/mining/estimate.d.ts +114 -0
- package/dist/mining/estimate.d.ts.map +1 -0
- package/dist/mining/estimate.js +127 -0
- package/dist/mining/estimate.js.map +1 -0
- package/dist/mining/index.d.ts +9 -2
- package/dist/mining/index.d.ts.map +1 -1
- package/dist/mining/index.js +10 -13
- package/dist/mining/index.js.map +1 -1
- package/dist/mining/profile.d.ts +82 -0
- package/dist/mining/profile.d.ts.map +1 -0
- package/dist/mining/profile.js +109 -0
- package/dist/mining/profile.js.map +1 -0
- package/dist/planning/assembly.d.ts +6 -1
- package/dist/planning/assembly.d.ts.map +1 -1
- package/dist/planning/assembly.js +12 -8
- package/dist/planning/assembly.js.map +1 -1
- package/dist/planning/execution.d.ts +19 -3
- package/dist/planning/execution.d.ts.map +1 -1
- package/dist/planning/execution.js +540 -72
- package/dist/planning/execution.js.map +1 -1
- package/dist/planning/index.d.ts +217 -149
- package/dist/planning/index.d.ts.map +1 -1
- package/dist/planning/index.js +31 -355
- package/dist/planning/index.js.map +1 -1
- package/dist/planning/plan-construction.d.ts +25 -0
- package/dist/planning/plan-construction.d.ts.map +1 -0
- package/dist/planning/plan-construction.js +143 -0
- package/dist/planning/plan-construction.js.map +1 -0
- package/dist/planning/plan-sequence-checkpoint.d.ts +9 -0
- package/dist/planning/plan-sequence-checkpoint.d.ts.map +1 -1
- package/dist/planning/plan-sequence-checkpoint.js +16 -7
- package/dist/planning/plan-sequence-checkpoint.js.map +1 -1
- package/dist/planning/plan-sequence-execution.d.ts +5 -0
- package/dist/planning/plan-sequence-execution.d.ts.map +1 -1
- package/dist/planning/plan-sequence-execution.js +74 -40
- package/dist/planning/plan-sequence-execution.js.map +1 -1
- package/dist/planning/plan-sequence.d.ts +2 -1
- package/dist/planning/plan-sequence.d.ts.map +1 -1
- package/dist/planning/plan-sequence.js +8 -1
- package/dist/planning/plan-sequence.js.map +1 -1
- package/dist/planning/plan-validation.d.ts +17 -0
- package/dist/planning/plan-validation.d.ts.map +1 -0
- package/dist/planning/plan-validation.js +135 -0
- package/dist/planning/plan-validation.js.map +1 -0
- package/dist/planning/simulation.d.ts +25 -1
- package/dist/planning/simulation.d.ts.map +1 -1
- package/dist/planning/simulation.js +111 -11
- package/dist/planning/simulation.js.map +1 -1
- package/dist/registry/cargo.d.ts +7 -12
- package/dist/registry/cargo.d.ts.map +1 -1
- package/dist/registry/cargo.js +20 -20
- package/dist/registry/cargo.js.map +1 -1
- package/dist/registry/docking.d.ts +10 -0
- package/dist/registry/docking.d.ts.map +1 -0
- package/dist/registry/docking.js +12 -0
- package/dist/registry/docking.js.map +1 -0
- package/dist/registry/index.d.ts +4 -0
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +190 -224
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/onboarding.d.ts +10 -2
- package/dist/registry/onboarding.d.ts.map +1 -1
- package/dist/registry/onboarding.js +20 -7
- package/dist/registry/onboarding.js.map +1 -1
- package/dist/registry/scanning.d.ts +7 -0
- package/dist/registry/scanning.d.ts.map +1 -0
- package/dist/registry/scanning.js +13 -0
- package/dist/registry/scanning.js.map +1 -0
- package/dist/registry/ship-stats-snapshot.js +19 -19
- package/dist/registry/ship-stats-snapshot.js.map +1 -1
- package/dist/registry/ships.d.ts +22 -2
- package/dist/registry/ships.d.ts.map +1 -1
- package/dist/registry/ships.js +31 -4
- package/dist/registry/ships.js.map +1 -1
- package/dist/registry/xp-runtime.d.ts +4 -0
- package/dist/registry/xp-runtime.d.ts.map +1 -0
- package/dist/registry/xp-runtime.js +14 -0
- package/dist/registry/xp-runtime.js.map +1 -0
- package/dist/rewards/index.d.ts +11 -5
- package/dist/rewards/index.d.ts.map +1 -1
- package/dist/rewards/index.js +10 -21
- package/dist/rewards/index.js.map +1 -1
- package/dist/scanning/actions/index.d.ts +116 -0
- package/dist/scanning/actions/index.d.ts.map +1 -0
- package/dist/scanning/actions/index.js +191 -0
- package/dist/scanning/actions/index.js.map +1 -0
- package/dist/scanning/index.d.ts +9 -12
- package/dist/scanning/index.d.ts.map +1 -1
- package/dist/scanning/index.js +18 -22
- package/dist/scanning/index.js.map +1 -1
- package/dist/scanning/lifecycle.d.ts +77 -0
- package/dist/scanning/lifecycle.d.ts.map +1 -0
- package/dist/scanning/lifecycle.js +93 -0
- package/dist/scanning/lifecycle.js.map +1 -0
- package/dist/scanning/odds.d.ts +111 -0
- package/dist/scanning/odds.d.ts.map +1 -0
- package/dist/scanning/odds.js +294 -0
- package/dist/scanning/odds.js.map +1 -0
- package/dist/scanning/signals.d.ts +121 -0
- package/dist/scanning/signals.d.ts.map +1 -0
- package/dist/scanning/signals.js +171 -0
- package/dist/scanning/signals.js.map +1 -0
- package/dist/starbases/actions/index.d.ts +6 -4
- package/dist/starbases/actions/index.d.ts.map +1 -1
- package/dist/starbases/actions/index.js +34 -67
- package/dist/starbases/actions/index.js.map +1 -1
- package/dist/starbases/index.d.ts.map +1 -1
- package/dist/starbases/index.js +3 -11
- package/dist/starbases/index.js.map +1 -1
- package/dist/world/index.d.ts +108 -5
- package/dist/world/index.d.ts.map +1 -1
- package/dist/world/index.js +110 -15
- package/dist/world/index.js.map +1 -1
- package/dist/world/planet-claim-stake-plots.d.ts +139 -0
- package/dist/world/planet-claim-stake-plots.d.ts.map +1 -0
- package/dist/world/planet-claim-stake-plots.js +117 -0
- package/dist/world/planet-claim-stake-plots.js.map +1 -0
- package/dist/world/starbase-status.d.ts +176 -0
- package/dist/world/starbase-status.d.ts.map +1 -0
- package/dist/world/starbase-status.js +153 -0
- package/dist/world/starbase-status.js.map +1 -0
- package/package.json +10 -2
|
@@ -1,12 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { validateCurrencyCache } from '../internal/c4/currency-cache.js';
|
|
2
|
+
import { revalidateDockFunding } from '../internal/planning/fleet-dock-funding.js';
|
|
3
|
+
import { decodeDockingSequences } from '../registry/docking.js';
|
|
4
|
+
import { revalidateMarketOrder, marketOrderFundingAddresses, } from '../internal/planning/local-market-order-funding.js';
|
|
5
|
+
import { resolveFleetCrewTransfer } from '../internal/planning/fleet-crew-transfer.js';
|
|
6
|
+
import { revalidateScanCompletion } from '../internal/planning/scan-completion.js';
|
|
7
|
+
import { openSignalAddresses, validateOpenSignal, } from '../internal/planning/open-signal.js';
|
|
8
|
+
import { revalidateDetect } from '../internal/planning/scan-detect.js';
|
|
9
|
+
import { resolveFleetRespawn } from '../internal/planning/fleet-respawn.js';
|
|
10
|
+
import { validateFleetAttackActors } from '../internal/planning/fleet-attack-xp.js';
|
|
11
|
+
import { RENT_ADDRESS, readRent } from '../internal/planning/rent.js';
|
|
12
|
+
import { getBase64Decoder, } from '@solana/kit';
|
|
13
|
+
import { hashMovementCharacter } from '../internal/planning/movement-character.js';
|
|
14
|
+
import { validateFleetDockingPolicy } from '../internal/planning/fleet-docking.js';
|
|
15
|
+
import { validateStarbaseSystem } from '../internal/planning/starbase-system.js';
|
|
16
|
+
import { revalidateCharacterRegistration, isEmptySystemAccount, } from '../internal/planning/character-registration.js';
|
|
17
|
+
import { validateFleetArrivalIntent } from '../internal/planning/fleet-arrival.js';
|
|
18
|
+
import { isRuntimeGuard, revalidateRuntimeGuards, } from '../internal/planning/runtime-guards.js';
|
|
19
|
+
import { isFactionTradeGuard } from '../internal/planning/faction-trade-guards.js';
|
|
20
|
+
import { resolveShipImportFunding, validateShipImportFunding, } from '../internal/planning/ship-import-funding.js';
|
|
21
|
+
import { matchesFleetMiningState } from '../internal/planning/mining-stop.js';
|
|
22
|
+
import { requireGameAddress } from '../internal/game-context.js';
|
|
23
|
+
import { matchesFactionTradeState } from '../internal/planning/faction-trade-state.js';
|
|
24
|
+
import { resolveFleetShipAssembly, validateFleetShipAssembly, } from '../internal/planning/fleet-ship-assembly.js';
|
|
25
|
+
import { resolveFleetCreation, validateFleetCreation, } from '../internal/planning/fleet-creation.js';
|
|
26
|
+
import { validateTokenMint } from '../internal/planning/token-mint.js';
|
|
27
|
+
import { resolveResearchUnlock, validateResearchUnlock, } from '../internal/planning/research-unlock.js';
|
|
28
|
+
import { CLOCK_ADDRESS } from '../internal/planning/faction-enrollment.js';
|
|
29
|
+
import { decodeGameResearchUnlockRules } from '../internal/c4/game.js';
|
|
30
|
+
import { hashGameShipConfigurations, decodeGameShipAssemblyCatalog, } from '../registry/ships.js';
|
|
2
31
|
import { validateGameForCharacterRegistration } from '../registry/onboarding.js';
|
|
3
32
|
import { hashAccountState } from '../internal/planning/account-state.js';
|
|
4
|
-
import {
|
|
33
|
+
import { hashGameCargoConfigurationGuards } from '../registry/cargo.js';
|
|
5
34
|
import { validateWalletCargoCache } from '../internal/c4/wallet-cargo-cache.js';
|
|
6
|
-
import {
|
|
35
|
+
import { deriveCargoDefinitionsCacheAddress } from '../internal/c4/pda.js';
|
|
36
|
+
import { getBase58Decoder, getBase64EncodedWireTransaction, getSignatureFromTransaction, isAddress, isTransactionModifyingSigner, isTransactionPartialSigner, isTransactionSendingSigner, signAndSendTransactionWithSigners, signTransactionWithSigners, } from '@solana/kit';
|
|
7
37
|
import { InvalidActionInputError, SageSdkError } from '../client/errors.js';
|
|
8
38
|
import { invalidateContextAddresses, readContextRawAccounts, } from '../client/reconciliation.js';
|
|
9
|
-
import {
|
|
39
|
+
import { assembleValidatedPlanWithContext, requireWriteRpc, validateAssemblyPolicy, validatePlanAssemblyPolicy, validatePlan, } from './assembly.js';
|
|
40
|
+
import { hashRecipeConfiguration, validateRecipeUsage, } from '../internal/planning/recipe-state.js';
|
|
41
|
+
import { originalTokenBalance } from '../internal/planning/original-token.js';
|
|
10
42
|
const DEFAULT_TIMEOUT_MS = 60_000;
|
|
11
43
|
const DEFAULT_POLL_INTERVAL_MS = 500;
|
|
12
44
|
const MAX_HOST_TIMER_MS = 2_147_483_647;
|
|
@@ -28,20 +60,26 @@ class SignerMismatchError extends InvalidActionInputError {
|
|
|
28
60
|
this.unexpected = unexpected;
|
|
29
61
|
}
|
|
30
62
|
}
|
|
31
|
-
class
|
|
32
|
-
constructor() {
|
|
33
|
-
super('MISSING_WRITE_TRANSPORT', 'This SAGE context has no writeRpc transport, so it cannot execute a Plan. Pass the optional writeRpc transport when creating the context, then retry.');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
class ActionPreconditionFailedError extends SageSdkError {
|
|
63
|
+
export class ActionPreconditionFailedError extends SageSdkError {
|
|
37
64
|
describes;
|
|
38
65
|
observedSlot;
|
|
39
|
-
constructor(precondition, observedSlot) {
|
|
40
|
-
super('ACTION_PRECONDITION_FAILED', `The account state required by this Plan changed at ${
|
|
66
|
+
constructor(precondition, observedSlot, cause, address = precondition.address) {
|
|
67
|
+
super('ACTION_PRECONDITION_FAILED', `The account state required by this Plan changed at ${address}: ${cause ?? precondition.describes} Refresh the affected game state and create a new Plan before retrying.`, { address });
|
|
41
68
|
this.describes = precondition.describes;
|
|
42
69
|
this.observedSlot = observedSlot;
|
|
43
70
|
}
|
|
44
71
|
}
|
|
72
|
+
/** The cause a wrapped guard failure may carry: only a validator's own
|
|
73
|
+
* precondition cause and remedy for the guarded address. Adapter, provider and
|
|
74
|
+
* unknown failures yield `undefined`, so the wrapper falls back to the guard's
|
|
75
|
+
* generic description and never concatenates inner exception text. */
|
|
76
|
+
function guardCause(precondition, error) {
|
|
77
|
+
return error instanceof SageSdkError &&
|
|
78
|
+
error.code === 'ACTION_PRECONDITION_FAILED' &&
|
|
79
|
+
(error.address === undefined || error.address === precondition.address)
|
|
80
|
+
? error.message
|
|
81
|
+
: undefined;
|
|
82
|
+
}
|
|
45
83
|
class TransactionExpiredError extends SageSdkError {
|
|
46
84
|
signature;
|
|
47
85
|
lastValidBlockHeight;
|
|
@@ -267,41 +305,239 @@ function assertPlanTransactionMessage(expected, actual) {
|
|
|
267
305
|
invalid('signers', 'modified compiled transaction message', 'signers that preserve the assembled fee payer, instructions, programs, and account roles while optionally replacing only the transaction lifetime', 'Use a signer that signs the assembled Plan without changing its message, or reassemble a new Plan for the intended transaction before retrying.');
|
|
268
306
|
}
|
|
269
307
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
return null;
|
|
273
|
-
const value = transaction.lifetimeConstraint.lastValidBlockHeight;
|
|
274
|
-
if (typeof value !== 'bigint' || value < 0n || value > MAX_U64) {
|
|
275
|
-
invalid('signers', 'invalid final lastValidBlockHeight metadata', 'a final transaction lifetime with lastValidBlockHeight encoded as an unsigned 64-bit bigint', 'Use a signer that returns trustworthy blockhash lifetime metadata, or use an opaque sending signer whose lifetime cannot produce a definite-expiry claim.');
|
|
276
|
-
}
|
|
277
|
-
return value;
|
|
278
|
-
}
|
|
279
|
-
// Original Token Account layout: mint/authority at 0/32, initialized state at
|
|
280
|
-
// 108, and u32 COption tags at 72/109/129. No capability decoder is imported.
|
|
308
|
+
/** Whether the account still is the guarded original Token account, with at
|
|
309
|
+
* least the guarded balance for a `token-account` guard. */
|
|
281
310
|
function matchesTokenAccount(account, expected) {
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
return false;
|
|
286
|
-
const bytes = new DataView(account.data.buffer, account.data.byteOffset, account.data.byteLength);
|
|
287
|
-
if ((expected.kind === 'token-account' &&
|
|
288
|
-
bytes.getBigUint64(64, true) < expected.minimumBalance) ||
|
|
289
|
-
bytes.getUint8(108) !== 1 ||
|
|
290
|
-
[72, 109, 129].some((offset) => bytes.getUint32(offset, true) > 1))
|
|
291
|
-
return false;
|
|
292
|
-
const decoder = getAddressDecoder();
|
|
293
|
-
return (decoder.decode(account.data.subarray(0, 32)) === expected.mint &&
|
|
294
|
-
decoder.decode(account.data.subarray(32, 64)) === expected.owner);
|
|
311
|
+
const balance = originalTokenBalance(account, expected.mint, expected.owner);
|
|
312
|
+
return (typeof balance === 'bigint' &&
|
|
313
|
+
(expected.kind !== 'token-account' || balance >= expected.minimumBalance));
|
|
295
314
|
}
|
|
296
|
-
|
|
297
|
-
const
|
|
315
|
+
function checkRegistrationFunding(registrations, fee) {
|
|
316
|
+
const balances = new Map();
|
|
317
|
+
for (const registration of registrations) {
|
|
318
|
+
const previous = balances.get(registration.funder);
|
|
319
|
+
if (previous === undefined || registration.observedLamports < previous)
|
|
320
|
+
balances.set(registration.funder, registration.observedLamports);
|
|
321
|
+
}
|
|
322
|
+
if (fee && balances.has(fee.payer))
|
|
323
|
+
balances.set(fee.payer, balances.get(fee.payer) - fee.lamports);
|
|
324
|
+
for (const registration of registrations) {
|
|
325
|
+
const balance = balances.get(registration.funder);
|
|
326
|
+
if (balance < registration.requiredLamports)
|
|
327
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Character registration funding cannot cover the ordered upfront storage and applicable transaction fee. Fund the wallet separately and recreate the Plan; a later Character refund cannot fund an earlier allocation.', { address: registration.funder });
|
|
328
|
+
balances.set(registration.funder, balance - registration.netDebit);
|
|
329
|
+
}
|
|
330
|
+
if (fee)
|
|
331
|
+
for (const registration of registrations) {
|
|
332
|
+
const balance = balances.get(registration.funder);
|
|
333
|
+
if (balance !== 0n && balance < registration.minimumBalance)
|
|
334
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Character registration leaves the funder below its empty-System-account rent minimum. Leave zero or a rent-exempt balance after storage and fees, then recreate the Plan.', { address: registration.funder });
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
async function checkPreconditions(context, allPreconditions, steps, commitment) {
|
|
338
|
+
for (const guard of allPreconditions) {
|
|
339
|
+
if (guard.kind === 'fleet-crew-transfer') {
|
|
340
|
+
try {
|
|
341
|
+
await resolveFleetCrewTransfer(context, guard, guard, commitment);
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
throw new ActionPreconditionFailedError(guard, undefined, error instanceof SageSdkError
|
|
345
|
+
? error.message
|
|
346
|
+
: 'Crew transfer prerequisites could not be verified. Refresh crew state and recreate the Plan.');
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (guard.kind === 'scan-completion')
|
|
350
|
+
await revalidateScanCompletion(context, guard, commitment);
|
|
351
|
+
if (guard.kind === 'scan-detect')
|
|
352
|
+
await revalidateDetect(context, guard, commitment);
|
|
353
|
+
if (guard.kind === 'fleet-attack') {
|
|
354
|
+
try {
|
|
355
|
+
await validateFleetAttackActors(context, guard);
|
|
356
|
+
}
|
|
357
|
+
catch (error) {
|
|
358
|
+
throw new ActionPreconditionFailedError(guard, undefined, guardCause(guard, error) ??
|
|
359
|
+
'The attacking or defending Fleet or Character could not be verified. Refresh both Fleets and their Characters, then recreate the Plan before signing.');
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
for (const guard of allPreconditions) {
|
|
364
|
+
if (guard.kind !== 'fleet-respawn')
|
|
365
|
+
continue;
|
|
366
|
+
try {
|
|
367
|
+
const current = await resolveFleetRespawn(context, { ...guard, fleet: guard.address }, guard, commitment);
|
|
368
|
+
const planned = steps[0].instruction;
|
|
369
|
+
const fresh = current.instruction;
|
|
370
|
+
if (planned.programAddress !== fresh.programAddress ||
|
|
371
|
+
planned.data?.length !== fresh.data?.length ||
|
|
372
|
+
fresh.data?.some((v, i) => planned.data?.[i] !== v) ||
|
|
373
|
+
planned.accounts?.length !== fresh.accounts?.length ||
|
|
374
|
+
fresh.accounts?.some((a, i) => planned.accounts?.[i]?.address !== a.address ||
|
|
375
|
+
planned.accounts?.[i]?.role !== a.role))
|
|
376
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Recovery instruction accounts changed. Recreate and inspect the recovery Plan before signing.');
|
|
377
|
+
}
|
|
378
|
+
catch (error) {
|
|
379
|
+
throw new ActionPreconditionFailedError(guard, undefined, error instanceof SageSdkError
|
|
380
|
+
? error.message
|
|
381
|
+
: 'Recovery prerequisites could not be validated. Refresh the Fleet and recreate the Plan.');
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const checkedXp = new Set();
|
|
385
|
+
const freshGameVersions = new Map();
|
|
386
|
+
const registrationFunding = [];
|
|
387
|
+
const initializations = new Map();
|
|
388
|
+
for (const guard of allPreconditions) {
|
|
389
|
+
if (guard.kind !== 'character-registration')
|
|
390
|
+
continue;
|
|
391
|
+
registrationFunding.push(await revalidateCharacterRegistration(context, guard, commitment, freshGameVersions, initializations));
|
|
392
|
+
}
|
|
393
|
+
checkRegistrationFunding(registrationFunding);
|
|
394
|
+
for (const guard of allPreconditions) {
|
|
395
|
+
if (guard.kind !== 'fleet-arrival')
|
|
396
|
+
continue;
|
|
397
|
+
try {
|
|
398
|
+
const current = await validateFleetArrivalIntent(context, guard.intent, freshGameVersions);
|
|
399
|
+
for (const xp of allPreconditions) {
|
|
400
|
+
if (xp.kind !== 'xp-runtime' ||
|
|
401
|
+
xp.intent.game !== current.xp.intent.game ||
|
|
402
|
+
xp.intent.character !== current.xp.intent.character ||
|
|
403
|
+
xp.intent.structure !== current.xp.intent.structure ||
|
|
404
|
+
(xp.intent.profile !== undefined &&
|
|
405
|
+
xp.intent.profile !== current.intent.profile))
|
|
406
|
+
continue;
|
|
407
|
+
if (['xpBudget', 'xpBudgetConfig', 'xpAccrual'].some((key) => xp.accounts[key] !== current.xp.accounts[key]))
|
|
408
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Arrival XP runtime changed. Refresh the Fleet and recreate the Plan.');
|
|
409
|
+
checkedXp.add(xp);
|
|
410
|
+
}
|
|
411
|
+
if (current.character !== guard.character ||
|
|
412
|
+
current.regionTracker !== guard.regionTracker)
|
|
413
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Arrival account links changed. Refresh the Fleet and recreate the Plan.');
|
|
414
|
+
}
|
|
415
|
+
catch (error) {
|
|
416
|
+
throw new ActionPreconditionFailedError(guard, undefined, error instanceof SageSdkError
|
|
417
|
+
? error.message
|
|
418
|
+
: 'Arrival prerequisites could not be validated. Refresh the Fleet and recreate the Plan.');
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
await revalidateRuntimeGuards(context, allPreconditions
|
|
422
|
+
.filter(isRuntimeGuard)
|
|
423
|
+
.filter((guard) => !checkedXp.has(guard)), freshGameVersions);
|
|
424
|
+
const preconditions = allPreconditions.filter((guard) => !isRuntimeGuard(guard) &&
|
|
425
|
+
guard.kind !== 'fleet-attack' &&
|
|
426
|
+
guard.kind !== 'fleet-arrival' &&
|
|
427
|
+
guard.kind !== 'character-registration' &&
|
|
428
|
+
guard.kind !== 'scan-detect' &&
|
|
429
|
+
guard.kind !== 'scan-completion' &&
|
|
430
|
+
guard.kind !== 'fleet-respawn' &&
|
|
431
|
+
guard.kind !== 'fleet-crew-transfer');
|
|
432
|
+
const fleetCreationAccounts = new Map();
|
|
433
|
+
const fleetAssemblyAccounts = new Map();
|
|
434
|
+
const importFundingAccounts = new Map();
|
|
435
|
+
const assemblyGames = new Set();
|
|
436
|
+
const assemblyCatalogs = new Map();
|
|
437
|
+
const requiredAddresses = new Set(preconditions.map(({ address }) => address));
|
|
438
|
+
for (const guard of preconditions) {
|
|
439
|
+
if (guard.kind === 'fleet-dock-funding' && guard.status === 'available') {
|
|
440
|
+
for (const address of [
|
|
441
|
+
guard.profile,
|
|
442
|
+
guard.starbasePlayer,
|
|
443
|
+
guard.system,
|
|
444
|
+
guard.game,
|
|
445
|
+
RENT_ADDRESS,
|
|
446
|
+
])
|
|
447
|
+
requiredAddresses.add(address);
|
|
448
|
+
}
|
|
449
|
+
if (guard.kind === 'fleet-docking-policy')
|
|
450
|
+
requiredAddresses.add(guard.ownership);
|
|
451
|
+
if (guard.kind === 'local-market-order' && guard.status === 'available') {
|
|
452
|
+
for (const address of [
|
|
453
|
+
guard.character,
|
|
454
|
+
guard.starbasePlayer,
|
|
455
|
+
...marketOrderFundingAddresses(guard.profile, allPreconditions),
|
|
456
|
+
])
|
|
457
|
+
requiredAddresses.add(address);
|
|
458
|
+
}
|
|
459
|
+
if (guard.kind === 'scan-signal-open') {
|
|
460
|
+
for (const address of openSignalAddresses(guard))
|
|
461
|
+
requiredAddresses.add(address);
|
|
462
|
+
}
|
|
463
|
+
if (guard.kind !== 'fleet-create')
|
|
464
|
+
continue;
|
|
465
|
+
const resolved = await resolveFleetCreation(guard);
|
|
466
|
+
if (resolved.fleet !== guard.address)
|
|
467
|
+
throw new ActionPreconditionFailedError(guard, undefined, 'The Fleet address does not match this Game, Profile and exact label. Recreate the Fleet creation Plan from its intended label.');
|
|
468
|
+
fleetCreationAccounts.set(guard, resolved);
|
|
469
|
+
for (const address of [
|
|
470
|
+
resolved.game,
|
|
471
|
+
resolved.profile,
|
|
472
|
+
resolved.system,
|
|
473
|
+
resolved.character,
|
|
474
|
+
resolved.profileFaction,
|
|
475
|
+
resolved.starbasePlayer,
|
|
476
|
+
resolved.fleet,
|
|
477
|
+
resolved.rent,
|
|
478
|
+
resolved.clock,
|
|
479
|
+
])
|
|
480
|
+
requiredAddresses.add(address);
|
|
481
|
+
}
|
|
482
|
+
for (const guard of preconditions) {
|
|
483
|
+
if (guard.kind !== 'fleet-add-ship')
|
|
484
|
+
continue;
|
|
485
|
+
const resolved = await resolveFleetShipAssembly(guard);
|
|
486
|
+
fleetAssemblyAccounts.set(guard, resolved);
|
|
487
|
+
assemblyGames.add(resolved.game);
|
|
488
|
+
for (const address of [
|
|
489
|
+
resolved.game,
|
|
490
|
+
resolved.profile,
|
|
491
|
+
resolved.system,
|
|
492
|
+
resolved.character,
|
|
493
|
+
resolved.profileFaction,
|
|
494
|
+
resolved.starbasePlayer,
|
|
495
|
+
resolved.fleet,
|
|
496
|
+
resolved.rent,
|
|
497
|
+
resolved.clock,
|
|
498
|
+
])
|
|
499
|
+
requiredAddresses.add(address);
|
|
500
|
+
}
|
|
501
|
+
for (const guard of preconditions) {
|
|
502
|
+
if (guard.kind !== 'research-unlock')
|
|
503
|
+
continue;
|
|
504
|
+
for (const address of [
|
|
505
|
+
guard.game,
|
|
506
|
+
guard.profile,
|
|
507
|
+
guard.system,
|
|
508
|
+
guard.starbasePlayer,
|
|
509
|
+
guard.currencyCache,
|
|
510
|
+
CLOCK_ADDRESS,
|
|
511
|
+
])
|
|
512
|
+
requiredAddresses.add(address);
|
|
513
|
+
}
|
|
514
|
+
for (const guard of preconditions) {
|
|
515
|
+
if (guard.kind !== 'ship-import-funding')
|
|
516
|
+
continue;
|
|
517
|
+
let resolved;
|
|
518
|
+
try {
|
|
519
|
+
resolved = await resolveShipImportFunding(guard);
|
|
520
|
+
}
|
|
521
|
+
catch {
|
|
522
|
+
throw new ActionPreconditionFailedError(guard, undefined, 'The ship import target does not match its Game, Profile and System. Refresh the canonical StarbasePlayer and prepare a new import.');
|
|
523
|
+
}
|
|
524
|
+
importFundingAccounts.set(guard, resolved);
|
|
525
|
+
for (const address of [
|
|
526
|
+
resolved.profile,
|
|
527
|
+
resolved.character,
|
|
528
|
+
resolved.starbasePlayer,
|
|
529
|
+
resolved.rent,
|
|
530
|
+
])
|
|
531
|
+
requiredAddresses.add(address);
|
|
532
|
+
}
|
|
533
|
+
const addresses = [...requiredAddresses];
|
|
298
534
|
const accounts = await readContextRawAccounts(context, addresses, {
|
|
299
535
|
commitment,
|
|
300
536
|
});
|
|
301
537
|
const byAddress = new Map(addresses.map((address, index) => [address, accounts[index]]));
|
|
302
538
|
const cargoIdsByGame = new Map();
|
|
303
539
|
for (const guard of preconditions) {
|
|
304
|
-
if (guard.kind !== 'game-cargo-config')
|
|
540
|
+
if (guard.kind !== 'game-cargo-bytes-config')
|
|
305
541
|
continue;
|
|
306
542
|
const ids = cargoIdsByGame.get(guard.address) ?? [];
|
|
307
543
|
ids.push(guard.cargoId);
|
|
@@ -319,23 +555,215 @@ async function checkPreconditions(context, preconditions, commitment) {
|
|
|
319
555
|
// Invocation-local only: every execution attempt still reads and decodes fresh state.
|
|
320
556
|
const cargoHashesByGame = new Map();
|
|
321
557
|
const validatedGames = new Set();
|
|
322
|
-
|
|
558
|
+
// One exact decode per fresh Game row, shared by every Game guard below.
|
|
559
|
+
const gameDecodes = new Map();
|
|
560
|
+
const profileFunding = new Map();
|
|
561
|
+
const fundedTargets = new Set();
|
|
562
|
+
const recordFunding = (guard, funding) => {
|
|
563
|
+
// Repeated guards for one action are assertions, not additional debits.
|
|
564
|
+
// Every guard still validates its own ceiling before reaching here.
|
|
565
|
+
const target = `${guard.kind}:${guard.address}`;
|
|
566
|
+
if (fundedTargets.has(target))
|
|
567
|
+
return;
|
|
568
|
+
fundedTargets.add(target);
|
|
569
|
+
const current = profileFunding.get(guard.profile);
|
|
570
|
+
profileFunding.set(guard.profile, {
|
|
571
|
+
debit: (current?.debit ?? 0n) + funding.profileDebit,
|
|
572
|
+
reserve: funding.profileReserve,
|
|
573
|
+
guard,
|
|
574
|
+
});
|
|
575
|
+
};
|
|
576
|
+
const fleetFailure = (guard, error) => {
|
|
577
|
+
// Only SDK diagnostics from this bounded validation batch are exposed.
|
|
578
|
+
// Never stringify provider/codec objects or retain their inner causes.
|
|
579
|
+
if (error instanceof SageSdkError &&
|
|
580
|
+
error.address !== undefined &&
|
|
581
|
+
requiredAddresses.has(error.address))
|
|
582
|
+
return new ActionPreconditionFailedError(guard, byAddress.get(error.address)?.slot, error.message, error.address);
|
|
583
|
+
return new ActionPreconditionFailedError(guard, undefined, 'Fleet prerequisites could not be validated. Refresh the related accounts and replan with a supported binding version.');
|
|
584
|
+
};
|
|
585
|
+
// A docking Plan from another deployment is reported as such before any
|
|
586
|
+
// freshness guard, whatever the saved guard order.
|
|
587
|
+
for (const precondition of preconditions)
|
|
588
|
+
if ((precondition.kind === 'fleet-dock-funding' ||
|
|
589
|
+
precondition.kind === 'fleet-docking-policy') &&
|
|
590
|
+
precondition.game !== requireGameAddress(context))
|
|
591
|
+
throw fleetFailure(precondition, new SageSdkError('ACTION_PRECONDITION_FAILED', precondition.kind === 'fleet-dock-funding'
|
|
592
|
+
? `The docking Plan belongs to Game ${precondition.game}, but the context uses Game ${requireGameAddress(context)}. Recreate it with the intended Game context.`
|
|
593
|
+
: 'The docking faction policy belongs to another Game. Recreate the Plan with the intended Game context.', { address: precondition.address }));
|
|
594
|
+
// Dependent docking estimates run after every other freshness guard, so an
|
|
595
|
+
// exact account-state or policy diagnostic wins whatever the saved order.
|
|
596
|
+
const ordered = [
|
|
597
|
+
...preconditions.filter((g) => g.kind !== 'fleet-dock-funding'),
|
|
598
|
+
...preconditions.filter((g) => g.kind === 'fleet-dock-funding'),
|
|
599
|
+
];
|
|
600
|
+
for (const precondition of ordered) {
|
|
323
601
|
const account = byAddress.get(precondition.address);
|
|
602
|
+
if (precondition.kind === 'fleet-dock-funding') {
|
|
603
|
+
try {
|
|
604
|
+
const funding = revalidateDockFunding(precondition, byAddress, precondition.status === 'available'
|
|
605
|
+
? decodeDockingSequences(byAddress.get(precondition.game), gameDecodes)
|
|
606
|
+
: undefined);
|
|
607
|
+
if (funding)
|
|
608
|
+
recordFunding(precondition, funding);
|
|
609
|
+
}
|
|
610
|
+
catch (error) {
|
|
611
|
+
throw fleetFailure(precondition, error);
|
|
612
|
+
}
|
|
613
|
+
continue;
|
|
614
|
+
}
|
|
615
|
+
if (precondition.kind === 'local-market-order') {
|
|
616
|
+
try {
|
|
617
|
+
if (precondition.game !== requireGameAddress(context))
|
|
618
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'The order belongs to another Game. Recreate it with the intended Game context.');
|
|
619
|
+
revalidateMarketOrder(precondition, byAddress, allPreconditions);
|
|
620
|
+
}
|
|
621
|
+
catch (error) {
|
|
622
|
+
const failedAddress = error instanceof SageSdkError ? error.address : undefined;
|
|
623
|
+
throw new ActionPreconditionFailedError(precondition, byAddress.get(failedAddress ?? precondition.address)?.slot, error instanceof SageSdkError
|
|
624
|
+
? error.message
|
|
625
|
+
: 'The Local Market debit bounds could not be verified. Refresh its funding accounts and recreate the order Plan.', failedAddress);
|
|
626
|
+
}
|
|
627
|
+
continue;
|
|
628
|
+
}
|
|
629
|
+
if (precondition.kind === 'scan-signal-open') {
|
|
630
|
+
if (precondition.game !== requireGameAddress(context))
|
|
631
|
+
throw new ActionPreconditionFailedError(precondition, undefined, 'This signal setup belongs to a different configured Game. Refetch and recreate the Plan using the intended Game context.');
|
|
632
|
+
try {
|
|
633
|
+
recordFunding(precondition, await validateOpenSignal(precondition, byAddress, precondition.authorityHash));
|
|
634
|
+
}
|
|
635
|
+
catch (error) {
|
|
636
|
+
throw fleetFailure(precondition, error);
|
|
637
|
+
}
|
|
638
|
+
continue;
|
|
639
|
+
}
|
|
640
|
+
if (precondition.kind === 'ship-import-funding') {
|
|
641
|
+
try {
|
|
642
|
+
const funding = validateShipImportFunding(precondition, importFundingAccounts.get(precondition), byAddress, precondition.maximumProfileDebit);
|
|
643
|
+
recordFunding(precondition, funding);
|
|
644
|
+
}
|
|
645
|
+
catch (error) {
|
|
646
|
+
throw fleetFailure(precondition, error);
|
|
647
|
+
}
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
if (precondition.kind === 'research-unlock') {
|
|
651
|
+
try {
|
|
652
|
+
const game = byAddress.get(precondition.game);
|
|
653
|
+
if (precondition.game !== requireGameAddress(context) || !game)
|
|
654
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'The research unlock belongs to another or missing Game. Recreate it with the intended Game context.', { address: precondition.game });
|
|
655
|
+
const resolved = await resolveResearchUnlock(precondition);
|
|
656
|
+
if (resolved.character !== precondition.address ||
|
|
657
|
+
resolved.starbasePlayer !== precondition.starbasePlayer ||
|
|
658
|
+
resolved.currencyCache !== precondition.currencyCache)
|
|
659
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'The research unlock accounts are not canonical for this Game, Profile and System. Recreate the Plan with planUnlockResearchNode.');
|
|
660
|
+
await validateResearchUnlock(precondition, resolved, byAddress, decodeGameResearchUnlockRules(game, gameDecodes));
|
|
661
|
+
}
|
|
662
|
+
catch (error) {
|
|
663
|
+
const failed = error instanceof SageSdkError ? error.address : undefined;
|
|
664
|
+
throw new ActionPreconditionFailedError(precondition, byAddress.get(failed ?? precondition.address)?.slot, error instanceof SageSdkError
|
|
665
|
+
? error.message
|
|
666
|
+
: 'Research prerequisites could not be validated. Refresh the Character, Starbase Player and Game definitions, then recreate the unlock Plan.', failed);
|
|
667
|
+
}
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
if (precondition.kind === 'fleet-add-ship') {
|
|
671
|
+
try {
|
|
672
|
+
const game = byAddress.get(precondition.game);
|
|
673
|
+
let catalog = assemblyCatalogs.get(precondition.game);
|
|
674
|
+
if (!catalog && game) {
|
|
675
|
+
catalog = decodeGameShipAssemblyCatalog(game, gameDecodes);
|
|
676
|
+
assemblyCatalogs.set(precondition.game, catalog);
|
|
677
|
+
}
|
|
678
|
+
const funding = await validateFleetShipAssembly(precondition, fleetAssemblyAccounts.get(precondition), byAddress, precondition, catalog);
|
|
679
|
+
recordFunding(precondition, funding);
|
|
680
|
+
}
|
|
681
|
+
catch (error) {
|
|
682
|
+
throw fleetFailure(precondition, error);
|
|
683
|
+
}
|
|
684
|
+
continue;
|
|
685
|
+
}
|
|
686
|
+
if (precondition.kind === 'fleet-create') {
|
|
687
|
+
try {
|
|
688
|
+
const funding = await validateFleetCreation(precondition, fleetCreationAccounts.get(precondition), byAddress, precondition.maximumProfileDebit);
|
|
689
|
+
recordFunding(precondition, funding);
|
|
690
|
+
}
|
|
691
|
+
catch (error) {
|
|
692
|
+
throw fleetFailure(precondition, error);
|
|
693
|
+
}
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
if (precondition.kind === 'fleet-docking-policy') {
|
|
697
|
+
try {
|
|
698
|
+
await validateFleetDockingPolicy(account, byAddress.get(precondition.ownership), precondition);
|
|
699
|
+
}
|
|
700
|
+
catch (error) {
|
|
701
|
+
throw fleetFailure(precondition, error);
|
|
702
|
+
}
|
|
703
|
+
continue;
|
|
704
|
+
}
|
|
324
705
|
let narrowed = true;
|
|
706
|
+
let cause;
|
|
325
707
|
if (precondition.kind === 'token-account')
|
|
326
708
|
narrowed =
|
|
327
709
|
account !== undefined && matchesTokenAccount(account, precondition);
|
|
328
|
-
if (precondition.kind === '
|
|
710
|
+
if (precondition.kind === 'currency-cache' ||
|
|
711
|
+
precondition.kind === 'movement-character' ||
|
|
712
|
+
precondition.kind === 'starbase-system' ||
|
|
713
|
+
precondition.kind === 'fleet-mining' ||
|
|
714
|
+
isFactionTradeGuard(precondition) ||
|
|
715
|
+
precondition.kind === 'recipe-state' ||
|
|
716
|
+
precondition.kind === 'token-mint' ||
|
|
717
|
+
precondition.kind === 'game-ship-config' ||
|
|
329
718
|
precondition.kind === 'game-account' ||
|
|
330
|
-
precondition.kind === 'game-cargo-config' ||
|
|
719
|
+
precondition.kind === 'game-cargo-bytes-config' ||
|
|
331
720
|
precondition.kind === 'cargo-cache') {
|
|
332
721
|
try {
|
|
333
722
|
if (!account)
|
|
334
723
|
narrowed = false;
|
|
724
|
+
else if (precondition.kind === 'currency-cache') {
|
|
725
|
+
narrowed = precondition.game === requireGameAddress(context);
|
|
726
|
+
if (narrowed)
|
|
727
|
+
await validateCurrencyCache(account, precondition.game);
|
|
728
|
+
}
|
|
729
|
+
else if (precondition.kind === 'movement-character') {
|
|
730
|
+
narrowed =
|
|
731
|
+
precondition.game === requireGameAddress(context) &&
|
|
732
|
+
(await hashMovementCharacter(account, precondition)) ===
|
|
733
|
+
precondition.stateHash;
|
|
734
|
+
}
|
|
735
|
+
else if (precondition.kind === 'starbase-system') {
|
|
736
|
+
narrowed = precondition.game === requireGameAddress(context);
|
|
737
|
+
if (narrowed)
|
|
738
|
+
await validateStarbaseSystem(account, precondition);
|
|
739
|
+
}
|
|
740
|
+
else if (precondition.kind === 'fleet-mining') {
|
|
741
|
+
narrowed =
|
|
742
|
+
precondition.game === requireGameAddress(context) &&
|
|
743
|
+
(await matchesFleetMiningState(account, precondition));
|
|
744
|
+
}
|
|
745
|
+
else if (isFactionTradeGuard(precondition)) {
|
|
746
|
+
narrowed = await matchesFactionTradeState(account, precondition);
|
|
747
|
+
}
|
|
748
|
+
else if (precondition.kind === 'recipe-state') {
|
|
749
|
+
narrowed =
|
|
750
|
+
(await hashRecipeConfiguration(account)) ===
|
|
751
|
+
precondition.configHash;
|
|
752
|
+
if (narrowed)
|
|
753
|
+
validateRecipeUsage(account, precondition.requiredUses);
|
|
754
|
+
}
|
|
755
|
+
else if (precondition.kind === 'token-mint') {
|
|
756
|
+
narrowed = validateTokenMint(account) === precondition.decimals;
|
|
757
|
+
}
|
|
335
758
|
else if (precondition.kind === 'game-ship-config') {
|
|
336
759
|
let hashes = shipHashesByGame.get(precondition.address);
|
|
337
760
|
if (!hashes) {
|
|
338
|
-
|
|
761
|
+
let catalog = assemblyCatalogs.get(precondition.address);
|
|
762
|
+
if (!catalog && assemblyGames.has(precondition.address)) {
|
|
763
|
+
catalog = decodeGameShipAssemblyCatalog(account, gameDecodes);
|
|
764
|
+
assemblyCatalogs.set(precondition.address, catalog);
|
|
765
|
+
}
|
|
766
|
+
hashes = await hashGameShipConfigurations(account, shipIdsByGame.get(precondition.address), catalog, gameDecodes);
|
|
339
767
|
shipHashesByGame.set(precondition.address, hashes);
|
|
340
768
|
}
|
|
341
769
|
narrowed =
|
|
@@ -343,14 +771,20 @@ async function checkPreconditions(context, preconditions, commitment) {
|
|
|
343
771
|
}
|
|
344
772
|
else if (precondition.kind === 'game-account') {
|
|
345
773
|
if (!validatedGames.has(account.address)) {
|
|
346
|
-
|
|
774
|
+
if (assemblyGames.has(precondition.address)) {
|
|
775
|
+
if (!assemblyCatalogs.has(precondition.address))
|
|
776
|
+
assemblyCatalogs.set(precondition.address, decodeGameShipAssemblyCatalog(account, gameDecodes));
|
|
777
|
+
}
|
|
778
|
+
else
|
|
779
|
+
validateGameForCharacterRegistration(account, gameDecodes);
|
|
347
780
|
validatedGames.add(account.address);
|
|
348
781
|
}
|
|
349
782
|
}
|
|
350
|
-
else if (precondition.kind === 'game-cargo-config') {
|
|
783
|
+
else if (precondition.kind === 'game-cargo-bytes-config') {
|
|
351
784
|
let hashes = cargoHashesByGame.get(precondition.address);
|
|
352
785
|
if (!hashes) {
|
|
353
|
-
|
|
786
|
+
const ids = cargoIdsByGame.get(precondition.address);
|
|
787
|
+
hashes = await hashGameCargoConfigurationGuards(account, ids, gameDecodes);
|
|
354
788
|
cargoHashesByGame.set(precondition.address, hashes);
|
|
355
789
|
}
|
|
356
790
|
narrowed =
|
|
@@ -358,35 +792,43 @@ async function checkPreconditions(context, preconditions, commitment) {
|
|
|
358
792
|
}
|
|
359
793
|
else {
|
|
360
794
|
validateWalletCargoCache(account, precondition.game, precondition.bump);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
seeds: [
|
|
364
|
-
new TextEncoder().encode('CargoDefinitionsCache'),
|
|
365
|
-
getAddressEncoder().encode(precondition.game),
|
|
366
|
-
],
|
|
367
|
-
});
|
|
795
|
+
// validateWalletCargoCache requires the SAGE owner.
|
|
796
|
+
const [canonical, bump] = await deriveCargoDefinitionsCacheAddress(precondition.game);
|
|
368
797
|
narrowed =
|
|
369
798
|
canonical === account.address && bump === precondition.bump;
|
|
370
799
|
}
|
|
371
800
|
}
|
|
372
|
-
catch {
|
|
801
|
+
catch (error) {
|
|
373
802
|
narrowed = false;
|
|
803
|
+
cause = guardCause(precondition, error);
|
|
374
804
|
}
|
|
375
805
|
}
|
|
376
806
|
if (!narrowed ||
|
|
377
807
|
(precondition.kind === 'token-account-or-absent' &&
|
|
378
808
|
account !== undefined &&
|
|
379
809
|
!matchesTokenAccount(account, precondition)) ||
|
|
810
|
+
(precondition.kind === 'system-account-or-absent' &&
|
|
811
|
+
account !== undefined &&
|
|
812
|
+
(account.owner !== '11111111111111111111111111111111' ||
|
|
813
|
+
account.executable ||
|
|
814
|
+
account.data.length !== 0)) ||
|
|
380
815
|
(precondition.kind === 'account-absent' && account !== undefined) ||
|
|
381
816
|
(precondition.kind === 'account-state' &&
|
|
382
817
|
(account === undefined ||
|
|
383
818
|
(await hashAccountState(account.owner, account.data)) !==
|
|
384
819
|
precondition.dataHash))) {
|
|
385
|
-
throw new ActionPreconditionFailedError(precondition, account?.slot);
|
|
820
|
+
throw new ActionPreconditionFailedError(precondition, account?.slot, cause);
|
|
386
821
|
}
|
|
387
822
|
}
|
|
823
|
+
for (const [profile, funding] of profileFunding) {
|
|
824
|
+
// Validation above guarantees a fresh Profile from the same finite batch.
|
|
825
|
+
const account = byAddress.get(profile);
|
|
826
|
+
if (account.lamports < funding.reserve + funding.debit)
|
|
827
|
+
throw new ActionPreconditionFailedError(funding.guard, account.slot, 'The Profile cannot cover the combined Profile storage debits while preserving its rent reserve. Fund the Profile explicitly, then recreate and inspect the Plans.', profile);
|
|
828
|
+
}
|
|
829
|
+
return registrationFunding;
|
|
388
830
|
}
|
|
389
|
-
function commitmentReached(actual, requested) {
|
|
831
|
+
export function commitmentReached(actual, requested) {
|
|
390
832
|
if (actual === null)
|
|
391
833
|
return false;
|
|
392
834
|
const strength = {
|
|
@@ -511,7 +953,9 @@ async function confirmTransaction(writeRpc, signature, lastValidBlockHeight, opt
|
|
|
511
953
|
}
|
|
512
954
|
}
|
|
513
955
|
}
|
|
514
|
-
async function signAndSubmit(writeRpc, transaction, signers, sendingSigner, commitment, lifecycle) {
|
|
956
|
+
async function signAndSubmit(writeRpc, transaction, contextSlot, signers, sendingSigner, commitment, lifecycle) {
|
|
957
|
+
// Capture RPC metadata before handing the transaction to any signer.
|
|
958
|
+
const { blockhash, lastValidBlockHeight: assembledHeight } = transaction.lifetimeConstraint;
|
|
515
959
|
await lifecycle?.onBeforeSign();
|
|
516
960
|
if (sendingSigner !== undefined) {
|
|
517
961
|
let enteredOpaqueSender = false;
|
|
@@ -520,7 +964,6 @@ async function signAndSubmit(writeRpc, transaction, signers, sendingSigner, comm
|
|
|
520
964
|
async signAndSendTransactions(transactions, config) {
|
|
521
965
|
for (const signed of transactions) {
|
|
522
966
|
assertPlanTransactionMessage(transaction, signed);
|
|
523
|
-
readFinalLastValidBlockHeight(signed);
|
|
524
967
|
}
|
|
525
968
|
await lifecycle?.onBeforeOpaqueInvoke();
|
|
526
969
|
enteredOpaqueSender = true;
|
|
@@ -546,8 +989,13 @@ async function signAndSubmit(writeRpc, transaction, signers, sendingSigner, comm
|
|
|
546
989
|
const signed = await signTransactionWithSigners(signingSigners, transaction);
|
|
547
990
|
assertPlanTransactionMessage(transaction, signed);
|
|
548
991
|
const signature = getSignatureFromTransaction(signed);
|
|
549
|
-
const lastValidBlockHeight =
|
|
550
|
-
|
|
992
|
+
const lastValidBlockHeight = 'blockhash' in signed.lifetimeConstraint &&
|
|
993
|
+
signed.lifetimeConstraint.blockhash === blockhash
|
|
994
|
+
? assembledHeight
|
|
995
|
+
: null;
|
|
996
|
+
await lifecycle?.onSigned(signature, lastValidBlockHeight === null
|
|
997
|
+
? null
|
|
998
|
+
: Object.freeze({ lastValidBlockHeight, contextSlot }));
|
|
551
999
|
await lifecycle?.onBeforeSubmit();
|
|
552
1000
|
try {
|
|
553
1001
|
const submittedSignature = await writeRpc
|
|
@@ -608,22 +1056,42 @@ export async function executePlanWithLifecycle(context, plan, options, lifecycle
|
|
|
608
1056
|
validatePlanAssemblyPolicy(plan, validated);
|
|
609
1057
|
const signers = matchSigners(plan, validated);
|
|
610
1058
|
const sendingSigner = resolveSendingSigner(signers);
|
|
611
|
-
const writeRpc = context
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
1059
|
+
const writeRpc = requireWriteRpc(context, 'execute');
|
|
1060
|
+
// Guard order is not trusted: funding follows instruction order, including hydrated Plans.
|
|
1061
|
+
const ordered = [...plan.preconditions].sort((a, b) => {
|
|
1062
|
+
const index = (guard) => guard.kind === 'character-registration'
|
|
1063
|
+
? plan.steps.findIndex((step) => step.instruction.accounts?.[2]?.address === guard.address)
|
|
1064
|
+
: -1;
|
|
1065
|
+
return index(a) - index(b);
|
|
1066
|
+
});
|
|
1067
|
+
const registrationFunding = await checkPreconditions(context, ordered, plan.steps, validated.commitment);
|
|
1068
|
+
const { transaction, contextSlot } = await assembleValidatedPlanWithContext(writeRpc, plan, {
|
|
616
1069
|
feePayer: validated.feePayer.address,
|
|
617
1070
|
commitment: validated.commitment,
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
: { computeUnitLimit: validated.computeUnitLimit }),
|
|
621
|
-
...(validated.priorityFeeMicroLamports === undefined
|
|
622
|
-
? {}
|
|
623
|
-
: { priorityFeeMicroLamports: validated.priorityFeeMicroLamports }),
|
|
1071
|
+
computeUnitLimit: validated.computeUnitLimit,
|
|
1072
|
+
priorityFeeMicroLamports: validated.priorityFeeMicroLamports,
|
|
624
1073
|
});
|
|
1074
|
+
if (registrationFunding.length > 0) {
|
|
1075
|
+
if (typeof writeRpc.getFeeForMessage !== 'function')
|
|
1076
|
+
throw new SageSdkError('MISSING_WRITE_TRANSPORT', 'The writeRpc transport has no callable getFeeForMessage method, so Character registration cannot check current transaction fees before signing. Update the custom writeRpc transport to implement the required SageWriteRpc getFeeForMessage method, then retry.');
|
|
1077
|
+
const payer = validated.feePayer.address;
|
|
1078
|
+
const { value: fee } = await writeRpc
|
|
1079
|
+
.getFeeForMessage(getBase64Decoder().decode(transaction.messageBytes), { commitment: validated.commitment })
|
|
1080
|
+
.send();
|
|
1081
|
+
if (typeof fee !== 'bigint' || fee < 0n)
|
|
1082
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Current transaction fee could not be determined. Refresh the blockhash and recreate the registration Plan before signing.', { address: payer });
|
|
1083
|
+
if (!registrationFunding.some((funding) => funding.funder === payer)) {
|
|
1084
|
+
const [account, rent] = await readContextRawAccounts(context, [payer, RENT_ADDRESS], { commitment: validated.commitment });
|
|
1085
|
+
if (!account || !isEmptySystemAccount(account) || !rent)
|
|
1086
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Registration fee payer must be an existing empty System wallet with current Rent available. Select and fund it separately.', { address: payer });
|
|
1087
|
+
const remaining = account.lamports - fee;
|
|
1088
|
+
if (remaining < 0n || (remaining > 0n && remaining < readRent(rent)(0)))
|
|
1089
|
+
throw new SageSdkError('ACTION_PRECONDITION_FAILED', 'Registration fee payer cannot pay the current fee and retain zero or a rent-exempt balance. Fund it separately.', { address: payer });
|
|
1090
|
+
}
|
|
1091
|
+
checkRegistrationFunding(registrationFunding, { payer, lamports: fee });
|
|
1092
|
+
}
|
|
625
1093
|
await lifecycle?.onPrepared(sendingSigner === undefined ? 'observable' : 'opaque');
|
|
626
|
-
const submission = await signAndSubmit(writeRpc, transaction, signers, sendingSigner, validated.commitment, lifecycle);
|
|
1094
|
+
const submission = await signAndSubmit(writeRpc, transaction, contextSlot, signers, sendingSigner, validated.commitment, lifecycle);
|
|
627
1095
|
if (submission.status === 'unknown')
|
|
628
1096
|
return submission;
|
|
629
1097
|
const result = await confirmTransaction(writeRpc, submission.signature, submission.lastValidBlockHeight, validated);
|