ERC-6944: ERC-5219 Resolve Mode

Adds an ERC-4804 resolveMode to support ERC-5219 requests


Metadata
Status: DraftStandards Track: ERCCreated: 2023-04-27
Authors
Gavin John (@Pandapip1), Qi Zhou (@qizhou)

Abstract


This EIP adds a new ERC-4804 resolveMode to resolve ERC-5219 contract resource requests.

Specification


The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Contracts wishing to use ERC-5219 as their ERC-4804 resolve mode must implement the following interface:


Rationale


ERC-165 was not used because interoperability can be checked by calling resolveMode.

Backwards Compatibility


No backward compatibility issues found.

Reference Implementation



Security Considerations


The security considerations of ERC-4804 and ERC-5219 apply.

Copyright


Copyright and related rights waived via CC0.