Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research about standard interface detection. #50

Open
1 of 4 tasks
zemyblue opened this issue Jul 19, 2022 · 1 comment
Open
1 of 4 tasks

Research about standard interface detection. #50

zemyblue opened this issue Jul 19, 2022 · 1 comment
Assignees

Comments

@zemyblue
Copy link
Member

Summary

Research about standard interface detection.

  • Research on function that can replace EVM's function selector.
  • Defining standard interface detection protocol.
  • Suggest a way to use an external library like inheritance from wasm.

Problem Definition

We need to know whether a specific smart contract supports a specific protocol, so that the smart contract can be excute and searched without errors in other smart contracts. For this purpose, in the case of EVM, the function of a function selector is provided. Let's see if there is a function that can replace EVM's function selector function that can distinguish a specific function from the wasm binary even in wasm of lbm-sdk.

If that feature doesn't exist, find out how to replace it.

Inheritance is not supported like EVM throught rustlang, the smart contract development language of cosmwasm. Then, we also suggest how to make a protocol such as ERC-165 a library so that other smart contract developers can use it.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@loloicci
Copy link

Research about interface detection protocol

ERC165

Protocol and interfaces how a contract publishes its interface. The information to publish is defined by the contract's developer.

https://eips.ethereum.org/EIPS/eip-165

ERC1820

There is a contract to register the universal map from contracts to their interfaces, and ERC1820 defines its specification and the interfaces to interact with the contract.

https://eips.ethereum.org/EIPS/eip-1820

substitute of the function selector

On researching.

interface detection method

Done with Finschia/cosmwasm#245

@zemyblue zemyblue transferred this issue from Finschia/finschia-sdk May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants