bobcat-features 0.7.20

bobcat-sdk utilities for feature flagged release on Arbitrum Stylus.
Documentation

bobcat-features

bobcat-features can be used for feature-driven development using a macro with bobcat-storage:

bobcat_features!(internal_balances);

Would create a macro that accesses the storage slot for the feature "bobcat.features.internal_balances" after taking -1 so as to take it off the curve, so uint256(abi.encodePacked("bobcat.features.internal_balances")) - 1. If true is set, to the feature flag, then the code associated executes.

IF_FEATURE_INTERNAL_BALANCES!({
    // This happens if the flag is turned on:
} else {
    // This happens if the flag is turned off:
});