bobcat-proxy 0.8.6

bobcat-sdk utilities for creating proxy code on Arbitrum Stylus.
Documentation
// eip1967: Simple forwarding contract. Built with huffc 0.3.0 (we
// manually got the offset for 0x30 + codecopy):

#define constant SLOT_IMPL = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc

#define macro MAIN() = takes(0) returns(0) {
    calldatasize 0x0 0x0 calldatacopy
    0x0 0x0 calldatasize 0x0 [SLOT_IMPL] sload gas delegatecall
    0x0 returndatasize 0x0 0x0 returndatacopy
    returndatasize swap2 RETURN jumpi revert
    RETURN: return
}

#define macro CONSTRUCTOR() = takes(0) returns(0) {
    0x1000000000000000000000000000000000000001
    // Copy the slot from the code. I manually estimated 0x30:
    0x20 0x30 0x0 codecopy 0x0 mload
    sstore
}