Skip to content

Commit

Permalink
Preparing release of 0.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
maoueh committed Dec 2, 2024
1 parent 6e25302 commit 07bc20b
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 23 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ 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).

## [0.10.0](https://github.com/streamingfast/substreams-monitoring-smoke-test/releases/tag/v0.10.0)
## 0.10.2

* Bumped dependencies to `substreams` to 0.6 and `prost` to 0.13 (see [Upgrade notes](https://github.com/streamingfast/substreams-rs/releases/tag/v0.6.0))
* Re-release of `0.10.0` to jump over and 1 year old version that was incorrectly tagged as `v0.10.1` and is now causing dependency resolution problem with Prost update.

## [0.9.5](https://github.com/streamingfast/substreams-monitoring-smoke-test/releases/tag/v0.9.5)
## 0.10.0

* Bumped dependencies of `substreams` to 0.6 and `prost` to 0.13 (see [Upgrade notes](https://github.com/streamingfast/substreams-rs/releases/tag/v0.6.0)).

## 0.9.5

### Added

Expand Down
13 changes: 10 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ opt-level = 's'
strip = "debuginfo"

[workspace.package]
version = "0.10.0"
version = "0.10.2"
edition = "2021"
description = "Substreams development kit for NEAR chains, contains Firehose Block model and helpers."
homepage = "https://substreams.streamingfast.io/"
Expand All @@ -20,5 +20,12 @@ categories = ["api-bindings", "external-ffi-bindings", "wasm"]
rust-version = "1.71.1"

[workspace.dependencies]
substreams-near = { version = "0.10.0", path = "./substreams-near" }
substreams-near-core = { version = "0.10.0", path = "./core" }
anyhow = "1"
bs58 = "0.4.0"
hex = "0.4.3"
prost = "0.13"
prost-build = "0.13"
prost-types = "0.13"
substreams = "0.6"
substreams-near = { version = "0.10.2", path = "./substreams-near" }
substreams-near-core = { version = "0.10.2", path = "./core" }
21 changes: 21 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Release Process

### Instructions

Requires `Bash`, [sfreleaser](https://github.com/streamingfast/sfreleaser) and [sd](https://github.com/chmln/sd):

```bash
# *Important* Do not forget to replace `0.10.2` below by your real version!
export version="0.10.2"

sd '^version = ".*?"$' "version = \"${version}\"" Cargo.toml
sd 'version = ".*?",' "version = \"${version}\"," Cargo.toml
sd '## Unreleased' "## ${version}" CHANGELOG.md

# Important so that Cargo.lock is updated and you "test
cargo test --target aarch64-apple-darwin # Change 'aarch64-apple-darwin' to fit your own platform!

git add -A . && git commit -m "Preparing release of ${version}"

sfreleaser release "v${version}"
```
12 changes: 6 additions & 6 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ categories.workspace = true
rust-version.workspace = true

[dependencies]
prost = { version = "0.13" }
prost-types = "0.13"
bs58 = "0.4.0"
hex = "0.4.3"
bs58 = { workspace = true }
hex = { workspace = true }
prost = { workspace = true }
prost-types = { workspace = true }

[build-dependencies]
prost-build = "0.13"
prost-build = { workspace = true }

[dev-dependencies]
anyhow = "1"
anyhow = { workspace = true }

[target.wasm32-unknown-unknown.dependencies]
getrandom = { version = "0.2", features = ["custom"] }
11 changes: 4 additions & 7 deletions core/src/block_view.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{pb::sf::near::r#type::v1 as pb};
use crate::pb::sf::near::r#type::v1 as pb;
use hex;

impl pb::Block {
Expand All @@ -10,11 +10,9 @@ impl pb::Block {

pub fn hash(&self) -> Option<String> {
match &self.header {
Some(header) => {
match &header.hash {
Some(hash) => Some(hex::encode(&hash.bytes)),
None => None,
}
Some(header) => match &header.hash {
Some(hash) => Some(hex::encode(&hash.bytes)),
None => None,
},
None => None,
}
Expand All @@ -30,4 +28,3 @@ impl AsRef<Vec<pb::StateChangeWithCause>> for StateChangesView<'_> {
self.state_changes
}
}

6 changes: 3 additions & 3 deletions substreams-near/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ categories.workspace = true
rust-version.workspace = true

[dependencies]
substreams = "^0.6.0"
substreams-near-core = { version = "0.10.0", path = "../core" }
substreams = { workspace = true }
substreams-near-core = { workspace = true }

[target.wasm32-unknown-unknown.dependencies]
getrandom = { version = "0.2", features = ["custom"] }

[dev-dependencies]
anyhow = "1"
anyhow = { workspace = true }
2 changes: 1 addition & 1 deletion substreams-near/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub use substreams_near_core::{block_view, pb};
pub use substreams_near_core::{block_view, pb};

0 comments on commit 07bc20b

Please sign in to comment.