Skip to content

Commit 98f83ef

Browse files
guibescosdzizazda
andauthored
fix: typos (#1335)
* Update SECURITY.md * Update message_buffer.ts * Update ser.rs * Let's see --------- Co-authored-by: Pioua <136521243+dzizazda@users.noreply.github.com>
1 parent ddf0463 commit 98f83ef

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/ci-message-buffer-idl.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ jobs:
3434
run: anchor build
3535
- name: Copy anchor target files
3636
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
37+
- name: Install prettier globally
38+
run: npm install -g prettier@2.7.1
3739
- name: Run prettier (to avoid pre-commit failures)
3840
run: |
39-
npx prettier --write "./idl/*"
41+
npx prettier@2.7.1 --write "./idl/*"
4042
- name: Check IDL changes
4143
# Fails if the IDL files are not up to date. Please use anchor build to regenerate the IDL files for
4244
# the current version of the contract and update idl directory.

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ As these 3rd party audits are completed and issues are sufficiently addressed, w
4343

4444
The Pyth project maintains a social media monitoring program to stay abreast of important ecosystem developments.
4545

46-
These developments include monitoring services like Twitter for key phrases and patterns such that the Pyth project is informed of a compromise or vulnerability in a dependancy that could negatively affect Pyth or its users.
46+
These developments include monitoring services like Twitter for key phrases and patterns such that the Pyth project is informed of a compromise or vulnerability in a dependency that could negatively affect Pyth or its users.
4747

4848
In the case of a large ecosystem development that requires response, the Pyth project will engage its security incident response program.
4949

5050
## Incident Response
5151

5252
The Pyth project maintains an incident response program to respond to vulnerabilities or active threats to Pyth, its users, or the ecosystems it's connected to. Pyth can be made aware about a security event from a variety of different sources (eg. bug bounty program, audit finding, security monitoring, social media, etc.)
5353

54-
When a Pyth project contributor becomes aware of a security event, that contributor immediately holds the role of [incident commander](https://en.wikipedia.org/wiki/Incident_commander) for the issue until they hand off to a more appropriate incident commander. A contributor does not need to be a "security person" or have any special priviledges to hold the role of incident commander, they simply need to be responsible, communicate effectively, and maintain the following obligations to manage the incident to completion.
54+
When a Pyth project contributor becomes aware of a security event, that contributor immediately holds the role of [incident commander](https://en.wikipedia.org/wiki/Incident_commander) for the issue until they hand off to a more appropriate incident commander. A contributor does not need to be a "security person" or have any special privileges to hold the role of incident commander, they simply need to be responsible, communicate effectively, and maintain the following obligations to manage the incident to completion.
5555

5656
The role of the incident commander for Pyth includes the following minimum obligations:
5757

pythnet/message_buffer/tests/message_buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ describe("message_buffer", () => {
535535
const messageBufferAccountDataLenBefore =
536536
messageBufferAccountDataBefore.length;
537537

538-
// check that header is stil the same as before
538+
// check that header is still the same as before
539539
const messageBufferHeaderBefore = deserializeMessageBufferHeader(
540540
messageBufferProgram,
541541
messageBufferAccountDataBefore

pythnet/pythnet_sdk/src/wire/ser.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
//! }
4646
//! ```
4747
//!
48-
//! The macro will expand into (a more complicated but equivelent) version of:
48+
//! The macro will expand into (a more complicated but equivalent) version of:
4949
//!
5050
//! ```rust,ignore
5151
//! impl serde::Serialize for ExampleEnum {
@@ -76,7 +76,7 @@
7676
//! any format we desire as long as there is a `Serializer` implementation for it. With aggressive
7777
//! inlining, the compiler will be able to optimize away the intermediate state objects and calls
7878
//! to `serialize_field` and `serialize_*_variant` and the final result of our parser will have
79-
//! very close to equivelent performance to a hand written implementation.
79+
//! very close to equivalent performance to a hand written implementation.
8080
//!
8181
//! The Pyth Serialization Format
8282
//! ================================================================================
@@ -92,7 +92,7 @@
9292
//! Integers:
9393
//!
9494
//! - `{u,i}8` are serialized as a single byte
95-
//! - `{u,i}16/32/64/128` are serialized as bytes specified by the parser endianess type param.
95+
//! - `{u,i}16/32/64/128` are serialized as bytes specified by the parser endianness type param.
9696
//! - Custom {U,I}128/256 wrappers may be implemented later (similar to Borsh) for better support
9797
//! in JS, debugging, logging, etc.
9898
//!

0 commit comments

Comments
 (0)