Skip to content

Commit

Permalink
Update local dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Jul 5, 2024
1 parent a5c3c4b commit d5dad71
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 72 deletions.
2 changes: 1 addition & 1 deletion deps/concordium-rust-sdk
Submodule concordium-rust-sdk updated 58 files
+39 −34 .github/workflows/build-and-test.yaml
+97 −3 CHANGELOG.md
+18 −12 Cargo.toml
+1 −1 README.md
+1 −10 build.rs
+1 −1 concordium-base
+20 −19 examples/balance-summary.rs
+0 −93 examples/basic-test.rs
+17 −4 examples/block-stats.rs
+11 −8 examples/collisions.rs
+11 −5 examples/create-initial-accounts.rs
+50 −53 examples/init-update-contract.rs
+23 −17 examples/list-account-balances.rs
+39 −101 examples/list-account-creations.rs
+39 −101 examples/list-all-transactions.rs
+30 −56 examples/list-initial-accounts.rs
+35 −56 examples/list-number-account-transactions.rs
+23 −13 examples/protocol-updates.rs
+8 −9 examples/send-transfer.rs
+11 −26 examples/total-stake.rs
+158 −0 examples/transfer-indexer.rs
+8 −9 examples/transfer-to-accounts.rs
+15 −34 examples/update-exchange-rate.rs
+2 −2 examples/v2_banpeers.rs
+11 −5 examples/v2_contract_deploy_init_update.rs
+2 −0 examples/v2_create_initial_accounts.rs
+121 −0 examples/v2_dry_run.rs
+36 −0 examples/v2_get_baker_earliest_win_time.rs
+37 −0 examples/v2_get_bakers_reward_period.rs
+36 −0 examples/v2_get_block_certificates.rs
+1 −2 examples/v2_get_block_transaction_events.rs
+34 −0 examples/v2_get_first_block_epoch.rs
+37 −0 examples/v2_get_winning_bakers.rs
+1 −1 examples/v2_invoke_instance.rs
+4 −1 examples/v2_send_encrypted_transfer.rs
+0 −83 examples/v2_traverse_all_transactions.rs
+3 −5 src/cis0.rs
+83 −17 src/cis2/mod.rs
+235 −0 src/cis3.rs
+81 −16 src/cis4.rs
+827 −13 src/contract_client.rs
+4 −948 src/endpoints.rs
+844 −0 src/indexer.rs
+4 −2 src/internal.rs
+6 −8 src/lib.rs
+1 −1 src/postgres.rs
+115 −0 src/types/block_certificates.rs
+623 −77 src/types/mod.rs
+0 −9 src/types/network.rs
+1 −1 src/types/queries.rs
+11 −15 src/types/smart_contracts.rs
+25 −4 src/types/summary_helper.rs
+0 −1,212 src/v1/generated/concordium.rs
+303 −34 src/v2/conversions.rs
+1,238 −0 src/v2/dry_run.rs
+1,336 −172 src/v2/generated/concordium.v2.rs
+346 −23 src/v2/mod.rs
+1 −1 src/v2/proto_schema_version.rs
79 changes: 16 additions & 63 deletions trackAndTrace/sponsored-transaction-service/Cargo.lock

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

4 changes: 2 additions & 2 deletions trackAndTrace/sponsored-transaction-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ chrono = "0.4.19"
thiserror = "1"
rand = "0.8"
hex = "0.4.3"
concordium-rust-sdk = "4.2.0"
concordium-rust-sdk = { path = "../../deps/concordium-rust-sdk/" }
axum = "0.7"
futures = "0.3"
tower-http = { version = "0.5", features = [
Expand All @@ -33,4 +33,4 @@ tower-http = { version = "0.5", features = [
tracing = "0.1"
tracing-subscriber = "0.3"
http = "1.0"
concordium-smart-contract-engine = "5.0.0"
concordium-smart-contract-engine = { path = "../../deps/concordium-rust-sdk/concordium-base/smart-contracts/wasm-chain-integration/" }
19 changes: 13 additions & 6 deletions trackAndTrace/sponsored-transaction-service/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use concordium_rust_sdk::{
},
v2::{BlockIdentifier, Client},
};
use concordium_smart_contract_engine::utils;
use concordium_smart_contract_engine::utils::{self, WasmVersion};
use std::{collections::BTreeMap, path::PathBuf};
use tonic::transport::ClientTlsConfig;
use tower_http::cors::{AllowOrigin, CorsLayer};
Expand Down Expand Up @@ -171,12 +171,19 @@ async fn decode_reject_reason(

let wasm_module = node_client
.get_module_source(&module_reference, BlockIdentifier::LastFinal)
.await?;
.await?
.response;

// TODO: needs to be more general.
let schema =
utils::get_embedded_schema_v1(wasm_module.response.source.as_ref())
.map_err(ServerError::GetEmbeddedSchema)?;
let schema = match wasm_module.version {
WasmVersion::V0 => {
utils::get_embedded_schema_v0(wasm_module.source.as_ref())
.map_err(ServerError::GetEmbeddedSchema)?
}
WasmVersion::V1 => {
utils::get_embedded_schema_v1(wasm_module.source.as_ref())
.map_err(ServerError::GetEmbeddedSchema)?
}
};

// We remove the 'init_' prefix from the contract name.
let contract_name = &contract_name.to_string()[5..];
Expand Down

0 comments on commit d5dad71

Please sign in to comment.