Skip to content

Commit

Permalink
Prioritize registry deps in the docs (#1777)
Browse files Browse the repository at this point in the history
Also fixes some broken links in related files
  • Loading branch information
DelevoXDG authored Nov 26, 2024
1 parent f4e8def commit 91fc0ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions website/docs/extensions/starknet/contract-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { data as rel } from "../../../github.data";

# Starknet Contract Target

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

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

### Wildcard support
Expand Down Expand Up @@ -188,7 +188,7 @@ For example, to use the `experimental` allow-list, type the following:
allowed-libfuncs-list.name = "experimental"
```

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).
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).

### External allow-lists

Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ members = ["foo", "bar"]

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

```toml [foo/Scarb.toml]
Expand Down

0 comments on commit 91fc0ad

Please sign in to comment.