Create 0180-ton-standard-interface-detection#180
Create 0180-ton-standard-interface-detection#180awesome-doge wants to merge 4 commits intoton-blockchain:masterfrom
Conversation
A new TON Enhancement Proposal (TEP) has been added, proposing a standard interface detection mechanism for the TON blockchain. This is inspired by Ethereum's EIP-165 and aims to standardize methods for detecting and confirming the implementation of interfaces in smart contracts using FIFT, FUNC, and TACT languages. The proposal includes detailed specifications, example implementations, rationale behind the proposal, implementation steps, backward compatibility considerations, test cases and security considerations.
…tion Fix type and other bugs.
|
2 bytes ID it's only 65535 variants and can give a lot of collisions. for NFT collection |
|
(1-1) Currently, I'm on the fence that selecting a function ID to be consistent with 16-bit lite-client style or use 32-bit length. However, if you support the perspective not following the lite-client style in this topic, I think it's good to adopt the request flag (1-2) The former will not get significant benefits (we can call lite-client simultaneously). However, the latter scenario will benefit from this TEP. I believe that it's not an efficient way to send several internal messages to the contract asking whether it supports a specific interface. (2) |
A new TON Enhancement Proposal (TEP) has been added, proposing a standard interface detection mechanism for the TON blockchain. This is inspired by Ethereum's EIP-165 and aims to standardize methods for detecting and confirming the implementation of interfaces in smart contracts using FIFT, FUNC, and TACT languages. The proposal includes detailed specifications, example implementations, rationale behind the proposal, implementation steps, backward compatibility considerations, test cases and security considerations.