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(dependency)!: upgrade http package BREAKING CHANGE: dart sdk must be: >=3.2.0 #203

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
if: env.GIT_DIFF
uses: dart-lang/[email protected]
with:
sdk: 3.0.0
sdk: 3.2.0

- name: Get dependencies 📥
if: env.GIT_DIFF
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup 🔨
uses: dart-lang/[email protected]
with:
sdk: 3.0.0
sdk: 3.2.0

- name: Get dependencies 📥
run: dart pub get
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup 🔨
uses: dart-lang/[email protected]
with:
sdk: 3.0.0
sdk: 3.2.0

- name: Get dependencies 📥
run: dart pub get
Expand Down
7 changes: 5 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
12 changes: 7 additions & 5 deletions test/transactions/send/tx_sender_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<Q, R> $createCall<Q, R>(
_i2.ClientMethod<Q, R>? method, _i6.Stream<Q>? requests,
Expand Down
24 changes: 14 additions & 10 deletions test/x/node/querier_test.mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading