Skip to content

Commit 91fc0ad

Browse files
authored
Prioritize registry deps in the docs (#1777)
Also fixes some broken links in related files
1 parent f4e8def commit 91fc0ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

website/docs/extensions/starknet/contract-target.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { data as rel } from "../../../github.data";
44

55
# Starknet Contract Target
66

7-
The `starknet-contract` target allows to build the package as a [Starknet Contract](https://book.cairo-lang.org/ch99-00-starknet-smart-contracts.html).
7+
The `starknet-contract` target allows to build the package as a [Starknet Contract](https://book.cairo-lang.org/ch13-00-introduction-to-starknet-smart-contracts.html).
88
It searches for all contract classes in the package, and builds a separate compiled JSON file each found class.
99
Generated file will be named with following pattern: `[target name]_[contract name].contract_class.json`.
1010

@@ -84,10 +84,10 @@ For example, to build `Account` contract defined in `openzeppelin` package, add
8484
```toml-vue
8585
[dependencies]
8686
starknet = "{{ rel.stable.starknetPackageVersionReq }}"
87-
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", branch = "cairo-2" }
87+
openzeppelin = "0.19.0"
8888
8989
[[target.starknet-contract]]
90-
build-external-contracts = ["openzeppelin::account::account::Account"]
90+
build-external-contracts = ["openzeppelin_presets::account::AccountUpgradeable"]
9191
```
9292

9393
### Wildcard support
@@ -188,7 +188,7 @@ For example, to use the `experimental` allow-list, type the following:
188188
allowed-libfuncs-list.name = "experimental"
189189
```
190190

191-
All built-in lists can be located in the [Cairo repository](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-starknet/src/allowed_libfuncs_lists).
191+
All built-in lists can be located in the [Cairo repository](https://github.com/starkware-libs/cairo/tree/main/crates/cairo-lang-starknet-classes/src/allowed_libfuncs_lists).
192192

193193
### External allow-lists
194194

website/docs/reference/workspaces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ members = ["foo", "bar"]
146146

147147
[workspace.dependencies]
148148
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }
149-
openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", branch = "cairo-2" }
149+
openzeppelin = "0.19.0"
150150
```
151151

152152
```toml [foo/Scarb.toml]

0 commit comments

Comments
 (0)