Skip to content

Commit 4380ef4

Browse files
chore: ran pre-commit run --all
1 parent 7557a76 commit 4380ef4

File tree

24 files changed

+64
-59
lines changed

24 files changed

+64
-59
lines changed

.github/workflows/cli-stylus-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
matrix:
5757
# Get early warning of new lints which are regularly introduced in beta
5858
# channels.
59-
toolchain: [ stable, beta ]
59+
toolchain: [stable, beta]
6060
steps:
6161
- uses: actions/checkout@v4
6262
with:
@@ -72,7 +72,7 @@ jobs:
7272
- name: Cargo clippy
7373
uses: giraffate/clippy-action@v1
7474
with:
75-
reporter: 'github-pr-check'
75+
reporter: "github-pr-check"
7676
github_token: ${{ secrets.GITHUB_TOKEN }}
7777
doc:
7878
# Run docs generation on nightly rather than stable. This enables features

.github/workflows/cli-stylus-nostd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: ${{ matrix.target }}
2525
strategy:
2626
matrix:
27-
target: [ wasm32-unknown-unknown ]
27+
target: [wasm32-unknown-unknown]
2828
steps:
2929
- uses: actions/checkout@v4
3030
with:

.github/workflows/publish-pythnet-stylus-sdk.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
1616
env:
1717
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
18-
working-directory: target_chains/ethereum/sdk/stylus
18+
working-directory: target_chains/ethereum/sdk/stylus

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ repos:
165165
files: lazer
166166
- id: cargo-fmt-stylus-sdk
167167
name: Cargo format for Stylus SDK
168-
language: "rust"
168+
language: "rust"
169169
entry: cargo +1.82.0 fmt --manifest-path ./target_chains/ethereum/sdk/stylus/Cargo.toml --all
170170
pass_filenames: false
171171
files: target_chains/ethereum/sdk/stylus

target_chains/ethereum/sdk/stylus/GUIDELINES.md

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

33
For best practices, coding standards, and other essential guidelines, please refer to the official [OpenZeppelin Rust Contracts Stylus Engineering Guidelines](https://github.com/OpenZeppelin/rust-contracts-stylus/blob/main/GUIDELINES.md).
44

5-
This document outlines the principles and practices for ths codebase , maintainable, and secure Rust code within the context of the Rust Contracts Stylus project.
5+
This document outlines the principles and practices for ths codebase , maintainable, and secure Rust code within the context of the Rust Contracts Stylus project.

target_chains/ethereum/sdk/stylus/README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ To consume prices, use the functions interface. Be sure to read the function doc
3333

3434
For example, to read the latest price, call [`getPriceNoOlderThan`](https://github.com/pyth-network/pyth-crosschain/blob/stylus-sdk/target_chains/ethereum/sdk/stylus/contracts/src/pyth/functions.rs) with the Price ID of the price feed you are interested in:
3535

36-
3736
You can interact directly with the Pyth contract, which implements the IPyth functions, instead of using call functions:
3837

3938
```rust
@@ -61,7 +60,6 @@ impl ProxyCallsExample {
6160

6261
[MockPyth](./mock.rs) is a mock contract that can be deployed locally to simulate Pyth contract behavior. To set and update price feeds, call `updatePriceFeeds` and provide an array of encoded price feeds as the argument. Encoded price feeds can be created using the `create_price_feed_update_data` function in the mock contract, which is also available in the functions module.
6362

64-
6563
## Test Documentation
6664

6765
### Running Unit Tests for `pyth-stylus`
@@ -73,10 +71,10 @@ cargo test -p pyth-stylus --all-features
7371
```
7472

7573
This command will:
74+
7675
- Target the `pyth-stylus` package specifically (`-p pyth-stylus`).
7776
- Enable **all features** defined in the package during the test run (`--all-features`).
7877

79-
8078
### Running End-to-End Tests
8179

8280
To run the end-to-end tests for `pyth-stylus`, follow these steps:
@@ -92,7 +90,6 @@ To run the end-to-end tests for `pyth-stylus`, follow these steps:
9290
./scripts/e2e-tests.sh
9391
```
9492

95-
9693
### Releases
9794

9895
We use [Semantic Versioning](https://semver.org/) for our releases. To release a new version of this package and publish it to npm, follow these steps:

target_chains/ethereum/sdk/stylus/contracts/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ crate-type = ["lib", "cdylib"]
3131

3232
[lints]
3333
workspace = true
34-
35-

target_chains/ethereum/sdk/stylus/examples/extend-pyth-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ e2e.workspace = true
2424
crate-type = ["lib", "cdylib"]
2525

2626
[features]
27-
e2e = []
27+
e2e = []
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# This is an example using the sdk and extending it to use other funtions
1+
# This is an example using the sdk and extending it to use other funtions

target_chains/ethereum/sdk/stylus/examples/function-example/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ e2e.workspace = true
2424
crate-type = ["lib", "cdylib"]
2525

2626
[features]
27-
e2e = []
27+
e2e = []

0 commit comments

Comments
 (0)