Introspection

Reference of interfaces and utilities related to type introspection.

Core

ISRC5

use openzeppelin::introspection::interface::ISRC5;

Interface of the SRC5 Introspection Standard as defined in SNIP-5.

0x3f918d17e5ee77373b56385708f855659a07f75997f365cf87748628532a055

Functions

supports_interface(interface_id: felt252) → bool external

Checks whether the contract implements the given interface.

Check Computing the Interface ID for more information on how to compute this ID.

SRC5Component

use openzeppelin::introspection::src5::SRC5Component;

SRC5 component extending ISRC5.

Embeddable Implementations

Embeddable functions

supports_interface(self: @ContractState, interface_id: felt252) → bool external

Internal functions

register_interface(ref self: ComponentState, interface_id: felt252) internal

Registers support for the given interface_id.

deregister_interface(ref self: ComponentState, interface_id: felt252) internal

Deregisters support for the given interface_id.