From 3fdef278da4560c017bd09a241abb468161a94ce Mon Sep 17 00:00:00 2001 From: Eric Nordelo Date: Wed, 20 Nov 2024 16:33:47 +0100 Subject: [PATCH] Bump version to 0.20.0-rc.0 and update presets page (#1227) Co-authored-by: ericnordelo --- README.md | 4 +- Scarb.lock | 28 ++++++------- Scarb.toml | 2 +- docs/antora.yml | 2 +- docs/modules/ROOT/pages/api/access.adoc | 6 +-- docs/modules/ROOT/pages/api/account.adoc | 14 +++---- docs/modules/ROOT/pages/api/erc1155.adoc | 12 +++--- docs/modules/ROOT/pages/api/erc20.adoc | 10 ++--- docs/modules/ROOT/pages/api/erc721.adoc | 16 +++---- docs/modules/ROOT/pages/api/finance.adoc | 8 ++-- docs/modules/ROOT/pages/api/governance.adoc | 10 ++--- .../modules/ROOT/pages/api/introspection.adoc | 4 +- docs/modules/ROOT/pages/api/merkle-tree.adoc | 6 +-- docs/modules/ROOT/pages/api/security.adoc | 6 +-- docs/modules/ROOT/pages/api/testing.adoc | 2 +- docs/modules/ROOT/pages/api/token_common.adoc | 8 ++-- docs/modules/ROOT/pages/api/udc.adoc | 4 +- docs/modules/ROOT/pages/api/upgrades.adoc | 6 +-- docs/modules/ROOT/pages/index.adoc | 2 +- docs/modules/ROOT/pages/presets.adoc | 2 +- docs/modules/ROOT/pages/upgrades.adoc | 2 +- .../ROOT/pages/utils/_class_hashes.adoc | 16 +++---- docs/modules/ROOT/pages/wizard.adoc | 2 +- packages/access/README.md | 8 ++-- .../src/accesscontrol/accesscontrol.cairo | 2 +- .../access/src/accesscontrol/interface.cairo | 2 +- packages/access/src/ownable/interface.cairo | 2 +- packages/access/src/ownable/ownable.cairo | 2 +- packages/account/README.md | 12 +++--- packages/account/src/account.cairo | 2 +- packages/account/src/eth_account.cairo | 2 +- .../src/extensions/src9/interface.cairo | 2 +- .../src/extensions/src9/snip12_utils.cairo | 2 +- .../account/src/extensions/src9/src9.cairo | 2 +- packages/account/src/interface.cairo | 2 +- packages/account/src/utils.cairo | 2 +- .../account/src/utils/secp256_point.cairo | 2 +- packages/account/src/utils/signature.cairo | 2 +- packages/finance/src/vesting/interface.cairo | 2 +- packages/finance/src/vesting/vesting.cairo | 2 +- packages/governance/README.md | 10 ++--- .../extensions/governor_core_execution.cairo | 2 +- .../extensions/governor_counting_simple.cairo | 2 +- .../extensions/governor_settings.cairo | 2 +- .../governor_timelock_execution.cairo | 2 +- .../governor/extensions/governor_votes.cairo | 2 +- .../governor_votes_quorum_fraction.cairo | 2 +- .../src/governor/extensions/interface.cairo | 2 +- .../governance/src/governor/governor.cairo | 2 +- .../governance/src/governor/interface.cairo | 2 +- .../src/governor/proposal_core.cairo | 2 +- packages/governance/src/governor/vote.cairo | 2 +- .../governance/src/multisig/interface.cairo | 2 +- .../governance/src/multisig/multisig.cairo | 2 +- .../src/multisig/storage_utils.cairo | 2 +- .../governance/src/timelock/interface.cairo | 2 +- .../src/timelock/timelock_controller.cairo | 2 +- .../governance/src/utils/call_impls.cairo | 2 +- .../governance/src/votes/delegation.cairo | 2 +- packages/governance/src/votes/interface.cairo | 2 +- packages/governance/src/votes/votes.cairo | 4 +- packages/introspection/README.md | 6 +-- packages/introspection/src/interface.cairo | 2 +- packages/introspection/src/src5.cairo | 2 +- packages/merkle_tree/README.md | 2 +- packages/merkle_tree/src/hashes.cairo | 2 +- packages/merkle_tree/src/merkle_proof.cairo | 2 +- packages/presets/README.md | 14 +++---- packages/presets/src/account.cairo | 2 +- packages/presets/src/erc1155.cairo | 2 +- packages/presets/src/erc20.cairo | 2 +- packages/presets/src/erc721.cairo | 2 +- packages/presets/src/eth_account.cairo | 2 +- packages/presets/src/universal_deployer.cairo | 2 +- packages/presets/src/vesting.cairo | 2 +- packages/security/README.md | 8 ++-- packages/security/src/initializable.cairo | 2 +- packages/security/src/interface.cairo | 2 +- packages/security/src/pausable.cairo | 2 +- packages/security/src/reentrancyguard.cairo | 2 +- packages/testing/README.md | 10 ++--- packages/token/README.md | 42 +++++++++---------- .../token/src/common/erc2981/erc2981.cairo | 2 +- .../token/src/common/erc2981/interface.cairo | 2 +- packages/token/src/erc1155/erc1155.cairo | 2 +- .../token/src/erc1155/erc1155_receiver.cairo | 2 +- packages/token/src/erc1155/interface.cairo | 2 +- packages/token/src/erc20/erc20.cairo | 4 +- packages/token/src/erc20/interface.cairo | 2 +- .../token/src/erc20/snip12_utils/permit.cairo | 2 +- packages/token/src/erc721/erc721.cairo | 2 +- .../token/src/erc721/erc721_receiver.cairo | 2 +- .../erc721_enumerable/erc721_enumerable.cairo | 2 +- .../erc721_enumerable/interface.cairo | 2 +- packages/token/src/erc721/interface.cairo | 2 +- packages/upgrades/README.md | 8 ++-- packages/upgrades/src/interface.cairo | 2 +- packages/upgrades/src/upgradeable.cairo | 2 +- packages/utils/README.md | 16 +++---- packages/utils/src/bytearray.cairo | 2 +- .../utils/src/cryptography/interface.cairo | 2 +- packages/utils/src/cryptography/nonces.cairo | 2 +- packages/utils/src/cryptography/snip12.cairo | 2 +- packages/utils/src/deployments.cairo | 2 +- .../utils/src/deployments/interface.cairo | 2 +- packages/utils/src/math.cairo | 2 +- packages/utils/src/serde.cairo | 2 +- packages/utils/src/structs/checkpoint.cairo | 2 +- sncast_scripts/Scarb.lock | 18 ++++---- 109 files changed, 239 insertions(+), 239 deletions(-) diff --git a/README.md b/README.md index c0de2604f..befe529a1 100644 --- a/README.md +++ b/README.md @@ -41,14 +41,14 @@ Edit `scarb.toml` and add: ```toml [dependencies] -openzeppelin = "0.19.0" +openzeppelin = "0.20.0-rc.0" ``` The previous example would import the entire library. We can also add each package as a separate dependency to improve the building time by not including modules that won't be used: ```toml [dependencies] -openzeppelin_token = "0.19.0" +openzeppelin_token = "0.20.0-rc.0" ``` Build the project to download it: diff --git a/Scarb.lock b/Scarb.lock index 8752c4a89..3eaa94315 100644 --- a/Scarb.lock +++ b/Scarb.lock @@ -3,7 +3,7 @@ version = 1 [[package]] name = "openzeppelin" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -23,7 +23,7 @@ dependencies = [ [[package]] name = "openzeppelin_access" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_test_common", @@ -34,7 +34,7 @@ dependencies = [ [[package]] name = "openzeppelin_account" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_test_common", @@ -45,7 +45,7 @@ dependencies = [ [[package]] name = "openzeppelin_finance" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_test_common", @@ -56,7 +56,7 @@ dependencies = [ [[package]] name = "openzeppelin_governance" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "openzeppelin_introspection" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_test_common", "snforge_std", @@ -78,14 +78,14 @@ dependencies = [ [[package]] name = "openzeppelin_merkle_tree" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_presets" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "openzeppelin_security" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", @@ -110,7 +110,7 @@ dependencies = [ [[package]] name = "openzeppelin_test_common" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -127,14 +127,14 @@ dependencies = [ [[package]] name = "openzeppelin_testing" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_token" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -147,7 +147,7 @@ dependencies = [ [[package]] name = "openzeppelin_upgrades" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", @@ -156,7 +156,7 @@ dependencies = [ [[package]] name = "openzeppelin_utils" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", diff --git a/Scarb.toml b/Scarb.toml index 3480b9487..84aa11e17 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -22,7 +22,7 @@ version.workspace = true keywords.workspace = true [workspace.package] -version = "0.19.0" +version = "0.20.0-rc.0" edition = "2024_07" cairo-version = "2.8.5" scarb-version = "2.8.5" diff --git a/docs/antora.yml b/docs/antora.yml index 8b53feb7a..15abfde5f 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,6 +1,6 @@ name: contracts-cairo title: Contracts for Cairo -version: 0.19.0 +version: 0.20.0-rc.0 nav: - modules/ROOT/nav.adoc asciidoc: diff --git a/docs/modules/ROOT/pages/api/access.adoc b/docs/modules/ROOT/pages/api/access.adoc index d3547d22c..13b6647e0 100644 --- a/docs/modules/ROOT/pages/api/access.adoc +++ b/docs/modules/ROOT/pages/api/access.adoc @@ -20,7 +20,7 @@ assigned each to multiple accounts. [.contract] [[OwnableComponent]] -=== `++OwnableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/access/src/ownable/ownable.cairo[{github-icon},role=heading-link] +=== `++OwnableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/access/src/ownable/ownable.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_access::ownable::OwnableComponent; @@ -260,7 +260,7 @@ Emitted when the ownership is transferred. [.contract] [[IAccessControl]] -=== `++IAccessControl++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/access/src/accesscontrol/interface.cairo[{github-icon},role=heading-link] +=== `++IAccessControl++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/access/src/accesscontrol/interface.cairo[{github-icon},role=heading-link] :grant_role: xref:#IAccessControl-grant_role[grant_role] :revoke_role: xref:#IAccessControl-revoke_role[revoke_role] @@ -393,7 +393,7 @@ Emitted when `account` is revoked `role`. [.contract] [[AccessControlComponent]] -=== `++AccessControlComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/access/src/accesscontrol/accesscontrol.cairo[{github-icon},role=heading-link] +=== `++AccessControlComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/access/src/accesscontrol/accesscontrol.cairo[{github-icon},role=heading-link] :assert_only_role: xref:#AccessControlComponent-assert_only_role :grant_role: xref:#AccessControlComponent-grant_role[grant_role] diff --git a/docs/modules/ROOT/pages/api/account.adoc b/docs/modules/ROOT/pages/api/account.adoc index 78944c81b..55bb93618 100644 --- a/docs/modules/ROOT/pages/api/account.adoc +++ b/docs/modules/ROOT/pages/api/account.adoc @@ -14,7 +14,7 @@ include::../utils/_common.adoc[] [.contract] [[ISRC6]] -=== `++ISRC6++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/account/src/interface.cairo[{github-icon},role=heading-link] +=== `++ISRC6++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/account/src/interface.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_account::interface::ISRC6; @@ -67,7 +67,7 @@ Returns the short string `'VALID'` if valid, otherwise it reverts. [.contract] [[AccountComponent]] -=== `++AccountComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/account/src/account.cairo[{github-icon},role=heading-link] +=== `++AccountComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/account/src/account.cairo[{github-icon},role=heading-link] :OwnerAdded: xref:AccountComponent-OwnerAdded[OwnerAdded] :OwnerRemoved: xref:AccountComponent-OwnerRemoved[OwnerRemoved] @@ -317,7 +317,7 @@ Emitted when a `public_key` is removed. [.contract] [[EthAccountComponent]] -=== `++EthAccountComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/account/src/eth_account.cairo[{github-icon},role=heading-link] +=== `++EthAccountComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/account/src/eth_account.cairo[{github-icon},role=heading-link] :OwnerAdded: xref:EthAccountComponent-OwnerAdded[OwnerAdded] :OwnerRemoved: xref:EthAccountComponent-OwnerRemoved[OwnerRemoved] @@ -572,7 +572,7 @@ Emitted when a `public_key` is removed. [.contract] [[ISRC9_V2]] -=== `++ISRC9_V2++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/account/src/extensions/src9/interface.cairo[{github-icon},role=heading-link] +=== `++ISRC9_V2++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/account/src/extensions/src9/interface.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_account::extensions::src9::ISRC9_V2; @@ -622,7 +622,7 @@ Get the status of a given nonce. `true` if the nonce is available to use. [.contract] [[SRC9Component]] -=== `++SRC9Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/account/src/extensions/src9/src9.cairo[{github-icon},role=heading-link] +=== `++SRC9Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/account/src/extensions/src9/src9.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_account::extensions::SRC9Component; @@ -698,7 +698,7 @@ Initializes the account by registering the `ISRC9_V2` interface ID. [.contract] [[AccountUpgradeable]] -=== `++AccountUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/account.cairo[{github-icon},role=heading-link] +=== `++AccountUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/account.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::AccountUpgradeable; @@ -762,7 +762,7 @@ Requirements: [.contract] [[EthAccountUpgradeable]] -=== `++EthAccountUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/eth_account.cairo[{github-icon},role=heading-link] +=== `++EthAccountUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/eth_account.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::EthAccountUpgradeable; diff --git a/docs/modules/ROOT/pages/api/erc1155.adoc b/docs/modules/ROOT/pages/api/erc1155.adoc index 22c41963e..e0b2533a8 100644 --- a/docs/modules/ROOT/pages/api/erc1155.adoc +++ b/docs/modules/ROOT/pages/api/erc1155.adoc @@ -16,7 +16,7 @@ TIP: For an overview of ERC1155, read our xref:erc1155.adoc[ERC1155 guide]. [.contract] [[IERC1155]] -=== `++IERC1155++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] +=== `++IERC1155++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -126,7 +126,7 @@ Emitted when the token URI is updated to `value` for the `id` token. [.contract] [[IERC1155MetadataURI]] -=== `++IERC1155MetadataURI++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] +=== `++IERC1155MetadataURI++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -156,7 +156,7 @@ Returns the Uniform Resource Identifier (URI) for the `token_id` token. [.contract] [[ERC1155Component]] -=== `++ERC1155Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc1155/erc1155.cairo[{github-icon},role=heading-link] +=== `++ERC1155Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc1155/erc1155.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -543,7 +543,7 @@ See <>. [.contract] [[IERC1155Receiver]] -=== `++IERC1155Receiver++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] +=== `++IERC1155Receiver++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc1155/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -583,7 +583,7 @@ via <> by [.contract] [[ERC1155ReceiverComponent]] -=== `++ERC1155ReceiverComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc1155/erc1155_receiver.cairo[{github-icon},role=heading-link] +=== `++ERC1155ReceiverComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc1155/erc1155_receiver.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -660,7 +660,7 @@ Registers the `IERC1155Receiver` interface ID as supported through introspection [.contract] [[ERC1155Upgradeable]] -=== `++ERC1155Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/erc1155.cairo[{github-icon},role=heading-link] +=== `++ERC1155Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/erc1155.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::ERC1155; diff --git a/docs/modules/ROOT/pages/api/erc20.adoc b/docs/modules/ROOT/pages/api/erc20.adoc index feda42608..ff68de634 100644 --- a/docs/modules/ROOT/pages/api/erc20.adoc +++ b/docs/modules/ROOT/pages/api/erc20.adoc @@ -19,7 +19,7 @@ TIP: For an overview of ERC20, read our {erc20-guide}. [.contract] [[IERC20]] -=== `++IERC20++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc20/interface.cairo[{github-icon},role=heading-link] +=== `++IERC20++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc20/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -117,7 +117,7 @@ Emitted when the allowance of a `spender` for an `owner` is set. [.contract] [[IERC20Metadata]] -=== `++IERC20Metadata++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc20/interface.cairo#L19[{github-icon},role=heading-link] +=== `++IERC20Metadata++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc20/interface.cairo#L19[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -165,7 +165,7 @@ NOTE: This information is only used for _display_ purposes: it in no way affects [.contract] [[ERC20Component]] -=== `++ERC20Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc20/erc20.cairo[{github-icon},role=heading-link] +=== `++ERC20Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc20/erc20.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -516,7 +516,7 @@ See <>. [.contract] [[IERC20Permit]] -=== `++IERC20Permit++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc20/interface.cairo#L19[{github-icon},role=heading-link] +=== `++IERC20Permit++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc20/interface.cairo#L19[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -560,7 +560,7 @@ The domain hashing logic follows the {snip-12} standard. [.contract] [[ERC20Upgradeable]] -=== `++ERC20Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/erc20.cairo[{github-icon},role=heading-link] +=== `++ERC20Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/erc20.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::ERC20Upgradeable; diff --git a/docs/modules/ROOT/pages/api/erc721.adoc b/docs/modules/ROOT/pages/api/erc721.adoc index 4fccd63a5..d137d30db 100644 --- a/docs/modules/ROOT/pages/api/erc721.adoc +++ b/docs/modules/ROOT/pages/api/erc721.adoc @@ -16,7 +16,7 @@ TIP: For an overview of ERC721, read our xref:erc721.adoc[ERC721 guide]. [.contract] [[IERC721]] -=== `++IERC721++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/interface.cairo#L13-L31[{github-icon},role=heading-link] +=== `++IERC721++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/interface.cairo#L13-L31[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -135,7 +135,7 @@ Emitted when `token_id` token is transferred from `from` to `to`. [.contract] [[IERC721Metadata]] -=== `++IERC721Metadata++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/interface.cairo#L54-L59[{github-icon},role=heading-link] +=== `++IERC721Metadata++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/interface.cairo#L54-L59[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -181,7 +181,7 @@ If the URI is not set for `token_id`, the return value will be an empty `ByteArr [.contract] [[ERC721Component]] -=== `++ERC721Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/erc721.cairo#L7[{github-icon},role=heading-link] +=== `++ERC721Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/erc721.cairo#L7[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -693,7 +693,7 @@ See <>. [.contract] [[IERC721Receiver]] -=== `++IERC721Receiver++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/interface.cairo#L70-L79[{github-icon},role=heading-link] +=== `++IERC721Receiver++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/interface.cairo#L70-L79[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -724,7 +724,7 @@ Whenever an IERC721 `token_id` token is transferred to this non-account contract [.contract] [[ERC721ReceiverComponent]] -=== `++ERC721ReceiverComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/erc721_receiver.cairo[{github-icon},role=heading-link] +=== `++ERC721ReceiverComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/erc721_receiver.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -790,7 +790,7 @@ Registers the `IERC721Receiver` interface ID as supported through introspection. [.contract] [[IERC721Enumerable]] -=== `++IERC721Enumerable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo[{github-icon},role=heading-link] +=== `++IERC721Enumerable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo[{github-icon},role=heading-link] Interface for the optional enumerable functions in {eip721}. @@ -832,7 +832,7 @@ Use along with xref:#IERC721-balance_of[IERC721::balance_of] to enumerate all of [.contract] [[ERC721EnumerableComponent]] -=== `++ERC721EnumerableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/erc721/extensions/erc721_enumerable.cairo[{github-icon},role=heading-link] +=== `++ERC721EnumerableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/erc721/extensions/erc721_enumerable.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_token::erc721::extensions::ERC721EnumerableComponent; @@ -988,7 +988,7 @@ This has 0(1) time complexity but alters the indexed order by swapping `token_id [.contract] [[ERC721Upgradeable]] -=== `++ERC721Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/erc721.cairo[{github-icon},role=heading-link] +=== `++ERC721Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/erc721.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::ERC721Upgradeable; diff --git a/docs/modules/ROOT/pages/api/finance.adoc b/docs/modules/ROOT/pages/api/finance.adoc index 2f921b6cc..6ec39f79e 100755 --- a/docs/modules/ROOT/pages/api/finance.adoc +++ b/docs/modules/ROOT/pages/api/finance.adoc @@ -12,7 +12,7 @@ This crate includes primitives for financial systems. [.contract] [[IVesting]] -=== `++IVesting++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/finance/src/vesting/interface.cairo[{github-icon},role=heading-link] +=== `++IVesting++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/finance/src/vesting/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -104,7 +104,7 @@ Emitted when vested tokens are released to the beneficiary. [.contract] [[VestingComponent]] -=== `++VestingComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/finance/src/vesting/vesting.cairo[{github-icon},role=heading-link] +=== `++VestingComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/finance/src/vesting/vesting.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -239,7 +239,7 @@ Returns the vested amount that's calculated using the {vesting-schedule} trait i [.contract] [[LinearVestingSchedule]] -=== `++LinearVestingSchedule++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/finance/src/vesting/vesting.cairo[{github-icon},role=heading-link] +=== `++LinearVestingSchedule++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/finance/src/vesting/vesting.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -254,7 +254,7 @@ is directly proportional to the time passed since the start of the vesting sched [.contract] [[VestingWallet]] -=== `++VestingWallet++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/vesting.cairo[{github-icon},role=heading-link] +=== `++VestingWallet++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/vesting.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin::presets::VestingWallet; diff --git a/docs/modules/ROOT/pages/api/governance.adoc b/docs/modules/ROOT/pages/api/governance.adoc index 5fd957b0f..3a191df5d 100644 --- a/docs/modules/ROOT/pages/api/governance.adoc +++ b/docs/modules/ROOT/pages/api/governance.adoc @@ -21,7 +21,7 @@ In a governance system, `TimelockControllerComponent` is in charge of introducin [.contract] [[ITimelock]] -=== `++ITimelock++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/governance/src/timelock/interface.cairo[{github-icon},role=heading-link] +=== `++ITimelock++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/timelock/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -247,7 +247,7 @@ Emitted when the minimum delay for future operations is modified. [.contract] [[TimelockControllerComponent]] -=== `++TimelockControllerComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/governance/src/timelock/timelock_controller.cairo[{github-icon},role=heading-link] +=== `++TimelockControllerComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/timelock/timelock_controller.cairo[{github-icon},role=heading-link] include::../utils/_common.adoc[] @@ -615,7 +615,7 @@ The `VotesComponent` provides a flexible system for tracking and delegating voti [.contract] [[IVotes]] -=== `++IVotes++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/governance/src/votes/interface.cairo[{github-icon},role=heading-link] +=== `++IVotes++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/votes/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -680,7 +680,7 @@ Delegates votes from `delegator` to `delegatee` through a SNIP12 message signatu [.contract] [[VotesComponent]] -=== `++VotesComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/governance/src/votes/votes.cairo[{github-icon},role=heading-link] +=== `++VotesComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/votes/votes.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -908,7 +908,7 @@ Emitted when a token transfer or delegate change results in changes to a delegat [.contract] [[VotingUnitsTrait]] -=== `++VotingUnitsTrait++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/governance/src/votes/votes.cairo[{github-icon},role=heading-link] +=== `++VotingUnitsTrait++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/votes/votes.cairo[{github-icon},role=heading-link] ```cairo pub trait VotingUnitsTrait { diff --git a/docs/modules/ROOT/pages/api/introspection.adoc b/docs/modules/ROOT/pages/api/introspection.adoc index 98684654d..985414bea 100644 --- a/docs/modules/ROOT/pages/api/introspection.adoc +++ b/docs/modules/ROOT/pages/api/introspection.adoc @@ -10,7 +10,7 @@ This crate handles https://en.wikipedia.org/wiki/Type_introspection[type introsp [.contract] [[ISRC5]] -=== `++ISRC5++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/introspection/src/interface.cairo#L7[{github-icon},role=heading-link] +=== `++ISRC5++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/introspection/src/interface.cairo#L7[{github-icon},role=heading-link] ```cairo use openzeppelin_introspection::interface::ISRC5; @@ -44,7 +44,7 @@ on how to compute this ID. [.contract] [[SRC5Component]] -=== `++SRC5Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/introspection/src/src5.cairo[{github-icon},role=heading-link] +=== `++SRC5Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/introspection/src/src5.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_introspection::src5::SRC5Component; diff --git a/docs/modules/ROOT/pages/api/merkle-tree.adoc b/docs/modules/ROOT/pages/api/merkle-tree.adoc index 9df00b7c3..c50d91ebe 100644 --- a/docs/modules/ROOT/pages/api/merkle-tree.adoc +++ b/docs/modules/ROOT/pages/api/merkle-tree.adoc @@ -23,14 +23,14 @@ NOTE: `openzeppelin_merkle_tree` doesn't have dependencies outside of `corelib`, ==== To use it as a standalone package, you can add it in your `Scarb.toml` as follows: -`openzeppelin_merkle_tree = "0.19.0"` +`openzeppelin_merkle_tree = "0.20.0-rc.0"` ==== == Modules [.contract] [[merkle_proof]] -=== `++merkle_proof++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/merkle_tree/src/merkle_proof.cairo[{github-icon},role=heading-link] +=== `++merkle_proof++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/merkle_tree/src/merkle_proof.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_merkle_tree::merkle_proof; @@ -144,7 +144,7 @@ NOTE: This function expects a `CommutativeHasher` implementation. See xref:#hash [.contract] [[hashes]] -=== `++hashes++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/merkle_tree/src/hashes.cairo[{github-icon},role=heading-link] +=== `++hashes++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/merkle_tree/src/hashes.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_merkle_tree::hashes; diff --git a/docs/modules/ROOT/pages/api/security.adoc b/docs/modules/ROOT/pages/api/security.adoc index d742b6dc6..ad1ea4777 100644 --- a/docs/modules/ROOT/pages/api/security.adoc +++ b/docs/modules/ROOT/pages/api/security.adoc @@ -8,7 +8,7 @@ This crate provides components to handle common security-related tasks. [.contract] [[InitializableComponent]] -=== `++InitializableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/security/src/initializable.cairo[{github-icon},role=heading-link] +=== `++InitializableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/security/src/initializable.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_security::InitializableComponent; @@ -58,7 +58,7 @@ Requirements: [.contract] [[PausableComponent]] -=== `++PausableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/security/src/pausable.cairo[{github-icon},role=heading-link] +=== `++PausableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/security/src/pausable.cairo[{github-icon},role=heading-link] :Paused: xref:PausableComponent-Paused[Paused] :Unpaused: xref:PausableComponent-Unpaused[Unpaused] @@ -163,7 +163,7 @@ Emitted when the contract is unpaused by `account`. [.contract] [[ReentrancyGuardComponent]] -=== `++ReentrancyGuardComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/security/src/reentrancyguard.cairo[{github-icon},role=heading-link] +=== `++ReentrancyGuardComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/security/src/reentrancyguard.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_security::ReentrancyGuardComponent; diff --git a/docs/modules/ROOT/pages/api/testing.adoc b/docs/modules/ROOT/pages/api/testing.adoc index 4d570d09b..d0837db56 100644 --- a/docs/modules/ROOT/pages/api/testing.adoc +++ b/docs/modules/ROOT/pages/api/testing.adoc @@ -16,7 +16,7 @@ be added as a separate dependency in `Scarb.toml`: ``` [dev-dependencies] -openzeppelin_testing = "0.19.0" +openzeppelin_testing = "0.20.0-rc.0" ``` == Test Utilities diff --git a/docs/modules/ROOT/pages/api/token_common.adoc b/docs/modules/ROOT/pages/api/token_common.adoc index dd6f219bc..abc6dbf53 100644 --- a/docs/modules/ROOT/pages/api/token_common.adoc +++ b/docs/modules/ROOT/pages/api/token_common.adoc @@ -12,7 +12,7 @@ This module provides extensions and utilities that are common to multiple token [.contract] [[IERC2981]] -=== `++IERC2981++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] +=== `++IERC2981++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -46,7 +46,7 @@ unit of exchange. [.contract] [[IERC2981Info]] -=== `++IERC2981Info++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] +=== `++IERC2981Info++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -91,7 +91,7 @@ The returned tuple contains: [.contract] [[IERC2981Admin]] -=== `++IERC2981Admin++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] +=== `++IERC2981Admin++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/common/erc2981/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -138,7 +138,7 @@ Resets royalty information for the token id back to unset. [.contract] [[ERC2981Component]] -=== `++ERC2981Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/token/src/common/erc2981/erc2981.cairo[{github-icon},role=heading-link] +=== `++ERC2981Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/token/src/common/erc2981/erc2981.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_token::common::erc2981::ERC2981Component; diff --git a/docs/modules/ROOT/pages/api/udc.adoc b/docs/modules/ROOT/pages/api/udc.adoc index bb57bd977..1a2a2f8a9 100644 --- a/docs/modules/ROOT/pages/api/udc.adoc +++ b/docs/modules/ROOT/pages/api/udc.adoc @@ -8,7 +8,7 @@ Reference of the Universal Deployer Contract (UDC) interface and preset. [.contract] [[IUniversalDeployer]] -=== `++IUniversalDeployer++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/utils/src/deployments/interface.cairo[{github-icon},role=heading-link] +=== `++IUniversalDeployer++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/utils/src/deployments/interface.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_utils::interfaces::IUniversalDeployer; @@ -51,7 +51,7 @@ Emitted when `deployer` deploys a contract through the Universal Deployer Contra [.contract] [[UniversalDeployer]] -=== `++UniversalDeployer++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src/universal_deployer.cairo[{github-icon},role=heading-link] +=== `++UniversalDeployer++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src/universal_deployer.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_presets::UniversalDeployer; diff --git a/docs/modules/ROOT/pages/api/upgrades.adoc b/docs/modules/ROOT/pages/api/upgrades.adoc index 8a7d44b14..77b963d7d 100644 --- a/docs/modules/ROOT/pages/api/upgrades.adoc +++ b/docs/modules/ROOT/pages/api/upgrades.adoc @@ -9,7 +9,7 @@ This crate provides interfaces and utilities related to upgradeability. [.contract] [[IUpgradeable]] -=== `++IUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] +=== `++IUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] :Upgraded: xref:UpgradeableComponent-Upgraded[Upgraded] @@ -38,7 +38,7 @@ NOTE: This function is usually protected by an xref:access.adoc[Access Control] [.contract] [[IUpgradeAndCall]] -=== `++IUpgradeAndCall++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] +=== `++IUpgradeAndCall++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] :Upgraded: xref:UpgradeableComponent-Upgraded[Upgraded] @@ -67,7 +67,7 @@ NOTE: This function is usually protected by an xref:access.adoc[Access Control] [.contract] [[UpgradeableComponent]] -=== `++UpgradeableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/upgrades/src/upgradeable.cairo[{github-icon},role=heading-link] +=== `++UpgradeableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/upgrades/src/upgradeable.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_upgrades::upgradeable::UpgradeableComponent; diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc index 234221ff4..d8c84a96e 100644 --- a/docs/modules/ROOT/pages/index.adoc +++ b/docs/modules/ROOT/pages/index.adoc @@ -58,7 +58,7 @@ Install the library by declaring it as a dependency in the project's `Scarb.toml [,text] ---- [dependencies] -openzeppelin = "0.19.0" +openzeppelin = "0.20.0-rc.0" ---- WARNING: Make sure the tag matches the target release. diff --git a/docs/modules/ROOT/pages/presets.adoc b/docs/modules/ROOT/pages/presets.adoc index 5f6aa1332..7f45b83db 100644 --- a/docs/modules/ROOT/pages/presets.adoc +++ b/docs/modules/ROOT/pages/presets.adoc @@ -57,7 +57,7 @@ TIP: {starkli} class-hash command can be used to compute the class hash from a S :setup_project: xref:index.adoc#set_up_your_project[setting up a project] :install_lib: xref:index.adoc#install the_library[installing the Contracts for Cairo library] -:presets_dir: link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/presets/src[presets directory] +:presets_dir: link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/presets/src[presets directory] These preset contracts are ready-to-deploy which means they should already be declared on the Sepolia network. Simply deploy the preset class hash and add the appropriate constructor arguments. diff --git a/docs/modules/ROOT/pages/upgrades.adoc b/docs/modules/ROOT/pages/upgrades.adoc index db90ed7af..9e5fcc8f8 100644 --- a/docs/modules/ROOT/pages/upgrades.adoc +++ b/docs/modules/ROOT/pages/upgrades.adoc @@ -1,7 +1,7 @@ :contract_classes: https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/contract-classes/[Contract Classes] :class_hash: https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/class-hash/[class hash] :replace_class_syscall: https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/system-calls-cairo1/#replace_class[replace_class] -:upgradeable: https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.19.0/packages/upgrades/src/upgradeable.cairo[Upgradeable] +:upgradeable: https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/upgrades/src/upgradeable.cairo[Upgradeable] :ownable: xref:access.adoc#ownership_and_ownable[Ownable] :i_upgradeable: xref:api/upgrades.adoc#IUpgradeable[IUpgradeable] :library_calls: https://docs.starknet.io/documentation/architecture_and_concepts/Smart_Contracts/system-calls-cairo1/#library_call[library calls] diff --git a/docs/modules/ROOT/pages/utils/_class_hashes.adoc b/docs/modules/ROOT/pages/utils/_class_hashes.adoc index 26ff582c3..c077447f5 100644 --- a/docs/modules/ROOT/pages/utils/_class_hashes.adoc +++ b/docs/modules/ROOT/pages/utils/_class_hashes.adoc @@ -1,14 +1,14 @@ // Version -:class-hash-cairo-version: https://crates.io/crates/cairo-lang-compiler/2.8.4[cairo 2.8.4] +:class-hash-cairo-version: https://crates.io/crates/cairo-lang-compiler/2.8.5[cairo 2.8.5] // Class Hashes -:ERC20Upgradeable-class-hash: 0x044491e887497a0dec63a0f3e02bab88abb8cc7594eb9317baa6b847c8c79233 -:ERC721Upgradeable-class-hash: 0x03ee93221a8ca78ffca36eefcbe9eb8a601e854ce5e68086cdcf30d631090e7e -:ERC1155Upgradeable-class-hash: 0x032e3666516e3c138011121baaf898e372f9b23eaae313ad8a401c9b9620d5ae -:AccountUpgradeable-class-hash: 0x04a444ef8caf8fa0db05da60bf0ad9bae264c73fa7e32c61d245406f5523174b -:EthAccountUpgradeable-class-hash: 0x01f342e9dddd22bf30302676d83652fdf868d97357d5872c91032b380616ea44 -:UniversalDeployer-class-hash: 0x04cc44533e6a2f0612ba6b7c6cabfebf13e0d5f294504fffc2403ec0a4d1cf9d -:VestingWallet-class-hash: 0x02f9206089b6256db631acef1f8ca9f60da133a363600f89b4219f6d92632afa +:ERC20Upgradeable-class-hash: 0x03ab4fe2b429665438fb1e072bd113c62ec18b5af96787be126be6aea4db24b1 +:ERC721Upgradeable-class-hash: 0x073e66d2ed6520f9a940794b55f2aa54100bba393997bb44626c001fa04a89ae +:ERC1155Upgradeable-class-hash: 0x0229a7a54fd6eac284a39b998056f21a6dffddfa3b1854b46ac7595a993f7cc8 +:AccountUpgradeable-class-hash: 0x078396087e68d3e5f2c364ea022bdb585040177318233e002e97ec89e5cc167a +:EthAccountUpgradeable-class-hash: 0x046afee8cd6062ae8c6264de1821787fc660b3e8e781deae83d8c0e0cf8c1d15 +:UniversalDeployer-class-hash: 0x04731d6e38625c77c0f98100534730269c850616313df3520a2f3048dba5802f +:VestingWallet-class-hash: 0x04fad5ca4d91b0667c74af06ffcfabbdb167078d903506752b886631e2e253f1 // Presets page :presets-page: xref:presets.adoc[Sierra class hash] diff --git a/docs/modules/ROOT/pages/wizard.adoc b/docs/modules/ROOT/pages/wizard.adoc index 9749d63b0..6c801cc25 100644 --- a/docs/modules/ROOT/pages/wizard.adoc +++ b/docs/modules/ROOT/pages/wizard.adoc @@ -10,5 +10,5 @@ NOTE: We strongly recommend checking the xref:components.adoc[Components] sectio ++++ - + ++++ diff --git a/packages/access/README.md b/packages/access/README.md index c1eb7aa9d..b2c64ba5e 100644 --- a/packages/access/README.md +++ b/packages/access/README.md @@ -1,6 +1,6 @@ ## Access Control -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/access](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/access) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access) This crate provides ways to restrict who can access the functions of a contract or when they can do it. @@ -12,9 +12,9 @@ and assigned each to multiple accounts. ### Interfaces -- [`IAccessControl`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/access#IAccessControl) +- [`IAccessControl`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access#IAccessControl) ### Components -- [`OwnableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/access#OwnableComponent) -- [`AccessControlComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/access#AccessControlComponent) +- [`OwnableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access#OwnableComponent) +- [`AccessControlComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access#AccessControlComponent) diff --git a/packages/access/src/accesscontrol/accesscontrol.cairo b/packages/access/src/accesscontrol/accesscontrol.cairo index 09761ad3a..8966e9613 100644 --- a/packages/access/src/accesscontrol/accesscontrol.cairo +++ b/packages/access/src/accesscontrol/accesscontrol.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (access/accesscontrol/accesscontrol.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (access/accesscontrol/accesscontrol.cairo) /// # AccessControl Component /// diff --git a/packages/access/src/accesscontrol/interface.cairo b/packages/access/src/accesscontrol/interface.cairo index bf81051d4..cec968242 100644 --- a/packages/access/src/accesscontrol/interface.cairo +++ b/packages/access/src/accesscontrol/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (access/accesscontrol/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (access/accesscontrol/interface.cairo) use starknet::ContractAddress; diff --git a/packages/access/src/ownable/interface.cairo b/packages/access/src/ownable/interface.cairo index 1d9e41f63..b4cc6240d 100644 --- a/packages/access/src/ownable/interface.cairo +++ b/packages/access/src/ownable/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (access/ownable/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (access/ownable/interface.cairo) use starknet::ContractAddress; diff --git a/packages/access/src/ownable/ownable.cairo b/packages/access/src/ownable/ownable.cairo index 321114793..c713cada4 100644 --- a/packages/access/src/ownable/ownable.cairo +++ b/packages/access/src/ownable/ownable.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (access/ownable/ownable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (access/ownable/ownable.cairo) /// # Ownable Component /// diff --git a/packages/account/README.md b/packages/account/README.md index e3a1db52a..60cd0e161 100644 --- a/packages/account/README.md +++ b/packages/account/README.md @@ -1,6 +1,6 @@ ## Account -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account) This crate provides components to implement account contracts that can be used for interacting with the network. @@ -12,11 +12,11 @@ This crate provides components to implement account contracts that can be used f ### Interfaces -- [`ISRC6`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#ISRC6) -- [`ISRC9_V2`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#ISRC9_V2) +- [`ISRC6`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#ISRC6) +- [`ISRC9_V2`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#ISRC9_V2) ### Components -- [`AccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#AccountComponent) -- [`EthAccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#EthAccountComponent) -- [`SRC9Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#SRC9Component) +- [`AccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#AccountComponent) +- [`EthAccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#EthAccountComponent) +- [`SRC9Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#SRC9Component) diff --git a/packages/account/src/account.cairo b/packages/account/src/account.cairo index 29f96b455..d6872f61b 100644 --- a/packages/account/src/account.cairo +++ b/packages/account/src/account.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/account.cairo) /// # Account Component /// diff --git a/packages/account/src/eth_account.cairo b/packages/account/src/eth_account.cairo index e1c81f19d..cc7ad7fd5 100644 --- a/packages/account/src/eth_account.cairo +++ b/packages/account/src/eth_account.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/eth_account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/eth_account.cairo) /// # EthAccount Component /// diff --git a/packages/account/src/extensions/src9/interface.cairo b/packages/account/src/extensions/src9/interface.cairo index 604a547df..bd6379e13 100644 --- a/packages/account/src/extensions/src9/interface.cairo +++ b/packages/account/src/extensions/src9/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/extensions/src9/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/extensions/src9/interface.cairo) use starknet::ContractAddress; use starknet::account::Call; diff --git a/packages/account/src/extensions/src9/snip12_utils.cairo b/packages/account/src/extensions/src9/snip12_utils.cairo index 75d9f51af..c4f41662c 100644 --- a/packages/account/src/extensions/src9/snip12_utils.cairo +++ b/packages/account/src/extensions/src9/snip12_utils.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/extensions/src9/snip12_utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/extensions/src9/snip12_utils.cairo) use core::hash::{HashStateTrait, HashStateExTrait}; use core::poseidon::{PoseidonTrait, poseidon_hash_span}; diff --git a/packages/account/src/extensions/src9/src9.cairo b/packages/account/src/extensions/src9/src9.cairo index a5d3609af..ac274df6a 100644 --- a/packages/account/src/extensions/src9/src9.cairo +++ b/packages/account/src/extensions/src9/src9.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/extensions/src9/src9.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/extensions/src9/src9.cairo) /// # SRC9 Component (Outside Execution) /// diff --git a/packages/account/src/interface.cairo b/packages/account/src/interface.cairo index cbdc9d300..85ea5afec 100644 --- a/packages/account/src/interface.cairo +++ b/packages/account/src/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/interface.cairo) use starknet::account::Call; diff --git a/packages/account/src/utils.cairo b/packages/account/src/utils.cairo index e31f8779e..0b59263ae 100644 --- a/packages/account/src/utils.cairo +++ b/packages/account/src/utils.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/utils.cairo) pub mod secp256_point; pub mod signature; diff --git a/packages/account/src/utils/secp256_point.cairo b/packages/account/src/utils/secp256_point.cairo index 954194b44..65fab78c4 100644 --- a/packages/account/src/utils/secp256_point.cairo +++ b/packages/account/src/utils/secp256_point.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/utils/secp256_point.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/utils/secp256_point.cairo) use core::fmt::{Formatter, Error}; use starknet::SyscallResultTrait; diff --git a/packages/account/src/utils/signature.cairo b/packages/account/src/utils/signature.cairo index dad6030f7..4488dfc96 100644 --- a/packages/account/src/utils/signature.cairo +++ b/packages/account/src/utils/signature.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (account/utils/signature.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (account/utils/signature.cairo) use core::ecdsa::check_ecdsa_signature; use crate::interface::{EthPublicKey, P256PublicKey}; diff --git a/packages/finance/src/vesting/interface.cairo b/packages/finance/src/vesting/interface.cairo index fe2d2fc84..a0d4d4cf0 100644 --- a/packages/finance/src/vesting/interface.cairo +++ b/packages/finance/src/vesting/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (finance/vesting/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (finance/vesting/interface.cairo) use starknet::ContractAddress; diff --git a/packages/finance/src/vesting/vesting.cairo b/packages/finance/src/vesting/vesting.cairo index 9aedbc292..e1b7205ab 100644 --- a/packages/finance/src/vesting/vesting.cairo +++ b/packages/finance/src/vesting/vesting.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (finance/vesting/vesting.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (finance/vesting/vesting.cairo) use starknet::ContractAddress; diff --git a/packages/governance/README.md b/packages/governance/README.md index 456a9d5e9..3398a8816 100644 --- a/packages/governance/README.md +++ b/packages/governance/README.md @@ -1,15 +1,15 @@ ## Governance -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance) This crate includes primitives for on-chain governance. ### Interfaces -- [`ITimelock`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance#ITimelock) -- [`IVotes`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance#IVotes) +- [`ITimelock`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#ITimelock) +- [`IVotes`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#IVotes) ### Components -- [`TimelockControllerComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance#TimelockControllerComponent) -- [`VotesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/governance#VotesComponent) +- [`TimelockControllerComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#TimelockControllerComponent) +- [`VotesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#VotesComponent) diff --git a/packages/governance/src/governor/extensions/governor_core_execution.cairo b/packages/governance/src/governor/extensions/governor_core_execution.cairo index 98aeaeeae..9ccddf98a 100644 --- a/packages/governance/src/governor/extensions/governor_core_execution.cairo +++ b/packages/governance/src/governor/extensions/governor_core_execution.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_core_execution.cairo) /// # GovernorCoreExecution Component diff --git a/packages/governance/src/governor/extensions/governor_counting_simple.cairo b/packages/governance/src/governor/extensions/governor_counting_simple.cairo index c69745cdd..55b4705e9 100644 --- a/packages/governance/src/governor/extensions/governor_counting_simple.cairo +++ b/packages/governance/src/governor/extensions/governor_counting_simple.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_counting_simple.cairo) /// # GovernorCountingSimple Component diff --git a/packages/governance/src/governor/extensions/governor_settings.cairo b/packages/governance/src/governor/extensions/governor_settings.cairo index 9ad903326..0a1ba55f1 100644 --- a/packages/governance/src/governor/extensions/governor_settings.cairo +++ b/packages/governance/src/governor/extensions/governor_settings.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_settings.cairo) /// # GovernorSettings Component diff --git a/packages/governance/src/governor/extensions/governor_timelock_execution.cairo b/packages/governance/src/governor/extensions/governor_timelock_execution.cairo index 435733e0a..39fd848ad 100644 --- a/packages/governance/src/governor/extensions/governor_timelock_execution.cairo +++ b/packages/governance/src/governor/extensions/governor_timelock_execution.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_core_execution.cairo) /// # GovernorTimelockExecution Component diff --git a/packages/governance/src/governor/extensions/governor_votes.cairo b/packages/governance/src/governor/extensions/governor_votes.cairo index d997bda35..3085d01a7 100644 --- a/packages/governance/src/governor/extensions/governor_votes.cairo +++ b/packages/governance/src/governor/extensions/governor_votes.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_votes.cairo) /// # GovernorVotes Component diff --git a/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo b/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo index 2c91ecdcb..1753cf2e9 100644 --- a/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo +++ b/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (governance/governor/extensions/governor_votes_quorum_fraction.cairo) /// # GovernorVotesQuorumFraction Component diff --git a/packages/governance/src/governor/extensions/interface.cairo b/packages/governance/src/governor/extensions/interface.cairo index a8343a81e..d6b926edf 100644 --- a/packages/governance/src/governor/extensions/interface.cairo +++ b/packages/governance/src/governor/extensions/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/governor/extensions/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/governor/extensions/interface.cairo) use starknet::ContractAddress; diff --git a/packages/governance/src/governor/governor.cairo b/packages/governance/src/governor/governor.cairo index 9a750bbc2..bf1439e5e 100644 --- a/packages/governance/src/governor/governor.cairo +++ b/packages/governance/src/governor/governor.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/governor/governor.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/governor/governor.cairo) /// # Governor Component /// diff --git a/packages/governance/src/governor/interface.cairo b/packages/governance/src/governor/interface.cairo index 317309876..6bc7bad1b 100644 --- a/packages/governance/src/governor/interface.cairo +++ b/packages/governance/src/governor/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/governor/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/governor/interface.cairo) use starknet::ContractAddress; use starknet::account::Call; diff --git a/packages/governance/src/governor/proposal_core.cairo b/packages/governance/src/governor/proposal_core.cairo index 748ce0e91..3e374939b 100644 --- a/packages/governance/src/governor/proposal_core.cairo +++ b/packages/governance/src/governor/proposal_core.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/governor/proposal_core.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/governor/proposal_core.cairo) use core::traits::DivRem; use starknet::ContractAddress; diff --git a/packages/governance/src/governor/vote.cairo b/packages/governance/src/governor/vote.cairo index 75e98b4b4..bf06151c0 100644 --- a/packages/governance/src/governor/vote.cairo +++ b/packages/governance/src/governor/vote.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/governor/vote.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/governor/vote.cairo) use core::hash::{HashStateTrait, HashStateExTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/governance/src/multisig/interface.cairo b/packages/governance/src/multisig/interface.cairo index 9e7fe9141..de2cf81c8 100644 --- a/packages/governance/src/multisig/interface.cairo +++ b/packages/governance/src/multisig/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/multisig/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/multisig/interface.cairo) use starknet::ContractAddress; use starknet::account::Call; diff --git a/packages/governance/src/multisig/multisig.cairo b/packages/governance/src/multisig/multisig.cairo index cdeeac21a..f8f3566fd 100644 --- a/packages/governance/src/multisig/multisig.cairo +++ b/packages/governance/src/multisig/multisig.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/multisig/multisig.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/multisig/multisig.cairo) /// # Multisig Component /// diff --git a/packages/governance/src/multisig/storage_utils.cairo b/packages/governance/src/multisig/storage_utils.cairo index e0385ba7e..d82641f49 100644 --- a/packages/governance/src/multisig/storage_utils.cairo +++ b/packages/governance/src/multisig/storage_utils.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/multisig/storage_utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/multisig/storage_utils.cairo) use core::integer::u128_safe_divmod; use starknet::storage_access::StorePacking; diff --git a/packages/governance/src/timelock/interface.cairo b/packages/governance/src/timelock/interface.cairo index a0ed947ac..d201c37f9 100644 --- a/packages/governance/src/timelock/interface.cairo +++ b/packages/governance/src/timelock/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/timelock/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/timelock/interface.cairo) use starknet::ContractAddress; use starknet::account::Call; diff --git a/packages/governance/src/timelock/timelock_controller.cairo b/packages/governance/src/timelock/timelock_controller.cairo index 0b5f3b9f2..1820e0a7a 100644 --- a/packages/governance/src/timelock/timelock_controller.cairo +++ b/packages/governance/src/timelock/timelock_controller.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/timelock/timelock_controller.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/timelock/timelock_controller.cairo) /// # TimelockController Component /// diff --git a/packages/governance/src/utils/call_impls.cairo b/packages/governance/src/utils/call_impls.cairo index 4079ffe06..d79f666da 100644 --- a/packages/governance/src/utils/call_impls.cairo +++ b/packages/governance/src/utils/call_impls.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/utils/call_impls.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/utils/call_impls.cairo) use core::hash::{HashStateTrait, HashStateExTrait, Hash}; use starknet::account::Call; diff --git a/packages/governance/src/votes/delegation.cairo b/packages/governance/src/votes/delegation.cairo index 964a9870b..e61c41bd3 100644 --- a/packages/governance/src/votes/delegation.cairo +++ b/packages/governance/src/votes/delegation.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/votes/delegation.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/votes/delegation.cairo) use core::hash::{HashStateTrait, HashStateExTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/governance/src/votes/interface.cairo b/packages/governance/src/votes/interface.cairo index 5482502cf..20b103d43 100644 --- a/packages/governance/src/votes/interface.cairo +++ b/packages/governance/src/votes/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/votes/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/votes/interface.cairo) use starknet::ContractAddress; diff --git a/packages/governance/src/votes/votes.cairo b/packages/governance/src/votes/votes.cairo index 990de4f64..590a47445 100644 --- a/packages/governance/src/votes/votes.cairo +++ b/packages/governance/src/votes/votes.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (governance/votes/votes.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (governance/votes/votes.cairo) /// # Votes Component /// @@ -20,7 +20,7 @@ /// purpose, as shown in the following ERC20 example: /// /// See [the documentation] -/// (https://docs.openzeppelin.com/contracts-cairo/0.19.0/governance.html#usage_2) +/// (https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/governance.html#usage_2) /// for examples and more details. #[starknet::component] pub mod VotesComponent { diff --git a/packages/introspection/README.md b/packages/introspection/README.md index d482d832f..8660af989 100644 --- a/packages/introspection/README.md +++ b/packages/introspection/README.md @@ -1,13 +1,13 @@ ## Introspection -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/introspection](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/introspection) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection) This crate handles [type introspection](https://en.wikipedia.org/wiki/Type_introspection) of contracts. In other words, it examines which functions can be called on a given contract. This is referred to as the contract's interface. ### Interfaces -- [`ISRC5`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/introspection#ISRC5) +- [`ISRC5`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection#ISRC5) ### Components -- [`SRC5Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/introspection#SRC5Component) +- [`SRC5Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection#SRC5Component) diff --git a/packages/introspection/src/interface.cairo b/packages/introspection/src/interface.cairo index 31eca0056..479c57d82 100644 --- a/packages/introspection/src/interface.cairo +++ b/packages/introspection/src/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (introspection/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (introspection/interface.cairo) pub const ISRC5_ID: felt252 = 0x3f918d17e5ee77373b56385708f855659a07f75997f365cf87748628532a055; diff --git a/packages/introspection/src/src5.cairo b/packages/introspection/src/src5.cairo index f6d184321..82029bba7 100644 --- a/packages/introspection/src/src5.cairo +++ b/packages/introspection/src/src5.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (introspection/src5.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (introspection/src5.cairo) /// # SRC5 Component /// diff --git a/packages/merkle_tree/README.md b/packages/merkle_tree/README.md index 04c16d333..ec2bbbebc 100644 --- a/packages/merkle_tree/README.md +++ b/packages/merkle_tree/README.md @@ -1,6 +1,6 @@ ## Merkle Tree -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/merkle-tree](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/merkle-tree) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/merkle-tree](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/merkle-tree) This crate provides a set of utilities for verifying Merkle Tree proofs on-chain. The tree and the proofs can be generated using this [JavaScript library](https://github.com/ericnordelo/strk-merkle-tree) both for Pedersen and Poseidon diff --git a/packages/merkle_tree/src/hashes.cairo b/packages/merkle_tree/src/hashes.cairo index 2a0e85697..71950daf2 100644 --- a/packages/merkle_tree/src/hashes.cairo +++ b/packages/merkle_tree/src/hashes.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (merkle_tree/hashes.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (merkle_tree/hashes.cairo) use core::hash::HashStateTrait; use core::pedersen::PedersenTrait; diff --git a/packages/merkle_tree/src/merkle_proof.cairo b/packages/merkle_tree/src/merkle_proof.cairo index d8fd24e62..f87b81688 100644 --- a/packages/merkle_tree/src/merkle_proof.cairo +++ b/packages/merkle_tree/src/merkle_proof.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (merkle_tree/merkle_proof.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (merkle_tree/merkle_proof.cairo) /// These functions deal with verification of Merkle Tree proofs. /// diff --git a/packages/presets/README.md b/packages/presets/README.md index f016a6285..cec253774 100644 --- a/packages/presets/README.md +++ b/packages/presets/README.md @@ -1,6 +1,6 @@ ## Presets -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/presets](https://docs.openzeppelin.com/contracts-cairo/0.19.0/presets) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/presets](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/presets) Presets are ready-to-deploy contracts provided by the library. Since presets are intended to be very simple and as generic as possible, there’s no support for custom or complex contracts such as `ERC20Pausable` or `ERC721Mintable`. @@ -10,9 +10,9 @@ For contract customization and combination of modules you can use ### Presets -- [`AccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#AccountUpgradeable) -- [`ERC20Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20#ERC20Upgradeable) -- [`ERC721Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#ERC721Upgradeable) -- [`ERC1155Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#ERC1155Upgradeable) -- [`EthAccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/account#EthAccountUpgradeable) -- [`UniversalDeployer`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/udc#UniversalDeployer) +- [`AccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#AccountUpgradeable) +- [`ERC20Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20#ERC20Upgradeable) +- [`ERC721Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#ERC721Upgradeable) +- [`ERC1155Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#ERC1155Upgradeable) +- [`EthAccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#EthAccountUpgradeable) +- [`UniversalDeployer`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/udc#UniversalDeployer) diff --git a/packages/presets/src/account.cairo b/packages/presets/src/account.cairo index c7b5986bb..94bcea17e 100644 --- a/packages/presets/src/account.cairo +++ b/packages/presets/src/account.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/account.cairo) /// # Account Preset /// diff --git a/packages/presets/src/erc1155.cairo b/packages/presets/src/erc1155.cairo index 0118e68d8..84ce18c4a 100644 --- a/packages/presets/src/erc1155.cairo +++ b/packages/presets/src/erc1155.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/erc1155.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/erc1155.cairo) /// # ERC1155Upgradeable Preset /// diff --git a/packages/presets/src/erc20.cairo b/packages/presets/src/erc20.cairo index 2689d501b..78665c0e8 100644 --- a/packages/presets/src/erc20.cairo +++ b/packages/presets/src/erc20.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/erc20.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/erc20.cairo) /// # ERC20 Preset /// diff --git a/packages/presets/src/erc721.cairo b/packages/presets/src/erc721.cairo index 24b8bf4e4..d8f59bb27 100644 --- a/packages/presets/src/erc721.cairo +++ b/packages/presets/src/erc721.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/erc721.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/erc721.cairo) /// # ERC721 Preset /// diff --git a/packages/presets/src/eth_account.cairo b/packages/presets/src/eth_account.cairo index d0711191c..1d9af2aa5 100644 --- a/packages/presets/src/eth_account.cairo +++ b/packages/presets/src/eth_account.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/eth_account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/eth_account.cairo) /// # EthAccount Preset /// diff --git a/packages/presets/src/universal_deployer.cairo b/packages/presets/src/universal_deployer.cairo index fdc5c1f2a..beafd7a31 100644 --- a/packages/presets/src/universal_deployer.cairo +++ b/packages/presets/src/universal_deployer.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/universal_deployer.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/universal_deployer.cairo) /// # UniversalDeployerContract Preset /// diff --git a/packages/presets/src/vesting.cairo b/packages/presets/src/vesting.cairo index f1660bda7..12561cba5 100644 --- a/packages/presets/src/vesting.cairo +++ b/packages/presets/src/vesting.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (presets/vesting.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (presets/vesting.cairo) #[starknet::contract] pub mod VestingWallet { diff --git a/packages/security/README.md b/packages/security/README.md index 10efef972..ca897f3ce 100644 --- a/packages/security/README.md +++ b/packages/security/README.md @@ -1,11 +1,11 @@ ## Security -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/security](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/security) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security) This crate provides components to handle common security-related tasks such as pausing a contract. ### Components -- [`InitializableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/security#InitializableComponent) -- [`PausableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/security#PausableComponent) -- [`ReentrancyGuardComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/security#ReentrancyGuardComponent) +- [`InitializableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security#InitializableComponent) +- [`PausableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security#PausableComponent) +- [`ReentrancyGuardComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security#ReentrancyGuardComponent) diff --git a/packages/security/src/initializable.cairo b/packages/security/src/initializable.cairo index 4c7b348ba..8bb651f83 100644 --- a/packages/security/src/initializable.cairo +++ b/packages/security/src/initializable.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (security/initializable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (security/initializable.cairo) /// # Initializable Component /// diff --git a/packages/security/src/interface.cairo b/packages/security/src/interface.cairo index 37aabf6b0..6273a26e5 100644 --- a/packages/security/src/interface.cairo +++ b/packages/security/src/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (security/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (security/interface.cairo) #[starknet::interface] pub trait IInitializable { diff --git a/packages/security/src/pausable.cairo b/packages/security/src/pausable.cairo index 39ff176a7..2f921e6ac 100644 --- a/packages/security/src/pausable.cairo +++ b/packages/security/src/pausable.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (security/pausable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (security/pausable.cairo) /// # Pausable Component /// diff --git a/packages/security/src/reentrancyguard.cairo b/packages/security/src/reentrancyguard.cairo index fc3780776..02b6420bb 100644 --- a/packages/security/src/reentrancyguard.cairo +++ b/packages/security/src/reentrancyguard.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (security/reentrancyguard.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (security/reentrancyguard.cairo) /// # ReentrancyGuard Component /// diff --git a/packages/testing/README.md b/packages/testing/README.md index f4f7a8432..3ae30b026 100644 --- a/packages/testing/README.md +++ b/packages/testing/README.md @@ -1,13 +1,13 @@ ## Testing -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing) This crate provides various helper functions for declaring, deploying, and testing smart contracts using the `snforge` toolchain from Starknet Foundry. ### Modules -- [`common`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing#testing-common) -- [`deployment`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing#testing-deployment) -- [`events`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing#testing-events) -- [`signing`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/testing#testing-signing) +- [`common`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing#testing-common) +- [`deployment`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing#testing-deployment) +- [`events`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing#testing-events) +- [`signing`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing#testing-signing) diff --git a/packages/token/README.md b/packages/token/README.md index 2e58ec54d..0a636eac9 100644 --- a/packages/token/README.md +++ b/packages/token/README.md @@ -5,57 +5,57 @@ standards. ### ERC20 -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20) #### Interfaces -- [`IERC20`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20#IERC20) -- [`IERC20Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20#IERC20Metadata) +- [`IERC20`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20#IERC20) +- [`IERC20Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20#IERC20Metadata) #### Components -- [`ERC20Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc20#ERC20Component) +- [`ERC20Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20#ERC20Component) ### ERC721 -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721) #### Interfaces -- [`IERC721`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#IERC721) -- [`IERC721Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#IERC721Metadata) -- [`IERC721Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#IERC721Receiver) -- [`IERC721Enumerable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#IERC721Enumerable) +- [`IERC721`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#IERC721) +- [`IERC721Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#IERC721Metadata) +- [`IERC721Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#IERC721Receiver) +- [`IERC721Enumerable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#IERC721Enumerable) #### Components -- [`ERC721Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#ERC721Component) -- [`ERC721ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#ERC721ReceiverComponent) -- [`ERC721EnumerableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc721#ERC721EnumerableComponent) +- [`ERC721Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#ERC721Component) +- [`ERC721ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#ERC721ReceiverComponent) +- [`ERC721EnumerableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc721#ERC721EnumerableComponent) ### ERC1155 -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155) #### Interfaces -- [`IERC1155`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#IERC1155) -- [`IERC1155MetadataURI`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#IERC1155MetadataURI) -- [`IERC1155Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#IERC1155Receiver) +- [`IERC1155`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#IERC1155) +- [`IERC1155MetadataURI`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#IERC1155MetadataURI) +- [`IERC1155Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#IERC1155Receiver) #### Components -- [`ERC1155Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#ERC1155Component) -- [`ERC1155ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/erc1155#ERC1155ReceiverComponent) +- [`ERC1155Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#ERC1155Component) +- [`ERC1155ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc1155#ERC1155ReceiverComponent) ### Common -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/token_common](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/token_common) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common) #### Interfaces -- [`IERC2981`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/token_common#IERC2981) +- [`IERC2981`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common#IERC2981) #### Components -- [`ERC2981Component`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/token_common#ERC2981Component) +- [`ERC2981Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common#ERC2981Component) diff --git a/packages/token/src/common/erc2981/erc2981.cairo b/packages/token/src/common/erc2981/erc2981.cairo index 0859228db..f83357490 100644 --- a/packages/token/src/common/erc2981/erc2981.cairo +++ b/packages/token/src/common/erc2981/erc2981.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/common/erc2981/erc2981.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/common/erc2981/erc2981.cairo) /// # ERC2981 Component /// diff --git a/packages/token/src/common/erc2981/interface.cairo b/packages/token/src/common/erc2981/interface.cairo index 8dc9cabed..8aadd473b 100644 --- a/packages/token/src/common/erc2981/interface.cairo +++ b/packages/token/src/common/erc2981/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/common/erc2981/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/common/erc2981/interface.cairo) use starknet::ContractAddress; diff --git a/packages/token/src/erc1155/erc1155.cairo b/packages/token/src/erc1155/erc1155.cairo index eb9c73f85..139e4ad20 100644 --- a/packages/token/src/erc1155/erc1155.cairo +++ b/packages/token/src/erc1155/erc1155.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc1155/erc1155.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc1155/erc1155.cairo) /// # ERC1155 Component /// diff --git a/packages/token/src/erc1155/erc1155_receiver.cairo b/packages/token/src/erc1155/erc1155_receiver.cairo index 536788f53..175281632 100644 --- a/packages/token/src/erc1155/erc1155_receiver.cairo +++ b/packages/token/src/erc1155/erc1155_receiver.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc1155/erc1155_receiver.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc1155/erc1155_receiver.cairo) /// # ERC1155Receiver Component /// diff --git a/packages/token/src/erc1155/interface.cairo b/packages/token/src/erc1155/interface.cairo index de40ef314..8876e4556 100644 --- a/packages/token/src/erc1155/interface.cairo +++ b/packages/token/src/erc1155/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc1155/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc1155/interface.cairo) use starknet::ContractAddress; diff --git a/packages/token/src/erc20/erc20.cairo b/packages/token/src/erc20/erc20.cairo index b5675d441..ca13c50bb 100644 --- a/packages/token/src/erc20/erc20.cairo +++ b/packages/token/src/erc20/erc20.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc20/erc20.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc20/erc20.cairo) /// # ERC20 Component /// @@ -8,7 +8,7 @@ /// component is agnostic regarding how tokens are created, which means that developers /// must create their own token distribution mechanism. /// See [the documentation] -/// (https://docs.openzeppelin.com/contracts-cairo/0.19.0/guides/erc20-supply) +/// (https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/guides/erc20-supply) /// for examples. #[starknet::component] pub mod ERC20Component { diff --git a/packages/token/src/erc20/interface.cairo b/packages/token/src/erc20/interface.cairo index c000adb70..065847c44 100644 --- a/packages/token/src/erc20/interface.cairo +++ b/packages/token/src/erc20/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc20/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc20/interface.cairo) use starknet::ContractAddress; diff --git a/packages/token/src/erc20/snip12_utils/permit.cairo b/packages/token/src/erc20/snip12_utils/permit.cairo index 6e3946d26..0c5fe0db8 100644 --- a/packages/token/src/erc20/snip12_utils/permit.cairo +++ b/packages/token/src/erc20/snip12_utils/permit.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc20/snip12_utils/permit.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc20/snip12_utils/permit.cairo) use core::hash::{HashStateTrait, HashStateExTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/token/src/erc721/erc721.cairo b/packages/token/src/erc721/erc721.cairo index dafd127ff..f24384a89 100644 --- a/packages/token/src/erc721/erc721.cairo +++ b/packages/token/src/erc721/erc721.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc721/erc721.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc721/erc721.cairo) /// # ERC721 Component /// diff --git a/packages/token/src/erc721/erc721_receiver.cairo b/packages/token/src/erc721/erc721_receiver.cairo index 81284a032..afe04ad1d 100644 --- a/packages/token/src/erc721/erc721_receiver.cairo +++ b/packages/token/src/erc721/erc721_receiver.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc721/erc721_receiver.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc721/erc721_receiver.cairo) /// # ERC721Receiver Component /// diff --git a/packages/token/src/erc721/extensions/erc721_enumerable/erc721_enumerable.cairo b/packages/token/src/erc721/extensions/erc721_enumerable/erc721_enumerable.cairo index d1db075ad..91f09d003 100644 --- a/packages/token/src/erc721/extensions/erc721_enumerable/erc721_enumerable.cairo +++ b/packages/token/src/erc721/extensions/erc721_enumerable/erc721_enumerable.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (token/erc721/extensions/erc721_enumerable/erc721_enumerable.cairo) /// # ERC721Enumerable Component diff --git a/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo b/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo index f53b1b72e..dc89ca5bd 100644 --- a/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo +++ b/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 // (token/erc721/extensions/erc721_enumerable/interface.cairo) use starknet::ContractAddress; diff --git a/packages/token/src/erc721/interface.cairo b/packages/token/src/erc721/interface.cairo index 2215450e8..ab2787ebd 100644 --- a/packages/token/src/erc721/interface.cairo +++ b/packages/token/src/erc721/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (token/erc721/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (token/erc721/interface.cairo) use starknet::ContractAddress; diff --git a/packages/upgrades/README.md b/packages/upgrades/README.md index 4fff5491b..d7a38dcc9 100644 --- a/packages/upgrades/README.md +++ b/packages/upgrades/README.md @@ -1,14 +1,14 @@ ## Upgrades -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/upgrades](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/upgrades) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades) This crate provides an interface and component used for upgradeability. ### Interfaces -- [`IUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/upgrades#IUpgradeable) -- [`IUpgradeAndCall`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/upgrades#IUpgradeAndCall) +- [`IUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades#IUpgradeable) +- [`IUpgradeAndCall`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades#IUpgradeAndCall) ### Components -- [`UpgradeableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/upgrades#UpgradeableComponent) +- [`UpgradeableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades#UpgradeableComponent) diff --git a/packages/upgrades/src/interface.cairo b/packages/upgrades/src/interface.cairo index 77c93a037..b79a2623d 100644 --- a/packages/upgrades/src/interface.cairo +++ b/packages/upgrades/src/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (upgrades/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (upgrades/interface.cairo) use starknet::ClassHash; diff --git a/packages/upgrades/src/upgradeable.cairo b/packages/upgrades/src/upgradeable.cairo index 43810c83c..b308ab352 100644 --- a/packages/upgrades/src/upgradeable.cairo +++ b/packages/upgrades/src/upgradeable.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (upgrades/upgradeable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (upgrades/upgradeable.cairo) /// # Upgradeable Component /// diff --git a/packages/utils/README.md b/packages/utils/README.md index 5fd600648..8d5e1a25e 100644 --- a/packages/utils/README.md +++ b/packages/utils/README.md @@ -1,18 +1,18 @@ ## Utils -> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities) This crate provides components and libraries containing miscellaneous utilities. ### Core utilities -- [`utils`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#utils) -- [`cryptography`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#cryptography) -- [`deployments`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#deployments) -- [`math`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#math) -- [`serde`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#serde) +- [`utils`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#utils) +- [`cryptography`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#cryptography) +- [`deployments`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#deployments) +- [`math`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#math) +- [`serde`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#serde) ### Cryptography -- [`NoncesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#NoncesComponent) -- [`snip12`](https://docs.openzeppelin.com/contracts-cairo/0.19.0/api/utilities#snip12) +- [`NoncesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#NoncesComponent) +- [`snip12`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities#snip12) diff --git a/packages/utils/src/bytearray.cairo b/packages/utils/src/bytearray.cairo index f2f383943..bff3011a6 100644 --- a/packages/utils/src/bytearray.cairo +++ b/packages/utils/src/bytearray.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/bytearray.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/bytearray.cairo) use core::byte_array::ByteArrayTrait; use core::hash::{HashStateTrait, HashStateExTrait}; diff --git a/packages/utils/src/cryptography/interface.cairo b/packages/utils/src/cryptography/interface.cairo index 1d3c9d215..f1edfae72 100644 --- a/packages/utils/src/cryptography/interface.cairo +++ b/packages/utils/src/cryptography/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/cryptography/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/cryptography/interface.cairo) use starknet::ContractAddress; diff --git a/packages/utils/src/cryptography/nonces.cairo b/packages/utils/src/cryptography/nonces.cairo index 981d96650..b4dc0a6bc 100644 --- a/packages/utils/src/cryptography/nonces.cairo +++ b/packages/utils/src/cryptography/nonces.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/cryptography/nonces.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/cryptography/nonces.cairo) /// # Nonces Component /// diff --git a/packages/utils/src/cryptography/snip12.cairo b/packages/utils/src/cryptography/snip12.cairo index 9135333f7..84a95febd 100644 --- a/packages/utils/src/cryptography/snip12.cairo +++ b/packages/utils/src/cryptography/snip12.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/cryptography/snip12.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/cryptography/snip12.cairo) use core::hash::{HashStateTrait, HashStateExTrait, Hash}; use core::poseidon::{PoseidonTrait, HashState}; diff --git a/packages/utils/src/deployments.cairo b/packages/utils/src/deployments.cairo index 26b7ac1cc..bd1ce64df 100644 --- a/packages/utils/src/deployments.cairo +++ b/packages/utils/src/deployments.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/deployments.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/deployments.cairo) pub mod interface; diff --git a/packages/utils/src/deployments/interface.cairo b/packages/utils/src/deployments/interface.cairo index 601871eb7..dd60cf71b 100644 --- a/packages/utils/src/deployments/interface.cairo +++ b/packages/utils/src/deployments/interface.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/deployments/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/deployments/interface.cairo) use starknet::{ClassHash, ContractAddress}; diff --git a/packages/utils/src/math.cairo b/packages/utils/src/math.cairo index 5acd7cc18..a7a5aa89c 100644 --- a/packages/utils/src/math.cairo +++ b/packages/utils/src/math.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/math.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/math.cairo) use core::traits::{Into, BitAnd, BitXor}; diff --git a/packages/utils/src/serde.cairo b/packages/utils/src/serde.cairo index 289b011ee..951c3b185 100644 --- a/packages/utils/src/serde.cairo +++ b/packages/utils/src/serde.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/serde.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/serde.cairo) pub trait SerializedAppend { fn append_serde(ref self: Array, value: T); diff --git a/packages/utils/src/structs/checkpoint.cairo b/packages/utils/src/structs/checkpoint.cairo index 46f2d39ae..47881f3ea 100644 --- a/packages/utils/src/structs/checkpoint.cairo +++ b/packages/utils/src/structs/checkpoint.cairo @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -// OpenZeppelin Contracts for Cairo v0.19.0 (utils/structs/checkpoint.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0-rc.0 (utils/structs/checkpoint.cairo) use core::num::traits::Sqrt; use crate::math; diff --git a/sncast_scripts/Scarb.lock b/sncast_scripts/Scarb.lock index 58357c836..241f305e7 100644 --- a/sncast_scripts/Scarb.lock +++ b/sncast_scripts/Scarb.lock @@ -3,7 +3,7 @@ version = 1 [[package]] name = "openzeppelin_access" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_utils", @@ -11,7 +11,7 @@ dependencies = [ [[package]] name = "openzeppelin_account" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_utils", @@ -19,7 +19,7 @@ dependencies = [ [[package]] name = "openzeppelin_finance" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_token", @@ -27,11 +27,11 @@ dependencies = [ [[package]] name = "openzeppelin_introspection" -version = "0.19.0" +version = "0.20.0-rc.0" [[package]] name = "openzeppelin_presets" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -44,14 +44,14 @@ dependencies = [ [[package]] name = "openzeppelin_testing" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_token" -version = "0.19.0" +version = "0.20.0-rc.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -61,11 +61,11 @@ dependencies = [ [[package]] name = "openzeppelin_upgrades" -version = "0.19.0" +version = "0.20.0-rc.0" [[package]] name = "openzeppelin_utils" -version = "0.19.0" +version = "0.20.0-rc.0" [[package]] name = "sncast_scripts"