OpenZeppelin / rust-contracts-stylus

A library for secure smart contract development written in Rust
MIT License
56 stars 11 forks source link

Add support interface ERC165 to our contracts #33

Open qalisander opened 5 months ago

qalisander commented 5 months ago

What is the feature you would like to see?

Implement a function selector that is same as ERC165 for solidity.

Also think about ways to to retrieve function selectors and interface id (that is basically xor of all function selectors in the interface). Would be great to have a convenient function selector support from stylus sdk as it is at solidity.

Helpful links:

Add the standard to the following contracts:

Contribution Guidelines

ggonzalez94 commented 3 weeks ago

Moving this to milestone 2 since it is not a major priority at the moment and we are focusing in docs + upgrading the sdk version.