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

feat: wasm sdk build proof-of-concept #2405

Merged
merged 47 commits into from
Feb 21, 2025
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
9b94e8e
build: update wasm-bindgen-cli to 0.2.99
lklimek Dec 17, 2024
a27cdb3
build: bump wasm-bindgen-futures to 0.4.49
lklimek Dec 17, 2024
7475b09
chore(wasm-dpp): fix build
lklimek Dec 17, 2024
068a6fb
chore: dapi-grpc wasm feature
lklimek Dec 19, 2024
3f3f76d
chore: WIP
lklimek Dec 20, 2024
cc1b069
chore: some tests
lklimek Dec 20, 2024
7243de5
chore: experiments
shumkov Jan 2, 2025
c833fb0
chore: fix build issues
lklimek Jan 2, 2025
815a364
feat(wasm-sdk): wasm_channel working on browser
lklimek Jan 2, 2025
aa9ecf8
feat: fetch identity in browser
lklimek Jan 3, 2025
1d3fe75
chore: update quorum keys
lklimek Jan 6, 2025
f6df953
chore: demo fetching contract and identity
shumkov Jan 7, 2025
971c7d2
Merge branch 'v1.8-dev' into feat/wasm-dapi-sdk-client
shumkov Jan 7, 2025
4567c60
chore(wasm): expose more code as bindings
lklimek Jan 8, 2025
0a34d38
deps: rs-tenderdash abci from revision
lklimek Jan 8, 2025
d75387b
Merge remote-tracking branch 'origin/feat/wasm-dapi-sdk-client' into …
shumkov Jan 13, 2025
0417b33
build(dpp): add optimization flags to dpp wasm build script
shumkov Jan 13, 2025
d7c1ebf
deps: change rs-tenderdash-abci version
lklimek Jan 13, 2025
e243d9e
chore: fix build
lklimek Jan 13, 2025
eb29ae9
Merge remote-tracking branch 'origin/feat/wasm-dapi-sdk-client' into …
lklimek Jan 13, 2025
1471068
refactor: replace wasm feature with target_arch
lklimek Jan 13, 2025
fbf6309
chore: remove wasm feature, continued
lklimek Jan 13, 2025
4d4c6a0
chore: replace deprecated FromMilis/ToMilis
lklimek Jan 13, 2025
9df8371
chore(drive-abci): fix build
lklimek Jan 13, 2025
6cb9d19
chore: fix rs-dapi-client build
lklimek Jan 13, 2025
e315a77
Merge remote-tracking branch 'origin/v1.8-dev' into feat/wasm-sdk-poc2
lklimek Jan 13, 2025
f594438
chore: exclude wasm-sdk from cargo.toml
lklimek Jan 13, 2025
cdccee5
chore(drive-abci): fix build and tests
lklimek Jan 13, 2025
96899b5
chore(dpp): fix dpp build with no features
lklimek Jan 13, 2025
5147a41
chore: minor refactor
lklimek Jan 13, 2025
af2a843
Merge remote-tracking branch 'origin/v2.0-dev' into feat/wasm-sdk-poc
lklimek Jan 22, 2025
7b9cac4
chore: fix build error
lklimek Jan 22, 2025
b06ddce
revert(dpp): changes in from_document break tests
lklimek Jan 22, 2025
514e723
revert(dpp): rs-dpp/schema is needed for js packages tests
lklimek Jan 22, 2025
2336773
chore(wasm-sdk): cargo.toml fixes
lklimek Jan 22, 2025
e7213a7
chore: code rabbit review
lklimek Jan 23, 2025
8993532
chore(rs-dapi-client): fix rs-dapi-client tests
lklimek Jan 23, 2025
444014f
fix(dapi-grpc): wasm32 code not generated
lklimek Feb 7, 2025
00239e9
chore: re-enable bls in wasm
lklimek Feb 10, 2025
977d6e0
Merge branch 'v2.0-dev' into feat/wasm-sdk-poc
lklimek Feb 18, 2025
70d9192
fix(dpp): build fails with no-default-features
lklimek Feb 18, 2025
3230757
build: update rs-tenderdash-abci to 1.3.0
lklimek Feb 18, 2025
ab11c4a
Revert "fix(dpp): build fails with no-default-features"
lklimek Feb 18, 2025
889ec67
Merge remote-tracking branch 'origin/v2.0-dev' into feat/wasm-sdk-poc
lklimek Feb 18, 2025
1dcef33
build: update Cargo.lock
lklimek Feb 18, 2025
7f443e0
Merge branch 'v2.0-dev' into feat/wasm-sdk-poc
lklimek Feb 19, 2025
4d5d21d
Merge branch 'v2.0-dev' into feat/wasm-sdk-poc
lklimek Feb 20, 2025
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
Prev Previous commit
Next Next commit
chore: fix build
  • Loading branch information
lklimek committed Jan 13, 2025
commit e243d9e561b3c0247bff32282984ff71c118343f
8 changes: 4 additions & 4 deletions packages/rs-dapi-client/src/transport/tonic_channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{request_settings::AppliedRequestSettings, RequestSettings, Uri};
use dapi_grpc::core::v0::core_client::CoreClient;
use dapi_grpc::core::v0::{self as core_proto};
use dapi_grpc::platform::v0::{self as platform_proto, platform_client::PlatformClient};
use dapi_grpc::tonic::transport::{Certificate, Channel, ClientTlsConfig, Uri};
use dapi_grpc::tonic::transport::{Certificate, Channel, ClientTlsConfig};
use dapi_grpc::tonic::{IntoRequest, Streaming};
use futures::{future::BoxFuture, FutureExt, TryFutureExt};

Expand All @@ -17,16 +17,16 @@ pub type CoreGrpcClient = CoreClient<Channel>;

/// backon::Sleeper
#[derive(Default, Clone, Debug)]
pub(crate) struct Sleeper(backon::TokioSleeper);
pub(crate) struct BackonSleeper(backon::TokioSleeper);

impl backon::Sleeper for Sleeper {
type Sleep = backon::TokioSleeper::Sleep;
type Sleep = <backon::TokioSleeper as backon::Sleeper>::Sleep;
fn sleep(&self, dur: Duration) -> Self::Sleep {
self.0.sleep(dur)
}
}

fn create_channel(
pub(super) fn create_channel(
uri: Uri,
settings: Option<&AppliedRequestSettings>,
) -> Result<Channel, TransportError> {
Expand Down