From 2751e6c3c4e1ebe27119856562456c5e1a71849d Mon Sep 17 00:00:00 2001 From: Chralu Date: Tue, 4 Jun 2024 14:38:56 +0200 Subject: [PATCH] Regenerate with build_runner. --- lib/application/oracle/state.g.dart | 2 +- lib/application/session/session.g.dart | 2 +- lib/infrastructure/rpc/dto/rpc_request.g.dart | 2 +- lib/model/blockchain/keychain_secured_infos.g.dart | 6 ++++-- lib/model/keychain_service_keypair.g.dart | 10 ++++++---- lib/model/nft_category.g.dart | 2 +- lib/model/token_transfer_wallet.g.dart | 4 ++-- lib/model/uco_transfer_wallet.g.dart | 2 +- .../layouts/nft_creation_process_sheet.g.dart | 2 +- 9 files changed, 18 insertions(+), 14 deletions(-) diff --git a/lib/application/oracle/state.g.dart b/lib/application/oracle/state.g.dart index b6073d132..d3cc4a2b0 100644 --- a/lib/application/oracle/state.g.dart +++ b/lib/application/oracle/state.g.dart @@ -9,7 +9,7 @@ part of 'state.dart'; _$ArchethicOracleUCOImpl _$$ArchethicOracleUCOImplFromJson( Map json) => _$ArchethicOracleUCOImpl( - timestamp: json['timestamp'] as int? ?? 0, + timestamp: (json['timestamp'] as num?)?.toInt() ?? 0, eur: (json['eur'] as num?)?.toDouble() ?? 0, usd: (json['usd'] as num?)?.toDouble() ?? 0, ); diff --git a/lib/application/session/session.g.dart b/lib/application/session/session.g.dart index 60ecf10ce..1836a77a3 100644 --- a/lib/application/session/session.g.dart +++ b/lib/application/session/session.g.dart @@ -6,7 +6,7 @@ part of 'session.dart'; // RiverpodGenerator // ************************************************************************** -String _$sessionNotifierHash() => r'2fe58ad2a9c849798604b78ee783099031d16cb8'; +String _$sessionNotifierHash() => r'31eedf6ad75a6f6aef9b160270b055c0908c1d95'; /// See also [_SessionNotifier]. @ProviderFor(_SessionNotifier) diff --git a/lib/infrastructure/rpc/dto/rpc_request.g.dart b/lib/infrastructure/rpc/dto/rpc_request.g.dart index 0fc3a26dc..3ad72a581 100644 --- a/lib/infrastructure/rpc/dto/rpc_request.g.dart +++ b/lib/infrastructure/rpc/dto/rpc_request.g.dart @@ -26,7 +26,7 @@ _$RpcRequestImpl _$$RpcRequestImplFromJson(Map json) => _$RpcRequestImpl( origin: RpcRequestOriginDTO.fromJson(json['origin'] as Map), - version: json['version'] as int, + version: (json['version'] as num).toInt(), payload: json['payload'] as Map, ); diff --git a/lib/model/blockchain/keychain_secured_infos.g.dart b/lib/model/blockchain/keychain_secured_infos.g.dart index a95f2f81c..5abee0cf4 100644 --- a/lib/model/blockchain/keychain_secured_infos.g.dart +++ b/lib/model/blockchain/keychain_secured_infos.g.dart @@ -9,8 +9,10 @@ part of 'keychain_secured_infos.dart'; _$KeychainSecuredInfosImpl _$$KeychainSecuredInfosImplFromJson( Map json) => _$KeychainSecuredInfosImpl( - seed: (json['seed'] as List).map((e) => e as int).toList(), - version: json['version'] as int, + seed: (json['seed'] as List) + .map((e) => (e as num).toInt()) + .toList(), + version: (json['version'] as num).toInt(), services: (json['services'] as Map?)?.map( (k, e) => MapEntry( k, diff --git a/lib/model/keychain_service_keypair.g.dart b/lib/model/keychain_service_keypair.g.dart index c6ec40482..beeb3cee9 100644 --- a/lib/model/keychain_service_keypair.g.dart +++ b/lib/model/keychain_service_keypair.g.dart @@ -9,10 +9,12 @@ part of 'keychain_service_keypair.dart'; _$KeychainServiceKeyPairImpl _$$KeychainServiceKeyPairImplFromJson( Map json) => _$KeychainServiceKeyPairImpl( - privateKey: - (json['privateKey'] as List).map((e) => e as int).toList(), - publicKey: - (json['publicKey'] as List).map((e) => e as int).toList(), + privateKey: (json['privateKey'] as List) + .map((e) => (e as num).toInt()) + .toList(), + publicKey: (json['publicKey'] as List) + .map((e) => (e as num).toInt()) + .toList(), ); Map _$$KeychainServiceKeyPairImplToJson( diff --git a/lib/model/nft_category.g.dart b/lib/model/nft_category.g.dart index 210edaffe..15546f3c6 100644 --- a/lib/model/nft_category.g.dart +++ b/lib/model/nft_category.g.dart @@ -8,7 +8,7 @@ part of 'nft_category.dart'; _$NftCategoryImpl _$$NftCategoryImplFromJson(Map json) => _$NftCategoryImpl( - id: json['id'] as int? ?? 0, + id: (json['id'] as num?)?.toInt() ?? 0, name: json['name'] ?? '', ); diff --git a/lib/model/token_transfer_wallet.g.dart b/lib/model/token_transfer_wallet.g.dart index d0bf7493a..81f019fd4 100644 --- a/lib/model/token_transfer_wallet.g.dart +++ b/lib/model/token_transfer_wallet.g.dart @@ -9,10 +9,10 @@ part of 'token_transfer_wallet.dart'; _$TokenTransferWalletImpl _$$TokenTransferWalletImplFromJson( Map json) => _$TokenTransferWalletImpl( - amount: json['amount'] as int?, + amount: (json['amount'] as num?)?.toInt(), to: json['to'] as String?, tokenAddress: json['tokenAddress'] as String?, - tokenId: json['tokenId'] as int?, + tokenId: (json['tokenId'] as num?)?.toInt(), toContactName: json['toContactName'] as String?, ); diff --git a/lib/model/uco_transfer_wallet.g.dart b/lib/model/uco_transfer_wallet.g.dart index 6938aba1f..91184fa8b 100644 --- a/lib/model/uco_transfer_wallet.g.dart +++ b/lib/model/uco_transfer_wallet.g.dart @@ -9,7 +9,7 @@ part of 'uco_transfer_wallet.dart'; _$UCOTransferWalletImpl _$$UCOTransferWalletImplFromJson( Map json) => _$UCOTransferWalletImpl( - amount: json['amount'] as int?, + amount: (json['amount'] as num?)?.toInt(), to: json['to'] as String?, toContactName: json['toContactName'] as String?, ); diff --git a/lib/ui/views/nft_creation/layouts/nft_creation_process_sheet.g.dart b/lib/ui/views/nft_creation/layouts/nft_creation_process_sheet.g.dart index 7dce35cd5..e1d33054e 100644 --- a/lib/ui/views/nft_creation/layouts/nft_creation_process_sheet.g.dart +++ b/lib/ui/views/nft_creation/layouts/nft_creation_process_sheet.g.dart @@ -9,7 +9,7 @@ part of 'nft_creation_process_sheet.dart'; _$NftCreationSheetParamsImpl _$$NftCreationSheetParamsImplFromJson( Map json) => _$NftCreationSheetParamsImpl( - currentNftCategoryIndex: json['currentNftCategoryIndex'] as int, + currentNftCategoryIndex: (json['currentNftCategoryIndex'] as num).toInt(), ); Map _$$NftCreationSheetParamsImplToJson(