From ffb7951242492b2b2c7eec8421a1b7cd11750401 Mon Sep 17 00:00:00 2001 From: levischechter <35228498+levischechter@users.noreply.github.com> Date: Mon, 13 May 2024 15:34:52 +0300 Subject: [PATCH 1/5] upgrade http --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 1d856923..d7da2bd4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: fixnum: ^1.0.0 grpc: ^3.0.0 hex: ^0.2.0 - http: ^0.13.0 + http: ^1.2.0 json_annotation: ^4.4.0 json_serializable: ^6.2.0 meta: ^1.3.0 From 3df1c82cd089010ebbe2ca75e5e03f938a47fd60 Mon Sep 17 00:00:00 2001 From: levischechter <35228498+levischechter@users.noreply.github.com> Date: Wed, 15 May 2024 12:58:31 +0300 Subject: [PATCH 2/5] upgrade sdk version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index d7da2bd4..49055889 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: Pure Dart library to easily integrate with any Cosmos-based chain. version: 0.41.4+1 homepage: https://github.com/alan-sdk/alan.dart environment: - sdk: ">=2.12.0 <3.0.0" + sdk: ">=3.2.0 <4.0.0" dependencies: analyzer: ^5.12.0 From 4d46a2286536a07e088fb6f687b1aef615415f85 Mon Sep 17 00:00:00 2001 From: levischechter <35228498+levischechter@users.noreply.github.com> Date: Wed, 15 May 2024 13:00:51 +0300 Subject: [PATCH 3/5] update workflows sdk version --- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8259ea38..02753374 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: if: env.GIT_DIFF uses: dart-lang/setup-dart@v1.4 with: - sdk: 3.0.0 + sdk: 3.2.0 - name: Get dependencies 📥 if: env.GIT_DIFF diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d869e221..21feadfb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Setup 🔨 uses: dart-lang/setup-dart@v1.4 with: - sdk: 3.0.0 + sdk: 3.2.0 - name: Get dependencies 📥 run: dart pub get diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dc2f150..d1ceef96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - name: Setup 🔨 uses: dart-lang/setup-dart@v1.4 with: - sdk: 3.0.0 + sdk: 3.2.0 - name: Get dependencies 📥 run: dart pub get From 6bc29f06ece14516eec826e85643619ad91ac6ef Mon Sep 17 00:00:00 2001 From: levischechter <35228498+levischechter@users.noreply.github.com> Date: Wed, 15 May 2024 13:26:59 +0300 Subject: [PATCH 4/5] override watcher so it won't break the test --- pubspec.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pubspec.yaml b/pubspec.yaml index 49055889..a3f783a7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -28,3 +28,6 @@ dev_dependencies: mock_web_server: ^5.0.0-nullsafety.1 test: ^1.16.8 lints: ^2.1.0 + +dependency_overrides: + watcher: ^1.1.0 From 42b790494083c0bbefda83f77f095cac22d30aac Mon Sep 17 00:00:00 2001 From: levi Date: Wed, 15 May 2024 13:40:20 +0300 Subject: [PATCH 5/5] formatting --- .../send/tx_sender_test.mocks.dart | 12 ++++++---- test/x/node/querier_test.mocks.dart | 24 +++++++++++-------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/test/transactions/send/tx_sender_test.mocks.dart b/test/transactions/send/tx_sender_test.mocks.dart index 829155b3..f906c74b 100644 --- a/test/transactions/send/tx_sender_test.mocks.dart +++ b/test/transactions/send/tx_sender_test.mocks.dart @@ -72,11 +72,13 @@ class MockServiceClient extends _i1.Mock implements _i4.ServiceClient { _i2.ResponseFuture<_i5.GetBlockWithTxsResponse> getBlockWithTxs( _i5.GetBlockWithTxsRequest? request, {_i2.CallOptions? options}) => - (super.noSuchMethod( - Invocation.method(#getBlockWithTxs, [request], {#options: options}), - returnValue: - _FakeResponseFuture_0<_i5.GetBlockWithTxsResponse>()) as _i2 - .ResponseFuture<_i5.GetBlockWithTxsResponse>); + (super + .noSuchMethod( + Invocation.method( + #getBlockWithTxs, [request], {#options: options}), + returnValue: + _FakeResponseFuture_0<_i5.GetBlockWithTxsResponse>()) + as _i2.ResponseFuture<_i5.GetBlockWithTxsResponse>); @override _i3.ClientCall $createCall( _i2.ClientMethod? method, _i6.Stream? requests, diff --git a/test/x/node/querier_test.mocks.dart b/test/x/node/querier_test.mocks.dart index 30f2bdff..9715c15e 100644 --- a/test/x/node/querier_test.mocks.dart +++ b/test/x/node/querier_test.mocks.dart @@ -58,20 +58,24 @@ class MockServiceClient extends _i1.Mock implements _i4.ServiceClient { _i2.ResponseFuture<_i5.GetLatestBlockResponse> getLatestBlock( _i5.GetLatestBlockRequest? request, {_i2.CallOptions? options}) => - (super.noSuchMethod( - Invocation.method(#getLatestBlock, [request], {#options: options}), - returnValue: - _FakeResponseFuture_0<_i5.GetLatestBlockResponse>()) as _i2 - .ResponseFuture<_i5.GetLatestBlockResponse>); + (super + .noSuchMethod( + Invocation.method( + #getLatestBlock, [request], {#options: options}), + returnValue: + _FakeResponseFuture_0<_i5.GetLatestBlockResponse>()) + as _i2.ResponseFuture<_i5.GetLatestBlockResponse>); @override _i2.ResponseFuture<_i5.GetBlockByHeightResponse> getBlockByHeight( _i5.GetBlockByHeightRequest? request, {_i2.CallOptions? options}) => - (super.noSuchMethod( - Invocation.method(#getBlockByHeight, [request], {#options: options}), - returnValue: - _FakeResponseFuture_0<_i5.GetBlockByHeightResponse>()) as _i2 - .ResponseFuture<_i5.GetBlockByHeightResponse>); + (super + .noSuchMethod( + Invocation.method( + #getBlockByHeight, [request], {#options: options}), + returnValue: + _FakeResponseFuture_0<_i5.GetBlockByHeightResponse>()) + as _i2.ResponseFuture<_i5.GetBlockByHeightResponse>); @override _i2.ResponseFuture<_i5.GetLatestValidatorSetResponse> getLatestValidatorSet( _i5.GetLatestValidatorSetRequest? request,