Skip to content

Commit

Permalink
Rename cosmos-sdk-rs to cosmrs (#125)
Browse files Browse the repository at this point in the history
As discussed in #113, this renames "cosmos-sdk-rs" (i.e. the
`cosmos_sdk` crate) to `cosmrs`.
  • Loading branch information
tony-iqlusion authored Aug 25, 2021
1 parent 7c85a49 commit ef8b129
Show file tree
Hide file tree
Showing 32 changed files with 34 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: cosmos-sdk-rs
name: cosmrs

on:
push:
branches: main
pull_request:
paths:
- "cosmos-sdk-proto/**"
- "cosmos-sdk-rs/**"
- "cosmrs/**"
- "Cargo.*"

defaults:
run:
working-directory: cosmos-sdk-rs
working-directory: cosmrs

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ resolver = "2"
members = [
"proto-build",
"cosmos-sdk-proto",
"cosmos-sdk-rs"
"cosmrs"
]
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ This is a place for commonly shared rust resources related to the Cosmos ecosyst

| Name | Description | crates.io | docs.rs | CI Build |
|----------------------|-----------------------------|-----------|---------|----------|
| [`cosmos‑sdk`] | Cosmos SDK for Rust | [![crates.io][cosmos-sdk-crate-img]][cosmos-sdk-crate-link] | [![docs.rs][cosmos-sdk-docs-img]][cosmos-sdk-docs-link] | [![CI][cosmos-sdk-ci-img]][cosmos-sdk-ci-link] |
| [`cosmos‑sdk‑proto`] | Proto and gRPC definitions | [![crates.io][cosmos-sdk-proto-crate-img]][cosmos-sdk-crate-link] | ![docs.rs][cosmos-sdk-proto-docs-img] | [![CI][cosmos-sdk-proto-ci-img]][cosmos-sdk-proto-ci-link] |
| [`cosmrs`] | Cosmos SDK for Rust | [![crates.io][cosmrs-crate-img]][cosmrs-crate-link] | [![docs.rs][cosmrs-docs-img]][cosmrs-docs-link] | [![CI][cosmrs-ci-img]][cosmrs-ci-link] |
| [`cosmos‑sdk‑proto`] | Proto and gRPC definitions | [![crates.io][cosmos-sdk-proto-crate-img]][cosmrs-crate-link] | ![docs.rs][cosmos-sdk-proto-docs-img] | [![CI][cosmos-sdk-proto-ci-img]][cosmos-sdk-proto-ci-link] |

## Merge Policy

Expand Down Expand Up @@ -38,20 +38,20 @@ Rust **1.54**

[//]: # "crates"

[`cosmos‑sdk`]: https://github.com/cosmos/cosmos-rust/tree/main/cosmos-sdk-rs
[`cosmrs`]: https://github.com/cosmos/cosmos-rust/tree/main/cosmrs
[`cosmos‑sdk‑proto`]: https://github.com/cosmos/cosmos-rust/tree/main/cosmos-sdk-proto

[//]: # "badges"

[cosmos-sdk-crate-img]: https://img.shields.io/crates/v/cosmos_sdk.svg?logo=rust
[cosmos-sdk-crate-link]: https://crates.io/crates/cosmos_sdk
[cosmos-sdk-docs-img]: https://docs.rs/cosmos_sdk/badge.svg
[cosmos-sdk-docs-link]: https://docs.rs/cosmos_sdk/
[cosmos-sdk-ci-img]: https://github.com/cosmos/cosmos-rust/workflows/cosmos-sdk-rs/badge.svg
[cosmos-sdk-ci-link]: https://github.com/cosmos/cosmos-rust/actions/workflows/cosmos-sdk-rs.yml
[cosmrs-crate-img]: https://img.shields.io/crates/v/cosmrs.svg?logo=rust
[cosmrs-crate-link]: https://crates.io/crates/cosmrs
[cosmrs-docs-img]: https://docs.rs/cosmrs/badge.svg
[cosmrs-docs-link]: https://docs.rs/cosmrs/
[cosmrs-ci-img]: https://github.com/cosmos/cosmos-rust/workflows/cosmrs/badge.svg
[cosmrs-ci-link]: https://github.com/cosmos/cosmos-rust/actions/workflows/cosmrs.yml

[cosmos-sdk-proto-crate-img]: https://img.shields.io/crates/v/cosmos-sdk-proto.svg?logo=rust
[cosmos-sdk-crate-link]: https://crates.io/crates/cosmos-sdk-proto
[cosmrs-crate-link]: https://crates.io/crates/cosmos-sdk-proto
[cosmos-sdk-proto-docs-img]: https://docs.rs/cosmos-sdk-proto/badge.svg
[cosmos-sdk-proto-docs-link]: https://docs.rs/cosmos-sdk-proto/
[cosmos-sdk-proto-ci-img]: https://github.com/cosmos/cosmos-rust/workflows/cosmos-sdk-proto/badge.svg
Expand Down
40 changes: 0 additions & 40 deletions cosmos-sdk-rs/CHANGELOG.md

This file was deleted.

5 changes: 5 additions & 0 deletions cosmrs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6 changes: 3 additions & 3 deletions cosmos-sdk-rs/Cargo.toml → cosmrs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "cosmos_sdk"
version = "0.3.0" # Also update html_root_url in lib.rs when bumping this
name = "cosmrs"
version = "0.0.0" # Also update html_root_url in lib.rs when bumping this
authors = ["Tony Arcieri <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
repository = "https://github.com/cosmos/cosmos-rust/tree/main/cosmos-sdk-rs"
repository = "https://github.com/cosmos/cosmos-rust/tree/main/cosmrs"
description = "Transaction builder and signer for Cosmos-based blockchains"
readme = "README.md"
categories = ["cryptography", "cryptography::cryptocurrencies", "encoding"]
Expand Down
14 changes: 7 additions & 7 deletions cosmos-sdk-rs/README.md → cosmrs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Cosmos SDK for Rust
# CosmRS: Cosmos SDK for Rust

[![Crate][crate-image]][crate-link]
[![Docs][docs-image]][docs-link]
Expand All @@ -16,12 +16,12 @@ of the [Cosmos SDK for Golang].
This crate is supported on Rust **1.54** or newer.

[//]: # "badges"
[crate-image]: https://img.shields.io/crates/v/cosmos_sdk.svg?logo=rust
[crate-link]: https://crates.io/crates/cosmos_sdk
[docs-image]: https://docs.rs/cosmos_sdk/badge.svg
[docs-link]: https://docs.rs/cosmos_sdk/
[build-image]: https://github.com/cosmos/cosmos-rust/workflows/cosmos-sdk-rs/badge.svg
[build-link]: https://github.com/cosmos/cosmos-rust/actions/workflows/cosmos-sdk-rs.yml
[crate-image]: https://img.shields.io/crates/v/cosmrs.svg?logo=rust
[crate-link]: https://crates.io/crates/cosmrs
[docs-image]: https://docs.rs/cosmrs/badge.svg
[docs-link]: https://docs.rs/cosmrs/
[build-image]: https://github.com/cosmos/cosmos-rust/workflows/cosmrs/badge.svg
[build-link]: https://github.com/cosmos/cosmos-rust/actions/workflows/cosmrs.yml
[license-image]: https://img.shields.io/badge/license-Apache2.0-blue.svg
[license-link]: https://github.com/cosmos/cosmos-rust/blob/master/LICENSE
[rustc-image]: https://img.shields.io/badge/rustc-1.54+-blue.svg
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cosmos-sdk-rs/src/lib.rs → cosmrs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/cosmos/cosmos-rust/main/.images/cosmos.png",
html_root_url = "https://docs.rs/cosmos-sdk/0.3.0"
html_root_url = "https://docs.rs/cosmrs/0.0.0"
)]
#![forbid(unsafe_code)]
#![warn(trivial_casts, trivial_numeric_casts, unused_import_braces)]
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions cosmos-sdk-rs/src/tx.rs → cosmrs/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//!
//! ```
//! # fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
//! use cosmos_sdk::{
//! use cosmrs::{
//! bank::MsgSend,
//! crypto::secp256k1,
//! tx::{self, Fee, MsgType, SignDoc, SignerInfo, Tx},
Expand Down Expand Up @@ -94,7 +94,7 @@
//! // Parsing transactions //
//! //////////////////////////
//!
//! // Parse the serialized bytes from above into a `cosmos_sdk::Tx`
//! // Parse the serialized bytes from above into a `cosmrs::Tx`
//! let tx_parsed = Tx::from_bytes(&tx_bytes)?;
//! assert_eq!(tx_parsed.body, tx_body);
//! assert_eq!(tx_parsed.auth_info, auth_info);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#![cfg(feature = "dev")]

use cosmos_sdk::{
use cosmrs::{
bank::MsgSend,
crypto::secp256k1,
dev, rpc,
Expand All @@ -14,7 +14,7 @@ use cosmos_sdk::{
use std::{panic, str};

/// Chain ID to use for tests
const CHAIN_ID: &str = "cosmos-sdk-test";
const CHAIN_ID: &str = "cosmrs-test";

/// RPC port
const RPC_PORT: u16 = 26657;
Expand Down

0 comments on commit ef8b129

Please sign in to comment.