Static Readonly ACCOUNT_Static Readonly MIN_Static addSAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the ship being added to the fleet
the Starbase player
the Starbase where the fleet is docked
the SAGE game id
the game state
the instruction input params
Static asteroidGeneric asteroid mining handler
InstructionReturn
SAGE program
cargo program
the faction of the profile that owns the fleet that is mining
the fleet
the Starbase
the mine item
the resource
the planet
the fleet cargo hold cargo pod
the fleet ammo bank cargo pod
the food cargo type
the ammo cargo type
the cargo type for the resource being mined
the cargo stats definition
the game state. No longer used, maintained for backwards compatibility
the SAGE game id
the source token account for food
the source token account for ammo
the source token account for the resource
the destination token account for the resource
the food token mint
the ammo token mint
Static calculateCalculate the time it would take for ammo to run out during mining
time it would take for food to run out during mining
the fleet's stats
the ammo available
Static calculateCalculate the amount of ammo to consume
amount of ammo to consume
the fleet's stats
the ammo available
the duration
Static calculateCalculate the mining emission rate
the mining emission rate
Static calculateCalculate the mining emission rate using raw numbers
the mining emission rate
the fleet's stats
the resource hardness of the mine item
the system richness associated with the mine item
Static calculateCalculate the time it would take for food to run out during mining
time it would take for food to run out during mining
the fleet's stats
the food available
Static calculateCalculate the amount of food to consume
amount of food to consume
the fleet's stats
the food available
the duration
Static calculateCalculate the time it would take to mine the resourceAmount
the time it would take to mine the resourceAmount
the fleet's stats
the mine item
the resource associated with the mine item
the amount of resource
Static calculateCalculate the time it would take to mine the resourceAmount with raw numbers
the time it would take to mine the resourceAmount
the fleet's stats
the resource hardness of the mine item
the system richness associated with the mine item
the amount of resource
Static calculateCalculate the the amount of resource to extract
the amount of resource to extract
the fleet's stats
the mine item
the resource associated with the mine item
the time elapsed in seconds
the max amount of resource
Static calculateCalculate the the amount of resource to extract with raw numbers
the amount of resource to extract
the fleet's stats
the resource hardness of the mine item
the system richness associated with the mine item
the time elapsed in seconds
the max amount of resource
Static calculateCalculate Combined Cargo Stats
CargoStats
current fleet CargoStats
ship CargoStats
Static calculateStatic calculateCalculate Combined Movement Stats
MovementStats
current fleet MovementStats
ship MovementStats
Static calculateStatic calculateCalculate the amount of fuel to burn for subwarp movement given the coordinates
the amount fo fuel spent for moving
the fleet's stats
the 1st set of coordinates
the 2nd set of coordinates
Static calculateCalculate the amount of fuel to burn for subwarp movement given the distance
the amount fo fuel spent for moving
the fleet's stats
the distance
Static calculateStatic calculateCalculate the time take to subwarp given coordinates
the time taken to subwarp
the fleet's stats
the 1st set of coordinates
the 2nd set of coordinates
Static calculateCalculate the amount of fuel to burn for warp movement given the coordinates
the amount fo fuel spent for moving
the fleet's stats
the 1st set of coordinates
the 2nd set of coordinates
Static calculateStatic calculateStatic calculateCalculate the time take to warp given coordinates
the time taken to warp
the fleet's stats
the 1st set of coordinates
the 2nd set of coordinates
Static closeCloses a token account that is owned by the Fleet cargo pod (burns any token balance)
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
recipient of the rent refund
the profile with the required permissions for the instruction
the profile's faction
the fleet
the cargo pod, owned by the fleet
the cargo type
the cargo stats definition
the token account, owned by cargoPod
the token mint
the SAGE game id
the game state
the instruction input params
Static createCreate a new Fleet
the fleet address, the addresses of fleet cargo pods & InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the first ship to add to the fleet
the Starbase player
the Starbase
the SAGE game id
the game state
the cargo stats definition
the instruction input params
Static decodeStatic depositDeposits cargo to a Fleet from a Starbase
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
recipient of the rent refund
the Starbase
the Starbase player
the fleet
the source cargo pod, owned by starbasePlayer
the destination cargo pod, owned by fleet
the cargo type
the cargo stats definition
the source token account, owned by cargoPodFrom
the destination token account, owned by cargoPodTo
the token mint
the SAGE game id
the game state
the instruction input params
Static disbandDisbands a Fleet
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase player
the Starbase where the fleet is docked
the SAGE game id
the game state
the instruction input params
Static findFind the Fleet account address
The PDA and bump respectively
SAGE program
the SAGE game id
the profile with the required permissions for the instruction
the fleet label
Static findFind the fleet PointsModifier account address
The PDA and bump respectively
SAGE program
the points category
Static fleetGeneric fleet state handler This is meant to be used when you want to run the fleet state handler and can provide your own remaining accounts
InstructionReturn
SAGE program
the fleet
the remaining accounts (an array of AccountMeta)
Static forceForcefully disbands a Fleet
This is only necessary when - after a Ship that is part of the fleet is invalidated
the disbanded fleet address & InstructionReturn
SAGE program
cargo program
the fleet
the Starbase player
the Starbase
the ship
the SAGE game id
the game state
the instruction input params
Static forceDrops cargo from a Fleet that is in the Respawn state
InstructionReturn
SAGE program
cargo program
the fleet
the cargo pod
the cargo type
the cargo stats definition
the SAGE game id
the source token account
the token mint
Static getStatic idleTransition a fleet from the Idle state to the Docked state
InstructionReturn
SAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase to dock into
the Starbase player
the SAGE game id
the game state
the instruction input params
Static idleTransition a Fleets state from Idle to Respawn
InstructionReturn
SAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
ATLAS token account owned by player
the vault ATLAS token account (as defined in GameState)
the game state
the SAGE game id
the instruction input params
Static loadingTransition a fleet from the docked state to the idle state
InstructionReturn
SAGE program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase that the fleet is currently docked at
the Starbase player
the SAGE game id
the game state
the instruction input params
Static mineGet into the Respawn state from MineAsteroid
InstructionReturn
SAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the resource
the planet
the fleet's fuel tank cargo pod
the game state
the SAGE game id
the source token account for fuel
ATLAS token account owned by player
the vault ATLAS token account (as defined in GameState)
the instruction input params
Static moveWarp movement handler function
InstructionReturn
SAGE program
the fleet
Static movementGeneric movement handler function
InstructionReturn
SAGE program
the player's profile with the required permissions for the instruction
the SAGE game id
the game state
the fleet
the fleet account data
the sector that fleet is moving from
Optional toSector: PublicKeythe sector that the fleet is moving to
Optional cargoPod: PublicKeythe fuel tank cargo pod
Optional cargoType: PublicKeythe fuel cargo type
Optional cargoStatsDefinition: PublicKeythe cargo stats definition
Optional cargoTokenAccount: PublicKeythe fuel token account
Optional tokenMint: PublicKeythe fuel token mint
Optional cargoProgram: CargoIDLProgramcargo program
Static movementSubwarp movement handler function
InstructionReturn
SAGE program
cargo program
the player's profile with the required permissions for the instruction
the fleet
the fuel tank cargo pod
the fuel cargo type
the cargo stats definition
the fuel token account
the fuel token mint
the SAGE game id
the game state
Static multiplyMultiply Cargo Stats
CargoStats
ship CargoStats
the number of ships
Static multiplyStatic multiplyMultiply Movement Stats
MovementStats
ship MovementStats
the number of ships
Static multiplyStatic registerRegister a points modifier for fleets
InstructionReturn
SAGE program
points program
the key index input
the points category
the game state
whether the modifier can increment points
whether the modifier can decrement points
the PointsCategoryEnum
the SAGE game id
Static respawnTransition a fleet from Respawn to docked
InstructionReturn
SAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase
the Starbase player
the fleet cargo hold cargo pod
the fleet's fuel tank cargo pod
the fleet ammo bank cargo pod
the SAGE game id
the game state
the instruction input params
Static startStart mining an asteroid
InstructionReturn
SAGE program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase
the Starbase player
the mine item
the resource
the planet (Planet Type has to be asteroid)
the game state
the SAGE game id
the instruction input params
Static startStart subwarp movement
InstructionReturn
SAGE program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the fleet
the SAGE game id
the game state
the instruction input params
Static stopStop mining an asteroid
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
the profile with the required permissions for the instruction
the profile's faction
the fleet
the resource
the planet
the fleet's fuel tank cargo pod
the fuel cargo type
the cargo stats definition
the game state
the SAGE game id
the source token account for fuel
the fuel token mint
the instruction input params
Static stopStop an Subwarp movement in progress
InstructionReturn
SAGE program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the fleet
the fuel tank cargo pod
the fuel cargo type
the cargo stats definition
the fuel token account
the fuel token mint
the SAGE game id
the game state
cargo program
the instruction input params
Static transferTransfers cargo within a Fleet
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
recipient of the rent refund
the profile with the required permissions for the instruction
the profile's faction
the fleet
the source cargo pod, owned by fleet
the destination cargo pod, owned by fleet
the cargo type
the cargo stats definition
the source token account, owned by cargoPodFrom
the destination token account, owned by cargoPodTo
the token mint
the SAGE game id
the game state
the instruction input params
Optional starbase: PublicKeythe Starbase
Static updateUpdate a Ship in a Fleet
InstructionReturn
SAGE program
the fleet
the old ship being updated
the value of the next field on the old ship account
the SAGE game id
the game state
the instruction input params
Static warpWarp to new Sector using the warp lane
InstructionReturn
SAGE program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the fleet
the Starbase that the fleet is moving from
the Starbase that the fleet is moving to
the sector that fleet is moving from
the sector that the fleet is moving to
the fleet's fuel tank cargo pod
the cargo type
the cargo stats definition
the source token account for fuel
the fuel token mint
the source token account for the fee
the destination token account for the fee
the fee token mint
the game state
the SAGE game id
cargo program
the instruction input params
Static warpWarp to coordinate
InstructionReturn
SAGE program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the fleet
the fleet's fuel tank cargo pod
the cargo type
the cargo stats definition
the fuel source token account, owned by fuelTank
the fuel token mint
the game state
the SAGE game id
cargo program
the instruction input params
Static withdrawWithdraws cargo from a Fleet to a Starbase
InstructionReturn
SAGE program
cargo program
the key authorized to run this instruction
recipient of the rent refund
the profile with the required permissions for the instruction
the profile's faction
the Starbase
the Starbase player
the fleet
the source cargo pod, owned by the fleet
the destination cargo pod, owned by starbasePlayer
the cargo type
the cargo stats definition
the source token account, owned by cargoPodFrom
the destination token account, owned by cargoPodTo
the token mint
the SAGE game id
the game state
the instruction input params
Generated using TypeDoc
Add a
Shipto aFleetReturns
InstructionReturn