Solana connection
the SAGE program
the Cargo program
the player profile
the player profile's faction
the cargo stats definition
the SAGE game id
the game state account associated with gameId
the key authorized to run this instruction, should have at least ADD_REMOVE_CARGO
SAGE permissions
the index of the key
in the playerProfile
permissions
Generated using TypeDoc
Clean up Starbase cargo pods
Checks if a PlayerProfile owns more than one cargo pod at the same Starbase and if so, removes the extra cargo pods by transferring all the cargo to the main cargo pod at a Starbase.
Returns
InstructionReturn[]