diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 17e441e5..a84b7e3e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,13 +70,14 @@ jobs:
- uses: stelynx/dart-full-coverage@v1.1.1
with:
package: ribn
- ignore: "*_state.dart, do_not_import_me.dart"
+ ignore: "*_state.dart, do_not_import_me.dart, js_workers/* , platform_web/*"
- name: Install dependencies and generated files
run: make gen
- name: Run tests
- run: flutter test --coverage .
+ run: flutter test --platform chrome --coverage .
+
- uses: codecov/codecov-action@v1.0.2
with:
diff --git a/.github/workflows/nightly_build_android.yml b/.github/workflows/nightly_build_android.yml
index bed5490e..e80961bb 100644
--- a/.github/workflows/nightly_build_android.yml
+++ b/.github/workflows/nightly_build_android.yml
@@ -68,6 +68,9 @@ jobs:
- name: Install flutter dependencies
run: make gen
+ - name: print nversion
+ run: echo $nversion
+
- name: Build android app
run: flutter build appbundle --release --build-number=${{github.run_number}} --dart-define=nightlyBuildVersion=$nversion
diff --git a/.gitignore b/.gitignore
index 245495f5..3d6a3c3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@ node_modules/
dist/
mock/
pubspec.lock
+.env
# Ignore secrets
key.properties
@@ -24,6 +25,11 @@ app.*.map.json
.history
.svn/
+# Auto generated files
+*.g.dart
+*.freezed.dart
+*.mocks.dart
+
# Android Studio will place build artifacts here
/android/app/debug
@@ -102,6 +108,7 @@ unlinked_spec.ds
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*
**/ios/Podfile.lock
+**/ios/fastlane/report.xml
# macOS
**/Flutter/ephemeral/
diff --git a/Makefile b/Makefile
index a95da954..143b7652 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,7 @@ clean: ## Cleans the environment
@rm -rf pubspec.lock
@flutter clean
@flutter pub get
+
fix_warnings: ## fix any warnings
@echo "╠ Attempting to fix warnings..."
@dart fix --dry-run
@@ -44,9 +45,9 @@ gen: ## Generates the assets
format: ## Formats the code
@echo "╠ Formatting the code"
- @dart format lib .
+ @dart format lib . -l 120
@flutter pub run import_sorter:main
- @dart format .
+ @dart format . -l 120
lint: ## Lints the code
@echo "╠ Verifying code..."
@@ -67,6 +68,11 @@ analyze:
ditto:
echo "hello world"
+validate_packages:
+ @echo "╠ Validating packages..."
+ @flutter pub get
+ @flutter pub run dependency_validator
+
arm_mac_hard_clean:
flutter clean && \
flutter pub get && \
@@ -76,4 +82,19 @@ arm_mac_hard_clean:
rm Podfile.lock && \
sudo arch -x86_64 gem install ffi && \
arch -x86_64 pod install && \
- cd ..
\ No newline at end of file
+ cd ..
+
+file_test:
+ @reset
+ @flutter test test/middleware_test.dart
+
+nuclear_clean:
+ @echo "╠ Nuking pubcache completely, this might take a while...."
+ @flutter clean
+ @flutter pub cache repair
+ @flutter pub get
+
+test_coverage:
+ @flutter test --coverage
+ @genhtml coverage/lcov.info -o coverage/html
+ @open coverage/html/index.html
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 51dd4f5a..f5fb2cd3 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -21,6 +21,8 @@ analyzer:
dead_code: error
strong-mode:
implicit-casts: true
+ plugins:
+ - custom_lint
linter:
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index c6466650..4981e80c 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -4,6 +4,7 @@
= 1.13.0, < 2.0.0)
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
+ fastlane-plugin-firebase_app_distribution (0.4.2)
ffi (1.15.5)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
@@ -280,11 +281,13 @@ GEM
zeitwerk (2.5.4)
PLATFORMS
+ arm64-darwin-22
universal-darwin-21
DEPENDENCIES
cocoapods
fastlane
+ fastlane-plugin-firebase_app_distribution
fastlane-plugin-flutter_version!
BUNDLED WITH
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index 9d94b2c6..f2871551 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 51;
+ objectVersion = 54;
objects = {
/* Begin PBXBuildFile section */
@@ -201,6 +201,7 @@
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -215,6 +216,7 @@
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
@@ -359,9 +361,11 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
+ CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
- DEVELOPMENT_TEAM = DZ7Z4DLW5R;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
@@ -372,6 +376,7 @@
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
@@ -495,9 +500,11 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
- CODE_SIGN_STYLE = Automatic;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
+ CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
- DEVELOPMENT_TEAM = DZ7Z4DLW5R;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
@@ -508,6 +515,7 @@
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
@@ -522,10 +530,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
- CODE_SIGN_IDENTITY = "Apple Distribution";
+ CODE_SIGN_IDENTITY = "Apple Development";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 1;
- DEVELOPMENT_TEAM = DZ7Z4DLW5R;
+ DEVELOPMENT_TEAM = "";
+ "DEVELOPMENT_TEAM[sdk=iphoneos*]" = DZ7Z4DLW5R;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
@@ -535,7 +545,8 @@
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = co.topl.ribn;
PRODUCT_NAME = "$(TARGET_NAME)";
- PROVISIONING_PROFILE_SPECIFIER = "match AppStore co.topl.ribn";
+ PROVISIONING_PROFILE_SPECIFIER = "";
+ "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Firebase App Distribute Profile";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index bc01134e..447c41c7 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -51,5 +51,7 @@
CADisableMinimumFrameDurationOnPhone
-
-
\ No newline at end of file
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile
index 1f84c3b4..c6067095 100644
--- a/ios/fastlane/Fastfile
+++ b/ios/fastlane/Fastfile
@@ -111,4 +111,16 @@ platform :ios do
delete_temp_keychain(keychain_name)
end
+
+ lane :distribute do
+
+ firebase_app_distribution(
+ app: "TODO_CHANGE",
+ groups: 'topl',
+ release_notes: "Speedy recent transactions",
+ ipa_path: '../build/ios/ipa/Ribn.ipa',
+ service_credentials_file: '../service_account_key.json',
+ )
+
+ end
end
diff --git a/ios/fastlane/Pluginfile b/ios/fastlane/Pluginfile
new file mode 100644
index 00000000..b18539bc
--- /dev/null
+++ b/ios/fastlane/Pluginfile
@@ -0,0 +1,5 @@
+# Autogenerated by fastlane
+#
+# Ensure this file is checked in to source control!
+
+gem 'fastlane-plugin-firebase_app_distribution'
diff --git a/ios/fastlane/README.md b/ios/fastlane/README.md
index 7bece83d..1bf9ef26 100644
--- a/ios/fastlane/README.md
+++ b/ios/fastlane/README.md
@@ -23,6 +23,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
+### ios distribute
+
+```sh
+[bundle exec] fastlane ios distribute
+```
+
+
+
----
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
diff --git a/lib/actions/login_actions.dart b/lib/actions/login_actions.dart
deleted file mode 100644
index ea2f4389..00000000
--- a/lib/actions/login_actions.dart
+++ /dev/null
@@ -1,14 +0,0 @@
-// Dart imports:
-import 'dart:async';
-import 'dart:typed_data';
-
-class AttemptLoginAction {
- final String password;
- final Completer completer;
- const AttemptLoginAction(this.password, this.completer);
-}
-
-class LoginSuccessAction {
- final Uint8List toplExtendedPrvKeyUint8List;
- const LoginSuccessAction(this.toplExtendedPrvKeyUint8List);
-}
diff --git a/lib/actions/misc_actions.dart b/lib/actions/misc_actions.dart
index db8f37fb..491bc4fc 100644
--- a/lib/actions/misc_actions.dart
+++ b/lib/actions/misc_actions.dart
@@ -1,6 +1,3 @@
-// Dart imports:
-import 'dart:async';
-
class PersistAppState {}
class FailedToPersistAppStateAction {}
@@ -16,18 +13,6 @@ class NavigateToRoute {
NavigateToRoute(this.route, {this.arguments});
}
-class DownloadAsFileAction {
- final String fileName;
- final String text;
- const DownloadAsFileAction(this.fileName, this.text);
-}
-
-class DeleteWalletAction {
- final String password;
- final Completer completer;
- const DeleteWalletAction({required this.password, required this.completer});
-}
-
class ResetAppStateAction {
const ResetAppStateAction();
}
diff --git a/lib/actions/restore_wallet_actions.dart b/lib/actions/restore_wallet_actions.dart
deleted file mode 100644
index e3ea67c0..00000000
--- a/lib/actions/restore_wallet_actions.dart
+++ /dev/null
@@ -1,35 +0,0 @@
-// Dart imports:
-import 'dart:async';
-import 'dart:typed_data';
-
-class RestoreWalletWithMnemonicAction {
- final String mnemonic;
- final String password;
- RestoreWalletWithMnemonicAction({
- required this.mnemonic,
- required this.password,
- });
-}
-
-class RestoreWalletWithToplKeyAction {
- final String toplKeyStoreJson;
- final String password;
- final Completer completer;
-
- const RestoreWalletWithToplKeyAction({
- required this.toplKeyStoreJson,
- required this.password,
- required this.completer,
- });
-}
-
-class SuccessfullyRestoredWalletAction {
- final String keyStoreJson;
- final Uint8List toplExtendedPrivateKey;
- const SuccessfullyRestoredWalletAction({
- required this.keyStoreJson,
- required this.toplExtendedPrivateKey,
- });
-}
-
-class FailedToRestoreWalletAction {}
diff --git a/lib/actions/user_details_actions.dart b/lib/actions/user_details_actions.dart
index 3ab11710..84dfe69c 100644
--- a/lib/actions/user_details_actions.dart
+++ b/lib/actions/user_details_actions.dart
@@ -10,10 +10,3 @@ class UpdateAssetDetailsAction {
this.icon,
});
}
-
-class UpdateBiometricsAction {
- final bool isBiometricsEnabled;
- UpdateBiometricsAction({
- required this.isBiometricsEnabled,
- });
-}
diff --git a/lib/constants/assets.dart b/lib/constants/assets.dart
index fa40246a..92d62640 100644
--- a/lib/constants/assets.dart
+++ b/lib/constants/assets.dart
@@ -10,15 +10,13 @@ class RibnAssets {
static const seedPhraseCreatedIcon = 'assets/icons/seedphrase_created.png';
static const passwordManagerIcon = 'assets/icons/password_manager.svg';
static const encryptFileIcon = 'assets/icons/encrypt_file.svg';
- static const seedPhraseConfirmedIcon =
- 'assets/icons/seed_phrase_confirmed.svg';
+ static const seedPhraseConfirmedIcon = 'assets/icons/seed_phrase_confirmed.svg';
static const walletPasswordIcon = 'assets/icons/wallet_password.svg';
static const addIcon = 'assets/icons/add.svg';
static const removeIcon = 'assets/icons/remove.svg';
static const extensionIcon = 'assets/icons/extension.svg';
static const plusIcon = 'assets/icons/plus.svg';
- static const importWalletIcon =
- 'packages/ribn_toolkit/assets/icons/restore_wallet.png';
+ static const importWalletIcon = 'packages/ribn_toolkit/assets/icons/restore_wallet.png';
static const closeGreyIcon = 'assets/icons/close_grey.svg';
static const downloadIcon = 'assets/icons/download.svg';
static const infoIcon = 'assets/icons/info.png';
@@ -26,8 +24,7 @@ class RibnAssets {
static const sentIcon = 'assets/icons/sent.svg';
static const receiveIcon = 'assets/icons/receive.png';
static const menuIcon = 'assets/icons/menu.svg';
- static const txHistoryPageActiveIcon =
- 'assets/icons/tx_history_page_active.svg';
+ static const txHistoryPageActiveIcon = 'assets/icons/tx_history_page_active.svg';
static const txHistoryPageIcon = 'assets/icons/tx_history_page.svg';
static const settingsIcon = 'packages/ribn_toolkit/assets/icons/settings.png';
static const supportIcon = 'packages/ribn_toolkit/assets/icons/support.png';
@@ -48,24 +45,15 @@ class RibnAssets {
static const copyUnselectedIcon = 'assets/icons/copy_unselected.png';
static const copySelectedIcon = 'assets/icons/copy_selected.png';
static const unselectedAsset = 'assets/icons/asset_unselected.png';
- static const coffBlueIcon =
- 'packages/ribn_toolkit/assets/asset_icons/coff_blue_icon.png';
- static const coffBrownIcon =
- 'packages/ribn_toolkit/assets/asset_icons/coff_brown_icon.png';
- static const coffGreenIcon =
- 'packages/ribn_toolkit/assets/asset_icons/coff_green_icon.png';
- static const coffPurpleIcon =
- 'packages/ribn_toolkit/assets/asset_icons/coff_purple_icon.png';
- static const coffYellowIcon =
- 'packages/ribn_toolkit/assets/asset_icons/coff_yellow_icon.png';
- static const diaBlueIcon =
- 'packages/ribn_toolkit/assets/asset_icons/dia_blue_icon.png';
- static const diaGreenIcon =
- 'packages/ribn_toolkit/assets/asset_icons/dia_green_icon.png';
- static const diaPurpleIcon =
- 'packages/ribn_toolkit/assets/asset_icons/dia_purple_icon.png';
- static const diaYellowIcon =
- 'packages/ribn_toolkit/assets/asset_icons/dia_yellow_icon.png';
+ static const coffBlueIcon = 'packages/ribn_toolkit/assets/asset_icons/coff_blue_icon.png';
+ static const coffBrownIcon = 'packages/ribn_toolkit/assets/asset_icons/coff_brown_icon.png';
+ static const coffGreenIcon = 'packages/ribn_toolkit/assets/asset_icons/coff_green_icon.png';
+ static const coffPurpleIcon = 'packages/ribn_toolkit/assets/asset_icons/coff_purple_icon.png';
+ static const coffYellowIcon = 'packages/ribn_toolkit/assets/asset_icons/coff_yellow_icon.png';
+ static const diaBlueIcon = 'packages/ribn_toolkit/assets/asset_icons/dia_blue_icon.png';
+ static const diaGreenIcon = 'packages/ribn_toolkit/assets/asset_icons/dia_green_icon.png';
+ static const diaPurpleIcon = 'packages/ribn_toolkit/assets/asset_icons/dia_purple_icon.png';
+ static const diaYellowIcon = 'packages/ribn_toolkit/assets/asset_icons/dia_yellow_icon.png';
static const addressCopiedIcon = 'assets/icons/address_copied.png';
static const polysIcon = 'assets/icons/polysIcon.png';
static const undefinedIcon = 'assets/icons/undefined_icon.png';
@@ -78,32 +66,22 @@ class RibnAssets {
static const smsFailed = 'assets/icons/sms_failed.png';
static const openInNewWindow = 'assets/icons/open_in_new.png';
static const roundInfoCircle = 'assets/icons/round_info_circle.png';
- static const newRibnLogo =
- 'packages/ribn_toolkit/assets/icons/new_ribn_logo.png';
- static const newCircleRibnLogo =
- 'packages/ribn_toolkit/assets/icons/ribn_circle_logo.png';
- static const chevronDown =
- 'packages/ribn_toolkit/assets/icons/chevron_down.png';
- static const chevronDownDark =
- 'packages/ribn_toolkit/assets/icons/chevron_down_dark.png';
- static const hamburgerMenu =
- 'packages/ribn_toolkit/assets/icons/hamburger_menu.png';
- static const circleExclamation =
- 'packages/ribn_toolkit/assets/icons/error.png';
+ static const newRibnLogo = 'packages/ribn_toolkit/assets/icons/new_ribn_logo.png';
+ static const newCircleRibnLogo = 'packages/ribn_toolkit/assets/icons/ribn_circle_logo.png';
+ static const chevronDown = 'packages/ribn_toolkit/assets/icons/chevron_down.png';
+ static const chevronDownDark = 'packages/ribn_toolkit/assets/icons/chevron_down_dark.png';
+ static const hamburgerMenu = 'packages/ribn_toolkit/assets/icons/hamburger_menu.png';
+ static const circleExclamation = 'packages/ribn_toolkit/assets/icons/error.png';
static const circleInfo = 'assets/icons/circle_info.png';
- static const greyHelpBubble =
- 'packages/ribn_toolkit/assets/icons/gray_help_bubble.png';
+ static const greyHelpBubble = 'packages/ribn_toolkit/assets/icons/gray_help_bubble.png';
static const plusBlue = 'packages/ribn_toolkit/assets/icons/plus_blue.png';
static const plusGrey = 'packages/ribn_toolkit/assets/icons/plus_grey.png';
- static const walletBlue =
- 'packages/ribn_toolkit/assets/icons/wallet_blue.png';
- static const walletGrey =
- 'packages/ribn_toolkit/assets/icons/wallet_grey.png';
+ static const walletBlue = 'packages/ribn_toolkit/assets/icons/wallet_blue.png';
+ static const walletGrey = 'packages/ribn_toolkit/assets/icons/wallet_grey.png';
static const clockBlue = 'packages/ribn_toolkit/assets/icons/clock_blue.png';
static const clockGrey = 'packages/ribn_toolkit/assets/icons/clock_grey.png';
static const copyIcon = 'packages/ribn_toolkit/assets/icons/copy_icon.png';
- static const circlePlus =
- 'packages/ribn_toolkit/assets/icons/circle_plus.png';
+ static const circlePlus = 'packages/ribn_toolkit/assets/icons/circle_plus.png';
static const copyIconAlternate = 'assets/icons/copy_icon_alternate.png';
static const fingerPrintAssets = 'assets/icons/finger_print_assets.png';
static const redDangerTriangle = 'assets/icons/red_danger_triangle.png';
@@ -113,16 +91,11 @@ class RibnAssets {
static const passwordLockPng = 'assets/icons/password_lock.png';
static const penPaperPng = 'assets/icons/pen_paper.png';
static const programPng = 'assets/icons/program.png';
- static const onboardingBackgroundSvg =
- 'assets/icons/onboarding_background.svg';
- static const onboardingBackgroundPng =
- 'assets/icons/onboarding_background.png';
- static const createWalletPng =
- 'packages/ribn_toolkit/assets/icons/create_wallet.png';
- static const createWalletPngWithShadow =
- 'packages/ribn_toolkit/assets/icons/create_wallet_shadow.png';
- static const importWalletPng =
- 'packages/ribn_toolkit/assets/icons/import_wallet.png';
+ static const onboardingBackgroundSvg = 'assets/icons/onboarding_background.svg';
+ static const onboardingBackgroundPng = 'assets/icons/onboarding_background.png';
+ static const createWalletPng = 'packages/ribn_toolkit/assets/icons/create_wallet.png';
+ static const createWalletPngWithShadow = 'packages/ribn_toolkit/assets/icons/create_wallet_shadow.png';
+ static const importWalletPng = 'packages/ribn_toolkit/assets/icons/import_wallet.png';
static const walletLockPng = 'assets/icons/wallet_lock.png';
static const passwordVisiblePng = 'assets/icons/password_visible.png';
static const passwordHiddenPng = 'assets/icons/password_hidden.png';
@@ -137,15 +110,15 @@ class RibnAssets {
static const touchID = 'assets/icons/touch_id.png';
static const touchIDCutout = 'assets/icons/touch_id_cutout.png';
static const iosBiometrics = 'assets/icons/iphone_biometrics.png';
- static const iosBiometricsOutline =
- 'assets/icons/iphone_biometrics_outline.png';
+ static const iosBiometricsOutline = 'assets/icons/iphone_biometrics_outline.png';
static const andriodBiometrics = 'assets/icons/android_biometrics.png';
- static const andriodBiometricsOutline =
- 'assets/icons/android_biometrics_outline.png';
+ static const andriodBiometricsOutline = 'assets/icons/android_biometrics_outline.png';
static const addPlusPng = 'assets/icons/add_plus.png';
static const documentPng = 'assets/icons/document.png';
static const polyIconCircle = 'assets/icons/poly_icon_circle.png';
static const clockWithBorder = 'assets/icons/clock_border.png';
static const walletWithBorder = 'assets/icons/wallet_with_border.png';
static const connectDApp = 'assets/icons/connect_dapp.png';
+ static const improvePng = 'assets/icons/improve.png';
+ static const bulletPointPng = 'assets/icons/bullet_point.png';
}
diff --git a/lib/constants/environment_config.dart b/lib/constants/environment_config.dart
new file mode 100644
index 00000000..1762ac9d
--- /dev/null
+++ b/lib/constants/environment_config.dart
@@ -0,0 +1,15 @@
+class EnvironmentConfig {
+ static const nightlyBuildVersion = String.fromEnvironment('nightlyBuildVersion', defaultValue: "");
+
+ // KEYS
+ static const ASSIGNEE_ID = String.fromEnvironment('ASSIGNEE_ID', defaultValue: "");
+ static const ISSUE_TYPE = String.fromEnvironment('ISSUE_TYPE', defaultValue: "");
+ static const JIRA_ATTACH_ISSUE_URL = String.fromEnvironment('JIRA_ATTACH_ISSUE_URL', defaultValue: "");
+ static const JIRA_CREATE_ISSUE_URL = String.fromEnvironment('JIRA_CREATE_ISSUE_URL', defaultValue: "");
+ static const JIRA_DEFAULT_HEADERS = String.fromEnvironment('JIRA_DEFAULT_HEADERS', defaultValue: "");
+ static const JIRA_DEFAULT_HEADERS_ATTACHMENTS =
+ String.fromEnvironment('JIRA_DEFAULT_HEADERS_ATTACHMENTS', defaultValue: "");
+
+ static const PROJECT_KEY = String.fromEnvironment('PROJECT_KEY', defaultValue: "");
+ static const JIRA_AUTH_TOKEN = String.fromEnvironment('JIRA_AUTH_TOKEN', defaultValue: "");
+}
diff --git a/lib/constants/keys.dart b/lib/constants/keys.dart
index cfcbb9e7..e37e46ec 100644
--- a/lib/constants/keys.dart
+++ b/lib/constants/keys.dart
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
class Keys {
Keys._();
- static final GlobalKey navigatorKey =
- GlobalKey();
+ static final GlobalKey navigatorKey = GlobalKey();
static const isTestingEnvironment = bool.fromEnvironment('FLUTTER_TEST');
}
diff --git a/lib/constants/loggers.dart b/lib/constants/loggers.dart
index 5aa434a8..51a52c11 100644
--- a/lib/constants/loggers.dart
+++ b/lib/constants/loggers.dart
@@ -1 +1,11 @@
-const String kTransactionLogger = 'TransactionLogger';
+enum LoggerClass {
+ Transaction('Transaction'),
+ ApiError('ApiError'),
+ Analytics('Analytics'),
+ Authentication('Authentication');
+
+ const LoggerClass(this.string);
+ final String string;
+}
+
+enum LogLevel { Info, Warning, Severe, Shout }
diff --git a/lib/constants/network_utils.dart b/lib/constants/network_utils.dart
index 10731458..616bdcf2 100644
--- a/lib/constants/network_utils.dart
+++ b/lib/constants/network_utils.dart
@@ -5,29 +5,89 @@ import 'package:brambldart/utils.dart' as constants;
/// Utils and constants that relate to Topl networks.
class NetworkUtils {
NetworkUtils._();
+
+ static const String projectId = '60ff001754b7c75558146daf';
+
+ // Network names
static const String toplNet = 'toplnet';
static const String valhalla = 'valhalla';
static const String private = 'private';
- static const String privateIP = '35.226.176.100';
+
+ // Network IP's
+ static const String privateIP = '104.197.222.150';
+ static const String valhallaIP = '35.224.14.0';
+ static const String toplnetIP = '34.172.5.205';
+
+ // ID's used by RibnNetwork
static int toplNetId = constants.networkRegistry[toplNet]!;
static int valhallaId = constants.networkRegistry[valhalla]!;
static int privateId = constants.networkRegistry[private]!;
+
static Map networkFees = {
- valhallaId:
- PolyAmount.fromUnitAndValue(PolyUnit.nanopoly, constants.valhallaFee),
- toplNetId:
- PolyAmount.fromUnitAndValue(PolyUnit.nanopoly, constants.toplnetFee),
+ valhallaId: PolyAmount.fromUnitAndValue(PolyUnit.nanopoly, constants.valhallaFee),
+ toplNetId: PolyAmount.fromUnitAndValue(PolyUnit.nanopoly, constants.toplnetFee),
privateId: PolyAmount.zero(),
};
- static const String projectId = '60ff001754b7c75558146daf';
+
static Map networkApiKeys = {
valhallaId: 'Mjc0ODg3MTktYTU3ZS00MGM2LWJkMmMtYTRjMzQxMWY3MjM4',
toplNetId: 'N2IyNDljZmQtZjlkNS00Nzc4LWE1MGQtMmVhMzBjMzIyYjBi',
privateId: 'topl_the_world!'
};
+
static Map networkUrls = {
valhallaId: 'https://vertx.topl.services/valhalla/$projectId',
toplNetId: 'https://vertx.topl.services/mainnet/$projectId',
privateId: 'http://$privateIP:9085'
};
+
+ static Map genusIPs = {
+ valhallaId: valhallaIP,
+ // valhallaId: "http:/valhalla.genus.topl.tech",
+ toplNetId: toplnetIP,
+ // toplNetId: "http://toplnet.genus.topl.tech/",
+ privateId: privateIP,
+ };
+
+ // http://toplnet.genus.topl.tech/
+}
+
+enum Networks {
+ valhalla(NetworkUtils.valhalla),
+ toplnet(NetworkUtils.toplNet),
+ private(NetworkUtils.private);
+
+ const Networks(this.name);
+
+ final String name;
+}
+
+class NetworkConfig {
+ final String networkName;
+ final int networkId;
+ final String networkUrl;
+ final String genusIP;
+ final String apiKey;
+ final PolyAmount fee = PolyAmount.zero(); // Leaving as zero as this isn't utilized at the moment
+
+ factory NetworkConfig.fromNetwork(Networks network) {
+ final name = network.name;
+ final id = constants.networkRegistry[name];
+ final url = NetworkUtils.networkApiKeys[id];
+ final genusIP = NetworkUtils.genusIPs[id];
+ final apiKey = NetworkUtils.networkApiKeys[id] ?? "";
+
+ if (id == null || url == null || genusIP == null) {
+ throw Exception("Could not instantiate network config ${network.name}");
+ }
+
+ return NetworkConfig(networkName: name, networkId: id, networkUrl: url, genusIP: genusIP, apiKey: apiKey);
+ }
+
+ NetworkConfig(
+ {required this.networkName,
+ required this.networkId,
+ required this.networkUrl,
+ required this.genusIP,
+ this.apiKey = ""});
}
diff --git a/lib/constants/routes.dart b/lib/constants/routes.dart
index 41e4b5d6..efbec40c 100644
--- a/lib/constants/routes.dart
+++ b/lib/constants/routes.dart
@@ -9,6 +9,7 @@ class Routes {
/// Routes used throughout the application.
static const welcome = '/welcome';
+ static const optIn = '/opt-in';
static const selectAction = '/select-action';
static const gettingStarted = '/getting-started';
static const seedPhraseInfoChecklist = '/seedphrase-checklist';
@@ -28,14 +29,10 @@ class Routes {
static const restoreWalletNewPassword = '/restore-wallet/new-password';
static const enterWalletPassword = '/restore-wallet/topl-key/enter-password';
static const loginRestoreWalletWithToplKey = '/login/restore-wallet/topl-key';
- static const loginRestoreWalletEnterPassword =
- '/login/restore-wallet/enter-password';
- static const onboardingRestoreWalletWithMnemonic =
- '/onboarding/restore-wallet/mnemonic';
- static const onboardingRestoreWalletWithToplKey =
- '/onboarding/restore-wallet/topl-key';
- static const onboardingRestoreWalletEnterPassword =
- '/onboarding/restore-wallet/enter-password';
+ static const loginRestoreWalletEnterPassword = '/login/restore-wallet/enter-password';
+ static const onboardingRestoreWalletWithMnemonic = '/onboarding/restore-wallet/mnemonic';
+ static const onboardingRestoreWalletWithToplKey = '/onboarding/restore-wallet/topl-key';
+ static const onboardingRestoreWalletEnterPassword = '/onboarding/restore-wallet/enter-password';
static const onboardingEnableBiometrics = '/onboarding/enable-biometrics';
static const assetsTransferInput = '/asset-transfer';
static const polyTransferInput = '/poly-transfer-input';
diff --git a/lib/constants/rules.dart b/lib/constants/rules.dart
index 7cf663a1..c08c143d 100644
--- a/lib/constants/rules.dart
+++ b/lib/constants/rules.dart
@@ -37,18 +37,16 @@ class Rules {
NetworkUtils.valhallaId: 'https://staging.valhalla.annulus.topl.services/#/transaction/',
NetworkUtils.privateId: 'https://staging.valhalla.annulus.topl.services/#/transaction/',
};
- static String txHistoryUrl(String addr, int networkId) =>
- '${txHistoryUrls[networkId]!}/v1/address/history/$addr';
- static String txDetailsUrl(String txId, int networkId) =>
- '${txDetailsRedirectUrls[networkId]!}$txId';
+ static String txHistoryUrl(String addr, int networkId) => '${txHistoryUrls[networkId]!}/v1/address/history/$addr';
+ static String txDetailsUrl(String txId, int networkId) => '${txDetailsRedirectUrls[networkId]!}$txId';
static const transferTypes = [Strings.polyTransfer, Strings.assetTransfer, Strings.minting];
static BramblClient getBramblCient(int networkId) {
final Dio httpClient = Dio(
BaseOptions(
baseUrl: NetworkUtils.networkUrls[networkId]!,
contentType: 'application/json',
- connectTimeout: 5000,
- receiveTimeout: 3000,
+ connectTimeout: Duration(seconds: 5000),
+ receiveTimeout: Duration(seconds: 3000),
),
);
return BramblClient(
diff --git a/lib/constants/strings.dart b/lib/constants/strings.dart
index 387558f8..b53e8840 100644
--- a/lib/constants/strings.dart
+++ b/lib/constants/strings.dart
@@ -1,6 +1,13 @@
/// All the strings that are being used throughout the app.
class Strings {
Strings._();
+ static const String submitForm = "Submit";
+ static const String uploadImage = "Upload screenshot";
+ static const String description = "Description";
+ static const String ribnSupportDescriptionHint =
+ "Write 50-500 characters about your experience, whether it was great or has room for improvement. You can also report technical bugs or request new features.";
+ static const String iWouldLiketTo = 'Select an option';
+ static const String feedbackForm = 'How can we help?';
static const String copyToClipboard = 'Copy to clipboard';
static const String copy = 'Copy';
static const String activity = 'Activity';
@@ -41,16 +48,13 @@ class Strings {
static const String sign = 'Sign';
static const String back = 'Back';
static const String welcomeToRibn = 'Welcome to Ribn';
- static const String intro =
- 'Topl’s blockchain wallet used to track, tokenize, and transact impact.';
+ static const String intro = 'Topl’s blockchain wallet used to track, tokenize, and transact impact.';
static const String getStarted = 'Get started';
static const String createWallet = 'Create wallet';
- static const String createWalletDescription =
- 'First time? Create your new wallet\nand 15 word Seed Phrase.';
+ static const String createWalletDescription = 'First time? Create your new wallet\nand 15 word Seed Phrase.';
static const String importWallet = 'Import wallet';
static const String restoreWallet = 'Restore wallet';
- static const String restoreWalletDescription =
- 'Restore your existing Ribn wallet\nusing a Seed Phrase or Topl key.';
+ static const String restoreWalletDescription = 'Restore your existing Ribn wallet\nusing a Seed Phrase or Topl key.';
static const String gettingStarted = 'Getting started';
static const String download = 'Download';
static const String gettingStartedDescription =
@@ -67,27 +71,22 @@ This 15-word phrase will be used to restore your assets if this device is lost o
static const String beforeYouStart = 'Before you start';
static const String okLetsGo = "Ok, let's go!";
static const String weRecommend = 'We Recommend:';
- static const String weRecommendSub =
- 'At least one of the following to record your Seed Phrase safely:';
+ static const String weRecommendSub = 'At least one of the following to record your Seed Phrase safely:';
static const String paperAndPen = 'A paper and pen.';
static const String securePasswordManager = 'A secure password manager.';
- static const String encryptTextFile =
- 'A program such as PGP to encrypt your text file.';
+ static const String encryptTextFile = 'A program such as PGP to encrypt your text file.';
static const String writeDownSeedPhrase = 'Write down Seed Phrase';
static const String seedPhraseFileName = 'seed_phrase';
static const String letsTryThatAgain = 'Now, Let’s Try That Again';
static const String heyIWasntKidding =
'''Hey I wasn’t kidding, write these words down in the exact order they are shown. Remember don’t take any screenshots!''';
- static const String writeDownSeedPhraseDesc =
- '''Now, you will write each word of your Seed Phrase down carefully.
+ static const String writeDownSeedPhraseDesc = '''Now, you will write each word of your Seed Phrase down carefully.
Make sure they are in the exact order shown below. Don’t take screenshots!''';
static const String done = 'Done';
static const String confirmYourSeedPhrase = 'Confirm your Seed Phrase';
- static const String confirmYourSeedPhraseDesc =
- 'Click each word in the correct order.';
+ static const String confirmYourSeedPhraseDesc = 'Click each word in the correct order.';
static const String seedPhraseConfirmed = 'Seed Phrase Confirmed!';
- static const String seedPhraseConfirmedDesc =
- '''Good job! Each word in your Seed Phrase has been input correctly.
+ static const String seedPhraseConfirmedDesc = '''Good job! Each word in your Seed Phrase has been input correctly.
Rest assured, you have saved the correct words, in the correct order.''';
static const String cont = 'Continue';
static const String finalReview = 'Final Review';
@@ -103,8 +102,7 @@ Rest assured, you have saved the correct words, in the correct order.''';
static const String readFollowingCarefully = 'Read Following Carefully';
static const String savedMyWalletPasswordSafely =
'I have saved my Wallet Password safely. I will use this password to unlock my wallet.';
- static const String toplCannotRecoverForMe =
- 'I understand that Topl cannot recover my Wallet Password for me.';
+ static const String toplCannotRecoverForMe = 'I understand that Topl cannot recover my Wallet Password for me.';
static const String spAndPasswordUnrecoverable =
'I understand that my Seed phrase and Wallet Password are both unrecoverable.';
static const String walletCreated = '''Success!\nWallet Created''';
@@ -112,16 +110,13 @@ Rest assured, you have saved the correct words, in the correct order.''';
'''You’re all set. Make sure to keep your 15 word Seed phrase safe and private.\n
You'll need it to recover your wallet if your device is lost or broken.''';
static const String frequentlyAskedQuestions = 'Frequently Asked Questions:';
- static const String howCanIKeepMySeedPhraseSecure =
- 'How can I keep my Seed Phrase secure?';
+ static const String howCanIKeepMySeedPhraseSecure = 'How can I keep my Seed Phrase secure?';
static const String howCanIKeepMySeedPhraseSecureAns =
'''• Save in a password manager.\n• Keep in a safe deposit box.\n• Encrypt and store on an external drive.''';
- static const String howIsASeedPhraseDifferent =
- 'How is a Seed Phrase different from a Wallet Password?';
+ static const String howIsASeedPhraseDifferent = 'How is a Seed Phrase different from a Wallet Password?';
static const String howIsASeedPhraseDifferentAns =
'''The Seed Phrase is different because you can restore your wallet with it. The Wallet Password is for security and only lets you unlock the wallet after it has been imported (or created) in wallet software. Your Wallet Password isn't required to lock your wallet.''';
- static const String howIsMySeedPhraseUnrecoverable =
- 'How is my Seed Phrase or Wallet Password unrecoverable?';
+ static const String howIsMySeedPhraseUnrecoverable = 'How is my Seed Phrase or Wallet Password unrecoverable?';
static const String howIsMySeedPhraseUnrecoverableAns =
'''You are the only one with a record of your Seed Phrase or Wallet Password. Topl does not maintain or have any way to generate either of these for you.''';
static const String howIsMySeedPhraseUnrecoverableNewLine =
@@ -129,10 +124,8 @@ You'll need it to recover your wallet if your device is lost or broken.''';
static const String seedPhraseGenerating = 'Seed Phrase Generating...';
static const String goGrabAPenAndPaper = 'Go grab a pen and paper';
- static const String seriouslyGetAPenAndPaper =
- 'Seriously, get a pen and paper';
- static const String aboutToShowSeedPhrase =
- '''We are about to show you 15 words.\n
+ static const String seriouslyGetAPenAndPaper = 'Seriously, get a pen and paper';
+ static const String aboutToShowSeedPhrase = '''We are about to show you 15 words.\n
These words need to be written down carefully and in the exact order shown.''';
static const String seedPhraseGenerated = 'Seed Phrase generated!';
static const String seedPhraseGeneratedDesc =
@@ -145,10 +138,8 @@ Write down the each word in the exact order it is presented.''';
static const String ribnWallet = 'Ribn Wallet';
static const String openTheWalletBy = 'Open the Ribn Wallet extension by:';
static const String clickingTheIconPartOne = 'Clicking the ';
- static const String clickingTheIconPartTwo =
- ''' icon on the top right of your browser.\n\nOr, clicking the ''';
- static const String clickingTheIconPartThree =
- ' to find the Ribn Wallet extension in the Chrome extension list.';
+ static const String clickingTheIconPartTwo = ''' icon on the top right of your browser.\n\nOr, clicking the ''';
+ static const String clickingTheIconPartThree = ' to find the Ribn Wallet extension in the Chrome extension list.';
static const String ribnVersion = 'Ribn Version';
static const String links = 'Links';
static const String termsOfUse = 'Terms of Use';
@@ -159,21 +150,19 @@ Write down the each word in the exact order it is presented.''';
'''Export Topl Main Key and save it somewhere secure.\nYou can reimport this to restore your wallet.''';
static const String exportWallet = 'Export Wallet';
static const String dangerZone = 'Danger Zone';
- static const String actionNotReversible =
- 'Careful, these actions are not reversible!';
+ static const String actionNotReversible = 'Careful, these actions are not reversible!';
static const String removeWallet = 'Remove wallet from your device';
static const String disconnectDApps = 'Disconnect DApps from Ribn';
- static const String delete = 'Delete';
+ static const String remove = 'Remove';
static const String disconnect = 'Disconnect';
- static const String deleteRibnWallet = 'Delete Ribn Wallet';
- static const String disconnectRibnWalletDApps =
- 'Disconnect all DApps from Ribn wallet?';
- static const String deleteRibnWalletDesc =
- 'Enter your wallet password to delete this wallet.\n\nThis action is not reversible. Your Ribn wallet will be deleted from this device.';
+ static const String removeFromDevice = 'Remove from Device';
+ static const String disconnectRibnWalletDApps = 'Disconnect all DApps from Ribn wallet?';
+ static const String removeRibnWalletDesc =
+ 'By proceeding, your Seed phrase and accounts will be removed from this device.\n\nKeep in mind, you can still access them on Topl blockchain. You can always add this back later by using your Seed phrase.';
static const String disconnectRibnWalletDAppsDesc =
'By disconnecting, Ribn wallet will remove authorization to the following DApps:';
static const String noIChangedMyMind = 'NO, I CHANGED MY MIND!';
- static const String yesIWantToDelete = 'YES, I WANT TO DELETE.';
+ static const String yesIWantToRemove = 'YES, I WANT TO REMOVE.';
static const String yesIWantToDisconnect = 'YES, I WANT TO DISCONNECT.';
static const String enterWalletPassword = 'Enter Wallet Password';
static const String unlock = 'Unlock';
@@ -183,13 +172,11 @@ Write down the each word in the exact order it is presented.''';
static const String restoreWalletNewline = 'RESTORE\nWALLET';
static const String restoreWalletDesc =
'You can either use your 15-word Seed Phrase or your Top Level Key to import or recover your wallet.';
- static const String seedPhraseDiffFromTopLevelKey =
- 'How is a Seed Phrase different from a Top Level Key?';
+ static const String seedPhraseDiffFromTopLevelKey = 'How is a Seed Phrase different from a Top Level Key?';
static const String seedPhraseDiffFromTopLevelKeyDesc =
'''Your Seed Phrase is a combination of words that you can use to maintain accounts across multiple blockchains including Topl's. Meanwhile, your Top Level Key is a unique key file, specific to the Topl Blockchain. Either one can be used to access your wallet.''';
- static const String whereCanIFindMyTopLevelKey =
- 'Where can I find my Top Level Key?';
+ static const String whereCanIFindMyTopLevelKey = 'Where can I find my Top Level Key?';
static const String whereCanIFindMyTopLevelKeyDesc =
'''You can find and export your Top Level Key under settings. Please make sure to save this in a secure location as we cannot provide it to you if you lose access to your wallet.''';
static const String hintSeedPhrase =
@@ -201,12 +188,12 @@ Write down the each word in the exact order it is presented.''';
static const String needHelp = 'Need help? Contact ';
static const String ribnSupport = 'Ribn Support';
- static const String importWalletUsingSeedPhrase =
- 'Import an existing Ribn wallet using your Seed Phrase.';
+ static const String importWalletUsingSeedPhrase = 'Import an existing Ribn wallet using your Seed Phrase.';
static const String typeSomething = 'Type something';
static const String supportEmail = 'support@topl.me';
- static const String supportEmailLink =
- 'mailto:$supportEmail?subject=Ribn Support&body=';
+ static const String supportEmailLink = 'mailto:$supportEmail?subject=Ribn Support&body=';
+ static const String supportDocsURL =
+ 'https://docs.google.com/forms/d/e/1FAIpQLSdq0ex4BRPkRMt7HLaI9vHZJJ757Prsw9Mtbk4MU5zttCH3vg/viewform';
static const String sendAssets = 'Send assets';
static const String sendNativeCoins = 'Send native coins';
static const String yourRibnWalletAddress = 'Your Ribn Wallet address';
@@ -236,15 +223,13 @@ Write down the each word in the exact order it is presented.''';
static const String mintExistingAsset = 'Mint existing asset';
static const String myRibnWallet = 'MY\nRIBN WALLET';
static const String anotherRecipientsWallet = 'ANOTHER RECIPIENT\'S WALLET ';
- static const String mintAssetDesc =
- 'Where would you like your Asset to be minted?';
+ static const String mintAssetDesc = 'Where would you like your Asset to be minted?';
static const String issuerAddress = 'Issuer address';
static const String walletPasswordInfo =
'Your Wallet Password can lock and unlock your\nwallet on a device where it is already stored.';
static const String assetLongNameInfo =
'The descriptive name used to identify your\nassets locally in your Ribn Wallet.';
- static const String assetCodeLongInfo =
- 'Asset code serves as a unique identifier\nfor user issued assets.';
+ static const String assetCodeLongInfo = 'Asset code serves as a unique identifier\nfor user issued assets.';
static const String assetCodeShortInfo =
'This is used to view the name for your \nasset as this will be the information used to\nidentify a particular asset on the blockchain.';
static const String issuerAddressInfo =
@@ -253,8 +238,7 @@ Write down the each word in the exact order it is presented.''';
static const String newWalletPassword = 'New Wallet Password';
static const String newWalletPasswordHint = 'Min 8 characters';
static const String confirmWalletPassword = 'Confirm Wallet Password';
- static const String confirmWalletPasswordHint =
- 'Re-type your Wallet Password';
+ static const String confirmWalletPasswordHint = 'Re-type your Wallet Password';
static const String warning = 'Warning';
static const String restoreWalletWarning =
'''For your security, restoration of a wallet will overwrite all previously stored Ribn activity. This will not affect any activity recorded on the blockchain itself.''';
@@ -279,24 +263,19 @@ Write down the each word in the exact order it is presented.''';
static const String myRibnWalletAddress = 'My Ribn Wallet Address';
static const String copyAddress = 'Copy address';
static const String privacyPolicyUrl = 'https://legal.topl.co/Privacy_Policy';
- static const String termsOfUseUrl =
- 'https://legal.topl.co/Ribn_License_Agreement';
+ static const String termsOfUseUrl = 'https://legal.topl.co/Ribn_Terms_of_Use';
static const String loginPasswordInfo =
'Your Wallet Password can lock and unlock your\n wallet on a device where it is already stored.';
- static const String refillCurrentPolyBalance =
- 'You can refill your Poly balance anytime by\n signing into';
- static const String refillEmptyPolyBalance =
- 'Time to refill your Poly balance.\nSign into';
+ static const String refillCurrentPolyBalance = 'You can refill your Poly balance anytime by\n signing into';
+ static const String refillEmptyPolyBalance = 'Time to refill your Poly balance.\nSign into';
static const String forgotPassword = 'Forgot password?';
static const String invalidAmountError =
'The amount you entered exceeds\nyour wallet balance for this asset.\nPlease enter a valid amount!';
static const String invalidRecipientAddressError =
"Hmmm... That's not a valid Recipient address.\nTip: Instead of typing it out, try copy\nand pasting your Recipient's address.";
static const String invalidSeedPhrase = 'Invalid Seed Phrase';
- static const String importExistingWallet =
- 'Import an existing Ribn wallet using your Seed Phrase.';
- static const String firstTimeWallet =
- 'First time? Create a new wallet and 15 word Seed Phrase.';
+ static const String importExistingWallet = 'Import an existing Ribn wallet using your Seed Phrase.';
+ static const String firstTimeWallet = 'First time? Create a new wallet and 15 word Seed Phrase.';
static const String passwordExample = 'Example: tree-mice-house';
static const String writeDownSeedPhraseInExactOrder =
'Now, you will write your Seed Phrase in the exact order shown below.';
@@ -309,16 +288,31 @@ Write down the each word in the exact order it is presented.''';
Ribn Wallet does not control the functionality of biometrics and does not have access to your biometrics information.''';
static const String recentActivity = 'Recent Activity';
static const String transactionDetails = 'Activity details';
- static const String noActivityToReview =
- 'You currently have no wallet activity to review.';
- static const String noAssetsInWallet =
- 'You currently have no assets in your wallet';
- static const String emptyStateBody =
- 'Here’s how you can get started:\n • Mint a new asset to a wallet address\n • Share your address to receive assets';
+ static const String noActivityToReview = 'You currently have no wallet activity to review.';
+ static const String noAssetsInWallet = 'You currently have no assets in your wallet.';
+ static const String noAssetsAndBalanceInWallet = 'Want to add more assets to your wallet? ';
+ static const String emptyStateBody = 'Get started by sharing your address to receive assets to your wallet.';
static const String connect = 'Connect';
- static const String connectDApp =
- ' allowing this site to see my Ribn address, and suggest transactions to approve.';
+ static const String connectDApp = ' allowing this site to see my Ribn address, and suggest transactions to approve.';
static const String connecting = 'Connecting...';
- static const String executeTransaction =
- 'You are about to execute the following transaction on';
+ static const String executeTransaction = 'You are about to execute the following transaction on';
+ static const String neverCollectKeys =
+ 'Never collect keys, addresses, transactions, balances, hashes, or any personal information.';
+ static const String neverCollectIP = 'Never collect your full IP address.';
+ static const String neverSellData = 'Never sell data for profit.';
+ static const String ribnWalletGatherUsage =
+ "Ribn Wallet would like to gather usage data to better understand user interactions. This data will be used to continually improve user experience and Topl's ecosystem.";
+ static const String optOut = "You can always opt-out at anytime via Settings.";
+ static const readMorePrivacy =
+ "This data is aggregated and is therefore anonymous for the purposes of General Data Protection Regulation (EU) 2016/679. For more information in relation to our privacy practices, please see our";
+ static const readMore = "Read more";
+ static const helpUsImprove = "Help us improve Ribn";
+ static const privacyPolicyLink = "Privacy Policy here.";
+ static const noThanks = "No thanks";
+ static const iAgree = "I agree";
+ static overMaxPolys(int maxPolys) =>
+ 'The amount you entered exceeds\nyour wallet balance of Polys.\nPlease enter a an amount \nless then $maxPolys!';
+ static const String participateInAnalytics = "Participate in Ribn Analytics";
+ static const String participateInAnalyticsDescription =
+ "Participate in Ribn analytics to help us \nimprove the Ribn wallet user experience.";
}
diff --git a/lib/containers/asset_transfer_input_container.dart b/lib/containers/asset_transfer_input_container.dart
index efcfb7fd..d919276e 100644
--- a/lib/containers/asset_transfer_input_container.dart
+++ b/lib/containers/asset_transfer_input_container.dart
@@ -98,20 +98,16 @@ class AssetTransferInputViewModel {
(TransferDetails? transferDetails) {
final success = transferDetails != null;
onRawTxCreated(success);
- Keys.navigatorKey.currentState
- ?.pushNamed(Routes.txReview, arguments: transferDetails);
+ Keys.navigatorKey.currentState?.pushNamed(Routes.txReview, arguments: transferDetails);
},
);
},
assets: store.state.keychainState.currentNetwork.getAllAssetsInWallet(),
currentNetwork: store.state.keychainState.currentNetwork,
- networkFee: NetworkUtils
- .networkFees[store.state.keychainState.currentNetwork.networkId]!
- .getInNanopoly,
+ networkFee: NetworkUtils.networkFees[store.state.keychainState.currentNetwork.networkId]!.getInNanopoly,
assetDetails: store.state.userDetailsState.assetDetails,
getAssetBalance: (String? assetCode) {
- final List myAssets =
- store.state.keychainState.currentNetwork.getAllAssetsInWallet();
+ final List myAssets = store.state.keychainState.currentNetwork.getAllAssetsInWallet();
return myAssets
.where((element) => element.assetCode.toString() == assetCode)
.fold(0, (prev, value) => prev + value.quantity);
@@ -132,9 +128,6 @@ class AssetTransferInputViewModel {
@override
int get hashCode {
- return assets.hashCode ^
- networkFee.hashCode ^
- assetDetails.hashCode ^
- currentNetwork.hashCode;
+ return assets.hashCode ^ networkFee.hashCode ^ assetDetails.hashCode ^ currentNetwork.hashCode;
}
}
diff --git a/lib/containers/create_password_container.dart b/lib/containers/create_password_container.dart
index c5fcc95e..6248da36 100644
--- a/lib/containers/create_password_container.dart
+++ b/lib/containers/create_password_container.dart
@@ -16,8 +16,7 @@ class CreatePasswordContainer extends StatelessWidget {
required this.onDidChange,
}) : super(key: key);
final ViewModelBuilder builder;
- final Function(CreatePasswordViewModel?, CreatePasswordViewModel)?
- onDidChange;
+ final Function(CreatePasswordViewModel?, CreatePasswordViewModel)? onDidChange;
@override
Widget build(BuildContext context) {
@@ -42,10 +41,8 @@ class CreatePasswordViewModel {
});
static CreatePasswordViewModel fromStore(Store store) {
return CreatePasswordViewModel(
- attemptCreatePassword: (String password) =>
- store.dispatch(CreatePasswordAction(password)),
- passwordSuccessfullyCreated:
- store.state.keychainState.keyStoreJson != null,
+ attemptCreatePassword: (String password) => store.dispatch(CreatePasswordAction(password)),
+ passwordSuccessfullyCreated: store.state.keychainState.keyStoreJson != null,
keyStoreJson: store.state.keychainState.keyStoreJson,
);
}
@@ -60,6 +57,5 @@ class CreatePasswordViewModel {
}
@override
- int get hashCode =>
- passwordSuccessfullyCreated.hashCode & keyStoreJson.hashCode;
+ int get hashCode => passwordSuccessfullyCreated.hashCode & keyStoreJson.hashCode;
}
diff --git a/lib/containers/login_container.dart b/lib/containers/login_container.dart
deleted file mode 100644
index 5117ac7b..00000000
--- a/lib/containers/login_container.dart
+++ /dev/null
@@ -1,93 +0,0 @@
-// Dart imports:
-import 'dart:async';
-
-// Flutter imports:
-import 'package:flutter/material.dart';
-// Package imports:
-import 'package:flutter_redux/flutter_redux.dart';
-import 'package:redux/redux.dart';
-// Project imports:
-import 'package:ribn/actions/login_actions.dart';
-import 'package:ribn/actions/misc_actions.dart';
-import 'package:ribn/constants/keys.dart';
-import 'package:ribn/constants/routes.dart';
-import 'package:ribn/models/app_state.dart';
-
-/// Intended to wrap the [LoginPage] and provide it with the the [LoginViewModel].
-class LoginContainer extends StatelessWidget {
- const LoginContainer({
- Key? key,
- required this.builder,
- required this.onInitialBuild,
- }) : super(key: key);
- final ViewModelBuilder builder;
- final void Function(LoginViewModel vm) onInitialBuild;
-
- @override
- Widget build(BuildContext context) {
- return StoreConnector(
- distinct: true,
- converter: LoginViewModel.fromStore,
- builder: builder,
- onInitialBuild: onInitialBuild,
- );
- }
-}
-
-class LoginViewModel {
- /// Handler for when there is an attempt to login using [password].
- final Function({
- required String password,
- required VoidCallback onIncorrectPasswordEntered,
- }) attemptLogin;
-
- /// Handler for when there is attempt to restore wallet from the login page.
- final VoidCallback restoreWallet;
-
- /// True if biometrics authentication is enabled for login
- final bool isBiometricsEnabled;
-
- const LoginViewModel({
- required this.attemptLogin,
- required this.restoreWallet,
- required this.isBiometricsEnabled,
- });
- static LoginViewModel fromStore(Store store) {
- return LoginViewModel(
- attemptLogin: ({
- required String password,
- required VoidCallback onIncorrectPasswordEntered,
- }) async {
- final Completer loginCompleter = Completer();
- store.dispatch(AttemptLoginAction(password, loginCompleter));
- await loginCompleter.future.then((bool loginSuccess) {
- if (loginSuccess) {
- if (store.state.internalMessage?.additionalNavigation ==
- Routes.connectDApp &&
- store.state.internalMessage != null) {
- Keys.navigatorKey.currentState?.pushNamed(Routes.connectDApp,
- arguments: store.state.internalMessage);
- } else {
- Keys.navigatorKey.currentState?.pushReplacementNamed(Routes.home);
- }
- } else {
- onIncorrectPasswordEntered();
- }
- });
- },
- restoreWallet: () =>
- store.dispatch(NavigateToRoute(Routes.restoreWallet)),
- isBiometricsEnabled: store.state.userDetailsState.isBiometricsEnabled,
- );
- }
-
- @override
- bool operator ==(covariant LoginViewModel other) {
- if (identical(this, other)) return true;
-
- return other.restoreWallet == restoreWallet;
- }
-
- @override
- int get hashCode => restoreWallet.hashCode;
-}
diff --git a/lib/containers/mint_input_container.dart b/lib/containers/mint_input_container.dart
index 15c8689b..564ea0fc 100644
--- a/lib/containers/mint_input_container.dart
+++ b/lib/containers/mint_input_container.dart
@@ -81,11 +81,8 @@ class MintInputViewmodel {
AssetDetails? assetDetails,
required Function(bool success) onRawTxCreated,
}) async {
- final ToplAddress issuerAddress = store
- .state.keychainState.currentNetwork.myWalletAddress!.toplAddress;
- final TransferType transferType = mintingNewAsset
- ? TransferType.mintingAsset
- : TransferType.remintingAsset;
+ final ToplAddress issuerAddress = store.state.keychainState.currentNetwork.myWalletAddress!.toplAddress;
+ final TransferType transferType = mintingNewAsset ? TransferType.mintingAsset : TransferType.remintingAsset;
final TransferDetails transferDetails = TransferDetails(
transferType: transferType,
assetCode: AssetCode.initialize(
@@ -104,17 +101,13 @@ class MintInputViewmodel {
await actionCompleter.future.then(
(TransferDetails? transferDetails) {
onRawTxCreated(transferDetails != null);
- Keys.navigatorKey.currentState
- ?.pushNamed(Routes.txReview, arguments: transferDetails);
+ Keys.navigatorKey.currentState?.pushNamed(Routes.txReview, arguments: transferDetails);
},
);
},
- assets:
- store.state.keychainState.currentNetwork.getAssetsIssuedByWallet(),
+ assets: store.state.keychainState.currentNetwork.getAssetsIssuedByWallet(),
currentNetwork: store.state.keychainState.currentNetwork,
- networkFee: NetworkUtils
- .networkFees[store.state.keychainState.currentNetwork.networkId]!
- .getInNanopoly,
+ networkFee: NetworkUtils.networkFees[store.state.keychainState.currentNetwork.networkId]!.getInNanopoly,
assetDetails: store.state.userDetailsState.assetDetails,
);
}
@@ -132,9 +125,6 @@ class MintInputViewmodel {
@override
int get hashCode {
- return networkFee.hashCode ^
- assets.hashCode ^
- currentNetwork.hashCode ^
- assetDetails.hashCode;
+ return networkFee.hashCode ^ assets.hashCode ^ currentNetwork.hashCode ^ assetDetails.hashCode;
}
}
diff --git a/lib/containers/poly_transfer_input_container.dart b/lib/containers/poly_transfer_input_container.dart
index ed20a012..8c3ed9fe 100644
--- a/lib/containers/poly_transfer_input_container.dart
+++ b/lib/containers/poly_transfer_input_container.dart
@@ -21,8 +21,7 @@ import 'package:ribn/models/transfer_details.dart';
/// Intended to wrap the [PolyTransferInputPage] and provide it with the the [PolyTransferInputViewModel].
class PolyTransferInputContainer extends StatelessWidget {
- const PolyTransferInputContainer({Key? key, required this.builder})
- : super(key: key);
+ const PolyTransferInputContainer({Key? key, required this.builder}) : super(key: key);
final ViewModelBuilder builder;
@override
@@ -67,9 +66,7 @@ class PolyTransferInputViewModel {
});
static PolyTransferInputViewModel fromStore(Store store) {
- final num networkFee = NetworkUtils
- .networkFees[store.state.keychainState.currentNetwork.networkId]!
- .getInNanopoly;
+ final num networkFee = NetworkUtils.networkFees[store.state.keychainState.currentNetwork.networkId]!.getInNanopoly;
return PolyTransferInputViewModel(
initiateTx: ({
required String amount,
@@ -82,27 +79,25 @@ class PolyTransferInputViewModel {
transferType: TransferType.polyTransfer,
senders: [store.state.keychainState.currentNetwork.myWalletAddress!],
recipient: recipient,
+ // recipient: "AUEUa7j7DspZqVD728WRZCvdPCvqUNfddnEKBrSQhFCsFK1o285W", // OVERWRITE RECIPIENT
amount: amount,
data: note,
);
+
final Completer rawTxCompleter = Completer();
store.dispatch(InitiateTxAction(transferDetails, rawTxCompleter));
await rawTxCompleter.future.then(
(TransferDetails? transferDetails) {
final success = transferDetails != null;
onRawTxCreated(success);
- Keys.navigatorKey.currentState
- ?.pushNamed(Routes.txReview, arguments: transferDetails);
+ Keys.navigatorKey.currentState?.pushNamed(Routes.txReview, arguments: transferDetails);
},
);
},
currentNetwork: store.state.keychainState.currentNetwork,
networkFee: networkFee,
- maxTransferrableAmount:
- store.state.keychainState.currentNetwork.getPolysInWallet() -
- networkFee,
- navigateToSendAssets: () =>
- store.dispatch(NavigateToRoute(Routes.assetsTransferInput)),
+ maxTransferrableAmount: store.state.keychainState.currentNetwork.getPolysInWallet() - networkFee,
+ navigateToSendAssets: () => store.dispatch(NavigateToRoute(Routes.assetsTransferInput)),
);
}
diff --git a/lib/containers/ribn_app_bar_container.dart b/lib/containers/ribn_app_bar_container.dart
index 126ba405..08ca76a1 100644
--- a/lib/containers/ribn_app_bar_container.dart
+++ b/lib/containers/ribn_app_bar_container.dart
@@ -5,7 +5,6 @@ import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_redux/flutter_redux.dart';
import 'package:redux/redux.dart';
-import 'package:url_launcher/url_launcher_string.dart';
// Project imports:
import 'package:ribn/actions/keychain_actions.dart';
@@ -14,6 +13,7 @@ import 'package:ribn/constants/assets.dart';
import 'package:ribn/constants/routes.dart';
import 'package:ribn/constants/strings.dart';
import 'package:ribn/models/app_state.dart';
+import 'package:ribn/utils/error_handling_utils.dart';
class RibnAppBarContainer extends StatelessWidget {
const RibnAppBarContainer({
@@ -64,7 +64,7 @@ class RibnAppBarViewModel {
updateNetwork: (String network) {
store.dispatch(UpdateCurrentNetworkAction(network));
},
- selectSettingsOption: (String selectedOption) {
+ selectSettingsOption: (String selectedOption) async {
switch (selectedOption) {
case Strings.settings:
{
@@ -73,7 +73,7 @@ class RibnAppBarViewModel {
}
case Strings.support:
{
- launchUrlString(Strings.supportEmailLink);
+ await handleContactSupport();
break;
}
default:
@@ -96,9 +96,6 @@ class RibnAppBarViewModel {
@override
int get hashCode {
- return networks.hashCode ^
- currentNetworkName.hashCode ^
- updateNetwork.hashCode ^
- selectSettingsOption.hashCode;
+ return networks.hashCode ^ currentNetworkName.hashCode ^ updateNetwork.hashCode ^ selectSettingsOption.hashCode;
}
}
diff --git a/lib/containers/seed_phrase_confirmation_container.dart b/lib/containers/seed_phrase_confirmation_container.dart
deleted file mode 100644
index 60b00a4d..00000000
--- a/lib/containers/seed_phrase_confirmation_container.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-// Flutter imports:
-import 'package:flutter/foundation.dart';
-import 'package:flutter/material.dart';
-
-// Package imports:
-import 'package:flutter_redux/flutter_redux.dart';
-import 'package:redux/redux.dart';
-
-// Project imports:
-import 'package:ribn/actions/onboarding_actions.dart';
-import 'package:ribn/models/app_state.dart';
-
-class SeedPhraseConfirmationContainer extends StatelessWidget {
- const SeedPhraseConfirmationContainer({
- Key? key,
- required this.builder,
- this.onInit,
- }) : super(key: key);
- final ViewModelBuilder builder;
- final Function(Store)? onInit;
- @override
- Widget build(BuildContext context) {
- return StoreConnector(
- distinct: true,
- converter: SeedPhraseConfirmationViewModel.fromStore,
- builder: builder,
- onInit: onInit,
- );
- }
-}
-
-@immutable
-class SeedPhraseConfirmationViewModel {
- final List shuffledMnemonic;
- final List mnemonicWordsList;
- final List userSelectedIndices;
- final List confirmeIdxs;
- final bool finishedInputting;
- final Function(int) selectWord;
-
- const SeedPhraseConfirmationViewModel({
- required this.mnemonicWordsList,
- required this.shuffledMnemonic,
- required this.userSelectedIndices,
- required this.selectWord,
- required this.finishedInputting,
- required this.confirmeIdxs,
- });
-
- static SeedPhraseConfirmationViewModel fromStore(Store store) {
- return SeedPhraseConfirmationViewModel(
- shuffledMnemonic: store.state.onboardingState.shuffledMnemonic!,
- mnemonicWordsList:
- store.state.onboardingState.mnemonic!.split(' ').toList(),
- userSelectedIndices: store.state.onboardingState.userSelectedIndices!,
- finishedInputting:
- store.state.onboardingState.userSelectedIndices?.length ==
- store.state.onboardingState.shuffledMnemonic?.length,
- selectWord: (idx) => store.dispatch(UserSelectedWordAction(idx)),
- confirmeIdxs: store.state.onboardingState.mobileConfirmIdxs,
- );
- }
-
- @override
- bool operator ==(Object other) {
- if (identical(this, other)) return true;
-
- return other is SeedPhraseConfirmationViewModel &&
- listEquals(other.shuffledMnemonic, shuffledMnemonic) &&
- listEquals(other.mnemonicWordsList, mnemonicWordsList) &&
- listEquals(other.userSelectedIndices, userSelectedIndices) &&
- other.selectWord == selectWord;
- }
-
- @override
- int get hashCode {
- return shuffledMnemonic.hashCode ^
- mnemonicWordsList.hashCode ^
- userSelectedIndices.hashCode ^
- selectWord.hashCode;
- }
-}
diff --git a/lib/containers/settings_container.dart b/lib/containers/settings_container.dart
deleted file mode 100644
index 3d6670f5..00000000
--- a/lib/containers/settings_container.dart
+++ /dev/null
@@ -1,125 +0,0 @@
-// ignore_for_file: public_member_api_docs, sort_constructors_first
-
-// Dart imports:
-import 'dart:async';
-
-// Flutter imports:
-import 'package:flutter/material.dart';
-
-// Package imports:
-import 'package:flutter_redux/flutter_redux.dart';
-import 'package:redux/redux.dart';
-
-// Project imports:
-import 'package:ribn/actions/misc_actions.dart';
-import 'package:ribn/models/app_state.dart';
-import 'package:ribn/platform/platform.dart';
-import 'package:ribn/presentation/settings/sections/delete_wallet_confirmation_dialog.dart';
-import 'package:ribn/presentation/settings/sections/disconnect_wallet_confirmation_dialog.dart';
-
-/// Intended to wrap the [SettingsPage] and provide it with the the [SettingsViewModel].
-class SettingsContainer extends StatelessWidget {
- const SettingsContainer({Key? key, required this.builder}) : super(key: key);
- final ViewModelBuilder builder;
-
- @override
- Widget build(BuildContext context) {
- return StoreConnector(
- distinct: true,
- converter: SettingsViewModel.fromStore,
- builder: builder,
- );
- }
-}
-
-class SettingsViewModel {
- /// Callback to download the Topl Main Key.
- final VoidCallback exportToplMainKey;
-
- /// Handler for when user selects 'delete wallet'
- final Future Function(BuildContext context) onDeletePressed;
-
- /// Handler for when user selects 'disconnect wallet'
- final Future Function(BuildContext context) onDisconnectPressed;
-
- /// The current app version.
- final String appVersion;
-
- /// True if biometrics authentication is enabled
- final bool isBiometricsEnabled;
-
- bool canDisconnect = false;
-
- SettingsViewModel({
- required this.exportToplMainKey,
- required this.onDeletePressed,
- required this.onDisconnectPressed,
- required this.appVersion,
- required this.isBiometricsEnabled,
- });
-
- static SettingsViewModel fromStore(Store store) {
- return SettingsViewModel(
- exportToplMainKey: () => store.dispatch(
- DownloadAsFileAction(
- 'topl_main_key.json',
- store.state.keychainState.keyStoreJson!,
- ),
- ),
- onDeletePressed: (BuildContext context) async {
- await showDialog(
- context: context,
- builder: (context) => DeleteWalletConfirmationDialog(
- onConfirmDeletePressed: (
- String password,
- VoidCallback onIncorrectPasswordEntered,
- ) async {
- final Completer actionCompleter = Completer();
- store.dispatch(
- DeleteWalletAction(
- password: password,
- completer: actionCompleter,
- ),
- );
- // onIncorrectPasswordEntered called if response returned is false
- await actionCompleter.future.then((value) {
- if (!value) onIncorrectPasswordEntered();
- });
- },
- ),
- );
- },
- onDisconnectPressed: (BuildContext context) async {
- final dApps = await PlatformUtils.instance
- .convertToFuture(PlatformUtils.instance.getDAppList());
- // await PlatformUtils.instance.consoleLog(dApps);
- // final bool disconnectResult =
- await showDialog(
- context: context,
- builder: (context) =>
- DisconnectWalletConfirmationDialog(dApps: dApps),
- );
- },
- appVersion: store.state.appVersion,
- isBiometricsEnabled: store.state.userDetailsState.isBiometricsEnabled,
- );
- }
-
- @override
- bool operator ==(covariant SettingsViewModel other) {
- if (identical(this, other)) return true;
-
- return other.exportToplMainKey == exportToplMainKey &&
- other.onDeletePressed == onDeletePressed &&
- other.appVersion == appVersion &&
- other.isBiometricsEnabled == isBiometricsEnabled;
- }
-
- @override
- int get hashCode {
- return exportToplMainKey.hashCode ^
- onDeletePressed.hashCode ^
- appVersion.hashCode ^
- isBiometricsEnabled.hashCode;
- }
-}
diff --git a/lib/containers/transaction_history_container.dart b/lib/containers/transaction_history_container.dart
index 00b6bffa..8f2347ea 100644
--- a/lib/containers/transaction_history_container.dart
+++ b/lib/containers/transaction_history_container.dart
@@ -7,14 +7,19 @@ import 'package:flutter/material.dart';
// Package imports:
import 'package:brambldart/brambldart.dart';
import 'package:flutter_redux/flutter_redux.dart';
+import 'package:grpc/service_api.dart';
+import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:redux/redux.dart';
// Project imports:
+import 'package:ribn/constants/network_utils.dart';
import 'package:ribn/genus/generated/filters.pb.dart';
import 'package:ribn/genus/generated/services_types.pb.dart';
import 'package:ribn/genus/generated/transactions_query.pbgrpc.dart';
import 'package:ribn/models/app_state.dart';
+import 'package:ribn/models/ribn_network.dart';
import 'package:ribn/platform/platform.dart';
+import 'package:ribn/providers/logger_provider.dart';
/// Intended to wrap the [TransactionHistoryPage] and provide it with the the [TransactionHistoryViewmodel].
class TransactionHistoryContainer extends StatelessWidget {
@@ -45,7 +50,7 @@ class TransactionHistoryViewmodel {
final Future? blockHeight;
/// Gets transactions associated with my wallet address from the Mempool and Genus
- final Future> Function({int pageNum}) getTransactions;
+ final Future> Function() getTransactions;
TransactionHistoryViewmodel({
required this.toplAddress,
@@ -62,13 +67,13 @@ class TransactionHistoryViewmodel {
networkId: store.state.keychainState.currentNetwork.networkId,
assets: store.state.keychainState.currentNetwork.getAllAssetsInWallet(),
blockHeight: store.state.keychainState.currentNetwork.client!.getBlockNumber(),
- getTransactions: ({int pageNum = 0}) async {
+ getTransactions: () async {
final myWalletAddress = currNetwork.myWalletAddress!.toplAddress.toBase58();
final mempoolTxs = await getMempoolTxs(
client: currNetwork.client!,
walletAddress: myWalletAddress,
);
- final genusTxs = await getGenusTxs(walletAddress: myWalletAddress);
+ final genusTxs = await getGenusTxs(walletAddress: myWalletAddress, currentNetwork: currNetwork);
return [...mempoolTxs, ...genusTxs];
},
);
@@ -85,8 +90,7 @@ class TransactionHistoryViewmodel {
) ??
false;
// simple recipient or asset recipient
- final walletAddrInRecipients =
- tx.to.any((recipient) => recipient.toJson()[0] == walletAddress);
+ final walletAddrInRecipients = tx.to.any((recipient) => recipient.toJson()[0] == walletAddress);
return walletAddrInSenders || walletAddrInRecipients;
}).toList();
final List formattedTxs = [];
@@ -113,8 +117,11 @@ class TransactionHistoryViewmodel {
static Future> getGenusTxs({
required String walletAddress,
int pageNumber = 0,
+ required RibnNetwork currentNetwork,
}) async {
- final txQueryClient = TransactionsQueryClient(PlatformGenusConfig.channel);
+ ClientChannel channel = _getClientChannel(currentNetwork);
+
+ final txQueryClient = TransactionsQueryClient(channel);
final txQueryResult = await txQueryClient.query(
QueryTxsReq(
filter: TransactionFilter(
@@ -129,6 +136,7 @@ class TransactionHistoryViewmodel {
confirmationDepth: 1,
),
);
+
final Map txResultJson = txQueryResult.toProto3Json() as Map;
final List txs = [];
for (var element in (txResultJson['success']['transactions'] as List)) {
@@ -136,8 +144,7 @@ class TransactionHistoryViewmodel {
try {
final outputs = formatRecipients(element['outputs'] as List);
final newBoxes = formatNewBoxes(element['newBoxes']);
- final inputs =
- (element['inputs'] as List).map((input) => [input['address'], input['nonce']]).toList();
+ final inputs = (element['inputs'] as List).map((input) => [input['address'], input['nonce']]).toList();
if (inputs.isEmpty) continue;
// get tx per recipient
outputs.toList().forEach((output) {
@@ -236,4 +243,20 @@ class TransactionHistoryViewmodel {
blockHeight.hashCode ^
getTransactions.hashCode;
}
+
+ static ClientChannel _getClientChannel(RibnNetwork currentNetwork) {
+ try {
+ final network = NetworkConfig.fromNetwork(Networks.values.byName(currentNetwork.networkName));
+ return PlatformGenusConfig.getNetworkConfig(network.genusIP);
+ } catch (e) {
+ ProviderContainer().read(loggerProvider).log(
+ logLevel: LogLevel.Warning,
+ loggerClass: LoggerClass.ApiError,
+ message: "Error parsing clientChannel from Network config",
+ stackTrace: StackTrace.current,
+ error: e,
+ );
+ throw (e);
+ }
+ }
}
diff --git a/lib/containers/wallet_balance_container.dart b/lib/containers/wallet_balance_container.dart
index f12416af..fccb351f 100644
--- a/lib/containers/wallet_balance_container.dart
+++ b/lib/containers/wallet_balance_container.dart
@@ -22,8 +22,7 @@ import 'package:ribn/models/ribn_network.dart';
class WalletBalanceContainer extends StatelessWidget {
final ViewModelBuilder builder;
final void Function(WalletBalanceViewModel vm) onInitialBuild;
- final void Function(WalletBalanceViewModel?, WalletBalanceViewModel)
- onWillChange;
+ final void Function(WalletBalanceViewModel?, WalletBalanceViewModel) onWillChange;
const WalletBalanceContainer({
Key? key,
required this.builder,
@@ -63,8 +62,7 @@ class WalletBalanceViewModel {
final Function(AssetAmount) viewAssetDetails;
/// Callback to refresh balances.
- final void Function({required Function(bool success) onBalancesRefreshed})
- refreshBalances;
+ final void Function({required Function(bool success) onBalancesRefreshed}) refreshBalances;
/// The current network being viewed.
final RibnNetwork currentNetwork;
@@ -89,10 +87,8 @@ class WalletBalanceViewModel {
polyBalance: store.state.keychainState.currentNetwork.getPolysInWallet(),
assets: store.state.keychainState.currentNetwork.getAllAssetsInWallet(),
assetDetails: store.state.userDetailsState.assetDetails,
- navigateToSendAssets: () =>
- store.dispatch(NavigateToRoute(Routes.assetsTransferInput)),
- navigateToSendPolys: () =>
- store.dispatch(NavigateToRoute(Routes.polyTransferInput)),
+ navigateToSendAssets: () => store.dispatch(NavigateToRoute(Routes.assetsTransferInput)),
+ navigateToSendPolys: () => store.dispatch(NavigateToRoute(Routes.polyTransferInput)),
viewAssetDetails: (AssetAmount assetAmount) => store.dispatch(
NavigateToRoute(
Routes.assetDetails,
diff --git a/lib/genus/generated/blocks_query.pb.dart b/lib/genus/generated/blocks_query.pb.dart
index ef306c6d..f6c525f0 100644
--- a/lib/genus/generated/blocks_query.pb.dart
+++ b/lib/genus/generated/blocks_query.pb.dart
@@ -18,21 +18,13 @@ import 'types.pb.dart' as $6;
class BlockSorting_Height extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockSorting.Height',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockSorting.Height',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
- ..aOB(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'descending')
+ ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descending')
..hasRequiredFields = false;
BlockSorting_Height._() : super();
@@ -50,8 +42,7 @@ class BlockSorting_Height extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockSorting_Height.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockSorting_Height.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -71,11 +62,10 @@ class BlockSorting_Height extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static BlockSorting_Height create() => BlockSorting_Height._();
BlockSorting_Height createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockSorting_Height getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockSorting_Height getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockSorting_Height? _defaultInstance;
@$pb.TagNumber(1)
@@ -93,21 +83,13 @@ class BlockSorting_Height extends $pb.GeneratedMessage {
class BlockSorting_Timestamp extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockSorting.Timestamp',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockSorting.Timestamp',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
- ..aOB(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'descending')
+ ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descending')
..hasRequiredFields = false;
BlockSorting_Timestamp._() : super();
@@ -125,34 +107,30 @@ class BlockSorting_Timestamp extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockSorting_Timestamp.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockSorting_Timestamp.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockSorting_Timestamp clone() =>
- BlockSorting_Timestamp()..mergeFromMessage(this);
+ BlockSorting_Timestamp clone() => BlockSorting_Timestamp()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockSorting_Timestamp copyWith(
- void Function(BlockSorting_Timestamp) updates) =>
+ BlockSorting_Timestamp copyWith(void Function(BlockSorting_Timestamp) updates) =>
super.copyWith((message) => updates(message as BlockSorting_Timestamp))
as BlockSorting_Timestamp; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockSorting_Timestamp create() => BlockSorting_Timestamp._();
BlockSorting_Timestamp createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockSorting_Timestamp getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockSorting_Timestamp getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockSorting_Timestamp? _defaultInstance;
@$pb.TagNumber(1)
@@ -170,21 +148,13 @@ class BlockSorting_Timestamp extends $pb.GeneratedMessage {
class BlockSorting_Difficulty extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockSorting.Difficulty',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockSorting.Difficulty',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
- ..aOB(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'descending')
+ ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descending')
..hasRequiredFields = false;
BlockSorting_Difficulty._() : super();
@@ -202,34 +172,30 @@ class BlockSorting_Difficulty extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockSorting_Difficulty.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockSorting_Difficulty.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockSorting_Difficulty clone() =>
- BlockSorting_Difficulty()..mergeFromMessage(this);
+ BlockSorting_Difficulty clone() => BlockSorting_Difficulty()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockSorting_Difficulty copyWith(
- void Function(BlockSorting_Difficulty) updates) =>
+ BlockSorting_Difficulty copyWith(void Function(BlockSorting_Difficulty) updates) =>
super.copyWith((message) => updates(message as BlockSorting_Difficulty))
as BlockSorting_Difficulty; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockSorting_Difficulty create() => BlockSorting_Difficulty._();
BlockSorting_Difficulty createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockSorting_Difficulty getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockSorting_Difficulty getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockSorting_Difficulty? _defaultInstance;
@$pb.TagNumber(1)
@@ -247,21 +213,13 @@ class BlockSorting_Difficulty extends $pb.GeneratedMessage {
class BlockSorting_NumberOfTransactions extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockSorting.NumberOfTransactions',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockSorting.NumberOfTransactions',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
- ..aOB(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'descending')
+ ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'descending')
..hasRequiredFields = false;
BlockSorting_NumberOfTransactions._() : super();
@@ -289,29 +247,24 @@ class BlockSorting_NumberOfTransactions extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockSorting_NumberOfTransactions clone() =>
- BlockSorting_NumberOfTransactions()..mergeFromMessage(this);
+ BlockSorting_NumberOfTransactions clone() => BlockSorting_NumberOfTransactions()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockSorting_NumberOfTransactions copyWith(
- void Function(BlockSorting_NumberOfTransactions) updates) =>
- super.copyWith((message) =>
- updates(message as BlockSorting_NumberOfTransactions))
+ BlockSorting_NumberOfTransactions copyWith(void Function(BlockSorting_NumberOfTransactions) updates) =>
+ super.copyWith((message) => updates(message as BlockSorting_NumberOfTransactions))
as BlockSorting_NumberOfTransactions; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static BlockSorting_NumberOfTransactions create() =>
- BlockSorting_NumberOfTransactions._();
+ static BlockSorting_NumberOfTransactions create() => BlockSorting_NumberOfTransactions._();
BlockSorting_NumberOfTransactions createEmptyInstance() => create();
static $pb.PbList createRepeated() =>
$pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockSorting_NumberOfTransactions getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(
- create);
+ static BlockSorting_NumberOfTransactions getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockSorting_NumberOfTransactions? _defaultInstance;
@$pb.TagNumber(1)
@@ -327,17 +280,10 @@ class BlockSorting_NumberOfTransactions extends $pb.GeneratedMessage {
void clearDescending() => clearField(1);
}
-enum BlockSorting_SortBy {
- height,
- timestamp,
- difficulty,
- numberOfTransactions,
- notSet
-}
+enum BlockSorting_SortBy { height, timestamp, difficulty, numberOfTransactions, notSet }
class BlockSorting extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlockSorting_SortBy>
- _BlockSorting_SortByByTag = {
+ static const $core.Map<$core.int, BlockSorting_SortBy> _BlockSorting_SortByByTag = {
1: BlockSorting_SortBy.height,
2: BlockSorting_SortBy.timestamp,
3: BlockSorting_SortBy.difficulty,
@@ -345,43 +291,31 @@ class BlockSorting extends $pb.GeneratedMessage {
0: BlockSorting_SortBy.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockSorting',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockSorting',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2, 3, 4])
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'height',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'height',
subBuilder: BlockSorting_Height.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'timestamp',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestamp',
subBuilder: BlockSorting_Timestamp.create,
)
..aOM(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'difficulty',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'difficulty',
subBuilder: BlockSorting_Difficulty.create,
)
..aOM(
4,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'numberOfTransactions',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'numberOfTransactions',
subBuilder: BlockSorting_NumberOfTransactions.create,
)
..hasRequiredFields = false;
@@ -408,11 +342,9 @@ class BlockSorting extends $pb.GeneratedMessage {
}
return _result;
}
- factory BlockSorting.fromBuffer($core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockSorting.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
- factory BlockSorting.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockSorting.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -426,21 +358,17 @@ class BlockSorting extends $pb.GeneratedMessage {
'Will be removed in next major version',
)
BlockSorting copyWith(void Function(BlockSorting) updates) =>
- super.copyWith((message) => updates(message as BlockSorting))
- as BlockSorting; // ignore: deprecated_member_use
+ super.copyWith((message) => updates(message as BlockSorting)) as BlockSorting; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockSorting create() => BlockSorting._();
BlockSorting createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockSorting getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockSorting getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockSorting? _defaultInstance;
- BlockSorting_SortBy whichSortBy() =>
- _BlockSorting_SortByByTag[$_whichOneof(0)]!;
+ BlockSorting_SortBy whichSortBy() => _BlockSorting_SortByByTag[$_whichOneof(0)]!;
void clearSortBy() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -502,42 +430,30 @@ class BlockSorting extends $pb.GeneratedMessage {
class QueryBlocksReq extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'QueryBlocksReq',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QueryBlocksReq',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..aOM<$4.BlockFilter>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter',
subBuilder: $4.BlockFilter.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'sorting',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sorting',
subBuilder: BlockSorting.create,
)
..a<$core.int>(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'confirmationDepth',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'confirmationDepth',
$pb.PbFieldType.OU3,
)
..aOM<$5.Paging>(
4,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'pagingOptions',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'pagingOptions',
subBuilder: $5.Paging.create,
)
..hasRequiredFields = false;
@@ -564,11 +480,9 @@ class QueryBlocksReq extends $pb.GeneratedMessage {
}
return _result;
}
- factory QueryBlocksReq.fromBuffer($core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksReq.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
- factory QueryBlocksReq.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -588,11 +502,9 @@ class QueryBlocksReq extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static QueryBlocksReq create() => QueryBlocksReq._();
QueryBlocksReq createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static QueryBlocksReq getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static QueryBlocksReq getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static QueryBlocksReq? _defaultInstance;
@$pb.TagNumber(1)
@@ -652,21 +564,15 @@ class QueryBlocksReq extends $pb.GeneratedMessage {
class QueryBlocksRes_Success extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'QueryBlocksRes.Success',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QueryBlocksRes.Success',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..pc<$6.Block>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'blocks',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blocks',
$pb.PbFieldType.PM,
subBuilder: $6.Block.create,
)
@@ -687,82 +593,56 @@ class QueryBlocksRes_Success extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory QueryBlocksRes_Success.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksRes_Success.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- QueryBlocksRes_Success clone() =>
- QueryBlocksRes_Success()..mergeFromMessage(this);
+ QueryBlocksRes_Success clone() => QueryBlocksRes_Success()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- QueryBlocksRes_Success copyWith(
- void Function(QueryBlocksRes_Success) updates) =>
+ QueryBlocksRes_Success copyWith(void Function(QueryBlocksRes_Success) updates) =>
super.copyWith((message) => updates(message as QueryBlocksRes_Success))
as QueryBlocksRes_Success; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static QueryBlocksRes_Success create() => QueryBlocksRes_Success._();
QueryBlocksRes_Success createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static QueryBlocksRes_Success getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static QueryBlocksRes_Success getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static QueryBlocksRes_Success? _defaultInstance;
@$pb.TagNumber(1)
$core.List<$6.Block> get blocks => $_getList(0);
}
-enum QueryBlocksRes_Failure_Reason {
- dataStoreConnectionError,
- queryTimeout,
- invalidQuery,
- notSet
-}
+enum QueryBlocksRes_Failure_Reason { dataStoreConnectionError, queryTimeout, invalidQuery, notSet }
class QueryBlocksRes_Failure extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, QueryBlocksRes_Failure_Reason>
- _QueryBlocksRes_Failure_ReasonByTag = {
+ static const $core.Map<$core.int, QueryBlocksRes_Failure_Reason> _QueryBlocksRes_Failure_ReasonByTag = {
1: QueryBlocksRes_Failure_Reason.dataStoreConnectionError,
2: QueryBlocksRes_Failure_Reason.queryTimeout,
3: QueryBlocksRes_Failure_Reason.invalidQuery,
0: QueryBlocksRes_Failure_Reason.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'QueryBlocksRes.Failure',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QueryBlocksRes.Failure',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2, 3])
- ..aOS(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'dataStoreConnectionError')
- ..aOS(
- 2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'queryTimeout')
- ..aOS(
- 3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'invalidQuery')
+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dataStoreConnectionError')
+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'queryTimeout')
+ ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'invalidQuery')
..hasRequiredFields = false;
QueryBlocksRes_Failure._() : super();
@@ -788,38 +668,33 @@ class QueryBlocksRes_Failure extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory QueryBlocksRes_Failure.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksRes_Failure.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- QueryBlocksRes_Failure clone() =>
- QueryBlocksRes_Failure()..mergeFromMessage(this);
+ QueryBlocksRes_Failure clone() => QueryBlocksRes_Failure()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- QueryBlocksRes_Failure copyWith(
- void Function(QueryBlocksRes_Failure) updates) =>
+ QueryBlocksRes_Failure copyWith(void Function(QueryBlocksRes_Failure) updates) =>
super.copyWith((message) => updates(message as QueryBlocksRes_Failure))
as QueryBlocksRes_Failure; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static QueryBlocksRes_Failure create() => QueryBlocksRes_Failure._();
QueryBlocksRes_Failure createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static QueryBlocksRes_Failure getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static QueryBlocksRes_Failure getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static QueryBlocksRes_Failure? _defaultInstance;
- QueryBlocksRes_Failure_Reason whichReason() =>
- _QueryBlocksRes_Failure_ReasonByTag[$_whichOneof(0)]!;
+ QueryBlocksRes_Failure_Reason whichReason() => _QueryBlocksRes_Failure_ReasonByTag[$_whichOneof(0)]!;
void clearReason() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -862,36 +737,27 @@ class QueryBlocksRes_Failure extends $pb.GeneratedMessage {
enum QueryBlocksRes_Result { success, failure, notSet }
class QueryBlocksRes extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, QueryBlocksRes_Result>
- _QueryBlocksRes_ResultByTag = {
+ static const $core.Map<$core.int, QueryBlocksRes_Result> _QueryBlocksRes_ResultByTag = {
1: QueryBlocksRes_Result.success,
2: QueryBlocksRes_Result.failure,
0: QueryBlocksRes_Result.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'QueryBlocksRes',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'QueryBlocksRes',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2])
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'success',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success',
subBuilder: QueryBlocksRes_Success.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'failure',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'failure',
subBuilder: QueryBlocksRes_Failure.create,
)
..hasRequiredFields = false;
@@ -910,11 +776,9 @@ class QueryBlocksRes extends $pb.GeneratedMessage {
}
return _result;
}
- factory QueryBlocksRes.fromBuffer($core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksRes.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
- factory QueryBlocksRes.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory QueryBlocksRes.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -934,15 +798,12 @@ class QueryBlocksRes extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static QueryBlocksRes create() => QueryBlocksRes._();
QueryBlocksRes createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static QueryBlocksRes getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static QueryBlocksRes getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static QueryBlocksRes? _defaultInstance;
- QueryBlocksRes_Result whichResult() =>
- _QueryBlocksRes_ResultByTag[$_whichOneof(0)]!;
+ QueryBlocksRes_Result whichResult() => _QueryBlocksRes_ResultByTag[$_whichOneof(0)]!;
void clearResult() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -976,35 +837,25 @@ class QueryBlocksRes extends $pb.GeneratedMessage {
class BlocksQueryStreamReq extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlocksQueryStreamReq',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlocksQueryStreamReq',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..aOM<$4.BlockFilter>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter',
subBuilder: $4.BlockFilter.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'sorting',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sorting',
subBuilder: BlockSorting.create,
)
..a<$core.int>(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'confirmationDepth',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'confirmationDepth',
$pb.PbFieldType.OU3,
)
..hasRequiredFields = false;
@@ -1032,16 +883,14 @@ class BlocksQueryStreamReq extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlocksQueryStreamReq.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlocksQueryStreamReq.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlocksQueryStreamReq clone() =>
- BlocksQueryStreamReq()..mergeFromMessage(this);
+ BlocksQueryStreamReq clone() => BlocksQueryStreamReq()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
@@ -1054,11 +903,10 @@ class BlocksQueryStreamReq extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static BlocksQueryStreamReq create() => BlocksQueryStreamReq._();
BlocksQueryStreamReq createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlocksQueryStreamReq getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlocksQueryStreamReq getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlocksQueryStreamReq? _defaultInstance;
@$pb.TagNumber(1)
@@ -1102,41 +950,24 @@ class BlocksQueryStreamReq extends $pb.GeneratedMessage {
void clearConfirmationDepth() => clearField(3);
}
-enum BlocksQueryStreamRes_Failure_Reason {
- dataStoreConnectionError,
- invalidQuery,
- notSet
-}
+enum BlocksQueryStreamRes_Failure_Reason { dataStoreConnectionError, invalidQuery, notSet }
class BlocksQueryStreamRes_Failure extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlocksQueryStreamRes_Failure_Reason>
- _BlocksQueryStreamRes_Failure_ReasonByTag = {
+ static const $core.Map<$core.int, BlocksQueryStreamRes_Failure_Reason> _BlocksQueryStreamRes_Failure_ReasonByTag = {
1: BlocksQueryStreamRes_Failure_Reason.dataStoreConnectionError,
2: BlocksQueryStreamRes_Failure_Reason.invalidQuery,
0: BlocksQueryStreamRes_Failure_Reason.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlocksQueryStreamRes.Failure',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlocksQueryStreamRes.Failure',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2])
- ..aOS(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'dataStoreConnectionError')
- ..aOS(
- 2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'invalidQuery')
+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dataStoreConnectionError')
+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'invalidQuery')
..hasRequiredFields = false;
BlocksQueryStreamRes_Failure._() : super();
@@ -1168,32 +999,26 @@ class BlocksQueryStreamRes_Failure extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlocksQueryStreamRes_Failure clone() =>
- BlocksQueryStreamRes_Failure()..mergeFromMessage(this);
+ BlocksQueryStreamRes_Failure clone() => BlocksQueryStreamRes_Failure()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlocksQueryStreamRes_Failure copyWith(
- void Function(BlocksQueryStreamRes_Failure) updates) =>
- super.copyWith(
- (message) => updates(message as BlocksQueryStreamRes_Failure))
+ BlocksQueryStreamRes_Failure copyWith(void Function(BlocksQueryStreamRes_Failure) updates) =>
+ super.copyWith((message) => updates(message as BlocksQueryStreamRes_Failure))
as BlocksQueryStreamRes_Failure; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static BlocksQueryStreamRes_Failure create() =>
- BlocksQueryStreamRes_Failure._();
+ static BlocksQueryStreamRes_Failure create() => BlocksQueryStreamRes_Failure._();
BlocksQueryStreamRes_Failure createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlocksQueryStreamRes_Failure getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlocksQueryStreamRes_Failure getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlocksQueryStreamRes_Failure? _defaultInstance;
- BlocksQueryStreamRes_Failure_Reason whichReason() =>
- _BlocksQueryStreamRes_Failure_ReasonByTag[$_whichOneof(0)]!;
+ BlocksQueryStreamRes_Failure_Reason whichReason() => _BlocksQueryStreamRes_Failure_ReasonByTag[$_whichOneof(0)]!;
void clearReason() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -1224,36 +1049,27 @@ class BlocksQueryStreamRes_Failure extends $pb.GeneratedMessage {
enum BlocksQueryStreamRes_Result { block, failure, notSet }
class BlocksQueryStreamRes extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlocksQueryStreamRes_Result>
- _BlocksQueryStreamRes_ResultByTag = {
+ static const $core.Map<$core.int, BlocksQueryStreamRes_Result> _BlocksQueryStreamRes_ResultByTag = {
1: BlocksQueryStreamRes_Result.block,
2: BlocksQueryStreamRes_Result.failure,
0: BlocksQueryStreamRes_Result.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlocksQueryStreamRes',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlocksQueryStreamRes',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2])
..aOM<$6.Block>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'block',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'block',
subBuilder: $6.Block.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'failure',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'failure',
subBuilder: BlocksQueryStreamRes_Failure.create,
)
..hasRequiredFields = false;
@@ -1277,16 +1093,14 @@ class BlocksQueryStreamRes extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlocksQueryStreamRes.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlocksQueryStreamRes.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlocksQueryStreamRes clone() =>
- BlocksQueryStreamRes()..mergeFromMessage(this);
+ BlocksQueryStreamRes clone() => BlocksQueryStreamRes()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
@@ -1299,15 +1113,13 @@ class BlocksQueryStreamRes extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static BlocksQueryStreamRes create() => BlocksQueryStreamRes._();
BlocksQueryStreamRes createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlocksQueryStreamRes getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlocksQueryStreamRes getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlocksQueryStreamRes? _defaultInstance;
- BlocksQueryStreamRes_Result whichResult() =>
- _BlocksQueryStreamRes_ResultByTag[$_whichOneof(0)]!;
+ BlocksQueryStreamRes_Result whichResult() => _BlocksQueryStreamRes_ResultByTag[$_whichOneof(0)]!;
void clearResult() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
diff --git a/lib/genus/generated/blocks_query.pbgrpc.dart b/lib/genus/generated/blocks_query.pbgrpc.dart
index 17a81ce9..9ad16816 100644
--- a/lib/genus/generated/blocks_query.pbgrpc.dart
+++ b/lib/genus/generated/blocks_query.pbgrpc.dart
@@ -18,14 +18,12 @@ import 'blocks_query.pb.dart' as $1;
export 'blocks_query.pb.dart';
class BlocksQueryClient extends $grpc.Client {
- static final _$query =
- $grpc.ClientMethod<$1.QueryBlocksReq, $1.QueryBlocksRes>(
+ static final _$query = $grpc.ClientMethod<$1.QueryBlocksReq, $1.QueryBlocksRes>(
'/co.topl.genus.services.BlocksQuery/Query',
($1.QueryBlocksReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $1.QueryBlocksRes.fromBuffer(value),
);
- static final _$queryStream =
- $grpc.ClientMethod<$1.BlocksQueryStreamReq, $1.BlocksQueryStreamRes>(
+ static final _$queryStream = $grpc.ClientMethod<$1.BlocksQueryStreamReq, $1.BlocksQueryStreamRes>(
'/co.topl.genus.services.BlocksQuery/QueryStream',
($1.BlocksQueryStreamReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $1.BlocksQueryStreamRes.fromBuffer(value),
@@ -76,8 +74,7 @@ abstract class BlocksQueryServiceBase extends $grpc.Service {
queryStream_Pre,
false,
true,
- ($core.List<$core.int> value) =>
- $1.BlocksQueryStreamReq.fromBuffer(value),
+ ($core.List<$core.int> value) => $1.BlocksQueryStreamReq.fromBuffer(value),
($1.BlocksQueryStreamRes value) => value.writeToBuffer(),
),
);
diff --git a/lib/genus/generated/blocks_query.pbjson.dart b/lib/genus/generated/blocks_query.pbjson.dart
index 9abd574f..ca4ae191 100644
--- a/lib/genus/generated/blocks_query.pbjson.dart
+++ b/lib/genus/generated/blocks_query.pbjson.dart
@@ -101,29 +101,9 @@ final $typed_data.Uint8List blockSortingDescriptor = $convert.base64Decode(
const QueryBlocksReq$json = const {
'1': 'QueryBlocksReq',
'2': const [
- const {
- '1': 'filter',
- '3': 1,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.BlockFilter',
- '10': 'filter'
- },
- const {
- '1': 'sorting',
- '3': 2,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.services.BlockSorting',
- '10': 'sorting'
- },
- const {
- '1': 'confirmation_depth',
- '3': 3,
- '4': 1,
- '5': 13,
- '10': 'confirmationDepth'
- },
+ const {'1': 'filter', '3': 1, '4': 1, '5': 11, '6': '.co.topl.genus.BlockFilter', '10': 'filter'},
+ const {'1': 'sorting', '3': 2, '4': 1, '5': 11, '6': '.co.topl.genus.services.BlockSorting', '10': 'sorting'},
+ const {'1': 'confirmation_depth', '3': 3, '4': 1, '5': 13, '10': 'confirmationDepth'},
const {
'1': 'paging_options',
'3': 4,
@@ -171,14 +151,7 @@ const QueryBlocksRes$json = const {
const QueryBlocksRes_Success$json = const {
'1': 'Success',
'2': const [
- const {
- '1': 'blocks',
- '3': 1,
- '4': 3,
- '5': 11,
- '6': '.co.topl.genus.Block',
- '10': 'blocks'
- },
+ const {'1': 'blocks', '3': 1, '4': 3, '5': 11, '6': '.co.topl.genus.Block', '10': 'blocks'},
],
};
@@ -186,30 +159,9 @@ const QueryBlocksRes_Success$json = const {
const QueryBlocksRes_Failure$json = const {
'1': 'Failure',
'2': const [
- const {
- '1': 'data_store_connection_error',
- '3': 1,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'dataStoreConnectionError'
- },
- const {
- '1': 'query_timeout',
- '3': 2,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'queryTimeout'
- },
- const {
- '1': 'invalid_query',
- '3': 3,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'invalidQuery'
- },
+ const {'1': 'data_store_connection_error', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'dataStoreConnectionError'},
+ const {'1': 'query_timeout', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'queryTimeout'},
+ const {'1': 'invalid_query', '3': 3, '4': 1, '5': 9, '9': 0, '10': 'invalidQuery'},
],
'8': const [
const {'1': 'reason'},
@@ -223,29 +175,9 @@ final $typed_data.Uint8List queryBlocksResDescriptor = $convert.base64Decode(
const BlocksQueryStreamReq$json = const {
'1': 'BlocksQueryStreamReq',
'2': const [
- const {
- '1': 'filter',
- '3': 1,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.BlockFilter',
- '10': 'filter'
- },
- const {
- '1': 'sorting',
- '3': 2,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.services.BlockSorting',
- '10': 'sorting'
- },
- const {
- '1': 'confirmation_depth',
- '3': 3,
- '4': 1,
- '5': 13,
- '10': 'confirmationDepth'
- },
+ const {'1': 'filter', '3': 1, '4': 1, '5': 11, '6': '.co.topl.genus.BlockFilter', '10': 'filter'},
+ const {'1': 'sorting', '3': 2, '4': 1, '5': 11, '6': '.co.topl.genus.services.BlockSorting', '10': 'sorting'},
+ const {'1': 'confirmation_depth', '3': 3, '4': 1, '5': 13, '10': 'confirmationDepth'},
],
};
@@ -256,15 +188,7 @@ final $typed_data.Uint8List blocksQueryStreamReqDescriptor = $convert.base64Deco
const BlocksQueryStreamRes$json = const {
'1': 'BlocksQueryStreamRes',
'2': const [
- const {
- '1': 'block',
- '3': 1,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.Block',
- '9': 0,
- '10': 'block'
- },
+ const {'1': 'block', '3': 1, '4': 1, '5': 11, '6': '.co.topl.genus.Block', '9': 0, '10': 'block'},
const {
'1': 'failure',
'3': 2,
@@ -285,22 +209,8 @@ const BlocksQueryStreamRes$json = const {
const BlocksQueryStreamRes_Failure$json = const {
'1': 'Failure',
'2': const [
- const {
- '1': 'data_store_connection_error',
- '3': 1,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'dataStoreConnectionError'
- },
- const {
- '1': 'invalid_query',
- '3': 2,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'invalidQuery'
- },
+ const {'1': 'data_store_connection_error', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'dataStoreConnectionError'},
+ const {'1': 'invalid_query', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'invalidQuery'},
],
'8': const [
const {'1': 'reason'},
diff --git a/lib/genus/generated/blocks_subscription.pb.dart b/lib/genus/generated/blocks_subscription.pb.dart
index ca911396..5dba10b9 100644
--- a/lib/genus/generated/blocks_subscription.pb.dart
+++ b/lib/genus/generated/blocks_subscription.pb.dart
@@ -18,35 +18,25 @@ import 'types.pb.dart' as $6;
class CreateBlocksSubscriptionReq extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'CreateBlocksSubscriptionReq',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'CreateBlocksSubscriptionReq',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..aOM<$4.BlockFilter>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter',
subBuilder: $4.BlockFilter.create,
)
..a<$core.int>(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'confirmationDepth',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'confirmationDepth',
$pb.PbFieldType.OU3,
)
..a<$fixnum.Int64>(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'startHeight',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startHeight',
$pb.PbFieldType.OU6,
defaultOrMaker: $fixnum.Int64.ZERO,
)
@@ -85,28 +75,23 @@ class CreateBlocksSubscriptionReq extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- CreateBlocksSubscriptionReq clone() =>
- CreateBlocksSubscriptionReq()..mergeFromMessage(this);
+ CreateBlocksSubscriptionReq clone() => CreateBlocksSubscriptionReq()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- CreateBlocksSubscriptionReq copyWith(
- void Function(CreateBlocksSubscriptionReq) updates) =>
- super.copyWith(
- (message) => updates(message as CreateBlocksSubscriptionReq))
+ CreateBlocksSubscriptionReq copyWith(void Function(CreateBlocksSubscriptionReq) updates) =>
+ super.copyWith((message) => updates(message as CreateBlocksSubscriptionReq))
as CreateBlocksSubscriptionReq; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static CreateBlocksSubscriptionReq create() =>
- CreateBlocksSubscriptionReq._();
+ static CreateBlocksSubscriptionReq create() => CreateBlocksSubscriptionReq._();
CreateBlocksSubscriptionReq createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static CreateBlocksSubscriptionReq getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static CreateBlocksSubscriptionReq getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static CreateBlocksSubscriptionReq? _defaultInstance;
@$pb.TagNumber(1)
@@ -148,41 +133,24 @@ class CreateBlocksSubscriptionReq extends $pb.GeneratedMessage {
void clearStartHeight() => clearField(3);
}
-enum BlocksSubscriptionRes_Failure_Reason {
- invalidRequest,
- dataConnectionError,
- notSet
-}
+enum BlocksSubscriptionRes_Failure_Reason { invalidRequest, dataConnectionError, notSet }
class BlocksSubscriptionRes_Failure extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlocksSubscriptionRes_Failure_Reason>
- _BlocksSubscriptionRes_Failure_ReasonByTag = {
+ static const $core.Map<$core.int, BlocksSubscriptionRes_Failure_Reason> _BlocksSubscriptionRes_Failure_ReasonByTag = {
1: BlocksSubscriptionRes_Failure_Reason.invalidRequest,
2: BlocksSubscriptionRes_Failure_Reason.dataConnectionError,
0: BlocksSubscriptionRes_Failure_Reason.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlocksSubscriptionRes.Failure',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlocksSubscriptionRes.Failure',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2])
- ..aOS(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'invalidRequest')
- ..aOS(
- 2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'dataConnectionError')
+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'invalidRequest')
+ ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dataConnectionError')
..hasRequiredFields = false;
BlocksSubscriptionRes_Failure._() : super();
@@ -214,32 +182,26 @@ class BlocksSubscriptionRes_Failure extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlocksSubscriptionRes_Failure clone() =>
- BlocksSubscriptionRes_Failure()..mergeFromMessage(this);
+ BlocksSubscriptionRes_Failure clone() => BlocksSubscriptionRes_Failure()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlocksSubscriptionRes_Failure copyWith(
- void Function(BlocksSubscriptionRes_Failure) updates) =>
- super.copyWith(
- (message) => updates(message as BlocksSubscriptionRes_Failure))
+ BlocksSubscriptionRes_Failure copyWith(void Function(BlocksSubscriptionRes_Failure) updates) =>
+ super.copyWith((message) => updates(message as BlocksSubscriptionRes_Failure))
as BlocksSubscriptionRes_Failure; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static BlocksSubscriptionRes_Failure create() =>
- BlocksSubscriptionRes_Failure._();
+ static BlocksSubscriptionRes_Failure create() => BlocksSubscriptionRes_Failure._();
BlocksSubscriptionRes_Failure createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlocksSubscriptionRes_Failure getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlocksSubscriptionRes_Failure getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlocksSubscriptionRes_Failure? _defaultInstance;
- BlocksSubscriptionRes_Failure_Reason whichReason() =>
- _BlocksSubscriptionRes_Failure_ReasonByTag[$_whichOneof(0)]!;
+ BlocksSubscriptionRes_Failure_Reason whichReason() => _BlocksSubscriptionRes_Failure_ReasonByTag[$_whichOneof(0)]!;
void clearReason() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -270,36 +232,27 @@ class BlocksSubscriptionRes_Failure extends $pb.GeneratedMessage {
enum BlocksSubscriptionRes_Result { success, failure, notSet }
class BlocksSubscriptionRes extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlocksSubscriptionRes_Result>
- _BlocksSubscriptionRes_ResultByTag = {
+ static const $core.Map<$core.int, BlocksSubscriptionRes_Result> _BlocksSubscriptionRes_ResultByTag = {
1: BlocksSubscriptionRes_Result.success,
2: BlocksSubscriptionRes_Result.failure,
0: BlocksSubscriptionRes_Result.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlocksSubscriptionRes',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlocksSubscriptionRes',
package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus.services',
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus.services',
),
createEmptyInstance: create,
)
..oo(0, [1, 2])
..aOM<$6.Block>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'success',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'success',
subBuilder: $6.Block.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'failure',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'failure',
subBuilder: BlocksSubscriptionRes_Failure.create,
)
..hasRequiredFields = false;
@@ -323,38 +276,33 @@ class BlocksSubscriptionRes extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlocksSubscriptionRes.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlocksSubscriptionRes.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlocksSubscriptionRes clone() =>
- BlocksSubscriptionRes()..mergeFromMessage(this);
+ BlocksSubscriptionRes clone() => BlocksSubscriptionRes()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlocksSubscriptionRes copyWith(
- void Function(BlocksSubscriptionRes) updates) =>
+ BlocksSubscriptionRes copyWith(void Function(BlocksSubscriptionRes) updates) =>
super.copyWith((message) => updates(message as BlocksSubscriptionRes))
as BlocksSubscriptionRes; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlocksSubscriptionRes create() => BlocksSubscriptionRes._();
BlocksSubscriptionRes createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlocksSubscriptionRes getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlocksSubscriptionRes getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlocksSubscriptionRes? _defaultInstance;
- BlocksSubscriptionRes_Result whichResult() =>
- _BlocksSubscriptionRes_ResultByTag[$_whichOneof(0)]!;
+ BlocksSubscriptionRes_Result whichResult() => _BlocksSubscriptionRes_ResultByTag[$_whichOneof(0)]!;
void clearResult() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
diff --git a/lib/genus/generated/blocks_subscription.pbgrpc.dart b/lib/genus/generated/blocks_subscription.pbgrpc.dart
index 9d7c3891..6ea65635 100644
--- a/lib/genus/generated/blocks_subscription.pbgrpc.dart
+++ b/lib/genus/generated/blocks_subscription.pbgrpc.dart
@@ -18,8 +18,7 @@ import 'blocks_subscription.pb.dart' as $3;
export 'blocks_subscription.pb.dart';
class BlocksSubscriptionClient extends $grpc.Client {
- static final _$create = $grpc.ClientMethod<$3.CreateBlocksSubscriptionReq,
- $3.BlocksSubscriptionRes>(
+ static final _$create = $grpc.ClientMethod<$3.CreateBlocksSubscriptionReq, $3.BlocksSubscriptionRes>(
'/co.topl.genus.services.BlocksSubscription/Create',
($3.CreateBlocksSubscriptionReq value) => value.writeToBuffer(),
($core.List<$core.int> value) => $3.BlocksSubscriptionRes.fromBuffer(value),
@@ -48,14 +47,12 @@ abstract class BlocksSubscriptionServiceBase extends $grpc.Service {
BlocksSubscriptionServiceBase() {
$addMethod(
- $grpc.ServiceMethod<$3.CreateBlocksSubscriptionReq,
- $3.BlocksSubscriptionRes>(
+ $grpc.ServiceMethod<$3.CreateBlocksSubscriptionReq, $3.BlocksSubscriptionRes>(
'Create',
create_Pre,
false,
true,
- ($core.List<$core.int> value) =>
- $3.CreateBlocksSubscriptionReq.fromBuffer(value),
+ ($core.List<$core.int> value) => $3.CreateBlocksSubscriptionReq.fromBuffer(value),
($3.BlocksSubscriptionRes value) => value.writeToBuffer(),
),
);
diff --git a/lib/genus/generated/blocks_subscription.pbjson.dart b/lib/genus/generated/blocks_subscription.pbjson.dart
index ca0d1d77..c3f07fe8 100644
--- a/lib/genus/generated/blocks_subscription.pbjson.dart
+++ b/lib/genus/generated/blocks_subscription.pbjson.dart
@@ -14,42 +14,20 @@ import 'dart:typed_data' as $typed_data;
const CreateBlocksSubscriptionReq$json = const {
'1': 'CreateBlocksSubscriptionReq',
'2': const [
- const {
- '1': 'filter',
- '3': 1,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.BlockFilter',
- '10': 'filter'
- },
- const {
- '1': 'confirmation_depth',
- '3': 2,
- '4': 1,
- '5': 13,
- '10': 'confirmationDepth'
- },
+ const {'1': 'filter', '3': 1, '4': 1, '5': 11, '6': '.co.topl.genus.BlockFilter', '10': 'filter'},
+ const {'1': 'confirmation_depth', '3': 2, '4': 1, '5': 13, '10': 'confirmationDepth'},
const {'1': 'start_height', '3': 3, '4': 1, '5': 4, '10': 'startHeight'},
],
};
/// Descriptor for `CreateBlocksSubscriptionReq`. Decode as a `google.protobuf.DescriptorProto`.
-final $typed_data.Uint8List createBlocksSubscriptionReqDescriptor =
- $convert.base64Decode(
- 'ChtDcmVhdGVCbG9ja3NTdWJzY3JpcHRpb25SZXESMgoGZmlsdGVyGAEgASgLMhouY28udG9wbC5nZW51cy5CbG9ja0ZpbHRlclIGZmlsdGVyEi0KEmNvbmZpcm1hdGlvbl9kZXB0aBgCIAEoDVIRY29uZmlybWF0aW9uRGVwdGgSIQoMc3RhcnRfaGVpZ2h0GAMgASgEUgtzdGFydEhlaWdodA==');
+final $typed_data.Uint8List createBlocksSubscriptionReqDescriptor = $convert.base64Decode(
+ 'ChtDcmVhdGVCbG9ja3NTdWJzY3JpcHRpb25SZXESMgoGZmlsdGVyGAEgASgLMhouY28udG9wbC5nZW51cy5CbG9ja0ZpbHRlclIGZmlsdGVyEi0KEmNvbmZpcm1hdGlvbl9kZXB0aBgCIAEoDVIRY29uZmlybWF0aW9uRGVwdGgSIQoMc3RhcnRfaGVpZ2h0GAMgASgEUgtzdGFydEhlaWdodA==');
@$core.Deprecated('Use blocksSubscriptionResDescriptor instead')
const BlocksSubscriptionRes$json = const {
'1': 'BlocksSubscriptionRes',
'2': const [
- const {
- '1': 'success',
- '3': 1,
- '4': 1,
- '5': 11,
- '6': '.co.topl.genus.Block',
- '9': 0,
- '10': 'success'
- },
+ const {'1': 'success', '3': 1, '4': 1, '5': 11, '6': '.co.topl.genus.Block', '9': 0, '10': 'success'},
const {
'1': 'failure',
'3': 2,
@@ -70,22 +48,8 @@ const BlocksSubscriptionRes$json = const {
const BlocksSubscriptionRes_Failure$json = const {
'1': 'Failure',
'2': const [
- const {
- '1': 'invalid_request',
- '3': 1,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'invalidRequest'
- },
- const {
- '1': 'data_connection_error',
- '3': 2,
- '4': 1,
- '5': 9,
- '9': 0,
- '10': 'dataConnectionError'
- },
+ const {'1': 'invalid_request', '3': 1, '4': 1, '5': 9, '9': 0, '10': 'invalidRequest'},
+ const {'1': 'data_connection_error', '3': 2, '4': 1, '5': 9, '9': 0, '10': 'dataConnectionError'},
],
'8': const [
const {'1': 'reason'},
diff --git a/lib/genus/generated/filters.pb.dart b/lib/genus/generated/filters.pb.dart
index f3b57d43..ba16faf2 100644
--- a/lib/genus/generated/filters.pb.dart
+++ b/lib/genus/generated/filters.pb.dart
@@ -14,20 +14,12 @@ import 'package:protobuf/protobuf.dart' as $pb;
class StringSelection extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'StringSelection',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'StringSelection',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
- ..pPS(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'values')
+ ..pPS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values')
..hasRequiredFields = false;
StringSelection._() : super();
@@ -45,8 +37,7 @@ class StringSelection extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory StringSelection.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory StringSelection.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -66,11 +57,10 @@ class StringSelection extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static StringSelection create() => StringSelection._();
StringSelection createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static StringSelection getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static StringSelection getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static StringSelection? _defaultInstance;
@$pb.TagNumber(1)
@@ -80,36 +70,27 @@ class StringSelection extends $pb.GeneratedMessage {
enum NumberRange_FilterType { min, max, notSet }
class NumberRange extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, NumberRange_FilterType>
- _NumberRange_FilterTypeByTag = {
+ static const $core.Map<$core.int, NumberRange_FilterType> _NumberRange_FilterTypeByTag = {
1: NumberRange_FilterType.min,
2: NumberRange_FilterType.max,
0: NumberRange_FilterType.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'NumberRange',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'NumberRange',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..oo(0, [1, 2])
..a<$fixnum.Int64>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'min',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'min',
$pb.PbFieldType.OU6,
defaultOrMaker: $fixnum.Int64.ZERO,
)
..a<$fixnum.Int64>(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'max',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'max',
$pb.PbFieldType.OU6,
defaultOrMaker: $fixnum.Int64.ZERO,
)
@@ -129,11 +110,9 @@ class NumberRange extends $pb.GeneratedMessage {
}
return _result;
}
- factory NumberRange.fromBuffer($core.List<$core.int> i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory NumberRange.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromBuffer(i, r);
- factory NumberRange.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory NumberRange.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -147,20 +126,17 @@ class NumberRange extends $pb.GeneratedMessage {
'Will be removed in next major version',
)
NumberRange copyWith(void Function(NumberRange) updates) =>
- super.copyWith((message) => updates(message as NumberRange))
- as NumberRange; // ignore: deprecated_member_use
+ super.copyWith((message) => updates(message as NumberRange)) as NumberRange; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static NumberRange create() => NumberRange._();
NumberRange createEmptyInstance() => create();
static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static NumberRange getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static NumberRange getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static NumberRange? _defaultInstance;
- NumberRange_FilterType whichFilterType() =>
- _NumberRange_FilterTypeByTag[$_whichOneof(0)]!;
+ NumberRange_FilterType whichFilterType() => _NumberRange_FilterTypeByTag[$_whichOneof(0)]!;
void clearFilterType() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -190,20 +166,14 @@ class NumberRange extends $pb.GeneratedMessage {
class NumberSelection extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'NumberSelection',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'NumberSelection',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..p<$fixnum.Int64>(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'values',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'values',
$pb.PbFieldType.KU6,
)
..hasRequiredFields = false;
@@ -223,8 +193,7 @@ class NumberSelection extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory NumberSelection.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory NumberSelection.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -244,11 +213,10 @@ class NumberSelection extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static NumberSelection create() => NumberSelection._();
NumberSelection createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static NumberSelection getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static NumberSelection getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static NumberSelection? _defaultInstance;
@$pb.TagNumber(1)
@@ -257,20 +225,12 @@ class NumberSelection extends $pb.GeneratedMessage {
class BooleanSelection extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BooleanSelection',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BooleanSelection',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
- ..aOB(
- 1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'value')
+ ..aOB(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value')
..hasRequiredFields = false;
BooleanSelection._() : super();
@@ -288,8 +248,7 @@ class BooleanSelection extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BooleanSelection.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BooleanSelection.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -309,11 +268,10 @@ class BooleanSelection extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static BooleanSelection create() => BooleanSelection._();
BooleanSelection createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BooleanSelection getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BooleanSelection getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BooleanSelection? _defaultInstance;
@$pb.TagNumber(1)
@@ -329,51 +287,35 @@ class BooleanSelection extends $pb.GeneratedMessage {
void clearValue() => clearField(1);
}
-enum TokenValueFilter_FilterType {
- assetCodeSelection,
- quantityRange,
- tokenValueTypeSelection,
- notSet
-}
+enum TokenValueFilter_FilterType { assetCodeSelection, quantityRange, tokenValueTypeSelection, notSet }
class TokenValueFilter extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, TokenValueFilter_FilterType>
- _TokenValueFilter_FilterTypeByTag = {
+ static const $core.Map<$core.int, TokenValueFilter_FilterType> _TokenValueFilter_FilterTypeByTag = {
1: TokenValueFilter_FilterType.assetCodeSelection,
2: TokenValueFilter_FilterType.quantityRange,
3: TokenValueFilter_FilterType.tokenValueTypeSelection,
0: TokenValueFilter_FilterType.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TokenValueFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TokenValueFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..oo(0, [1, 2, 3])
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'assetCodeSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'assetCodeSelection',
subBuilder: StringSelection.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'quantityRange',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'quantityRange',
subBuilder: NumberRange.create,
)
..aOM(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'tokenValueTypeSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'tokenValueTypeSelection',
subBuilder: StringSelection.create,
)
..hasRequiredFields = false;
@@ -401,8 +343,7 @@ class TokenValueFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory TokenValueFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory TokenValueFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -422,15 +363,13 @@ class TokenValueFilter extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static TokenValueFilter create() => TokenValueFilter._();
TokenValueFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TokenValueFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TokenValueFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TokenValueFilter? _defaultInstance;
- TokenValueFilter_FilterType whichFilterType() =>
- _TokenValueFilter_FilterTypeByTag[$_whichOneof(0)]!;
+ TokenValueFilter_FilterType whichFilterType() => _TokenValueFilter_FilterTypeByTag[$_whichOneof(0)]!;
void clearFilterType() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -478,20 +417,14 @@ class TokenValueFilter extends $pb.GeneratedMessage {
class TransactionFilter_AndFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TransactionFilter.AndFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TransactionFilter.AndFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..pc(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filters',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters',
$pb.PbFieldType.PM,
subBuilder: TransactionFilter.create,
)
@@ -522,28 +455,23 @@ class TransactionFilter_AndFilter extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- TransactionFilter_AndFilter clone() =>
- TransactionFilter_AndFilter()..mergeFromMessage(this);
+ TransactionFilter_AndFilter clone() => TransactionFilter_AndFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- TransactionFilter_AndFilter copyWith(
- void Function(TransactionFilter_AndFilter) updates) =>
- super.copyWith(
- (message) => updates(message as TransactionFilter_AndFilter))
+ TransactionFilter_AndFilter copyWith(void Function(TransactionFilter_AndFilter) updates) =>
+ super.copyWith((message) => updates(message as TransactionFilter_AndFilter))
as TransactionFilter_AndFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static TransactionFilter_AndFilter create() =>
- TransactionFilter_AndFilter._();
+ static TransactionFilter_AndFilter create() => TransactionFilter_AndFilter._();
TransactionFilter_AndFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TransactionFilter_AndFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TransactionFilter_AndFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TransactionFilter_AndFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -552,20 +480,14 @@ class TransactionFilter_AndFilter extends $pb.GeneratedMessage {
class TransactionFilter_OrFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TransactionFilter.OrFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TransactionFilter.OrFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..pc(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filters',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters',
$pb.PbFieldType.PM,
subBuilder: TransactionFilter.create,
)
@@ -596,27 +518,23 @@ class TransactionFilter_OrFilter extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- TransactionFilter_OrFilter clone() =>
- TransactionFilter_OrFilter()..mergeFromMessage(this);
+ TransactionFilter_OrFilter clone() => TransactionFilter_OrFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- TransactionFilter_OrFilter copyWith(
- void Function(TransactionFilter_OrFilter) updates) =>
- super.copyWith(
- (message) => updates(message as TransactionFilter_OrFilter))
+ TransactionFilter_OrFilter copyWith(void Function(TransactionFilter_OrFilter) updates) =>
+ super.copyWith((message) => updates(message as TransactionFilter_OrFilter))
as TransactionFilter_OrFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static TransactionFilter_OrFilter create() => TransactionFilter_OrFilter._();
TransactionFilter_OrFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TransactionFilter_OrFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TransactionFilter_OrFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TransactionFilter_OrFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -625,20 +543,14 @@ class TransactionFilter_OrFilter extends $pb.GeneratedMessage {
class TransactionFilter_NotFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TransactionFilter.NotFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TransactionFilter.NotFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter',
subBuilder: TransactionFilter.create,
)
..hasRequiredFields = false;
@@ -668,28 +580,23 @@ class TransactionFilter_NotFilter extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- TransactionFilter_NotFilter clone() =>
- TransactionFilter_NotFilter()..mergeFromMessage(this);
+ TransactionFilter_NotFilter clone() => TransactionFilter_NotFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- TransactionFilter_NotFilter copyWith(
- void Function(TransactionFilter_NotFilter) updates) =>
- super.copyWith(
- (message) => updates(message as TransactionFilter_NotFilter))
+ TransactionFilter_NotFilter copyWith(void Function(TransactionFilter_NotFilter) updates) =>
+ super.copyWith((message) => updates(message as TransactionFilter_NotFilter))
as TransactionFilter_NotFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static TransactionFilter_NotFilter create() =>
- TransactionFilter_NotFilter._();
+ static TransactionFilter_NotFilter create() => TransactionFilter_NotFilter._();
TransactionFilter_NotFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TransactionFilter_NotFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TransactionFilter_NotFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TransactionFilter_NotFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -709,13 +616,9 @@ class TransactionFilter_NotFilter extends $pb.GeneratedMessage {
class TransactionFilter_AllFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TransactionFilter.AllFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TransactionFilter.AllFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)..hasRequiredFields = false;
@@ -736,28 +639,23 @@ class TransactionFilter_AllFilter extends $pb.GeneratedMessage {
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- TransactionFilter_AllFilter clone() =>
- TransactionFilter_AllFilter()..mergeFromMessage(this);
+ TransactionFilter_AllFilter clone() => TransactionFilter_AllFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- TransactionFilter_AllFilter copyWith(
- void Function(TransactionFilter_AllFilter) updates) =>
- super.copyWith(
- (message) => updates(message as TransactionFilter_AllFilter))
+ TransactionFilter_AllFilter copyWith(void Function(TransactionFilter_AllFilter) updates) =>
+ super.copyWith((message) => updates(message as TransactionFilter_AllFilter))
as TransactionFilter_AllFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
- static TransactionFilter_AllFilter create() =>
- TransactionFilter_AllFilter._();
+ static TransactionFilter_AllFilter create() => TransactionFilter_AllFilter._();
TransactionFilter_AllFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TransactionFilter_AllFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TransactionFilter_AllFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TransactionFilter_AllFilter? _defaultInstance;
}
@@ -784,8 +682,7 @@ enum TransactionFilter_FilterType {
}
class TransactionFilter extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, TransactionFilter_FilterType>
- _TransactionFilter_FilterTypeByTag = {
+ static const $core.Map<$core.int, TransactionFilter_FilterType> _TransactionFilter_FilterTypeByTag = {
1: TransactionFilter_FilterType.txTypeSelection,
2: TransactionFilter_FilterType.timestampRange,
3: TransactionFilter_FilterType.inputAddressSelection,
@@ -807,119 +704,85 @@ class TransactionFilter extends $pb.GeneratedMessage {
0: TransactionFilter_FilterType.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'TransactionFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'TransactionFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18])
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'txTypeSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'txTypeSelection',
subBuilder: StringSelection.create,
)
..aOM(
2,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'timestampRange',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'timestampRange',
subBuilder: NumberRange.create,
)
..aOM(
3,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'inputAddressSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inputAddressSelection',
subBuilder: StringSelection.create,
)
..aOM(
4,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'inputNonceSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'inputNonceSelection',
subBuilder: NumberSelection.create,
)
..aOM(
5,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'outputTokenBoxTypeSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputTokenBoxTypeSelection',
subBuilder: StringSelection.create,
)
..aOM(
6,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'outputTokenValueFilter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputTokenValueFilter',
subBuilder: TokenValueFilter.create,
)
..aOM(
7,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'outputAddressSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputAddressSelection',
subBuilder: StringSelection.create,
)
..aOM(
8,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'mintingSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mintingSelection',
subBuilder: BooleanSelection.create,
)
..aOM(
9,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'txIdSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'txIdSelection',
subBuilder: StringSelection.create,
)
..aOM(
10,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'boxesToRemoveSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'boxesToRemoveSelection',
subBuilder: StringSelection.create,
)
..aOM(
11,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'feeRange',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'feeRange',
subBuilder: NumberRange.create,
)
..aOM(
12,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'propositionSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'propositionSelection',
subBuilder: StringSelection.create,
)
..aOM(
13,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'blockIdSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blockIdSelection',
subBuilder: StringSelection.create,
)
..aOM(
14,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'blockHeightRange',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'blockHeightRange',
subBuilder: NumberRange.create,
)
..aOM(
15,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'and',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'and',
subBuilder: TransactionFilter_AndFilter.create,
)
..aOM(
@@ -929,16 +792,12 @@ class TransactionFilter extends $pb.GeneratedMessage {
)
..aOM(
17,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'not',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'not',
subBuilder: TransactionFilter_NotFilter.create,
)
..aOM(
18,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'all',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'all',
subBuilder: TransactionFilter_AllFilter.create,
)
..hasRequiredFields = false;
@@ -1026,8 +885,7 @@ class TransactionFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory TransactionFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory TransactionFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
@@ -1047,15 +905,13 @@ class TransactionFilter extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static TransactionFilter create() => TransactionFilter._();
TransactionFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static TransactionFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static TransactionFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static TransactionFilter? _defaultInstance;
- TransactionFilter_FilterType whichFilterType() =>
- _TransactionFilter_FilterTypeByTag[$_whichOneof(0)]!;
+ TransactionFilter_FilterType whichFilterType() => _TransactionFilter_FilterTypeByTag[$_whichOneof(0)]!;
void clearFilterType() => clearField($_whichOneof(0));
@$pb.TagNumber(1)
@@ -1313,20 +1169,14 @@ class TransactionFilter extends $pb.GeneratedMessage {
class BlockFilter_AndFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockFilter.AndFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockFilter.AndFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..pc(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filters',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters',
$pb.PbFieldType.PM,
subBuilder: BlockFilter.create,
)
@@ -1347,34 +1197,30 @@ class BlockFilter_AndFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockFilter_AndFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockFilter_AndFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockFilter_AndFilter clone() =>
- BlockFilter_AndFilter()..mergeFromMessage(this);
+ BlockFilter_AndFilter clone() => BlockFilter_AndFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockFilter_AndFilter copyWith(
- void Function(BlockFilter_AndFilter) updates) =>
+ BlockFilter_AndFilter copyWith(void Function(BlockFilter_AndFilter) updates) =>
super.copyWith((message) => updates(message as BlockFilter_AndFilter))
as BlockFilter_AndFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockFilter_AndFilter create() => BlockFilter_AndFilter._();
BlockFilter_AndFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockFilter_AndFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockFilter_AndFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockFilter_AndFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -1383,20 +1229,14 @@ class BlockFilter_AndFilter extends $pb.GeneratedMessage {
class BlockFilter_OrFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockFilter.OrFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockFilter.OrFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..pc(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filters',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filters',
$pb.PbFieldType.PM,
subBuilder: BlockFilter.create,
)
@@ -1417,16 +1257,14 @@ class BlockFilter_OrFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockFilter_OrFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockFilter_OrFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockFilter_OrFilter clone() =>
- BlockFilter_OrFilter()..mergeFromMessage(this);
+ BlockFilter_OrFilter clone() => BlockFilter_OrFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
@@ -1439,11 +1277,10 @@ class BlockFilter_OrFilter extends $pb.GeneratedMessage {
@$core.pragma('dart2js:noInline')
static BlockFilter_OrFilter create() => BlockFilter_OrFilter._();
BlockFilter_OrFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockFilter_OrFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockFilter_OrFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockFilter_OrFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -1452,20 +1289,14 @@ class BlockFilter_OrFilter extends $pb.GeneratedMessage {
class BlockFilter_NotFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockFilter.NotFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockFilter.NotFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'filter',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'filter',
subBuilder: BlockFilter.create,
)
..hasRequiredFields = false;
@@ -1485,34 +1316,30 @@ class BlockFilter_NotFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockFilter_NotFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockFilter_NotFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockFilter_NotFilter clone() =>
- BlockFilter_NotFilter()..mergeFromMessage(this);
+ BlockFilter_NotFilter clone() => BlockFilter_NotFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockFilter_NotFilter copyWith(
- void Function(BlockFilter_NotFilter) updates) =>
+ BlockFilter_NotFilter copyWith(void Function(BlockFilter_NotFilter) updates) =>
super.copyWith((message) => updates(message as BlockFilter_NotFilter))
as BlockFilter_NotFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockFilter_NotFilter create() => BlockFilter_NotFilter._();
BlockFilter_NotFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockFilter_NotFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockFilter_NotFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockFilter_NotFilter? _defaultInstance;
@$pb.TagNumber(1)
@@ -1532,13 +1359,9 @@ class BlockFilter_NotFilter extends $pb.GeneratedMessage {
class BlockFilter_AllFilter extends $pb.GeneratedMessage {
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockFilter.AllFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockFilter.AllFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)..hasRequiredFields = false;
@@ -1549,34 +1372,30 @@ class BlockFilter_AllFilter extends $pb.GeneratedMessage {
$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY,
]) =>
create()..mergeFromBuffer(i, r);
- factory BlockFilter_AllFilter.fromJson($core.String i,
- [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
+ factory BlockFilter_AllFilter.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) =>
create()..mergeFromJson(i, r);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version',
)
- BlockFilter_AllFilter clone() =>
- BlockFilter_AllFilter()..mergeFromMessage(this);
+ BlockFilter_AllFilter clone() => BlockFilter_AllFilter()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version',
)
- BlockFilter_AllFilter copyWith(
- void Function(BlockFilter_AllFilter) updates) =>
+ BlockFilter_AllFilter copyWith(void Function(BlockFilter_AllFilter) updates) =>
super.copyWith((message) => updates(message as BlockFilter_AllFilter))
as BlockFilter_AllFilter; // ignore: deprecated_member_use
$pb.BuilderInfo get info_ => _i;
@$core.pragma('dart2js:noInline')
static BlockFilter_AllFilter create() => BlockFilter_AllFilter._();
BlockFilter_AllFilter createEmptyInstance() => create();
- static $pb.PbList createRepeated() =>
- $pb.PbList();
+ static $pb.PbList createRepeated() => $pb.PbList();
@$core.pragma('dart2js:noInline')
- static BlockFilter_AllFilter getDefault() => _defaultInstance ??=
- $pb.GeneratedMessage.$_defaultFor(create);
+ static BlockFilter_AllFilter getDefault() =>
+ _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
static BlockFilter_AllFilter? _defaultInstance;
}
@@ -1599,8 +1418,7 @@ enum BlockFilter_FilterType {
}
class BlockFilter extends $pb.GeneratedMessage {
- static const $core.Map<$core.int, BlockFilter_FilterType>
- _BlockFilter_FilterTypeByTag = {
+ static const $core.Map<$core.int, BlockFilter_FilterType> _BlockFilter_FilterTypeByTag = {
1: BlockFilter_FilterType.idSelection,
2: BlockFilter_FilterType.parentIdSelection,
3: BlockFilter_FilterType.timestampRange,
@@ -1618,91 +1436,65 @@ class BlockFilter extends $pb.GeneratedMessage {
0: BlockFilter_FilterType.notSet
};
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'BlockFilter',
- package: const $pb.PackageName(
- const $core.bool.fromEnvironment('protobuf.omit_message_names')
- ? ''
- : 'co.topl.genus'),
+ const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BlockFilter',
+ package:
+ const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'co.topl.genus'),
createEmptyInstance: create,
)
..oo(0, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 18])
..aOM(
1,
- const $core.bool.fromEnvironment('protobuf.omit_field_names')
- ? ''
- : 'idSelection',
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'idSelection',
subBuilder: StringSelection.create,
)
..aOM