From 86debd40d269805cf82910f0df0d3d7e5791c381 Mon Sep 17 00:00:00 2001 From: Andrew Fleming Date: Fri, 6 Dec 2024 14:12:04 -0600 Subject: [PATCH] Release v0.20.0 (#1252) * add release entry to changelog * Bump version to 0.20.0 and update presets page --------- Co-authored-by: andrew-fleming --- CHANGELOG.md | 2 + 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 | 26 ++++++------ .../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 | 26 ++++++------ .../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 ++++---- 110 files changed, 257 insertions(+), 255 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2364460aa..eca7529db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## 0.20.0 (2024-12-06) + ### Added - SRC9 (Outside Execution) integration to account presets (#1201) diff --git a/README.md b/README.md index befe529a1..88739f779 100644 --- a/README.md +++ b/README.md @@ -41,14 +41,14 @@ Edit `scarb.toml` and add: ```toml [dependencies] -openzeppelin = "0.20.0-rc.0" +openzeppelin = "0.20.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.20.0-rc.0" +openzeppelin_token = "0.20.0" ``` Build the project to download it: diff --git a/Scarb.lock b/Scarb.lock index 4438304d8..fc9ad8b93 100644 --- a/Scarb.lock +++ b/Scarb.lock @@ -3,7 +3,7 @@ version = 1 [[package]] name = "openzeppelin" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -23,7 +23,7 @@ dependencies = [ [[package]] name = "openzeppelin_access" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_test_common", @@ -33,7 +33,7 @@ dependencies = [ [[package]] name = "openzeppelin_account" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_test_common", @@ -44,7 +44,7 @@ dependencies = [ [[package]] name = "openzeppelin_finance" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_test_common", @@ -56,7 +56,7 @@ dependencies = [ [[package]] name = "openzeppelin_governance" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -70,7 +70,7 @@ dependencies = [ [[package]] name = "openzeppelin_introspection" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_test_common", "snforge_std", @@ -78,14 +78,14 @@ dependencies = [ [[package]] name = "openzeppelin_merkle_tree" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_presets" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -101,7 +101,7 @@ dependencies = [ [[package]] name = "openzeppelin_security" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", @@ -110,7 +110,7 @@ dependencies = [ [[package]] name = "openzeppelin_test_common" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -127,14 +127,14 @@ dependencies = [ [[package]] name = "openzeppelin_testing" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_token" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -147,7 +147,7 @@ dependencies = [ [[package]] name = "openzeppelin_upgrades" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", @@ -156,7 +156,7 @@ dependencies = [ [[package]] name = "openzeppelin_utils" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_test_common", "openzeppelin_testing", diff --git a/Scarb.toml b/Scarb.toml index afcfd8369..3a6c8722f 100644 --- a/Scarb.toml +++ b/Scarb.toml @@ -23,7 +23,7 @@ keywords.workspace = true edition.workspace = true [workspace.package] -version = "0.20.0-rc.0" +version = "0.20.0" edition = "2024_07" cairo-version = "2.9.1" scarb-version = "2.9.1" diff --git a/docs/antora.yml b/docs/antora.yml index 15abfde5f..215db3caf 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,6 +1,6 @@ name: contracts-cairo title: Contracts for Cairo -version: 0.20.0-rc.0 +version: 0.20.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 13b6647e0..7ae7c5423 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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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 55bb93618..89407565c 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.20.0-rc.0/packages/account/src/interface.cairo[{github-icon},role=heading-link] +=== `++ISRC6++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.0/packages/account/src/account.cairo[{github-icon},role=heading-link] +=== `++AccountComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.0/packages/presets/src/account.cairo[{github-icon},role=heading-link] +=== `++AccountUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.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/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 e0b2533a8..ab238e8b6 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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.0/packages/presets/src/erc1155.cairo[{github-icon},role=heading-link] +=== `++ERC1155Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 ff68de634..14d88400c 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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.0/packages/presets/src/erc20.cairo[{github-icon},role=heading-link] +=== `++ERC20Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 cc0b2881d..19aa3a4fa 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.20.0-rc.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/packages/token/src/erc721/interface.cairo#L13-L31[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -136,7 +136,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.20.0-rc.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/packages/token/src/erc721/interface.cairo#L54-L59[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -182,7 +182,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.20.0-rc.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/packages/token/src/erc721/erc721.cairo#L7[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -694,7 +694,7 @@ See <>. [.contract] [[IERC721Receiver]] -=== `++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] +=== `++IERC721Receiver++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/token/src/erc721/interface.cairo#L70-L79[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -725,7 +725,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.20.0-rc.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/packages/token/src/erc721/erc721_receiver.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -791,7 +791,7 @@ Registers the `IERC721Receiver` interface ID as supported through introspection. [.contract] [[IERC721Enumerable]] -=== `++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] +=== `++IERC721Enumerable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/token/src/erc721/extensions/erc721_enumerable/interface.cairo[{github-icon},role=heading-link] Interface for the optional enumerable functions in {eip721}. @@ -833,7 +833,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.20.0-rc.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/packages/token/src/erc721/extensions/erc721_enumerable.cairo[{github-icon},role=heading-link] ```cairo use openzeppelin_token::erc721::extensions::ERC721EnumerableComponent; @@ -989,7 +989,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.20.0-rc.0/packages/presets/src/erc721.cairo[{github-icon},role=heading-link] +=== `++ERC721Upgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 6ec39f79e..7c5c533a6 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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.0/packages/presets/src/vesting.cairo[{github-icon},role=heading-link] +=== `++VestingWallet++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 0641d458f..ed0a37486 100644 --- a/docs/modules/ROOT/pages/api/governance.adoc +++ b/docs/modules/ROOT/pages/api/governance.adoc @@ -31,7 +31,7 @@ TIP: For a walkthrough of how to implement a Governor, check the {governor} page [.contract] [[IGovernor]] -=== `++IGovernor++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/interface.cairo[{github-icon},role=heading-link] +=== `++IGovernor++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -390,7 +390,7 @@ Emitted when a vote is cast with params. [.contract] [[GovernorComponent]] -=== `++GovernorComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/governor.cairo[{github-icon},role=heading-link] +=== `++GovernorComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/governor.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1208,7 +1208,7 @@ provided by the library, which are presented below. [.contract] [[GovernorCoreExecutionComponent]] -=== `++GovernorCoreExecutionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_core_execution.cairo[{github-icon},role=heading-link] +=== `++GovernorCoreExecutionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_core_execution.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1279,7 +1279,7 @@ Cancels a proposal's operations. [.contract] [[GovernorCountingSimpleComponent]] -=== `++GovernorCountingSimpleComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_counting_simple.cairo[{github-icon},role=heading-link] +=== `++GovernorCountingSimpleComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_counting_simple.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1346,7 +1346,7 @@ In this implementation, the For votes must be strictly greater than Against vote [.contract] [[GovernorSettingsComponent]] -=== `++GovernorSettingsComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_settings.cairo[{github-icon},role=heading-link] +=== `++GovernorSettingsComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_settings.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1547,7 +1547,7 @@ Emitted when the proposal threshold is updated. [.contract] [[GovernorVotesComponent]] -=== `++GovernorVotesComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_votes.cairo[{github-icon},role=heading-link] +=== `++GovernorVotesComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_votes.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1637,7 +1637,7 @@ Requirements: [.contract] [[GovernorVotesQuorumFractionComponent]] -=== `++GovernorVotesQuorumFractionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo[{github-icon},role=heading-link] +=== `++GovernorVotesQuorumFractionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_votes_quorum_fraction.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1788,7 +1788,7 @@ Emitted when the quorum numerator is updated. [.contract] [[GovernorTimelockExecutionComponent]] -=== `++GovernorTimelockExecutionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0-rc.0/packages/governance/src/governor/extensions/governor_timelock_execution.cairo[{github-icon},role=heading-link] +=== `++GovernorTimelockExecutionComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/governor/extensions/governor_timelock_execution.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -1988,7 +1988,7 @@ In a governance system, `TimelockControllerComponent` is in charge of introducin [.contract] [[ITimelock]] -=== `++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] +=== `++ITimelock++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/timelock/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -2214,7 +2214,7 @@ Emitted when the minimum delay for future operations is modified. [.contract] [[TimelockControllerComponent]] -=== `++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] +=== `++TimelockControllerComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/timelock/timelock_controller.cairo[{github-icon},role=heading-link] include::../utils/_common.adoc[] @@ -2582,7 +2582,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.20.0-rc.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/packages/governance/src/votes/interface.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -2647,7 +2647,7 @@ Delegates votes from `delegator` to `delegatee` through a {SNIP-12} message sign [.contract] [[VotesComponent]] -=== `++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] +=== `++VotesComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.0/packages/governance/src/votes/votes.cairo[{github-icon},role=heading-link] [.hljs-theme-dark] ```cairo @@ -2875,7 +2875,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.20.0-rc.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/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 985414bea..6b8b19752 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.20.0-rc.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/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.20.0-rc.0/packages/introspection/src/src5.cairo[{github-icon},role=heading-link] +=== `++SRC5Component++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 c50d91ebe..00adf9d01 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.20.0-rc.0"` +`openzeppelin_merkle_tree = "0.20.0"` ==== == Modules [.contract] [[merkle_proof]] -=== `++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] +=== `++merkle_proof++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.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/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 ad1ea4777..c5174fc03 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.20.0-rc.0/packages/security/src/initializable.cairo[{github-icon},role=heading-link] +=== `++InitializableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.0/packages/security/src/pausable.cairo[{github-icon},role=heading-link] +=== `++PausableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.0/packages/security/src/reentrancyguard.cairo[{github-icon},role=heading-link] +=== `++ReentrancyGuardComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 d0837db56..eb19c6fed 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.20.0-rc.0" +openzeppelin_testing = "0.20.0" ``` == Test Utilities diff --git a/docs/modules/ROOT/pages/api/token_common.adoc b/docs/modules/ROOT/pages/api/token_common.adoc index abc6dbf53..1b03b092b 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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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.20.0-rc.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/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 1a2a2f8a9..75174cb27 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.20.0-rc.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/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.20.0-rc.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/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 77b963d7d..e00effe08 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.20.0-rc.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] +=== `++IUpgradeable++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.0/packages/upgrades/src/interface.cairo[{github-icon},role=heading-link] +=== `++IUpgradeAndCall++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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.20.0-rc.0/packages/upgrades/src/upgradeable.cairo[{github-icon},role=heading-link] +=== `++UpgradeableComponent++` link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 7be07d5f1..547454057 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.20.0-rc.0" +openzeppelin = "0.20.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 7f45b83db..3142df399 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.20.0-rc.0/packages/presets/src[presets directory] +:presets_dir: link:https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 9e5fcc8f8..916acdf64 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.20.0-rc.0/packages/upgrades/src/upgradeable.cairo[Upgradeable] +:upgradeable: https://github.com/OpenZeppelin/cairo-contracts/blob/release-v0.20.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 c077447f5..8fc6b19b4 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.5[cairo 2.8.5] +:class-hash-cairo-version: https://crates.io/crates/cairo-lang-compiler/2.9.1[cairo 2.9.1] // Class Hashes -: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 +:ERC20Upgradeable-class-hash: 0x041385cd42de9877180b006fc01d613c70e2429fc2e660df6a791b4cc0e747de +:ERC721Upgradeable-class-hash: 0x015922a7436b4ee45120d5f6442bcfd8dd407fa2283dfa2276ccb9db10a9deda +:ERC1155Upgradeable-class-hash: 0x046ec13b3dc855cddbaad504c5d3526f34134541f04207c7cfa7b6919f5fd2be +:AccountUpgradeable-class-hash: 0x02b31e19e45c06f29234e06e2ee98a9966479ba3067f8785ed972794fdb0065c +:EthAccountUpgradeable-class-hash: 0x02ba7c42372cf971c8ee60166544e7ff72c2e38bc2835d7edd89b327b1000d8b +:UniversalDeployer-class-hash: 0x06b79a175c8be9fb2acf40a1b0289018c95d04092dd4f080a133d83f9e9c696b +:VestingWallet-class-hash: 0x0386b4e438105ef2ba52b12dae76e6afef54a234083137d32c57d06693a8c7c7 // 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 6c801cc25..48a5b385d 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 b2c64ba5e..8ad4eb062 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.20.0-rc.0/api/access](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/access) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/access](https://docs.openzeppelin.com/contracts-cairo/0.20.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.20.0-rc.0/api/access#IAccessControl) +- [`IAccessControl`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/access#IAccessControl) ### Components -- [`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) +- [`OwnableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/access#OwnableComponent) +- [`AccessControlComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/access#AccessControlComponent) diff --git a/packages/access/src/accesscontrol/accesscontrol.cairo b/packages/access/src/accesscontrol/accesscontrol.cairo index f956345ac..be36749a0 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.20.0-rc.0 (access/accesscontrol/accesscontrol.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (access/accesscontrol/accesscontrol.cairo) /// # AccessControl Component /// diff --git a/packages/access/src/accesscontrol/interface.cairo b/packages/access/src/accesscontrol/interface.cairo index cec968242..0e556c250 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.20.0-rc.0 (access/accesscontrol/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 b4cc6240d..479ef4e05 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.20.0-rc.0 (access/ownable/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 9aeadac70..5f0eacf5e 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.20.0-rc.0 (access/ownable/ownable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (access/ownable/ownable.cairo) /// # Ownable Component /// diff --git a/packages/account/README.md b/packages/account/README.md index 60cd0e161..a6b7cf14a 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.20.0-rc.0/api/account](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account](https://docs.openzeppelin.com/contracts-cairo/0.20.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.20.0-rc.0/api/account#ISRC6) -- [`ISRC9_V2`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/account#ISRC9_V2) +- [`ISRC6`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#ISRC6) +- [`ISRC9_V2`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#ISRC9_V2) ### Components -- [`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) +- [`AccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#AccountComponent) +- [`EthAccountComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#EthAccountComponent) +- [`SRC9Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#SRC9Component) diff --git a/packages/account/src/account.cairo b/packages/account/src/account.cairo index 4caa4a22c..51fe27ad8 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.20.0-rc.0 (account/account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (account/account.cairo) /// # Account Component /// diff --git a/packages/account/src/eth_account.cairo b/packages/account/src/eth_account.cairo index 4b7ea638d..c22fabce6 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.20.0-rc.0 (account/eth_account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 9e95214a0..9b974d7a2 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.20.0-rc.0 (account/extensions/src9/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 fa0612021..c24d07f6e 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.20.0-rc.0 (account/extensions/src9/snip12_utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (account/extensions/src9/snip12_utils.cairo) use core::hash::{HashStateExTrait, HashStateTrait}; 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 fc94e7b11..4268fec83 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.20.0-rc.0 (account/extensions/src9/src9.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 bbacb095b..bee25a8a5 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.20.0-rc.0 (account/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (account/interface.cairo) use starknet::account::Call; diff --git a/packages/account/src/utils.cairo b/packages/account/src/utils.cairo index 38833d00e..12bc5f598 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.20.0-rc.0 (account/utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 0241f271e..622d282c2 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.20.0-rc.0 (account/utils/secp256_point.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (account/utils/secp256_point.cairo) use core::fmt::{Error, Formatter}; use starknet::SyscallResultTrait; diff --git a/packages/account/src/utils/signature.cairo b/packages/account/src/utils/signature.cairo index 512078e5a..9434c52c1 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.20.0-rc.0 (account/utils/signature.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 a0d4d4cf0..e2ddf2818 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.20.0-rc.0 (finance/vesting/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 5364cd360..23cf29396 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.20.0-rc.0 (finance/vesting/vesting.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (finance/vesting/vesting.cairo) use starknet::ContractAddress; diff --git a/packages/governance/README.md b/packages/governance/README.md index 1cdc2e611..17ebd15c4 100644 --- a/packages/governance/README.md +++ b/packages/governance/README.md @@ -1,26 +1,26 @@ ## 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) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance) This crate includes primitives for on-chain governance. ### Interfaces -- [`IGovernor`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#IGovernor) -- [`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) +- [`IGovernor`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#IGovernor) +- [`ITimelock`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#ITimelock) +- [`IVotes`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#IVotes) ### Components -- [`GovernorComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorComponent) -- [`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) +- [`GovernorComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorComponent) +- [`TimelockControllerComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#TimelockControllerComponent) +- [`VotesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#VotesComponent) #### Governor Extensions -- [`GovernorCoreExecutionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorCoreExecutionComponent) -- [`GovernorCountingSimpleComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorCountingSimpleComponent) -- [`GovernorSettingsComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorSettingsComponent) -- [`GovernorVotesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorVotesComponent) -- [`GovernorVotesQuorumFractionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorVotesQuorumFractionComponent) -- [`GovernorTimelockExecutionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/governance#GovernorTimelockExecutionComponent) \ No newline at end of file +- [`GovernorCoreExecutionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorCoreExecutionComponent) +- [`GovernorCountingSimpleComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorCountingSimpleComponent) +- [`GovernorSettingsComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorSettingsComponent) +- [`GovernorVotesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorVotesComponent) +- [`GovernorVotesQuorumFractionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorVotesQuorumFractionComponent) +- [`GovernorTimelockExecutionComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/governance#GovernorTimelockExecutionComponent) \ No newline at end of file diff --git a/packages/governance/src/governor/extensions/governor_core_execution.cairo b/packages/governance/src/governor/extensions/governor_core_execution.cairo index 86d3cb74e..7acb3f879 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 e2832fe0a..ea13ce12b 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 463108136..3ad214c82 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 7eaffd3e7..a3c141dd2 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 85ef0081f..aa0fb57c8 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 d2c72ee66..975bde001 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 d6b926edf..aa387b310 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.20.0-rc.0 (governance/governor/extensions/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 ae2800437..8d69b2054 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.20.0-rc.0 (governance/governor/governor.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (governance/governor/governor.cairo) /// # Governor Component /// diff --git a/packages/governance/src/governor/interface.cairo b/packages/governance/src/governor/interface.cairo index e7a6af841..faf5f8676 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.20.0-rc.0 (governance/governor/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 9b3f2cd2f..18dd52637 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.20.0-rc.0 (governance/governor/proposal_core.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 74743f90e..16d3e5870 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.20.0-rc.0 (governance/governor/vote.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (governance/governor/vote.cairo) use core::hash::{HashStateExTrait, HashStateTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/governance/src/multisig/interface.cairo b/packages/governance/src/multisig/interface.cairo index 471b6486c..f79b824e6 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.20.0-rc.0 (governance/multisig/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 9079cd109..b641f2272 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.20.0-rc.0 (governance/multisig/multisig.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 90af310d9..d2abfefe6 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.20.0-rc.0 (governance/multisig/storage_utils.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 d2fb733e7..4d6a9ef3f 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.20.0-rc.0 (governance/timelock/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 807abc89a..a241e1852 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.20.0-rc.0 (governance/timelock/timelock_controller.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 73c441623..ef0798932 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.20.0-rc.0 (governance/utils/call_impls.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (governance/utils/call_impls.cairo) use core::hash::{Hash, HashStateExTrait, HashStateTrait}; use starknet::account::Call; diff --git a/packages/governance/src/votes/delegation.cairo b/packages/governance/src/votes/delegation.cairo index 48ad9fd0e..216d08ac1 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.20.0-rc.0 (governance/votes/delegation.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (governance/votes/delegation.cairo) use core::hash::{HashStateExTrait, HashStateTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/governance/src/votes/interface.cairo b/packages/governance/src/votes/interface.cairo index 2fd7566c9..1bc027811 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.20.0-rc.0 (governance/votes/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 1471d4cd1..747e6806f 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.20.0-rc.0 (governance/votes/votes.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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.20.0-rc.0/governance.html#usage_2) +/// (https://docs.openzeppelin.com/contracts-cairo/0.20.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 8660af989..79239e39d 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.20.0-rc.0/api/introspection](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/introspection](https://docs.openzeppelin.com/contracts-cairo/0.20.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.20.0-rc.0/api/introspection#ISRC5) +- [`ISRC5`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/introspection#ISRC5) ### Components -- [`SRC5Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/introspection#SRC5Component) +- [`SRC5Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/introspection#SRC5Component) diff --git a/packages/introspection/src/interface.cairo b/packages/introspection/src/interface.cairo index 479c57d82..e5ec3e398 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.20.0-rc.0 (introspection/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 12b40c4f2..f394058d2 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.20.0-rc.0 (introspection/src5.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (introspection/src5.cairo) /// # SRC5 Component /// diff --git a/packages/merkle_tree/README.md b/packages/merkle_tree/README.md index ec2bbbebc..d5f1476b9 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.20.0-rc.0/api/merkle-tree](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/merkle-tree) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/merkle-tree](https://docs.openzeppelin.com/contracts-cairo/0.20.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 71950daf2..0ad9921c2 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.20.0-rc.0 (merkle_tree/hashes.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 cb8f6f267..935889422 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.20.0-rc.0 (merkle_tree/merkle_proof.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 cec253774..3dd3d8f61 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.20.0-rc.0/presets](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/presets) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/presets](https://docs.openzeppelin.com/contracts-cairo/0.20.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.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) +- [`AccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#AccountUpgradeable) +- [`ERC20Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20#ERC20Upgradeable) +- [`ERC721Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#ERC721Upgradeable) +- [`ERC1155Upgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#ERC1155Upgradeable) +- [`EthAccountUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/account#EthAccountUpgradeable) +- [`UniversalDeployer`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/udc#UniversalDeployer) diff --git a/packages/presets/src/account.cairo b/packages/presets/src/account.cairo index a98e2033f..2d432b3a0 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.20.0-rc.0 (presets/account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/account.cairo) /// # Account Preset /// diff --git a/packages/presets/src/erc1155.cairo b/packages/presets/src/erc1155.cairo index 40dfd61d3..ee94e2c9a 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.20.0-rc.0 (presets/erc1155.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/erc1155.cairo) /// # ERC1155Upgradeable Preset /// diff --git a/packages/presets/src/erc20.cairo b/packages/presets/src/erc20.cairo index a1bdedd7b..a4b4ecf6b 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.20.0-rc.0 (presets/erc20.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/erc20.cairo) /// # ERC20 Preset /// diff --git a/packages/presets/src/erc721.cairo b/packages/presets/src/erc721.cairo index 52369ea71..0eebe0a27 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.20.0-rc.0 (presets/erc721.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/erc721.cairo) /// # ERC721 Preset /// diff --git a/packages/presets/src/eth_account.cairo b/packages/presets/src/eth_account.cairo index 50d79301b..717cb9342 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.20.0-rc.0 (presets/eth_account.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/eth_account.cairo) /// # EthAccount Preset /// diff --git a/packages/presets/src/universal_deployer.cairo b/packages/presets/src/universal_deployer.cairo index c00870d83..3ff59b004 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.20.0-rc.0 (presets/universal_deployer.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/universal_deployer.cairo) /// # UniversalDeployerContract Preset /// diff --git a/packages/presets/src/vesting.cairo b/packages/presets/src/vesting.cairo index 1594dece2..d04fb956b 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.20.0-rc.0 (presets/vesting.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (presets/vesting.cairo) #[starknet::contract] pub mod VestingWallet { diff --git a/packages/security/README.md b/packages/security/README.md index ca897f3ce..6b47401a0 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.20.0-rc.0/api/security](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/security) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/security](https://docs.openzeppelin.com/contracts-cairo/0.20.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.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) +- [`InitializableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/security#InitializableComponent) +- [`PausableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/security#PausableComponent) +- [`ReentrancyGuardComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/security#ReentrancyGuardComponent) diff --git a/packages/security/src/initializable.cairo b/packages/security/src/initializable.cairo index 6a53e24d0..302a38f2b 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.20.0-rc.0 (security/initializable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (security/initializable.cairo) /// # Initializable Component /// diff --git a/packages/security/src/interface.cairo b/packages/security/src/interface.cairo index 6273a26e5..af603f466 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.20.0-rc.0 (security/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (security/interface.cairo) #[starknet::interface] pub trait IInitializable { diff --git a/packages/security/src/pausable.cairo b/packages/security/src/pausable.cairo index d4fb3639f..2db6eb438 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.20.0-rc.0 (security/pausable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (security/pausable.cairo) /// # Pausable Component /// diff --git a/packages/security/src/reentrancyguard.cairo b/packages/security/src/reentrancyguard.cairo index b91ee0eee..db907f558 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.20.0-rc.0 (security/reentrancyguard.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (security/reentrancyguard.cairo) /// # ReentrancyGuard Component /// diff --git a/packages/testing/README.md b/packages/testing/README.md index 3ae30b026..45fbb21ab 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.20.0-rc.0/api/testing](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/testing) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/testing](https://docs.openzeppelin.com/contracts-cairo/0.20.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.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) +- [`common`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/testing#testing-common) +- [`deployment`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/testing#testing-deployment) +- [`events`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/testing#testing-events) +- [`signing`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/testing#testing-signing) diff --git a/packages/token/README.md b/packages/token/README.md index 0a636eac9..294b59e23 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.20.0-rc.0/api/erc20](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20) #### Interfaces -- [`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) +- [`IERC20`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20#IERC20) +- [`IERC20Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20#IERC20Metadata) #### Components -- [`ERC20Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/erc20#ERC20Component) +- [`ERC20Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc20#ERC20Component) ### 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) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721) #### Interfaces -- [`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) +- [`IERC721`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#IERC721) +- [`IERC721Metadata`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#IERC721Metadata) +- [`IERC721Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#IERC721Receiver) +- [`IERC721Enumerable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#IERC721Enumerable) #### Components -- [`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) +- [`ERC721Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#ERC721Component) +- [`ERC721ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#ERC721ReceiverComponent) +- [`ERC721EnumerableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc721#ERC721EnumerableComponent) ### 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) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155) #### Interfaces -- [`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) +- [`IERC1155`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#IERC1155) +- [`IERC1155MetadataURI`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#IERC1155MetadataURI) +- [`IERC1155Receiver`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#IERC1155Receiver) #### Components -- [`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) +- [`ERC1155Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#ERC1155Component) +- [`ERC1155ReceiverComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/erc1155#ERC1155ReceiverComponent) ### 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) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/token_common](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/token_common) #### Interfaces -- [`IERC2981`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common#IERC2981) +- [`IERC2981`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/token_common#IERC2981) #### Components -- [`ERC2981Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/token_common#ERC2981Component) +- [`ERC2981Component`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/token_common#ERC2981Component) diff --git a/packages/token/src/common/erc2981/erc2981.cairo b/packages/token/src/common/erc2981/erc2981.cairo index 05650fb24..c212276b2 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.20.0-rc.0 (token/common/erc2981/erc2981.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 ec1e5a4f3..ef985054d 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.20.0-rc.0 (token/common/erc2981/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 4e9978760..7483dbe5c 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.20.0-rc.0 (token/erc1155/erc1155.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 9ea7205dc..28e1d9e97 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.20.0-rc.0 (token/erc1155/erc1155_receiver.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 ad8c1c72e..c57006eb2 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.20.0-rc.0 (token/erc1155/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 b74e4d48c..58608bbc3 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.20.0-rc.0 (token/erc20/erc20.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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.20.0-rc.0/guides/erc20-supply) +/// (https://docs.openzeppelin.com/contracts-cairo/0.20.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 0d11749ec..4b1c94914 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.20.0-rc.0 (token/erc20/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 b232d8edd..3be1be100 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.20.0-rc.0 (token/erc20/snip12_utils/permit.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (token/erc20/snip12_utils/permit.cairo) use core::hash::{HashStateExTrait, HashStateTrait}; use core::poseidon::PoseidonTrait; diff --git a/packages/token/src/erc721/erc721.cairo b/packages/token/src/erc721/erc721.cairo index 6549f179d..f6039d108 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.20.0-rc.0 (token/erc721/erc721.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 dce210288..4d8e41726 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.20.0-rc.0 (token/erc721/erc721_receiver.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 424befa91..fa086f498 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 dc89ca5bd..512ce55f6 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.20.0-rc.0 +// OpenZeppelin Contracts for Cairo v0.20.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 f28916bfe..71f3b3e61 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.20.0-rc.0 (token/erc721/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (token/erc721/interface.cairo) use starknet::ContractAddress; diff --git a/packages/upgrades/README.md b/packages/upgrades/README.md index d7a38dcc9..48e86a7fb 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.20.0-rc.0/api/upgrades](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/upgrades](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/upgrades) This crate provides an interface and component used for upgradeability. ### Interfaces -- [`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) +- [`IUpgradeable`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/upgrades#IUpgradeable) +- [`IUpgradeAndCall`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/upgrades#IUpgradeAndCall) ### Components -- [`UpgradeableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/upgrades#UpgradeableComponent) +- [`UpgradeableComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/upgrades#UpgradeableComponent) diff --git a/packages/upgrades/src/interface.cairo b/packages/upgrades/src/interface.cairo index d92e82b7f..55b8e9b96 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.20.0-rc.0 (upgrades/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (upgrades/interface.cairo) use starknet::ClassHash; diff --git a/packages/upgrades/src/upgradeable.cairo b/packages/upgrades/src/upgradeable.cairo index 42a9ef7eb..06b46e8f7 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.20.0-rc.0 (upgrades/upgradeable.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (upgrades/upgradeable.cairo) /// # Upgradeable Component /// diff --git a/packages/utils/README.md b/packages/utils/README.md index 8d5e1a25e..7acddf811 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.20.0-rc.0/api/utilities](https://docs.openzeppelin.com/contracts-cairo/0.20.0-rc.0/api/utilities) +> **NOTE:** This document is better viewed at [https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities) This crate provides components and libraries containing miscellaneous utilities. ### Core utilities -- [`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) +- [`utils`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#utils) +- [`cryptography`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#cryptography) +- [`deployments`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#deployments) +- [`math`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#math) +- [`serde`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#serde) ### Cryptography -- [`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) +- [`NoncesComponent`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#NoncesComponent) +- [`snip12`](https://docs.openzeppelin.com/contracts-cairo/0.20.0/api/utilities#snip12) diff --git a/packages/utils/src/bytearray.cairo b/packages/utils/src/bytearray.cairo index a0b7ef2dc..8b9f5c248 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.20.0-rc.0 (utils/bytearray.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/bytearray.cairo) use core::byte_array::ByteArrayTrait; use core::hash::{HashStateExTrait, HashStateTrait}; diff --git a/packages/utils/src/cryptography/interface.cairo b/packages/utils/src/cryptography/interface.cairo index f1edfae72..8e8603c2c 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.20.0-rc.0 (utils/cryptography/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 bae3cf532..da385578a 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.20.0-rc.0 (utils/cryptography/nonces.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/cryptography/nonces.cairo) /// # Nonces Component /// diff --git a/packages/utils/src/cryptography/snip12.cairo b/packages/utils/src/cryptography/snip12.cairo index cf2d72bfc..d75be4e78 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.20.0-rc.0 (utils/cryptography/snip12.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/cryptography/snip12.cairo) use core::hash::{Hash, HashStateExTrait, HashStateTrait}; use core::poseidon::{HashState, PoseidonTrait}; diff --git a/packages/utils/src/deployments.cairo b/packages/utils/src/deployments.cairo index b2a2e005a..4284391db 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.20.0-rc.0 (utils/deployments.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/deployments.cairo) pub mod interface; diff --git a/packages/utils/src/deployments/interface.cairo b/packages/utils/src/deployments/interface.cairo index 76414356a..b3c5f15df 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.20.0-rc.0 (utils/deployments/interface.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/deployments/interface.cairo) use starknet::{ClassHash, ContractAddress}; diff --git a/packages/utils/src/math.cairo b/packages/utils/src/math.cairo index 55a0713b3..1b8a19884 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.20.0-rc.0 (utils/math.cairo) +// OpenZeppelin Contracts for Cairo v0.20.0 (utils/math.cairo) use core::traits::{BitAnd, BitXor, Into}; diff --git a/packages/utils/src/serde.cairo b/packages/utils/src/serde.cairo index 951c3b185..ae465a6f3 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.20.0-rc.0 (utils/serde.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 824cfd540..6a61c3a53 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.20.0-rc.0 (utils/structs/checkpoint.cairo) +// OpenZeppelin Contracts for Cairo v0.20.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 241f305e7..fe21e097a 100644 --- a/sncast_scripts/Scarb.lock +++ b/sncast_scripts/Scarb.lock @@ -3,7 +3,7 @@ version = 1 [[package]] name = "openzeppelin_access" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_utils", @@ -11,7 +11,7 @@ dependencies = [ [[package]] name = "openzeppelin_account" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_introspection", "openzeppelin_utils", @@ -19,7 +19,7 @@ dependencies = [ [[package]] name = "openzeppelin_finance" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_token", @@ -27,11 +27,11 @@ dependencies = [ [[package]] name = "openzeppelin_introspection" -version = "0.20.0-rc.0" +version = "0.20.0" [[package]] name = "openzeppelin_presets" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -44,14 +44,14 @@ dependencies = [ [[package]] name = "openzeppelin_testing" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "snforge_std", ] [[package]] name = "openzeppelin_token" -version = "0.20.0-rc.0" +version = "0.20.0" dependencies = [ "openzeppelin_access", "openzeppelin_account", @@ -61,11 +61,11 @@ dependencies = [ [[package]] name = "openzeppelin_upgrades" -version = "0.20.0-rc.0" +version = "0.20.0" [[package]] name = "openzeppelin_utils" -version = "0.20.0-rc.0" +version = "0.20.0" [[package]] name = "sncast_scripts"