Skip to main content

Module option_token_address

Module option_token_address 

Source
Expand description

Pure option-token Create2 derivation helpers.

Structs§

OptionTokenDeployment
Explicit Create2 deployment parameters for option-token derivation.

Enums§

OptionTokenDerivationError
Error returned when deriving an option token address.
ShortStringEncodingError
Error returned when encoding a canonical ShortString-backed bytes32.

Constants§

MAX_SHORT_STRING_BYTES
Maximum UTF-8 byte length supported by OpenZeppelin ShortStrings.

Functions§

derive_option_token_address
Derive an option token address from a normalized option-type string.
derive_option_token_address_for_type
Derive an option token address from explicit deployment parameters and parsed option type.
encode_short_string_bytes32
Encode a UTF-8 string into the canonical OpenZeppelin ShortStrings bytes32 layout.
option_token_salt 🔒