Some updates on EIP-4804
- name type is replaced by address type
- add a principle to highlight that EIP-4804 should be maximum compatible with the HTTP-URL standard so that existing Web2 users can migrate to Web3 easily with minimal knowledge of this standard.
The second one is inspired by our discussion of interoperability with SVG (or more generally, any on-chain Web content), which is one of the most applications we want to support. Please take a look.
Yes, the URL may look like
https://example.eth.foo.test/balanceOf/bar.eth#uint256
or
https://foo.test/example.eth/balanceOf/bar.eth#uint256
where the ipfs’s gateway has similar link to resolve ipfs resources.
Given the principle that we want to maximize compatibility with HTTP-URL, we the 5th option may be
5. web3://foo.eth/balanceOf/address!bar.eth?returnType=(uint256)
which is more like a standard HTTP-URL.