Class ComputeBudgetProgram
java.lang.Object
software.sava.solana.programs.compute_budget.ComputeBudgetProgram
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intstatic intstatic intstatic int -
Method Summary
Modifier and TypeMethodDescriptionstatic software.sava.core.tx.InstructionrequestHeapFrame(software.sava.core.accounts.meta.AccountMeta invokedProgram, int heapRegionSize) static software.sava.core.tx.InstructionsetComputeUnitLimit(software.sava.core.accounts.meta.AccountMeta invokedProgram, int units) static software.sava.core.tx.InstructionsetComputeUnitPrice(software.sava.core.accounts.meta.AccountMeta invokedProgram, long microLamports) static software.sava.core.tx.InstructionsetLoadedAccountsDataSizeLimit(software.sava.core.accounts.meta.AccountMeta invokedProgram, int limit)
-
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)
-