Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: updates near-* dependencies to 0.28 release #392

Merged
merged 4 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @dj8yfo @akorchyn @PolyProgrammist
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ anyhow = "1.0"
maplit = "1.0"
near-units = "0.2.0"
near-gas = { version = "0.3", features = ["serde", "borsh", "schemars"] }
near-jsonrpc-primitives = "0.27"
near-primitives = "0.27"
near-jsonrpc-primitives = "0.28"
near-primitives = "0.28"
serde = "1.0"
serde_with = "3.4"
serde_json = { version = "1.0" }
Expand Down
2 changes: 1 addition & 1 deletion examples/noop-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
near-sdk = "5.6.0"
near-sdk = "5.7.0"

[profile.release]
codegen-units = 1
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-contract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
near-sdk = "5.6.0"
near-sdk = "5.7.0"

[profile.release]
codegen-units = 1
Expand Down
18 changes: 9 additions & 9 deletions workspaces/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,25 @@ url = { version = "2.2.2", features = ["serde"] }
near-abi-client = "0.1.1"
near-gas = { version = "0.3", features = ["serde", "borsh", "schemars"] }
near-token = { version = "0.3", features = ["serde"] }
near-sdk = { version = "5.6", optional = true }
near-sdk = { version = "5.7", optional = true }
near-account-id = "1.0.0"
near-crypto = "0.27"
near-primitives = "0.27"
near-jsonrpc-primitives = "0.27"
near-jsonrpc-client = { version = "0.14", features = ["sandbox"] }
near-sandbox-utils = "0.12"
near-chain-configs = { version = "0.27", optional = true }
near-crypto = "0.28"
near-primitives = "0.28"
near-jsonrpc-primitives = "0.28"
near-jsonrpc-client = { version = "0.15", features = ["sandbox"] }
near-sandbox-utils = "0.13"
near-chain-configs = { version = "0.28", optional = true }

[build-dependencies]
near-sandbox-utils = "0.12"
near-sandbox-utils = "0.13"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

[dev-dependencies]
anyhow = "1.0"
futures = "0.3"
near-sdk = "5.6"
near-sdk = "5.7"
test-log = { version = "0.2.8", default-features = false, features = ["trace"] }
tracing-subscriber = { version = "0.3.5", features = ["env-filter"] }

Expand Down
8 changes: 4 additions & 4 deletions workspaces/src/rpc/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<'a, T> Query<'a, T> {
}

// Constrained to RpcQueryRequest, since methods like GasPrice only take block_id but not Finality.
impl<'a, T> Query<'a, T>
impl<T> Query<'_, T>
where
T: ProcessQuery<Method = methods::query::RpcQueryRequest>,
{
Expand Down Expand Up @@ -428,7 +428,7 @@ impl<'a> QueryChunk<'a> {
pub fn block_hash_and_shard(mut self, hash: CryptoHash, shard_id: ShardId) -> Self {
self.chunk_ref = Some(ChunkReference::BlockShardId {
block_id: BlockId::Hash(near_primitives::hash::CryptoHash(hash.0)),
shard_id,
shard_id: shard_id.into(),
});
self
}
Expand All @@ -439,7 +439,7 @@ impl<'a> QueryChunk<'a> {
pub fn block_height_and_shard(mut self, height: BlockHeight, shard_id: ShardId) -> Self {
self.chunk_ref = Some(ChunkReference::BlockShardId {
block_id: BlockId::Height(height),
shard_id,
shard_id: shard_id.into(),
});
self
}
Expand Down Expand Up @@ -467,7 +467,7 @@ impl<'a> std::future::IntoFuture for QueryChunk<'a> {
let block_view = self.client.view_block(None).await?;
ChunkReference::BlockShardId {
block_id: BlockId::Hash(block_view.header.hash),
shard_id: 0,
shard_id: 0.into(),
}
};

Expand Down
2 changes: 1 addition & 1 deletion workspaces/src/types/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl From<ChunkHeaderView> for ChunkHeader {
prev_block_hash: view.prev_block_hash.into(),
height_created: view.height_created,
height_included: view.height_included,
shard_id: view.shard_id,
shard_id: view.shard_id.into(),
gas_used: NearGas::from_gas(view.gas_used),
gas_limit: NearGas::from_gas(view.gas_limit),
balance_burnt: NearToken::from_yoctonear(view.balance_burnt),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
near-sdk = "5.6.0"
near-sdk = "5.7.0"

[profile.release]
codegen-units = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]

[dependencies]
bs58 = "0.5"
near-sdk = "5.6.0"
near-sdk = "5.7.0"

[profile.release]
codegen-units = 1
Expand Down
Loading