Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
DogLooksGood committed Nov 22, 2023
1 parent fabcf36 commit 5c8ec51
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 38 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ Race Protocol: A multi-chain infrastructure for asymmetric competitive games

# Master(Unreleased)

# 0.2.4

## Features
- SDK: Add `npx borsh-serialize` to js/borsh.

Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ members = [
]

[workspace.dependencies]
race-api = { path = "api", version = ">=0.2.3" }
race-proc-macro = { path = "proc-macro", version = ">=0.2.3" }
race-core = { path = "core", version = ">=0.2.3" }
race-client = { path = "client", version = ">=0.2.3" }
race-encryptor = { path = "encryptor", version = ">=0.2.3" }
race-test = { path = "test", version = ">=0.2.3" }
race-api = { path = "api", version = ">=0.2.4" }
race-proc-macro = { path = "proc-macro", version = ">=0.2.4" }
race-core = { path = "core", version = ">=0.2.4" }
race-client = { path = "client", version = ">=0.2.4" }
race-encryptor = { path = "encryptor", version = ">=0.2.4" }
race-test = { path = "test", version = ">=0.2.4" }
race-env = { path = "env", version = "*" }
race-transport = { path = "transport", version = "*" }
uuid = { version = "1.1.2", features = ["v4", "fast-rng"] }
Expand Down Expand Up @@ -78,7 +78,7 @@ regex = "1"

[workspace.package]
authors = ["RACE Foundation <race.game.team@gmail.com>"]
version = "0.2.3"
version = "0.2.4"
edition = "2021"
rust-version = "1.65.0"
license = "MPL-2.0"
Expand Down
4 changes: 2 additions & 2 deletions js/borsh/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/borsh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@race-foundation/borsh",
"version": "0.2.3",
"version": "0.2.4",
"description": "A borsh implementation with decorator support",
"repository": {
"type": "git",
Expand Down
8 changes: 4 additions & 4 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/sdk-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/sdk-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@race-foundation/sdk-core",
"version": "0.2.3",
"version": "0.2.4",
"description": "The type definitions for Race SDK",
"scripts": {
"test": "jest",
Expand Down
2 changes: 1 addition & 1 deletion js/sdk-facade/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@race-foundation/sdk-facade",
"version": "0.2.3",
"version": "0.2.4",
"description": "The Facade integration for Race SDK",
"main": "lib/cjs/index.ts",
"module": "lib/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions js/sdk-solana/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/sdk-solana/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@race-foundation/sdk-solana",
"version": "0.2.3",
"version": "0.2.4",
"description": "The Solana support for Race SDK",
"scripts": {
"test": "jest",
Expand Down
4 changes: 4 additions & 0 deletions test/src/transport_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ mod tests {
settles: settles.clone(),
transfers: vec![],
checkpoint: vec![],
settle_version: 0,
next_settle_version: 1,
};
transport.settle_game(params.clone()).await.unwrap();
transport.settle_game(params.clone()).await.unwrap();
Expand All @@ -255,6 +257,8 @@ mod tests {
settles: vec![],
transfers: vec![],
checkpoint: vec![],
settle_version: 0,
next_settle_version: 1,
};
assert_eq!(transport.settle_game(params).await.is_err(), true);
}
Expand Down
8 changes: 4 additions & 4 deletions transactor/src/component/wrapped_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use race_core::connection::ConnectionT;
use race_core::encryptor::EncryptorT;
use race_core::transport::TransportT;
use race_core::types::{ClientMode, GameAccount, ServerAccount};
use tracing::{info, warn};
use tracing::warn;

use super::event_bus::CloseReason;

Expand Down Expand Up @@ -71,7 +71,7 @@ impl Component<ConsumerPorts, ClientContext> for WrappedClient {
"Client"
}

async fn run(mut ports: ConsumerPorts, ctx: ClientContext) -> CloseReason{
async fn run(mut ports: ConsumerPorts, ctx: ClientContext) -> CloseReason {
let ClientContext {
addr,
game_addr,
Expand Down Expand Up @@ -117,16 +117,16 @@ impl Component<ConsumerPorts, ClientContext> for WrappedClient {
return match res {
Ok(()) => CloseReason::Complete,
Err(e) => CloseReason::Fault(e),
}
};
}
}

#[cfg(test)]
mod tests {

use race_test::prelude::*;
use race_api::prelude::*;
use race_encryptor::Encryptor;
use race_test::prelude::*;

use crate::component::common::PortsHandle;

Expand Down
2 changes: 0 additions & 2 deletions transactor/src/component/wrapped_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ mod tests {

#[tokio::test]
async fn test_settle_without_retry() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let t = DummyTransport::default();
let ga0 = TestGameAccountBuilder::new().build();
let mut ga1 = TestGameAccountBuilder::new().build();
Expand All @@ -192,7 +191,6 @@ mod tests {

#[tokio::test]
async fn test_settle_with_retry() -> anyhow::Result<()> {
tracing_subscriber::fmt::init();
let mut t = DummyTransport::default();
t.fail_next_settle();
let ga0 = TestGameAccountBuilder::new().build();
Expand Down

0 comments on commit 5c8ec51

Please sign in to comment.