Skip to content

Commit ab1b2cb

Browse files
authored
cast -> sncast, forge -> snforge (#224)
1 parent 198a884 commit ab1b2cb

File tree

20 files changed

+33
-33
lines changed

20 files changed

+33
-33
lines changed

docs/src/appendix/cast/common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If passed, output will be displayed in json format.
5050

5151
## `--version, -v`
5252

53-
Prints out `cast` version.
53+
Prints out `sncast` version.
5454

5555
## `--help, -h`
5656

docs/src/appendix/forge-library/print.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> `trait PrintTrait<T> { fn print(self: T); }`
44
5-
Trait used for displaying test data with the `forge` command line output.
5+
Trait used for displaying test data with the `snforge` command line output.
66

77
The trait is implemented for types:
88
- `felt252`

docs/src/getting-started/first-steps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ tree . -L 1
2525

2626
* `src/` contains source code of all your contracts.
2727
* `tests/` contains tests. Note that test can also be included in any file or directory.
28-
* `Scarb.toml` contains configuration of the project as well as of `forge`, `cast` etc.
28+
* `Scarb.toml` contains configuration of the project as well as of `snforge`, `sncast` etc.
2929

30-
And run tests with `forge`
30+
And run tests with `snforge`
3131

3232
```shell
3333
$ snforge

docs/src/projects/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Instead of passing arguments in the command line, set them directly in the file.
99

1010
```toml
1111
(...)
12-
[tool.forge]
12+
[tool.snforge]
1313
exit_first = true
1414
(...)
1515
```
@@ -28,7 +28,7 @@ or you can put them into `Scarb.toml` file:
2828

2929
```toml
3030
(...)
31-
[tool.cast.myprofile]
31+
[tool.sncast.myprofile]
3232
account = "user"
3333
network = "testnet"
3434
url = "http://127.0.0.1:5050/rpc"
@@ -68,7 +68,7 @@ If you don't need multiple profiles, you can define the parameters without speci
6868
6969
```toml
7070
(...)
71-
[tool.cast]
71+
[tool.sncast]
7272
account = "user123"
7373
network = "testnet"
7474
url = "http://127.0.0.1:5050/rpc"

docs/src/starknet/declare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For a detailed CLI description, see [declare command reference](../appendix/cast
99
## Usage example
1010

1111
> 📝 **Note**
12-
> Building a contract before running `declare` is not required. Starknet Foundry `cast` builds a contract during declaration under the hood using [Scarb](https://docs.swmansion.com/scarb).
12+
> Building a contract before running `declare` is not required. Starknet Foundry `sncast` builds a contract during declaration under the hood using [Scarb](https://docs.swmansion.com/scarb).
1313
1414
First make sure that you have created a [`Scarb.toml`](../projects/template.md) file for your contract (it should be present in project directory or one of its parent directories).
1515

docs/src/starknet/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Cast overview
22

3-
Starknet Foundry `cast` is a command line tool for performing Starknet RPC calls. With it, you can easily interact with Starknet contracts!
3+
Starknet Foundry `sncast` is a command line tool for performing Starknet RPC calls. With it, you can easily interact with Starknet contracts!
44

55
> 💡 **Info**
6-
> At the moment, `cast` only supports contracts written in Cairo 1 and Cairo 2.
6+
> At the moment, `sncast` only supports contracts written in Cairo 1 and Cairo 2.
77
88
## How to use cast
99

@@ -12,14 +12,14 @@ To use cast, run the `sncast` command followed by a subcommand (see [available c
1212
$ sncast <subcommand>
1313
```
1414

15-
If `Scarb.toml` is present and configured with `[tool.cast]`, `url`, `network` and `account` name will be taken from it. You can, however, overwrite their values by supplying them as flags directly to `cast` cli.
15+
If `Scarb.toml` is present and configured with `[tool.sncast]`, `url`, `network` and `account` name will be taken from it. You can, however, overwrite their values by supplying them as flags directly to `sncast` cli.
1616

1717
> 💡 **Info**
1818
> Some transactions (like declaring, deploying or invoking) require paying a fee, and they must be signed.
1919
2020
## Example
2121

22-
Let's use `cast` to call a contract's function:
22+
Let's use `sncast` to call a contract's function:
2323

2424
```shell
2525
$ sncast --account myotheruser \

docs/src/starknet/multicall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
Starknet Foundry cast supports executing multiple deployments or calls with the `cast multicall` command.
5+
Starknet Foundry cast supports executing multiple deployments or calls with the `sncast multicall` command.
66

77
You need to provide a **path** to a `.toml` file with declarations of desired operations that you want to execute.
88

starknet-foundry/crates/cast/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Cast - Starknet Foundry CLI
22

3-
Starknet Foundry `cast` is a command line tool for performing Starknet RPC calls. With it, you can easily interact with Starknet contracts!
3+
Starknet Foundry `sncast` is a command line tool for performing Starknet RPC calls. With it, you can easily interact with Starknet contracts!
44

5-
Note, that at the moment, `cast` only supports contracts written in Cairo 1 and Cairo 2.
5+
Note, that at the moment, `sncast` only supports contracts written in Cairo 1 and Cairo 2.
66

77
## Table of contents
88

@@ -19,11 +19,11 @@ Note, that at the moment, `cast` only supports contracts written in Cairo 1 and
1919

2020
## Installation
2121

22-
You can download latest version of `cast` [here](https://github.com/foundry-rs/starknet-foundry/releases).
22+
You can download latest version of `sncast` [here](https://github.com/foundry-rs/starknet-foundry/releases).
2323

2424
## Documentation
2525

26-
For more details on Starknet Foundry `cast`, please visit [our docs](https://foundry-rs.github.io/starknet-foundry/starknet/index.html)
26+
For more details on Starknet Foundry `sncast`, please visit [our docs](https://foundry-rs.github.io/starknet-foundry/starknet/index.html)
2727

2828
## Example usages
2929
All subcommand usages are shown for two scenarios - when all necessary arguments are supplied using CLI, and when `network`, `url` and `account` arguments are taken from `Scarb.toml`. To learn more about configuring profiles with parameters in `Scarb.toml` file, please refer to the [documentation](https://foundry-rs.github.io/starknet-foundry/projects/configuration.html#defining-profiles-in-scarbtoml).
@@ -137,7 +137,7 @@ response: [FieldElement { inner: 0x000000000000000000000000000000000000000000000
137137
138138
## Development
139139
140-
Refer to [documentation](https://foundry-rs.github.io/starknet-foundry/development/environment-setup.html) to make sure you have all the pre-requisites, and to obtain an information on how to help to develop `cast`.
140+
Refer to [documentation](https://foundry-rs.github.io/starknet-foundry/development/environment-setup.html) to make sure you have all the pre-requisites, and to obtain an information on how to help to develop `sncast`.
141141
142142
Please make sure you're using scarb installed via asdf - otherwise some tests may fail.
143143
To verify, run:

starknet-foundry/crates/cast/src/helpers/scarb_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn get_property(
1818
profile: &Option<String>,
1919
property: &str,
2020
) -> Result<String, Error> {
21-
let profiled = tool.as_ref().and_then(|t| t.get("cast"));
21+
let profiled = tool.as_ref().and_then(|t| t.get("sncast"));
2222

2323
match profile {
2424
Some(ref p) => profiled

starknet-foundry/crates/cast/tests/data/contracts/v1/balance/Scarb.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ casm = true
1111
[lib]
1212
sierra = false
1313

14-
[tool.cast.myprofile]
14+
[tool.sncast.myprofile]
1515
network = "testnet"
1616
url = "http://127.0.0.1:5055/rpc"
1717
account = "user1"

0 commit comments

Comments
 (0)