Crate solana_builtins_default_costs

Source

Structs§

MAYBE_BUILTIN_KEY
A table of 256 booleans indicates whether the first u8 of a Pubkey exists in BUILTIN_INSTRUCTION_COSTS. If the value is true, the Pubkey might be a builtin key; if false, it cannot be a builtin key. This table allows for quick filtering of builtin program IDs without the need for hashing.
MigratingBuiltinCost
NotMigratingBuiltinCost

Enums§

BuiltinCost
DEVELOPER: when a builtin is migrated to sbpf, please add its corresponding migration feature ID to BUILTIN_INSTRUCTION_COSTS, and move it from NON_MIGRATING_BUILTINS_COSTS to MIGRATING_BUILTINS_COSTS, so the builtin’s default cost can be determined properly based on feature status. When migration completed, eg the feature gate is enabled everywhere, please remove that builtin entry from MIGRATING_BUILTINS_COSTS.
BuiltinMigrationFeatureIndex

Constants§

MIGRATING_BUILTINS_COSTS
NON_MIGRATING_BUILTINS_COSTS

Functions§

get_builtin_instruction_cost
get_builtin_migration_feature_index
get_migration_feature_id
Helper function to return ref of migration feature Pubkey at position index from MIGRATING_BUILTINS_COSTS