diff --git a/catalyst_voices/.gitignore b/catalyst_voices/.gitignore index ac235143a1..b85e589e10 100644 --- a/catalyst_voices/.gitignore +++ b/catalyst_voices/.gitignore @@ -1,6 +1,17 @@ ### Dart ### # See https://www.dartlang.org/guides/libraries/private-files +# Generated files from code generation tools +*.g.dart +*.freezed.dart +*.chopper.dart +*.swagger.dart +*.openapi.dart + +# Localization (l10n) generated files +packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_*.dart +packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations.dart + # Files and directories created by pub .dart_tool/ .packages diff --git a/catalyst_voices/.idea/.name b/catalyst_voices/.idea/.name deleted file mode 100644 index 8482e6c450..0000000000 --- a/catalyst_voices/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -catalyst_voices \ No newline at end of file diff --git a/catalyst_voices/.idea/libraries/Dart_Packages.xml b/catalyst_voices/.idea/libraries/Dart_Packages.xml deleted file mode 100644 index aeb7850fae..0000000000 --- a/catalyst_voices/.idea/libraries/Dart_Packages.xml +++ /dev/null @@ -1,668 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/libraries/Dart_SDK.xml b/catalyst_voices/.idea/libraries/Dart_SDK.xml deleted file mode 100644 index 3b3c0ad641..0000000000 --- a/catalyst_voices/.idea/libraries/Dart_SDK.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/libraries/Flutter_Plugins.xml b/catalyst_voices/.idea/libraries/Flutter_Plugins.xml deleted file mode 100644 index b0f697111e..0000000000 --- a/catalyst_voices/.idea/libraries/Flutter_Plugins.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/misc.xml b/catalyst_voices/.idea/misc.xml deleted file mode 100644 index 469b00f42f..0000000000 --- a/catalyst_voices/.idea/misc.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/modules.xml b/catalyst_voices/.idea/modules.xml deleted file mode 100644 index 3bdcc0b0a8..0000000000 --- a/catalyst_voices/.idea/modules.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/runConfigurations/melos_bootstrap.xml b/catalyst_voices/.idea/runConfigurations/melos_bootstrap.xml deleted file mode 100644 index d5715306fb..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_bootstrap.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/runConfigurations/melos_clean.xml b/catalyst_voices/.idea/runConfigurations/melos_clean.xml deleted file mode 100644 index f45d436249..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_clean.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/runConfigurations/melos_run_format_check.xml b/catalyst_voices/.idea/runConfigurations/melos_run_format_check.xml deleted file mode 100644 index 08ebebf1f5..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_run_format_check.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/runConfigurations/melos_run_metrics.xml b/catalyst_voices/.idea/runConfigurations/melos_run_metrics.xml deleted file mode 100644 index 3e62682ead..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_run_metrics.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/runConfigurations/melos_run_test.xml b/catalyst_voices/.idea/runConfigurations/melos_run_test.xml deleted file mode 100644 index a4f0c21a95..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_run_test.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/runConfigurations/melos_run_test_select.xml b/catalyst_voices/.idea/runConfigurations/melos_run_test_select.xml deleted file mode 100644 index 7d5400cbf6..0000000000 --- a/catalyst_voices/.idea/runConfigurations/melos_run_test_select.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - diff --git a/catalyst_voices/.idea/vcs.xml b/catalyst_voices/.idea/vcs.xml deleted file mode 100644 index 6c0b863585..0000000000 --- a/catalyst_voices/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/catalyst_voices/.idea/workspace.xml b/catalyst_voices/.idea/workspace.xml deleted file mode 100644 index 0e2110b31b..0000000000 --- a/catalyst_voices/.idea/workspace.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - { - "keyToString": { - "RunOnceActivity.OpenProjectViewOnStart": "true", - "RunOnceActivity.ShowReadmeOnStart": "true", - "RunOnceActivity.cidr.known.project.marker": "true", - "cidr.known.project.marker": "true", - "dart.analysis.tool.window.visible": "false", - "last_opened_file_path": "/Users/minikin/IOG/Code/temp-catalyst-voices/catalyst_voices", - "settings.editor.selected.configurable": "AndroidSdkUpdater", - "show.migrate.to.gradle.popup": "false" - } -} - - - - - - - - - - - - - - - - - - - - - - - 1694788208043 - - - - \ No newline at end of file diff --git a/catalyst_voices/apps/voices/lib/routes/routing/account_route.g.dart b/catalyst_voices/apps/voices/lib/routes/routing/account_route.g.dart deleted file mode 100644 index c6fd453950..0000000000 --- a/catalyst_voices/apps/voices/lib/routes/routing/account_route.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'account_route.dart'; - -// ************************************************************************** -// GoRouterGenerator -// ************************************************************************** - -List get $appRoutes => [ - $accountRoute, - ]; - -RouteBase get $accountRoute => GoRouteData.$route( - path: '/m4/account', - factory: $AccountRouteExtension._fromState, - ); - -extension $AccountRouteExtension on AccountRoute { - static AccountRoute _fromState(GoRouterState state) => const AccountRoute(); - - String get location => GoRouteData.$location( - '/m4/account', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} diff --git a/catalyst_voices/apps/voices/lib/routes/routing/coming_soon_route.g.dart b/catalyst_voices/apps/voices/lib/routes/routing/coming_soon_route.g.dart deleted file mode 100644 index 8c843d0916..0000000000 --- a/catalyst_voices/apps/voices/lib/routes/routing/coming_soon_route.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'coming_soon_route.dart'; - -// ************************************************************************** -// GoRouterGenerator -// ************************************************************************** - -List get $appRoutes => [ - $comingSoonRoute, - ]; - -RouteBase get $comingSoonRoute => GoRouteData.$route( - path: '/', - factory: $ComingSoonRouteExtension._fromState, - ); - -extension $ComingSoonRouteExtension on ComingSoonRoute { - static ComingSoonRoute _fromState(GoRouterState state) => - const ComingSoonRoute(); - - String get location => GoRouteData.$location( - '/', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} diff --git a/catalyst_voices/apps/voices/lib/routes/routing/login_route.g.dart b/catalyst_voices/apps/voices/lib/routes/routing/login_route.g.dart deleted file mode 100644 index 5d87880c7a..0000000000 --- a/catalyst_voices/apps/voices/lib/routes/routing/login_route.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'login_route.dart'; - -// ************************************************************************** -// GoRouterGenerator -// ************************************************************************** - -List get $appRoutes => [ - $loginRoute, - ]; - -RouteBase get $loginRoute => GoRouteData.$route( - path: '/login', - factory: $LoginRouteExtension._fromState, - ); - -extension $LoginRouteExtension on LoginRoute { - static LoginRoute _fromState(GoRouterState state) => const LoginRoute(); - - String get location => GoRouteData.$location( - '/login', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} diff --git a/catalyst_voices/apps/voices/lib/routes/routing/overall_spaces_route.g.dart b/catalyst_voices/apps/voices/lib/routes/routing/overall_spaces_route.g.dart deleted file mode 100644 index 3160be0e8b..0000000000 --- a/catalyst_voices/apps/voices/lib/routes/routing/overall_spaces_route.g.dart +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'overall_spaces_route.dart'; - -// ************************************************************************** -// GoRouterGenerator -// ************************************************************************** - -List get $appRoutes => [ - $overallSpacesRoute, - ]; - -RouteBase get $overallSpacesRoute => GoRouteData.$route( - path: '/m4/spaces', - factory: $OverallSpacesRouteExtension._fromState, - ); - -extension $OverallSpacesRouteExtension on OverallSpacesRoute { - static OverallSpacesRoute _fromState(GoRouterState state) => - const OverallSpacesRoute(); - - String get location => GoRouteData.$location( - '/m4/spaces', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} diff --git a/catalyst_voices/apps/voices/lib/routes/routing/spaces_route.g.dart b/catalyst_voices/apps/voices/lib/routes/routing/spaces_route.g.dart deleted file mode 100644 index a3ae841792..0000000000 --- a/catalyst_voices/apps/voices/lib/routes/routing/spaces_route.g.dart +++ /dev/null @@ -1,130 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'spaces_route.dart'; - -// ************************************************************************** -// GoRouterGenerator -// ************************************************************************** - -List get $appRoutes => [ - $spacesShellRouteData, - ]; - -RouteBase get $spacesShellRouteData => ShellRouteData.$route( - factory: $SpacesShellRouteDataExtension._fromState, - routes: [ - GoRouteData.$route( - path: '/m4/discovery', - factory: $DiscoveryRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/m4/workspace', - factory: $WorkspaceRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/m4/voting', - factory: $VotingRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/m4/funded_projects', - factory: $FundedProjectsRouteExtension._fromState, - ), - GoRouteData.$route( - path: '/m4/treasury', - factory: $TreasuryRouteExtension._fromState, - ), - ], - ); - -extension $SpacesShellRouteDataExtension on SpacesShellRouteData { - static SpacesShellRouteData _fromState(GoRouterState state) => - const SpacesShellRouteData(); -} - -extension $DiscoveryRouteExtension on DiscoveryRoute { - static DiscoveryRoute _fromState(GoRouterState state) => - const DiscoveryRoute(); - - String get location => GoRouteData.$location( - '/m4/discovery', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} - -extension $WorkspaceRouteExtension on WorkspaceRoute { - static WorkspaceRoute _fromState(GoRouterState state) => - const WorkspaceRoute(); - - String get location => GoRouteData.$location( - '/m4/workspace', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} - -extension $VotingRouteExtension on VotingRoute { - static VotingRoute _fromState(GoRouterState state) => const VotingRoute(); - - String get location => GoRouteData.$location( - '/m4/voting', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} - -extension $FundedProjectsRouteExtension on FundedProjectsRoute { - static FundedProjectsRoute _fromState(GoRouterState state) => - const FundedProjectsRoute(); - - String get location => GoRouteData.$location( - '/m4/funded_projects', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} - -extension $TreasuryRouteExtension on TreasuryRoute { - static TreasuryRoute _fromState(GoRouterState state) => const TreasuryRoute(); - - String get location => GoRouteData.$location( - '/m4/treasury', - ); - - void go(BuildContext context) => context.go(location); - - Future push(BuildContext context) => context.push(location); - - void pushReplacement(BuildContext context) => - context.pushReplacement(location); - - void replace(BuildContext context) => context.replace(location); -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations.dart b/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations.dart deleted file mode 100644 index e25a788ede..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations.dart +++ /dev/null @@ -1,1946 +0,0 @@ -import 'dart:async'; - -import 'package:flutter/widgets.dart'; -import 'package:flutter_localizations/flutter_localizations.dart'; -import 'package:intl/intl.dart' as intl; - -import 'catalyst_voices_localizations_en.dart' deferred as catalyst_voices_localizations_en; -import 'catalyst_voices_localizations_es.dart' deferred as catalyst_voices_localizations_es; - -// ignore_for_file: type=lint - -/// Callers can lookup localized strings with an instance of VoicesLocalizations -/// returned by `VoicesLocalizations.of(context)`. -/// -/// Applications need to include `VoicesLocalizations.delegate()` in their app's -/// `localizationDelegates` list, and the locales they support in the app's -/// `supportedLocales` list. For example: -/// -/// ```dart -/// import 'generated/catalyst_voices_localizations.dart'; -/// -/// return MaterialApp( -/// localizationsDelegates: VoicesLocalizations.localizationsDelegates, -/// supportedLocales: VoicesLocalizations.supportedLocales, -/// home: MyApplicationHome(), -/// ); -/// ``` -/// -/// ## Update pubspec.yaml -/// -/// Please make sure to update your pubspec.yaml to include the following -/// packages: -/// -/// ```yaml -/// dependencies: -/// # Internationalization support. -/// flutter_localizations: -/// sdk: flutter -/// intl: any # Use the pinned version from flutter_localizations -/// -/// # Rest of dependencies -/// ``` -/// -/// ## iOS Applications -/// -/// iOS applications define key application metadata, including supported -/// locales, in an Info.plist file that is built into the application bundle. -/// To configure the locales supported by your app, you’ll need to edit this -/// file. -/// -/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file. -/// Then, in the Project Navigator, open the Info.plist file under the Runner -/// project’s Runner folder. -/// -/// Next, select the Information Property List item, select Add Item from the -/// Editor menu, then select Localizations from the pop-up menu. -/// -/// Select and expand the newly-created Localizations item then, for each -/// locale your application supports, add a new item and select the locale -/// you wish to add from the pop-up menu in the Value field. This list should -/// be consistent with the languages listed in the VoicesLocalizations.supportedLocales -/// property. -abstract class VoicesLocalizations { - VoicesLocalizations(String locale) : localeName = intl.Intl.canonicalizedLocale(locale.toString()); - - final String localeName; - - static VoicesLocalizations? of(BuildContext context) { - return Localizations.of(context, VoicesLocalizations); - } - - static const LocalizationsDelegate delegate = _VoicesLocalizationsDelegate(); - - /// A list of this localizations delegate along with the default localizations - /// delegates. - /// - /// Returns a list of localizations delegates containing this delegate along with - /// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate, - /// and GlobalWidgetsLocalizations.delegate. - /// - /// Additional delegates can be added by appending to this list in - /// MaterialApp. This list does not have to be used at all if a custom list - /// of delegates is preferred or required. - static const List> localizationsDelegates = >[ - delegate, - GlobalMaterialLocalizations.delegate, - GlobalCupertinoLocalizations.delegate, - GlobalWidgetsLocalizations.delegate, - ]; - - /// A list of this localizations delegate's supported locales. - static const List supportedLocales = [ - Locale('en'), - Locale('es') - ]; - - /// Text shown in email field - /// - /// In en, this message translates to: - /// **'Email'** - String get emailLabelText; - - /// Text shown in email field when empty - /// - /// In en, this message translates to: - /// **'mail@example.com'** - String get emailHintText; - - /// Text shown in email field when input is invalid - /// - /// In en, this message translates to: - /// **'mail@example.com'** - String get emailErrorText; - - /// Text shown in cancel button - /// - /// In en, this message translates to: - /// **'Cancel'** - String get cancelButtonText; - - /// Text shown in edit button - /// - /// In en, this message translates to: - /// **'Edit'** - String get editButtonText; - - /// Text shown in header tooltip - /// - /// In en, this message translates to: - /// **'Header'** - String get headerTooltipText; - - /// Text shown as placeholder in rich text editor - /// - /// In en, this message translates to: - /// **'Start writing your text...'** - String get placeholderRichText; - - /// Text shown as placeholder in rich text editor - /// - /// In en, this message translates to: - /// **'Supporting text'** - String get supportingTextLabelText; - - /// Text shown in save button - /// - /// In en, this message translates to: - /// **'Save'** - String get saveButtonText; - - /// Text shown in password field - /// - /// In en, this message translates to: - /// **'Password'** - String get passwordLabelText; - - /// Text shown in password field when empty - /// - /// In en, this message translates to: - /// **'My1SecretPassword'** - String get passwordHintText; - - /// Text shown in password field when input is invalid - /// - /// In en, this message translates to: - /// **'Password must be at least 8 characters long'** - String get passwordErrorText; - - /// Text shown in the login screen title - /// - /// In en, this message translates to: - /// **'Login'** - String get loginTitleText; - - /// Text shown in the login screen for the login button - /// - /// In en, this message translates to: - /// **'Login'** - String get loginButtonText; - - /// Text shown in the login screen when the user enters wrong credentials - /// - /// In en, this message translates to: - /// **'Wrong credentials'** - String get loginScreenErrorMessage; - - /// Text shown in the home screen - /// - /// In en, this message translates to: - /// **'Catalyst Voices'** - String get homeScreenText; - - /// Text shown after logo in coming soon page - /// - /// In en, this message translates to: - /// **'Voices'** - String get comingSoonSubtitle; - - /// Text shown as main title in coming soon page - /// - /// In en, this message translates to: - /// **'Coming'** - String get comingSoonTitle1; - - /// Text shown as main title in coming soon page - /// - /// In en, this message translates to: - /// **'soon'** - String get comingSoonTitle2; - - /// Text shown as description in coming soon page - /// - /// In en, this message translates to: - /// **'Project Catalyst is the world\'s largest decentralized innovation engine for solving real-world challenges.'** - String get comingSoonDescription; - - /// Label text shown in the ConnectingStatus widget during re-connection. - /// - /// In en, this message translates to: - /// **'re-connecting'** - String get connectingStatusLabelText; - - /// Label text shown in the FinishAccountButton widget. - /// - /// In en, this message translates to: - /// **'Finish account'** - String get finishAccountButtonLabelText; - - /// Label text shown in the GetStartedButton widget. - /// - /// In en, this message translates to: - /// **'Get Started'** - String get getStartedButtonLabelText; - - /// Label text shown in the UnlockButton widget. - /// - /// In en, this message translates to: - /// **'Unlock'** - String get unlockButtonLabelText; - - /// Label text shown in the UserProfileButton widget when a user is not connected. - /// - /// In en, this message translates to: - /// **'Guest'** - String get userProfileGuestLabelText; - - /// Label text shown in the Search widget. - /// - /// In en, this message translates to: - /// **'[cmd=K]'** - String get searchButtonLabelText; - - /// Label text shown in the Snackbar widget when the message is an info message. - /// - /// In en, this message translates to: - /// **'Info'** - String get snackbarInfoLabelText; - - /// Text shown in the Snackbar widget when the message is an info message. - /// - /// In en, this message translates to: - /// **'This is an info message!'** - String get snackbarInfoMessageText; - - /// Label text shown in the Snackbar widget when the message is an success message. - /// - /// In en, this message translates to: - /// **'Success'** - String get snackbarSuccessLabelText; - - /// Text shown in the Snackbar widget when the message is an success message. - /// - /// In en, this message translates to: - /// **'This is a success message!'** - String get snackbarSuccessMessageText; - - /// Label text shown in the Snackbar widget when the message is an warning message. - /// - /// In en, this message translates to: - /// **'Warning'** - String get snackbarWarningLabelText; - - /// Text shown in the Snackbar widget when the message is an warning message. - /// - /// In en, this message translates to: - /// **'This is a warning message!'** - String get snackbarWarningMessageText; - - /// Label text shown in the Snackbar widget when the message is an error message. - /// - /// In en, this message translates to: - /// **'Error'** - String get snackbarErrorLabelText; - - /// Text shown in the Snackbar widget when the message is an error message. - /// - /// In en, this message translates to: - /// **'This is an error message!'** - String get snackbarErrorMessageText; - - /// Text shown in the Snackbar widget for the refresh button. - /// - /// In en, this message translates to: - /// **'Refresh'** - String get snackbarRefreshButtonText; - - /// Text shown in the Snackbar widget for the more button. - /// - /// In en, this message translates to: - /// **'Learn more'** - String get snackbarMoreButtonText; - - /// Text shown in the Snackbar widget for the ok button. - /// - /// In en, this message translates to: - /// **'Ok'** - String get snackbarOkButtonText; - - /// When user arranges seed phrases this text is shown when phrase was not selected - /// - /// In en, this message translates to: - /// **'Slot {nr}'** - String seedPhraseSlotNr(int nr); - - /// Indicates to user that status is in ready mode - /// - /// In en, this message translates to: - /// **'Ready'** - String get proposalStatusReady; - - /// Indicates to user that status is in draft mode - /// - /// In en, this message translates to: - /// **'Draft'** - String get proposalStatusDraft; - - /// Indicates to user that status is in progress - /// - /// In en, this message translates to: - /// **'In progress'** - String get proposalStatusInProgress; - - /// Indicates to user that status is in private mode - /// - /// In en, this message translates to: - /// **'Private'** - String get proposalStatusPrivate; - - /// Indicates to user that status is in live mode - /// - /// In en, this message translates to: - /// **'LIVE'** - String get proposalStatusLive; - - /// Indicates to user that status is completed - /// - /// In en, this message translates to: - /// **'Completed'** - String get proposalStatusCompleted; - - /// Indicates to user that status is in open mode - /// - /// In en, this message translates to: - /// **'Open'** - String get proposalStatusOpen; - - /// Label shown on a proposal card indicating that the proposal is funded. - /// - /// In en, this message translates to: - /// **'Funded proposal'** - String get fundedProposal; - - /// Label shown on a proposal card indicating that the proposal is not yet funded. - /// - /// In en, this message translates to: - /// **'Published proposal'** - String get publishedProposal; - - /// Indicates date of funding (a proposal). - /// - /// In en, this message translates to: - /// **'Funded {date}'** - String fundedProposalDate(DateTime date); - - /// Indicates a last update date. - /// - /// In en, this message translates to: - /// **'Last update: {date}.'** - String lastUpdateDate(String date); - - /// Indicates the amount of ADA requested in a fund on a proposal card. - /// - /// In en, this message translates to: - /// **'Funds requested'** - String get fundsRequested; - - /// Indicates the amount of comments on a proposal card. - /// - /// In en, this message translates to: - /// **'{count} {count, plural, =0{comments} =1{comment} other{comments}}'** - String noOfComments(num count); - - /// Indicates the amount of comments on a proposal card. - /// - /// In en, this message translates to: - /// **'{completed} of {total} ({percentage}%) {total, plural, =0{segments} =1{segment} other{segments}} completed'** - String noOfSegmentsCompleted(num completed, num total, num percentage); - - /// Refers to date which is today. - /// - /// In en, this message translates to: - /// **'Today'** - String get today; - - /// Refers to date which is yesterday. - /// - /// In en, this message translates to: - /// **'Yesterday'** - String get yesterday; - - /// Refers to date which is two days ago. - /// - /// In en, this message translates to: - /// **'2 days ago'** - String get twoDaysAgo; - - /// Refers to date which is tomorrow. - /// - /// In en, this message translates to: - /// **'Tomorrow'** - String get tomorrow; - - /// Title of the voting space. - /// - /// In en, this message translates to: - /// **'Active voting round 14'** - String get activeVotingRound; - - /// Tab label for all proposals in voting space - /// - /// In en, this message translates to: - /// **'All proposals ({count})'** - String noOfAllProposals(int count); - - /// Refers to a list of favorites. - /// - /// In en, this message translates to: - /// **'Favorites'** - String get favorites; - - /// Left panel name in treasury space - /// - /// In en, this message translates to: - /// **'Campaign builder'** - String get treasuryCampaignBuilder; - - /// Tab name in campaign builder panel - /// - /// In en, this message translates to: - /// **'Segments'** - String get treasuryCampaignBuilderSegments; - - /// Segment name - /// - /// In en, this message translates to: - /// **'Setup Campaign'** - String get treasuryCampaignSetup; - - /// Campaign title - /// - /// In en, this message translates to: - /// **'Campaign title'** - String get treasuryCampaignTitle; - - /// Button name in step - /// - /// In en, this message translates to: - /// **'Edit'** - String get stepEdit; - - /// Left panel name in workspace - /// - /// In en, this message translates to: - /// **'Proposal navigation'** - String get workspaceProposalNavigation; - - /// Tab name in proposal setup panel - /// - /// In en, this message translates to: - /// **'Segments'** - String get workspaceProposalNavigationSegments; - - /// Segment name - /// - /// In en, this message translates to: - /// **'Proposal setup'** - String get workspaceProposalSetup; - - /// Name shown in spaces shell drawer - /// - /// In en, this message translates to: - /// **'Treasury'** - String get drawerSpaceTreasury; - - /// Name shown in spaces shell drawer - /// - /// In en, this message translates to: - /// **'Discovery'** - String get drawerSpaceDiscovery; - - /// Name shown in spaces shell drawer - /// - /// In en, this message translates to: - /// **'Workspace'** - String get drawerSpaceWorkspace; - - /// Name shown in spaces shell drawer - /// - /// In en, this message translates to: - /// **'Voting'** - String get drawerSpaceVoting; - - /// Name shown in spaces shell drawer - /// - /// In en, this message translates to: - /// **'Funded projects'** - String get drawerSpaceFundedProjects; - - /// Title of the funded project space - /// - /// In en, this message translates to: - /// **'Funded project space'** - String get fundedProjectSpace; - - /// Tab label for funded proposals in funded projects space - /// - /// In en, this message translates to: - /// **'Funded proposals ({count})'** - String noOfFundedProposals(int count); - - /// Refers to a list of followed items. - /// - /// In en, this message translates to: - /// **'Followed'** - String get followed; - - /// Overall spaces search brands tile name - /// - /// In en, this message translates to: - /// **'Search Brands'** - String get overallSpacesSearchBrands; - - /// Overall spaces tasks tile name - /// - /// In en, this message translates to: - /// **'Tasks'** - String get overallSpacesTasks; - - /// In different places update popup title - /// - /// In en, this message translates to: - /// **'Voices update ready'** - String get voicesUpdateReady; - - /// In different places update popup body - /// - /// In en, this message translates to: - /// **'Click to restart'** - String get clickToRestart; - - /// Name of space shown in different spaces that indicates its origin - /// - /// In en, this message translates to: - /// **'Treasury space'** - String get spaceTreasuryName; - - /// Name of space shown in different spaces that indicates its origin - /// - /// In en, this message translates to: - /// **'Discovery space'** - String get spaceDiscoveryName; - - /// Name of space shown in different spaces that indicates its origin - /// - /// In en, this message translates to: - /// **'Workspace'** - String get spaceWorkspaceName; - - /// Name of space shown in different spaces that indicates its origin - /// - /// In en, this message translates to: - /// **'Voting space'** - String get spaceVotingName; - - /// Name of space shown in different spaces that indicates its origin - /// - /// In en, this message translates to: - /// **'Funded project space'** - String get spaceFundedProjects; - - /// Refers to a lock action, i.e. to lock the session. - /// - /// In en, this message translates to: - /// **'Lock'** - String get lock; - - /// Refers to a unlock action, i.e. to unlock the session. - /// - /// In en, this message translates to: - /// **'Unlock'** - String get unlock; - - /// Refers to a get started action, i.e. to register. - /// - /// In en, this message translates to: - /// **'Get Started'** - String get getStarted; - - /// Refers to guest user. - /// - /// In en, this message translates to: - /// **'Guest'** - String get guest; - - /// Refers to user that created keychain but is locked - /// - /// In en, this message translates to: - /// **'Visitor'** - String get visitor; - - /// Text shown in the No Internet Connection Banner widget for the refresh button. - /// - /// In en, this message translates to: - /// **'Refresh'** - String get noConnectionBannerRefreshButtonText; - - /// Text shown in the No Internet Connection Banner widget for the title. - /// - /// In en, this message translates to: - /// **'No internet connection'** - String get noConnectionBannerTitle; - - /// Text shown in the No Internet Connection Banner widget for the description below the title. - /// - /// In en, this message translates to: - /// **'Your internet is playing hide and seek. Check your internet connection, or try again in a moment.'** - String get noConnectionBannerDescription; - - /// Describes a password that is weak - /// - /// In en, this message translates to: - /// **'Weak password strength'** - String get weakPasswordStrength; - - /// Describes a password that has medium strength. - /// - /// In en, this message translates to: - /// **'Normal password strength'** - String get normalPasswordStrength; - - /// Describes a password that is strong. - /// - /// In en, this message translates to: - /// **'Good password strength'** - String get goodPasswordStrength; - - /// A button label to select a cardano wallet. - /// - /// In en, this message translates to: - /// **'Choose Cardano Wallet'** - String get chooseCardanoWallet; - - /// A button label to select another cardano wallet. - /// - /// In en, this message translates to: - /// **'Choose other wallet'** - String get chooseOtherWallet; - - /// A label on a clickable element that can show more content. - /// - /// In en, this message translates to: - /// **'Learn More'** - String get learnMore; - - /// A header in link wallet flow in registration. - /// - /// In en, this message translates to: - /// **'Link keys to your Catalyst Keychain'** - String get walletLinkHeader; - - /// A subheader in link wallet flow in registration for wallet connection. - /// - /// In en, this message translates to: - /// **'Link your Cardano wallet'** - String get walletLinkWalletSubheader; - - /// A subheader in link wallet flow in registration for role chooser state. - /// - /// In en, this message translates to: - /// **'Select your Catalyst roles'** - String get walletLinkRolesSubheader; - - /// A subheader in link wallet flow in registration for RBAC transaction. - /// - /// In en, this message translates to: - /// **'Sign your Catalyst roles to the\nCardano mainnet'** - String get walletLinkTransactionSubheader; - - /// A title in link wallet flow on intro screen. - /// - /// In en, this message translates to: - /// **'Link Cardano Wallet & Catalyst Roles to you Catalyst Keychain.'** - String get walletLinkIntroTitle; - - /// A message (content) in link wallet flow on intro screen. - /// - /// In en, this message translates to: - /// **'You\'re almost there! This is the final and most important step in your account setup.\n\nWe\'re going to link a Cardano Wallet to your Catalyst Keychain, so you can start collecting Role Keys.\n\nRole Keys allow you to enter new spaces, discover new ways to participate, and unlock new ways to earn rewards.\n\nWe\'ll start with your Voter Key by default. You can decide to add a Proposer Key and Drep key if you want, or you can always add them later.'** - String get walletLinkIntroContent; - - /// A title in link wallet flow on select wallet screen. - /// - /// In en, this message translates to: - /// **'Select the Cardano wallet to link\nto your Catalyst Keychain.'** - String get walletLinkSelectWalletTitle; - - /// A message (content) in link wallet flow on select wallet screen. - /// - /// In en, this message translates to: - /// **'To complete this action, you\'ll submit a signed transaction to Cardano. There will be an ADA transaction fee.'** - String get walletLinkSelectWalletContent; - - /// A title in link wallet flow on wallet details screen. - /// - /// In en, this message translates to: - /// **'Cardano wallet detection'** - String get walletLinkWalletDetailsTitle; - - /// A message in link wallet flow on wallet details screen. - /// - /// In en, this message translates to: - /// **'{wallet} connected successfully!'** - String walletLinkWalletDetailsContent(String wallet); - - /// A message in link wallet flow on wallet details screen when a user wallet doesn't have enough balance. - /// - /// In en, this message translates to: - /// **'Wallet and role registrations require a minimal transaction fee. You can setup your default dApp connector wallet in your browser extension settings.'** - String get walletLinkWalletDetailsNotice; - - /// A message recommending the user to top up ADA in wallet link on wallet details screen. - /// - /// In en, this message translates to: - /// **'Top up ADA'** - String get walletLinkWalletDetailsNoticeTopUp; - - /// A link to top-up provide when the user doesn't have enough balance on wallet link screen - /// - /// In en, this message translates to: - /// **'Link to top-up provider'** - String get walletLinkWalletDetailsNoticeTopUpLink; - - /// A title in link wallet flow on transaction screen. - /// - /// In en, this message translates to: - /// **'Let\'s make sure everything looks right.'** - String get walletLinkTransactionTitle; - - /// A subtitle in link wallet flow on transaction screen. - /// - /// In en, this message translates to: - /// **'Account completion for Catalyst'** - String get walletLinkTransactionAccountCompletion; - - /// An item in the transaction summary for the wallet link. - /// - /// In en, this message translates to: - /// **'1 Link {wallet} to Catalyst Keychain'** - String walletLinkTransactionLinkItem(String wallet); - - /// A side note on transaction summary in the wallet link explaining the positives about the registration. - /// - /// In en, this message translates to: - /// **'Positive small print'** - String get walletLinkTransactionPositiveSmallPrint; - - /// The first item for the positive small print message. - /// - /// In en, this message translates to: - /// **'Your registration is a one time event, cost will not renew periodically.'** - String get walletLinkTransactionPositiveSmallPrintItem1; - - /// The second item for the positive small print message. - /// - /// In en, this message translates to: - /// **'Your registrations can be found under your account profile after completion.'** - String get walletLinkTransactionPositiveSmallPrintItem2; - - /// The third item for the positive small print message. - /// - /// In en, this message translates to: - /// **'All registration fees go into the Cardano Treasury.'** - String get walletLinkTransactionPositiveSmallPrintItem3; - - /// The primary button label to sign a transaction on transaction summary screen. - /// - /// In en, this message translates to: - /// **'Sign transaction with wallet'** - String get walletLinkTransactionSign; - - /// The secondary button label to change the roles on transaction summary screen. - /// - /// In en, this message translates to: - /// **'Change role setup'** - String get walletLinkTransactionChangeRoles; - - /// An item in the transaction summary for the role registration - /// - /// In en, this message translates to: - /// **'1 {role} registration to Catalyst Keychain'** - String walletLinkTransactionRoleItem(String role); - - /// Indicates an error when submitting a registration transaction failed. - /// - /// In en, this message translates to: - /// **'Transaction failed'** - String get registrationTransactionFailed; - - /// Indicates an error when preparing a transaction has failed due to low wallet balance. - /// - /// In en, this message translates to: - /// **'Insufficient balance, please top up your wallet.'** - String get registrationInsufficientBalance; - - /// Error message shown when attempting to register or recover account but seed phrase was not found - /// - /// In en, this message translates to: - /// **'Seed phrase was not found. Make sure correct words are correct.'** - String get registrationSeedPhraseNotFound; - - /// Error message shown when attempting to register or recover account but password was not found - /// - /// In en, this message translates to: - /// **'Password was not found. Make sure valid password was created.'** - String get registrationUnlockPasswordNotFound; - - /// Error message shown when connect wallet but matching was not found - /// - /// In en, this message translates to: - /// **'Wallet not found'** - String get registrationWalletNotFound; - - /// A title on the role chooser screen in registration. - /// - /// In en, this message translates to: - /// **'How do you want to participate in Catalyst?'** - String get walletLinkRoleChooserTitle; - - /// A message on the role chooser screen in registration. - /// - /// In en, this message translates to: - /// **'In Catalyst you can take on different roles, learn more below and choose your additional roles now.'** - String get walletLinkRoleChooserContent; - - /// A title on the role summary screen in registration. - /// - /// In en, this message translates to: - /// **'Is this your correct Catalyst role setup?'** - String get walletLinkRoleSummaryTitle; - - /// The first part of the message on the role summary screen in registration. - /// - /// In en, this message translates to: - /// **'You would like to register '** - String get walletLinkRoleSummaryContent1; - - /// The middle (bold) part of the message on the role summary screen in registration. - /// - /// In en, this message translates to: - /// **'{count} active {count, plural, =0{roles} =1{role} other{roles}}'** - String walletLinkRoleSummaryContent2(num count); - - /// The last part of the message on the role summary screen in registration. - /// - /// In en, this message translates to: - /// **' in Catalyst.'** - String get walletLinkRoleSummaryContent3; - - /// Message shown when redirecting to external content that describes which wallets are supported. - /// - /// In en, this message translates to: - /// **'See all supported wallets'** - String get seeAllSupportedWallets; - - /// Message shown when presenting the details of a connected wallet. - /// - /// In en, this message translates to: - /// **'Wallet detection summary'** - String get walletDetectionSummary; - - /// The wallet balance in terms of Ada. - /// - /// In en, this message translates to: - /// **'Wallet balance'** - String get walletBalance; - - /// A cardano wallet address - /// - /// In en, this message translates to: - /// **'Wallet address'** - String get walletAddress; - - /// No description provided for @accountCreationCreate. - /// - /// In en, this message translates to: - /// **'Create a new 
Catalyst Keychain'** - String get accountCreationCreate; - - /// No description provided for @accountCreationRecover. - /// - /// In en, this message translates to: - /// **'Recover your
Catalyst Keychain'** - String get accountCreationRecover; - - /// Indicates that created keychain will be stored in this device only - /// - /// In en, this message translates to: - /// **'On this device'** - String get accountCreationOnThisDevice; - - /// No description provided for @accountCreationGetStartedTitle. - /// - /// In en, this message translates to: - /// **'Welcome to Catalyst'** - String get accountCreationGetStartedTitle; - - /// No description provided for @accountCreationGetStatedDesc. - /// - /// In en, this message translates to: - /// **'If you already have a Catalyst keychain you can restore it on this device, or you can create a new Catalyst Keychain.'** - String get accountCreationGetStatedDesc; - - /// No description provided for @accountCreationGetStatedWhatNext. - /// - /// In en, this message translates to: - /// **'What do you want to do?'** - String get accountCreationGetStatedWhatNext; - - /// Title of My Account page - /// - /// In en, this message translates to: - /// **'My Account / Profile & Keychain'** - String get myAccountProfileKeychain; - - /// Subtitle of My Account page - /// - /// In en, this message translates to: - /// **'Your Catalyst keychain & role registration'** - String get yourCatalystKeychainAndRoleRegistration; - - /// Tab on My Account page - /// - /// In en, this message translates to: - /// **'Profile & Keychain'** - String get profileAndKeychain; - - /// Action on Catalyst Keychain card - /// - /// In en, this message translates to: - /// **'Remove Keychain'** - String get removeKeychain; - - /// Describes that wallet is connected on Catalyst Keychain card - /// - /// In en, this message translates to: - /// **'Wallet connected'** - String get walletConnected; - - /// Describes roles on Catalyst Keychain card - /// - /// In en, this message translates to: - /// **'Current Role registrations'** - String get currentRoleRegistrations; - - /// Account role - /// - /// In en, this message translates to: - /// **'Voter'** - String get voter; - - /// Account role - /// - /// In en, this message translates to: - /// **'Proposer'** - String get proposer; - - /// Account role - /// - /// In en, this message translates to: - /// **'Drep'** - String get drep; - - /// Related to account role - /// - /// In en, this message translates to: - /// **'Default'** - String get defaultRole; - - /// No description provided for @catalystKeychain. - /// - /// In en, this message translates to: - /// **'Catalyst Keychain'** - String get catalystKeychain; - - /// No description provided for @accountCreationSplashTitle. - /// - /// In en, this message translates to: - /// **'Create your Catalyst Keychain'** - String get accountCreationSplashTitle; - - /// No description provided for @accountCreationSplashMessage. - /// - /// In en, this message translates to: - /// **'Your keychain is your ticket to participate in 
distributed innovation on the global stage. 

Once you have it, you\'ll be able to enter different spaces, discover awesome ideas, and share your feedback to hep improve ideas. 

As you add new keys to your keychain, you\'ll be able to enter new spaces, unlock new rewards opportunities, and have your voice heard in community decisions.'** - String get accountCreationSplashMessage; - - /// No description provided for @accountCreationSplashNextButton. - /// - /// In en, this message translates to: - /// **'Create your Keychain now'** - String get accountCreationSplashNextButton; - - /// No description provided for @accountInstructionsTitle. - /// - /// In en, this message translates to: - /// **'Great! Your Catalyst Keychain 
has been created.'** - String get accountInstructionsTitle; - - /// No description provided for @accountInstructionsMessage. - /// - /// In en, this message translates to: - /// **'On the next screen, you\'re going to see 12 words. 
This is called your \"seed phrase\". 

It\'s like a super secure password that only you know, 
that allows you to prove ownership of your keychain. 

You\'ll use it to login and recover your account on 
different devices, so be sure to put it somewhere safe!\n\nYou need to write this seed phrase down with pen and paper, so get this ready.'** - String get accountInstructionsMessage; - - /// For example in button that goes to next stage of registration - /// - /// In en, this message translates to: - /// **'Next'** - String get next; - - /// For example in button that goes to previous stage of registration - /// - /// In en, this message translates to: - /// **'Back'** - String get back; - - /// Retry action when something goes wrong. - /// - /// In en, this message translates to: - /// **'Retry'** - String get retry; - - /// Error description when something goes wrong. - /// - /// In en, this message translates to: - /// **'Something went wrong.'** - String get somethingWentWrong; - - /// A description when no wallet extension was found. - /// - /// In en, this message translates to: - /// **'No wallet found.'** - String get noWalletFound; - - /// A title on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Delete Keychain?'** - String get deleteKeychainDialogTitle; - - /// A subtitle on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Are you sure you wants to delete your\nCatalyst Keychain from this device?'** - String get deleteKeychainDialogSubtitle; - - /// A warning on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Make sure you have a working Catalyst 12-word seedphrase!'** - String get deleteKeychainDialogWarning; - - /// A warning info on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Your Catalyst account will be removed,\nthis action cannot be undone!'** - String get deleteKeychainDialogWarningInfo; - - /// A typing info on delete keychain dialog - /// - /// In en, this message translates to: - /// **'To avoid mistakes, please type ‘Remove Keychain’ below.'** - String get deleteKeychainDialogTypingInfo; - - /// An input label on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Confirm removal'** - String get deleteKeychainDialogInputLabel; - - /// An error text on text field on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Error. Please type \'Remove Keychain\' to remove your account from this device.'** - String get deleteKeychainDialogErrorText; - - /// A removing phrase on delete keychain dialog - /// - /// In en, this message translates to: - /// **'Remove Keychain'** - String get deleteKeychainDialogRemovingPhrase; - - /// A title on account role dialog - /// - /// In en, this message translates to: - /// **'Learn about Catalyst Roles'** - String get accountRoleDialogTitle; - - /// A label on account role dialog's button - /// - /// In en, this message translates to: - /// **'Continue Role setup'** - String get accountRoleDialogButton; - - /// A title for role summary on account role dialog - /// - /// In en, this message translates to: - /// **'{role} role summary'** - String accountRoleDialogRoleSummaryTitle(String role); - - /// A verbose name for voter - /// - /// In en, this message translates to: - /// **'Treasury guardian'** - String get voterVerboseName; - - /// A verbose name for proposer - /// - /// In en, this message translates to: - /// **'Main proposer'** - String get proposerVerboseName; - - /// A verbose name for drep - /// - /// In en, this message translates to: - /// **'Community expert'** - String get drepVerboseName; - - /// A description for voter - /// - /// In en, this message translates to: - /// **'The Voters are the guardians of Cardano treasury. They vote in projects for the growth of the Cardano Ecosystem.'** - String get voterDescription; - - /// A description for proposer - /// - /// In en, this message translates to: - /// **'The Main Proposers are the Innovators in Project Catalyst, they are the shapers of the future.'** - String get proposerDescription; - - /// A description for drep - /// - /// In en, this message translates to: - /// **'The dRep has an Expert Role in the Cardano/Catalyst as people can delegate their vote to Cardano Experts.'** - String get drepDescription; - - /// No description provided for @voterSummarySelectFavorites. - /// - /// In en, this message translates to: - /// **'Select favorites'** - String get voterSummarySelectFavorites; - - /// No description provided for @voterSummaryComment. - /// - /// In en, this message translates to: - /// **'Comment/Vote on Proposals'** - String get voterSummaryComment; - - /// No description provided for @voterSummaryCastVotes. - /// - /// In en, this message translates to: - /// **'Cast your votes'** - String get voterSummaryCastVotes; - - /// No description provided for @voterSummaryVoterRewards. - /// - /// In en, this message translates to: - /// **'Voter rewards'** - String get voterSummaryVoterRewards; - - /// No description provided for @proposerSummaryWriteEdit. - /// - /// In en, this message translates to: - /// **'Write/edit functionality'** - String get proposerSummaryWriteEdit; - - /// No description provided for @proposerSummarySubmitToFund. - /// - /// In en, this message translates to: - /// **'Rights to Submit to Fund'** - String get proposerSummarySubmitToFund; - - /// No description provided for @proposerSummaryInviteTeamMembers. - /// - /// In en, this message translates to: - /// **'Invite Team Members'** - String get proposerSummaryInviteTeamMembers; - - /// No description provided for @proposerSummaryComment. - /// - /// In en, this message translates to: - /// **'Comment functionality'** - String get proposerSummaryComment; - - /// No description provided for @drepSummaryDelegatedVotes. - /// - /// In en, this message translates to: - /// **'Delegated Votes'** - String get drepSummaryDelegatedVotes; - - /// No description provided for @drepSummaryRewards. - /// - /// In en, this message translates to: - /// **'dRep rewards'** - String get drepSummaryRewards; - - /// No description provided for @drepSummaryCastVotes. - /// - /// In en, this message translates to: - /// **'Cast delegated votes'** - String get drepSummaryCastVotes; - - /// No description provided for @drepSummaryComment. - /// - /// In en, this message translates to: - /// **'Comment Functionality'** - String get drepSummaryComment; - - /// No description provided for @delete. - /// - /// In en, this message translates to: - /// **'Delete'** - String get delete; - - /// No description provided for @close. - /// - /// In en, this message translates to: - /// **'Close'** - String get close; - - /// No description provided for @notice. - /// - /// In en, this message translates to: - /// **'Notice'** - String get notice; - - /// No description provided for @yes. - /// - /// In en, this message translates to: - /// **'Yes'** - String get yes; - - /// No description provided for @no. - /// - /// In en, this message translates to: - /// **'No'** - String get no; - - /// No description provided for @total. - /// - /// In en, this message translates to: - /// **'Total'** - String get total; - - /// No description provided for @file. - /// - /// In en, this message translates to: - /// **'file'** - String get file; - - /// No description provided for @key. - /// - /// In en, this message translates to: - /// **'key'** - String get key; - - /// No description provided for @upload. - /// - /// In en, this message translates to: - /// **'Upload'** - String get upload; - - /// No description provided for @browse. - /// - /// In en, this message translates to: - /// **'browse'** - String get browse; - - /// An info on upload dialog - /// - /// In en, this message translates to: - /// **'Drop your {itemNameToUpload} here or '** - String uploadDropInfo(String itemNameToUpload); - - /// No description provided for @uploadProgressInfo. - /// - /// In en, this message translates to: - /// **'Upload in progress'** - String get uploadProgressInfo; - - /// A title on keychain upload dialog - /// - /// In en, this message translates to: - /// **'Upload Catalyst Keychain'** - String get uploadKeychainTitle; - - /// An info on keychain upload dialog - /// - /// In en, this message translates to: - /// **'Make sure it\'s a correct Catalyst keychain file.'** - String get uploadKeychainInfo; - - /// Refers to a light theme mode. - /// - /// In en, this message translates to: - /// **'Light'** - String get themeLight; - - /// Refers to a dark theme mode. - /// - /// In en, this message translates to: - /// **'Dark'** - String get themeDark; - - /// No description provided for @keychainDeletedDialogTitle. - /// - /// In en, this message translates to: - /// **'Catalyst keychain removed'** - String get keychainDeletedDialogTitle; - - /// No description provided for @keychainDeletedDialogSubtitle. - /// - /// In en, this message translates to: - /// **'Your Catalyst Keychain is removed successfully from this device.'** - String get keychainDeletedDialogSubtitle; - - /// No description provided for @keychainDeletedDialogInfo. - /// - /// In en, this message translates to: - /// **'We reverted this device to Catalyst first use.'** - String get keychainDeletedDialogInfo; - - /// No description provided for @registrationCompletedTitle. - /// - /// In en, this message translates to: - /// **'Catalyst account setup'** - String get registrationCompletedTitle; - - /// No description provided for @registrationCompletedSubtitle. - /// - /// In en, this message translates to: - /// **'Completed!'** - String get registrationCompletedSubtitle; - - /// No description provided for @registrationCompletedSummaryHeader. - /// - /// In en, this message translates to: - /// **'Summary'** - String get registrationCompletedSummaryHeader; - - /// No description provided for @registrationCompletedKeychainTitle. - /// - /// In en, this message translates to: - /// **'Catalyst Keychain created'** - String get registrationCompletedKeychainTitle; - - /// No description provided for @registrationCompletedKeychainInfo. - /// - /// In en, this message translates to: - /// **'You created a Catalyst Keychain, backed up its seed phrase and set an unlock password.'** - String get registrationCompletedKeychainInfo; - - /// No description provided for @registrationCompletedWalletTitle. - /// - /// In en, this message translates to: - /// **'Cardano {walletName} wallet selected'** - String registrationCompletedWalletTitle(String walletName); - - /// No description provided for @registrationCompletedWalletInfo. - /// - /// In en, this message translates to: - /// **'You selected your {walletName} wallet as primary wallet for your voting power.'** - String registrationCompletedWalletInfo(String walletName); - - /// No description provided for @registrationCompletedRolesTitle. - /// - /// In en, this message translates to: - /// **'Catalyst roles selected'** - String get registrationCompletedRolesTitle; - - /// No description provided for @registrationCompletedRolesInfo. - /// - /// In en, this message translates to: - /// **'You linked your Cardano wallet and selected Catalyst roles via a signed transaction.'** - String get registrationCompletedRolesInfo; - - /// No description provided for @registrationCompletedRoleRegistration. - /// - /// In en, this message translates to: - /// **'role registration'** - String get registrationCompletedRoleRegistration; - - /// No description provided for @registrationCompletedDiscoveryButton. - /// - /// In en, this message translates to: - /// **'Open Discovery Dashboard'** - String get registrationCompletedDiscoveryButton; - - /// No description provided for @registrationCompletedAccountButton. - /// - /// In en, this message translates to: - /// **'Review my account'** - String get registrationCompletedAccountButton; - - /// No description provided for @createKeychainSeedPhraseSubtitle. - /// - /// In en, this message translates to: - /// **'Write down your 12 Catalyst 
security words'** - String get createKeychainSeedPhraseSubtitle; - - /// No description provided for @createKeychainSeedPhraseBody. - /// - /// In en, this message translates to: - /// **'Make sure you create an offline backup of your recovery phrase as well.'** - String get createKeychainSeedPhraseBody; - - /// No description provided for @createKeychainSeedPhraseDownload. - /// - /// In en, this message translates to: - /// **'Download Catalyst key'** - String get createKeychainSeedPhraseDownload; - - /// No description provided for @createKeychainSeedPhraseStoreConfirmation. - /// - /// In en, this message translates to: - /// **'I have written down/downloaded my 12 words'** - String get createKeychainSeedPhraseStoreConfirmation; - - /// No description provided for @createKeychainSeedPhraseCheckInstructionsTitle. - /// - /// In en, this message translates to: - /// **'Check your Catalyst security keys'** - String get createKeychainSeedPhraseCheckInstructionsTitle; - - /// No description provided for @createKeychainSeedPhraseCheckInstructionsSubtitle. - /// - /// In en, this message translates to: - /// **'Next, we\'re going to make sure that you\'ve written down your words correctly. 

We don\'t save your seed phrase, so it\'s important 
to make sure you have it right. That\'s why we do this confirmation before continuing. 

It\'s also good practice to get familiar with using a seed phrase if you\'re new to crypto.'** - String get createKeychainSeedPhraseCheckInstructionsSubtitle; - - /// No description provided for @createKeychainSeedPhraseCheckSubtitle. - /// - /// In en, this message translates to: - /// **'Input your Catalyst security keys'** - String get createKeychainSeedPhraseCheckSubtitle; - - /// No description provided for @createKeychainSeedPhraseCheckBody. - /// - /// In en, this message translates to: - /// **'Select your 12 written down words in 
the correct order.'** - String get createKeychainSeedPhraseCheckBody; - - /// When user checks correct seed phrase words order he can upload it too - /// - /// In en, this message translates to: - /// **'Upload Catalyst Key'** - String get uploadCatalystKey; - - /// No description provided for @reset. - /// - /// In en, this message translates to: - /// **'Reset'** - String get reset; - - /// No description provided for @createKeychainSeedPhraseCheckSuccessTitle. - /// - /// In en, this message translates to: - /// **'Nice job! You\'ve successfully verified the seed phrase for your keychain.'** - String get createKeychainSeedPhraseCheckSuccessTitle; - - /// No description provided for @createKeychainSeedPhraseCheckSuccessSubtitle. - /// - /// In en, this message translates to: - /// **'Enter your seed phrase to recover your Catalyst Keychain on any device.

It\'s kinda like your email and password all rolled into one, so keep it somewhere safe!

In the next step we\'ll add a password to your Catalyst Keychain, so you can lock/unlock access to Voices.'** - String get createKeychainSeedPhraseCheckSuccessSubtitle; - - /// No description provided for @yourNextStep. - /// - /// In en, this message translates to: - /// **'Your next step'** - String get yourNextStep; - - /// No description provided for @createKeychainSeedPhraseCheckSuccessNextStep. - /// - /// In en, this message translates to: - /// **'Now let’s set your Unlock password for this device!'** - String get createKeychainSeedPhraseCheckSuccessNextStep; - - /// No description provided for @createKeychainUnlockPasswordInstructionsTitle. - /// - /// In en, this message translates to: - /// **'Set your Catalyst unlock password 
for this device'** - String get createKeychainUnlockPasswordInstructionsTitle; - - /// No description provided for @createKeychainUnlockPasswordInstructionsSubtitle. - /// - /// In en, this message translates to: - /// **'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'** - String get createKeychainUnlockPasswordInstructionsSubtitle; - - /// No description provided for @createKeychainCreatedTitle. - /// - /// In en, this message translates to: - /// **'Congratulations your Catalyst 
Keychain is created!'** - String get createKeychainCreatedTitle; - - /// No description provided for @createKeychainCreatedNextStep. - /// - /// In en, this message translates to: - /// **'In the next step you write your Catalyst roles and 
account to the Cardano Mainnet.'** - String get createKeychainCreatedNextStep; - - /// No description provided for @createKeychainLinkWalletAndRoles. - /// - /// In en, this message translates to: - /// **'Link your Cardano Wallet & Roles'** - String get createKeychainLinkWalletAndRoles; - - /// No description provided for @registrationCreateKeychainStepGroup. - /// - /// In en, this message translates to: - /// **'Catalyst Keychain created'** - String get registrationCreateKeychainStepGroup; - - /// No description provided for @registrationLinkWalletStepGroup. - /// - /// In en, this message translates to: - /// **'Link Cardano Wallet & Roles'** - String get registrationLinkWalletStepGroup; - - /// No description provided for @registrationCompletedStepGroup. - /// - /// In en, this message translates to: - /// **'Catalyst account creation completed!'** - String get registrationCompletedStepGroup; - - /// No description provided for @createKeychainUnlockPasswordIntoSubtitle. - /// - /// In en, this message translates to: - /// **'Catalyst unlock password'** - String get createKeychainUnlockPasswordIntoSubtitle; - - /// No description provided for @createKeychainUnlockPasswordIntoBody. - /// - /// In en, this message translates to: - /// **'Please provide a password for your Catalyst Keychain.'** - String get createKeychainUnlockPasswordIntoBody; - - /// No description provided for @enterPassword. - /// - /// In en, this message translates to: - /// **'Enter password'** - String get enterPassword; - - /// No description provided for @confirmPassword. - /// - /// In en, this message translates to: - /// **'Confirm password'** - String get confirmPassword; - - /// No description provided for @xCharactersMinimum. - /// - /// In en, this message translates to: - /// **'{number} characters minimum length'** - String xCharactersMinimum(int number); - - /// When user confirms password but it does not match original one. - /// - /// In en, this message translates to: - /// **'Passwords do not match, please correct'** - String get passwordDoNotMatch; - - /// No description provided for @warning. - /// - /// In en, this message translates to: - /// **'Warning'** - String get warning; - - /// No description provided for @alert. - /// - /// In en, this message translates to: - /// **'Alert'** - String get alert; - - /// No description provided for @registrationExitConfirmDialogSubtitle. - /// - /// In en, this message translates to: - /// **'Account creation incomplete!'** - String get registrationExitConfirmDialogSubtitle; - - /// No description provided for @registrationExitConfirmDialogContent. - /// - /// In en, this message translates to: - /// **'If attempt to leave without creating your keychain - account creation will be incomplete. 

You are not able to login without 
completing your keychain.'** - String get registrationExitConfirmDialogContent; - - /// No description provided for @registrationExitConfirmDialogContinue. - /// - /// In en, this message translates to: - /// **'Continue keychain creation'** - String get registrationExitConfirmDialogContinue; - - /// No description provided for @cancelAnyways. - /// - /// In en, this message translates to: - /// **'Cancel anyway'** - String get cancelAnyways; - - /// No description provided for @recoverCatalystKeychain. - /// - /// In en, this message translates to: - /// **'Restore Catalyst keychain'** - String get recoverCatalystKeychain; - - /// No description provided for @recoverKeychainMethodsTitle. - /// - /// In en, this message translates to: - /// **'Restore your Catalyst Keychain'** - String get recoverKeychainMethodsTitle; - - /// No description provided for @recoverKeychainMethodsNoKeychainFound. - /// - /// In en, this message translates to: - /// **'No Catalyst Keychain found on this device.'** - String get recoverKeychainMethodsNoKeychainFound; - - /// No description provided for @recoverKeychainMethodsSubtitle. - /// - /// In en, this message translates to: - /// **'Not to worry, in the next step you can choose the recovery option that applies to you for this device!'** - String get recoverKeychainMethodsSubtitle; - - /// No description provided for @recoverKeychainMethodsListTitle. - /// - /// In en, this message translates to: - /// **'How do you want Restore your Catalyst Keychain?'** - String get recoverKeychainMethodsListTitle; - - /// No description provided for @recoverKeychainNonFound. - /// - /// In en, this message translates to: - /// **'No Catalyst Keychain found
on this device.'** - String get recoverKeychainNonFound; - - /// No description provided for @recoverKeychainFound. - /// - /// In en, this message translates to: - /// **'Keychain found! 
Please unlock your device.'** - String get recoverKeychainFound; - - /// No description provided for @seedPhrase12Words. - /// - /// In en, this message translates to: - /// **'12 security words'** - String get seedPhrase12Words; - - /// No description provided for @recoverySeedPhraseInstructionsTitle. - /// - /// In en, this message translates to: - /// **'Restore your Catalyst Keychain with 
your 12 security words.'** - String get recoverySeedPhraseInstructionsTitle; - - /// No description provided for @recoverySeedPhraseInstructionsSubtitle. - /// - /// In en, this message translates to: - /// **'Enter your security words in the correct order, and sign into your Catalyst account on a new device.'** - String get recoverySeedPhraseInstructionsSubtitle; - - /// No description provided for @recoverySeedPhraseInputTitle. - /// - /// In en, this message translates to: - /// **'Restore your Catalyst Keychain with 
your 12 security words'** - String get recoverySeedPhraseInputTitle; - - /// No description provided for @recoverySeedPhraseInputSubtitle. - /// - /// In en, this message translates to: - /// **'Enter each word of your Catalyst Key in the right order 
to bring your Catalyst account to this device.'** - String get recoverySeedPhraseInputSubtitle; - - /// No description provided for @recoveryAccountTitle. - /// - /// In en, this message translates to: - /// **'Catalyst account recovery'** - String get recoveryAccountTitle; - - /// No description provided for @recoveryAccountSuccessTitle. - /// - /// In en, this message translates to: - /// **'Keychain recovered successfully!'** - String get recoveryAccountSuccessTitle; - - /// No description provided for @recoveryAccountDetailsAction. - /// - /// In en, this message translates to: - /// **'Set unlock password for this device'** - String get recoveryAccountDetailsAction; - - /// No description provided for @recoveryUnlockPasswordInstructionsTitle. - /// - /// In en, this message translates to: - /// **'Set your Catalyst unlock password f
or this device'** - String get recoveryUnlockPasswordInstructionsTitle; - - /// No description provided for @recoveryUnlockPasswordInstructionsSubtitle. - /// - /// In en, this message translates to: - /// **'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'** - String get recoveryUnlockPasswordInstructionsSubtitle; - - /// No description provided for @recoverDifferentKeychain. - /// - /// In en, this message translates to: - /// **'Restore a different keychain'** - String get recoverDifferentKeychain; - - /// The header label in unlock dialog. - /// - /// In en, this message translates to: - /// **'Unlock Catalyst'** - String get unlockDialogHeader; - - /// The title label in unlock dialog. - /// - /// In en, this message translates to: - /// **'Welcome back!'** - String get unlockDialogTitle; - - /// The content (body) in unlock dialog. - /// - /// In en, this message translates to: - /// **'Please enter your device specific unlock password\nto unlock Catalyst Voices.'** - String get unlockDialogContent; - - /// The hint for the unlock password field. - /// - /// In en, this message translates to: - /// **'Enter your Unlock password'** - String get unlockDialogHint; - - /// An error message shown below the password field when the password is incorrect. - /// - /// In en, this message translates to: - /// **'Password is incorrect, try again.'** - String get unlockDialogIncorrectPassword; - - /// The message shown when asking the user to login/unlock and the user wants to cancel the process. - /// - /// In en, this message translates to: - /// **'Continue as guest'** - String get continueAsGuest; - - /// The title shown in confirmation snackbar after unlocking the keychain. - /// - /// In en, this message translates to: - /// **'Catalyst unlocked!'** - String get unlockSnackbarTitle; - - /// The message shown below the title in confirmation snackbar after unlocking the keychain. - /// - /// In en, this message translates to: - /// **'You can now fully use the application.'** - String get unlockSnackbarMessage; - - /// The title shown in confirmation snackbar after locking the keychain. - /// - /// In en, this message translates to: - /// **'Catalyst locked'** - String get lockSnackbarTitle; - - /// The message shown below the title in confirmation snackbar after locking the keychain. - /// - /// In en, this message translates to: - /// **'Catalyst is now in guest/locked mode.'** - String get lockSnackbarMessage; - - /// No description provided for @recoverySuccessTitle. - /// - /// In en, this message translates to: - /// **'Congratulations your Catalyst 
Keychain is restored!'** - String get recoverySuccessTitle; - - /// No description provided for @recoverySuccessSubtitle. - /// - /// In en, this message translates to: - /// **'You have successfully restored your Catalyst Keychain, and unlocked Catalyst Voices on this device.'** - String get recoverySuccessSubtitle; - - /// No description provided for @recoverySuccessGoToDashboard. - /// - /// In en, this message translates to: - /// **'Jump into the Discovery space / Dashboard'** - String get recoverySuccessGoToDashboard; - - /// No description provided for @recoverySuccessGoAccount. - /// - /// In en, this message translates to: - /// **'Check my account'** - String get recoverySuccessGoAccount; - - /// No description provided for @recoveryExitConfirmDialogSubtitle. - /// - /// In en, this message translates to: - /// **'12 word keychain restoration incomplete'** - String get recoveryExitConfirmDialogSubtitle; - - /// No description provided for @recoveryExitConfirmDialogContent. - /// - /// In en, this message translates to: - /// **'Please continue your Catalyst Keychain restoration, if you cancel all input will be lost.'** - String get recoveryExitConfirmDialogContent; - - /// No description provided for @recoveryExitConfirmDialogContinue. - /// - /// In en, this message translates to: - /// **'Continue recovery process'** - String get recoveryExitConfirmDialogContinue; - - /// Refers to the action label for recovering the user account. - /// - /// In en, this message translates to: - /// **'Recover account'** - String get recoverAccount; - - /// No description provided for @uploadConfirmDialogSubtitle. - /// - /// In en, this message translates to: - /// **'SWITCH TO FILE UPLOAD'** - String get uploadConfirmDialogSubtitle; - - /// No description provided for @uploadConfirmDialogContent. - /// - /// In en, this message translates to: - /// **'Do you want to cancel manual input, and switch to Catalyst key upload?'** - String get uploadConfirmDialogContent; - - /// No description provided for @uploadConfirmDialogYesButton. - /// - /// In en, this message translates to: - /// **'Yes, switch to Catalyst key upload'** - String get uploadConfirmDialogYesButton; - - /// No description provided for @uploadConfirmDialogResumeButton. - /// - /// In en, this message translates to: - /// **'Resume manual inputs'** - String get uploadConfirmDialogResumeButton; - - /// No description provided for @incorrectUploadDialogSubtitle. - /// - /// In en, this message translates to: - /// **'CATALYST KEY INCORRECT'** - String get incorrectUploadDialogSubtitle; - - /// No description provided for @incorrectUploadDialogContent. - /// - /// In en, this message translates to: - /// **'The Catalyst keychain that you entered or uploaded is incorrect, please try again.'** - String get incorrectUploadDialogContent; - - /// No description provided for @incorrectUploadDialogTryAgainButton. - /// - /// In en, this message translates to: - /// **'Try again'** - String get incorrectUploadDialogTryAgainButton; - - /// No description provided for @finishAccountCreation. - /// - /// In en, this message translates to: - /// **'Finish account creation'** - String get finishAccountCreation; - - /// A button label to connect a different wallet in wallet detail panel. - /// - /// In en, this message translates to: - /// **'Connect a different wallet'** - String get connectDifferentWallet; - - /// A button label to review the registration transaction in wallet detail panel. - /// - /// In en, this message translates to: - /// **'Review registration transaction'** - String get reviewRegistrationTransaction; -} - -class _VoicesLocalizationsDelegate extends LocalizationsDelegate { - const _VoicesLocalizationsDelegate(); - - @override - Future load(Locale locale) { - return lookupVoicesLocalizations(locale); - } - - @override - bool isSupported(Locale locale) => ['en', 'es'].contains(locale.languageCode); - - @override - bool shouldReload(_VoicesLocalizationsDelegate old) => false; -} - -Future lookupVoicesLocalizations(Locale locale) { - - - // Lookup logic when only language code is specified. - switch (locale.languageCode) { - case 'en': return catalyst_voices_localizations_en.loadLibrary().then((dynamic _) => catalyst_voices_localizations_en.VoicesLocalizationsEn()); - case 'es': return catalyst_voices_localizations_es.loadLibrary().then((dynamic _) => catalyst_voices_localizations_es.VoicesLocalizationsEs()); - } - - throw FlutterError( - 'VoicesLocalizations.delegate failed to load unsupported locale "$locale". This is likely ' - 'an issue with the localizations generation tool. Please file an issue ' - 'on GitHub with a reproducible sample app and the gen-l10n configuration ' - 'that was used.' - ); -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_en.dart b/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_en.dart deleted file mode 100644 index 5cd6739f26..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_en.dart +++ /dev/null @@ -1,1003 +0,0 @@ -import 'package:intl/intl.dart' as intl; - -import 'catalyst_voices_localizations.dart'; - -// ignore_for_file: type=lint - -/// The translations for English (`en`). -class VoicesLocalizationsEn extends VoicesLocalizations { - VoicesLocalizationsEn([String locale = 'en']) : super(locale); - - @override - String get emailLabelText => 'Email'; - - @override - String get emailHintText => 'mail@example.com'; - - @override - String get emailErrorText => 'mail@example.com'; - - @override - String get cancelButtonText => 'Cancel'; - - @override - String get editButtonText => 'Edit'; - - @override - String get headerTooltipText => 'Header'; - - @override - String get placeholderRichText => 'Start writing your text...'; - - @override - String get supportingTextLabelText => 'Supporting text'; - - @override - String get saveButtonText => 'Save'; - - @override - String get passwordLabelText => 'Password'; - - @override - String get passwordHintText => 'My1SecretPassword'; - - @override - String get passwordErrorText => 'Password must be at least 8 characters long'; - - @override - String get loginTitleText => 'Login'; - - @override - String get loginButtonText => 'Login'; - - @override - String get loginScreenErrorMessage => 'Wrong credentials'; - - @override - String get homeScreenText => 'Catalyst Voices'; - - @override - String get comingSoonSubtitle => 'Voices'; - - @override - String get comingSoonTitle1 => 'Coming'; - - @override - String get comingSoonTitle2 => 'soon'; - - @override - String get comingSoonDescription => 'Project Catalyst is the world\'s largest decentralized innovation engine for solving real-world challenges.'; - - @override - String get connectingStatusLabelText => 're-connecting'; - - @override - String get finishAccountButtonLabelText => 'Finish account'; - - @override - String get getStartedButtonLabelText => 'Get Started'; - - @override - String get unlockButtonLabelText => 'Unlock'; - - @override - String get userProfileGuestLabelText => 'Guest'; - - @override - String get searchButtonLabelText => '[cmd=K]'; - - @override - String get snackbarInfoLabelText => 'Info'; - - @override - String get snackbarInfoMessageText => 'This is an info message!'; - - @override - String get snackbarSuccessLabelText => 'Success'; - - @override - String get snackbarSuccessMessageText => 'This is a success message!'; - - @override - String get snackbarWarningLabelText => 'Warning'; - - @override - String get snackbarWarningMessageText => 'This is a warning message!'; - - @override - String get snackbarErrorLabelText => 'Error'; - - @override - String get snackbarErrorMessageText => 'This is an error message!'; - - @override - String get snackbarRefreshButtonText => 'Refresh'; - - @override - String get snackbarMoreButtonText => 'Learn more'; - - @override - String get snackbarOkButtonText => 'Ok'; - - @override - String seedPhraseSlotNr(int nr) { - return 'Slot $nr'; - } - - @override - String get proposalStatusReady => 'Ready'; - - @override - String get proposalStatusDraft => 'Draft'; - - @override - String get proposalStatusInProgress => 'In progress'; - - @override - String get proposalStatusPrivate => 'Private'; - - @override - String get proposalStatusLive => 'LIVE'; - - @override - String get proposalStatusCompleted => 'Completed'; - - @override - String get proposalStatusOpen => 'Open'; - - @override - String get fundedProposal => 'Funded proposal'; - - @override - String get publishedProposal => 'Published proposal'; - - @override - String fundedProposalDate(DateTime date) { - final intl.DateFormat dateDateFormat = intl.DateFormat.yMMMMd(localeName); - final String dateString = dateDateFormat.format(date); - - return 'Funded $dateString'; - } - - @override - String lastUpdateDate(String date) { - return 'Last update: $date.'; - } - - @override - String get fundsRequested => 'Funds requested'; - - @override - String noOfComments(num count) { - final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String countString = countNumberFormat.format(count); - - String _temp0 = intl.Intl.pluralLogic( - count, - locale: localeName, - other: 'comments', - one: 'comment', - zero: 'comments', - ); - return '$countString $_temp0'; - } - - @override - String noOfSegmentsCompleted(num completed, num total, num percentage) { - final intl.NumberFormat completedNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String completedString = completedNumberFormat.format(completed); - final intl.NumberFormat totalNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String totalString = totalNumberFormat.format(total); - final intl.NumberFormat percentageNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String percentageString = percentageNumberFormat.format(percentage); - - String _temp0 = intl.Intl.pluralLogic( - total, - locale: localeName, - other: 'segments', - one: 'segment', - zero: 'segments', - ); - return '$completedString of $totalString ($percentageString%) $_temp0 completed'; - } - - @override - String get today => 'Today'; - - @override - String get yesterday => 'Yesterday'; - - @override - String get twoDaysAgo => '2 days ago'; - - @override - String get tomorrow => 'Tomorrow'; - - @override - String get activeVotingRound => 'Active voting round 14'; - - @override - String noOfAllProposals(int count) { - return 'All proposals ($count)'; - } - - @override - String get favorites => 'Favorites'; - - @override - String get treasuryCampaignBuilder => 'Campaign builder'; - - @override - String get treasuryCampaignBuilderSegments => 'Segments'; - - @override - String get treasuryCampaignSetup => 'Setup Campaign'; - - @override - String get treasuryCampaignTitle => 'Campaign title'; - - @override - String get stepEdit => 'Edit'; - - @override - String get workspaceProposalNavigation => 'Proposal navigation'; - - @override - String get workspaceProposalNavigationSegments => 'Segments'; - - @override - String get workspaceProposalSetup => 'Proposal setup'; - - @override - String get drawerSpaceTreasury => 'Treasury'; - - @override - String get drawerSpaceDiscovery => 'Discovery'; - - @override - String get drawerSpaceWorkspace => 'Workspace'; - - @override - String get drawerSpaceVoting => 'Voting'; - - @override - String get drawerSpaceFundedProjects => 'Funded projects'; - - @override - String get fundedProjectSpace => 'Funded project space'; - - @override - String noOfFundedProposals(int count) { - return 'Funded proposals ($count)'; - } - - @override - String get followed => 'Followed'; - - @override - String get overallSpacesSearchBrands => 'Search Brands'; - - @override - String get overallSpacesTasks => 'Tasks'; - - @override - String get voicesUpdateReady => 'Voices update ready'; - - @override - String get clickToRestart => 'Click to restart'; - - @override - String get spaceTreasuryName => 'Treasury space'; - - @override - String get spaceDiscoveryName => 'Discovery space'; - - @override - String get spaceWorkspaceName => 'Workspace'; - - @override - String get spaceVotingName => 'Voting space'; - - @override - String get spaceFundedProjects => 'Funded project space'; - - @override - String get lock => 'Lock'; - - @override - String get unlock => 'Unlock'; - - @override - String get getStarted => 'Get Started'; - - @override - String get guest => 'Guest'; - - @override - String get visitor => 'Visitor'; - - @override - String get noConnectionBannerRefreshButtonText => 'Refresh'; - - @override - String get noConnectionBannerTitle => 'No internet connection'; - - @override - String get noConnectionBannerDescription => 'Your internet is playing hide and seek. Check your internet connection, or try again in a moment.'; - - @override - String get weakPasswordStrength => 'Weak password strength'; - - @override - String get normalPasswordStrength => 'Normal password strength'; - - @override - String get goodPasswordStrength => 'Good password strength'; - - @override - String get chooseCardanoWallet => 'Choose Cardano Wallet'; - - @override - String get chooseOtherWallet => 'Choose other wallet'; - - @override - String get learnMore => 'Learn More'; - - @override - String get walletLinkHeader => 'Link keys to your Catalyst Keychain'; - - @override - String get walletLinkWalletSubheader => 'Link your Cardano wallet'; - - @override - String get walletLinkRolesSubheader => 'Select your Catalyst roles'; - - @override - String get walletLinkTransactionSubheader => 'Sign your Catalyst roles to the\nCardano mainnet'; - - @override - String get walletLinkIntroTitle => 'Link Cardano Wallet & Catalyst Roles to you Catalyst Keychain.'; - - @override - String get walletLinkIntroContent => 'You\'re almost there! This is the final and most important step in your account setup.\n\nWe\'re going to link a Cardano Wallet to your Catalyst Keychain, so you can start collecting Role Keys.\n\nRole Keys allow you to enter new spaces, discover new ways to participate, and unlock new ways to earn rewards.\n\nWe\'ll start with your Voter Key by default. You can decide to add a Proposer Key and Drep key if you want, or you can always add them later.'; - - @override - String get walletLinkSelectWalletTitle => 'Select the Cardano wallet to link\nto your Catalyst Keychain.'; - - @override - String get walletLinkSelectWalletContent => 'To complete this action, you\'ll submit a signed transaction to Cardano. There will be an ADA transaction fee.'; - - @override - String get walletLinkWalletDetailsTitle => 'Cardano wallet detection'; - - @override - String walletLinkWalletDetailsContent(String wallet) { - return '$wallet connected successfully!'; - } - - @override - String get walletLinkWalletDetailsNotice => 'Wallet and role registrations require a minimal transaction fee. You can setup your default dApp connector wallet in your browser extension settings.'; - - @override - String get walletLinkWalletDetailsNoticeTopUp => 'Top up ADA'; - - @override - String get walletLinkWalletDetailsNoticeTopUpLink => 'Link to top-up provider'; - - @override - String get walletLinkTransactionTitle => 'Let\'s make sure everything looks right.'; - - @override - String get walletLinkTransactionAccountCompletion => 'Account completion for Catalyst'; - - @override - String walletLinkTransactionLinkItem(String wallet) { - return '1 Link $wallet to Catalyst Keychain'; - } - - @override - String get walletLinkTransactionPositiveSmallPrint => 'Positive small print'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem1 => 'Your registration is a one time event, cost will not renew periodically.'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem2 => 'Your registrations can be found under your account profile after completion.'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem3 => 'All registration fees go into the Cardano Treasury.'; - - @override - String get walletLinkTransactionSign => 'Sign transaction with wallet'; - - @override - String get walletLinkTransactionChangeRoles => 'Change role setup'; - - @override - String walletLinkTransactionRoleItem(String role) { - return '1 $role registration to Catalyst Keychain'; - } - - @override - String get registrationTransactionFailed => 'Transaction failed'; - - @override - String get registrationInsufficientBalance => 'Insufficient balance, please top up your wallet.'; - - @override - String get registrationSeedPhraseNotFound => 'Seed phrase was not found. Make sure correct words are correct.'; - - @override - String get registrationUnlockPasswordNotFound => 'Password was not found. Make sure valid password was created.'; - - @override - String get registrationWalletNotFound => 'Wallet not found'; - - @override - String get walletLinkRoleChooserTitle => 'How do you want to participate in Catalyst?'; - - @override - String get walletLinkRoleChooserContent => 'In Catalyst you can take on different roles, learn more below and choose your additional roles now.'; - - @override - String get walletLinkRoleSummaryTitle => 'Is this your correct Catalyst role setup?'; - - @override - String get walletLinkRoleSummaryContent1 => 'You would like to register '; - - @override - String walletLinkRoleSummaryContent2(num count) { - final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String countString = countNumberFormat.format(count); - - String _temp0 = intl.Intl.pluralLogic( - count, - locale: localeName, - other: 'roles', - one: 'role', - zero: 'roles', - ); - return '$countString active $_temp0'; - } - - @override - String get walletLinkRoleSummaryContent3 => ' in Catalyst.'; - - @override - String get seeAllSupportedWallets => 'See all supported wallets'; - - @override - String get walletDetectionSummary => 'Wallet detection summary'; - - @override - String get walletBalance => 'Wallet balance'; - - @override - String get walletAddress => 'Wallet address'; - - @override - String get accountCreationCreate => 'Create a new 
Catalyst Keychain'; - - @override - String get accountCreationRecover => 'Recover your
Catalyst Keychain'; - - @override - String get accountCreationOnThisDevice => 'On this device'; - - @override - String get accountCreationGetStartedTitle => 'Welcome to Catalyst'; - - @override - String get accountCreationGetStatedDesc => 'If you already have a Catalyst keychain you can restore it on this device, or you can create a new Catalyst Keychain.'; - - @override - String get accountCreationGetStatedWhatNext => 'What do you want to do?'; - - @override - String get myAccountProfileKeychain => 'My Account / Profile & Keychain'; - - @override - String get yourCatalystKeychainAndRoleRegistration => 'Your Catalyst keychain & role registration'; - - @override - String get profileAndKeychain => 'Profile & Keychain'; - - @override - String get removeKeychain => 'Remove Keychain'; - - @override - String get walletConnected => 'Wallet connected'; - - @override - String get currentRoleRegistrations => 'Current Role registrations'; - - @override - String get voter => 'Voter'; - - @override - String get proposer => 'Proposer'; - - @override - String get drep => 'Drep'; - - @override - String get defaultRole => 'Default'; - - @override - String get catalystKeychain => 'Catalyst Keychain'; - - @override - String get accountCreationSplashTitle => 'Create your Catalyst Keychain'; - - @override - String get accountCreationSplashMessage => 'Your keychain is your ticket to participate in 
distributed innovation on the global stage. 

Once you have it, you\'ll be able to enter different spaces, discover awesome ideas, and share your feedback to hep improve ideas. 

As you add new keys to your keychain, you\'ll be able to enter new spaces, unlock new rewards opportunities, and have your voice heard in community decisions.'; - - @override - String get accountCreationSplashNextButton => 'Create your Keychain now'; - - @override - String get accountInstructionsTitle => 'Great! Your Catalyst Keychain 
has been created.'; - - @override - String get accountInstructionsMessage => 'On the next screen, you\'re going to see 12 words. 
This is called your \"seed phrase\". 

It\'s like a super secure password that only you know, 
that allows you to prove ownership of your keychain. 

You\'ll use it to login and recover your account on 
different devices, so be sure to put it somewhere safe!\n\nYou need to write this seed phrase down with pen and paper, so get this ready.'; - - @override - String get next => 'Next'; - - @override - String get back => 'Back'; - - @override - String get retry => 'Retry'; - - @override - String get somethingWentWrong => 'Something went wrong.'; - - @override - String get noWalletFound => 'No wallet found.'; - - @override - String get deleteKeychainDialogTitle => 'Delete Keychain?'; - - @override - String get deleteKeychainDialogSubtitle => 'Are you sure you wants to delete your\nCatalyst Keychain from this device?'; - - @override - String get deleteKeychainDialogWarning => 'Make sure you have a working Catalyst 12-word seedphrase!'; - - @override - String get deleteKeychainDialogWarningInfo => 'Your Catalyst account will be removed,\nthis action cannot be undone!'; - - @override - String get deleteKeychainDialogTypingInfo => 'To avoid mistakes, please type ‘Remove Keychain’ below.'; - - @override - String get deleteKeychainDialogInputLabel => 'Confirm removal'; - - @override - String get deleteKeychainDialogErrorText => 'Error. Please type \'Remove Keychain\' to remove your account from this device.'; - - @override - String get deleteKeychainDialogRemovingPhrase => 'Remove Keychain'; - - @override - String get accountRoleDialogTitle => 'Learn about Catalyst Roles'; - - @override - String get accountRoleDialogButton => 'Continue Role setup'; - - @override - String accountRoleDialogRoleSummaryTitle(String role) { - return '$role role summary'; - } - - @override - String get voterVerboseName => 'Treasury guardian'; - - @override - String get proposerVerboseName => 'Main proposer'; - - @override - String get drepVerboseName => 'Community expert'; - - @override - String get voterDescription => 'The Voters are the guardians of Cardano treasury. They vote in projects for the growth of the Cardano Ecosystem.'; - - @override - String get proposerDescription => 'The Main Proposers are the Innovators in Project Catalyst, they are the shapers of the future.'; - - @override - String get drepDescription => 'The dRep has an Expert Role in the Cardano/Catalyst as people can delegate their vote to Cardano Experts.'; - - @override - String get voterSummarySelectFavorites => 'Select favorites'; - - @override - String get voterSummaryComment => 'Comment/Vote on Proposals'; - - @override - String get voterSummaryCastVotes => 'Cast your votes'; - - @override - String get voterSummaryVoterRewards => 'Voter rewards'; - - @override - String get proposerSummaryWriteEdit => 'Write/edit functionality'; - - @override - String get proposerSummarySubmitToFund => 'Rights to Submit to Fund'; - - @override - String get proposerSummaryInviteTeamMembers => 'Invite Team Members'; - - @override - String get proposerSummaryComment => 'Comment functionality'; - - @override - String get drepSummaryDelegatedVotes => 'Delegated Votes'; - - @override - String get drepSummaryRewards => 'dRep rewards'; - - @override - String get drepSummaryCastVotes => 'Cast delegated votes'; - - @override - String get drepSummaryComment => 'Comment Functionality'; - - @override - String get delete => 'Delete'; - - @override - String get close => 'Close'; - - @override - String get notice => 'Notice'; - - @override - String get yes => 'Yes'; - - @override - String get no => 'No'; - - @override - String get total => 'Total'; - - @override - String get file => 'file'; - - @override - String get key => 'key'; - - @override - String get upload => 'Upload'; - - @override - String get browse => 'browse'; - - @override - String uploadDropInfo(String itemNameToUpload) { - return 'Drop your $itemNameToUpload here or '; - } - - @override - String get uploadProgressInfo => 'Upload in progress'; - - @override - String get uploadKeychainTitle => 'Upload Catalyst Keychain'; - - @override - String get uploadKeychainInfo => 'Make sure it\'s a correct Catalyst keychain file.'; - - @override - String get themeLight => 'Light'; - - @override - String get themeDark => 'Dark'; - - @override - String get keychainDeletedDialogTitle => 'Catalyst keychain removed'; - - @override - String get keychainDeletedDialogSubtitle => 'Your Catalyst Keychain is removed successfully from this device.'; - - @override - String get keychainDeletedDialogInfo => 'We reverted this device to Catalyst first use.'; - - @override - String get registrationCompletedTitle => 'Catalyst account setup'; - - @override - String get registrationCompletedSubtitle => 'Completed!'; - - @override - String get registrationCompletedSummaryHeader => 'Summary'; - - @override - String get registrationCompletedKeychainTitle => 'Catalyst Keychain created'; - - @override - String get registrationCompletedKeychainInfo => 'You created a Catalyst Keychain, backed up its seed phrase and set an unlock password.'; - - @override - String registrationCompletedWalletTitle(String walletName) { - return 'Cardano $walletName wallet selected'; - } - - @override - String registrationCompletedWalletInfo(String walletName) { - return 'You selected your $walletName wallet as primary wallet for your voting power.'; - } - - @override - String get registrationCompletedRolesTitle => 'Catalyst roles selected'; - - @override - String get registrationCompletedRolesInfo => 'You linked your Cardano wallet and selected Catalyst roles via a signed transaction.'; - - @override - String get registrationCompletedRoleRegistration => 'role registration'; - - @override - String get registrationCompletedDiscoveryButton => 'Open Discovery Dashboard'; - - @override - String get registrationCompletedAccountButton => 'Review my account'; - - @override - String get createKeychainSeedPhraseSubtitle => 'Write down your 12 Catalyst 
security words'; - - @override - String get createKeychainSeedPhraseBody => 'Make sure you create an offline backup of your recovery phrase as well.'; - - @override - String get createKeychainSeedPhraseDownload => 'Download Catalyst key'; - - @override - String get createKeychainSeedPhraseStoreConfirmation => 'I have written down/downloaded my 12 words'; - - @override - String get createKeychainSeedPhraseCheckInstructionsTitle => 'Check your Catalyst security keys'; - - @override - String get createKeychainSeedPhraseCheckInstructionsSubtitle => 'Next, we\'re going to make sure that you\'ve written down your words correctly. 

We don\'t save your seed phrase, so it\'s important 
to make sure you have it right. That\'s why we do this confirmation before continuing. 

It\'s also good practice to get familiar with using a seed phrase if you\'re new to crypto.'; - - @override - String get createKeychainSeedPhraseCheckSubtitle => 'Input your Catalyst security keys'; - - @override - String get createKeychainSeedPhraseCheckBody => 'Select your 12 written down words in 
the correct order.'; - - @override - String get uploadCatalystKey => 'Upload Catalyst Key'; - - @override - String get reset => 'Reset'; - - @override - String get createKeychainSeedPhraseCheckSuccessTitle => 'Nice job! You\'ve successfully verified the seed phrase for your keychain.'; - - @override - String get createKeychainSeedPhraseCheckSuccessSubtitle => 'Enter your seed phrase to recover your Catalyst Keychain on any device.

It\'s kinda like your email and password all rolled into one, so keep it somewhere safe!

In the next step we\'ll add a password to your Catalyst Keychain, so you can lock/unlock access to Voices.'; - - @override - String get yourNextStep => 'Your next step'; - - @override - String get createKeychainSeedPhraseCheckSuccessNextStep => 'Now let’s set your Unlock password for this device!'; - - @override - String get createKeychainUnlockPasswordInstructionsTitle => 'Set your Catalyst unlock password 
for this device'; - - @override - String get createKeychainUnlockPasswordInstructionsSubtitle => 'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'; - - @override - String get createKeychainCreatedTitle => 'Congratulations your Catalyst 
Keychain is created!'; - - @override - String get createKeychainCreatedNextStep => 'In the next step you write your Catalyst roles and 
account to the Cardano Mainnet.'; - - @override - String get createKeychainLinkWalletAndRoles => 'Link your Cardano Wallet & Roles'; - - @override - String get registrationCreateKeychainStepGroup => 'Catalyst Keychain created'; - - @override - String get registrationLinkWalletStepGroup => 'Link Cardano Wallet & Roles'; - - @override - String get registrationCompletedStepGroup => 'Catalyst account creation completed!'; - - @override - String get createKeychainUnlockPasswordIntoSubtitle => 'Catalyst unlock password'; - - @override - String get createKeychainUnlockPasswordIntoBody => 'Please provide a password for your Catalyst Keychain.'; - - @override - String get enterPassword => 'Enter password'; - - @override - String get confirmPassword => 'Confirm password'; - - @override - String xCharactersMinimum(int number) { - return '$number characters minimum length'; - } - - @override - String get passwordDoNotMatch => 'Passwords do not match, please correct'; - - @override - String get warning => 'Warning'; - - @override - String get alert => 'Alert'; - - @override - String get registrationExitConfirmDialogSubtitle => 'Account creation incomplete!'; - - @override - String get registrationExitConfirmDialogContent => 'If attempt to leave without creating your keychain - account creation will be incomplete. 

You are not able to login without 
completing your keychain.'; - - @override - String get registrationExitConfirmDialogContinue => 'Continue keychain creation'; - - @override - String get cancelAnyways => 'Cancel anyway'; - - @override - String get recoverCatalystKeychain => 'Restore Catalyst keychain'; - - @override - String get recoverKeychainMethodsTitle => 'Restore your Catalyst Keychain'; - - @override - String get recoverKeychainMethodsNoKeychainFound => 'No Catalyst Keychain found on this device.'; - - @override - String get recoverKeychainMethodsSubtitle => 'Not to worry, in the next step you can choose the recovery option that applies to you for this device!'; - - @override - String get recoverKeychainMethodsListTitle => 'How do you want Restore your Catalyst Keychain?'; - - @override - String get recoverKeychainNonFound => 'No Catalyst Keychain found
on this device.'; - - @override - String get recoverKeychainFound => 'Keychain found! 
Please unlock your device.'; - - @override - String get seedPhrase12Words => '12 security words'; - - @override - String get recoverySeedPhraseInstructionsTitle => 'Restore your Catalyst Keychain with 
your 12 security words.'; - - @override - String get recoverySeedPhraseInstructionsSubtitle => 'Enter your security words in the correct order, and sign into your Catalyst account on a new device.'; - - @override - String get recoverySeedPhraseInputTitle => 'Restore your Catalyst Keychain with 
your 12 security words'; - - @override - String get recoverySeedPhraseInputSubtitle => 'Enter each word of your Catalyst Key in the right order 
to bring your Catalyst account to this device.'; - - @override - String get recoveryAccountTitle => 'Catalyst account recovery'; - - @override - String get recoveryAccountSuccessTitle => 'Keychain recovered successfully!'; - - @override - String get recoveryAccountDetailsAction => 'Set unlock password for this device'; - - @override - String get recoveryUnlockPasswordInstructionsTitle => 'Set your Catalyst unlock password f
or this device'; - - @override - String get recoveryUnlockPasswordInstructionsSubtitle => 'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'; - - @override - String get recoverDifferentKeychain => 'Restore a different keychain'; - - @override - String get unlockDialogHeader => 'Unlock Catalyst'; - - @override - String get unlockDialogTitle => 'Welcome back!'; - - @override - String get unlockDialogContent => 'Please enter your device specific unlock password\nto unlock Catalyst Voices.'; - - @override - String get unlockDialogHint => 'Enter your Unlock password'; - - @override - String get unlockDialogIncorrectPassword => 'Password is incorrect, try again.'; - - @override - String get continueAsGuest => 'Continue as guest'; - - @override - String get unlockSnackbarTitle => 'Catalyst unlocked!'; - - @override - String get unlockSnackbarMessage => 'You can now fully use the application.'; - - @override - String get lockSnackbarTitle => 'Catalyst locked'; - - @override - String get lockSnackbarMessage => 'Catalyst is now in guest/locked mode.'; - - @override - String get recoverySuccessTitle => 'Congratulations your Catalyst 
Keychain is restored!'; - - @override - String get recoverySuccessSubtitle => 'You have successfully restored your Catalyst Keychain, and unlocked Catalyst Voices on this device.'; - - @override - String get recoverySuccessGoToDashboard => 'Jump into the Discovery space / Dashboard'; - - @override - String get recoverySuccessGoAccount => 'Check my account'; - - @override - String get recoveryExitConfirmDialogSubtitle => '12 word keychain restoration incomplete'; - - @override - String get recoveryExitConfirmDialogContent => 'Please continue your Catalyst Keychain restoration, if you cancel all input will be lost.'; - - @override - String get recoveryExitConfirmDialogContinue => 'Continue recovery process'; - - @override - String get recoverAccount => 'Recover account'; - - @override - String get uploadConfirmDialogSubtitle => 'SWITCH TO FILE UPLOAD'; - - @override - String get uploadConfirmDialogContent => 'Do you want to cancel manual input, and switch to Catalyst key upload?'; - - @override - String get uploadConfirmDialogYesButton => 'Yes, switch to Catalyst key upload'; - - @override - String get uploadConfirmDialogResumeButton => 'Resume manual inputs'; - - @override - String get incorrectUploadDialogSubtitle => 'CATALYST KEY INCORRECT'; - - @override - String get incorrectUploadDialogContent => 'The Catalyst keychain that you entered or uploaded is incorrect, please try again.'; - - @override - String get incorrectUploadDialogTryAgainButton => 'Try again'; - - @override - String get finishAccountCreation => 'Finish account creation'; - - @override - String get connectDifferentWallet => 'Connect a different wallet'; - - @override - String get reviewRegistrationTransaction => 'Review registration transaction'; -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart b/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart deleted file mode 100644 index 4384ef7847..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_localization/lib/generated/catalyst_voices_localizations_es.dart +++ /dev/null @@ -1,1003 +0,0 @@ -import 'package:intl/intl.dart' as intl; - -import 'catalyst_voices_localizations.dart'; - -// ignore_for_file: type=lint - -/// The translations for Spanish Castilian (`es`). -class VoicesLocalizationsEs extends VoicesLocalizations { - VoicesLocalizationsEs([String locale = 'es']) : super(locale); - - @override - String get emailLabelText => 'Email'; - - @override - String get emailHintText => 'mail@example.com'; - - @override - String get emailErrorText => 'mail@example.com'; - - @override - String get cancelButtonText => 'Cancel'; - - @override - String get editButtonText => 'Edit'; - - @override - String get headerTooltipText => 'Header'; - - @override - String get placeholderRichText => 'Start writing your text...'; - - @override - String get supportingTextLabelText => 'Supporting text'; - - @override - String get saveButtonText => 'Save'; - - @override - String get passwordLabelText => 'Contraseña'; - - @override - String get passwordHintText => 'Mi1ContraseñaSecreta'; - - @override - String get passwordErrorText => 'La contraseña debe tener al menos 8 caracteres'; - - @override - String get loginTitleText => 'Acceso'; - - @override - String get loginButtonText => 'Acceso'; - - @override - String get loginScreenErrorMessage => 'Credenciales incorrectas'; - - @override - String get homeScreenText => 'Catalyst Voices'; - - @override - String get comingSoonSubtitle => 'Voices'; - - @override - String get comingSoonTitle1 => 'Coming'; - - @override - String get comingSoonTitle2 => 'soon'; - - @override - String get comingSoonDescription => 'Project Catalyst is the world\'s largest decentralized innovation engine for solving real-world challenges.'; - - @override - String get connectingStatusLabelText => 're-connecting'; - - @override - String get finishAccountButtonLabelText => 'Finish account'; - - @override - String get getStartedButtonLabelText => 'Get Started'; - - @override - String get unlockButtonLabelText => 'Unlock'; - - @override - String get userProfileGuestLabelText => 'Guest'; - - @override - String get searchButtonLabelText => '[cmd=K]'; - - @override - String get snackbarInfoLabelText => 'Info'; - - @override - String get snackbarInfoMessageText => 'This is an info message!'; - - @override - String get snackbarSuccessLabelText => 'Success'; - - @override - String get snackbarSuccessMessageText => 'This is a success message!'; - - @override - String get snackbarWarningLabelText => 'Warning'; - - @override - String get snackbarWarningMessageText => 'This is a warning message!'; - - @override - String get snackbarErrorLabelText => 'Error'; - - @override - String get snackbarErrorMessageText => 'This is an error message!'; - - @override - String get snackbarRefreshButtonText => 'Refresh'; - - @override - String get snackbarMoreButtonText => 'Learn more'; - - @override - String get snackbarOkButtonText => 'Ok'; - - @override - String seedPhraseSlotNr(int nr) { - return 'Slot $nr'; - } - - @override - String get proposalStatusReady => 'Ready'; - - @override - String get proposalStatusDraft => 'Draft'; - - @override - String get proposalStatusInProgress => 'In progress'; - - @override - String get proposalStatusPrivate => 'Private'; - - @override - String get proposalStatusLive => 'LIVE'; - - @override - String get proposalStatusCompleted => 'Completed'; - - @override - String get proposalStatusOpen => 'Open'; - - @override - String get fundedProposal => 'Funded proposal'; - - @override - String get publishedProposal => 'Published proposal'; - - @override - String fundedProposalDate(DateTime date) { - final intl.DateFormat dateDateFormat = intl.DateFormat.yMMMMd(localeName); - final String dateString = dateDateFormat.format(date); - - return 'Funded $dateString'; - } - - @override - String lastUpdateDate(String date) { - return 'Last update: $date.'; - } - - @override - String get fundsRequested => 'Funds requested'; - - @override - String noOfComments(num count) { - final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String countString = countNumberFormat.format(count); - - String _temp0 = intl.Intl.pluralLogic( - count, - locale: localeName, - other: 'comments', - one: 'comment', - zero: 'comments', - ); - return '$countString $_temp0'; - } - - @override - String noOfSegmentsCompleted(num completed, num total, num percentage) { - final intl.NumberFormat completedNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String completedString = completedNumberFormat.format(completed); - final intl.NumberFormat totalNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String totalString = totalNumberFormat.format(total); - final intl.NumberFormat percentageNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String percentageString = percentageNumberFormat.format(percentage); - - String _temp0 = intl.Intl.pluralLogic( - total, - locale: localeName, - other: 'segments', - one: 'segment', - zero: 'segments', - ); - return '$completedString of $totalString ($percentageString%) $_temp0 completed'; - } - - @override - String get today => 'Today'; - - @override - String get yesterday => 'Yesterday'; - - @override - String get twoDaysAgo => '2 days ago'; - - @override - String get tomorrow => 'Tomorrow'; - - @override - String get activeVotingRound => 'Active voting round 14'; - - @override - String noOfAllProposals(int count) { - return 'All proposals ($count)'; - } - - @override - String get favorites => 'Favorites'; - - @override - String get treasuryCampaignBuilder => 'Campaign builder'; - - @override - String get treasuryCampaignBuilderSegments => 'Segments'; - - @override - String get treasuryCampaignSetup => 'Setup Campaign'; - - @override - String get treasuryCampaignTitle => 'Campaign title'; - - @override - String get stepEdit => 'Edit'; - - @override - String get workspaceProposalNavigation => 'Proposal navigation'; - - @override - String get workspaceProposalNavigationSegments => 'Segments'; - - @override - String get workspaceProposalSetup => 'Proposal setup'; - - @override - String get drawerSpaceTreasury => 'Treasury'; - - @override - String get drawerSpaceDiscovery => 'Discovery'; - - @override - String get drawerSpaceWorkspace => 'Workspace'; - - @override - String get drawerSpaceVoting => 'Voting'; - - @override - String get drawerSpaceFundedProjects => 'Funded projects'; - - @override - String get fundedProjectSpace => 'Funded project space'; - - @override - String noOfFundedProposals(int count) { - return 'Funded proposals ($count)'; - } - - @override - String get followed => 'Followed'; - - @override - String get overallSpacesSearchBrands => 'Search Brands'; - - @override - String get overallSpacesTasks => 'Tasks'; - - @override - String get voicesUpdateReady => 'Voices update ready'; - - @override - String get clickToRestart => 'Click to restart'; - - @override - String get spaceTreasuryName => 'Treasury space'; - - @override - String get spaceDiscoveryName => 'Discovery space'; - - @override - String get spaceWorkspaceName => 'Workspace'; - - @override - String get spaceVotingName => 'Voting space'; - - @override - String get spaceFundedProjects => 'Funded project space'; - - @override - String get lock => 'Lock'; - - @override - String get unlock => 'Unlock'; - - @override - String get getStarted => 'Get Started'; - - @override - String get guest => 'Guest'; - - @override - String get visitor => 'Visitor'; - - @override - String get noConnectionBannerRefreshButtonText => 'Refresh'; - - @override - String get noConnectionBannerTitle => 'No internet connection'; - - @override - String get noConnectionBannerDescription => 'Your internet is playing hide and seek. Check your internet connection, or try again in a moment.'; - - @override - String get weakPasswordStrength => 'Weak password strength'; - - @override - String get normalPasswordStrength => 'Normal password strength'; - - @override - String get goodPasswordStrength => 'Good password strength'; - - @override - String get chooseCardanoWallet => 'Choose Cardano Wallet'; - - @override - String get chooseOtherWallet => 'Choose other wallet'; - - @override - String get learnMore => 'Learn More'; - - @override - String get walletLinkHeader => 'Link keys to your Catalyst Keychain'; - - @override - String get walletLinkWalletSubheader => 'Link your Cardano wallet'; - - @override - String get walletLinkRolesSubheader => 'Select your Catalyst roles'; - - @override - String get walletLinkTransactionSubheader => 'Sign your Catalyst roles to the\nCardano mainnet'; - - @override - String get walletLinkIntroTitle => 'Link Cardano Wallet & Catalyst Roles to you Catalyst Keychain.'; - - @override - String get walletLinkIntroContent => 'You\'re almost there! This is the final and most important step in your account setup.\n\nWe\'re going to link a Cardano Wallet to your Catalyst Keychain, so you can start collecting Role Keys.\n\nRole Keys allow you to enter new spaces, discover new ways to participate, and unlock new ways to earn rewards.\n\nWe\'ll start with your Voter Key by default. You can decide to add a Proposer Key and Drep key if you want, or you can always add them later.'; - - @override - String get walletLinkSelectWalletTitle => 'Select the Cardano wallet to link\nto your Catalyst Keychain.'; - - @override - String get walletLinkSelectWalletContent => 'To complete this action, you\'ll submit a signed transaction to Cardano. There will be an ADA transaction fee.'; - - @override - String get walletLinkWalletDetailsTitle => 'Cardano wallet detection'; - - @override - String walletLinkWalletDetailsContent(String wallet) { - return '$wallet connected successfully!'; - } - - @override - String get walletLinkWalletDetailsNotice => 'Wallet and role registrations require a minimal transaction fee. You can setup your default dApp connector wallet in your browser extension settings.'; - - @override - String get walletLinkWalletDetailsNoticeTopUp => 'Top up ADA'; - - @override - String get walletLinkWalletDetailsNoticeTopUpLink => 'Link to top-up provider'; - - @override - String get walletLinkTransactionTitle => 'Let\'s make sure everything looks right.'; - - @override - String get walletLinkTransactionAccountCompletion => 'Account completion for Catalyst'; - - @override - String walletLinkTransactionLinkItem(String wallet) { - return '1 Link $wallet to Catalyst Keychain'; - } - - @override - String get walletLinkTransactionPositiveSmallPrint => 'Positive small print'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem1 => 'Your registration is a one time event, cost will not renew periodically.'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem2 => 'Your registrations can be found under your account profile after completion.'; - - @override - String get walletLinkTransactionPositiveSmallPrintItem3 => 'All registration fees go into the Cardano Treasury.'; - - @override - String get walletLinkTransactionSign => 'Sign transaction with wallet'; - - @override - String get walletLinkTransactionChangeRoles => 'Change role setup'; - - @override - String walletLinkTransactionRoleItem(String role) { - return '1 $role registration to Catalyst Keychain'; - } - - @override - String get registrationTransactionFailed => 'Transaction failed'; - - @override - String get registrationInsufficientBalance => 'Insufficient balance, please top up your wallet.'; - - @override - String get registrationSeedPhraseNotFound => 'Seed phrase was not found. Make sure correct words are correct.'; - - @override - String get registrationUnlockPasswordNotFound => 'Password was not found. Make sure valid password was created.'; - - @override - String get registrationWalletNotFound => 'Wallet not found'; - - @override - String get walletLinkRoleChooserTitle => 'How do you want to participate in Catalyst?'; - - @override - String get walletLinkRoleChooserContent => 'In Catalyst you can take on different roles, learn more below and choose your additional roles now.'; - - @override - String get walletLinkRoleSummaryTitle => 'Is this your correct Catalyst role setup?'; - - @override - String get walletLinkRoleSummaryContent1 => 'You would like to register '; - - @override - String walletLinkRoleSummaryContent2(num count) { - final intl.NumberFormat countNumberFormat = intl.NumberFormat.compact( - locale: localeName, - - ); - final String countString = countNumberFormat.format(count); - - String _temp0 = intl.Intl.pluralLogic( - count, - locale: localeName, - other: 'roles', - one: 'role', - zero: 'roles', - ); - return '$countString active $_temp0'; - } - - @override - String get walletLinkRoleSummaryContent3 => ' in Catalyst.'; - - @override - String get seeAllSupportedWallets => 'See all supported wallets'; - - @override - String get walletDetectionSummary => 'Wallet detection summary'; - - @override - String get walletBalance => 'Wallet balance'; - - @override - String get walletAddress => 'Wallet address'; - - @override - String get accountCreationCreate => 'Create a new 
Catalyst Keychain'; - - @override - String get accountCreationRecover => 'Recover your
Catalyst Keychain'; - - @override - String get accountCreationOnThisDevice => 'On this device'; - - @override - String get accountCreationGetStartedTitle => 'Welcome to Catalyst'; - - @override - String get accountCreationGetStatedDesc => 'If you already have a Catalyst keychain you can restore it on this device, or you can create a new Catalyst Keychain.'; - - @override - String get accountCreationGetStatedWhatNext => 'What do you want to do?'; - - @override - String get myAccountProfileKeychain => 'My Account / Profile & Keychain'; - - @override - String get yourCatalystKeychainAndRoleRegistration => 'Your Catalyst keychain & role registration'; - - @override - String get profileAndKeychain => 'Profile & Keychain'; - - @override - String get removeKeychain => 'Remove Keychain'; - - @override - String get walletConnected => 'Wallet connected'; - - @override - String get currentRoleRegistrations => 'Current Role registrations'; - - @override - String get voter => 'Voter'; - - @override - String get proposer => 'Proposer'; - - @override - String get drep => 'Drep'; - - @override - String get defaultRole => 'Default'; - - @override - String get catalystKeychain => 'Catalyst Keychain'; - - @override - String get accountCreationSplashTitle => 'Create your Catalyst Keychain'; - - @override - String get accountCreationSplashMessage => 'Your keychain is your ticket to participate in 
distributed innovation on the global stage. 

Once you have it, you\'ll be able to enter different spaces, discover awesome ideas, and share your feedback to hep improve ideas. 

As you add new keys to your keychain, you\'ll be able to enter new spaces, unlock new rewards opportunities, and have your voice heard in community decisions.'; - - @override - String get accountCreationSplashNextButton => 'Create your Keychain now'; - - @override - String get accountInstructionsTitle => 'Great! Your Catalyst Keychain 
has been created.'; - - @override - String get accountInstructionsMessage => 'On the next screen, you\'re going to see 12 words. 
This is called your \"seed phrase\". 

It\'s like a super secure password that only you know, 
that allows you to prove ownership of your keychain. 

You\'ll use it to login and recover your account on 
different devices, so be sure to put it somewhere safe!\n\nYou need to write this seed phrase down with pen and paper, so get this ready.'; - - @override - String get next => 'Next'; - - @override - String get back => 'Back'; - - @override - String get retry => 'Retry'; - - @override - String get somethingWentWrong => 'Something went wrong.'; - - @override - String get noWalletFound => 'No wallet found.'; - - @override - String get deleteKeychainDialogTitle => 'Delete Keychain?'; - - @override - String get deleteKeychainDialogSubtitle => 'Are you sure you wants to delete your\nCatalyst Keychain from this device?'; - - @override - String get deleteKeychainDialogWarning => 'Make sure you have a working Catalyst 12-word seedphrase!'; - - @override - String get deleteKeychainDialogWarningInfo => 'Your Catalyst account will be removed,\nthis action cannot be undone!'; - - @override - String get deleteKeychainDialogTypingInfo => 'To avoid mistakes, please type ‘Remove Keychain’ below.'; - - @override - String get deleteKeychainDialogInputLabel => 'Confirm removal'; - - @override - String get deleteKeychainDialogErrorText => 'Error. Please type \'Remove Keychain\' to remove your account from this device.'; - - @override - String get deleteKeychainDialogRemovingPhrase => 'Remove Keychain'; - - @override - String get accountRoleDialogTitle => 'Learn about Catalyst Roles'; - - @override - String get accountRoleDialogButton => 'Continue Role setup'; - - @override - String accountRoleDialogRoleSummaryTitle(String role) { - return '$role role summary'; - } - - @override - String get voterVerboseName => 'Treasury guardian'; - - @override - String get proposerVerboseName => 'Main proposer'; - - @override - String get drepVerboseName => 'Community expert'; - - @override - String get voterDescription => 'The Voters are the guardians of Cardano treasury. They vote in projects for the growth of the Cardano Ecosystem.'; - - @override - String get proposerDescription => 'The Main Proposers are the Innovators in Project Catalyst, they are the shapers of the future.'; - - @override - String get drepDescription => 'The dRep has an Expert Role in the Cardano/Catalyst as people can delegate their vote to Cardano Experts.'; - - @override - String get voterSummarySelectFavorites => 'Select favorites'; - - @override - String get voterSummaryComment => 'Comment/Vote on Proposals'; - - @override - String get voterSummaryCastVotes => 'Cast your votes'; - - @override - String get voterSummaryVoterRewards => 'Voter rewards'; - - @override - String get proposerSummaryWriteEdit => 'Write/edit functionality'; - - @override - String get proposerSummarySubmitToFund => 'Rights to Submit to Fund'; - - @override - String get proposerSummaryInviteTeamMembers => 'Invite Team Members'; - - @override - String get proposerSummaryComment => 'Comment functionality'; - - @override - String get drepSummaryDelegatedVotes => 'Delegated Votes'; - - @override - String get drepSummaryRewards => 'dRep rewards'; - - @override - String get drepSummaryCastVotes => 'Cast delegated votes'; - - @override - String get drepSummaryComment => 'Comment Functionality'; - - @override - String get delete => 'Delete'; - - @override - String get close => 'Close'; - - @override - String get notice => 'Notice'; - - @override - String get yes => 'Yes'; - - @override - String get no => 'No'; - - @override - String get total => 'Total'; - - @override - String get file => 'file'; - - @override - String get key => 'key'; - - @override - String get upload => 'Upload'; - - @override - String get browse => 'browse'; - - @override - String uploadDropInfo(String itemNameToUpload) { - return 'Drop your $itemNameToUpload here or '; - } - - @override - String get uploadProgressInfo => 'Upload in progress'; - - @override - String get uploadKeychainTitle => 'Upload Catalyst Keychain'; - - @override - String get uploadKeychainInfo => 'Make sure it\'s a correct Catalyst keychain file.'; - - @override - String get themeLight => 'Light'; - - @override - String get themeDark => 'Dark'; - - @override - String get keychainDeletedDialogTitle => 'Catalyst keychain removed'; - - @override - String get keychainDeletedDialogSubtitle => 'Your Catalyst Keychain is removed successfully from this device.'; - - @override - String get keychainDeletedDialogInfo => 'We reverted this device to Catalyst first use.'; - - @override - String get registrationCompletedTitle => 'Catalyst account setup'; - - @override - String get registrationCompletedSubtitle => 'Completed!'; - - @override - String get registrationCompletedSummaryHeader => 'Summary'; - - @override - String get registrationCompletedKeychainTitle => 'Catalyst Keychain created'; - - @override - String get registrationCompletedKeychainInfo => 'You created a Catalyst Keychain, backed up its seed phrase and set an unlock password.'; - - @override - String registrationCompletedWalletTitle(String walletName) { - return 'Cardano $walletName wallet selected'; - } - - @override - String registrationCompletedWalletInfo(String walletName) { - return 'You selected your $walletName wallet as primary wallet for your voting power.'; - } - - @override - String get registrationCompletedRolesTitle => 'Catalyst roles selected'; - - @override - String get registrationCompletedRolesInfo => 'You linked your Cardano wallet and selected Catalyst roles via a signed transaction.'; - - @override - String get registrationCompletedRoleRegistration => 'role registration'; - - @override - String get registrationCompletedDiscoveryButton => 'Open Discovery Dashboard'; - - @override - String get registrationCompletedAccountButton => 'Review my account'; - - @override - String get createKeychainSeedPhraseSubtitle => 'Write down your 12 Catalyst 
security words'; - - @override - String get createKeychainSeedPhraseBody => 'Make sure you create an offline backup of your recovery phrase as well.'; - - @override - String get createKeychainSeedPhraseDownload => 'Download Catalyst key'; - - @override - String get createKeychainSeedPhraseStoreConfirmation => 'I have written down/downloaded my 12 words'; - - @override - String get createKeychainSeedPhraseCheckInstructionsTitle => 'Check your Catalyst security keys'; - - @override - String get createKeychainSeedPhraseCheckInstructionsSubtitle => 'Next, we\'re going to make sure that you\'ve written down your words correctly. 

We don\'t save your seed phrase, so it\'s important 
to make sure you have it right. That\'s why we do this confirmation before continuing. 

It\'s also good practice to get familiar with using a seed phrase if you\'re new to crypto.'; - - @override - String get createKeychainSeedPhraseCheckSubtitle => 'Input your Catalyst security keys'; - - @override - String get createKeychainSeedPhraseCheckBody => 'Select your 12 written down words in 
the correct order.'; - - @override - String get uploadCatalystKey => 'Upload Catalyst Key'; - - @override - String get reset => 'Reset'; - - @override - String get createKeychainSeedPhraseCheckSuccessTitle => 'Nice job! You\'ve successfully verified the seed phrase for your keychain.'; - - @override - String get createKeychainSeedPhraseCheckSuccessSubtitle => 'Enter your seed phrase to recover your Catalyst Keychain on any device.

It\'s kinda like your email and password all rolled into one, so keep it somewhere safe!

In the next step we\'ll add a password to your Catalyst Keychain, so you can lock/unlock access to Voices.'; - - @override - String get yourNextStep => 'Your next step'; - - @override - String get createKeychainSeedPhraseCheckSuccessNextStep => 'Now let’s set your Unlock password for this device!'; - - @override - String get createKeychainUnlockPasswordInstructionsTitle => 'Set your Catalyst unlock password 
for this device'; - - @override - String get createKeychainUnlockPasswordInstructionsSubtitle => 'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'; - - @override - String get createKeychainCreatedTitle => 'Congratulations your Catalyst 
Keychain is created!'; - - @override - String get createKeychainCreatedNextStep => 'In the next step you write your Catalyst roles and 
account to the Cardano Mainnet.'; - - @override - String get createKeychainLinkWalletAndRoles => 'Link your Cardano Wallet & Roles'; - - @override - String get registrationCreateKeychainStepGroup => 'Catalyst Keychain created'; - - @override - String get registrationLinkWalletStepGroup => 'Link Cardano Wallet & Roles'; - - @override - String get registrationCompletedStepGroup => 'Catalyst account creation completed!'; - - @override - String get createKeychainUnlockPasswordIntoSubtitle => 'Catalyst unlock password'; - - @override - String get createKeychainUnlockPasswordIntoBody => 'Please provide a password for your Catalyst Keychain.'; - - @override - String get enterPassword => 'Enter password'; - - @override - String get confirmPassword => 'Confirm password'; - - @override - String xCharactersMinimum(int number) { - return '$number characters minimum length'; - } - - @override - String get passwordDoNotMatch => 'Passwords do not match, please correct'; - - @override - String get warning => 'Warning'; - - @override - String get alert => 'Alert'; - - @override - String get registrationExitConfirmDialogSubtitle => 'Account creation incomplete!'; - - @override - String get registrationExitConfirmDialogContent => 'If attempt to leave without creating your keychain - account creation will be incomplete. 

You are not able to login without 
completing your keychain.'; - - @override - String get registrationExitConfirmDialogContinue => 'Continue keychain creation'; - - @override - String get cancelAnyways => 'Cancel anyway'; - - @override - String get recoverCatalystKeychain => 'Restore Catalyst keychain'; - - @override - String get recoverKeychainMethodsTitle => 'Restore your Catalyst Keychain'; - - @override - String get recoverKeychainMethodsNoKeychainFound => 'No Catalyst Keychain found on this device.'; - - @override - String get recoverKeychainMethodsSubtitle => 'Not to worry, in the next step you can choose the recovery option that applies to you for this device!'; - - @override - String get recoverKeychainMethodsListTitle => 'How do you want Restore your Catalyst Keychain?'; - - @override - String get recoverKeychainNonFound => 'No Catalyst Keychain found
on this device.'; - - @override - String get recoverKeychainFound => 'Keychain found! 
Please unlock your device.'; - - @override - String get seedPhrase12Words => '12 security words'; - - @override - String get recoverySeedPhraseInstructionsTitle => 'Restore your Catalyst Keychain with 
your 12 security words.'; - - @override - String get recoverySeedPhraseInstructionsSubtitle => 'Enter your security words in the correct order, and sign into your Catalyst account on a new device.'; - - @override - String get recoverySeedPhraseInputTitle => 'Restore your Catalyst Keychain with 
your 12 security words'; - - @override - String get recoverySeedPhraseInputSubtitle => 'Enter each word of your Catalyst Key in the right order 
to bring your Catalyst account to this device.'; - - @override - String get recoveryAccountTitle => 'Catalyst account recovery'; - - @override - String get recoveryAccountSuccessTitle => 'Keychain recovered successfully!'; - - @override - String get recoveryAccountDetailsAction => 'Set unlock password for this device'; - - @override - String get recoveryUnlockPasswordInstructionsTitle => 'Set your Catalyst unlock password f
or this device'; - - @override - String get recoveryUnlockPasswordInstructionsSubtitle => 'With over 300 trillion possible combinations, your 12 word seed phrase is great for keeping your account safe. 

But it can be a bit tedious to enter every single time you want to use the app. 

In this next step, you\'ll set your Unlock Password for your current device. It\'s like a shortcut for proving ownership of your Keychain. 

Whenever you recover your account for the first time on a new device, you\'ll need to use your Catalyst Keychain to get started. Every time after that, you can use your Unlock Password to quickly regain access.'; - - @override - String get recoverDifferentKeychain => 'Restore a different keychain'; - - @override - String get unlockDialogHeader => 'Unlock Catalyst'; - - @override - String get unlockDialogTitle => 'Welcome back!'; - - @override - String get unlockDialogContent => 'Please enter your device specific unlock password\nto unlock Catalyst Voices.'; - - @override - String get unlockDialogHint => 'Enter your Unlock password'; - - @override - String get unlockDialogIncorrectPassword => 'Password is incorrect, try again.'; - - @override - String get continueAsGuest => 'Continue as guest'; - - @override - String get unlockSnackbarTitle => 'Catalyst unlocked!'; - - @override - String get unlockSnackbarMessage => 'You can now fully use the application.'; - - @override - String get lockSnackbarTitle => 'Catalyst locked'; - - @override - String get lockSnackbarMessage => 'Catalyst is now in guest/locked mode.'; - - @override - String get recoverySuccessTitle => 'Congratulations your Catalyst 
Keychain is restored!'; - - @override - String get recoverySuccessSubtitle => 'You have successfully restored your Catalyst Keychain, and unlocked Catalyst Voices on this device.'; - - @override - String get recoverySuccessGoToDashboard => 'Jump into the Discovery space / Dashboard'; - - @override - String get recoverySuccessGoAccount => 'Check my account'; - - @override - String get recoveryExitConfirmDialogSubtitle => '12 word keychain restoration incomplete'; - - @override - String get recoveryExitConfirmDialogContent => 'Please continue your Catalyst Keychain restoration, if you cancel all input will be lost.'; - - @override - String get recoveryExitConfirmDialogContinue => 'Continue recovery process'; - - @override - String get recoverAccount => 'Recover account'; - - @override - String get uploadConfirmDialogSubtitle => 'SWITCH TO FILE UPLOAD'; - - @override - String get uploadConfirmDialogContent => 'Do you want to cancel manual input, and switch to Catalyst key upload?'; - - @override - String get uploadConfirmDialogYesButton => 'Yes, switch to Catalyst key upload'; - - @override - String get uploadConfirmDialogResumeButton => 'Resume manual inputs'; - - @override - String get incorrectUploadDialogSubtitle => 'CATALYST KEY INCORRECT'; - - @override - String get incorrectUploadDialogContent => 'The Catalyst keychain that you entered or uploaded is incorrect, please try again.'; - - @override - String get incorrectUploadDialogTryAgainButton => 'Try again'; - - @override - String get finishAccountCreation => 'Finish account creation'; - - @override - String get connectDifferentWallet => 'Connect a different wallet'; - - @override - String get reviewRegistrationTransaction => 'Review registration transaction'; -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.enums.swagger.dart b/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.enums.swagger.dart deleted file mode 100644 index a88cc123f5..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.enums.swagger.dart +++ /dev/null @@ -1,106 +0,0 @@ -import 'package:json_annotation/json_annotation.dart'; -import 'package:collection/collection.dart'; - -enum DeepQueryInspectionFlag { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('enabled') - enabled('enabled'), - @JsonValue('disabled') - disabled('disabled'); - - final String? value; - - const DeepQueryInspectionFlag(this.value); -} - -enum LogLevel { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('debug') - debug('debug'), - @JsonValue('info') - info('info'), - @JsonValue('warn') - warn('warn'), - @JsonValue('error') - error('error'); - - final String? value; - - const LogLevel(this.value); -} - -enum Network { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('mainnet') - mainnet('mainnet'), - @JsonValue('preprod') - preprod('preprod'), - @JsonValue('preview') - preview('preview'); - - final String? value; - - const Network(this.value); -} - -enum ReasonRejected { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('FragmentAlreadyInLog') - fragmentalreadyinlog('FragmentAlreadyInLog'), - @JsonValue('FragmentInvalid') - fragmentinvalid('FragmentInvalid'), - @JsonValue('PreviousFragmentInvalid') - previousfragmentinvalid('PreviousFragmentInvalid'), - @JsonValue('PoolOverflow') - pooloverflow('PoolOverflow'); - - final String? value; - - const ReasonRejected(this.value); -} - -enum VoterGroupId { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('rep') - rep('rep'), - @JsonValue('direct') - direct('direct'); - - final String? value; - - const VoterGroupId(this.value); -} - -enum VotingInfoDelegationsType { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('Delegated') - delegated('Delegated'); - - final String? value; - - const VotingInfoDelegationsType(this.value); -} - -enum VotingInfoDirectVoterType { - @JsonValue(null) - swaggerGeneratedUnknown(null), - - @JsonValue('Direct') - direct('Direct'); - - final String? value; - - const VotingInfoDirectVoterType(this.value); -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.dart b/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.dart deleted file mode 100644 index a2f5526c24..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.dart +++ /dev/null @@ -1,3073 +0,0 @@ -// ignore_for_file: type=lint - -import 'package:json_annotation/json_annotation.dart'; -import 'package:collection/collection.dart'; -import 'dart:convert'; - -import 'cat_gateway_api.enums.swagger.dart' as enums; - -part 'cat_gateway_api.models.swagger.g.dart'; - -@JsonSerializable(explicitToJson: true) -class AccountVote { - const AccountVote({ - required this.votePlanId, - required this.votes, - }); - - factory AccountVote.fromJson(Map json) => - _$AccountVoteFromJson(json); - - static const toJsonFactory = _$AccountVoteToJson; - Map toJson() => _$AccountVoteToJson(this); - - @JsonKey(name: 'vote_plan_id') - final String votePlanId; - @JsonKey(name: 'votes', defaultValue: []) - final List votes; - static const fromJsonFactory = _$AccountVoteFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is AccountVote && - (identical(other.votePlanId, votePlanId) || - const DeepCollectionEquality() - .equals(other.votePlanId, votePlanId)) && - (identical(other.votes, votes) || - const DeepCollectionEquality().equals(other.votes, votes))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(votePlanId) ^ - const DeepCollectionEquality().hash(votes) ^ - runtimeType.hashCode; -} - -extension $AccountVoteExtension on AccountVote { - AccountVote copyWith({String? votePlanId, List? votes}) { - return AccountVote( - votePlanId: votePlanId ?? this.votePlanId, votes: votes ?? this.votes); - } - - AccountVote copyWithWrapped( - {Wrapped? votePlanId, Wrapped>? votes}) { - return AccountVote( - votePlanId: (votePlanId != null ? votePlanId.value : this.votePlanId), - votes: (votes != null ? votes.value : this.votes)); - } -} - -@JsonSerializable(explicitToJson: true) -class BlockDate { - const BlockDate({ - required this.epoch, - required this.slotId, - }); - - factory BlockDate.fromJson(Map json) => - _$BlockDateFromJson(json); - - static const toJsonFactory = _$BlockDateToJson; - Map toJson() => _$BlockDateToJson(this); - - @JsonKey(name: 'epoch') - final int epoch; - @JsonKey(name: 'slot_id') - final int slotId; - static const fromJsonFactory = _$BlockDateFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is BlockDate && - (identical(other.epoch, epoch) || - const DeepCollectionEquality().equals(other.epoch, epoch)) && - (identical(other.slotId, slotId) || - const DeepCollectionEquality().equals(other.slotId, slotId))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(epoch) ^ - const DeepCollectionEquality().hash(slotId) ^ - runtimeType.hashCode; -} - -extension $BlockDateExtension on BlockDate { - BlockDate copyWith({int? epoch, int? slotId}) { - return BlockDate(epoch: epoch ?? this.epoch, slotId: slotId ?? this.slotId); - } - - BlockDate copyWithWrapped({Wrapped? epoch, Wrapped? slotId}) { - return BlockDate( - epoch: (epoch != null ? epoch.value : this.epoch), - slotId: (slotId != null ? slotId.value : this.slotId)); - } -} - -@JsonSerializable(explicitToJson: true) -class Cip36Info { - const Cip36Info({ - required this.stakePubKey, - required this.nonce, - required this.slotNo, - required this.txn, - required this.voteKey, - required this.paymentAddress, - required this.isPayable, - required this.cip36, - }); - - factory Cip36Info.fromJson(Map json) => - _$Cip36InfoFromJson(json); - - static const toJsonFactory = _$Cip36InfoToJson; - Map toJson() => _$Cip36InfoToJson(this); - - @JsonKey(name: 'stake_pub_key') - final String stakePubKey; - @JsonKey(name: 'nonce') - final int nonce; - @JsonKey(name: 'slot_no') - final int slotNo; - @JsonKey(name: 'txn') - final int txn; - @JsonKey(name: 'vote_key') - final String voteKey; - @JsonKey(name: 'payment_address') - final String paymentAddress; - @JsonKey(name: 'is_payable') - final bool isPayable; - @JsonKey(name: 'cip36') - final bool cip36; - static const fromJsonFactory = _$Cip36InfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Cip36Info && - (identical(other.stakePubKey, stakePubKey) || - const DeepCollectionEquality() - .equals(other.stakePubKey, stakePubKey)) && - (identical(other.nonce, nonce) || - const DeepCollectionEquality().equals(other.nonce, nonce)) && - (identical(other.slotNo, slotNo) || - const DeepCollectionEquality().equals(other.slotNo, slotNo)) && - (identical(other.txn, txn) || - const DeepCollectionEquality().equals(other.txn, txn)) && - (identical(other.voteKey, voteKey) || - const DeepCollectionEquality() - .equals(other.voteKey, voteKey)) && - (identical(other.paymentAddress, paymentAddress) || - const DeepCollectionEquality() - .equals(other.paymentAddress, paymentAddress)) && - (identical(other.isPayable, isPayable) || - const DeepCollectionEquality() - .equals(other.isPayable, isPayable)) && - (identical(other.cip36, cip36) || - const DeepCollectionEquality().equals(other.cip36, cip36))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(stakePubKey) ^ - const DeepCollectionEquality().hash(nonce) ^ - const DeepCollectionEquality().hash(slotNo) ^ - const DeepCollectionEquality().hash(txn) ^ - const DeepCollectionEquality().hash(voteKey) ^ - const DeepCollectionEquality().hash(paymentAddress) ^ - const DeepCollectionEquality().hash(isPayable) ^ - const DeepCollectionEquality().hash(cip36) ^ - runtimeType.hashCode; -} - -extension $Cip36InfoExtension on Cip36Info { - Cip36Info copyWith( - {String? stakePubKey, - int? nonce, - int? slotNo, - int? txn, - String? voteKey, - String? paymentAddress, - bool? isPayable, - bool? cip36}) { - return Cip36Info( - stakePubKey: stakePubKey ?? this.stakePubKey, - nonce: nonce ?? this.nonce, - slotNo: slotNo ?? this.slotNo, - txn: txn ?? this.txn, - voteKey: voteKey ?? this.voteKey, - paymentAddress: paymentAddress ?? this.paymentAddress, - isPayable: isPayable ?? this.isPayable, - cip36: cip36 ?? this.cip36); - } - - Cip36Info copyWithWrapped( - {Wrapped? stakePubKey, - Wrapped? nonce, - Wrapped? slotNo, - Wrapped? txn, - Wrapped? voteKey, - Wrapped? paymentAddress, - Wrapped? isPayable, - Wrapped? cip36}) { - return Cip36Info( - stakePubKey: - (stakePubKey != null ? stakePubKey.value : this.stakePubKey), - nonce: (nonce != null ? nonce.value : this.nonce), - slotNo: (slotNo != null ? slotNo.value : this.slotNo), - txn: (txn != null ? txn.value : this.txn), - voteKey: (voteKey != null ? voteKey.value : this.voteKey), - paymentAddress: (paymentAddress != null - ? paymentAddress.value - : this.paymentAddress), - isPayable: (isPayable != null ? isPayable.value : this.isPayable), - cip36: (cip36 != null ? cip36.value : this.cip36)); - } -} - -@JsonSerializable(explicitToJson: true) -class Cip36Reporting { - const Cip36Reporting({ - required this.cip36, - required this.invalids, - }); - - factory Cip36Reporting.fromJson(Map json) => - _$Cip36ReportingFromJson(json); - - static const toJsonFactory = _$Cip36ReportingToJson; - Map toJson() => _$Cip36ReportingToJson(this); - - @JsonKey(name: 'cip36', defaultValue: []) - final List cip36; - @JsonKey(name: 'invalids', defaultValue: []) - final List invalids; - static const fromJsonFactory = _$Cip36ReportingFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Cip36Reporting && - (identical(other.cip36, cip36) || - const DeepCollectionEquality().equals(other.cip36, cip36)) && - (identical(other.invalids, invalids) || - const DeepCollectionEquality() - .equals(other.invalids, invalids))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(cip36) ^ - const DeepCollectionEquality().hash(invalids) ^ - runtimeType.hashCode; -} - -extension $Cip36ReportingExtension on Cip36Reporting { - Cip36Reporting copyWith( - {List? cip36, List? invalids}) { - return Cip36Reporting( - cip36: cip36 ?? this.cip36, invalids: invalids ?? this.invalids); - } - - Cip36Reporting copyWithWrapped( - {Wrapped>? cip36, - Wrapped>? invalids}) { - return Cip36Reporting( - cip36: (cip36 != null ? cip36.value : this.cip36), - invalids: (invalids != null ? invalids.value : this.invalids)); - } -} - -@JsonSerializable(explicitToJson: true) -class Cip36ReportingList { - const Cip36ReportingList({ - required this.cip36, - }); - - factory Cip36ReportingList.fromJson(Map json) => - _$Cip36ReportingListFromJson(json); - - static const toJsonFactory = _$Cip36ReportingListToJson; - Map toJson() => _$Cip36ReportingListToJson(this); - - @JsonKey(name: 'cip36', defaultValue: []) - final List cip36; - static const fromJsonFactory = _$Cip36ReportingListFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Cip36ReportingList && - (identical(other.cip36, cip36) || - const DeepCollectionEquality().equals(other.cip36, cip36))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(cip36) ^ runtimeType.hashCode; -} - -extension $Cip36ReportingListExtension on Cip36ReportingList { - Cip36ReportingList copyWith({List? cip36}) { - return Cip36ReportingList(cip36: cip36 ?? this.cip36); - } - - Cip36ReportingList copyWithWrapped({Wrapped>? cip36}) { - return Cip36ReportingList( - cip36: (cip36 != null ? cip36.value : this.cip36)); - } -} - -@JsonSerializable(explicitToJson: true) -class ConfigBadRequest { - const ConfigBadRequest({ - required this.error, - this.schemaValidationErrors, - }); - - factory ConfigBadRequest.fromJson(Map json) => - _$ConfigBadRequestFromJson(json); - - static const toJsonFactory = _$ConfigBadRequestToJson; - Map toJson() => _$ConfigBadRequestToJson(this); - - @JsonKey(name: 'error') - final String error; - @JsonKey(name: 'schema_validation_errors', defaultValue: []) - final List? schemaValidationErrors; - static const fromJsonFactory = _$ConfigBadRequestFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is ConfigBadRequest && - (identical(other.error, error) || - const DeepCollectionEquality().equals(other.error, error)) && - (identical(other.schemaValidationErrors, schemaValidationErrors) || - const DeepCollectionEquality().equals( - other.schemaValidationErrors, schemaValidationErrors))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(error) ^ - const DeepCollectionEquality().hash(schemaValidationErrors) ^ - runtimeType.hashCode; -} - -extension $ConfigBadRequestExtension on ConfigBadRequest { - ConfigBadRequest copyWith( - {String? error, List? schemaValidationErrors}) { - return ConfigBadRequest( - error: error ?? this.error, - schemaValidationErrors: - schemaValidationErrors ?? this.schemaValidationErrors); - } - - ConfigBadRequest copyWithWrapped( - {Wrapped? error, - Wrapped?>? schemaValidationErrors}) { - return ConfigBadRequest( - error: (error != null ? error.value : this.error), - schemaValidationErrors: (schemaValidationErrors != null - ? schemaValidationErrors.value - : this.schemaValidationErrors)); - } -} - -@JsonSerializable(explicitToJson: true) -class ContentErrorDetail { - const ContentErrorDetail({ - this.loc, - this.msg, - this.type, - }); - - factory ContentErrorDetail.fromJson(Map json) => - _$ContentErrorDetailFromJson(json); - - static const toJsonFactory = _$ContentErrorDetailToJson; - Map toJson() => _$ContentErrorDetailToJson(this); - - @JsonKey(name: 'loc', defaultValue: []) - final List? loc; - @JsonKey(name: 'msg') - final String? msg; - @JsonKey(name: 'type') - final String? type; - static const fromJsonFactory = _$ContentErrorDetailFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is ContentErrorDetail && - (identical(other.loc, loc) || - const DeepCollectionEquality().equals(other.loc, loc)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(loc) ^ - const DeepCollectionEquality().hash(msg) ^ - const DeepCollectionEquality().hash(type) ^ - runtimeType.hashCode; -} - -extension $ContentErrorDetailExtension on ContentErrorDetail { - ContentErrorDetail copyWith({List? loc, String? msg, String? type}) { - return ContentErrorDetail( - loc: loc ?? this.loc, msg: msg ?? this.msg, type: type ?? this.type); - } - - ContentErrorDetail copyWithWrapped( - {Wrapped?>? loc, - Wrapped? msg, - Wrapped? type}) { - return ContentErrorDetail( - loc: (loc != null ? loc.value : this.loc), - msg: (msg != null ? msg.value : this.msg), - type: (type != null ? type.value : this.type)); - } -} - -@JsonSerializable(explicitToJson: true) -class DelegatePublicKey { - const DelegatePublicKey({ - required this.address, - }); - - factory DelegatePublicKey.fromJson(Map json) => - _$DelegatePublicKeyFromJson(json); - - static const toJsonFactory = _$DelegatePublicKeyToJson; - Map toJson() => _$DelegatePublicKeyToJson(this); - - @JsonKey(name: 'address') - final String address; - static const fromJsonFactory = _$DelegatePublicKeyFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is DelegatePublicKey && - (identical(other.address, address) || - const DeepCollectionEquality().equals(other.address, address))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(address) ^ runtimeType.hashCode; -} - -extension $DelegatePublicKeyExtension on DelegatePublicKey { - DelegatePublicKey copyWith({String? address}) { - return DelegatePublicKey(address: address ?? this.address); - } - - DelegatePublicKey copyWithWrapped({Wrapped? address}) { - return DelegatePublicKey( - address: (address != null ? address.value : this.address)); - } -} - -@JsonSerializable(explicitToJson: true) -class Delegation { - const Delegation({ - required this.votingKey, - required this.power, - }); - - factory Delegation.fromJson(Map json) => - _$DelegationFromJson(json); - - static const toJsonFactory = _$DelegationToJson; - Map toJson() => _$DelegationToJson(this); - - @JsonKey(name: 'voting_key') - final String votingKey; - @JsonKey(name: 'power') - final int power; - static const fromJsonFactory = _$DelegationFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Delegation && - (identical(other.votingKey, votingKey) || - const DeepCollectionEquality() - .equals(other.votingKey, votingKey)) && - (identical(other.power, power) || - const DeepCollectionEquality().equals(other.power, power))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(votingKey) ^ - const DeepCollectionEquality().hash(power) ^ - runtimeType.hashCode; -} - -extension $DelegationExtension on Delegation { - Delegation copyWith({String? votingKey, int? power}) { - return Delegation( - votingKey: votingKey ?? this.votingKey, power: power ?? this.power); - } - - Delegation copyWithWrapped( - {Wrapped? votingKey, Wrapped? power}) { - return Delegation( - votingKey: (votingKey != null ? votingKey.value : this.votingKey), - power: (power != null ? power.value : this.power)); - } -} - -@JsonSerializable(explicitToJson: true) -class Delegations { - const Delegations({ - required this.delegations, - }); - - factory Delegations.fromJson(Map json) => - _$DelegationsFromJson(json); - - static const toJsonFactory = _$DelegationsToJson; - Map toJson() => _$DelegationsToJson(this); - - @JsonKey(name: 'delegations', defaultValue: []) - final List delegations; - static const fromJsonFactory = _$DelegationsFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Delegations && - (identical(other.delegations, delegations) || - const DeepCollectionEquality() - .equals(other.delegations, delegations))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(delegations) ^ runtimeType.hashCode; -} - -extension $DelegationsExtension on Delegations { - Delegations copyWith({List? delegations}) { - return Delegations(delegations: delegations ?? this.delegations); - } - - Delegations copyWithWrapped({Wrapped>? delegations}) { - return Delegations( - delegations: - (delegations != null ? delegations.value : this.delegations)); - } -} - -@JsonSerializable(explicitToJson: true) -class DirectVoter { - const DirectVoter({ - required this.votingKey, - }); - - factory DirectVoter.fromJson(Map json) => - _$DirectVoterFromJson(json); - - static const toJsonFactory = _$DirectVoterToJson; - Map toJson() => _$DirectVoterToJson(this); - - @JsonKey(name: 'voting_key') - final String votingKey; - static const fromJsonFactory = _$DirectVoterFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is DirectVoter && - (identical(other.votingKey, votingKey) || - const DeepCollectionEquality() - .equals(other.votingKey, votingKey))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(votingKey) ^ runtimeType.hashCode; -} - -extension $DirectVoterExtension on DirectVoter { - DirectVoter copyWith({String? votingKey}) { - return DirectVoter(votingKey: votingKey ?? this.votingKey); - } - - DirectVoter copyWithWrapped({Wrapped? votingKey}) { - return DirectVoter( - votingKey: (votingKey != null ? votingKey.value : this.votingKey)); - } -} - -@JsonSerializable(explicitToJson: true) -class Forbidden { - const Forbidden({ - required this.id, - required this.msg, - this.required, - }); - - factory Forbidden.fromJson(Map json) => - _$ForbiddenFromJson(json); - - static const toJsonFactory = _$ForbiddenToJson; - Map toJson() => _$ForbiddenToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'msg') - final String msg; - @JsonKey(name: 'required', defaultValue: []) - final List? required; - static const fromJsonFactory = _$ForbiddenFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Forbidden && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg)) && - (identical(other.required, required) || - const DeepCollectionEquality() - .equals(other.required, required))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(msg) ^ - const DeepCollectionEquality().hash(required) ^ - runtimeType.hashCode; -} - -extension $ForbiddenExtension on Forbidden { - Forbidden copyWith({String? id, String? msg, List? required}) { - return Forbidden( - id: id ?? this.id, - msg: msg ?? this.msg, - required: required ?? this.required); - } - - Forbidden copyWithWrapped( - {Wrapped? id, - Wrapped? msg, - Wrapped?>? required}) { - return Forbidden( - id: (id != null ? id.value : this.id), - msg: (msg != null ? msg.value : this.msg), - required: (required != null ? required.value : this.required)); - } -} - -@JsonSerializable(explicitToJson: true) -class FragmentStatus { - const FragmentStatus(); - - factory FragmentStatus.fromJson(Map json) => - _$FragmentStatusFromJson(json); - - static const toJsonFactory = _$FragmentStatusToJson; - Map toJson() => _$FragmentStatusToJson(this); - - static const fromJsonFactory = _$FragmentStatusFromJson; - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => runtimeType.hashCode; -} - -@JsonSerializable(explicitToJson: true) -class FragmentsBatch { - const FragmentsBatch({ - required this.failFast, - required this.fragments, - }); - - factory FragmentsBatch.fromJson(Map json) => - _$FragmentsBatchFromJson(json); - - static const toJsonFactory = _$FragmentsBatchToJson; - Map toJson() => _$FragmentsBatchToJson(this); - - @JsonKey(name: 'fail_fast') - final bool failFast; - @JsonKey(name: 'fragments', defaultValue: []) - final List fragments; - static const fromJsonFactory = _$FragmentsBatchFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is FragmentsBatch && - (identical(other.failFast, failFast) || - const DeepCollectionEquality() - .equals(other.failFast, failFast)) && - (identical(other.fragments, fragments) || - const DeepCollectionEquality() - .equals(other.fragments, fragments))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(failFast) ^ - const DeepCollectionEquality().hash(fragments) ^ - runtimeType.hashCode; -} - -extension $FragmentsBatchExtension on FragmentsBatch { - FragmentsBatch copyWith({bool? failFast, List? fragments}) { - return FragmentsBatch( - failFast: failFast ?? this.failFast, - fragments: fragments ?? this.fragments); - } - - FragmentsBatch copyWithWrapped( - {Wrapped? failFast, Wrapped>? fragments}) { - return FragmentsBatch( - failFast: (failFast != null ? failFast.value : this.failFast), - fragments: (fragments != null ? fragments.value : this.fragments)); - } -} - -@JsonSerializable(explicitToJson: true) -class FragmentsProcessingSummary { - const FragmentsProcessingSummary({ - required this.accepted, - required this.rejected, - }); - - factory FragmentsProcessingSummary.fromJson(Map json) => - _$FragmentsProcessingSummaryFromJson(json); - - static const toJsonFactory = _$FragmentsProcessingSummaryToJson; - Map toJson() => _$FragmentsProcessingSummaryToJson(this); - - @JsonKey(name: 'accepted', defaultValue: []) - final List accepted; - @JsonKey(name: 'rejected', defaultValue: []) - final List rejected; - static const fromJsonFactory = _$FragmentsProcessingSummaryFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is FragmentsProcessingSummary && - (identical(other.accepted, accepted) || - const DeepCollectionEquality() - .equals(other.accepted, accepted)) && - (identical(other.rejected, rejected) || - const DeepCollectionEquality() - .equals(other.rejected, rejected))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(accepted) ^ - const DeepCollectionEquality().hash(rejected) ^ - runtimeType.hashCode; -} - -extension $FragmentsProcessingSummaryExtension on FragmentsProcessingSummary { - FragmentsProcessingSummary copyWith( - {List? accepted, List? rejected}) { - return FragmentsProcessingSummary( - accepted: accepted ?? this.accepted, - rejected: rejected ?? this.rejected); - } - - FragmentsProcessingSummary copyWithWrapped( - {Wrapped>? accepted, - Wrapped>? rejected}) { - return FragmentsProcessingSummary( - accepted: (accepted != null ? accepted.value : this.accepted), - rejected: (rejected != null ? rejected.value : this.rejected)); - } -} - -@JsonSerializable(explicitToJson: true) -class FrontendConfig { - const FrontendConfig({ - this.sentry, - }); - - factory FrontendConfig.fromJson(Map json) => - _$FrontendConfigFromJson(json); - - static const toJsonFactory = _$FrontendConfigToJson; - Map toJson() => _$FrontendConfigToJson(this); - - @JsonKey(name: 'sentry') - final Sentry? sentry; - static const fromJsonFactory = _$FrontendConfigFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is FrontendConfig && - (identical(other.sentry, sentry) || - const DeepCollectionEquality().equals(other.sentry, sentry))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(sentry) ^ runtimeType.hashCode; -} - -extension $FrontendConfigExtension on FrontendConfig { - FrontendConfig copyWith({Sentry? sentry}) { - return FrontendConfig(sentry: sentry ?? this.sentry); - } - - FrontendConfig copyWithWrapped({Wrapped? sentry}) { - return FrontendConfig( - sentry: (sentry != null ? sentry.value : this.sentry)); - } -} - -@JsonSerializable(explicitToJson: true) -class FullStakeInfo { - const FullStakeInfo({ - required this.volatile, - required this.persistent, - }); - - factory FullStakeInfo.fromJson(Map json) => - _$FullStakeInfoFromJson(json); - - static const toJsonFactory = _$FullStakeInfoToJson; - Map toJson() => _$FullStakeInfoToJson(this); - - @JsonKey(name: 'volatile') - final StakeInfo volatile; - @JsonKey(name: 'persistent') - final StakeInfo persistent; - static const fromJsonFactory = _$FullStakeInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is FullStakeInfo && - (identical(other.volatile, volatile) || - const DeepCollectionEquality() - .equals(other.volatile, volatile)) && - (identical(other.persistent, persistent) || - const DeepCollectionEquality() - .equals(other.persistent, persistent))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(volatile) ^ - const DeepCollectionEquality().hash(persistent) ^ - runtimeType.hashCode; -} - -extension $FullStakeInfoExtension on FullStakeInfo { - FullStakeInfo copyWith({StakeInfo? volatile, StakeInfo? persistent}) { - return FullStakeInfo( - volatile: volatile ?? this.volatile, - persistent: persistent ?? this.persistent); - } - - FullStakeInfo copyWithWrapped( - {Wrapped? volatile, Wrapped? persistent}) { - return FullStakeInfo( - volatile: (volatile != null ? volatile.value : this.volatile), - persistent: (persistent != null ? persistent.value : this.persistent)); - } -} - -@JsonSerializable(explicitToJson: true) -class Hash { - const Hash({ - required this.hash, - }); - - factory Hash.fromJson(Map json) => _$HashFromJson(json); - - static const toJsonFactory = _$HashToJson; - Map toJson() => _$HashToJson(this); - - @JsonKey(name: 'hash') - final String hash; - static const fromJsonFactory = _$HashFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Hash && - (identical(other.hash, hash) || - const DeepCollectionEquality().equals(other.hash, hash))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(hash) ^ runtimeType.hashCode; -} - -extension $HashExtension on Hash { - Hash copyWith({String? hash}) { - return Hash(hash: hash ?? this.hash); - } - - Hash copyWithWrapped({Wrapped? hash}) { - return Hash(hash: (hash != null ? hash.value : this.hash)); - } -} - -@JsonSerializable(explicitToJson: true) -class InternalServerError { - const InternalServerError({ - required this.id, - required this.msg, - this.issue, - }); - - factory InternalServerError.fromJson(Map json) => - _$InternalServerErrorFromJson(json); - - static const toJsonFactory = _$InternalServerErrorToJson; - Map toJson() => _$InternalServerErrorToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'msg') - final String msg; - @JsonKey(name: 'issue') - final String? issue; - static const fromJsonFactory = _$InternalServerErrorFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is InternalServerError && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg)) && - (identical(other.issue, issue) || - const DeepCollectionEquality().equals(other.issue, issue))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(msg) ^ - const DeepCollectionEquality().hash(issue) ^ - runtimeType.hashCode; -} - -extension $InternalServerErrorExtension on InternalServerError { - InternalServerError copyWith({String? id, String? msg, String? issue}) { - return InternalServerError( - id: id ?? this.id, msg: msg ?? this.msg, issue: issue ?? this.issue); - } - - InternalServerError copyWithWrapped( - {Wrapped? id, Wrapped? msg, Wrapped? issue}) { - return InternalServerError( - id: (id != null ? id.value : this.id), - msg: (msg != null ? msg.value : this.msg), - issue: (issue != null ? issue.value : this.issue)); - } -} - -@JsonSerializable(explicitToJson: true) -class InvalidRegistrationsReport { - const InvalidRegistrationsReport({ - required this.errorReport, - required this.stakeAddress, - required this.voteKey, - required this.paymentAddress, - required this.isPayable, - required this.cip36, - }); - - factory InvalidRegistrationsReport.fromJson(Map json) => - _$InvalidRegistrationsReportFromJson(json); - - static const toJsonFactory = _$InvalidRegistrationsReportToJson; - Map toJson() => _$InvalidRegistrationsReportToJson(this); - - @JsonKey(name: 'error_report', defaultValue: []) - final List errorReport; - @JsonKey(name: 'stake_address') - final String stakeAddress; - @JsonKey(name: 'vote_key') - final String voteKey; - @JsonKey(name: 'payment_address') - final String paymentAddress; - @JsonKey(name: 'is_payable') - final bool isPayable; - @JsonKey(name: 'cip36') - final bool cip36; - static const fromJsonFactory = _$InvalidRegistrationsReportFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is InvalidRegistrationsReport && - (identical(other.errorReport, errorReport) || - const DeepCollectionEquality() - .equals(other.errorReport, errorReport)) && - (identical(other.stakeAddress, stakeAddress) || - const DeepCollectionEquality() - .equals(other.stakeAddress, stakeAddress)) && - (identical(other.voteKey, voteKey) || - const DeepCollectionEquality() - .equals(other.voteKey, voteKey)) && - (identical(other.paymentAddress, paymentAddress) || - const DeepCollectionEquality() - .equals(other.paymentAddress, paymentAddress)) && - (identical(other.isPayable, isPayable) || - const DeepCollectionEquality() - .equals(other.isPayable, isPayable)) && - (identical(other.cip36, cip36) || - const DeepCollectionEquality().equals(other.cip36, cip36))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(errorReport) ^ - const DeepCollectionEquality().hash(stakeAddress) ^ - const DeepCollectionEquality().hash(voteKey) ^ - const DeepCollectionEquality().hash(paymentAddress) ^ - const DeepCollectionEquality().hash(isPayable) ^ - const DeepCollectionEquality().hash(cip36) ^ - runtimeType.hashCode; -} - -extension $InvalidRegistrationsReportExtension on InvalidRegistrationsReport { - InvalidRegistrationsReport copyWith( - {List? errorReport, - String? stakeAddress, - String? voteKey, - String? paymentAddress, - bool? isPayable, - bool? cip36}) { - return InvalidRegistrationsReport( - errorReport: errorReport ?? this.errorReport, - stakeAddress: stakeAddress ?? this.stakeAddress, - voteKey: voteKey ?? this.voteKey, - paymentAddress: paymentAddress ?? this.paymentAddress, - isPayable: isPayable ?? this.isPayable, - cip36: cip36 ?? this.cip36); - } - - InvalidRegistrationsReport copyWithWrapped( - {Wrapped>? errorReport, - Wrapped? stakeAddress, - Wrapped? voteKey, - Wrapped? paymentAddress, - Wrapped? isPayable, - Wrapped? cip36}) { - return InvalidRegistrationsReport( - errorReport: - (errorReport != null ? errorReport.value : this.errorReport), - stakeAddress: - (stakeAddress != null ? stakeAddress.value : this.stakeAddress), - voteKey: (voteKey != null ? voteKey.value : this.voteKey), - paymentAddress: (paymentAddress != null - ? paymentAddress.value - : this.paymentAddress), - isPayable: (isPayable != null ? isPayable.value : this.isPayable), - cip36: (cip36 != null ? cip36.value : this.cip36)); - } -} - -@JsonSerializable(explicitToJson: true) -class RbacRegistration { - const RbacRegistration({ - required this.txHash, - }); - - factory RbacRegistration.fromJson(Map json) => - _$RbacRegistrationFromJson(json); - - static const toJsonFactory = _$RbacRegistrationToJson; - Map toJson() => _$RbacRegistrationToJson(this); - - @JsonKey(name: 'tx_hash') - final String txHash; - static const fromJsonFactory = _$RbacRegistrationFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is RbacRegistration && - (identical(other.txHash, txHash) || - const DeepCollectionEquality().equals(other.txHash, txHash))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(txHash) ^ runtimeType.hashCode; -} - -extension $RbacRegistrationExtension on RbacRegistration { - RbacRegistration copyWith({String? txHash}) { - return RbacRegistration(txHash: txHash ?? this.txHash); - } - - RbacRegistration copyWithWrapped({Wrapped? txHash}) { - return RbacRegistration( - txHash: (txHash != null ? txHash.value : this.txHash)); - } -} - -@JsonSerializable(explicitToJson: true) -class RbacRegistrationsResponse { - const RbacRegistrationsResponse({ - required this.registrations, - }); - - factory RbacRegistrationsResponse.fromJson(Map json) => - _$RbacRegistrationsResponseFromJson(json); - - static const toJsonFactory = _$RbacRegistrationsResponseToJson; - Map toJson() => _$RbacRegistrationsResponseToJson(this); - - @JsonKey(name: 'registrations', defaultValue: []) - final List registrations; - static const fromJsonFactory = _$RbacRegistrationsResponseFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is RbacRegistrationsResponse && - (identical(other.registrations, registrations) || - const DeepCollectionEquality() - .equals(other.registrations, registrations))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(registrations) ^ runtimeType.hashCode; -} - -extension $RbacRegistrationsResponseExtension on RbacRegistrationsResponse { - RbacRegistrationsResponse copyWith({List? registrations}) { - return RbacRegistrationsResponse( - registrations: registrations ?? this.registrations); - } - - RbacRegistrationsResponse copyWithWrapped( - {Wrapped>? registrations}) { - return RbacRegistrationsResponse( - registrations: - (registrations != null ? registrations.value : this.registrations)); - } -} - -@JsonSerializable(explicitToJson: true) -class RbacRole0ChainRootResponse { - const RbacRole0ChainRootResponse({ - required this.chainRoot, - }); - - factory RbacRole0ChainRootResponse.fromJson(Map json) => - _$RbacRole0ChainRootResponseFromJson(json); - - static const toJsonFactory = _$RbacRole0ChainRootResponseToJson; - Map toJson() => _$RbacRole0ChainRootResponseToJson(this); - - @JsonKey(name: 'chain_root') - final String chainRoot; - static const fromJsonFactory = _$RbacRole0ChainRootResponseFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is RbacRole0ChainRootResponse && - (identical(other.chainRoot, chainRoot) || - const DeepCollectionEquality() - .equals(other.chainRoot, chainRoot))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(chainRoot) ^ runtimeType.hashCode; -} - -extension $RbacRole0ChainRootResponseExtension on RbacRole0ChainRootResponse { - RbacRole0ChainRootResponse copyWith({String? chainRoot}) { - return RbacRole0ChainRootResponse(chainRoot: chainRoot ?? this.chainRoot); - } - - RbacRole0ChainRootResponse copyWithWrapped({Wrapped? chainRoot}) { - return RbacRole0ChainRootResponse( - chainRoot: (chainRoot != null ? chainRoot.value : this.chainRoot)); - } -} - -@JsonSerializable(explicitToJson: true) -class RegistrationInfo { - const RegistrationInfo({ - required this.rewardsAddress, - required this.txHash, - required this.nonce, - required this.votingInfo, - }); - - factory RegistrationInfo.fromJson(Map json) => - _$RegistrationInfoFromJson(json); - - static const toJsonFactory = _$RegistrationInfoToJson; - Map toJson() => _$RegistrationInfoToJson(this); - - @JsonKey(name: 'rewards_address') - final String rewardsAddress; - @JsonKey(name: 'tx_hash') - final String txHash; - @JsonKey(name: 'nonce') - final int nonce; - @JsonKey(name: 'voting_info') - final VotingInfo votingInfo; - static const fromJsonFactory = _$RegistrationInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is RegistrationInfo && - (identical(other.rewardsAddress, rewardsAddress) || - const DeepCollectionEquality() - .equals(other.rewardsAddress, rewardsAddress)) && - (identical(other.txHash, txHash) || - const DeepCollectionEquality().equals(other.txHash, txHash)) && - (identical(other.nonce, nonce) || - const DeepCollectionEquality().equals(other.nonce, nonce)) && - (identical(other.votingInfo, votingInfo) || - const DeepCollectionEquality() - .equals(other.votingInfo, votingInfo))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(rewardsAddress) ^ - const DeepCollectionEquality().hash(txHash) ^ - const DeepCollectionEquality().hash(nonce) ^ - const DeepCollectionEquality().hash(votingInfo) ^ - runtimeType.hashCode; -} - -extension $RegistrationInfoExtension on RegistrationInfo { - RegistrationInfo copyWith( - {String? rewardsAddress, - String? txHash, - int? nonce, - VotingInfo? votingInfo}) { - return RegistrationInfo( - rewardsAddress: rewardsAddress ?? this.rewardsAddress, - txHash: txHash ?? this.txHash, - nonce: nonce ?? this.nonce, - votingInfo: votingInfo ?? this.votingInfo); - } - - RegistrationInfo copyWithWrapped( - {Wrapped? rewardsAddress, - Wrapped? txHash, - Wrapped? nonce, - Wrapped? votingInfo}) { - return RegistrationInfo( - rewardsAddress: (rewardsAddress != null - ? rewardsAddress.value - : this.rewardsAddress), - txHash: (txHash != null ? txHash.value : this.txHash), - nonce: (nonce != null ? nonce.value : this.nonce), - votingInfo: (votingInfo != null ? votingInfo.value : this.votingInfo)); - } -} - -@JsonSerializable(explicitToJson: true) -class RejectedFragment { - const RejectedFragment({ - required this.id, - required this.poolNumber, - required this.reason, - }); - - factory RejectedFragment.fromJson(Map json) => - _$RejectedFragmentFromJson(json); - - static const toJsonFactory = _$RejectedFragmentToJson; - Map toJson() => _$RejectedFragmentToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'pool_number') - final int poolNumber; - @JsonKey( - name: 'reason', - toJson: reasonRejectedToJson, - fromJson: reasonRejectedFromJson, - ) - final enums.ReasonRejected reason; - static const fromJsonFactory = _$RejectedFragmentFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is RejectedFragment && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.poolNumber, poolNumber) || - const DeepCollectionEquality() - .equals(other.poolNumber, poolNumber)) && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(poolNumber) ^ - const DeepCollectionEquality().hash(reason) ^ - runtimeType.hashCode; -} - -extension $RejectedFragmentExtension on RejectedFragment { - RejectedFragment copyWith( - {String? id, int? poolNumber, enums.ReasonRejected? reason}) { - return RejectedFragment( - id: id ?? this.id, - poolNumber: poolNumber ?? this.poolNumber, - reason: reason ?? this.reason); - } - - RejectedFragment copyWithWrapped( - {Wrapped? id, - Wrapped? poolNumber, - Wrapped? reason}) { - return RejectedFragment( - id: (id != null ? id.value : this.id), - poolNumber: (poolNumber != null ? poolNumber.value : this.poolNumber), - reason: (reason != null ? reason.value : this.reason)); - } -} - -@JsonSerializable(explicitToJson: true) -class Response$ { - const Response$({ - required this.chainRoot, - }); - - factory Response$.fromJson(Map json) => - _$Response$FromJson(json); - - static const toJsonFactory = _$Response$ToJson; - Map toJson() => _$Response$ToJson(this); - - @JsonKey(name: 'chain_root') - final String chainRoot; - static const fromJsonFactory = _$Response$FromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Response$ && - (identical(other.chainRoot, chainRoot) || - const DeepCollectionEquality() - .equals(other.chainRoot, chainRoot))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(chainRoot) ^ runtimeType.hashCode; -} - -extension $Response$Extension on Response$ { - Response$ copyWith({String? chainRoot}) { - return Response$(chainRoot: chainRoot ?? this.chainRoot); - } - - Response$ copyWithWrapped({Wrapped? chainRoot}) { - return Response$( - chainRoot: (chainRoot != null ? chainRoot.value : this.chainRoot)); - } -} - -@JsonSerializable(explicitToJson: true) -class Sentry { - const Sentry({ - required this.dsn, - this.release, - this.environment, - }); - - factory Sentry.fromJson(Map json) => _$SentryFromJson(json); - - static const toJsonFactory = _$SentryToJson; - Map toJson() => _$SentryToJson(this); - - @JsonKey(name: 'dsn') - final String dsn; - @JsonKey(name: 'release') - final String? release; - @JsonKey(name: 'environment') - final String? environment; - static const fromJsonFactory = _$SentryFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Sentry && - (identical(other.dsn, dsn) || - const DeepCollectionEquality().equals(other.dsn, dsn)) && - (identical(other.release, release) || - const DeepCollectionEquality() - .equals(other.release, release)) && - (identical(other.environment, environment) || - const DeepCollectionEquality() - .equals(other.environment, environment))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(dsn) ^ - const DeepCollectionEquality().hash(release) ^ - const DeepCollectionEquality().hash(environment) ^ - runtimeType.hashCode; -} - -extension $SentryExtension on Sentry { - Sentry copyWith({String? dsn, String? release, String? environment}) { - return Sentry( - dsn: dsn ?? this.dsn, - release: release ?? this.release, - environment: environment ?? this.environment); - } - - Sentry copyWithWrapped( - {Wrapped? dsn, - Wrapped? release, - Wrapped? environment}) { - return Sentry( - dsn: (dsn != null ? dsn.value : this.dsn), - release: (release != null ? release.value : this.release), - environment: - (environment != null ? environment.value : this.environment)); - } -} - -@JsonSerializable(explicitToJson: true) -class ServiceUnavailable { - const ServiceUnavailable({ - required this.id, - required this.msg, - }); - - factory ServiceUnavailable.fromJson(Map json) => - _$ServiceUnavailableFromJson(json); - - static const toJsonFactory = _$ServiceUnavailableToJson; - Map toJson() => _$ServiceUnavailableToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'msg') - final String msg; - static const fromJsonFactory = _$ServiceUnavailableFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is ServiceUnavailable && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(msg) ^ - runtimeType.hashCode; -} - -extension $ServiceUnavailableExtension on ServiceUnavailable { - ServiceUnavailable copyWith({String? id, String? msg}) { - return ServiceUnavailable(id: id ?? this.id, msg: msg ?? this.msg); - } - - ServiceUnavailable copyWithWrapped( - {Wrapped? id, Wrapped? msg}) { - return ServiceUnavailable( - id: (id != null ? id.value : this.id), - msg: (msg != null ? msg.value : this.msg)); - } -} - -@JsonSerializable(explicitToJson: true) -class Slot { - const Slot({ - required this.slotNumber, - required this.blockHash, - required this.blockTime, - }); - - factory Slot.fromJson(Map json) => _$SlotFromJson(json); - - static const toJsonFactory = _$SlotToJson; - Map toJson() => _$SlotToJson(this); - - @JsonKey(name: 'slot_number') - final int slotNumber; - @JsonKey(name: 'block_hash') - final String blockHash; - @JsonKey(name: 'block_time') - final DateTime blockTime; - static const fromJsonFactory = _$SlotFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Slot && - (identical(other.slotNumber, slotNumber) || - const DeepCollectionEquality() - .equals(other.slotNumber, slotNumber)) && - (identical(other.blockHash, blockHash) || - const DeepCollectionEquality() - .equals(other.blockHash, blockHash)) && - (identical(other.blockTime, blockTime) || - const DeepCollectionEquality() - .equals(other.blockTime, blockTime))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(slotNumber) ^ - const DeepCollectionEquality().hash(blockHash) ^ - const DeepCollectionEquality().hash(blockTime) ^ - runtimeType.hashCode; -} - -extension $SlotExtension on Slot { - Slot copyWith({int? slotNumber, String? blockHash, DateTime? blockTime}) { - return Slot( - slotNumber: slotNumber ?? this.slotNumber, - blockHash: blockHash ?? this.blockHash, - blockTime: blockTime ?? this.blockTime); - } - - Slot copyWithWrapped( - {Wrapped? slotNumber, - Wrapped? blockHash, - Wrapped? blockTime}) { - return Slot( - slotNumber: (slotNumber != null ? slotNumber.value : this.slotNumber), - blockHash: (blockHash != null ? blockHash.value : this.blockHash), - blockTime: (blockTime != null ? blockTime.value : this.blockTime)); - } -} - -@JsonSerializable(explicitToJson: true) -class SlotInfo { - const SlotInfo({ - this.previous, - this.current, - this.next, - }); - - factory SlotInfo.fromJson(Map json) => - _$SlotInfoFromJson(json); - - static const toJsonFactory = _$SlotInfoToJson; - Map toJson() => _$SlotInfoToJson(this); - - @JsonKey(name: 'previous') - final Slot? previous; - @JsonKey(name: 'current') - final Slot? current; - @JsonKey(name: 'next') - final Slot? next; - static const fromJsonFactory = _$SlotInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is SlotInfo && - (identical(other.previous, previous) || - const DeepCollectionEquality() - .equals(other.previous, previous)) && - (identical(other.current, current) || - const DeepCollectionEquality() - .equals(other.current, current)) && - (identical(other.next, next) || - const DeepCollectionEquality().equals(other.next, next))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(previous) ^ - const DeepCollectionEquality().hash(current) ^ - const DeepCollectionEquality().hash(next) ^ - runtimeType.hashCode; -} - -extension $SlotInfoExtension on SlotInfo { - SlotInfo copyWith({Slot? previous, Slot? current, Slot? next}) { - return SlotInfo( - previous: previous ?? this.previous, - current: current ?? this.current, - next: next ?? this.next); - } - - SlotInfo copyWithWrapped( - {Wrapped? previous, - Wrapped? current, - Wrapped? next}) { - return SlotInfo( - previous: (previous != null ? previous.value : this.previous), - current: (current != null ? current.value : this.current), - next: (next != null ? next.value : this.next)); - } -} - -@JsonSerializable(explicitToJson: true) -class StakeInfo { - const StakeInfo({ - required this.adaAmount, - required this.slotNumber, - required this.nativeTokens, - }); - - factory StakeInfo.fromJson(Map json) => - _$StakeInfoFromJson(json); - - static const toJsonFactory = _$StakeInfoToJson; - Map toJson() => _$StakeInfoToJson(this); - - @JsonKey(name: 'ada_amount') - final int adaAmount; - @JsonKey(name: 'slot_number') - final int slotNumber; - @JsonKey(name: 'native_tokens', defaultValue: []) - final List nativeTokens; - static const fromJsonFactory = _$StakeInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is StakeInfo && - (identical(other.adaAmount, adaAmount) || - const DeepCollectionEquality() - .equals(other.adaAmount, adaAmount)) && - (identical(other.slotNumber, slotNumber) || - const DeepCollectionEquality() - .equals(other.slotNumber, slotNumber)) && - (identical(other.nativeTokens, nativeTokens) || - const DeepCollectionEquality() - .equals(other.nativeTokens, nativeTokens))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(adaAmount) ^ - const DeepCollectionEquality().hash(slotNumber) ^ - const DeepCollectionEquality().hash(nativeTokens) ^ - runtimeType.hashCode; -} - -extension $StakeInfoExtension on StakeInfo { - StakeInfo copyWith( - {int? adaAmount, - int? slotNumber, - List? nativeTokens}) { - return StakeInfo( - adaAmount: adaAmount ?? this.adaAmount, - slotNumber: slotNumber ?? this.slotNumber, - nativeTokens: nativeTokens ?? this.nativeTokens); - } - - StakeInfo copyWithWrapped( - {Wrapped? adaAmount, - Wrapped? slotNumber, - Wrapped>? nativeTokens}) { - return StakeInfo( - adaAmount: (adaAmount != null ? adaAmount.value : this.adaAmount), - slotNumber: (slotNumber != null ? slotNumber.value : this.slotNumber), - nativeTokens: - (nativeTokens != null ? nativeTokens.value : this.nativeTokens)); - } -} - -@JsonSerializable(explicitToJson: true) -class StakedNativeTokenInfo { - const StakedNativeTokenInfo({ - required this.policyHash, - required this.assetName, - required this.amount, - }); - - factory StakedNativeTokenInfo.fromJson(Map json) => - _$StakedNativeTokenInfoFromJson(json); - - static const toJsonFactory = _$StakedNativeTokenInfoToJson; - Map toJson() => _$StakedNativeTokenInfoToJson(this); - - @JsonKey(name: 'policy_hash') - final String policyHash; - @JsonKey(name: 'asset_name') - final String assetName; - @JsonKey(name: 'amount') - final int amount; - static const fromJsonFactory = _$StakedNativeTokenInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is StakedNativeTokenInfo && - (identical(other.policyHash, policyHash) || - const DeepCollectionEquality() - .equals(other.policyHash, policyHash)) && - (identical(other.assetName, assetName) || - const DeepCollectionEquality() - .equals(other.assetName, assetName)) && - (identical(other.amount, amount) || - const DeepCollectionEquality().equals(other.amount, amount))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(policyHash) ^ - const DeepCollectionEquality().hash(assetName) ^ - const DeepCollectionEquality().hash(amount) ^ - runtimeType.hashCode; -} - -extension $StakedNativeTokenInfoExtension on StakedNativeTokenInfo { - StakedNativeTokenInfo copyWith( - {String? policyHash, String? assetName, int? amount}) { - return StakedNativeTokenInfo( - policyHash: policyHash ?? this.policyHash, - assetName: assetName ?? this.assetName, - amount: amount ?? this.amount); - } - - StakedNativeTokenInfo copyWithWrapped( - {Wrapped? policyHash, - Wrapped? assetName, - Wrapped? amount}) { - return StakedNativeTokenInfo( - policyHash: (policyHash != null ? policyHash.value : this.policyHash), - assetName: (assetName != null ? assetName.value : this.assetName), - amount: (amount != null ? amount.value : this.amount)); - } -} - -@JsonSerializable(explicitToJson: true) -class StatusInABlock { - const StatusInABlock({ - required this.date, - required this.block, - }); - - factory StatusInABlock.fromJson(Map json) => - _$StatusInABlockFromJson(json); - - static const toJsonFactory = _$StatusInABlockToJson; - Map toJson() => _$StatusInABlockToJson(this); - - @JsonKey(name: 'date') - final BlockDate date; - @JsonKey(name: 'block') - final Hash block; - static const fromJsonFactory = _$StatusInABlockFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is StatusInABlock && - (identical(other.date, date) || - const DeepCollectionEquality().equals(other.date, date)) && - (identical(other.block, block) || - const DeepCollectionEquality().equals(other.block, block))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(date) ^ - const DeepCollectionEquality().hash(block) ^ - runtimeType.hashCode; -} - -extension $StatusInABlockExtension on StatusInABlock { - StatusInABlock copyWith({BlockDate? date, Hash? block}) { - return StatusInABlock(date: date ?? this.date, block: block ?? this.block); - } - - StatusInABlock copyWithWrapped( - {Wrapped? date, Wrapped? block}) { - return StatusInABlock( - date: (date != null ? date.value : this.date), - block: (block != null ? block.value : this.block)); - } -} - -@JsonSerializable(explicitToJson: true) -class StatusPending { - const StatusPending(); - - factory StatusPending.fromJson(Map json) => - _$StatusPendingFromJson(json); - - static const toJsonFactory = _$StatusPendingToJson; - Map toJson() => _$StatusPendingToJson(this); - - static const fromJsonFactory = _$StatusPendingFromJson; - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => runtimeType.hashCode; -} - -@JsonSerializable(explicitToJson: true) -class StatusRejected { - const StatusRejected({ - required this.reason, - }); - - factory StatusRejected.fromJson(Map json) => - _$StatusRejectedFromJson(json); - - static const toJsonFactory = _$StatusRejectedToJson; - Map toJson() => _$StatusRejectedToJson(this); - - @JsonKey(name: 'reason') - final String reason; - static const fromJsonFactory = _$StatusRejectedFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is StatusRejected && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(reason) ^ runtimeType.hashCode; -} - -extension $StatusRejectedExtension on StatusRejected { - StatusRejected copyWith({String? reason}) { - return StatusRejected(reason: reason ?? this.reason); - } - - StatusRejected copyWithWrapped({Wrapped? reason}) { - return StatusRejected( - reason: (reason != null ? reason.value : this.reason)); - } -} - -@JsonSerializable(explicitToJson: true) -class SyncState { - const SyncState({ - required this.slotNumber, - required this.blockHash, - required this.lastUpdated, - }); - - factory SyncState.fromJson(Map json) => - _$SyncStateFromJson(json); - - static const toJsonFactory = _$SyncStateToJson; - Map toJson() => _$SyncStateToJson(this); - - @JsonKey(name: 'slot_number') - final int slotNumber; - @JsonKey(name: 'block_hash') - final String blockHash; - @JsonKey(name: 'last_updated') - final DateTime lastUpdated; - static const fromJsonFactory = _$SyncStateFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is SyncState && - (identical(other.slotNumber, slotNumber) || - const DeepCollectionEquality() - .equals(other.slotNumber, slotNumber)) && - (identical(other.blockHash, blockHash) || - const DeepCollectionEquality() - .equals(other.blockHash, blockHash)) && - (identical(other.lastUpdated, lastUpdated) || - const DeepCollectionEquality() - .equals(other.lastUpdated, lastUpdated))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(slotNumber) ^ - const DeepCollectionEquality().hash(blockHash) ^ - const DeepCollectionEquality().hash(lastUpdated) ^ - runtimeType.hashCode; -} - -extension $SyncStateExtension on SyncState { - SyncState copyWith( - {int? slotNumber, String? blockHash, DateTime? lastUpdated}) { - return SyncState( - slotNumber: slotNumber ?? this.slotNumber, - blockHash: blockHash ?? this.blockHash, - lastUpdated: lastUpdated ?? this.lastUpdated); - } - - SyncState copyWithWrapped( - {Wrapped? slotNumber, - Wrapped? blockHash, - Wrapped? lastUpdated}) { - return SyncState( - slotNumber: (slotNumber != null ? slotNumber.value : this.slotNumber), - blockHash: (blockHash != null ? blockHash.value : this.blockHash), - lastUpdated: - (lastUpdated != null ? lastUpdated.value : this.lastUpdated)); - } -} - -@JsonSerializable(explicitToJson: true) -class TooManyRequests { - const TooManyRequests({ - required this.id, - required this.msg, - }); - - factory TooManyRequests.fromJson(Map json) => - _$TooManyRequestsFromJson(json); - - static const toJsonFactory = _$TooManyRequestsToJson; - Map toJson() => _$TooManyRequestsToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'msg') - final String msg; - static const fromJsonFactory = _$TooManyRequestsFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is TooManyRequests && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(msg) ^ - runtimeType.hashCode; -} - -extension $TooManyRequestsExtension on TooManyRequests { - TooManyRequests copyWith({String? id, String? msg}) { - return TooManyRequests(id: id ?? this.id, msg: msg ?? this.msg); - } - - TooManyRequests copyWithWrapped({Wrapped? id, Wrapped? msg}) { - return TooManyRequests( - id: (id != null ? id.value : this.id), - msg: (msg != null ? msg.value : this.msg)); - } -} - -@JsonSerializable(explicitToJson: true) -class Unauthorized { - const Unauthorized({ - required this.id, - required this.msg, - }); - - factory Unauthorized.fromJson(Map json) => - _$UnauthorizedFromJson(json); - - static const toJsonFactory = _$UnauthorizedToJson; - Map toJson() => _$UnauthorizedToJson(this); - - @JsonKey(name: 'id') - final String id; - @JsonKey(name: 'msg') - final String msg; - static const fromJsonFactory = _$UnauthorizedFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is Unauthorized && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.msg, msg) || - const DeepCollectionEquality().equals(other.msg, msg))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(msg) ^ - runtimeType.hashCode; -} - -extension $UnauthorizedExtension on Unauthorized { - Unauthorized copyWith({String? id, String? msg}) { - return Unauthorized(id: id ?? this.id, msg: msg ?? this.msg); - } - - Unauthorized copyWithWrapped({Wrapped? id, Wrapped? msg}) { - return Unauthorized( - id: (id != null ? id.value : this.id), - msg: (msg != null ? msg.value : this.msg)); - } -} - -@JsonSerializable(explicitToJson: true) -class UnprocessableContent { - const UnprocessableContent({ - required this.detail, - }); - - factory UnprocessableContent.fromJson(Map json) => - _$UnprocessableContentFromJson(json); - - static const toJsonFactory = _$UnprocessableContentToJson; - Map toJson() => _$UnprocessableContentToJson(this); - - @JsonKey(name: 'detail', defaultValue: []) - final List detail; - static const fromJsonFactory = _$UnprocessableContentFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is UnprocessableContent && - (identical(other.detail, detail) || - const DeepCollectionEquality().equals(other.detail, detail))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(detail) ^ runtimeType.hashCode; -} - -extension $UnprocessableContentExtension on UnprocessableContent { - UnprocessableContent copyWith({List? detail}) { - return UnprocessableContent(detail: detail ?? this.detail); - } - - UnprocessableContent copyWithWrapped( - {Wrapped>? detail}) { - return UnprocessableContent( - detail: (detail != null ? detail.value : this.detail)); - } -} - -@JsonSerializable(explicitToJson: true) -class VotePlan { - const VotePlan({ - required this.votingToken, - }); - - factory VotePlan.fromJson(Map json) => - _$VotePlanFromJson(json); - - static const toJsonFactory = _$VotePlanToJson; - Map toJson() => _$VotePlanToJson(this); - - @JsonKey(name: 'voting_token') - final String votingToken; - static const fromJsonFactory = _$VotePlanFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is VotePlan && - (identical(other.votingToken, votingToken) || - const DeepCollectionEquality() - .equals(other.votingToken, votingToken))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(votingToken) ^ runtimeType.hashCode; -} - -extension $VotePlanExtension on VotePlan { - VotePlan copyWith({String? votingToken}) { - return VotePlan(votingToken: votingToken ?? this.votingToken); - } - - VotePlan copyWithWrapped({Wrapped? votingToken}) { - return VotePlan( - votingToken: - (votingToken != null ? votingToken.value : this.votingToken)); - } -} - -@JsonSerializable(explicitToJson: true) -class VoterInfo { - const VoterInfo({ - required this.votingPower, - required this.votingGroup, - required this.delegationsPower, - required this.delegationsCount, - required this.votingPowerSaturation, - this.delegatorAddresses, - }); - - factory VoterInfo.fromJson(Map json) => - _$VoterInfoFromJson(json); - - static const toJsonFactory = _$VoterInfoToJson; - Map toJson() => _$VoterInfoToJson(this); - - @JsonKey(name: 'voting_power') - final int votingPower; - @JsonKey( - name: 'voting_group', - toJson: voterGroupIdToJson, - fromJson: voterGroupIdFromJson, - ) - final enums.VoterGroupId votingGroup; - @JsonKey(name: 'delegations_power') - final int delegationsPower; - @JsonKey(name: 'delegations_count') - final int delegationsCount; - @JsonKey(name: 'voting_power_saturation') - final double votingPowerSaturation; - @JsonKey(name: 'delegator_addresses', defaultValue: []) - final List? delegatorAddresses; - static const fromJsonFactory = _$VoterInfoFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is VoterInfo && - (identical(other.votingPower, votingPower) || - const DeepCollectionEquality() - .equals(other.votingPower, votingPower)) && - (identical(other.votingGroup, votingGroup) || - const DeepCollectionEquality() - .equals(other.votingGroup, votingGroup)) && - (identical(other.delegationsPower, delegationsPower) || - const DeepCollectionEquality() - .equals(other.delegationsPower, delegationsPower)) && - (identical(other.delegationsCount, delegationsCount) || - const DeepCollectionEquality() - .equals(other.delegationsCount, delegationsCount)) && - (identical(other.votingPowerSaturation, votingPowerSaturation) || - const DeepCollectionEquality().equals( - other.votingPowerSaturation, votingPowerSaturation)) && - (identical(other.delegatorAddresses, delegatorAddresses) || - const DeepCollectionEquality() - .equals(other.delegatorAddresses, delegatorAddresses))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(votingPower) ^ - const DeepCollectionEquality().hash(votingGroup) ^ - const DeepCollectionEquality().hash(delegationsPower) ^ - const DeepCollectionEquality().hash(delegationsCount) ^ - const DeepCollectionEquality().hash(votingPowerSaturation) ^ - const DeepCollectionEquality().hash(delegatorAddresses) ^ - runtimeType.hashCode; -} - -extension $VoterInfoExtension on VoterInfo { - VoterInfo copyWith( - {int? votingPower, - enums.VoterGroupId? votingGroup, - int? delegationsPower, - int? delegationsCount, - double? votingPowerSaturation, - List? delegatorAddresses}) { - return VoterInfo( - votingPower: votingPower ?? this.votingPower, - votingGroup: votingGroup ?? this.votingGroup, - delegationsPower: delegationsPower ?? this.delegationsPower, - delegationsCount: delegationsCount ?? this.delegationsCount, - votingPowerSaturation: - votingPowerSaturation ?? this.votingPowerSaturation, - delegatorAddresses: delegatorAddresses ?? this.delegatorAddresses); - } - - VoterInfo copyWithWrapped( - {Wrapped? votingPower, - Wrapped? votingGroup, - Wrapped? delegationsPower, - Wrapped? delegationsCount, - Wrapped? votingPowerSaturation, - Wrapped?>? delegatorAddresses}) { - return VoterInfo( - votingPower: - (votingPower != null ? votingPower.value : this.votingPower), - votingGroup: - (votingGroup != null ? votingGroup.value : this.votingGroup), - delegationsPower: (delegationsPower != null - ? delegationsPower.value - : this.delegationsPower), - delegationsCount: (delegationsCount != null - ? delegationsCount.value - : this.delegationsCount), - votingPowerSaturation: (votingPowerSaturation != null - ? votingPowerSaturation.value - : this.votingPowerSaturation), - delegatorAddresses: (delegatorAddresses != null - ? delegatorAddresses.value - : this.delegatorAddresses)); - } -} - -@JsonSerializable(explicitToJson: true) -class VoterRegistration { - const VoterRegistration({ - required this.voterInfo, - required this.asAt, - required this.lastUpdated, - required this.$final, - }); - - factory VoterRegistration.fromJson(Map json) => - _$VoterRegistrationFromJson(json); - - static const toJsonFactory = _$VoterRegistrationToJson; - Map toJson() => _$VoterRegistrationToJson(this); - - @JsonKey(name: 'voter_info') - final VoterInfo voterInfo; - @JsonKey(name: 'as_at') - final DateTime asAt; - @JsonKey(name: 'last_updated') - final DateTime lastUpdated; - @JsonKey(name: 'final') - final bool $final; - static const fromJsonFactory = _$VoterRegistrationFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is VoterRegistration && - (identical(other.voterInfo, voterInfo) || - const DeepCollectionEquality() - .equals(other.voterInfo, voterInfo)) && - (identical(other.asAt, asAt) || - const DeepCollectionEquality().equals(other.asAt, asAt)) && - (identical(other.lastUpdated, lastUpdated) || - const DeepCollectionEquality() - .equals(other.lastUpdated, lastUpdated)) && - (identical(other.$final, $final) || - const DeepCollectionEquality().equals(other.$final, $final))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(voterInfo) ^ - const DeepCollectionEquality().hash(asAt) ^ - const DeepCollectionEquality().hash(lastUpdated) ^ - const DeepCollectionEquality().hash($final) ^ - runtimeType.hashCode; -} - -extension $VoterRegistrationExtension on VoterRegistration { - VoterRegistration copyWith( - {VoterInfo? voterInfo, - DateTime? asAt, - DateTime? lastUpdated, - bool? $final}) { - return VoterRegistration( - voterInfo: voterInfo ?? this.voterInfo, - asAt: asAt ?? this.asAt, - lastUpdated: lastUpdated ?? this.lastUpdated, - $final: $final ?? this.$final); - } - - VoterRegistration copyWithWrapped( - {Wrapped? voterInfo, - Wrapped? asAt, - Wrapped? lastUpdated, - Wrapped? $final}) { - return VoterRegistration( - voterInfo: (voterInfo != null ? voterInfo.value : this.voterInfo), - asAt: (asAt != null ? asAt.value : this.asAt), - lastUpdated: - (lastUpdated != null ? lastUpdated.value : this.lastUpdated), - $final: ($final != null ? $final.value : this.$final)); - } -} - -@JsonSerializable(explicitToJson: true) -class VotingInfo { - const VotingInfo(); - - factory VotingInfo.fromJson(Map json) => - _$VotingInfoFromJson(json); - - static const toJsonFactory = _$VotingInfoToJson; - Map toJson() => _$VotingInfoToJson(this); - - static const fromJsonFactory = _$VotingInfoFromJson; - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => runtimeType.hashCode; -} - -@JsonSerializable(explicitToJson: true) -class VotingInfoDelegations { - const VotingInfoDelegations({ - required this.type, - required this.delegations, - }); - - factory VotingInfoDelegations.fromJson(Map json) => - _$VotingInfoDelegationsFromJson(json); - - static const toJsonFactory = _$VotingInfoDelegationsToJson; - Map toJson() => _$VotingInfoDelegationsToJson(this); - - @JsonKey( - name: 'type', - toJson: votingInfoDelegationsTypeToJson, - fromJson: votingInfoDelegationsTypeFromJson, - ) - final enums.VotingInfoDelegationsType type; - @JsonKey(name: 'delegations', defaultValue: []) - final List delegations; - static const fromJsonFactory = _$VotingInfoDelegationsFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is VotingInfoDelegations && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.delegations, delegations) || - const DeepCollectionEquality() - .equals(other.delegations, delegations))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(type) ^ - const DeepCollectionEquality().hash(delegations) ^ - runtimeType.hashCode; -} - -extension $VotingInfoDelegationsExtension on VotingInfoDelegations { - VotingInfoDelegations copyWith( - {enums.VotingInfoDelegationsType? type, List? delegations}) { - return VotingInfoDelegations( - type: type ?? this.type, delegations: delegations ?? this.delegations); - } - - VotingInfoDelegations copyWithWrapped( - {Wrapped? type, - Wrapped>? delegations}) { - return VotingInfoDelegations( - type: (type != null ? type.value : this.type), - delegations: - (delegations != null ? delegations.value : this.delegations)); - } -} - -@JsonSerializable(explicitToJson: true) -class VotingInfoDirectVoter { - const VotingInfoDirectVoter({ - required this.type, - required this.votingKey, - }); - - factory VotingInfoDirectVoter.fromJson(Map json) => - _$VotingInfoDirectVoterFromJson(json); - - static const toJsonFactory = _$VotingInfoDirectVoterToJson; - Map toJson() => _$VotingInfoDirectVoterToJson(this); - - @JsonKey( - name: 'type', - toJson: votingInfoDirectVoterTypeToJson, - fromJson: votingInfoDirectVoterTypeFromJson, - ) - final enums.VotingInfoDirectVoterType type; - @JsonKey(name: 'voting_key') - final String votingKey; - static const fromJsonFactory = _$VotingInfoDirectVoterFromJson; - - @override - bool operator ==(Object other) { - return identical(this, other) || - (other is VotingInfoDirectVoter && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.votingKey, votingKey) || - const DeepCollectionEquality() - .equals(other.votingKey, votingKey))); - } - - @override - String toString() => jsonEncode(this); - - @override - int get hashCode => - const DeepCollectionEquality().hash(type) ^ - const DeepCollectionEquality().hash(votingKey) ^ - runtimeType.hashCode; -} - -extension $VotingInfoDirectVoterExtension on VotingInfoDirectVoter { - VotingInfoDirectVoter copyWith( - {enums.VotingInfoDirectVoterType? type, String? votingKey}) { - return VotingInfoDirectVoter( - type: type ?? this.type, votingKey: votingKey ?? this.votingKey); - } - - VotingInfoDirectVoter copyWithWrapped( - {Wrapped? type, - Wrapped? votingKey}) { - return VotingInfoDirectVoter( - type: (type != null ? type.value : this.type), - votingKey: (votingKey != null ? votingKey.value : this.votingKey)); - } -} - -String? deepQueryInspectionFlagNullableToJson( - enums.DeepQueryInspectionFlag? deepQueryInspectionFlag) { - return deepQueryInspectionFlag?.value; -} - -String? deepQueryInspectionFlagToJson( - enums.DeepQueryInspectionFlag deepQueryInspectionFlag) { - return deepQueryInspectionFlag.value; -} - -enums.DeepQueryInspectionFlag deepQueryInspectionFlagFromJson( - Object? deepQueryInspectionFlag, [ - enums.DeepQueryInspectionFlag? defaultValue, -]) { - return enums.DeepQueryInspectionFlag.values - .firstWhereOrNull((e) => e.value == deepQueryInspectionFlag) ?? - defaultValue ?? - enums.DeepQueryInspectionFlag.swaggerGeneratedUnknown; -} - -enums.DeepQueryInspectionFlag? deepQueryInspectionFlagNullableFromJson( - Object? deepQueryInspectionFlag, [ - enums.DeepQueryInspectionFlag? defaultValue, -]) { - if (deepQueryInspectionFlag == null) { - return null; - } - return enums.DeepQueryInspectionFlag.values - .firstWhereOrNull((e) => e.value == deepQueryInspectionFlag) ?? - defaultValue; -} - -String deepQueryInspectionFlagExplodedListToJson( - List? deepQueryInspectionFlag) { - return deepQueryInspectionFlag?.map((e) => e.value!).join(',') ?? ''; -} - -List deepQueryInspectionFlagListToJson( - List? deepQueryInspectionFlag) { - if (deepQueryInspectionFlag == null) { - return []; - } - - return deepQueryInspectionFlag.map((e) => e.value!).toList(); -} - -List deepQueryInspectionFlagListFromJson( - List? deepQueryInspectionFlag, [ - List? defaultValue, -]) { - if (deepQueryInspectionFlag == null) { - return defaultValue ?? []; - } - - return deepQueryInspectionFlag - .map((e) => deepQueryInspectionFlagFromJson(e.toString())) - .toList(); -} - -List? - deepQueryInspectionFlagNullableListFromJson( - List? deepQueryInspectionFlag, [ - List? defaultValue, -]) { - if (deepQueryInspectionFlag == null) { - return defaultValue; - } - - return deepQueryInspectionFlag - .map((e) => deepQueryInspectionFlagFromJson(e.toString())) - .toList(); -} - -String? logLevelNullableToJson(enums.LogLevel? logLevel) { - return logLevel?.value; -} - -String? logLevelToJson(enums.LogLevel logLevel) { - return logLevel.value; -} - -enums.LogLevel logLevelFromJson( - Object? logLevel, [ - enums.LogLevel? defaultValue, -]) { - return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? - defaultValue ?? - enums.LogLevel.swaggerGeneratedUnknown; -} - -enums.LogLevel? logLevelNullableFromJson( - Object? logLevel, [ - enums.LogLevel? defaultValue, -]) { - if (logLevel == null) { - return null; - } - return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? - defaultValue; -} - -String logLevelExplodedListToJson(List? logLevel) { - return logLevel?.map((e) => e.value!).join(',') ?? ''; -} - -List logLevelListToJson(List? logLevel) { - if (logLevel == null) { - return []; - } - - return logLevel.map((e) => e.value!).toList(); -} - -List logLevelListFromJson( - List? logLevel, [ - List? defaultValue, -]) { - if (logLevel == null) { - return defaultValue ?? []; - } - - return logLevel.map((e) => logLevelFromJson(e.toString())).toList(); -} - -List? logLevelNullableListFromJson( - List? logLevel, [ - List? defaultValue, -]) { - if (logLevel == null) { - return defaultValue; - } - - return logLevel.map((e) => logLevelFromJson(e.toString())).toList(); -} - -String? networkNullableToJson(enums.Network? network) { - return network?.value; -} - -String? networkToJson(enums.Network network) { - return network.value; -} - -enums.Network networkFromJson( - Object? network, [ - enums.Network? defaultValue, -]) { - return enums.Network.values.firstWhereOrNull((e) => e.value == network) ?? - defaultValue ?? - enums.Network.swaggerGeneratedUnknown; -} - -enums.Network? networkNullableFromJson( - Object? network, [ - enums.Network? defaultValue, -]) { - if (network == null) { - return null; - } - return enums.Network.values.firstWhereOrNull((e) => e.value == network) ?? - defaultValue; -} - -String networkExplodedListToJson(List? network) { - return network?.map((e) => e.value!).join(',') ?? ''; -} - -List networkListToJson(List? network) { - if (network == null) { - return []; - } - - return network.map((e) => e.value!).toList(); -} - -List networkListFromJson( - List? network, [ - List? defaultValue, -]) { - if (network == null) { - return defaultValue ?? []; - } - - return network.map((e) => networkFromJson(e.toString())).toList(); -} - -List? networkNullableListFromJson( - List? network, [ - List? defaultValue, -]) { - if (network == null) { - return defaultValue; - } - - return network.map((e) => networkFromJson(e.toString())).toList(); -} - -String? reasonRejectedNullableToJson(enums.ReasonRejected? reasonRejected) { - return reasonRejected?.value; -} - -String? reasonRejectedToJson(enums.ReasonRejected reasonRejected) { - return reasonRejected.value; -} - -enums.ReasonRejected reasonRejectedFromJson( - Object? reasonRejected, [ - enums.ReasonRejected? defaultValue, -]) { - return enums.ReasonRejected.values - .firstWhereOrNull((e) => e.value == reasonRejected) ?? - defaultValue ?? - enums.ReasonRejected.swaggerGeneratedUnknown; -} - -enums.ReasonRejected? reasonRejectedNullableFromJson( - Object? reasonRejected, [ - enums.ReasonRejected? defaultValue, -]) { - if (reasonRejected == null) { - return null; - } - return enums.ReasonRejected.values - .firstWhereOrNull((e) => e.value == reasonRejected) ?? - defaultValue; -} - -String reasonRejectedExplodedListToJson( - List? reasonRejected) { - return reasonRejected?.map((e) => e.value!).join(',') ?? ''; -} - -List reasonRejectedListToJson( - List? reasonRejected) { - if (reasonRejected == null) { - return []; - } - - return reasonRejected.map((e) => e.value!).toList(); -} - -List reasonRejectedListFromJson( - List? reasonRejected, [ - List? defaultValue, -]) { - if (reasonRejected == null) { - return defaultValue ?? []; - } - - return reasonRejected - .map((e) => reasonRejectedFromJson(e.toString())) - .toList(); -} - -List? reasonRejectedNullableListFromJson( - List? reasonRejected, [ - List? defaultValue, -]) { - if (reasonRejected == null) { - return defaultValue; - } - - return reasonRejected - .map((e) => reasonRejectedFromJson(e.toString())) - .toList(); -} - -String? voterGroupIdNullableToJson(enums.VoterGroupId? voterGroupId) { - return voterGroupId?.value; -} - -String? voterGroupIdToJson(enums.VoterGroupId voterGroupId) { - return voterGroupId.value; -} - -enums.VoterGroupId voterGroupIdFromJson( - Object? voterGroupId, [ - enums.VoterGroupId? defaultValue, -]) { - return enums.VoterGroupId.values - .firstWhereOrNull((e) => e.value == voterGroupId) ?? - defaultValue ?? - enums.VoterGroupId.swaggerGeneratedUnknown; -} - -enums.VoterGroupId? voterGroupIdNullableFromJson( - Object? voterGroupId, [ - enums.VoterGroupId? defaultValue, -]) { - if (voterGroupId == null) { - return null; - } - return enums.VoterGroupId.values - .firstWhereOrNull((e) => e.value == voterGroupId) ?? - defaultValue; -} - -String voterGroupIdExplodedListToJson(List? voterGroupId) { - return voterGroupId?.map((e) => e.value!).join(',') ?? ''; -} - -List voterGroupIdListToJson(List? voterGroupId) { - if (voterGroupId == null) { - return []; - } - - return voterGroupId.map((e) => e.value!).toList(); -} - -List voterGroupIdListFromJson( - List? voterGroupId, [ - List? defaultValue, -]) { - if (voterGroupId == null) { - return defaultValue ?? []; - } - - return voterGroupId.map((e) => voterGroupIdFromJson(e.toString())).toList(); -} - -List? voterGroupIdNullableListFromJson( - List? voterGroupId, [ - List? defaultValue, -]) { - if (voterGroupId == null) { - return defaultValue; - } - - return voterGroupId.map((e) => voterGroupIdFromJson(e.toString())).toList(); -} - -String? votingInfoDelegationsTypeNullableToJson( - enums.VotingInfoDelegationsType? votingInfoDelegationsType) { - return votingInfoDelegationsType?.value; -} - -String? votingInfoDelegationsTypeToJson( - enums.VotingInfoDelegationsType votingInfoDelegationsType) { - return votingInfoDelegationsType.value; -} - -enums.VotingInfoDelegationsType votingInfoDelegationsTypeFromJson( - Object? votingInfoDelegationsType, [ - enums.VotingInfoDelegationsType? defaultValue, -]) { - return enums.VotingInfoDelegationsType.values - .firstWhereOrNull((e) => e.value == votingInfoDelegationsType) ?? - defaultValue ?? - enums.VotingInfoDelegationsType.swaggerGeneratedUnknown; -} - -enums.VotingInfoDelegationsType? votingInfoDelegationsTypeNullableFromJson( - Object? votingInfoDelegationsType, [ - enums.VotingInfoDelegationsType? defaultValue, -]) { - if (votingInfoDelegationsType == null) { - return null; - } - return enums.VotingInfoDelegationsType.values - .firstWhereOrNull((e) => e.value == votingInfoDelegationsType) ?? - defaultValue; -} - -String votingInfoDelegationsTypeExplodedListToJson( - List? votingInfoDelegationsType) { - return votingInfoDelegationsType?.map((e) => e.value!).join(',') ?? ''; -} - -List votingInfoDelegationsTypeListToJson( - List? votingInfoDelegationsType) { - if (votingInfoDelegationsType == null) { - return []; - } - - return votingInfoDelegationsType.map((e) => e.value!).toList(); -} - -List votingInfoDelegationsTypeListFromJson( - List? votingInfoDelegationsType, [ - List? defaultValue, -]) { - if (votingInfoDelegationsType == null) { - return defaultValue ?? []; - } - - return votingInfoDelegationsType - .map((e) => votingInfoDelegationsTypeFromJson(e.toString())) - .toList(); -} - -List? - votingInfoDelegationsTypeNullableListFromJson( - List? votingInfoDelegationsType, [ - List? defaultValue, -]) { - if (votingInfoDelegationsType == null) { - return defaultValue; - } - - return votingInfoDelegationsType - .map((e) => votingInfoDelegationsTypeFromJson(e.toString())) - .toList(); -} - -String? votingInfoDirectVoterTypeNullableToJson( - enums.VotingInfoDirectVoterType? votingInfoDirectVoterType) { - return votingInfoDirectVoterType?.value; -} - -String? votingInfoDirectVoterTypeToJson( - enums.VotingInfoDirectVoterType votingInfoDirectVoterType) { - return votingInfoDirectVoterType.value; -} - -enums.VotingInfoDirectVoterType votingInfoDirectVoterTypeFromJson( - Object? votingInfoDirectVoterType, [ - enums.VotingInfoDirectVoterType? defaultValue, -]) { - return enums.VotingInfoDirectVoterType.values - .firstWhereOrNull((e) => e.value == votingInfoDirectVoterType) ?? - defaultValue ?? - enums.VotingInfoDirectVoterType.swaggerGeneratedUnknown; -} - -enums.VotingInfoDirectVoterType? votingInfoDirectVoterTypeNullableFromJson( - Object? votingInfoDirectVoterType, [ - enums.VotingInfoDirectVoterType? defaultValue, -]) { - if (votingInfoDirectVoterType == null) { - return null; - } - return enums.VotingInfoDirectVoterType.values - .firstWhereOrNull((e) => e.value == votingInfoDirectVoterType) ?? - defaultValue; -} - -String votingInfoDirectVoterTypeExplodedListToJson( - List? votingInfoDirectVoterType) { - return votingInfoDirectVoterType?.map((e) => e.value!).join(',') ?? ''; -} - -List votingInfoDirectVoterTypeListToJson( - List? votingInfoDirectVoterType) { - if (votingInfoDirectVoterType == null) { - return []; - } - - return votingInfoDirectVoterType.map((e) => e.value!).toList(); -} - -List votingInfoDirectVoterTypeListFromJson( - List? votingInfoDirectVoterType, [ - List? defaultValue, -]) { - if (votingInfoDirectVoterType == null) { - return defaultValue ?? []; - } - - return votingInfoDirectVoterType - .map((e) => votingInfoDirectVoterTypeFromJson(e.toString())) - .toList(); -} - -List? - votingInfoDirectVoterTypeNullableListFromJson( - List? votingInfoDirectVoterType, [ - List? defaultValue, -]) { - if (votingInfoDirectVoterType == null) { - return defaultValue; - } - - return votingInfoDirectVoterType - .map((e) => votingInfoDirectVoterTypeFromJson(e.toString())) - .toList(); -} - -// ignore: unused_element -String? _dateToJson(DateTime? date) { - if (date == null) { - return null; - } - - final year = date.year.toString(); - final month = date.month < 10 ? '0${date.month}' : date.month.toString(); - final day = date.day < 10 ? '0${date.day}' : date.day.toString(); - - return '$year-$month-$day'; -} - -class Wrapped { - final T value; - const Wrapped.value(this.value); -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.g.dart b/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.g.dart deleted file mode 100644 index dca02d68ab..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.models.swagger.g.dart +++ /dev/null @@ -1,612 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'cat_gateway_api.models.swagger.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -AccountVote _$AccountVoteFromJson(Map json) => AccountVote( - votePlanId: json['vote_plan_id'] as String, - votes: (json['votes'] as List?) - ?.map((e) => (e as num).toInt()) - .toList() ?? - [], - ); - -Map _$AccountVoteToJson(AccountVote instance) => - { - 'vote_plan_id': instance.votePlanId, - 'votes': instance.votes, - }; - -BlockDate _$BlockDateFromJson(Map json) => BlockDate( - epoch: (json['epoch'] as num).toInt(), - slotId: (json['slot_id'] as num).toInt(), - ); - -Map _$BlockDateToJson(BlockDate instance) => { - 'epoch': instance.epoch, - 'slot_id': instance.slotId, - }; - -Cip36Info _$Cip36InfoFromJson(Map json) => Cip36Info( - stakePubKey: json['stake_pub_key'] as String, - nonce: (json['nonce'] as num).toInt(), - slotNo: (json['slot_no'] as num).toInt(), - txn: (json['txn'] as num).toInt(), - voteKey: json['vote_key'] as String, - paymentAddress: json['payment_address'] as String, - isPayable: json['is_payable'] as bool, - cip36: json['cip36'] as bool, - ); - -Map _$Cip36InfoToJson(Cip36Info instance) => { - 'stake_pub_key': instance.stakePubKey, - 'nonce': instance.nonce, - 'slot_no': instance.slotNo, - 'txn': instance.txn, - 'vote_key': instance.voteKey, - 'payment_address': instance.paymentAddress, - 'is_payable': instance.isPayable, - 'cip36': instance.cip36, - }; - -Cip36Reporting _$Cip36ReportingFromJson(Map json) => - Cip36Reporting( - cip36: (json['cip36'] as List?) - ?.map((e) => Cip36Info.fromJson(e as Map)) - .toList() ?? - [], - invalids: (json['invalids'] as List?) - ?.map((e) => InvalidRegistrationsReport.fromJson( - e as Map)) - .toList() ?? - [], - ); - -Map _$Cip36ReportingToJson(Cip36Reporting instance) => - { - 'cip36': instance.cip36.map((e) => e.toJson()).toList(), - 'invalids': instance.invalids.map((e) => e.toJson()).toList(), - }; - -Cip36ReportingList _$Cip36ReportingListFromJson(Map json) => - Cip36ReportingList( - cip36: (json['cip36'] as List?) - ?.map((e) => Cip36Reporting.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$Cip36ReportingListToJson(Cip36ReportingList instance) => - { - 'cip36': instance.cip36.map((e) => e.toJson()).toList(), - }; - -ConfigBadRequest _$ConfigBadRequestFromJson(Map json) => - ConfigBadRequest( - error: json['error'] as String, - schemaValidationErrors: - (json['schema_validation_errors'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - ); - -Map _$ConfigBadRequestToJson(ConfigBadRequest instance) => - { - 'error': instance.error, - 'schema_validation_errors': instance.schemaValidationErrors, - }; - -ContentErrorDetail _$ContentErrorDetailFromJson(Map json) => - ContentErrorDetail( - loc: (json['loc'] as List?)?.map((e) => e as String).toList() ?? - [], - msg: json['msg'] as String?, - type: json['type'] as String?, - ); - -Map _$ContentErrorDetailToJson(ContentErrorDetail instance) => - { - 'loc': instance.loc, - 'msg': instance.msg, - 'type': instance.type, - }; - -DelegatePublicKey _$DelegatePublicKeyFromJson(Map json) => - DelegatePublicKey( - address: json['address'] as String, - ); - -Map _$DelegatePublicKeyToJson(DelegatePublicKey instance) => - { - 'address': instance.address, - }; - -Delegation _$DelegationFromJson(Map json) => Delegation( - votingKey: json['voting_key'] as String, - power: (json['power'] as num).toInt(), - ); - -Map _$DelegationToJson(Delegation instance) => - { - 'voting_key': instance.votingKey, - 'power': instance.power, - }; - -Delegations _$DelegationsFromJson(Map json) => Delegations( - delegations: (json['delegations'] as List?) - ?.map((e) => Delegation.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$DelegationsToJson(Delegations instance) => - { - 'delegations': instance.delegations.map((e) => e.toJson()).toList(), - }; - -DirectVoter _$DirectVoterFromJson(Map json) => DirectVoter( - votingKey: json['voting_key'] as String, - ); - -Map _$DirectVoterToJson(DirectVoter instance) => - { - 'voting_key': instance.votingKey, - }; - -Forbidden _$ForbiddenFromJson(Map json) => Forbidden( - id: json['id'] as String, - msg: json['msg'] as String, - required: (json['required'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - ); - -Map _$ForbiddenToJson(Forbidden instance) => { - 'id': instance.id, - 'msg': instance.msg, - 'required': instance.required, - }; - -FragmentStatus _$FragmentStatusFromJson(Map json) => - FragmentStatus(); - -Map _$FragmentStatusToJson(FragmentStatus instance) => - {}; - -FragmentsBatch _$FragmentsBatchFromJson(Map json) => - FragmentsBatch( - failFast: json['fail_fast'] as bool, - fragments: (json['fragments'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - ); - -Map _$FragmentsBatchToJson(FragmentsBatch instance) => - { - 'fail_fast': instance.failFast, - 'fragments': instance.fragments, - }; - -FragmentsProcessingSummary _$FragmentsProcessingSummaryFromJson( - Map json) => - FragmentsProcessingSummary( - accepted: (json['accepted'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - rejected: (json['rejected'] as List?) - ?.map((e) => RejectedFragment.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$FragmentsProcessingSummaryToJson( - FragmentsProcessingSummary instance) => - { - 'accepted': instance.accepted, - 'rejected': instance.rejected.map((e) => e.toJson()).toList(), - }; - -FrontendConfig _$FrontendConfigFromJson(Map json) => - FrontendConfig( - sentry: json['sentry'] == null - ? null - : Sentry.fromJson(json['sentry'] as Map), - ); - -Map _$FrontendConfigToJson(FrontendConfig instance) => - { - 'sentry': instance.sentry?.toJson(), - }; - -FullStakeInfo _$FullStakeInfoFromJson(Map json) => - FullStakeInfo( - volatile: StakeInfo.fromJson(json['volatile'] as Map), - persistent: - StakeInfo.fromJson(json['persistent'] as Map), - ); - -Map _$FullStakeInfoToJson(FullStakeInfo instance) => - { - 'volatile': instance.volatile.toJson(), - 'persistent': instance.persistent.toJson(), - }; - -Hash _$HashFromJson(Map json) => Hash( - hash: json['hash'] as String, - ); - -Map _$HashToJson(Hash instance) => { - 'hash': instance.hash, - }; - -InternalServerError _$InternalServerErrorFromJson(Map json) => - InternalServerError( - id: json['id'] as String, - msg: json['msg'] as String, - issue: json['issue'] as String?, - ); - -Map _$InternalServerErrorToJson( - InternalServerError instance) => - { - 'id': instance.id, - 'msg': instance.msg, - 'issue': instance.issue, - }; - -InvalidRegistrationsReport _$InvalidRegistrationsReportFromJson( - Map json) => - InvalidRegistrationsReport( - errorReport: (json['error_report'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - stakeAddress: json['stake_address'] as String, - voteKey: json['vote_key'] as String, - paymentAddress: json['payment_address'] as String, - isPayable: json['is_payable'] as bool, - cip36: json['cip36'] as bool, - ); - -Map _$InvalidRegistrationsReportToJson( - InvalidRegistrationsReport instance) => - { - 'error_report': instance.errorReport, - 'stake_address': instance.stakeAddress, - 'vote_key': instance.voteKey, - 'payment_address': instance.paymentAddress, - 'is_payable': instance.isPayable, - 'cip36': instance.cip36, - }; - -RbacRegistration _$RbacRegistrationFromJson(Map json) => - RbacRegistration( - txHash: json['tx_hash'] as String, - ); - -Map _$RbacRegistrationToJson(RbacRegistration instance) => - { - 'tx_hash': instance.txHash, - }; - -RbacRegistrationsResponse _$RbacRegistrationsResponseFromJson( - Map json) => - RbacRegistrationsResponse( - registrations: (json['registrations'] as List?) - ?.map((e) => RbacRegistration.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$RbacRegistrationsResponseToJson( - RbacRegistrationsResponse instance) => - { - 'registrations': instance.registrations.map((e) => e.toJson()).toList(), - }; - -RbacRole0ChainRootResponse _$RbacRole0ChainRootResponseFromJson( - Map json) => - RbacRole0ChainRootResponse( - chainRoot: json['chain_root'] as String, - ); - -Map _$RbacRole0ChainRootResponseToJson( - RbacRole0ChainRootResponse instance) => - { - 'chain_root': instance.chainRoot, - }; - -RegistrationInfo _$RegistrationInfoFromJson(Map json) => - RegistrationInfo( - rewardsAddress: json['rewards_address'] as String, - txHash: json['tx_hash'] as String, - nonce: (json['nonce'] as num).toInt(), - votingInfo: - VotingInfo.fromJson(json['voting_info'] as Map), - ); - -Map _$RegistrationInfoToJson(RegistrationInfo instance) => - { - 'rewards_address': instance.rewardsAddress, - 'tx_hash': instance.txHash, - 'nonce': instance.nonce, - 'voting_info': instance.votingInfo.toJson(), - }; - -RejectedFragment _$RejectedFragmentFromJson(Map json) => - RejectedFragment( - id: json['id'] as String, - poolNumber: (json['pool_number'] as num).toInt(), - reason: reasonRejectedFromJson(json['reason']), - ); - -Map _$RejectedFragmentToJson(RejectedFragment instance) => - { - 'id': instance.id, - 'pool_number': instance.poolNumber, - 'reason': reasonRejectedToJson(instance.reason), - }; - -Response$ _$Response$FromJson(Map json) => Response$( - chainRoot: json['chain_root'] as String, - ); - -Map _$Response$ToJson(Response$ instance) => { - 'chain_root': instance.chainRoot, - }; - -Sentry _$SentryFromJson(Map json) => Sentry( - dsn: json['dsn'] as String, - release: json['release'] as String?, - environment: json['environment'] as String?, - ); - -Map _$SentryToJson(Sentry instance) => { - 'dsn': instance.dsn, - 'release': instance.release, - 'environment': instance.environment, - }; - -ServiceUnavailable _$ServiceUnavailableFromJson(Map json) => - ServiceUnavailable( - id: json['id'] as String, - msg: json['msg'] as String, - ); - -Map _$ServiceUnavailableToJson(ServiceUnavailable instance) => - { - 'id': instance.id, - 'msg': instance.msg, - }; - -Slot _$SlotFromJson(Map json) => Slot( - slotNumber: (json['slot_number'] as num).toInt(), - blockHash: json['block_hash'] as String, - blockTime: DateTime.parse(json['block_time'] as String), - ); - -Map _$SlotToJson(Slot instance) => { - 'slot_number': instance.slotNumber, - 'block_hash': instance.blockHash, - 'block_time': instance.blockTime.toIso8601String(), - }; - -SlotInfo _$SlotInfoFromJson(Map json) => SlotInfo( - previous: json['previous'] == null - ? null - : Slot.fromJson(json['previous'] as Map), - current: json['current'] == null - ? null - : Slot.fromJson(json['current'] as Map), - next: json['next'] == null - ? null - : Slot.fromJson(json['next'] as Map), - ); - -Map _$SlotInfoToJson(SlotInfo instance) => { - 'previous': instance.previous?.toJson(), - 'current': instance.current?.toJson(), - 'next': instance.next?.toJson(), - }; - -StakeInfo _$StakeInfoFromJson(Map json) => StakeInfo( - adaAmount: (json['ada_amount'] as num).toInt(), - slotNumber: (json['slot_number'] as num).toInt(), - nativeTokens: (json['native_tokens'] as List?) - ?.map((e) => - StakedNativeTokenInfo.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$StakeInfoToJson(StakeInfo instance) => { - 'ada_amount': instance.adaAmount, - 'slot_number': instance.slotNumber, - 'native_tokens': instance.nativeTokens.map((e) => e.toJson()).toList(), - }; - -StakedNativeTokenInfo _$StakedNativeTokenInfoFromJson( - Map json) => - StakedNativeTokenInfo( - policyHash: json['policy_hash'] as String, - assetName: json['asset_name'] as String, - amount: (json['amount'] as num).toInt(), - ); - -Map _$StakedNativeTokenInfoToJson( - StakedNativeTokenInfo instance) => - { - 'policy_hash': instance.policyHash, - 'asset_name': instance.assetName, - 'amount': instance.amount, - }; - -StatusInABlock _$StatusInABlockFromJson(Map json) => - StatusInABlock( - date: BlockDate.fromJson(json['date'] as Map), - block: Hash.fromJson(json['block'] as Map), - ); - -Map _$StatusInABlockToJson(StatusInABlock instance) => - { - 'date': instance.date.toJson(), - 'block': instance.block.toJson(), - }; - -StatusPending _$StatusPendingFromJson(Map json) => - StatusPending(); - -Map _$StatusPendingToJson(StatusPending instance) => - {}; - -StatusRejected _$StatusRejectedFromJson(Map json) => - StatusRejected( - reason: json['reason'] as String, - ); - -Map _$StatusRejectedToJson(StatusRejected instance) => - { - 'reason': instance.reason, - }; - -SyncState _$SyncStateFromJson(Map json) => SyncState( - slotNumber: (json['slot_number'] as num).toInt(), - blockHash: json['block_hash'] as String, - lastUpdated: DateTime.parse(json['last_updated'] as String), - ); - -Map _$SyncStateToJson(SyncState instance) => { - 'slot_number': instance.slotNumber, - 'block_hash': instance.blockHash, - 'last_updated': instance.lastUpdated.toIso8601String(), - }; - -TooManyRequests _$TooManyRequestsFromJson(Map json) => - TooManyRequests( - id: json['id'] as String, - msg: json['msg'] as String, - ); - -Map _$TooManyRequestsToJson(TooManyRequests instance) => - { - 'id': instance.id, - 'msg': instance.msg, - }; - -Unauthorized _$UnauthorizedFromJson(Map json) => Unauthorized( - id: json['id'] as String, - msg: json['msg'] as String, - ); - -Map _$UnauthorizedToJson(Unauthorized instance) => - { - 'id': instance.id, - 'msg': instance.msg, - }; - -UnprocessableContent _$UnprocessableContentFromJson( - Map json) => - UnprocessableContent( - detail: (json['detail'] as List?) - ?.map( - (e) => ContentErrorDetail.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$UnprocessableContentToJson( - UnprocessableContent instance) => - { - 'detail': instance.detail.map((e) => e.toJson()).toList(), - }; - -VotePlan _$VotePlanFromJson(Map json) => VotePlan( - votingToken: json['voting_token'] as String, - ); - -Map _$VotePlanToJson(VotePlan instance) => { - 'voting_token': instance.votingToken, - }; - -VoterInfo _$VoterInfoFromJson(Map json) => VoterInfo( - votingPower: (json['voting_power'] as num).toInt(), - votingGroup: voterGroupIdFromJson(json['voting_group']), - delegationsPower: (json['delegations_power'] as num).toInt(), - delegationsCount: (json['delegations_count'] as num).toInt(), - votingPowerSaturation: - (json['voting_power_saturation'] as num).toDouble(), - delegatorAddresses: (json['delegator_addresses'] as List?) - ?.map( - (e) => DelegatePublicKey.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$VoterInfoToJson(VoterInfo instance) => { - 'voting_power': instance.votingPower, - 'voting_group': voterGroupIdToJson(instance.votingGroup), - 'delegations_power': instance.delegationsPower, - 'delegations_count': instance.delegationsCount, - 'voting_power_saturation': instance.votingPowerSaturation, - 'delegator_addresses': - instance.delegatorAddresses?.map((e) => e.toJson()).toList(), - }; - -VoterRegistration _$VoterRegistrationFromJson(Map json) => - VoterRegistration( - voterInfo: VoterInfo.fromJson(json['voter_info'] as Map), - asAt: DateTime.parse(json['as_at'] as String), - lastUpdated: DateTime.parse(json['last_updated'] as String), - $final: json['final'] as bool, - ); - -Map _$VoterRegistrationToJson(VoterRegistration instance) => - { - 'voter_info': instance.voterInfo.toJson(), - 'as_at': instance.asAt.toIso8601String(), - 'last_updated': instance.lastUpdated.toIso8601String(), - 'final': instance.$final, - }; - -VotingInfo _$VotingInfoFromJson(Map json) => VotingInfo(); - -Map _$VotingInfoToJson(VotingInfo instance) => - {}; - -VotingInfoDelegations _$VotingInfoDelegationsFromJson( - Map json) => - VotingInfoDelegations( - type: votingInfoDelegationsTypeFromJson(json['type']), - delegations: (json['delegations'] as List?) - ?.map((e) => Delegation.fromJson(e as Map)) - .toList() ?? - [], - ); - -Map _$VotingInfoDelegationsToJson( - VotingInfoDelegations instance) => - { - 'type': votingInfoDelegationsTypeToJson(instance.type), - 'delegations': instance.delegations.map((e) => e.toJson()).toList(), - }; - -VotingInfoDirectVoter _$VotingInfoDirectVoterFromJson( - Map json) => - VotingInfoDirectVoter( - type: votingInfoDirectVoterTypeFromJson(json['type']), - votingKey: json['voting_key'] as String, - ); - -Map _$VotingInfoDirectVoterToJson( - VotingInfoDirectVoter instance) => - { - 'type': votingInfoDirectVoterTypeToJson(instance.type), - 'voting_key': instance.votingKey, - }; diff --git a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.chopper.dart b/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.chopper.dart deleted file mode 100644 index 57ab55da52..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.chopper.dart +++ /dev/null @@ -1,364 +0,0 @@ -// Generated code - -part of 'cat_gateway_api.swagger.dart'; - -// ************************************************************************** -// ChopperGenerator -// ************************************************************************** - -// coverage:ignore-file -// ignore_for_file: type=lint -final class _$CatGatewayApi extends CatGatewayApi { - _$CatGatewayApi([ChopperClient? client]) { - if (client == null) return; - this.client = client; - } - - @override - final Type definitionType = CatGatewayApi; - - @override - Future> _apiV1HealthStartedGet() { - final Uri $url = Uri.parse('/api/v1/health/started'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> _apiV1HealthReadyGet() { - final Uri $url = Uri.parse('/api/v1/health/ready'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> _apiV1HealthLiveGet() { - final Uri $url = Uri.parse('/api/v1/health/live'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> _apiV1HealthInspectionPut({ - String? logLevel, - String? queryInspection, - }) { - final Uri $url = Uri.parse('/api/v1/health/inspection'); - final Map $params = { - 'log_level': logLevel, - 'query_inspection': queryInspection, - }; - final Request $request = Request( - 'PUT', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> - _apiDraftCardanoRegistrationStakeAddressGet({ - required String? stakeAddress, - String? network, - int? slotNumber, - }) { - final Uri $url = - Uri.parse('/api/draft/cardano/registration/${stakeAddress}'); - final Map $params = { - 'network': network, - 'slot_number': slotNumber, - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiDraftCardanoSyncStateGet({String? network}) { - final Uri $url = Uri.parse('/api/draft/cardano/sync_state'); - final Map $params = {'network': network}; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiDraftCardanoDateTimeToSlotNumberGet({ - DateTime? dateTime, - String? network, - }) { - final Uri $url = Uri.parse('/api/draft/cardano/date_time_to_slot_number'); - final Map $params = { - 'date_time': dateTime, - 'network': network, - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> - _apiDraftCardanoCip36LatestRegistrationStakeAddrGet( - {required String? stakePubKey}) { - final Uri $url = - Uri.parse('/api/draft/cardano/cip36/latest_registration/stake_addr'); - final Map $params = { - 'stake_pub_key': stakePubKey - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> - _apiDraftCardanoCip36LatestRegistrationStakeKeyHashGet( - {required String? stakeKeyHash}) { - final Uri $url = Uri.parse( - '/api/draft/cardano/cip36/latest_registration/stake_key_hash'); - final Map $params = { - 'stake_key_hash': stakeKeyHash - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> - _apiDraftCardanoCip36LatestRegistrationVoteKeyGet( - {required String? voteKey}) { - final Uri $url = - Uri.parse('/api/draft/cardano/cip36/latest_registration/vote_key'); - final Map $params = {'vote_key': voteKey}; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiDraftRbacChainRootStakeAddressGet( - {required String? stakeAddress}) { - final Uri $url = Uri.parse('/api/draft/rbac/chain_root/${stakeAddress}'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> - _apiDraftRbacRegistrationsChainRootGet({required String? chainRoot}) { - final Uri $url = Uri.parse('/api/draft/rbac/registrations/${chainRoot}'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client - .send($request); - } - - @override - Future> - _apiDraftRbacRole0ChainRootRole0KeyGet({required String? role0Key}) { - final Uri $url = Uri.parse('/api/draft/rbac/role0_chain_root/${role0Key}'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client - .send($request); - } - - @override - Future> _apiDraftCardanoAssetsStakeAddressGet({ - required String? stakeAddress, - String? network, - int? slotNumber, - }) { - final Uri $url = Uri.parse('/api/draft/cardano/assets/${stakeAddress}'); - final Map $params = { - 'network': network, - 'slot_number': slotNumber, - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiDraftConfigFrontendGet() { - final Uri $url = Uri.parse('/api/draft/config/frontend'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> _apiDraftConfigFrontendPut({ - Object? ip, - required FrontendConfig? body, - }) { - final Uri $url = Uri.parse('/api/draft/config/frontend'); - final Map $params = {'IP': ip}; - final $body = body; - final Request $request = Request( - 'PUT', - $url, - client.baseUrl, - body: $body, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiDraftConfigFrontendSchemaGet() { - final Uri $url = Uri.parse('/api/draft/config/frontend/schema'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send($request); - } - - @override - Future> _apiV1RegistrationVoterVotingKeyGet({ - required String? votingKey, - int? eventIndex, - bool? withDelegators, - }) { - final Uri $url = Uri.parse('/api/v1/registration/voter/${votingKey}'); - final Map $params = { - 'event_index': eventIndex, - 'with_delegators': withDelegators, - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } - - @override - Future> _apiV0MessagePost( - {required Object? body}) { - final Uri $url = Uri.parse('/api/v0/message'); - final $body = body; - final Request $request = Request( - 'POST', - $url, - client.baseUrl, - body: $body, - ); - return client - .send($request); - } - - @override - Future>> _apiV0VoteActivePlansGet() { - final Uri $url = Uri.parse('/api/v0/vote/active/plans'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send, VotePlan>($request); - } - - @override - Future>> _apiV1VotesPlanAccountVotesAccountIdGet( - {required String? accountId}) { - final Uri $url = Uri.parse('/api/v1/votes/plan/account-votes/${accountId}'); - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - ); - return client.send, AccountVote>($request); - } - - @override - Future> _apiV1FragmentsPost( - {required FragmentsBatch? body}) { - final Uri $url = Uri.parse('/api/v1/fragments'); - final $body = body; - final Request $request = Request( - 'POST', - $url, - client.baseUrl, - body: $body, - ); - return client - .send($request); - } - - @override - Future> _apiV1FragmentsStatusesGet( - {required List? fragmentIds}) { - final Uri $url = Uri.parse('/api/v1/fragments/statuses'); - final Map $params = { - 'fragment_ids': fragmentIds - }; - final Request $request = Request( - 'GET', - $url, - client.baseUrl, - parameters: $params, - ); - return client.send($request); - } -} diff --git a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.dart b/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.dart deleted file mode 100644 index 18da5dd442..0000000000 --- a/catalyst_voices/packages/internal/catalyst_voices_services/lib/generated/catalyst_gateway/cat_gateway_api.swagger.dart +++ /dev/null @@ -1,538 +0,0 @@ -// ignore_for_file: type=lint - -import 'package:json_annotation/json_annotation.dart'; -import 'package:collection/collection.dart'; -import 'dart:convert'; - -import 'cat_gateway_api.models.swagger.dart'; -import 'package:chopper/chopper.dart'; - -import 'client_mapping.dart'; -import 'dart:async'; -import 'package:http/http.dart' as http; -import 'package:http/http.dart' show MultipartFile; -import 'package:chopper/chopper.dart' as chopper; -import 'cat_gateway_api.enums.swagger.dart' as enums; -export 'cat_gateway_api.enums.swagger.dart'; -export 'cat_gateway_api.models.swagger.dart'; - -part 'cat_gateway_api.swagger.chopper.dart'; - -// ************************************************************************** -// SwaggerChopperGenerator -// ************************************************************************** - -@ChopperApi() -abstract class CatGatewayApi extends ChopperService { - static CatGatewayApi create({ - ChopperClient? client, - http.Client? httpClient, - Authenticator? authenticator, - ErrorConverter? errorConverter, - Converter? converter, - Uri? baseUrl, - Iterable? interceptors, - }) { - if (client != null) { - return _$CatGatewayApi(client); - } - - final newClient = ChopperClient( - services: [_$CatGatewayApi()], - converter: converter ?? $JsonSerializableConverter(), - interceptors: interceptors ?? [], - client: httpClient, - authenticator: authenticator, - errorConverter: errorConverter, - baseUrl: baseUrl ?? Uri.parse('http://')); - return _$CatGatewayApi(newClient); - } - - ///Service Started - Future apiV1HealthStartedGet() { - return _apiV1HealthStartedGet(); - } - - ///Service Started - @Get(path: '/api/v1/health/started') - Future _apiV1HealthStartedGet(); - - ///Service Ready - Future apiV1HealthReadyGet() { - return _apiV1HealthReadyGet(); - } - - ///Service Ready - @Get(path: '/api/v1/health/ready') - Future _apiV1HealthReadyGet(); - - ///Service Live - Future apiV1HealthLiveGet() { - return _apiV1HealthLiveGet(); - } - - ///Service Live - @Get(path: '/api/v1/health/live') - Future _apiV1HealthLiveGet(); - - ///Service Inspection Control. - ///@param log_level The log level to use for the service. Controls what detail gets logged. - ///@param query_inspection Enable or disable Verbose Query inspection in the logs. Used to find query performance issues. - Future apiV1HealthInspectionPut({ - enums.LogLevel? logLevel, - enums.DeepQueryInspectionFlag? queryInspection, - }) { - return _apiV1HealthInspectionPut( - logLevel: logLevel?.value?.toString(), - queryInspection: queryInspection?.value?.toString()); - } - - ///Service Inspection Control. - ///@param log_level The log level to use for the service. Controls what detail gets logged. - ///@param query_inspection Enable or disable Verbose Query inspection in the logs. Used to find query performance issues. - @Put( - path: '/api/v1/health/inspection', - optionalBody: true, - ) - Future _apiV1HealthInspectionPut({ - @Query('log_level') String? logLevel, - @Query('query_inspection') String? queryInspection, - }); - - ///Get registration info. - ///@param stake_address The stake address of the user. Should be a valid Bech32 encoded address followed by the https://cips.cardano.org/cip/CIP-19/#stake-addresses. - ///@param network Cardano network type. If omitted network type is identified from the stake address. If specified it must be correspondent to the network type encoded in the stake address. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - ///@param slot_number Slot number at which the staked ADA amount should be calculated. If omitted latest slot number is used. - Future> - apiDraftCardanoRegistrationStakeAddressGet({ - required String? stakeAddress, - enums.Network? network, - int? slotNumber, - }) { - generatedMapping.putIfAbsent( - RegistrationInfo, () => RegistrationInfo.fromJsonFactory); - - return _apiDraftCardanoRegistrationStakeAddressGet( - stakeAddress: stakeAddress, - network: network?.value?.toString(), - slotNumber: slotNumber); - } - - ///Get registration info. - ///@param stake_address The stake address of the user. Should be a valid Bech32 encoded address followed by the https://cips.cardano.org/cip/CIP-19/#stake-addresses. - ///@param network Cardano network type. If omitted network type is identified from the stake address. If specified it must be correspondent to the network type encoded in the stake address. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - ///@param slot_number Slot number at which the staked ADA amount should be calculated. If omitted latest slot number is used. - @Get(path: '/api/draft/cardano/registration/{stake_address}') - Future> - _apiDraftCardanoRegistrationStakeAddressGet({ - @Path('stake_address') required String? stakeAddress, - @Query('network') String? network, - @Query('slot_number') int? slotNumber, - }); - - ///Get Cardano follower's sync state. - ///@param network Cardano network type. If omitted `mainnet` network type is defined. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - Future> apiDraftCardanoSyncStateGet( - {enums.Network? network}) { - generatedMapping.putIfAbsent(SyncState, () => SyncState.fromJsonFactory); - - return _apiDraftCardanoSyncStateGet(network: network?.value?.toString()); - } - - ///Get Cardano follower's sync state. - ///@param network Cardano network type. If omitted `mainnet` network type is defined. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - @Get(path: '/api/draft/cardano/sync_state') - Future> _apiDraftCardanoSyncStateGet( - {@Query('network') String? network}); - - ///Get Cardano slot info to the provided date-time. - ///@param date_time The date-time for which the slot number should be calculated. If omitted current date time is used. - ///@param network Cardano network type. If omitted `mainnet` network type is defined. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - Future> apiDraftCardanoDateTimeToSlotNumberGet({ - DateTime? dateTime, - enums.Network? network, - }) { - generatedMapping.putIfAbsent(SlotInfo, () => SlotInfo.fromJsonFactory); - - return _apiDraftCardanoDateTimeToSlotNumberGet( - dateTime: dateTime, network: network?.value?.toString()); - } - - ///Get Cardano slot info to the provided date-time. - ///@param date_time The date-time for which the slot number should be calculated. If omitted current date time is used. - ///@param network Cardano network type. If omitted `mainnet` network type is defined. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - @Get(path: '/api/draft/cardano/date_time_to_slot_number') - Future> _apiDraftCardanoDateTimeToSlotNumberGet({ - @Query('date_time') DateTime? dateTime, - @Query('network') String? network, - }); - - ///Get latest CIP36 registrations from stake address. - ///@param stake_pub_key Stake Public Key to find the latest registration for. - Future> - apiDraftCardanoCip36LatestRegistrationStakeAddrGet( - {required String? stakePubKey}) { - generatedMapping.putIfAbsent( - Cip36Reporting, () => Cip36Reporting.fromJsonFactory); - - return _apiDraftCardanoCip36LatestRegistrationStakeAddrGet( - stakePubKey: stakePubKey); - } - - ///Get latest CIP36 registrations from stake address. - ///@param stake_pub_key Stake Public Key to find the latest registration for. - @Get(path: '/api/draft/cardano/cip36/latest_registration/stake_addr') - Future> - _apiDraftCardanoCip36LatestRegistrationStakeAddrGet( - {@Query('stake_pub_key') required String? stakePubKey}); - - ///Get latest CIP36 registrations from a stake key hash. - ///@param stake_key_hash Stake Key Hash to find the latest registration for. - Future> - apiDraftCardanoCip36LatestRegistrationStakeKeyHashGet( - {required String? stakeKeyHash}) { - generatedMapping.putIfAbsent( - Cip36Reporting, () => Cip36Reporting.fromJsonFactory); - - return _apiDraftCardanoCip36LatestRegistrationStakeKeyHashGet( - stakeKeyHash: stakeKeyHash); - } - - ///Get latest CIP36 registrations from a stake key hash. - ///@param stake_key_hash Stake Key Hash to find the latest registration for. - @Get(path: '/api/draft/cardano/cip36/latest_registration/stake_key_hash') - Future> - _apiDraftCardanoCip36LatestRegistrationStakeKeyHashGet( - {@Query('stake_key_hash') required String? stakeKeyHash}); - - ///Get latest CIP36 registrations from voting key. - ///@param vote_key Voting Key to find CIP36 registrations for. - Future> - apiDraftCardanoCip36LatestRegistrationVoteKeyGet( - {required String? voteKey}) { - generatedMapping.putIfAbsent( - Cip36ReportingList, () => Cip36ReportingList.fromJsonFactory); - - return _apiDraftCardanoCip36LatestRegistrationVoteKeyGet(voteKey: voteKey); - } - - ///Get latest CIP36 registrations from voting key. - ///@param vote_key Voting Key to find CIP36 registrations for. - @Get(path: '/api/draft/cardano/cip36/latest_registration/vote_key') - Future> - _apiDraftCardanoCip36LatestRegistrationVoteKeyGet( - {@Query('vote_key') required String? voteKey}); - - ///Get RBAC chain root - ///@param stake_address Stake address to get the chain root for. - Future> apiDraftRbacChainRootStakeAddressGet( - {required String? stakeAddress}) { - generatedMapping.putIfAbsent(Response$, () => Response$.fromJsonFactory); - - return _apiDraftRbacChainRootStakeAddressGet(stakeAddress: stakeAddress); - } - - ///Get RBAC chain root - ///@param stake_address Stake address to get the chain root for. - @Get(path: '/api/draft/rbac/chain_root/{stake_address}') - Future> _apiDraftRbacChainRootStakeAddressGet( - {@Path('stake_address') required String? stakeAddress}); - - ///Get registrations by RBAC chain root - ///@param chain_root Chain root to get the registrations for. - Future> - apiDraftRbacRegistrationsChainRootGet({required String? chainRoot}) { - generatedMapping.putIfAbsent(RbacRegistrationsResponse, - () => RbacRegistrationsResponse.fromJsonFactory); - - return _apiDraftRbacRegistrationsChainRootGet(chainRoot: chainRoot); - } - - ///Get registrations by RBAC chain root - ///@param chain_root Chain root to get the registrations for. - @Get(path: '/api/draft/rbac/registrations/{chain_root}') - Future> - _apiDraftRbacRegistrationsChainRootGet( - {@Path('chain_root') required String? chainRoot}); - - ///Get RBAC chain root for a given role0 key. - ///@param role0_key Role0 key to get the chain root for. - Future> - apiDraftRbacRole0ChainRootRole0KeyGet({required String? role0Key}) { - generatedMapping.putIfAbsent(RbacRole0ChainRootResponse, - () => RbacRole0ChainRootResponse.fromJsonFactory); - - return _apiDraftRbacRole0ChainRootRole0KeyGet(role0Key: role0Key); - } - - ///Get RBAC chain root for a given role0 key. - ///@param role0_key Role0 key to get the chain root for. - @Get(path: '/api/draft/rbac/role0_chain_root/{role0_key}') - Future> - _apiDraftRbacRole0ChainRootRole0KeyGet( - {@Path('role0_key') required String? role0Key}); - - ///Get staked ADA amount. - ///@param stake_address The stake address of the user. Should be a valid Bech32 encoded address followed by the https://cips.cardano.org/cip/CIP-19/#stake-addresses. - ///@param network Cardano network type. If omitted network type is identified from the stake address. If specified it must be correspondent to the network type encoded in the stake address. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - ///@param slot_number Slot number at which the staked ADA amount should be calculated. If omitted latest slot number is used. - Future> apiDraftCardanoAssetsStakeAddressGet({ - required String? stakeAddress, - enums.Network? network, - int? slotNumber, - }) { - generatedMapping.putIfAbsent( - FullStakeInfo, () => FullStakeInfo.fromJsonFactory); - - return _apiDraftCardanoAssetsStakeAddressGet( - stakeAddress: stakeAddress, - network: network?.value?.toString(), - slotNumber: slotNumber); - } - - ///Get staked ADA amount. - ///@param stake_address The stake address of the user. Should be a valid Bech32 encoded address followed by the https://cips.cardano.org/cip/CIP-19/#stake-addresses. - ///@param network Cardano network type. If omitted network type is identified from the stake address. If specified it must be correspondent to the network type encoded in the stake address. As `preprod` and `preview` network types in the stake address encoded as a `testnet`, to specify `preprod` or `preview` network type use this query parameter. - ///@param slot_number Slot number at which the staked ADA amount should be calculated. If omitted latest slot number is used. - @Get(path: '/api/draft/cardano/assets/{stake_address}') - Future> - _apiDraftCardanoAssetsStakeAddressGet({ - @Path('stake_address') required String? stakeAddress, - @Query('network') String? network, - @Query('slot_number') int? slotNumber, - }); - - ///Get the configuration for the frontend. - Future> apiDraftConfigFrontendGet() { - generatedMapping.putIfAbsent( - FrontendConfig, () => FrontendConfig.fromJsonFactory); - - return _apiDraftConfigFrontendGet(); - } - - ///Get the configuration for the frontend. - @Get(path: '/api/draft/config/frontend') - Future> _apiDraftConfigFrontendGet(); - - ///Set the frontend configuration. - ///@param IP *OPTIONAL* The IP Address to set the configuration for. - Future apiDraftConfigFrontendPut({ - Object? ip, - required FrontendConfig? body, - }) { - return _apiDraftConfigFrontendPut(ip: ip, body: body); - } - - ///Set the frontend configuration. - ///@param IP *OPTIONAL* The IP Address to set the configuration for. - @Put( - path: '/api/draft/config/frontend', - optionalBody: true, - ) - Future _apiDraftConfigFrontendPut({ - @Query('IP') Object? ip, - @Body() required FrontendConfig? body, - }); - - ///Get the frontend configuration JSON schema. - Future> apiDraftConfigFrontendSchemaGet() { - generatedMapping.putIfAbsent( - FrontendConfig, () => FrontendConfig.fromJsonFactory); - - return _apiDraftConfigFrontendSchemaGet(); - } - - ///Get the frontend configuration JSON schema. - @Get(path: '/api/draft/config/frontend/schema') - Future> _apiDraftConfigFrontendSchemaGet(); - - ///Voter's info - ///@param voting_key A Voters Public ED25519 Key (as registered in their most recent valid [CIP-15](https://cips.cardano.org/cips/cip15) or [CIP-36](https://cips.cardano.org/cips/cip36) registration). - ///@param event_index The Event Index to return results for. See [GET Events](Link to events endpoint) for details on retrieving all valid event IDs. - ///@param with_delegators If this optional flag is set, the response will include the delegator's list in the response. Otherwise, it will be omitted. - @deprecated - Future> - apiV1RegistrationVoterVotingKeyGet({ - required String? votingKey, - int? eventIndex, - bool? withDelegators, - }) { - generatedMapping.putIfAbsent( - VoterRegistration, () => VoterRegistration.fromJsonFactory); - - return _apiV1RegistrationVoterVotingKeyGet( - votingKey: votingKey, - eventIndex: eventIndex, - withDelegators: withDelegators); - } - - ///Voter's info - ///@param voting_key A Voters Public ED25519 Key (as registered in their most recent valid [CIP-15](https://cips.cardano.org/cips/cip15) or [CIP-36](https://cips.cardano.org/cips/cip36) registration). - ///@param event_index The Event Index to return results for. See [GET Events](Link to events endpoint) for details on retrieving all valid event IDs. - ///@param with_delegators If this optional flag is set, the response will include the delegator's list in the response. Otherwise, it will be omitted. - @deprecated - @Get(path: '/api/v1/registration/voter/{voting_key}') - Future> - _apiV1RegistrationVoterVotingKeyGet({ - @Path('voting_key') required String? votingKey, - @Query('event_index') int? eventIndex, - @Query('with_delegators') bool? withDelegators, - }); - - ///Posts a signed transaction. - @deprecated - Future> apiV0MessagePost( - {required Object? body}) { - generatedMapping.putIfAbsent(FragmentsProcessingSummary, - () => FragmentsProcessingSummary.fromJsonFactory); - - return _apiV0MessagePost(body: body); - } - - ///Posts a signed transaction. - @deprecated - @Post( - path: '/api/v0/message', - optionalBody: true, - ) - Future> _apiV0MessagePost( - {@Body() required Object? body}); - - ///Get all active vote plans endpoint. - @deprecated - Future>> apiV0VoteActivePlansGet() { - generatedMapping.putIfAbsent(VotePlan, () => VotePlan.fromJsonFactory); - - return _apiV0VoteActivePlansGet(); - } - - ///Get all active vote plans endpoint. - @deprecated - @Get(path: '/api/v0/vote/active/plans') - Future>> _apiV0VoteActivePlansGet(); - - ///Get Account Votes - ///@param account_id A account ID to get the votes for. - @deprecated - Future>> - apiV1VotesPlanAccountVotesAccountIdGet({required String? accountId}) { - generatedMapping.putIfAbsent( - AccountVote, () => AccountVote.fromJsonFactory); - - return _apiV1VotesPlanAccountVotesAccountIdGet(accountId: accountId); - } - - ///Get Account Votes - ///@param account_id A account ID to get the votes for. - @deprecated - @Get(path: '/api/v1/votes/plan/account-votes/{account_id}') - Future>> - _apiV1VotesPlanAccountVotesAccountIdGet( - {@Path('account_id') required String? accountId}); - - ///Process fragments - @deprecated - Future> apiV1FragmentsPost( - {required FragmentsBatch? body}) { - generatedMapping.putIfAbsent(FragmentsProcessingSummary, - () => FragmentsProcessingSummary.fromJsonFactory); - - return _apiV1FragmentsPost(body: body); - } - - ///Process fragments - @deprecated - @Post( - path: '/api/v1/fragments', - optionalBody: true, - ) - Future> _apiV1FragmentsPost( - {@Body() required FragmentsBatch? body}); - - ///Get Fragment Statuses - ///@param fragment_ids Comma-separated list of fragment ids for which the statuses will be retrieved. - @deprecated - Future> apiV1FragmentsStatusesGet( - {required List? fragmentIds}) { - return _apiV1FragmentsStatusesGet(fragmentIds: fragmentIds); - } - - ///Get Fragment Statuses - ///@param fragment_ids Comma-separated list of fragment ids for which the statuses will be retrieved. - @deprecated - @Get(path: '/api/v1/fragments/statuses') - Future> _apiV1FragmentsStatusesGet( - {@Query('fragment_ids') required List? fragmentIds}); -} - -typedef $JsonFactory = T Function(Map json); - -class $CustomJsonDecoder { - $CustomJsonDecoder(this.factories); - - final Map factories; - - dynamic decode(dynamic entity) { - if (entity is Iterable) { - return _decodeList(entity); - } - - if (entity is T) { - return entity; - } - - if (isTypeOf()) { - return entity; - } - - if (isTypeOf()) { - return entity; - } - - if (entity is Map) { - return _decodeMap(entity); - } - - return entity; - } - - T _decodeMap(Map values) { - final jsonFactory = factories[T]; - if (jsonFactory == null || jsonFactory is! $JsonFactory) { - return throw "Could not find factory for type $T. Is '$T: $T.fromJsonFactory' included in the CustomJsonDecoder instance creation in bootstrapper.dart?"; - } - - return jsonFactory(values); - } - - List _decodeList(Iterable values) => - values.where((v) => v != null).map((v) => decode(v) as T).toList(); -} - -class $JsonSerializableConverter extends chopper.JsonConverter { - @override - FutureOr> convertResponse( - chopper.Response response) async { - if (response.bodyString.isEmpty) { - // In rare cases, when let's say 204 (no content) is returned - - // we cannot decode the missing json with the result type specified - return chopper.Response(response.base, null, error: response.error); - } - - if (ResultType == String) { - return response.copyWith(); - } - - if (ResultType == DateTime) { - return response.copyWith( - body: DateTime.parse((response.body as String).replaceAll('"', '')) - as ResultType); - } - - final jsonRes = await super.convertResponse(response); - return jsonRes.copyWith( - body: $jsonDecoder.decode(jsonRes.body) as ResultType); - } -} - -final $jsonDecoder = $CustomJsonDecoder(generatedMapping); diff --git a/utilities/local-cluster/.vagrant/rgloader/loader.rb b/utilities/local-cluster/.vagrant/rgloader/loader.rb deleted file mode 100644 index b6c81bf31b..0000000000 --- a/utilities/local-cluster/.vagrant/rgloader/loader.rb +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: BUSL-1.1 - -# This file loads the proper rgloader/loader.rb file that comes packaged -# with Vagrant so that encoded files can properly run with Vagrant. - -if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"] - require File.expand_path( - "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]) -else - raise "Encoded files can't be read outside of the Vagrant installer." -end