Skip to content

Commit

Permalink
✨ WIP - use new secured DApp communications.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chralu committed Oct 15, 2023
1 parent 85e73f5 commit 8b5d137
Show file tree
Hide file tree
Showing 145 changed files with 4,562 additions and 10,312 deletions.
114 changes: 56 additions & 58 deletions lib/application/authentication/authentication.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,25 @@ class _$PasswordAuthenticationStateCopyWithImpl<$Res,
}

/// @nodoc
abstract class _$$PasswordAuthenticationStateImplCopyWith<$Res>
abstract class _$$_PasswordAuthenticationStateCopyWith<$Res>
implements $PasswordAuthenticationStateCopyWith<$Res> {
factory _$$PasswordAuthenticationStateImplCopyWith(
_$PasswordAuthenticationStateImpl value,
$Res Function(_$PasswordAuthenticationStateImpl) then) =
__$$PasswordAuthenticationStateImplCopyWithImpl<$Res>;
factory _$$_PasswordAuthenticationStateCopyWith(
_$_PasswordAuthenticationState value,
$Res Function(_$_PasswordAuthenticationState) then) =
__$$_PasswordAuthenticationStateCopyWithImpl<$Res>;
@override
@useResult
$Res call({int failedAttemptsCount, int maxAttemptsCount});
}

/// @nodoc
class __$$PasswordAuthenticationStateImplCopyWithImpl<$Res>
class __$$_PasswordAuthenticationStateCopyWithImpl<$Res>
extends _$PasswordAuthenticationStateCopyWithImpl<$Res,
_$PasswordAuthenticationStateImpl>
implements _$$PasswordAuthenticationStateImplCopyWith<$Res> {
__$$PasswordAuthenticationStateImplCopyWithImpl(
_$PasswordAuthenticationStateImpl _value,
$Res Function(_$PasswordAuthenticationStateImpl) _then)
_$_PasswordAuthenticationState>
implements _$$_PasswordAuthenticationStateCopyWith<$Res> {
__$$_PasswordAuthenticationStateCopyWithImpl(
_$_PasswordAuthenticationState _value,
$Res Function(_$_PasswordAuthenticationState) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -93,7 +93,7 @@ class __$$PasswordAuthenticationStateImplCopyWithImpl<$Res>
Object? failedAttemptsCount = null,
Object? maxAttemptsCount = null,
}) {
return _then(_$PasswordAuthenticationStateImpl(
return _then(_$_PasswordAuthenticationState(
failedAttemptsCount: null == failedAttemptsCount
? _value.failedAttemptsCount
: failedAttemptsCount // ignore: cast_nullable_to_non_nullable
Expand All @@ -108,8 +108,8 @@ class __$$PasswordAuthenticationStateImplCopyWithImpl<$Res>

/// @nodoc
class _$PasswordAuthenticationStateImpl extends _PasswordAuthenticationState {
const _$PasswordAuthenticationStateImpl(
class _$_PasswordAuthenticationState extends _PasswordAuthenticationState {
const _$_PasswordAuthenticationState(
{required this.failedAttemptsCount, required this.maxAttemptsCount})
: super._();

Expand All @@ -127,7 +127,7 @@ class _$PasswordAuthenticationStateImpl extends _PasswordAuthenticationState {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PasswordAuthenticationStateImpl &&
other is _$_PasswordAuthenticationState &&
(identical(other.failedAttemptsCount, failedAttemptsCount) ||
other.failedAttemptsCount == failedAttemptsCount) &&
(identical(other.maxAttemptsCount, maxAttemptsCount) ||
Expand All @@ -141,16 +141,16 @@ class _$PasswordAuthenticationStateImpl extends _PasswordAuthenticationState {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$PasswordAuthenticationStateImplCopyWith<_$PasswordAuthenticationStateImpl>
get copyWith => __$$PasswordAuthenticationStateImplCopyWithImpl<
_$PasswordAuthenticationStateImpl>(this, _$identity);
_$$_PasswordAuthenticationStateCopyWith<_$_PasswordAuthenticationState>
get copyWith => __$$_PasswordAuthenticationStateCopyWithImpl<
_$_PasswordAuthenticationState>(this, _$identity);
}

abstract class _PasswordAuthenticationState
extends PasswordAuthenticationState {
const factory _PasswordAuthenticationState(
{required final int failedAttemptsCount,
required final int maxAttemptsCount}) = _$PasswordAuthenticationStateImpl;
required final int maxAttemptsCount}) = _$_PasswordAuthenticationState;
const _PasswordAuthenticationState._() : super._();

@override
Expand All @@ -159,7 +159,7 @@ abstract class _PasswordAuthenticationState
int get maxAttemptsCount;
@override
@JsonKey(ignore: true)
_$$PasswordAuthenticationStateImplCopyWith<_$PasswordAuthenticationStateImpl>
_$$_PasswordAuthenticationStateCopyWith<_$_PasswordAuthenticationState>
get copyWith => throw _privateConstructorUsedError;
}

Expand Down Expand Up @@ -213,25 +213,23 @@ class _$PinAuthenticationStateCopyWithImpl<$Res,
}

/// @nodoc
abstract class _$$PinAuthenticationStateImplCopyWith<$Res>
abstract class _$$_PinAuthenticationStateCopyWith<$Res>
implements $PinAuthenticationStateCopyWith<$Res> {
factory _$$PinAuthenticationStateImplCopyWith(
_$PinAuthenticationStateImpl value,
$Res Function(_$PinAuthenticationStateImpl) then) =
__$$PinAuthenticationStateImplCopyWithImpl<$Res>;
factory _$$_PinAuthenticationStateCopyWith(_$_PinAuthenticationState value,
$Res Function(_$_PinAuthenticationState) then) =
__$$_PinAuthenticationStateCopyWithImpl<$Res>;
@override
@useResult
$Res call({int failedAttemptsCount, int maxAttemptsCount});
}

/// @nodoc
class __$$PinAuthenticationStateImplCopyWithImpl<$Res>
class __$$_PinAuthenticationStateCopyWithImpl<$Res>
extends _$PinAuthenticationStateCopyWithImpl<$Res,
_$PinAuthenticationStateImpl>
implements _$$PinAuthenticationStateImplCopyWith<$Res> {
__$$PinAuthenticationStateImplCopyWithImpl(
_$PinAuthenticationStateImpl _value,
$Res Function(_$PinAuthenticationStateImpl) _then)
_$_PinAuthenticationState>
implements _$$_PinAuthenticationStateCopyWith<$Res> {
__$$_PinAuthenticationStateCopyWithImpl(_$_PinAuthenticationState _value,
$Res Function(_$_PinAuthenticationState) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -240,7 +238,7 @@ class __$$PinAuthenticationStateImplCopyWithImpl<$Res>
Object? failedAttemptsCount = null,
Object? maxAttemptsCount = null,
}) {
return _then(_$PinAuthenticationStateImpl(
return _then(_$_PinAuthenticationState(
failedAttemptsCount: null == failedAttemptsCount
? _value.failedAttemptsCount
: failedAttemptsCount // ignore: cast_nullable_to_non_nullable
Expand All @@ -255,8 +253,8 @@ class __$$PinAuthenticationStateImplCopyWithImpl<$Res>

/// @nodoc
class _$PinAuthenticationStateImpl extends _PinAuthenticationState {
const _$PinAuthenticationStateImpl(
class _$_PinAuthenticationState extends _PinAuthenticationState {
const _$_PinAuthenticationState(
{required this.failedAttemptsCount, required this.maxAttemptsCount})
: super._();

Expand All @@ -274,7 +272,7 @@ class _$PinAuthenticationStateImpl extends _PinAuthenticationState {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$PinAuthenticationStateImpl &&
other is _$_PinAuthenticationState &&
(identical(other.failedAttemptsCount, failedAttemptsCount) ||
other.failedAttemptsCount == failedAttemptsCount) &&
(identical(other.maxAttemptsCount, maxAttemptsCount) ||
Expand All @@ -288,15 +286,15 @@ class _$PinAuthenticationStateImpl extends _PinAuthenticationState {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$PinAuthenticationStateImplCopyWith<_$PinAuthenticationStateImpl>
get copyWith => __$$PinAuthenticationStateImplCopyWithImpl<
_$PinAuthenticationStateImpl>(this, _$identity);
_$$_PinAuthenticationStateCopyWith<_$_PinAuthenticationState> get copyWith =>
__$$_PinAuthenticationStateCopyWithImpl<_$_PinAuthenticationState>(
this, _$identity);
}

abstract class _PinAuthenticationState extends PinAuthenticationState {
const factory _PinAuthenticationState(
{required final int failedAttemptsCount,
required final int maxAttemptsCount}) = _$PinAuthenticationStateImpl;
required final int maxAttemptsCount}) = _$_PinAuthenticationState;
const _PinAuthenticationState._() : super._();

@override
Expand All @@ -305,8 +303,8 @@ abstract class _PinAuthenticationState extends PinAuthenticationState {
int get maxAttemptsCount;
@override
@JsonKey(ignore: true)
_$$PinAuthenticationStateImplCopyWith<_$PinAuthenticationStateImpl>
get copyWith => throw _privateConstructorUsedError;
_$$_PinAuthenticationStateCopyWith<_$_PinAuthenticationState> get copyWith =>
throw _privateConstructorUsedError;
}

/// @nodoc
Expand Down Expand Up @@ -353,30 +351,30 @@ class _$StartupAuthentStateCopyWithImpl<$Res, $Val extends StartupAuthentState>
}

/// @nodoc
abstract class _$$StartupAuthentStateImplCopyWith<$Res>
abstract class _$$_StartupAuthentStateCopyWith<$Res>
implements $StartupAuthentStateCopyWith<$Res> {
factory _$$StartupAuthentStateImplCopyWith(_$StartupAuthentStateImpl value,
$Res Function(_$StartupAuthentStateImpl) then) =
__$$StartupAuthentStateImplCopyWithImpl<$Res>;
factory _$$_StartupAuthentStateCopyWith(_$_StartupAuthentState value,
$Res Function(_$_StartupAuthentState) then) =
__$$_StartupAuthentStateCopyWithImpl<$Res>;
@override
@useResult
$Res call({DateTime? lockDate});
}

/// @nodoc
class __$$StartupAuthentStateImplCopyWithImpl<$Res>
extends _$StartupAuthentStateCopyWithImpl<$Res, _$StartupAuthentStateImpl>
implements _$$StartupAuthentStateImplCopyWith<$Res> {
__$$StartupAuthentStateImplCopyWithImpl(_$StartupAuthentStateImpl _value,
$Res Function(_$StartupAuthentStateImpl) _then)
class __$$_StartupAuthentStateCopyWithImpl<$Res>
extends _$StartupAuthentStateCopyWithImpl<$Res, _$_StartupAuthentState>
implements _$$_StartupAuthentStateCopyWith<$Res> {
__$$_StartupAuthentStateCopyWithImpl(_$_StartupAuthentState _value,
$Res Function(_$_StartupAuthentState) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
@override
$Res call({
Object? lockDate = freezed,
}) {
return _then(_$StartupAuthentStateImpl(
return _then(_$_StartupAuthentState(
lockDate: freezed == lockDate
? _value.lockDate
: lockDate // ignore: cast_nullable_to_non_nullable
Expand All @@ -387,8 +385,8 @@ class __$$StartupAuthentStateImplCopyWithImpl<$Res>

/// @nodoc
class _$StartupAuthentStateImpl extends _StartupAuthentState {
const _$StartupAuthentStateImpl({this.lockDate}) : super._();
class _$_StartupAuthentState extends _StartupAuthentState {
const _$_StartupAuthentState({this.lockDate}) : super._();

/// After that date, application should lock when displayed
@override
Expand All @@ -403,7 +401,7 @@ class _$StartupAuthentStateImpl extends _StartupAuthentState {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$StartupAuthentStateImpl &&
other is _$_StartupAuthentState &&
(identical(other.lockDate, lockDate) ||
other.lockDate == lockDate));
}
Expand All @@ -414,14 +412,14 @@ class _$StartupAuthentStateImpl extends _StartupAuthentState {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$StartupAuthentStateImplCopyWith<_$StartupAuthentStateImpl> get copyWith =>
__$$StartupAuthentStateImplCopyWithImpl<_$StartupAuthentStateImpl>(
_$$_StartupAuthentStateCopyWith<_$_StartupAuthentState> get copyWith =>
__$$_StartupAuthentStateCopyWithImpl<_$_StartupAuthentState>(
this, _$identity);
}

abstract class _StartupAuthentState extends StartupAuthentState {
const factory _StartupAuthentState({final DateTime? lockDate}) =
_$StartupAuthentStateImpl;
_$_StartupAuthentState;
const _StartupAuthentState._() : super._();

@override
Expand All @@ -430,6 +428,6 @@ abstract class _StartupAuthentState extends StartupAuthentState {
DateTime? get lockDate;
@override
@JsonKey(ignore: true)
_$$StartupAuthentStateImplCopyWith<_$StartupAuthentStateImpl> get copyWith =>
_$$_StartupAuthentStateCopyWith<_$_StartupAuthentState> get copyWith =>
throw _privateConstructorUsedError;
}
39 changes: 19 additions & 20 deletions lib/application/migrations/migration_manager.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,33 +58,31 @@ class _$LocalDataMigrationStateCopyWithImpl<$Res,
}

/// @nodoc
abstract class _$$LocalDataMigrationStateImplCopyWith<$Res>
abstract class _$$_LocalDataMigrationStateCopyWith<$Res>
implements $LocalDataMigrationStateCopyWith<$Res> {
factory _$$LocalDataMigrationStateImplCopyWith(
_$LocalDataMigrationStateImpl value,
$Res Function(_$LocalDataMigrationStateImpl) then) =
__$$LocalDataMigrationStateImplCopyWithImpl<$Res>;
factory _$$_LocalDataMigrationStateCopyWith(_$_LocalDataMigrationState value,
$Res Function(_$_LocalDataMigrationState) then) =
__$$_LocalDataMigrationStateCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool migrationInProgress});
}

/// @nodoc
class __$$LocalDataMigrationStateImplCopyWithImpl<$Res>
class __$$_LocalDataMigrationStateCopyWithImpl<$Res>
extends _$LocalDataMigrationStateCopyWithImpl<$Res,
_$LocalDataMigrationStateImpl>
implements _$$LocalDataMigrationStateImplCopyWith<$Res> {
__$$LocalDataMigrationStateImplCopyWithImpl(
_$LocalDataMigrationStateImpl _value,
$Res Function(_$LocalDataMigrationStateImpl) _then)
_$_LocalDataMigrationState>
implements _$$_LocalDataMigrationStateCopyWith<$Res> {
__$$_LocalDataMigrationStateCopyWithImpl(_$_LocalDataMigrationState _value,
$Res Function(_$_LocalDataMigrationState) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
@override
$Res call({
Object? migrationInProgress = null,
}) {
return _then(_$LocalDataMigrationStateImpl(
return _then(_$_LocalDataMigrationState(
migrationInProgress: null == migrationInProgress
? _value.migrationInProgress
: migrationInProgress // ignore: cast_nullable_to_non_nullable
Expand All @@ -95,8 +93,8 @@ class __$$LocalDataMigrationStateImplCopyWithImpl<$Res>

/// @nodoc
class _$LocalDataMigrationStateImpl extends _LocalDataMigrationState {
const _$LocalDataMigrationStateImpl({this.migrationInProgress = false})
class _$_LocalDataMigrationState extends _LocalDataMigrationState {
const _$_LocalDataMigrationState({this.migrationInProgress = false})
: super._();

@override
Expand All @@ -112,7 +110,7 @@ class _$LocalDataMigrationStateImpl extends _LocalDataMigrationState {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$LocalDataMigrationStateImpl &&
other is _$_LocalDataMigrationState &&
(identical(other.migrationInProgress, migrationInProgress) ||
other.migrationInProgress == migrationInProgress));
}
Expand All @@ -123,20 +121,21 @@ class _$LocalDataMigrationStateImpl extends _LocalDataMigrationState {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$LocalDataMigrationStateImplCopyWith<_$LocalDataMigrationStateImpl>
get copyWith => __$$LocalDataMigrationStateImplCopyWithImpl<
_$LocalDataMigrationStateImpl>(this, _$identity);
_$$_LocalDataMigrationStateCopyWith<_$_LocalDataMigrationState>
get copyWith =>
__$$_LocalDataMigrationStateCopyWithImpl<_$_LocalDataMigrationState>(
this, _$identity);
}

abstract class _LocalDataMigrationState extends LocalDataMigrationState {
const factory _LocalDataMigrationState({final bool migrationInProgress}) =
_$LocalDataMigrationStateImpl;
_$_LocalDataMigrationState;
const _LocalDataMigrationState._() : super._();

@override
bool get migrationInProgress;
@override
@JsonKey(ignore: true)
_$$LocalDataMigrationStateImplCopyWith<_$LocalDataMigrationStateImpl>
_$$_LocalDataMigrationStateCopyWith<_$_LocalDataMigrationState>
get copyWith => throw _privateConstructorUsedError;
}
Loading

0 comments on commit 8b5d137

Please sign in to comment.