Skip to content

Commit e11cac4

Browse files
Amxxernestognwarr00
authored
Add draft- prefix to ERC-7579 and ERC-7739 related files (#5728)
Co-authored-by: ernestognw <ernestognw@gmail.com> Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
1 parent 13d9086 commit e11cac4

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

contracts/account/extensions/AccountERC7579Hooked.sol renamed to contracts/account/extensions/draft-AccountERC7579Hooked.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.26;
44

55
import {IERC7579Hook, MODULE_TYPE_HOOK} from "../../interfaces/draft-IERC7579.sol";
66
import {ERC7579Utils, Mode} from "../../account/utils/draft-ERC7579Utils.sol";
7-
import {AccountERC7579} from "./AccountERC7579.sol";
7+
import {AccountERC7579} from "./draft-AccountERC7579.sol";
88

99
/**
1010
* @dev Extension of {AccountERC7579} with support for a single hook module (type 4).

contracts/mocks/account/AccountMock.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
pragma solidity ^0.8.27;
44

55
import {Account} from "../../account/Account.sol";
6-
import {AccountERC7579} from "../../account/extensions/AccountERC7579.sol";
7-
import {AccountERC7579Hooked} from "../../account/extensions/AccountERC7579Hooked.sol";
6+
import {AccountERC7579} from "../../account/extensions/draft-AccountERC7579.sol";
7+
import {AccountERC7579Hooked} from "../../account/extensions/draft-AccountERC7579Hooked.sol";
88
import {ERC721Holder} from "../../token/ERC721/utils/ERC721Holder.sol";
99
import {ERC1155Holder} from "../../token/ERC1155/utils/ERC1155Holder.sol";
1010
import {ERC4337Utils} from "../../account/utils/draft-ERC4337Utils.sol";
11-
import {ERC7739} from "../../utils/cryptography/signers/ERC7739.sol";
11+
import {ERC7739} from "../../utils/cryptography/signers/draft-ERC7739.sol";
1212
import {ERC7821} from "../../account/extensions/ERC7821.sol";
1313
import {MODULE_TYPE_VALIDATOR} from "../../interfaces/draft-IERC7579.sol";
1414
import {PackedUserOperation} from "../../interfaces/draft-IERC4337.sol";

contracts/mocks/utils/cryptography/ERC7739Mock.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.20;
44

55
import {ECDSA} from "../../../utils/cryptography/ECDSA.sol";
66
import {EIP712} from "../../../utils/cryptography/EIP712.sol";
7-
import {ERC7739} from "../../../utils/cryptography/signers/ERC7739.sol";
7+
import {ERC7739} from "../../../utils/cryptography/signers/draft-ERC7739.sol";
88
import {SignerECDSA} from "../../../utils/cryptography/signers/SignerECDSA.sol";
99
import {SignerP256} from "../../../utils/cryptography/signers/SignerP256.sol";
1010
import {SignerRSA} from "../../../utils/cryptography/signers/SignerRSA.sol";

contracts/utils/cryptography/signers/ERC7739.sol renamed to contracts/utils/cryptography/signers/draft-ERC7739.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity ^0.8.20;
44

55
import {AbstractSigner} from "./AbstractSigner.sol";
66
import {EIP712} from "../EIP712.sol";
7-
import {ERC7739Utils} from "../ERC7739Utils.sol";
7+
import {ERC7739Utils} from "../draft-ERC7739Utils.sol";
88
import {IERC1271} from "../../../interfaces/IERC1271.sol";
99
import {MessageHashUtils} from "../MessageHashUtils.sol";
1010
import {ShortStrings} from "../../ShortStrings.sol";

docs/modules/ROOT/pages/backwards-compatibility.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ Infrequently a patch or minor update will remove or change an API in a breaking
1313

1414
=== Draft or Pre-Final ERCs
1515

16-
ERCs that are not Final can change in incompatible ways. For this reason, we avoid shipping implementations of ERCs before they are Final. Some exceptions are made for ERCs that have been published for a long time and that seem unlikely to change. Breaking changes to the ERC specification are still technically possible in those cases, so these implementations are published in files named `draft-*.sol` to make that condition explicit.
16+
ERCs that are not Final can change in incompatible ways. For this reason, we avoid shipping implementations of ERCs before they are Final. Some exceptions are made for ERCs that have been published for a long time and seem unlikely to change. Implementations for ERCs that may have breaking changes are published in files named `draft-*.sol` to make that condition explicit. There is no backwards compatibility guarantee for content in files prefixed with `draft`.
17+
18+
Standards that have achieved widespread adoption with strong backwards compatibility expectations from the community may be treated as de-facto finalized and published without the `draft-` prefix, as extensive ecosystem reliance makes breaking changes highly unlikely.
1719

1820
=== Virtual & Overrides
1921

0 commit comments

Comments
 (0)