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

Mark the V1 client as deprecated. #120

Merged
merged 2 commits into from
Aug 21, 2023
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
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased changes

## 3.0.0

- The SDK requires node version 6 or later.
- Support relative and absolute block height as the block identifier in block queries.
- Add field `protocol_version` to `BlockInfo` which is the protocol version of the queried block.
Expand All @@ -18,6 +20,7 @@
- Add a `Cis4Contract` for interacting with Cis4 contracts.
- Add a new `web3id` module that contains types and functionality for
construcing Web3ID credentials and verifying Web3ID proofs.
- Deprecate the client for V1 of the node's API.

### Breaking changes in types
- `ConsensusInfo`
Expand All @@ -33,8 +36,6 @@
- Add `timeout_parameters`, `min_block_time`, `block_energy_limit`, and
`finalization_committee_parameters` sequence numbers.



## 2.4.0

- Re-export `concordium_base` to enable use of `concordium_base_derive`
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ num-traits = "0.2"
tokio-postgres = { version = "^0.7.8", features = ["with-serde_json-1"], optional = true }
http = "0.2"

concordium_base = { version = "2.0", path = "./concordium-base/rust-src/concordium_base/", features = ["encryption"] }
concordium-smart-contract-engine = { version = "2.0", path = "./concordium-base/smart-contracts/wasm-chain-integration/", default-features = false, features = ["async"]}
concordium_base = { version = "3.0", path = "./concordium-base/rust-src/concordium_base/", features = ["encryption"] }
concordium-smart-contract-engine = { version = "3.0", path = "./concordium-base/smart-contracts/wasm-chain-integration/", default-features = false, features = ["async"]}
aes-gcm = { version = "0.10", features = ["std"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion concordium-base
Submodule concordium-base updated 68 files
+4 −1 concordium-base.cabal
+1 −1 concordium-contracts-common
+1 −1 concordium-grpc-api
+87 −0 haskell-src/Concordium/GRPC2.hs
+9 −0 haskell-src/Concordium/Types/Accounts.hs
+65 −1 haskell-src/Concordium/Types/Queries.hs
+135 −0 haskell-src/Concordium/Types/Queries/KonsensusV1.hs
+86 −0 haskell-src/Concordium/Utils/InterpolationSearch.hs
+181 −0 haskell-tests/ConcordiumTests/Utils/InterpolationSearch.hs
+3 −3 identity-provider-service/Cargo.lock
+3 −3 idiss/Cargo.lock
+1 −1 idiss/Cargo.toml
+3 −3 mobile_wallet/Cargo.lock
+2 −2 mobile_wallet/Cargo.toml
+4 −0 rust-bins/CHANGELOG.md
+4 −4 rust-bins/Cargo.lock
+1 −1 rust-bins/Cargo.toml
+5 −5 rust-bins/docs/identity-provider-cli.md
+3 −3 rust-bins/docs/user-cli.md
+0 −4 rust-bins/src/bin/user_cli.rs
+3 −3 rust-src/Cargo.lock
+9 −0 rust-src/concordium_base/CHANGELOG.md
+3 −3 rust-src/concordium_base/Cargo.toml
+5 −5 rust-src/concordium_base/benches/aggr_dlog_commit_message.rs
+1 −1 rust-src/concordium_base/src/aggregate_sig/ffi.rs
+2 −2 rust-src/concordium_base/src/aggregate_sig/mod.rs
+130 −1 rust-src/concordium_base/src/bulletproofs/range_proof.rs
+3 −1 rust-src/concordium_base/src/cis4_types.rs
+11 −0 rust-src/concordium_base/src/common/impls.rs
+0 −68 rust-src/concordium_base/src/curve_arithmetic/bls12_381_instance.rs
+0 −7 rust-src/concordium_base/src/curve_arithmetic/mod.rs
+14 −7 rust-src/concordium_base/src/eddsa_ed25519/dlog_ed25519.rs
+3 −6 rust-src/concordium_base/src/encrypted_transfers/proofs/generate_proofs.rs
+0 −7 rust-src/concordium_base/src/encrypted_transfers/proofs/mod.rs
+3 −4 rust-src/concordium_base/src/encrypted_transfers/types.rs
+21 −26 rust-src/concordium_base/src/id/account_holder.rs
+21 −22 rust-src/concordium_base/src/id/chain.rs
+3 −2 rust-src/concordium_base/src/id/id_proof_types.rs
+8 −49 rust-src/concordium_base/src/id/id_prover.rs
+5 −42 rust-src/concordium_base/src/id/id_verifier.rs
+33 −38 rust-src/concordium_base/src/id/identity_provider.rs
+0 −1 rust-src/concordium_base/src/id/mod.rs
+28 −30 rust-src/concordium_base/src/id/types.rs
+3 −1 rust-src/concordium_base/src/id/utils.rs
+1 −0 rust-src/concordium_base/src/lib.rs
+31 −30 rust-src/concordium_base/src/sigma_protocols/aggregate_dlog.rs
+26 −24 rust-src/concordium_base/src/sigma_protocols/com_enc_eq.rs
+25 −23 rust-src/concordium_base/src/sigma_protocols/com_eq.rs
+25 −25 rust-src/concordium_base/src/sigma_protocols/com_eq_different_groups.rs
+45 −45 rust-src/concordium_base/src/sigma_protocols/com_eq_sig.rs
+24 −24 rust-src/concordium_base/src/sigma_protocols/com_ineq.rs
+16 −15 rust-src/concordium_base/src/sigma_protocols/com_lin.rs
+22 −21 rust-src/concordium_base/src/sigma_protocols/com_mult.rs
+85 −75 rust-src/concordium_base/src/sigma_protocols/common.rs
+29 −28 rust-src/concordium_base/src/sigma_protocols/dlog.rs
+29 −29 rust-src/concordium_base/src/sigma_protocols/dlogaggequal.rs
+12 −12 rust-src/concordium_base/src/sigma_protocols/dlogeq.rs
+64 −63 rust-src/concordium_base/src/sigma_protocols/enc_trans.rs
+6 −0 rust-src/concordium_base/src/sigma_protocols/mod.rs
+1 −1 rust-src/concordium_base/src/sigma_protocols/sigma_test.rs
+20 −19 rust-src/concordium_base/src/sigma_protocols/vcom_eq.rs
+70 −8 rust-src/concordium_base/src/web3id/mod.rs
+2 −1 smart-contracts/wasm-chain-integration/CHANGELOG.md
+4 −4 smart-contracts/wasm-chain-integration/Cargo.lock
+3 −3 smart-contracts/wasm-chain-integration/Cargo.toml
+3 −3 smart-contracts/wasm-test/Cargo.lock
+2 −0 smart-contracts/wasm-transform/CHANGELOG.md
+2 −2 smart-contracts/wasm-transform/Cargo.toml
1 change: 1 addition & 0 deletions examples/balance-summary.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List accounts with the most liquid balance, and total stake, total amount,
//! and total liquid amount of accounts. Additionally list contracts with at
//! most CCD owned.
Expand Down
1 change: 1 addition & 0 deletions examples/basic-test.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
use anyhow::Context;
use clap::AppSettings;
use concordium_rust_sdk::{
Expand Down
1 change: 1 addition & 0 deletions examples/collisions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! A simple script to check how many bytes in an address are needed to
//! distinguish accounts. The script gets the account list from the node.
use clap::AppSettings;
Expand Down
1 change: 1 addition & 0 deletions examples/create-initial-accounts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Generate initial account transactions and send them to the chain.
//! Generated account keys are stored in the `created-accounts` directory.
use anyhow::Context;
Expand Down
1 change: 1 addition & 0 deletions examples/init-update-contract.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Basic example that shows how to initialize and update a smart contract.
//!
//! In particular, it uses the "weather" contract which is part of the
Expand Down
1 change: 1 addition & 0 deletions examples/list-account-balances.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List accounts and their balances ordered by decreasing CCD amount in a CSV
//! file.
use anyhow::Context;
Expand Down
1 change: 1 addition & 0 deletions examples/list-account-creations.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List all account creations in a given time span.
use anyhow::Context;
use clap::AppSettings;
Expand Down
1 change: 1 addition & 0 deletions examples/list-all-transactions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List account transactions in a given time span. Either all, or
//! just the specified types.
use anyhow::Context;
Expand Down
3 changes: 2 additions & 1 deletion examples/list-initial-accounts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List initial accounts created between two given timestamps.
use anyhow::Context;
use clap::AppSettings;
Expand Down Expand Up @@ -140,7 +141,7 @@ async fn main() -> anyhow::Result<()> {
let accounts = client.get_account_list(&end_block.block_hash).await?;

for accs in accounts.chunks(app.num) {
let mut handles = Vec::with_capacity(app.num as usize);
let mut handles = Vec::with_capacity(app.num);
for &acc in accs {
let mut client = client.clone();
let block = end_block.block_hash;
Expand Down
2 changes: 1 addition & 1 deletion examples/protocol-updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async fn main() -> anyhow::Result<()> {
println!("{}", serde_json::to_string_pretty(&params_p4).unwrap());
println!("{}", base16_encode_string(&params_p4));
{
std::fs::write("p4-payload.bin", &to_bytes(&params_p4))?;
std::fs::write("p4-payload.bin", to_bytes(&params_p4))?;
}

let p4 = ProtocolUpdate {
Expand Down
1 change: 1 addition & 0 deletions examples/send-transfer.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Basic example that shows how to send a transaction, in this case a transfer
//! from the account to itself.
use anyhow::Context;
Expand Down
1 change: 1 addition & 0 deletions examples/total-stake.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! List total equity, total delegated stake, and effective stake.
use clap::AppSettings;
use concordium_rust_sdk::{
Expand Down
1 change: 1 addition & 0 deletions examples/transfer-to-accounts.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Send a given amount of CCD to the account listed in a provided file.
//! The file format should be one account address per line.
use anyhow::Context;
Expand Down
1 change: 1 addition & 0 deletions examples/update-exchange-rate.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! An example showing how to do a simple update of the exchange rate between
//! CCD and EUR.
use anyhow::Context;
Expand Down
1 change: 1 addition & 0 deletions examples/v2_traverse_all_transactions.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
//! Traverse all transactions on the chain from a given block backwards.
//! This is mainly used to test integration and compatibility of the SDK with
//! the node.
Expand Down
2 changes: 2 additions & 0 deletions src/endpoints.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(deprecated)]
use crate::{
constants::DEFAULT_NETWORK_ID,
generated_types::{
Expand Down Expand Up @@ -154,6 +155,7 @@ pub enum BlocksAtHeightInput {
}

#[derive(Debug, Clone)]
#[deprecated(note = "Use the v2 [`Client`](../v2/struct.Client.html) instead.")]
/// Client that can perform queries.
/// All endpoints take a `&mut self` as an argument which means that a single
/// instance cannot be used concurrently. However instead of putting the Client
Expand Down
Loading