Function processInitialDeposit

  • Process initial deposit of ship tokens to the SCORE program. Creates ship escrow accounts and transfers ship tokens to them.

    Returns

    InstructionReturn

    Parameters

    • program: ScoreIDLProgram

      Score IDL Program

    • factionEnlistmentProgram: FactionEnlistmentIDLProgram

      Faction Enlistment IDL Program

    • playerAccount: AsyncSigner<unknown>

      Player account

    • shipMint: PublicKey

      Ship mint

    • playerShipTokenAccount: PublicKey

      Player ship token account to transfer from

    • shipQuantity: BN

      Ship quantity to deposit

    Returns InstructionReturn

Generated using TypeDoc