From bd12378062fb7a51bec8e1a68e0b9fa24ec5ca5e Mon Sep 17 00:00:00 2001 From: xinbenlv Date: Thu, 15 Dec 2022 01:16:53 -0800 Subject: [PATCH] Fix updates (#6141) --- EIPS/eip-5453.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/EIPS/eip-5453.md b/EIPS/eip-5453.md index 96d6107f26e71..322cc3b2ceced 100644 --- a/EIPS/eip-5453.md +++ b/EIPS/eip-5453.md @@ -105,6 +105,8 @@ interface IERC5453EndorsementDataTypeB { } ``` +See [`IERC5453.sol`](../assets/eip-5453/IERC5453.sol). + ### Behavior specification As specified in [EIP-5750 General Extensibility for Method Behaviors](./eip-5750.md), any compliant method that has an `bytes extraData` as its @@ -175,8 +177,6 @@ could balance a wider range of use cases. E.g. the same use cases of EIP-2612 an 2. We chose to include both `validSince` and `validBy` to allow maximum flexibility in expiration. This can be also be supported by EVM natively at if adopted [EIP-5081](./eip-5081.md) but EIP-5081 will not be adopted anytime soon, we choose to add these two numbers in our protocol to allow smart contract level support. - - ## Backwards Compatibility The design assumes a `bytes calldata extraData` to maximize the flexibility of future extensions. This assumption is compatible with [EIP-721](eip-721.md), [EIP-1155](eip-1155.md) and many other ERC-track EIPs. Those that aren't, such as [EIP-20](./eip-20.md), can also be updated to support it, such as using a wrapper contract or proxy upgrade. @@ -258,6 +258,8 @@ abstract contract AERC5453Endorsible is EIP712, ``` +See [`AERC5453.sol`](../assets/eip-5453/AERC5453.sol) + ### Reference Implementation of `EndorsableERC721` Here is a reference implementation of `EndorsableERC721` that achieves similar behavior of [EIP-4494](./eip-4494.md). @@ -287,6 +289,8 @@ contract EndorsableERC721 is ERC721, AERC5453Endorsible { } ``` +See [`EndorsableERC721.sol`](../assets/eip-5453/EndorsableERC721.sol) + ### Reference Implementation of `ThresholdMultiSigForwarder` Here is a reference implementation of ThresholdMultiSigForwarder that achieves similar behavior of multi-sig threshold approval @@ -324,6 +328,8 @@ contract ThresholdMultiSigForwarder is AERC5453Endorsible { ``` +See [`ThresholdMultiSigForwarder.sol`](../assets/eip-5453/ThresholdMultiSigForwarder.sol) + ## Security Considerations ### Replay Attacks