Function createRegisterShipInstruction

  • Initiates Score variables account for a provided ship mint.

    Parameters

    • connection: Connection

      web3.Connection object

    • updateAuthorityAccount: PublicKey

      valid authority public key

    • shipMint: PublicKey

      Ship mint address

    • fuelMaxReserve: number

      Max fuel in token units

    • foodMaxReserve: number

      Max food in token units

    • armsMaxReserve: number

      Max arms in token units

    • toolkitMaxReserve: number

      Max toolkits in token units

    • millisecondsToBurnFuel: number

      the amount of milliseconds to burn one fuel token

    • millisecondsToBurnFood: number

      the amount of milliseconds to burn one food token

    • millisecondsToBurnArms: number

      the amount of milliseconds to burn one arms token

    • millisecondsToBurnToolkit: number

      the amount of milliseconds to burn one toolkit token

    • rewardRatePerSecond: number

      Atlas rewarded per second

    • programId: PublicKey

      Deployed Score program ID

    Returns Promise<web3.TransactionInstruction>