Expand description
Procedural macros for routers, clients, events, and storage layouts in Fluentbase contracts.
Macros§
- derive_
evm_ error - derive_
keccak256 - Calculates a full Keccak-256 hash from a signature.
- derive_
keccak256_ bytes4 - derive_
keccak256_ id - Calculates a Keccak-256 function selector from a signature.
- derive_
solidity_ client - Generates ready-to-use client code from Solidity definitions.
- derive_
solidity_ trait - Generates Rust traits from Solidity interfaces and contracts.
- eip1967_
slot - Computes EIP-1967 storage slot at compile time. Formula: keccak256(id) - 1
- erc7201_
slot - Computes ERC-7201 namespaced storage slot at compile time. Formula: keccak256(abi.encode(uint256(keccak256(id)) - 1)) & ~0xff
- solidity_
storage - Implements Solidity-compatible storage in Fluentbase contracts.
Attribute Macros§
- client
- Client macro for type-safe interaction with Fluentbase contracts.
- constructor
- Defines contract initialization logic.
- function_
id - Function ID attribute for overriding function selectors in smart contracts.
- router
- Router macro for Fluentbase smart contracts.