[SEP-47] Contract Interface Discovery #1659
Replies: 4 comments 10 replies
-
Overall I think this is valuable not just for clients who are trying to determine how to interact with the contract but also for clients looking to collect data on what SEPs are implemented on the network. Like you said in One thing I want to clarify is how SEPs relate to each other and what that means for this proposal. Lets say there is a If its the former, and SEP-1001 is a superset of SEP-1000, then I could see contract authors mistakenly defining their meta entry as |
Beta Was this translation helpful? Give feedback.
-
Is there any specific reason why you prefer using Also, is there any example contract deployed on Testnet/Pubnet which contains such metadata? Would be nice to take a check how it will look from the parser perspective. |
Beta Was this translation helpful? Give feedback.
-
I've added this section to the SEP at the top of the discussion to clarify the current intent of this proposal to only provide access to the meta off-chain.
However, I am now questioning if that is appropriate. On Ethereum the approach used is documented in ERC-165 and it is a runtime evaluation, not a static value. Being a runtime evaluation a contract can ask another contracts if they implement certain interfaces. ❓ If Soroban also wanted a runtime evaluation, should this proposal be that too, so there's a single way to evaluate and it requires calling the contract. ❓ Or, should both approaches co-exist, so there's a simple static way to identify SEP-41 tokens from the outside looking in, and contracts can also call a function to ask a contract as well about if it has specific functions. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'd like to move ahead with this SEP. The feedback above has been positive, and no new concerns have arisen. Here is the PR: |
Beta Was this translation helpful? Give feedback.
-
Hi all, below is a proposal for how a contract can claim to implement a SEP.
The idea captured in this proposal was first shared in conversation that happened here:
Feedback appreciated.
See:
Beta Was this translation helpful? Give feedback.
All reactions