Skip to content

Commit

Permalink
Updating branding for Casper Node
Browse files Browse the repository at this point in the history
  • Loading branch information
ACStone-MTS committed Jul 19, 2023
1 parent fb7b0eb commit 877c0fd
Show file tree
Hide file tree
Showing 24 changed files with 129 additions and 35 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![LOGO](https://raw.githubusercontent.com/casper-network/casper-node/master/images/casper-association-logo-primary.svg)](https://casper.network/)
[![LOGO](https://raw.githubusercontent.com/casper-network/casper-node/master/images/casper-association-logo-new.svg)](https://casper.network/)

# casper-node

Expand Down
2 changes: 1 addition & 1 deletion ci/build_client_rpm.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash


# Images used in this script are build in CasperLabs/buildenv repo
# Images used in this script are build in Casper/buildenv repo

# This allows make commands without local build environment setup or
# using an OS version other than locally installed.
Expand Down
2 changes: 1 addition & 1 deletion ci/casper_updater/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
authors = ["Fraser Hutchison <[email protected]>"]
description = "A tool to update versions of all published CasperLabs packages."
description = "A tool to update versions of all published Casper packages."
edition = "2018"
license = "Apache-2.0"
name = "casper-updater"
Expand Down
4 changes: 2 additions & 2 deletions ci/casper_updater/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# casper-updater

A tool to update versions of all published CasperLabs packages.
A tool to update versions of all published Casper packages.

# Usage

The tool iterates through each published CasperLabs package, asking for a new version for each or automatically bumping the major, minor or patch version if `--bump=[major|minor|patch]` was specified. Once a valid version is specified, all files dependent on that version are updated.
The tool iterates through each published package, asking for a new version for each or automatically bumping the major, minor or patch version if `--bump=[major|minor|patch]` was specified. Once a valid version is specified, all files dependent on that version are updated.

If you run the tool from its own directory it will expect to find the casper-node root directory at '../..'. Alternatively, you can give the path to the casper-node root directory via `--root-dir`.

Expand Down
2 changes: 1 addition & 1 deletion ci/casper_updater/src/dependent_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{

use regex::Regex;

/// A file which is dependent on the version of a certain CasperLabs crate.
/// A file which is dependent on the version of a certain Casper crate.
pub struct DependentFile {
/// Full path to the file.
path: PathBuf,
Expand Down
2 changes: 1 addition & 1 deletion ci/casper_updater/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! A tool to update versions of all published CasperLabs packages.
//! A tool to update versions of all published Casper packages.
#![warn(unused, missing_copy_implementations, missing_docs)]
#![deny(
Expand Down
2 changes: 1 addition & 1 deletion ci/casper_updater/src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::{

const CAPTURE_INDEX: usize = 2;

/// Represents a published CasperLabs crate or AssemblyScript package which may need its version
/// Represents a published Casper crate or AssemblyScript package which may need its version
/// updated.
pub struct Package {
/// This package's name as specified in its manifest.
Expand Down
2 changes: 1 addition & 1 deletion docker_make.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Images used in this script are build in CasperLabs/buildenv repo
# Images used in this script are build in Casper/buildenv repo

# This allows make commands without local build environment setup or
# using an OS version other than locally installed.
Expand Down
2 changes: 1 addition & 1 deletion execution_engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "casper-execution-engine"
version = "5.0.0" # when updating, also update 'html_root_url' in lib.rs
authors = ["Henry Till <[email protected]>", "Ed Hastings <[email protected]>"]
edition = "2018"
description = "CasperLabs execution engine crates."
description = "Casper execution engine crates."
readme = "README.md"
documentation = "https://docs.rs/casper-execution-engine"
homepage = "https://casperlabs.io"
Expand Down
2 changes: 1 addition & 1 deletion execution_engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Documentation](https://docs.rs/casper-execution-engine/badge.svg)](https://docs.rs/casper-execution-engine)
[![License](https://img.shields.io/badge/license-Apache-blue)](https://github.com/casper-network/casper-node/blob/master/LICENSE)

The main component of the CasperLabs Wasm execution engine.
The main component of the Casper Wasm execution engine.

## License

Expand Down
4 changes: 2 additions & 2 deletions execution_engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#![doc(html_root_url = "https://docs.rs/casper-execution-engine/5.0.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(
Expand Down
4 changes: 2 additions & 2 deletions execution_engine_testing/test_support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#![doc(html_root_url = "https://docs.rs/casper-engine-test-support/5.0.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(missing_docs)]
Expand Down
4 changes: 2 additions & 2 deletions hashing/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! A library providing hashing functionality including Merkle Proof utilities.
#![doc(html_root_url = "https://docs.rs/casper-hashing/2.0.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(missing_docs)]
Expand Down
94 changes: 94 additions & 0 deletions images/Casper-association-logo-new.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Casper_Logo_Favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Casper_Logo_Favicon_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions json_rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
#![doc(html_root_url = "https://docs.rs/casper-json-rpc/1.1.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(deny(warnings)))
)]
#![warn(
Expand Down
2 changes: 1 addition & 1 deletion node/src/components/consensus/cl_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ConsensusValueT for Arc<BlockPayload> {
}
}

/// The collection of types used for cryptography, IDs and blocks in the CasperLabs node.
/// The collection of types used for cryptography, IDs and blocks in the Casper node.
#[derive(Clone, DataSize, Debug, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize)]
pub(crate) struct ClContext;

Expand Down
10 changes: 5 additions & 5 deletions node/src/components/rpc_server/rpcs/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ const DEFINITIONS_PATH: &str = "#/components/schemas/";
// As per https://spec.open-rpc.org/#service-discovery-method.
pub(crate) static OPEN_RPC_SCHEMA: Lazy<OpenRpcSchema> = Lazy::new(|| {
let contact = OpenRpcContactField {
name: "CasperLabs".to_string(),
name: "Casper Labs".to_string(),
url: "https://casperlabs.io".to_string(),
};
let license = OpenRpcLicenseField {
name: "CasperLabs Open Source License Version 1.0".to_string(),
name: "Casper Open Source License Version 1.0".to_string(),
url: "https://raw.githubusercontent.com/CasperLabs/casper-node/master/LICENSE".to_string(),
};
let info = OpenRpcInfoField {
Expand Down Expand Up @@ -500,12 +500,12 @@ mod tests {

fn check_optional_params_fields<T: RpcWithOptionalParams>() -> Vec<SchemaParam> {
let contact = OpenRpcContactField {
name: "CasperLabs".to_string(),
name: "Casper Labs".to_string(),
url: "https://casperlabs.io".to_string(),
};
let license = OpenRpcLicenseField {
name: "CasperLabs Open Source License Version 1.0".to_string(),
url: "https://raw.githubusercontent.com/CasperLabs/casper-node/master/LICENSE"
name: "APACHE LICENSE, VERSION 2.0".to_string(),
url: "https://www.apache.org/licenses/LICENSE-2.0"
.to_string(),
};
let info = OpenRpcInfoField {
Expand Down
4 changes: 2 additions & 2 deletions node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#![doc(html_root_url = "https://docs.rs/casper-node/1.5.2")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(
Expand Down
2 changes: 1 addition & 1 deletion node/src/types/json_compatibility/stored_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use super::{Account, Contract, ContractPackage};
#[derive(Clone, Eq, PartialEq, Serialize, Deserialize, Debug, JsonSchema)]
#[serde(deny_unknown_fields)]
pub enum StoredValue {
/// A CasperLabs value.
/// An instance of any variant of CLValue
CLValue(CLValue),
/// An account.
Account(Account),
Expand Down
6 changes: 3 additions & 3 deletions resources/test/rpc_schema_hashing.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"url": "https://casperlabs.io"
},
"license": {
"name": "CasperLabs Open Source License Version 1.0",
"url": "https://raw.githubusercontent.com/CasperLabs/casper-node/master/LICENSE"
"name": "APACHE LICENSE, VERSION 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
}
},
"servers": [
Expand Down Expand Up @@ -3466,7 +3466,7 @@
"description": "Representation of a value stored in global state.\n\n`Account`, `Contract` and `ContractPackage` have their own `json_compatibility` representations (see their docs for further info).",
"anyOf": [
{
"description": "A CasperLabs value.",
"description": "An instance of any variant of CLValue.",
"type": "object",
"required": [
"CLValue"
Expand Down
4 changes: 2 additions & 2 deletions smart_contracts/contract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
)]
#![doc(html_root_url = "https://docs.rs/casper-contract/3.0.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(missing_docs)]
Expand Down
4 changes: 2 additions & 2 deletions types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
)]
#![doc(html_root_url = "https://docs.rs/casper-types/3.0.0")]
#![doc(
html_favicon_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Favicon_RGB_50px.png",
html_logo_url = "https://raw.githubusercontent.com/CasperLabs/casper-node/master/images/CasperLabs_Logo_Symbol_RGB.png",
html_favicon_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon_48.png",
html_logo_url = "https://raw.githubusercontent.com/casper-network/casper-node/blob/dev/images/Casper_Logo_Favicon.png",
test(attr(forbid(warnings)))
)]
#![warn(missing_docs)]
Expand Down

0 comments on commit 877c0fd

Please sign in to comment.