java.lang.Object
software.sava.solana.programs.compute_budget.ComputeBudgetProgram

public final class ComputeBudgetProgram extends Object
  • Field Details

    • CU_LIMIT_CONSUMPTION

      public static int CU_LIMIT_CONSUMPTION
    • CU_PRICE_CONSUMPTION

      public static int CU_PRICE_CONSUMPTION
    • COMPUTE_UNITS_CONSUMED

      public static int COMPUTE_UNITS_CONSUMED
    • SET_LOADED_ACCOUNT_SIZE_LIMIT_CONSUMPTION

      public static int SET_LOADED_ACCOUNT_SIZE_LIMIT_CONSUMPTION
    • MAX_COMPUTE_BUDGET

      public static int MAX_COMPUTE_BUDGET
  • Method Details

    • requestHeapFrame

      public static software.sava.core.tx.Instruction requestHeapFrame(software.sava.core.accounts.meta.AccountMeta invokedProgram, int heapRegionSize)
    • setComputeUnitLimit

      public static software.sava.core.tx.Instruction setComputeUnitLimit(software.sava.core.accounts.meta.AccountMeta invokedProgram, int units)
    • setComputeUnitPrice

      public static software.sava.core.tx.Instruction setComputeUnitPrice(software.sava.core.accounts.meta.AccountMeta invokedProgram, long microLamports)
    • setLoadedAccountsDataSizeLimit

      public static software.sava.core.tx.Instruction setLoadedAccountsDataSizeLimit(software.sava.core.accounts.meta.AccountMeta invokedProgram, int limit)