Static Readonly ACCOUNT_Static Readonly MIN_Static calculateStatic cancelCancel Crafting Process
InstructionReturn
SAGE program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
recipient of the rent refund
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting facility
the SAGE game id
the game state account
the instruction input params
Static claimClaim Crafting Process Non-consumable inputs
InstructionReturn
SAGE program
cargo program
crafting program
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting recipe
the destination cargo pod
the cargo type
the cargo stats definition
the source token account - owner should be craftingProcess
the destination token account - owner should be cargoPodTo
the token mint
the instruction input params
Static claimClaim Crafting Process Output
InstructionReturn
SAGE program
cargo program
crafting program
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting recipe
the craftable item for the output
the destination cargo pod
the cargo type
the cargo stats definition
the source token account - owner should be craftableItem
the destination token account - owner should be cargoPodTo
the instruction input params
Static closeClose Crafting Process
InstructionReturn
SAGE program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
recipient of the rent refund
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting facility
the crafting recipe
the SAGE game id
the game state account
the instruction input params
Static createCreate Crafting Process
InstructionReturn
SAGE program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the Starbase player
the Starbase
the SAGE game id
the game state account
the crafting facility
the crafting recipe
the crafting domain
the instruction input params
Static decodeStatic depositDeposit Crafting Recipe Ingredient
InstructionReturn
SAGE program
cargo program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting facility
the crafting recipe
the source cargo pod
the cargo type
the cargo stats definition
the source account of the tokens - owner should be cargoPodFrom
the destination account of the tokens - owner should be craftingProcess
the SAGE game id
the game state account
the instruction input params
Static findFind the CraftingInstance account address
The PDA and bump respectively
SAGE program
the Starbase player
the crafting process
Static startStart Crafting Process
InstructionReturn
SAGE program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting facility
the crafting recipe
the SAGE game id
the game state account
the instruction input params
Optional tokenFromAuthority: AsyncSigner<unknown>the transfer authority of tokenFrom
Optional tokenFrom: PublicKeythe source token account for crafting fees
Optional tokenTo: PublicKeythe destination token account for crafting fees, should be as defined in craftingRecipe account
Static withdrawWithdraw Crafting Recipe Ingredient
InstructionReturn
SAGE program
cargo program
crafting program
the key authorized to run this instruction
the player's profile with the required permissions for the instruction
the profile's faction
the Starbase player
the Starbase
the crafting instance
the crafting process
the crafting facility
the crafting recipe
the destination cargo pod
the cargo type
the cargo stats definition
the source token account - owner should be craftingProcess
the destination token account - owner should be cargoPodTo
the token mint
the SAGE game id
the game state account
the instruction input params
Generated using TypeDoc
Calculate the crafting duration
Returns
the crafting duration in seconds