fix(clippy): apply auto-fixable linting suggestions
This commit is contained in:
90
useragent/.gitignore
vendored
90
useragent/.gitignore
vendored
@@ -1,45 +1,45 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.build/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
.swiftpm/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
**/ios/Flutter/.last_build_id
|
||||
.dart_tool/
|
||||
.flutter-plugins-dependencies
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
/coverage/
|
||||
|
||||
# Symbolication related
|
||||
app.*.symbols
|
||||
|
||||
# Obfuscation related
|
||||
app.*.map.json
|
||||
|
||||
# Android Studio will place build artifacts here
|
||||
/android/app/debug
|
||||
/android/app/profile
|
||||
/android/app/release
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.build/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
.swiftpm/
|
||||
migrate_working_dir/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
**/ios/Flutter/.last_build_id
|
||||
.dart_tool/
|
||||
.flutter-plugins-dependencies
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
/coverage/
|
||||
|
||||
# Symbolication related
|
||||
app.*.symbols
|
||||
|
||||
# Obfuscation related
|
||||
app.*.map.json
|
||||
|
||||
# Android Studio will place build artifacts here
|
||||
/android/app/debug
|
||||
/android/app/profile
|
||||
/android/app/release
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "67323de285b00232883f53b84095eb72be97d35c"
|
||||
channel: "stable"
|
||||
|
||||
project_type: app
|
||||
|
||||
# Tracks metadata for the flutter migrate command
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: android
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: macos
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: web
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: windows
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
|
||||
# User provided section
|
||||
|
||||
# List of Local paths (relative to this file) that should be
|
||||
# ignored by the migrate tool.
|
||||
#
|
||||
# Files that are not part of the templates will be ignored by default.
|
||||
unmanaged_files:
|
||||
- 'lib/main.dart'
|
||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: "67323de285b00232883f53b84095eb72be97d35c"
|
||||
channel: "stable"
|
||||
|
||||
project_type: app
|
||||
|
||||
# Tracks metadata for the flutter migrate command
|
||||
migration:
|
||||
platforms:
|
||||
- platform: root
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: android
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: macos
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: web
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
- platform: windows
|
||||
create_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
base_revision: 67323de285b00232883f53b84095eb72be97d35c
|
||||
|
||||
# User provided section
|
||||
|
||||
# List of Local paths (relative to this file) that should be
|
||||
# ignored by the migrate tool.
|
||||
#
|
||||
# Files that are not part of the templates will be ignored by default.
|
||||
unmanaged_files:
|
||||
- 'lib/main.dart'
|
||||
- 'ios/Runner.xcodeproj/project.pbxproj'
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# useragent
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
# useragent
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
|
||||
|
||||
For help getting started with Flutter development, view the
|
||||
[online documentation](https://docs.flutter.dev/), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
# This file configures the analyzer, which statically analyzes Dart code to
|
||||
# check for errors, warnings, and lints.
|
||||
#
|
||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||
# invoked from the command line by running `flutter analyze`.
|
||||
|
||||
# The following line activates a set of recommended lints for Flutter apps,
|
||||
# packages, and plugins designed to encourage good coding practices.
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
linter:
|
||||
# The lint rules applied to this project can be customized in the
|
||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||
# included above or to enable additional rules. A list of all available lints
|
||||
# and their documentation is published at https://dart.dev/lints.
|
||||
#
|
||||
# Instead of disabling a lint rule for the entire project in the
|
||||
# section below, it can also be suppressed for a single line of code
|
||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||
# producing the lint.
|
||||
rules:
|
||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
||||
# This file configures the analyzer, which statically analyzes Dart code to
|
||||
# check for errors, warnings, and lints.
|
||||
#
|
||||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
|
||||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
|
||||
# invoked from the command line by running `flutter analyze`.
|
||||
|
||||
# The following line activates a set of recommended lints for Flutter apps,
|
||||
# packages, and plugins designed to encourage good coding practices.
|
||||
include: package:flutter_lints/flutter.yaml
|
||||
|
||||
linter:
|
||||
# The lint rules applied to this project can be customized in the
|
||||
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
|
||||
# included above or to enable additional rules. A list of all available lints
|
||||
# and their documentation is published at https://dart.dev/lints.
|
||||
#
|
||||
# Instead of disabling a lint rule for the entire project in the
|
||||
# section below, it can also be suppressed for a single line of code
|
||||
# or a specific dart file by using the `// ignore: name_of_lint` and
|
||||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
|
||||
# producing the lint.
|
||||
rules:
|
||||
# avoid_print: false # Uncomment to disable the `avoid_print` rule
|
||||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
|
||||
|
||||
# Additional information about this file can be found at
|
||||
# https://dart.dev/guides/language/analysis-options
|
||||
|
||||
28
useragent/android/.gitignore
vendored
28
useragent/android/.gitignore
vendored
@@ -1,14 +1,14 @@
|
||||
gradle-wrapper.jar
|
||||
/.gradle
|
||||
/captures/
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
.cxx/
|
||||
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/to/reference-keystore
|
||||
key.properties
|
||||
**/*.keystore
|
||||
**/*.jks
|
||||
gradle-wrapper.jar
|
||||
/.gradle
|
||||
/captures/
|
||||
/gradlew
|
||||
/gradlew.bat
|
||||
/local.properties
|
||||
GeneratedPluginRegistrant.java
|
||||
.cxx/
|
||||
|
||||
# Remember to never publicly share your keystore.
|
||||
# See https://flutter.dev/to/reference-keystore
|
||||
key.properties
|
||||
**/*.keystore
|
||||
**/*.jks
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.useragent"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.example.useragent"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
|
||||
id("dev.flutter.flutter-gradle-plugin")
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.useragent"
|
||||
compileSdk = flutter.compileSdkVersion
|
||||
ndkVersion = flutter.ndkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_17.toString()
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId = "com.example.useragent"
|
||||
// You can update the following values to match your application needs.
|
||||
// For more information, see: https://flutter.dev/to/review-gradle-config.
|
||||
minSdk = flutter.minSdkVersion
|
||||
targetSdk = flutter.targetSdkVersion
|
||||
versionCode = flutter.versionCode
|
||||
versionName = flutter.versionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig = signingConfigs.getByName("debug")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application
|
||||
android:label="useragent"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:taskAffinity=""
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||
the Android process has started. This theme is visible to the user
|
||||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
<!-- Required to query activities that can process text, see:
|
||||
https://developer.android.com/training/package-visibility and
|
||||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||
|
||||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application
|
||||
android:label="useragent"
|
||||
android:name="${applicationName}"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:taskAffinity=""
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- Specifies an Android theme to apply to this Activity as soon as
|
||||
the Android process has started. This theme is visible to the user
|
||||
while the Flutter UI initializes. After that, this theme continues
|
||||
to determine the Window background behind the Flutter UI. -->
|
||||
<meta-data
|
||||
android:name="io.flutter.embedding.android.NormalTheme"
|
||||
android:resource="@style/NormalTheme"
|
||||
/>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
<!-- Required to query activities that can process text, see:
|
||||
https://developer.android.com/training/package-visibility and
|
||||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||
|
||||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package com.example.useragent
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity : FlutterActivity()
|
||||
package com.example.useragent
|
||||
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
|
||||
class MainActivity : FlutterActivity()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="?android:colorBackground" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="?android:colorBackground" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
the Flutter engine draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
<!-- Theme applied to the Android Window as soon as the process has started.
|
||||
This theme determines the color of the Android Window while your
|
||||
Flutter UI initializes, as well as behind your Flutter UI while its
|
||||
running.
|
||||
|
||||
This Theme is only used starting with V2 of Flutter's Android embedding. -->
|
||||
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
|
||||
<item name="android:windowBackground">?android:colorBackground</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- The INTERNET permission is required for development. Specifically,
|
||||
the Flutter tool needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
val newBuildDir: Directory =
|
||||
rootProject.layout.buildDirectory
|
||||
.dir("../../build")
|
||||
.get()
|
||||
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||
|
||||
subprojects {
|
||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
}
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
val newBuildDir: Directory =
|
||||
rootProject.layout.buildDirectory
|
||||
.dir("../../build")
|
||||
.get()
|
||||
rootProject.layout.buildDirectory.value(newBuildDir)
|
||||
|
||||
subprojects {
|
||||
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
|
||||
project.layout.buildDirectory.value(newSubprojectBuildDir)
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(":app")
|
||||
}
|
||||
|
||||
tasks.register<Delete>("clean") {
|
||||
delete(rootProject.layout.buildDirectory)
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||
android.useAndroidX=true
|
||||
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
|
||||
android.useAndroidX=true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-all.zip
|
||||
|
||||
@@ -1,26 +1,26 @@
|
||||
pluginManagement {
|
||||
val flutterSdkPath =
|
||||
run {
|
||||
val properties = java.util.Properties()
|
||||
file("local.properties").inputStream().use { properties.load(it) }
|
||||
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
flutterSdkPath
|
||||
}
|
||||
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id("com.android.application") version "8.11.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
||||
}
|
||||
|
||||
include(":app")
|
||||
pluginManagement {
|
||||
val flutterSdkPath =
|
||||
run {
|
||||
val properties = java.util.Properties()
|
||||
file("local.properties").inputStream().use { properties.load(it) }
|
||||
val flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
|
||||
flutterSdkPath
|
||||
}
|
||||
|
||||
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
|
||||
id("com.android.application") version "8.11.1" apply false
|
||||
id("org.jetbrains.kotlin.android") version "2.2.20" apply false
|
||||
}
|
||||
|
||||
include(":app")
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
rust_input: crate::api
|
||||
rust_root: rust/
|
||||
rust_input: crate::api
|
||||
rust_root: rust/
|
||||
dart_output: lib/src/rust
|
||||
@@ -1,16 +1,16 @@
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'active_callout.freezed.dart';
|
||||
|
||||
@freezed
|
||||
abstract class ActiveCallout with _$ActiveCallout {
|
||||
const factory ActiveCallout({
|
||||
required String id,
|
||||
required String title,
|
||||
required String description,
|
||||
String? iconUrl,
|
||||
required DateTime addedAt,
|
||||
required CalloutData data,
|
||||
}) = _ActiveCallout;
|
||||
}
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'active_callout.freezed.dart';
|
||||
|
||||
@freezed
|
||||
abstract class ActiveCallout with _$ActiveCallout {
|
||||
const factory ActiveCallout({
|
||||
required String id,
|
||||
required String title,
|
||||
required String description,
|
||||
String? iconUrl,
|
||||
required DateTime addedAt,
|
||||
required CalloutData data,
|
||||
}) = _ActiveCallout;
|
||||
}
|
||||
|
||||
@@ -1,304 +1,304 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'active_callout.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$ActiveCallout {
|
||||
|
||||
String get id; String get title; String get description; String? get iconUrl; DateTime get addedAt; CalloutData get data;
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ActiveCalloutCopyWith<ActiveCallout> get copyWith => _$ActiveCalloutCopyWithImpl<ActiveCallout>(this as ActiveCallout, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is ActiveCallout&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.description, description) || other.description == description)&&(identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl)&&(identical(other.addedAt, addedAt) || other.addedAt == addedAt)&&(identical(other.data, data) || other.data == data));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,id,title,description,iconUrl,addedAt,data);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ActiveCallout(id: $id, title: $title, description: $description, iconUrl: $iconUrl, addedAt: $addedAt, data: $data)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $ActiveCalloutCopyWith<$Res> {
|
||||
factory $ActiveCalloutCopyWith(ActiveCallout value, $Res Function(ActiveCallout) _then) = _$ActiveCalloutCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data
|
||||
});
|
||||
|
||||
|
||||
$CalloutDataCopyWith<$Res> get data;
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$ActiveCalloutCopyWithImpl<$Res>
|
||||
implements $ActiveCalloutCopyWith<$Res> {
|
||||
_$ActiveCalloutCopyWithImpl(this._self, this._then);
|
||||
|
||||
final ActiveCallout _self;
|
||||
final $Res Function(ActiveCallout) _then;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? title = null,Object? description = null,Object? iconUrl = freezed,Object? addedAt = null,Object? data = null,}) {
|
||||
return _then(_self.copyWith(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable
|
||||
as String,iconUrl: freezed == iconUrl ? _self.iconUrl : iconUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,addedAt: null == addedAt ? _self.addedAt : addedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as CalloutData,
|
||||
));
|
||||
}
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$CalloutDataCopyWith<$Res> get data {
|
||||
|
||||
return $CalloutDataCopyWith<$Res>(_self.data, (value) {
|
||||
return _then(_self.copyWith(data: value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [ActiveCallout].
|
||||
extension ActiveCalloutPatterns on ActiveCallout {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ActiveCallout value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ActiveCallout value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ActiveCallout value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout():
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _ActiveCallout implements ActiveCallout {
|
||||
const _ActiveCallout({required this.id, required this.title, required this.description, this.iconUrl, required this.addedAt, required this.data});
|
||||
|
||||
|
||||
@override final String id;
|
||||
@override final String title;
|
||||
@override final String description;
|
||||
@override final String? iconUrl;
|
||||
@override final DateTime addedAt;
|
||||
@override final CalloutData data;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ActiveCalloutCopyWith<_ActiveCallout> get copyWith => __$ActiveCalloutCopyWithImpl<_ActiveCallout>(this, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActiveCallout&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.description, description) || other.description == description)&&(identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl)&&(identical(other.addedAt, addedAt) || other.addedAt == addedAt)&&(identical(other.data, data) || other.data == data));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,id,title,description,iconUrl,addedAt,data);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ActiveCallout(id: $id, title: $title, description: $description, iconUrl: $iconUrl, addedAt: $addedAt, data: $data)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$ActiveCalloutCopyWith<$Res> implements $ActiveCalloutCopyWith<$Res> {
|
||||
factory _$ActiveCalloutCopyWith(_ActiveCallout value, $Res Function(_ActiveCallout) _then) = __$ActiveCalloutCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data
|
||||
});
|
||||
|
||||
|
||||
@override $CalloutDataCopyWith<$Res> get data;
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$ActiveCalloutCopyWithImpl<$Res>
|
||||
implements _$ActiveCalloutCopyWith<$Res> {
|
||||
__$ActiveCalloutCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _ActiveCallout _self;
|
||||
final $Res Function(_ActiveCallout) _then;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? title = null,Object? description = null,Object? iconUrl = freezed,Object? addedAt = null,Object? data = null,}) {
|
||||
return _then(_ActiveCallout(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable
|
||||
as String,iconUrl: freezed == iconUrl ? _self.iconUrl : iconUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,addedAt: null == addedAt ? _self.addedAt : addedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as CalloutData,
|
||||
));
|
||||
}
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$CalloutDataCopyWith<$Res> get data {
|
||||
|
||||
return $CalloutDataCopyWith<$Res>(_self.data, (value) {
|
||||
return _then(_self.copyWith(data: value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// dart format on
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'active_callout.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$ActiveCallout {
|
||||
|
||||
String get id; String get title; String get description; String? get iconUrl; DateTime get addedAt; CalloutData get data;
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$ActiveCalloutCopyWith<ActiveCallout> get copyWith => _$ActiveCalloutCopyWithImpl<ActiveCallout>(this as ActiveCallout, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is ActiveCallout&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.description, description) || other.description == description)&&(identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl)&&(identical(other.addedAt, addedAt) || other.addedAt == addedAt)&&(identical(other.data, data) || other.data == data));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,id,title,description,iconUrl,addedAt,data);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ActiveCallout(id: $id, title: $title, description: $description, iconUrl: $iconUrl, addedAt: $addedAt, data: $data)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $ActiveCalloutCopyWith<$Res> {
|
||||
factory $ActiveCalloutCopyWith(ActiveCallout value, $Res Function(ActiveCallout) _then) = _$ActiveCalloutCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data
|
||||
});
|
||||
|
||||
|
||||
$CalloutDataCopyWith<$Res> get data;
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$ActiveCalloutCopyWithImpl<$Res>
|
||||
implements $ActiveCalloutCopyWith<$Res> {
|
||||
_$ActiveCalloutCopyWithImpl(this._self, this._then);
|
||||
|
||||
final ActiveCallout _self;
|
||||
final $Res Function(ActiveCallout) _then;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? title = null,Object? description = null,Object? iconUrl = freezed,Object? addedAt = null,Object? data = null,}) {
|
||||
return _then(_self.copyWith(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable
|
||||
as String,iconUrl: freezed == iconUrl ? _self.iconUrl : iconUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,addedAt: null == addedAt ? _self.addedAt : addedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as CalloutData,
|
||||
));
|
||||
}
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$CalloutDataCopyWith<$Res> get data {
|
||||
|
||||
return $CalloutDataCopyWith<$Res>(_self.data, (value) {
|
||||
return _then(_self.copyWith(data: value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [ActiveCallout].
|
||||
extension ActiveCalloutPatterns on ActiveCallout {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _ActiveCallout value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _ActiveCallout value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _ActiveCallout value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout():
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _ActiveCallout() when $default != null:
|
||||
return $default(_that.id,_that.title,_that.description,_that.iconUrl,_that.addedAt,_that.data);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _ActiveCallout implements ActiveCallout {
|
||||
const _ActiveCallout({required this.id, required this.title, required this.description, this.iconUrl, required this.addedAt, required this.data});
|
||||
|
||||
|
||||
@override final String id;
|
||||
@override final String title;
|
||||
@override final String description;
|
||||
@override final String? iconUrl;
|
||||
@override final DateTime addedAt;
|
||||
@override final CalloutData data;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$ActiveCalloutCopyWith<_ActiveCallout> get copyWith => __$ActiveCalloutCopyWithImpl<_ActiveCallout>(this, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _ActiveCallout&&(identical(other.id, id) || other.id == id)&&(identical(other.title, title) || other.title == title)&&(identical(other.description, description) || other.description == description)&&(identical(other.iconUrl, iconUrl) || other.iconUrl == iconUrl)&&(identical(other.addedAt, addedAt) || other.addedAt == addedAt)&&(identical(other.data, data) || other.data == data));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,id,title,description,iconUrl,addedAt,data);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ActiveCallout(id: $id, title: $title, description: $description, iconUrl: $iconUrl, addedAt: $addedAt, data: $data)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$ActiveCalloutCopyWith<$Res> implements $ActiveCalloutCopyWith<$Res> {
|
||||
factory _$ActiveCalloutCopyWith(_ActiveCallout value, $Res Function(_ActiveCallout) _then) = __$ActiveCalloutCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
String id, String title, String description, String? iconUrl, DateTime addedAt, CalloutData data
|
||||
});
|
||||
|
||||
|
||||
@override $CalloutDataCopyWith<$Res> get data;
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$ActiveCalloutCopyWithImpl<$Res>
|
||||
implements _$ActiveCalloutCopyWith<$Res> {
|
||||
__$ActiveCalloutCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _ActiveCallout _self;
|
||||
final $Res Function(_ActiveCallout) _then;
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? title = null,Object? description = null,Object? iconUrl = freezed,Object? addedAt = null,Object? data = null,}) {
|
||||
return _then(_ActiveCallout(
|
||||
id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable
|
||||
as String,title: null == title ? _self.title : title // ignore: cast_nullable_to_non_nullable
|
||||
as String,description: null == description ? _self.description : description // ignore: cast_nullable_to_non_nullable
|
||||
as String,iconUrl: freezed == iconUrl ? _self.iconUrl : iconUrl // ignore: cast_nullable_to_non_nullable
|
||||
as String?,addedAt: null == addedAt ? _self.addedAt : addedAt // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime,data: null == data ? _self.data : data // ignore: cast_nullable_to_non_nullable
|
||||
as CalloutData,
|
||||
));
|
||||
}
|
||||
|
||||
/// Create a copy of ActiveCallout
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$CalloutDataCopyWith<$Res> get data {
|
||||
|
||||
return $CalloutDataCopyWith<$Res>(_self.data, (value) {
|
||||
return _then(_self.copyWith(data: value));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// dart format on
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
import 'package:arbiter/proto/shared/client.pb.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'callout_event.freezed.dart';
|
||||
|
||||
@freezed
|
||||
sealed class CalloutData with _$CalloutData {
|
||||
const factory CalloutData.connectApproval({
|
||||
required String pubkey,
|
||||
required ClientInfo clientInfo,
|
||||
}) = ConnectApprovalData;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class CalloutEvent with _$CalloutEvent {
|
||||
const factory CalloutEvent.added({
|
||||
required String id,
|
||||
required CalloutData data,
|
||||
}) = CalloutEventAdded;
|
||||
|
||||
const factory CalloutEvent.cancelled({required String id}) =
|
||||
CalloutEventCancelled;
|
||||
}
|
||||
import 'package:arbiter/proto/shared/client.pb.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'callout_event.freezed.dart';
|
||||
|
||||
@freezed
|
||||
sealed class CalloutData with _$CalloutData {
|
||||
const factory CalloutData.connectApproval({
|
||||
required String pubkey,
|
||||
required ClientInfo clientInfo,
|
||||
}) = ConnectApprovalData;
|
||||
}
|
||||
|
||||
@freezed
|
||||
sealed class CalloutEvent with _$CalloutEvent {
|
||||
const factory CalloutEvent.added({
|
||||
required String id,
|
||||
required CalloutData data,
|
||||
}) = CalloutEventAdded;
|
||||
|
||||
const factory CalloutEvent.cancelled({required String id}) =
|
||||
CalloutEventCancelled;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,57 +1,57 @@
|
||||
import 'package:arbiter/features/callouts/active_callout.dart';
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/features/callouts/types/sdk_connect_approve.dart'
|
||||
as connect_approve;
|
||||
import 'package:arbiter/proto/shared/client.pb.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'callout_manager.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class CalloutManager extends _$CalloutManager {
|
||||
@override
|
||||
Map<String, ActiveCallout> build() {
|
||||
ref.listen(connect_approve.connectApproveEventsProvider, (_, next) {
|
||||
next.whenData(_processEvent);
|
||||
});
|
||||
return {};
|
||||
}
|
||||
|
||||
void _processEvent(CalloutEvent event) {
|
||||
switch (event) {
|
||||
case CalloutEventAdded(:final id, :final data):
|
||||
state = {...state, id: _toActiveCallout(id, data)};
|
||||
case CalloutEventCancelled(:final id):
|
||||
state = {...state}..remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> sendDecision(String id, bool approved) async {
|
||||
final callout = state[id];
|
||||
if (callout == null) return;
|
||||
switch (callout.data) {
|
||||
case ConnectApprovalData(:final pubkey):
|
||||
await connect_approve.sendDecision(ref, pubkey, approved);
|
||||
}
|
||||
dismiss(id);
|
||||
}
|
||||
|
||||
void dismiss(String id) {
|
||||
state = {...state}..remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
ActiveCallout _toActiveCallout(String id, CalloutData data) => switch (data) {
|
||||
ConnectApprovalData(:final clientInfo) => ActiveCallout(
|
||||
id: id,
|
||||
title: 'Connection Request',
|
||||
description: _clientDisplayName(clientInfo) != null
|
||||
? '${_clientDisplayName(clientInfo)} is requesting a connection.'
|
||||
: 'An SDK client is requesting a connection.',
|
||||
addedAt: DateTime.now(),
|
||||
data: data,
|
||||
),
|
||||
};
|
||||
|
||||
String? _clientDisplayName(ClientInfo info) =>
|
||||
info.hasName() && info.name.isNotEmpty ? info.name : null;
|
||||
import 'package:arbiter/features/callouts/active_callout.dart';
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/features/callouts/types/sdk_connect_approve.dart'
|
||||
as connect_approve;
|
||||
import 'package:arbiter/proto/shared/client.pb.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'callout_manager.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class CalloutManager extends _$CalloutManager {
|
||||
@override
|
||||
Map<String, ActiveCallout> build() {
|
||||
ref.listen(connect_approve.connectApproveEventsProvider, (_, next) {
|
||||
next.whenData(_processEvent);
|
||||
});
|
||||
return {};
|
||||
}
|
||||
|
||||
void _processEvent(CalloutEvent event) {
|
||||
switch (event) {
|
||||
case CalloutEventAdded(:final id, :final data):
|
||||
state = {...state, id: _toActiveCallout(id, data)};
|
||||
case CalloutEventCancelled(:final id):
|
||||
state = {...state}..remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> sendDecision(String id, bool approved) async {
|
||||
final callout = state[id];
|
||||
if (callout == null) return;
|
||||
switch (callout.data) {
|
||||
case ConnectApprovalData(:final pubkey):
|
||||
await connect_approve.sendDecision(ref, pubkey, approved);
|
||||
}
|
||||
dismiss(id);
|
||||
}
|
||||
|
||||
void dismiss(String id) {
|
||||
state = {...state}..remove(id);
|
||||
}
|
||||
}
|
||||
|
||||
ActiveCallout _toActiveCallout(String id, CalloutData data) => switch (data) {
|
||||
ConnectApprovalData(:final clientInfo) => ActiveCallout(
|
||||
id: id,
|
||||
title: 'Connection Request',
|
||||
description: _clientDisplayName(clientInfo) != null
|
||||
? '${_clientDisplayName(clientInfo)} is requesting a connection.'
|
||||
: 'An SDK client is requesting a connection.',
|
||||
addedAt: DateTime.now(),
|
||||
data: data,
|
||||
),
|
||||
};
|
||||
|
||||
String? _clientDisplayName(ClientInfo info) =>
|
||||
info.hasName() && info.name.isNotEmpty ? info.name : null;
|
||||
|
||||
@@ -1,67 +1,67 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'callout_manager.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(CalloutManager)
|
||||
final calloutManagerProvider = CalloutManagerProvider._();
|
||||
|
||||
final class CalloutManagerProvider
|
||||
extends $NotifierProvider<CalloutManager, Map<String, ActiveCallout>> {
|
||||
CalloutManagerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'calloutManagerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$calloutManagerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
CalloutManager create() => CalloutManager();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Map<String, ActiveCallout> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<Map<String, ActiveCallout>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$calloutManagerHash() => r'ff8c9a03a6bbbca822242eb497c503b18240a289';
|
||||
|
||||
abstract class _$CalloutManager extends $Notifier<Map<String, ActiveCallout>> {
|
||||
Map<String, ActiveCallout> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<Map<String, ActiveCallout>, Map<String, ActiveCallout>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
Map<String, ActiveCallout>,
|
||||
Map<String, ActiveCallout>
|
||||
>,
|
||||
Map<String, ActiveCallout>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'callout_manager.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(CalloutManager)
|
||||
final calloutManagerProvider = CalloutManagerProvider._();
|
||||
|
||||
final class CalloutManagerProvider
|
||||
extends $NotifierProvider<CalloutManager, Map<String, ActiveCallout>> {
|
||||
CalloutManagerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'calloutManagerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$calloutManagerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
CalloutManager create() => CalloutManager();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(Map<String, ActiveCallout> value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<Map<String, ActiveCallout>>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$calloutManagerHash() => r'ff8c9a03a6bbbca822242eb497c503b18240a289';
|
||||
|
||||
abstract class _$CalloutManager extends $Notifier<Map<String, ActiveCallout>> {
|
||||
Map<String, ActiveCallout> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref =
|
||||
this.ref
|
||||
as $Ref<Map<String, ActiveCallout>, Map<String, ActiveCallout>>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<
|
||||
Map<String, ActiveCallout>,
|
||||
Map<String, ActiveCallout>
|
||||
>,
|
||||
Map<String, ActiveCallout>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,99 +1,99 @@
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/features/callouts/callout_manager.dart';
|
||||
import 'package:arbiter/screens/callouts/sdk_connect.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
||||
Future<void> showCallout(BuildContext context, WidgetRef ref, String id) async {
|
||||
final data = ref.read(calloutManagerProvider)[id]?.data;
|
||||
if (data == null) return;
|
||||
|
||||
await showGeneralDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
||||
barrierColor: Colors.transparent,
|
||||
transitionDuration: const Duration(milliseconds: 320),
|
||||
pageBuilder: (_, animation, _) =>
|
||||
_CalloutOverlay(id: id, data: data, animation: animation),
|
||||
);
|
||||
}
|
||||
|
||||
class _CalloutOverlay extends ConsumerWidget {
|
||||
const _CalloutOverlay({
|
||||
required this.id,
|
||||
required this.data,
|
||||
required this.animation,
|
||||
});
|
||||
|
||||
final String id;
|
||||
final CalloutData data;
|
||||
final Animation<double> animation;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
ref.listen(calloutManagerProvider.select((map) => map.containsKey(id)), (
|
||||
wasPresent,
|
||||
isPresent,
|
||||
) {
|
||||
if (wasPresent == true && !isPresent && context.mounted) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
});
|
||||
|
||||
final content = switch (data) {
|
||||
ConnectApprovalData(:final pubkey, :final clientInfo) =>
|
||||
SdkConnectCallout(
|
||||
pubkey: pubkey,
|
||||
clientInfo: clientInfo,
|
||||
onAccept: () =>
|
||||
ref.read(calloutManagerProvider.notifier).sendDecision(id, true),
|
||||
onDecline: () =>
|
||||
ref.read(calloutManagerProvider.notifier).sendDecision(id, false),
|
||||
),
|
||||
};
|
||||
|
||||
final barrierAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0, 0.3125, curve: Curves.easeOut),
|
||||
);
|
||||
final popupAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0.3125, 1, curve: Curves.easeOutCubic),
|
||||
);
|
||||
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: AnimatedBuilder(
|
||||
animation: barrierAnim,
|
||||
builder: (_, __) => ColoredBox(
|
||||
color: Colors.black.withValues(alpha: 0.35 * barrierAnim.value),
|
||||
),
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: FadeTransition(
|
||||
opacity: popupAnim,
|
||||
child: SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 0.08),
|
||||
end: Offset.zero,
|
||||
).animate(popupAnim),
|
||||
child: content,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/features/callouts/callout_manager.dart';
|
||||
import 'package:arbiter/screens/callouts/sdk_connect.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
|
||||
Future<void> showCallout(BuildContext context, WidgetRef ref, String id) async {
|
||||
final data = ref.read(calloutManagerProvider)[id]?.data;
|
||||
if (data == null) return;
|
||||
|
||||
await showGeneralDialog(
|
||||
context: context,
|
||||
barrierDismissible: false,
|
||||
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
||||
barrierColor: Colors.transparent,
|
||||
transitionDuration: const Duration(milliseconds: 320),
|
||||
pageBuilder: (_, animation, _) =>
|
||||
_CalloutOverlay(id: id, data: data, animation: animation),
|
||||
);
|
||||
}
|
||||
|
||||
class _CalloutOverlay extends ConsumerWidget {
|
||||
const _CalloutOverlay({
|
||||
required this.id,
|
||||
required this.data,
|
||||
required this.animation,
|
||||
});
|
||||
|
||||
final String id;
|
||||
final CalloutData data;
|
||||
final Animation<double> animation;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
ref.listen(calloutManagerProvider.select((map) => map.containsKey(id)), (
|
||||
wasPresent,
|
||||
isPresent,
|
||||
) {
|
||||
if (wasPresent == true && !isPresent && context.mounted) {
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
});
|
||||
|
||||
final content = switch (data) {
|
||||
ConnectApprovalData(:final pubkey, :final clientInfo) =>
|
||||
SdkConnectCallout(
|
||||
pubkey: pubkey,
|
||||
clientInfo: clientInfo,
|
||||
onAccept: () =>
|
||||
ref.read(calloutManagerProvider.notifier).sendDecision(id, true),
|
||||
onDecline: () =>
|
||||
ref.read(calloutManagerProvider.notifier).sendDecision(id, false),
|
||||
),
|
||||
};
|
||||
|
||||
final barrierAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0, 0.3125, curve: Curves.easeOut),
|
||||
);
|
||||
final popupAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0.3125, 1, curve: Curves.easeOutCubic),
|
||||
);
|
||||
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: AnimatedBuilder(
|
||||
animation: barrierAnim,
|
||||
builder: (_, __) => ColoredBox(
|
||||
color: Colors.black.withValues(alpha: 0.35 * barrierAnim.value),
|
||||
),
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: FadeTransition(
|
||||
opacity: popupAnim,
|
||||
child: SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 0.08),
|
||||
end: Offset.zero,
|
||||
).animate(popupAnim),
|
||||
child: content,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,221 +1,221 @@
|
||||
import 'package:arbiter/features/callouts/active_callout.dart';
|
||||
import 'package:arbiter/features/callouts/callout_manager.dart';
|
||||
import 'package:arbiter/features/callouts/show_callout.dart';
|
||||
import 'package:arbiter/theme/palette.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:sizer/sizer.dart';
|
||||
import 'package:timeago/timeago.dart' as timeago;
|
||||
|
||||
Future<void> showCalloutList(BuildContext context, WidgetRef ref) async {
|
||||
final selectedId = await showGeneralDialog<String>(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
||||
barrierColor: Colors.transparent,
|
||||
transitionDuration: const Duration(milliseconds: 280),
|
||||
pageBuilder: (_, animation, __) =>
|
||||
_CalloutListOverlay(animation: animation),
|
||||
);
|
||||
|
||||
if (selectedId != null && context.mounted) {
|
||||
await showCallout(context, ref, selectedId);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListOverlay extends ConsumerWidget {
|
||||
const _CalloutListOverlay({required this.animation});
|
||||
|
||||
final Animation<double> animation;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final callouts = ref.watch(calloutManagerProvider);
|
||||
|
||||
final barrierAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0, 0.3, curve: Curves.easeOut),
|
||||
);
|
||||
final panelAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0.3, 1, curve: Curves.easeOutCubic),
|
||||
);
|
||||
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: AnimatedBuilder(
|
||||
animation: barrierAnim,
|
||||
builder: (_, __) => ColoredBox(
|
||||
color: Colors.black.withValues(
|
||||
alpha: 0.35 * barrierAnim.value,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(1.6.h),
|
||||
child: FadeTransition(
|
||||
opacity: panelAnim,
|
||||
child: SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 0.08),
|
||||
end: Offset.zero,
|
||||
).animate(panelAnim),
|
||||
child: GestureDetector(
|
||||
onTap: () {},
|
||||
child: _CalloutListPanel(callouts: callouts),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListPanel extends StatelessWidget {
|
||||
const _CalloutListPanel({required this.callouts});
|
||||
|
||||
final Map<String, ActiveCallout> callouts;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(maxHeight: 48.h),
|
||||
decoration: BoxDecoration(
|
||||
color: Palette.cream,
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
border: Border.all(color: Palette.line),
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(2.h, 2.h, 2.h, 1.2.h),
|
||||
child: Text(
|
||||
'Notifications',
|
||||
style: theme.textTheme.titleMedium?.copyWith(
|
||||
color: Palette.ink,
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (callouts.isEmpty)
|
||||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(2.h, 0, 2.h, 2.h),
|
||||
child: Text(
|
||||
'No pending notifications.',
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.50),
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
Flexible(
|
||||
child: SingleChildScrollView(
|
||||
padding: EdgeInsets.fromLTRB(1.2.h, 0, 1.2.h, 1.2.h),
|
||||
child: Column(
|
||||
spacing: 0.5.h,
|
||||
children: [
|
||||
for (final entry in callouts.values)
|
||||
_CalloutListEntry(
|
||||
callout: entry,
|
||||
onTap: () => Navigator.of(context).pop(entry.id),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListEntry extends StatelessWidget {
|
||||
const _CalloutListEntry({required this.callout, required this.onTap});
|
||||
|
||||
final ActiveCallout callout;
|
||||
final VoidCallback onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
|
||||
return InkWell(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
onTap: onTap,
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 1.2.h, vertical: 1.2.h),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Palette.line),
|
||||
),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 1.2.h,
|
||||
children: [
|
||||
if (callout.iconUrl != null)
|
||||
CircleAvatar(
|
||||
radius: 2.2.h,
|
||||
backgroundColor: Palette.line,
|
||||
backgroundImage: NetworkImage(callout.iconUrl!),
|
||||
),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 0.3.h,
|
||||
children: [
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
callout.title,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: Palette.ink,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
timeago.format(callout.addedAt),
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.45),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
callout.description,
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.65),
|
||||
height: 1.4,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
import 'package:arbiter/features/callouts/active_callout.dart';
|
||||
import 'package:arbiter/features/callouts/callout_manager.dart';
|
||||
import 'package:arbiter/features/callouts/show_callout.dart';
|
||||
import 'package:arbiter/theme/palette.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:sizer/sizer.dart';
|
||||
import 'package:timeago/timeago.dart' as timeago;
|
||||
|
||||
Future<void> showCalloutList(BuildContext context, WidgetRef ref) async {
|
||||
final selectedId = await showGeneralDialog<String>(
|
||||
context: context,
|
||||
barrierDismissible: true,
|
||||
barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
|
||||
barrierColor: Colors.transparent,
|
||||
transitionDuration: const Duration(milliseconds: 280),
|
||||
pageBuilder: (_, animation, __) =>
|
||||
_CalloutListOverlay(animation: animation),
|
||||
);
|
||||
|
||||
if (selectedId != null && context.mounted) {
|
||||
await showCallout(context, ref, selectedId);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListOverlay extends ConsumerWidget {
|
||||
const _CalloutListOverlay({required this.animation});
|
||||
|
||||
final Animation<double> animation;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
final callouts = ref.watch(calloutManagerProvider);
|
||||
|
||||
final barrierAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0, 0.3, curve: Curves.easeOut),
|
||||
);
|
||||
final panelAnim = CurvedAnimation(
|
||||
parent: animation,
|
||||
curve: const Interval(0.3, 1, curve: Curves.easeOutCubic),
|
||||
);
|
||||
|
||||
return Material(
|
||||
type: MaterialType.transparency,
|
||||
child: Stack(
|
||||
children: [
|
||||
Positioned.fill(
|
||||
child: GestureDetector(
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () => Navigator.of(context).pop(),
|
||||
child: AnimatedBuilder(
|
||||
animation: barrierAnim,
|
||||
builder: (_, __) => ColoredBox(
|
||||
color: Colors.black.withValues(
|
||||
alpha: 0.35 * barrierAnim.value,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SafeArea(
|
||||
child: Align(
|
||||
alignment: Alignment.bottomCenter,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(1.6.h),
|
||||
child: FadeTransition(
|
||||
opacity: panelAnim,
|
||||
child: SlideTransition(
|
||||
position: Tween<Offset>(
|
||||
begin: const Offset(0, 0.08),
|
||||
end: Offset.zero,
|
||||
).animate(panelAnim),
|
||||
child: GestureDetector(
|
||||
onTap: () {},
|
||||
child: _CalloutListPanel(callouts: callouts),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListPanel extends StatelessWidget {
|
||||
const _CalloutListPanel({required this.callouts});
|
||||
|
||||
final Map<String, ActiveCallout> callouts;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
|
||||
return Container(
|
||||
width: double.infinity,
|
||||
constraints: BoxConstraints(maxHeight: 48.h),
|
||||
decoration: BoxDecoration(
|
||||
color: Palette.cream,
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
border: Border.all(color: Palette.line),
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(2.h, 2.h, 2.h, 1.2.h),
|
||||
child: Text(
|
||||
'Notifications',
|
||||
style: theme.textTheme.titleMedium?.copyWith(
|
||||
color: Palette.ink,
|
||||
fontWeight: FontWeight.w800,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (callouts.isEmpty)
|
||||
Padding(
|
||||
padding: EdgeInsets.fromLTRB(2.h, 0, 2.h, 2.h),
|
||||
child: Text(
|
||||
'No pending notifications.',
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.50),
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
Flexible(
|
||||
child: SingleChildScrollView(
|
||||
padding: EdgeInsets.fromLTRB(1.2.h, 0, 1.2.h, 1.2.h),
|
||||
child: Column(
|
||||
spacing: 0.5.h,
|
||||
children: [
|
||||
for (final entry in callouts.values)
|
||||
_CalloutListEntry(
|
||||
callout: entry,
|
||||
onTap: () => Navigator.of(context).pop(entry.id),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CalloutListEntry extends StatelessWidget {
|
||||
const _CalloutListEntry({required this.callout, required this.onTap});
|
||||
|
||||
final ActiveCallout callout;
|
||||
final VoidCallback onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
|
||||
return InkWell(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
onTap: onTap,
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 1.2.h, vertical: 1.2.h),
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
border: Border.all(color: Palette.line),
|
||||
),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 1.2.h,
|
||||
children: [
|
||||
if (callout.iconUrl != null)
|
||||
CircleAvatar(
|
||||
radius: 2.2.h,
|
||||
backgroundColor: Palette.line,
|
||||
backgroundImage: NetworkImage(callout.iconUrl!),
|
||||
),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 0.3.h,
|
||||
children: [
|
||||
Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
callout.title,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: Palette.ink,
|
||||
fontWeight: FontWeight.w700,
|
||||
),
|
||||
),
|
||||
),
|
||||
Text(
|
||||
timeago.format(callout.addedAt),
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.45),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
Text(
|
||||
callout.description,
|
||||
style: theme.textTheme.bodySmall?.copyWith(
|
||||
color: Palette.ink.withValues(alpha: 0.65),
|
||||
height: 1.4,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/proto/user_agent/sdk_client.pb.dart' as ua_sdk;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'sdk_connect_approve.g.dart';
|
||||
|
||||
@riverpod
|
||||
Stream<CalloutEvent> connectApproveEvents(Ref ref) async* {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) return;
|
||||
|
||||
await for (final message in connection.outOfBandMessages) {
|
||||
switch (message.whichPayload()) {
|
||||
case UserAgentResponse_Payload.sdkClient:
|
||||
final sdkClientMessage = message.sdkClient;
|
||||
switch (sdkClientMessage.whichPayload()) {
|
||||
case ua_sdk.Response_Payload.connectionRequest:
|
||||
final body = sdkClientMessage.connectionRequest;
|
||||
final id = base64Encode(body.pubkey);
|
||||
yield CalloutEvent.added(
|
||||
id: 'connect_approve:$id',
|
||||
data: CalloutData.connectApproval(
|
||||
pubkey: id,
|
||||
clientInfo: body.info,
|
||||
),
|
||||
);
|
||||
|
||||
case ua_sdk.Response_Payload.connectionCancel:
|
||||
final id = base64Encode(sdkClientMessage.connectionCancel.pubkey);
|
||||
yield CalloutEvent.cancelled(id: 'connect_approve:$id');
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> sendDecision(Ref ref, String pubkey, bool approved) async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) return;
|
||||
|
||||
final bytes = base64Decode(pubkey);
|
||||
|
||||
final req = UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
connectionResponse: ua_sdk.ConnectionResponse(
|
||||
approved: approved,
|
||||
pubkey: bytes,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
await connection.tell(req);
|
||||
}
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/features/callouts/callout_event.dart';
|
||||
import 'package:arbiter/proto/user_agent/sdk_client.pb.dart' as ua_sdk;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'sdk_connect_approve.g.dart';
|
||||
|
||||
@riverpod
|
||||
Stream<CalloutEvent> connectApproveEvents(Ref ref) async* {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) return;
|
||||
|
||||
await for (final message in connection.outOfBandMessages) {
|
||||
switch (message.whichPayload()) {
|
||||
case UserAgentResponse_Payload.sdkClient:
|
||||
final sdkClientMessage = message.sdkClient;
|
||||
switch (sdkClientMessage.whichPayload()) {
|
||||
case ua_sdk.Response_Payload.connectionRequest:
|
||||
final body = sdkClientMessage.connectionRequest;
|
||||
final id = base64Encode(body.pubkey);
|
||||
yield CalloutEvent.added(
|
||||
id: 'connect_approve:$id',
|
||||
data: CalloutData.connectApproval(
|
||||
pubkey: id,
|
||||
clientInfo: body.info,
|
||||
),
|
||||
);
|
||||
|
||||
case ua_sdk.Response_Payload.connectionCancel:
|
||||
final id = base64Encode(sdkClientMessage.connectionCancel.pubkey);
|
||||
yield CalloutEvent.cancelled(id: 'connect_approve:$id');
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> sendDecision(Ref ref, String pubkey, bool approved) async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) return;
|
||||
|
||||
final bytes = base64Decode(pubkey);
|
||||
|
||||
final req = UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
connectionResponse: ua_sdk.ConnectionResponse(
|
||||
approved: approved,
|
||||
pubkey: bytes,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
await connection.tell(req);
|
||||
}
|
||||
|
||||
@@ -1,50 +1,50 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'sdk_connect_approve.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(connectApproveEvents)
|
||||
final connectApproveEventsProvider = ConnectApproveEventsProvider._();
|
||||
|
||||
final class ConnectApproveEventsProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<CalloutEvent>,
|
||||
CalloutEvent,
|
||||
Stream<CalloutEvent>
|
||||
>
|
||||
with $FutureModifier<CalloutEvent>, $StreamProvider<CalloutEvent> {
|
||||
ConnectApproveEventsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'connectApproveEventsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$connectApproveEventsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<CalloutEvent> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<CalloutEvent> create(Ref ref) {
|
||||
return connectApproveEvents(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$connectApproveEventsHash() =>
|
||||
r'abab87cc875a9a4834f836c2c0eba4aa7671d82e';
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'sdk_connect_approve.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(connectApproveEvents)
|
||||
final connectApproveEventsProvider = ConnectApproveEventsProvider._();
|
||||
|
||||
final class ConnectApproveEventsProvider
|
||||
extends
|
||||
$FunctionalProvider<
|
||||
AsyncValue<CalloutEvent>,
|
||||
CalloutEvent,
|
||||
Stream<CalloutEvent>
|
||||
>
|
||||
with $FutureModifier<CalloutEvent>, $StreamProvider<CalloutEvent> {
|
||||
ConnectApproveEventsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'connectApproveEventsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$connectApproveEventsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
$StreamProviderElement<CalloutEvent> $createElement(
|
||||
$ProviderPointer pointer,
|
||||
) => $StreamProviderElement(pointer);
|
||||
|
||||
@override
|
||||
Stream<CalloutEvent> create(Ref ref) {
|
||||
return connectApproveEvents(ref);
|
||||
}
|
||||
}
|
||||
|
||||
String _$connectApproveEventsHash() =>
|
||||
r'abab87cc875a9a4834f836c2c0eba4aa7671d82e';
|
||||
|
||||
@@ -1,58 +1,58 @@
|
||||
import 'dart:convert';
|
||||
|
||||
class ArbiterUrl {
|
||||
const ArbiterUrl({
|
||||
required this.host,
|
||||
required this.port,
|
||||
required this.caCert,
|
||||
this.bootstrapToken,
|
||||
});
|
||||
|
||||
final String host;
|
||||
final int port;
|
||||
final List<int> caCert;
|
||||
final String? bootstrapToken;
|
||||
|
||||
static const _scheme = 'arbiter';
|
||||
static const _certQueryKey = 'cert';
|
||||
static const _bootstrapTokenQueryKey = 'bootstrap_token';
|
||||
|
||||
static ArbiterUrl parse(String value) {
|
||||
final uri = Uri.tryParse(value);
|
||||
if (uri == null || uri.scheme != _scheme) {
|
||||
throw const FormatException("Invalid URL scheme, expected 'arbiter://'");
|
||||
}
|
||||
|
||||
if (uri.host.isEmpty) {
|
||||
throw const FormatException('Missing host in URL');
|
||||
}
|
||||
|
||||
if (!uri.hasPort) {
|
||||
throw const FormatException('Missing port in URL');
|
||||
}
|
||||
|
||||
final cert = uri.queryParameters[_certQueryKey];
|
||||
if (cert == null || cert.isEmpty) {
|
||||
throw const FormatException("Missing 'cert' query parameter in URL");
|
||||
}
|
||||
|
||||
final decodedCert = _decodeCert(cert);
|
||||
|
||||
return ArbiterUrl(
|
||||
host: uri.host,
|
||||
port: uri.port,
|
||||
caCert: decodedCert,
|
||||
bootstrapToken: uri.queryParameters[_bootstrapTokenQueryKey],
|
||||
);
|
||||
}
|
||||
|
||||
static List<int> _decodeCert(String cert) {
|
||||
try {
|
||||
return base64Url.decode(base64Url.normalize(cert));
|
||||
} on FormatException catch (error) {
|
||||
throw FormatException(
|
||||
"Invalid base64 in 'cert' query parameter: ${error.message}",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
import 'dart:convert';
|
||||
|
||||
class ArbiterUrl {
|
||||
const ArbiterUrl({
|
||||
required this.host,
|
||||
required this.port,
|
||||
required this.caCert,
|
||||
this.bootstrapToken,
|
||||
});
|
||||
|
||||
final String host;
|
||||
final int port;
|
||||
final List<int> caCert;
|
||||
final String? bootstrapToken;
|
||||
|
||||
static const _scheme = 'arbiter';
|
||||
static const _certQueryKey = 'cert';
|
||||
static const _bootstrapTokenQueryKey = 'bootstrap_token';
|
||||
|
||||
static ArbiterUrl parse(String value) {
|
||||
final uri = Uri.tryParse(value);
|
||||
if (uri == null || uri.scheme != _scheme) {
|
||||
throw const FormatException("Invalid URL scheme, expected 'arbiter://'");
|
||||
}
|
||||
|
||||
if (uri.host.isEmpty) {
|
||||
throw const FormatException('Missing host in URL');
|
||||
}
|
||||
|
||||
if (!uri.hasPort) {
|
||||
throw const FormatException('Missing port in URL');
|
||||
}
|
||||
|
||||
final cert = uri.queryParameters[_certQueryKey];
|
||||
if (cert == null || cert.isEmpty) {
|
||||
throw const FormatException("Missing 'cert' query parameter in URL");
|
||||
}
|
||||
|
||||
final decodedCert = _decodeCert(cert);
|
||||
|
||||
return ArbiterUrl(
|
||||
host: uri.host,
|
||||
port: uri.port,
|
||||
caCert: decodedCert,
|
||||
bootstrapToken: uri.queryParameters[_bootstrapTokenQueryKey],
|
||||
);
|
||||
}
|
||||
|
||||
static List<int> _decodeCert(String cert) {
|
||||
try {
|
||||
return base64Url.decode(base64Url.normalize(cert));
|
||||
} on FormatException catch (error) {
|
||||
throw FormatException(
|
||||
"Invalid base64 in 'cert' query parameter: ${error.message}",
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,170 +1,170 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/features/connection/server_info_storage.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
import 'package:arbiter/proto/arbiter.pbgrpc.dart';
|
||||
import 'package:arbiter/proto/user_agent/auth.pb.dart' as ua_auth;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:arbiter/src/rust/api.dart';
|
||||
import 'package:grpc/grpc.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
|
||||
class AuthorizationException implements Exception {
|
||||
const AuthorizationException(this.result);
|
||||
|
||||
final ua_auth.AuthResult result;
|
||||
|
||||
String get message => switch (result) {
|
||||
ua_auth.AuthResult.AUTH_RESULT_INVALID_KEY =>
|
||||
'Authentication failed: this device key is not registered on the server.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_INVALID_SIGNATURE =>
|
||||
'Authentication failed: the server rejected the signature for this device key.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_BOOTSTRAP_REQUIRED =>
|
||||
'Authentication failed: the server requires bootstrap before this device can connect.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_TOKEN_INVALID =>
|
||||
'Authentication failed: the bootstrap token is invalid.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_INTERNAL =>
|
||||
'Authentication failed: the server hit an internal error.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_UNSPECIFIED =>
|
||||
'Authentication failed: the server returned an unspecified auth error.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_SUCCESS => 'Authentication succeeded.',
|
||||
_ => 'Authentication failed: ${result.name}.',
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() => message;
|
||||
}
|
||||
|
||||
class ConnectionException implements Exception {
|
||||
const ConnectionException(this.message);
|
||||
|
||||
final String message;
|
||||
|
||||
@override
|
||||
String toString() => message;
|
||||
}
|
||||
|
||||
Future<Connection> connectAndAuthorize(
|
||||
StoredServerInfo serverInfo,
|
||||
KeyHandle key, {
|
||||
String? bootstrapToken,
|
||||
}) async {
|
||||
Connection? connection;
|
||||
try {
|
||||
connection = await _connect(serverInfo);
|
||||
talker.info(
|
||||
'Connected to server at ${serverInfo.address}:${serverInfo.port}',
|
||||
);
|
||||
final pubkey = await key.getPublicKey();
|
||||
|
||||
final req = ua_auth.AuthChallengeRequest(
|
||||
pubkey: pubkey,
|
||||
bootstrapToken: bootstrapToken,
|
||||
);
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(auth: ua_auth.Request(challengeRequest: req)),
|
||||
);
|
||||
talker.info(
|
||||
"Sent auth challenge request with pubkey ${base64Encode(pubkey)}",
|
||||
);
|
||||
talker.info('Received response from server, checking auth flow...');
|
||||
|
||||
if (!response.hasAuth()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final authResponse = response.auth;
|
||||
|
||||
if (authResponse.hasResult()) {
|
||||
if (authResponse.result != ua_auth.AuthResult.AUTH_RESULT_SUCCESS) {
|
||||
throw AuthorizationException(authResponse.result);
|
||||
}
|
||||
talker.info('Authentication successful, connection established');
|
||||
return connection;
|
||||
}
|
||||
|
||||
if (!authResponse.hasChallenge()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth challenge response, got ${authResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final challenge = await formatChallenge(
|
||||
random: authResponse.challenge.random,
|
||||
timestamp: authResponse.challenge.timestampNanos.toInt(),
|
||||
);
|
||||
talker.info(
|
||||
'Received auth challenge, signing with key ${base64Encode(pubkey)}',
|
||||
);
|
||||
|
||||
final signature = await key.sign(challenge);
|
||||
final solutionResponse = await connection.ask(
|
||||
UserAgentRequest(
|
||||
auth: ua_auth.Request(
|
||||
challengeSolution: ua_auth.AuthChallengeSolution(
|
||||
signature: signature,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
talker.info('Sent auth challenge solution, waiting for server response...');
|
||||
|
||||
if (!solutionResponse.hasAuth()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth solution response, got ${solutionResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final authSolutionResponse = solutionResponse.auth;
|
||||
|
||||
if (!authSolutionResponse.hasResult()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth solution result, got ${authSolutionResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
if (authSolutionResponse.result != ua_auth.AuthResult.AUTH_RESULT_SUCCESS) {
|
||||
throw AuthorizationException(authSolutionResponse.result);
|
||||
}
|
||||
|
||||
talker.info('Authentication successful, connection established');
|
||||
return connection;
|
||||
} on AuthorizationException {
|
||||
await connection?.close();
|
||||
rethrow;
|
||||
} on GrpcError catch (error) {
|
||||
await connection?.close();
|
||||
throw ConnectionException('Failed to connect to server: ${error.message}');
|
||||
} catch (e) {
|
||||
await connection?.close();
|
||||
if (e is ConnectionException) {
|
||||
rethrow;
|
||||
}
|
||||
throw ConnectionException('Failed to connect to server: $e');
|
||||
}
|
||||
}
|
||||
|
||||
Future<Connection> _connect(StoredServerInfo serverInfo) async {
|
||||
final channel = ClientChannel(
|
||||
serverInfo.address,
|
||||
port: serverInfo.port,
|
||||
options: ChannelOptions(
|
||||
connectTimeout: const Duration(seconds: 10),
|
||||
credentials: ChannelCredentials.secure(
|
||||
onBadCertificate: (cert, host) {
|
||||
return true;
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final client = ArbiterServiceClient(channel);
|
||||
final tx = StreamController<UserAgentRequest>();
|
||||
final rx = client.userAgent(tx.stream);
|
||||
|
||||
return Connection(channel: channel, tx: tx, rx: rx);
|
||||
}
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/features/connection/server_info_storage.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
import 'package:arbiter/proto/arbiter.pbgrpc.dart';
|
||||
import 'package:arbiter/proto/user_agent/auth.pb.dart' as ua_auth;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:arbiter/src/rust/api.dart';
|
||||
import 'package:grpc/grpc.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
|
||||
class AuthorizationException implements Exception {
|
||||
const AuthorizationException(this.result);
|
||||
|
||||
final ua_auth.AuthResult result;
|
||||
|
||||
String get message => switch (result) {
|
||||
ua_auth.AuthResult.AUTH_RESULT_INVALID_KEY =>
|
||||
'Authentication failed: this device key is not registered on the server.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_INVALID_SIGNATURE =>
|
||||
'Authentication failed: the server rejected the signature for this device key.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_BOOTSTRAP_REQUIRED =>
|
||||
'Authentication failed: the server requires bootstrap before this device can connect.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_TOKEN_INVALID =>
|
||||
'Authentication failed: the bootstrap token is invalid.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_INTERNAL =>
|
||||
'Authentication failed: the server hit an internal error.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_UNSPECIFIED =>
|
||||
'Authentication failed: the server returned an unspecified auth error.',
|
||||
ua_auth.AuthResult.AUTH_RESULT_SUCCESS => 'Authentication succeeded.',
|
||||
_ => 'Authentication failed: ${result.name}.',
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() => message;
|
||||
}
|
||||
|
||||
class ConnectionException implements Exception {
|
||||
const ConnectionException(this.message);
|
||||
|
||||
final String message;
|
||||
|
||||
@override
|
||||
String toString() => message;
|
||||
}
|
||||
|
||||
Future<Connection> connectAndAuthorize(
|
||||
StoredServerInfo serverInfo,
|
||||
KeyHandle key, {
|
||||
String? bootstrapToken,
|
||||
}) async {
|
||||
Connection? connection;
|
||||
try {
|
||||
connection = await _connect(serverInfo);
|
||||
talker.info(
|
||||
'Connected to server at ${serverInfo.address}:${serverInfo.port}',
|
||||
);
|
||||
final pubkey = await key.getPublicKey();
|
||||
|
||||
final req = ua_auth.AuthChallengeRequest(
|
||||
pubkey: pubkey,
|
||||
bootstrapToken: bootstrapToken,
|
||||
);
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(auth: ua_auth.Request(challengeRequest: req)),
|
||||
);
|
||||
talker.info(
|
||||
"Sent auth challenge request with pubkey ${base64Encode(pubkey)}",
|
||||
);
|
||||
talker.info('Received response from server, checking auth flow...');
|
||||
|
||||
if (!response.hasAuth()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final authResponse = response.auth;
|
||||
|
||||
if (authResponse.hasResult()) {
|
||||
if (authResponse.result != ua_auth.AuthResult.AUTH_RESULT_SUCCESS) {
|
||||
throw AuthorizationException(authResponse.result);
|
||||
}
|
||||
talker.info('Authentication successful, connection established');
|
||||
return connection;
|
||||
}
|
||||
|
||||
if (!authResponse.hasChallenge()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth challenge response, got ${authResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final challenge = await formatChallenge(
|
||||
random: authResponse.challenge.random,
|
||||
timestamp: authResponse.challenge.timestampNanos.toInt(),
|
||||
);
|
||||
talker.info(
|
||||
'Received auth challenge, signing with key ${base64Encode(pubkey)}',
|
||||
);
|
||||
|
||||
final signature = await key.sign(challenge);
|
||||
final solutionResponse = await connection.ask(
|
||||
UserAgentRequest(
|
||||
auth: ua_auth.Request(
|
||||
challengeSolution: ua_auth.AuthChallengeSolution(
|
||||
signature: signature,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
talker.info('Sent auth challenge solution, waiting for server response...');
|
||||
|
||||
if (!solutionResponse.hasAuth()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth solution response, got ${solutionResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final authSolutionResponse = solutionResponse.auth;
|
||||
|
||||
if (!authSolutionResponse.hasResult()) {
|
||||
throw ConnectionException(
|
||||
'Expected auth solution result, got ${authSolutionResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
if (authSolutionResponse.result != ua_auth.AuthResult.AUTH_RESULT_SUCCESS) {
|
||||
throw AuthorizationException(authSolutionResponse.result);
|
||||
}
|
||||
|
||||
talker.info('Authentication successful, connection established');
|
||||
return connection;
|
||||
} on AuthorizationException {
|
||||
await connection?.close();
|
||||
rethrow;
|
||||
} on GrpcError catch (error) {
|
||||
await connection?.close();
|
||||
throw ConnectionException('Failed to connect to server: ${error.message}');
|
||||
} catch (e) {
|
||||
await connection?.close();
|
||||
if (e is ConnectionException) {
|
||||
rethrow;
|
||||
}
|
||||
throw ConnectionException('Failed to connect to server: $e');
|
||||
}
|
||||
}
|
||||
|
||||
Future<Connection> _connect(StoredServerInfo serverInfo) async {
|
||||
final channel = ClientChannel(
|
||||
serverInfo.address,
|
||||
port: serverInfo.port,
|
||||
options: ChannelOptions(
|
||||
connectTimeout: const Duration(seconds: 10),
|
||||
credentials: ChannelCredentials.secure(
|
||||
onBadCertificate: (cert, host) {
|
||||
return true;
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final client = ArbiterServiceClient(channel);
|
||||
final tx = StreamController<UserAgentRequest>();
|
||||
final rx = client.userAgent(tx.stream);
|
||||
|
||||
return Connection(channel: channel, tx: tx, rx: rx);
|
||||
}
|
||||
|
||||
@@ -1,136 +1,136 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:grpc/grpc.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
|
||||
class Connection {
|
||||
Connection({
|
||||
required this.channel,
|
||||
required StreamController<UserAgentRequest> tx,
|
||||
required ResponseStream<UserAgentResponse> rx,
|
||||
}) : _tx = tx {
|
||||
_rxSubscription = rx.listen(
|
||||
_handleResponse,
|
||||
onError: _handleError,
|
||||
onDone: _handleDone,
|
||||
cancelOnError: true,
|
||||
);
|
||||
}
|
||||
|
||||
final ClientChannel channel;
|
||||
final StreamController<UserAgentRequest> _tx;
|
||||
final Map<int, Completer<UserAgentResponse>> _pendingRequests = {};
|
||||
final StreamController<UserAgentResponse> _outOfBandMessages =
|
||||
StreamController<UserAgentResponse>.broadcast();
|
||||
|
||||
StreamSubscription<UserAgentResponse>? _rxSubscription;
|
||||
int _nextRequestId = 0;
|
||||
|
||||
Stream<UserAgentResponse> get outOfBandMessages => _outOfBandMessages.stream;
|
||||
|
||||
Future<UserAgentResponse> ask(UserAgentRequest message) async {
|
||||
_ensureOpen();
|
||||
|
||||
final requestId = _nextRequestId++;
|
||||
final completer = Completer<UserAgentResponse>();
|
||||
_pendingRequests[requestId] = completer;
|
||||
|
||||
message.id = requestId;
|
||||
talker.debug('Sending request: ${message.toDebugString()}');
|
||||
|
||||
try {
|
||||
_tx.add(message);
|
||||
} catch (error, stackTrace) {
|
||||
_pendingRequests.remove(requestId);
|
||||
completer.completeError(error, stackTrace);
|
||||
}
|
||||
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
Future<void> tell(UserAgentRequest message) async {
|
||||
_ensureOpen();
|
||||
|
||||
final requestId = _nextRequestId++;
|
||||
message.id = requestId;
|
||||
|
||||
talker.debug('Sending message: ${message.toDebugString()}');
|
||||
|
||||
try {
|
||||
_tx.add(message);
|
||||
} catch (error, stackTrace) {
|
||||
talker.error('Failed to send message: $error', error, stackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> close() async {
|
||||
talker.debug('Closing connection...');
|
||||
final rxSubscription = _rxSubscription;
|
||||
if (rxSubscription == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
_rxSubscription = null;
|
||||
await rxSubscription.cancel();
|
||||
_failPendingRequests(Exception('Connection closed.'));
|
||||
await _outOfBandMessages.close();
|
||||
await _tx.close();
|
||||
await channel.shutdown();
|
||||
}
|
||||
|
||||
void _handleResponse(UserAgentResponse response) {
|
||||
talker.debug('Received response: ${response.toDebugString()}');
|
||||
|
||||
if (response.hasId()) {
|
||||
final completer = _pendingRequests.remove(response.id);
|
||||
if (completer == null) {
|
||||
talker.warning(
|
||||
'Received response for unknown request id ${response.id}',
|
||||
);
|
||||
return;
|
||||
}
|
||||
completer.complete(response);
|
||||
return;
|
||||
}
|
||||
|
||||
_outOfBandMessages.add(response);
|
||||
}
|
||||
|
||||
void _handleError(Object error, StackTrace stackTrace) {
|
||||
_rxSubscription = null;
|
||||
_failPendingRequests(error, stackTrace);
|
||||
_outOfBandMessages.addError(error, stackTrace);
|
||||
}
|
||||
|
||||
void _handleDone() {
|
||||
talker.debug('Connection closed by server.');
|
||||
if (_rxSubscription == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
_rxSubscription = null;
|
||||
final error = Exception(
|
||||
'Connection closed while waiting for server response.',
|
||||
);
|
||||
_failPendingRequests(error);
|
||||
_outOfBandMessages.close();
|
||||
}
|
||||
|
||||
void _failPendingRequests(Object error, [StackTrace? stackTrace]) {
|
||||
final pendingRequests = _pendingRequests.values.toList(growable: false);
|
||||
_pendingRequests.clear();
|
||||
|
||||
for (final completer in pendingRequests) {
|
||||
if (!completer.isCompleted) {
|
||||
completer.completeError(error, stackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _ensureOpen() {
|
||||
if (_rxSubscription == null) {
|
||||
throw StateError('Connection is closed.');
|
||||
}
|
||||
}
|
||||
}
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:grpc/grpc.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
|
||||
class Connection {
|
||||
Connection({
|
||||
required this.channel,
|
||||
required StreamController<UserAgentRequest> tx,
|
||||
required ResponseStream<UserAgentResponse> rx,
|
||||
}) : _tx = tx {
|
||||
_rxSubscription = rx.listen(
|
||||
_handleResponse,
|
||||
onError: _handleError,
|
||||
onDone: _handleDone,
|
||||
cancelOnError: true,
|
||||
);
|
||||
}
|
||||
|
||||
final ClientChannel channel;
|
||||
final StreamController<UserAgentRequest> _tx;
|
||||
final Map<int, Completer<UserAgentResponse>> _pendingRequests = {};
|
||||
final StreamController<UserAgentResponse> _outOfBandMessages =
|
||||
StreamController<UserAgentResponse>.broadcast();
|
||||
|
||||
StreamSubscription<UserAgentResponse>? _rxSubscription;
|
||||
int _nextRequestId = 0;
|
||||
|
||||
Stream<UserAgentResponse> get outOfBandMessages => _outOfBandMessages.stream;
|
||||
|
||||
Future<UserAgentResponse> ask(UserAgentRequest message) async {
|
||||
_ensureOpen();
|
||||
|
||||
final requestId = _nextRequestId++;
|
||||
final completer = Completer<UserAgentResponse>();
|
||||
_pendingRequests[requestId] = completer;
|
||||
|
||||
message.id = requestId;
|
||||
talker.debug('Sending request: ${message.toDebugString()}');
|
||||
|
||||
try {
|
||||
_tx.add(message);
|
||||
} catch (error, stackTrace) {
|
||||
_pendingRequests.remove(requestId);
|
||||
completer.completeError(error, stackTrace);
|
||||
}
|
||||
|
||||
return completer.future;
|
||||
}
|
||||
|
||||
Future<void> tell(UserAgentRequest message) async {
|
||||
_ensureOpen();
|
||||
|
||||
final requestId = _nextRequestId++;
|
||||
message.id = requestId;
|
||||
|
||||
talker.debug('Sending message: ${message.toDebugString()}');
|
||||
|
||||
try {
|
||||
_tx.add(message);
|
||||
} catch (error, stackTrace) {
|
||||
talker.error('Failed to send message: $error', error, stackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> close() async {
|
||||
talker.debug('Closing connection...');
|
||||
final rxSubscription = _rxSubscription;
|
||||
if (rxSubscription == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
_rxSubscription = null;
|
||||
await rxSubscription.cancel();
|
||||
_failPendingRequests(Exception('Connection closed.'));
|
||||
await _outOfBandMessages.close();
|
||||
await _tx.close();
|
||||
await channel.shutdown();
|
||||
}
|
||||
|
||||
void _handleResponse(UserAgentResponse response) {
|
||||
talker.debug('Received response: ${response.toDebugString()}');
|
||||
|
||||
if (response.hasId()) {
|
||||
final completer = _pendingRequests.remove(response.id);
|
||||
if (completer == null) {
|
||||
talker.warning(
|
||||
'Received response for unknown request id ${response.id}',
|
||||
);
|
||||
return;
|
||||
}
|
||||
completer.complete(response);
|
||||
return;
|
||||
}
|
||||
|
||||
_outOfBandMessages.add(response);
|
||||
}
|
||||
|
||||
void _handleError(Object error, StackTrace stackTrace) {
|
||||
_rxSubscription = null;
|
||||
_failPendingRequests(error, stackTrace);
|
||||
_outOfBandMessages.addError(error, stackTrace);
|
||||
}
|
||||
|
||||
void _handleDone() {
|
||||
talker.debug('Connection closed by server.');
|
||||
if (_rxSubscription == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
_rxSubscription = null;
|
||||
final error = Exception(
|
||||
'Connection closed while waiting for server response.',
|
||||
);
|
||||
_failPendingRequests(error);
|
||||
_outOfBandMessages.close();
|
||||
}
|
||||
|
||||
void _failPendingRequests(Object error, [StackTrace? stackTrace]) {
|
||||
final pendingRequests = _pendingRequests.values.toList(growable: false);
|
||||
_pendingRequests.clear();
|
||||
|
||||
for (final completer in pendingRequests) {
|
||||
if (!completer.isCompleted) {
|
||||
completer.completeError(error, stackTrace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _ensureOpen() {
|
||||
if (_rxSubscription == null) {
|
||||
throw StateError('Connection is closed.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,67 +1,67 @@
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/proto/user_agent/evm.pb.dart' as ua_evm;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart';
|
||||
|
||||
Future<List<WalletEntry>> listEvmWallets(Connection connection) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(walletList: Empty())),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasWalletList()) {
|
||||
throw Exception(
|
||||
'Expected EVM wallet list response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.walletList;
|
||||
switch (result.whichResult()) {
|
||||
case WalletListResponse_Result.wallets:
|
||||
return result.wallets.wallets.toList(growable: false);
|
||||
case WalletListResponse_Result.error:
|
||||
throw Exception(_describeEvmError(result.error));
|
||||
case WalletListResponse_Result.notSet:
|
||||
throw Exception('EVM wallet list response was empty.');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> createEvmWallet(Connection connection) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(walletCreate: Empty())),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasWalletCreate()) {
|
||||
throw Exception(
|
||||
'Expected EVM wallet create response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.walletCreate;
|
||||
switch (result.whichResult()) {
|
||||
case WalletCreateResponse_Result.wallet:
|
||||
return;
|
||||
case WalletCreateResponse_Result.error:
|
||||
throw Exception(_describeEvmError(result.error));
|
||||
case WalletCreateResponse_Result.notSet:
|
||||
throw Exception('Wallet creation returned no result.');
|
||||
}
|
||||
}
|
||||
|
||||
String _describeEvmError(EvmError error) {
|
||||
return switch (error) {
|
||||
EvmError.EVM_ERROR_VAULT_SEALED =>
|
||||
'The vault is sealed. Unseal it before using EVM wallets.',
|
||||
EvmError.EVM_ERROR_INTERNAL || EvmError.EVM_ERROR_UNSPECIFIED =>
|
||||
'The server failed to process the EVM request.',
|
||||
_ => 'The server failed to process the EVM request.',
|
||||
};
|
||||
}
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/proto/user_agent/evm.pb.dart' as ua_evm;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart';
|
||||
|
||||
Future<List<WalletEntry>> listEvmWallets(Connection connection) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(walletList: Empty())),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasWalletList()) {
|
||||
throw Exception(
|
||||
'Expected EVM wallet list response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.walletList;
|
||||
switch (result.whichResult()) {
|
||||
case WalletListResponse_Result.wallets:
|
||||
return result.wallets.wallets.toList(growable: false);
|
||||
case WalletListResponse_Result.error:
|
||||
throw Exception(_describeEvmError(result.error));
|
||||
case WalletListResponse_Result.notSet:
|
||||
throw Exception('EVM wallet list response was empty.');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> createEvmWallet(Connection connection) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(walletCreate: Empty())),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasWalletCreate()) {
|
||||
throw Exception(
|
||||
'Expected EVM wallet create response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.walletCreate;
|
||||
switch (result.whichResult()) {
|
||||
case WalletCreateResponse_Result.wallet:
|
||||
return;
|
||||
case WalletCreateResponse_Result.error:
|
||||
throw Exception(_describeEvmError(result.error));
|
||||
case WalletCreateResponse_Result.notSet:
|
||||
throw Exception('Wallet creation returned no result.');
|
||||
}
|
||||
}
|
||||
|
||||
String _describeEvmError(EvmError error) {
|
||||
return switch (error) {
|
||||
EvmError.EVM_ERROR_VAULT_SEALED =>
|
||||
'The vault is sealed. Unseal it before using EVM wallets.',
|
||||
EvmError.EVM_ERROR_INTERNAL || EvmError.EVM_ERROR_UNSPECIFIED =>
|
||||
'The server failed to process the EVM request.',
|
||||
_ => 'The server failed to process the EVM request.',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,102 +1,102 @@
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/proto/user_agent/evm.pb.dart' as ua_evm;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
|
||||
Future<List<GrantEntry>> listEvmGrants(Connection connection) async {
|
||||
final request = EvmGrantListRequest();
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(grantList: request)),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasGrantList()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant list response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantList;
|
||||
switch (result.whichResult()) {
|
||||
case EvmGrantListResponse_Result.grants:
|
||||
return result.grants.grants.toList(growable: false);
|
||||
case EvmGrantListResponse_Result.error:
|
||||
throw Exception(_describeGrantError(result.error));
|
||||
case EvmGrantListResponse_Result.notSet:
|
||||
throw Exception('EVM grant list response was empty.');
|
||||
}
|
||||
}
|
||||
|
||||
Future<int> createEvmGrant(
|
||||
Connection connection, {
|
||||
required SharedSettings sharedSettings,
|
||||
required SpecificGrant specific,
|
||||
}) async {
|
||||
final request = UserAgentRequest(
|
||||
evm: ua_evm.Request(
|
||||
grantCreate: EvmGrantCreateRequest(
|
||||
shared: sharedSettings,
|
||||
specific: specific,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final resp = await connection.ask(request);
|
||||
|
||||
if (!resp.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${resp.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = resp.evm;
|
||||
if (!evmResponse.hasGrantCreate()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant create response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantCreate;
|
||||
|
||||
return result.grantId;
|
||||
}
|
||||
|
||||
Future<void> deleteEvmGrant(Connection connection, int grantId) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
evm: ua_evm.Request(grantDelete: EvmGrantDeleteRequest(grantId: grantId)),
|
||||
),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasGrantDelete()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant delete response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantDelete;
|
||||
switch (result.whichResult()) {
|
||||
case EvmGrantDeleteResponse_Result.ok:
|
||||
return;
|
||||
case EvmGrantDeleteResponse_Result.error:
|
||||
throw Exception(_describeGrantError(result.error));
|
||||
case EvmGrantDeleteResponse_Result.notSet:
|
||||
throw Exception('Grant revoke returned no result.');
|
||||
}
|
||||
}
|
||||
|
||||
String _describeGrantError(EvmError error) {
|
||||
return switch (error) {
|
||||
EvmError.EVM_ERROR_VAULT_SEALED =>
|
||||
'The vault is sealed. Unseal it before using EVM grants.',
|
||||
EvmError.EVM_ERROR_INTERNAL || EvmError.EVM_ERROR_UNSPECIFIED =>
|
||||
'The server failed to process the EVM grant request.',
|
||||
_ => 'The server failed to process the EVM grant request.',
|
||||
};
|
||||
}
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/proto/user_agent/evm.pb.dart' as ua_evm;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
|
||||
Future<List<GrantEntry>> listEvmGrants(Connection connection) async {
|
||||
final request = EvmGrantListRequest();
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(evm: ua_evm.Request(grantList: request)),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasGrantList()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant list response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantList;
|
||||
switch (result.whichResult()) {
|
||||
case EvmGrantListResponse_Result.grants:
|
||||
return result.grants.grants.toList(growable: false);
|
||||
case EvmGrantListResponse_Result.error:
|
||||
throw Exception(_describeGrantError(result.error));
|
||||
case EvmGrantListResponse_Result.notSet:
|
||||
throw Exception('EVM grant list response was empty.');
|
||||
}
|
||||
}
|
||||
|
||||
Future<int> createEvmGrant(
|
||||
Connection connection, {
|
||||
required SharedSettings sharedSettings,
|
||||
required SpecificGrant specific,
|
||||
}) async {
|
||||
final request = UserAgentRequest(
|
||||
evm: ua_evm.Request(
|
||||
grantCreate: EvmGrantCreateRequest(
|
||||
shared: sharedSettings,
|
||||
specific: specific,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
final resp = await connection.ask(request);
|
||||
|
||||
if (!resp.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${resp.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = resp.evm;
|
||||
if (!evmResponse.hasGrantCreate()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant create response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantCreate;
|
||||
|
||||
return result.grantId;
|
||||
}
|
||||
|
||||
Future<void> deleteEvmGrant(Connection connection, int grantId) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
evm: ua_evm.Request(grantDelete: EvmGrantDeleteRequest(grantId: grantId)),
|
||||
),
|
||||
);
|
||||
if (!response.hasEvm()) {
|
||||
throw Exception('Expected EVM response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final evmResponse = response.evm;
|
||||
if (!evmResponse.hasGrantDelete()) {
|
||||
throw Exception(
|
||||
'Expected EVM grant delete response, got ${evmResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final result = evmResponse.grantDelete;
|
||||
switch (result.whichResult()) {
|
||||
case EvmGrantDeleteResponse_Result.ok:
|
||||
return;
|
||||
case EvmGrantDeleteResponse_Result.error:
|
||||
throw Exception(_describeGrantError(result.error));
|
||||
case EvmGrantDeleteResponse_Result.notSet:
|
||||
throw Exception('Grant revoke returned no result.');
|
||||
}
|
||||
}
|
||||
|
||||
String _describeGrantError(EvmError error) {
|
||||
return switch (error) {
|
||||
EvmError.EVM_ERROR_VAULT_SEALED =>
|
||||
'The vault is sealed. Unseal it before using EVM grants.',
|
||||
EvmError.EVM_ERROR_INTERNAL || EvmError.EVM_ERROR_UNSPECIFIED =>
|
||||
'The server failed to process the EVM grant request.',
|
||||
_ => 'The server failed to process the EVM grant request.',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,86 +1,86 @@
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/user_agent/sdk_client.pb.dart' as ua_sdk;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart';
|
||||
|
||||
Future<Set<int>> readClientWalletAccess(
|
||||
Connection connection, {
|
||||
required int clientId,
|
||||
}) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(sdkClient: ua_sdk.Request(listWalletAccess: Empty())),
|
||||
);
|
||||
if (!response.hasSdkClient()) {
|
||||
throw Exception(
|
||||
'Expected SDK client response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
final sdkClientResponse = response.sdkClient;
|
||||
if (!sdkClientResponse.hasListWalletAccess()) {
|
||||
throw Exception(
|
||||
'Expected list wallet access response, got ${sdkClientResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
return {
|
||||
for (final entry in sdkClientResponse.listWalletAccess.accesses)
|
||||
if (entry.access.sdkClientId == clientId) entry.access.walletId,
|
||||
};
|
||||
}
|
||||
|
||||
Future<List<ua_sdk.WalletAccessEntry>> listAllWalletAccesses(
|
||||
Connection connection,
|
||||
) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(sdkClient: ua_sdk.Request(listWalletAccess: Empty())),
|
||||
);
|
||||
if (!response.hasSdkClient()) {
|
||||
throw Exception(
|
||||
'Expected SDK client response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
final sdkClientResponse = response.sdkClient;
|
||||
if (!sdkClientResponse.hasListWalletAccess()) {
|
||||
throw Exception(
|
||||
'Expected list wallet access response, got ${sdkClientResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
return sdkClientResponse.listWalletAccess.accesses.toList(growable: false);
|
||||
}
|
||||
|
||||
Future<void> writeClientWalletAccess(
|
||||
Connection connection, {
|
||||
required int clientId,
|
||||
required Set<int> walletIds,
|
||||
}) async {
|
||||
final current = await readClientWalletAccess(connection, clientId: clientId);
|
||||
|
||||
final toGrant = walletIds.difference(current);
|
||||
final toRevoke = current.difference(walletIds);
|
||||
|
||||
if (toGrant.isNotEmpty) {
|
||||
await connection.tell(
|
||||
UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
grantWalletAccess: ua_sdk.GrantWalletAccess(
|
||||
accesses: [
|
||||
for (final walletId in toGrant)
|
||||
ua_sdk.WalletAccess(sdkClientId: clientId, walletId: walletId),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if (toRevoke.isNotEmpty) {
|
||||
await connection.tell(
|
||||
UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
revokeWalletAccess: ua_sdk.RevokeWalletAccess(
|
||||
accesses: [for (final walletId in toRevoke) walletId],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/user_agent/sdk_client.pb.dart' as ua_sdk;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart';
|
||||
|
||||
Future<Set<int>> readClientWalletAccess(
|
||||
Connection connection, {
|
||||
required int clientId,
|
||||
}) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(sdkClient: ua_sdk.Request(listWalletAccess: Empty())),
|
||||
);
|
||||
if (!response.hasSdkClient()) {
|
||||
throw Exception(
|
||||
'Expected SDK client response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
final sdkClientResponse = response.sdkClient;
|
||||
if (!sdkClientResponse.hasListWalletAccess()) {
|
||||
throw Exception(
|
||||
'Expected list wallet access response, got ${sdkClientResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
return {
|
||||
for (final entry in sdkClientResponse.listWalletAccess.accesses)
|
||||
if (entry.access.sdkClientId == clientId) entry.access.walletId,
|
||||
};
|
||||
}
|
||||
|
||||
Future<List<ua_sdk.WalletAccessEntry>> listAllWalletAccesses(
|
||||
Connection connection,
|
||||
) async {
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(sdkClient: ua_sdk.Request(listWalletAccess: Empty())),
|
||||
);
|
||||
if (!response.hasSdkClient()) {
|
||||
throw Exception(
|
||||
'Expected SDK client response, got ${response.whichPayload()}',
|
||||
);
|
||||
}
|
||||
final sdkClientResponse = response.sdkClient;
|
||||
if (!sdkClientResponse.hasListWalletAccess()) {
|
||||
throw Exception(
|
||||
'Expected list wallet access response, got ${sdkClientResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
return sdkClientResponse.listWalletAccess.accesses.toList(growable: false);
|
||||
}
|
||||
|
||||
Future<void> writeClientWalletAccess(
|
||||
Connection connection, {
|
||||
required int clientId,
|
||||
required Set<int> walletIds,
|
||||
}) async {
|
||||
final current = await readClientWalletAccess(connection, clientId: clientId);
|
||||
|
||||
final toGrant = walletIds.difference(current);
|
||||
final toRevoke = current.difference(walletIds);
|
||||
|
||||
if (toGrant.isNotEmpty) {
|
||||
await connection.tell(
|
||||
UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
grantWalletAccess: ua_sdk.GrantWalletAccess(
|
||||
accesses: [
|
||||
for (final walletId in toGrant)
|
||||
ua_sdk.WalletAccess(sdkClientId: clientId, walletId: walletId),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
if (toRevoke.isNotEmpty) {
|
||||
await connection.tell(
|
||||
UserAgentRequest(
|
||||
sdkClient: ua_sdk.Request(
|
||||
revokeWalletAccess: ua_sdk.RevokeWalletAccess(
|
||||
accesses: [for (final walletId in toRevoke) walletId],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'server_info_storage.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class StoredServerInfo {
|
||||
const StoredServerInfo({
|
||||
required this.address,
|
||||
required this.port,
|
||||
required this.caCertFingerprint,
|
||||
});
|
||||
|
||||
final String address;
|
||||
final int port;
|
||||
final String caCertFingerprint;
|
||||
|
||||
factory StoredServerInfo.fromJson(Map<String, dynamic> json) =>
|
||||
_$StoredServerInfoFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$StoredServerInfoToJson(this);
|
||||
}
|
||||
|
||||
abstract class ServerInfoStorage {
|
||||
Future<StoredServerInfo?> load();
|
||||
Future<void> save(StoredServerInfo serverInfo);
|
||||
Future<void> clear();
|
||||
}
|
||||
|
||||
class SecureServerInfoStorage implements ServerInfoStorage {
|
||||
static const _storageKey = 'server_info';
|
||||
|
||||
const SecureServerInfoStorage();
|
||||
|
||||
static const _storage = FlutterSecureStorage();
|
||||
|
||||
@override
|
||||
Future<StoredServerInfo?> load() async {
|
||||
return null;
|
||||
final rawValue = await _storage.read(key: _storageKey);
|
||||
if (rawValue == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final decoded = jsonDecode(rawValue) as Map<String, dynamic>;
|
||||
return StoredServerInfo.fromJson(decoded);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> save(StoredServerInfo serverInfo) {
|
||||
return _storage.write(
|
||||
key: _storageKey,
|
||||
value: jsonEncode(serverInfo.toJson()),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> clear() {
|
||||
return _storage.delete(key: _storageKey);
|
||||
}
|
||||
}
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'server_info_storage.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class StoredServerInfo {
|
||||
const StoredServerInfo({
|
||||
required this.address,
|
||||
required this.port,
|
||||
required this.caCertFingerprint,
|
||||
});
|
||||
|
||||
final String address;
|
||||
final int port;
|
||||
final String caCertFingerprint;
|
||||
|
||||
factory StoredServerInfo.fromJson(Map<String, dynamic> json) =>
|
||||
_$StoredServerInfoFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$StoredServerInfoToJson(this);
|
||||
}
|
||||
|
||||
abstract class ServerInfoStorage {
|
||||
Future<StoredServerInfo?> load();
|
||||
Future<void> save(StoredServerInfo serverInfo);
|
||||
Future<void> clear();
|
||||
}
|
||||
|
||||
class SecureServerInfoStorage implements ServerInfoStorage {
|
||||
static const _storageKey = 'server_info';
|
||||
|
||||
const SecureServerInfoStorage();
|
||||
|
||||
static const _storage = FlutterSecureStorage();
|
||||
|
||||
@override
|
||||
Future<StoredServerInfo?> load() async {
|
||||
return null;
|
||||
final rawValue = await _storage.read(key: _storageKey);
|
||||
if (rawValue == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final decoded = jsonDecode(rawValue) as Map<String, dynamic>;
|
||||
return StoredServerInfo.fromJson(decoded);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> save(StoredServerInfo serverInfo) {
|
||||
return _storage.write(
|
||||
key: _storageKey,
|
||||
value: jsonEncode(serverInfo.toJson()),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> clear() {
|
||||
return _storage.delete(key: _storageKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'server_info_storage.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
StoredServerInfo _$StoredServerInfoFromJson(Map<String, dynamic> json) =>
|
||||
StoredServerInfo(
|
||||
address: json['address'] as String,
|
||||
port: (json['port'] as num).toInt(),
|
||||
caCertFingerprint: json['caCertFingerprint'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$StoredServerInfoToJson(StoredServerInfo instance) =>
|
||||
<String, dynamic>{
|
||||
'address': instance.address,
|
||||
'port': instance.port,
|
||||
'caCertFingerprint': instance.caCertFingerprint,
|
||||
};
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'server_info_storage.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
StoredServerInfo _$StoredServerInfoFromJson(Map<String, dynamic> json) =>
|
||||
StoredServerInfo(
|
||||
address: json['address'] as String,
|
||||
port: (json['port'] as num).toInt(),
|
||||
caCertFingerprint: json['caCertFingerprint'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$StoredServerInfoToJson(StoredServerInfo instance) =>
|
||||
<String, dynamic>{
|
||||
'address': instance.address,
|
||||
'port': instance.port,
|
||||
'caCertFingerprint': instance.caCertFingerprint,
|
||||
};
|
||||
|
||||
@@ -1,160 +1,160 @@
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/user_agent/vault/bootstrap.pb.dart'
|
||||
as ua_bootstrap;
|
||||
import 'package:arbiter/proto/user_agent/vault/unseal.pb.dart' as ua_unseal;
|
||||
import 'package:arbiter/proto/user_agent/vault/vault.pb.dart' as ua_vault;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:cryptography/cryptography.dart';
|
||||
|
||||
const _vaultKeyAssociatedData = 'arbiter.vault.password';
|
||||
|
||||
Future<ua_bootstrap.BootstrapResult> bootstrapVault(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final encryptedKey = await _encryptVaultKeyMaterial(connection, password);
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
bootstrap: ua_bootstrap.Request(
|
||||
encryptedKey: ua_bootstrap.BootstrapEncryptedKey(
|
||||
nonce: encryptedKey.nonce,
|
||||
ciphertext: encryptedKey.ciphertext,
|
||||
associatedData: encryptedKey.associatedData,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!response.hasVault()) {
|
||||
throw Exception('Expected vault response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final vaultResponse = response.vault;
|
||||
if (!vaultResponse.hasBootstrap()) {
|
||||
throw Exception(
|
||||
'Expected bootstrap result, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final bootstrapResponse = vaultResponse.bootstrap;
|
||||
if (!bootstrapResponse.hasResult()) {
|
||||
throw Exception('Expected bootstrap result payload.');
|
||||
}
|
||||
|
||||
return bootstrapResponse.result;
|
||||
}
|
||||
|
||||
Future<ua_unseal.UnsealResult> unsealVault(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final encryptedKey = await _encryptVaultKeyMaterial(connection, password);
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
unseal: ua_unseal.Request(
|
||||
encryptedKey: ua_unseal.UnsealEncryptedKey(
|
||||
nonce: encryptedKey.nonce,
|
||||
ciphertext: encryptedKey.ciphertext,
|
||||
associatedData: encryptedKey.associatedData,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!response.hasVault()) {
|
||||
throw Exception('Expected vault response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final vaultResponse = response.vault;
|
||||
if (!vaultResponse.hasUnseal()) {
|
||||
throw Exception(
|
||||
'Expected unseal result, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final unsealResponse = vaultResponse.unseal;
|
||||
if (!unsealResponse.hasResult()) {
|
||||
throw Exception(
|
||||
'Expected unseal result payload, got ${unsealResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
return unsealResponse.result;
|
||||
}
|
||||
|
||||
Future<_EncryptedVaultKey> _encryptVaultKeyMaterial(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final keyExchange = X25519();
|
||||
final cipher = Xchacha20.poly1305Aead();
|
||||
final clientKeyPair = await keyExchange.newKeyPair();
|
||||
final clientPublicKey = await clientKeyPair.extractPublicKey();
|
||||
|
||||
final handshakeResponse = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
unseal: ua_unseal.Request(
|
||||
start: ua_unseal.UnsealStart(clientPubkey: clientPublicKey.bytes),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!handshakeResponse.hasVault()) {
|
||||
throw Exception(
|
||||
'Expected vault response, got ${handshakeResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final vaultResponse = handshakeResponse.vault;
|
||||
if (!vaultResponse.hasUnseal()) {
|
||||
throw Exception(
|
||||
'Expected unseal handshake response, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final unsealResponse = vaultResponse.unseal;
|
||||
if (!unsealResponse.hasStart()) {
|
||||
throw Exception(
|
||||
'Expected unseal handshake payload, got ${unsealResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final serverPublicKey = SimplePublicKey(
|
||||
unsealResponse.start.serverPubkey,
|
||||
type: KeyPairType.x25519,
|
||||
);
|
||||
final sharedSecret = await keyExchange.sharedSecretKey(
|
||||
keyPair: clientKeyPair,
|
||||
remotePublicKey: serverPublicKey,
|
||||
);
|
||||
|
||||
final secretBox = await cipher.encrypt(
|
||||
password.codeUnits,
|
||||
secretKey: sharedSecret,
|
||||
nonce: cipher.newNonce(),
|
||||
aad: _vaultKeyAssociatedData.codeUnits,
|
||||
);
|
||||
|
||||
return _EncryptedVaultKey(
|
||||
nonce: secretBox.nonce,
|
||||
ciphertext: [...secretBox.cipherText, ...secretBox.mac.bytes],
|
||||
associatedData: _vaultKeyAssociatedData.codeUnits,
|
||||
);
|
||||
}
|
||||
|
||||
class _EncryptedVaultKey {
|
||||
const _EncryptedVaultKey({
|
||||
required this.nonce,
|
||||
required this.ciphertext,
|
||||
required this.associatedData,
|
||||
});
|
||||
|
||||
final List<int> nonce;
|
||||
final List<int> ciphertext;
|
||||
final List<int> associatedData;
|
||||
}
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/proto/user_agent/vault/bootstrap.pb.dart'
|
||||
as ua_bootstrap;
|
||||
import 'package:arbiter/proto/user_agent/vault/unseal.pb.dart' as ua_unseal;
|
||||
import 'package:arbiter/proto/user_agent/vault/vault.pb.dart' as ua_vault;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart';
|
||||
import 'package:cryptography/cryptography.dart';
|
||||
|
||||
const _vaultKeyAssociatedData = 'arbiter.vault.password';
|
||||
|
||||
Future<ua_bootstrap.BootstrapResult> bootstrapVault(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final encryptedKey = await _encryptVaultKeyMaterial(connection, password);
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
bootstrap: ua_bootstrap.Request(
|
||||
encryptedKey: ua_bootstrap.BootstrapEncryptedKey(
|
||||
nonce: encryptedKey.nonce,
|
||||
ciphertext: encryptedKey.ciphertext,
|
||||
associatedData: encryptedKey.associatedData,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!response.hasVault()) {
|
||||
throw Exception('Expected vault response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final vaultResponse = response.vault;
|
||||
if (!vaultResponse.hasBootstrap()) {
|
||||
throw Exception(
|
||||
'Expected bootstrap result, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final bootstrapResponse = vaultResponse.bootstrap;
|
||||
if (!bootstrapResponse.hasResult()) {
|
||||
throw Exception('Expected bootstrap result payload.');
|
||||
}
|
||||
|
||||
return bootstrapResponse.result;
|
||||
}
|
||||
|
||||
Future<ua_unseal.UnsealResult> unsealVault(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final encryptedKey = await _encryptVaultKeyMaterial(connection, password);
|
||||
|
||||
final response = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
unseal: ua_unseal.Request(
|
||||
encryptedKey: ua_unseal.UnsealEncryptedKey(
|
||||
nonce: encryptedKey.nonce,
|
||||
ciphertext: encryptedKey.ciphertext,
|
||||
associatedData: encryptedKey.associatedData,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!response.hasVault()) {
|
||||
throw Exception('Expected vault response, got ${response.whichPayload()}');
|
||||
}
|
||||
|
||||
final vaultResponse = response.vault;
|
||||
if (!vaultResponse.hasUnseal()) {
|
||||
throw Exception(
|
||||
'Expected unseal result, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final unsealResponse = vaultResponse.unseal;
|
||||
if (!unsealResponse.hasResult()) {
|
||||
throw Exception(
|
||||
'Expected unseal result payload, got ${unsealResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
return unsealResponse.result;
|
||||
}
|
||||
|
||||
Future<_EncryptedVaultKey> _encryptVaultKeyMaterial(
|
||||
Connection connection,
|
||||
String password,
|
||||
) async {
|
||||
final keyExchange = X25519();
|
||||
final cipher = Xchacha20.poly1305Aead();
|
||||
final clientKeyPair = await keyExchange.newKeyPair();
|
||||
final clientPublicKey = await clientKeyPair.extractPublicKey();
|
||||
|
||||
final handshakeResponse = await connection.ask(
|
||||
UserAgentRequest(
|
||||
vault: ua_vault.Request(
|
||||
unseal: ua_unseal.Request(
|
||||
start: ua_unseal.UnsealStart(clientPubkey: clientPublicKey.bytes),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
if (!handshakeResponse.hasVault()) {
|
||||
throw Exception(
|
||||
'Expected vault response, got ${handshakeResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final vaultResponse = handshakeResponse.vault;
|
||||
if (!vaultResponse.hasUnseal()) {
|
||||
throw Exception(
|
||||
'Expected unseal handshake response, got ${vaultResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final unsealResponse = vaultResponse.unseal;
|
||||
if (!unsealResponse.hasStart()) {
|
||||
throw Exception(
|
||||
'Expected unseal handshake payload, got ${unsealResponse.whichPayload()}',
|
||||
);
|
||||
}
|
||||
|
||||
final serverPublicKey = SimplePublicKey(
|
||||
unsealResponse.start.serverPubkey,
|
||||
type: KeyPairType.x25519,
|
||||
);
|
||||
final sharedSecret = await keyExchange.sharedSecretKey(
|
||||
keyPair: clientKeyPair,
|
||||
remotePublicKey: serverPublicKey,
|
||||
);
|
||||
|
||||
final secretBox = await cipher.encrypt(
|
||||
password.codeUnits,
|
||||
secretKey: sharedSecret,
|
||||
nonce: cipher.newNonce(),
|
||||
aad: _vaultKeyAssociatedData.codeUnits,
|
||||
);
|
||||
|
||||
return _EncryptedVaultKey(
|
||||
nonce: secretBox.nonce,
|
||||
ciphertext: [...secretBox.cipherText, ...secretBox.mac.bytes],
|
||||
associatedData: _vaultKeyAssociatedData.codeUnits,
|
||||
);
|
||||
}
|
||||
|
||||
class _EncryptedVaultKey {
|
||||
const _EncryptedVaultKey({
|
||||
required this.nonce,
|
||||
required this.ciphertext,
|
||||
required this.associatedData,
|
||||
});
|
||||
|
||||
final List<int> nonce;
|
||||
final List<int> ciphertext;
|
||||
final List<int> associatedData;
|
||||
}
|
||||
|
||||
@@ -1,71 +1,71 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/src/rust/api.dart';
|
||||
import 'package:cryptography/cryptography.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
|
||||
final storage = FlutterSecureStorage(
|
||||
aOptions: AndroidOptions.biometric(
|
||||
enforceBiometrics: true,
|
||||
biometricPromptTitle: 'Authentication Required',
|
||||
),
|
||||
mOptions: MacOsOptions(
|
||||
accessibility: KeychainAccessibility.unlocked_this_device,
|
||||
label: "Arbiter",
|
||||
description: "Confirm your identity to access vault",
|
||||
synchronizable: false,
|
||||
accessControlFlags: [AccessControlFlag.userPresence],
|
||||
usesDataProtectionKeychain: true,
|
||||
),
|
||||
);
|
||||
|
||||
class HazmatMldsa extends KeyHandle {
|
||||
final MldsaKey _key;
|
||||
|
||||
HazmatMldsa({required MldsaKey key}) : _key = key;
|
||||
|
||||
@override
|
||||
Future<List<int>> getPublicKey() async {
|
||||
final publicKey = await _key.getPublicKey();
|
||||
return publicKey;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<int>> sign(List<int> data) async {
|
||||
final signature = await _key.sign(message: data);
|
||||
return signature;
|
||||
}
|
||||
}
|
||||
|
||||
class HazmatMLDSAManager extends KeyManager {
|
||||
static const _storageKey = "ed25519_identity";
|
||||
|
||||
@override
|
||||
Future<KeyHandle> create() async {
|
||||
final storedKey = await get();
|
||||
if (storedKey != null) {
|
||||
return storedKey;
|
||||
}
|
||||
|
||||
final newKeypair = await MldsaKey.generate();
|
||||
final keyBytes = await newKeypair.toBytes();
|
||||
|
||||
await storage.write(key: _storageKey, value: base64Encode(keyBytes));
|
||||
|
||||
return HazmatMldsa(key: newKeypair);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<KeyHandle?> get() async {
|
||||
final storedKeyPair = await storage.read(key: _storageKey);
|
||||
if (storedKeyPair == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final keyBytes = base64Decode(storedKeyPair);
|
||||
final key = await MldsaKey.fromBytes(bytes: keyBytes);
|
||||
|
||||
return HazmatMldsa(key: key);
|
||||
}
|
||||
}
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:arbiter/src/rust/api.dart';
|
||||
import 'package:cryptography/cryptography.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
|
||||
final storage = FlutterSecureStorage(
|
||||
aOptions: AndroidOptions.biometric(
|
||||
enforceBiometrics: true,
|
||||
biometricPromptTitle: 'Authentication Required',
|
||||
),
|
||||
mOptions: MacOsOptions(
|
||||
accessibility: KeychainAccessibility.unlocked_this_device,
|
||||
label: "Arbiter",
|
||||
description: "Confirm your identity to access vault",
|
||||
synchronizable: false,
|
||||
accessControlFlags: [AccessControlFlag.userPresence],
|
||||
usesDataProtectionKeychain: true,
|
||||
),
|
||||
);
|
||||
|
||||
class HazmatMldsa extends KeyHandle {
|
||||
final MldsaKey _key;
|
||||
|
||||
HazmatMldsa({required MldsaKey key}) : _key = key;
|
||||
|
||||
@override
|
||||
Future<List<int>> getPublicKey() async {
|
||||
final publicKey = await _key.getPublicKey();
|
||||
return publicKey;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<List<int>> sign(List<int> data) async {
|
||||
final signature = await _key.sign(message: data);
|
||||
return signature;
|
||||
}
|
||||
}
|
||||
|
||||
class HazmatMLDSAManager extends KeyManager {
|
||||
static const _storageKey = "ed25519_identity";
|
||||
|
||||
@override
|
||||
Future<KeyHandle> create() async {
|
||||
final storedKey = await get();
|
||||
if (storedKey != null) {
|
||||
return storedKey;
|
||||
}
|
||||
|
||||
final newKeypair = await MldsaKey.generate();
|
||||
final keyBytes = await newKeypair.toBytes();
|
||||
|
||||
await storage.write(key: _storageKey, value: base64Encode(keyBytes));
|
||||
|
||||
return HazmatMldsa(key: newKeypair);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<KeyHandle?> get() async {
|
||||
final storedKeyPair = await storage.read(key: _storageKey);
|
||||
if (storedKeyPair == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final keyBytes = base64Decode(storedKeyPair);
|
||||
final key = await MldsaKey.fromBytes(bytes: keyBytes);
|
||||
|
||||
return HazmatMldsa(key: key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// The API to handle without storing the private key in memory.
|
||||
//The implementation will use platform-specific secure storage and signing capabilities.
|
||||
abstract class KeyHandle {
|
||||
Future<List<int>> sign(List<int> data);
|
||||
Future<List<int>> getPublicKey();
|
||||
}
|
||||
|
||||
abstract class KeyManager {
|
||||
Future<KeyHandle?> get();
|
||||
Future<KeyHandle> create();
|
||||
}
|
||||
// The API to handle without storing the private key in memory.
|
||||
//The implementation will use platform-specific secure storage and signing capabilities.
|
||||
abstract class KeyHandle {
|
||||
Future<List<int>> sign(List<int> data);
|
||||
Future<List<int>> getPublicKey();
|
||||
}
|
||||
|
||||
abstract class KeyManager {
|
||||
Future<KeyHandle?> get();
|
||||
Future<KeyHandle> create();
|
||||
}
|
||||
|
||||
@@ -1,39 +1,39 @@
|
||||
import 'package:arbiter/router.dart';
|
||||
import 'package:arbiter/src/rust/frb_generated.dart';
|
||||
import 'package:flutter/material.dart' hide Router;
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:sizer/sizer.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await RustLib.init();
|
||||
runApp(const ProviderScope(child: App()));
|
||||
}
|
||||
|
||||
class App extends StatefulWidget {
|
||||
const App({super.key});
|
||||
|
||||
@override
|
||||
State<App> createState() => _AppState();
|
||||
}
|
||||
|
||||
class _AppState extends State<App> {
|
||||
late final Router _router;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_router = Router();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Sizer(
|
||||
builder: (context, orientation, deviceType) {
|
||||
return MaterialApp.router(routerConfig: _router.config());
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import 'package:arbiter/router.dart';
|
||||
import 'package:arbiter/src/rust/frb_generated.dart';
|
||||
import 'package:flutter/material.dart' hide Router;
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:sizer/sizer.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await RustLib.init();
|
||||
runApp(const ProviderScope(child: App()));
|
||||
}
|
||||
|
||||
class App extends StatefulWidget {
|
||||
const App({super.key});
|
||||
|
||||
@override
|
||||
State<App> createState() => _AppState();
|
||||
}
|
||||
|
||||
class _AppState extends State<App> {
|
||||
late final Router _router;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_router = Router();
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Sizer(
|
||||
builder: (context, orientation, deviceType) {
|
||||
return MaterialApp.router(routerConfig: _router.config());
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,88 +1,88 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class ServerInfo extends $pb.GeneratedMessage {
|
||||
factory ServerInfo({
|
||||
$core.String? version,
|
||||
$core.List<$core.int>? certPublicKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (version != null) result.version = version;
|
||||
if (certPublicKey != null) result.certPublicKey = certPublicKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
ServerInfo._();
|
||||
|
||||
factory ServerInfo.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ServerInfo.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ServerInfo',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'version')
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'certPublicKey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ServerInfo clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ServerInfo copyWith(void Function(ServerInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ServerInfo create() => ServerInfo._();
|
||||
@$core.override
|
||||
ServerInfo createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ServerInfo getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ServerInfo>(create);
|
||||
static ServerInfo? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get version => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set version($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasVersion() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearVersion() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get certPublicKey => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set certPublicKey($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCertPublicKey() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCertPublicKey() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class ServerInfo extends $pb.GeneratedMessage {
|
||||
factory ServerInfo({
|
||||
$core.String? version,
|
||||
$core.List<$core.int>? certPublicKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (version != null) result.version = version;
|
||||
if (certPublicKey != null) result.certPublicKey = certPublicKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
ServerInfo._();
|
||||
|
||||
factory ServerInfo.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ServerInfo.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ServerInfo',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'version')
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'certPublicKey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ServerInfo clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ServerInfo copyWith(void Function(ServerInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as ServerInfo)) as ServerInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ServerInfo create() => ServerInfo._();
|
||||
@$core.override
|
||||
ServerInfo createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ServerInfo getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ServerInfo>(create);
|
||||
static ServerInfo? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get version => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set version($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasVersion() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearVersion() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get certPublicKey => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set certPublicKey($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCertPublicKey() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCertPublicKey() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,90 +1,90 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'client.pb.dart' as $0;
|
||||
import 'user_agent.pb.dart' as $1;
|
||||
|
||||
export 'arbiter.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('arbiter.ArbiterService')
|
||||
class ArbiterServiceClient extends $grpc.Client {
|
||||
/// The hostname for this service.
|
||||
static const $core.String defaultHost = '';
|
||||
|
||||
/// OAuth scopes needed for the client.
|
||||
static const $core.List<$core.String> oauthScopes = [
|
||||
'',
|
||||
];
|
||||
|
||||
ArbiterServiceClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
$grpc.ResponseStream<$0.ClientResponse> client(
|
||||
$async.Stream<$0.ClientRequest> request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createStreamingCall(_$client, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseStream<$1.UserAgentResponse> userAgent(
|
||||
$async.Stream<$1.UserAgentRequest> request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createStreamingCall(_$userAgent, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$client =
|
||||
$grpc.ClientMethod<$0.ClientRequest, $0.ClientResponse>(
|
||||
'/arbiter.ArbiterService/Client',
|
||||
($0.ClientRequest value) => value.writeToBuffer(),
|
||||
$0.ClientResponse.fromBuffer);
|
||||
static final _$userAgent =
|
||||
$grpc.ClientMethod<$1.UserAgentRequest, $1.UserAgentResponse>(
|
||||
'/arbiter.ArbiterService/UserAgent',
|
||||
($1.UserAgentRequest value) => value.writeToBuffer(),
|
||||
$1.UserAgentResponse.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('arbiter.ArbiterService')
|
||||
abstract class ArbiterServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'arbiter.ArbiterService';
|
||||
|
||||
ArbiterServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.ClientRequest, $0.ClientResponse>(
|
||||
'Client',
|
||||
client,
|
||||
true,
|
||||
true,
|
||||
($core.List<$core.int> value) => $0.ClientRequest.fromBuffer(value),
|
||||
($0.ClientResponse value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$1.UserAgentRequest, $1.UserAgentResponse>(
|
||||
'UserAgent',
|
||||
userAgent,
|
||||
true,
|
||||
true,
|
||||
($core.List<$core.int> value) => $1.UserAgentRequest.fromBuffer(value),
|
||||
($1.UserAgentResponse value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Stream<$0.ClientResponse> client(
|
||||
$grpc.ServiceCall call, $async.Stream<$0.ClientRequest> request);
|
||||
|
||||
$async.Stream<$1.UserAgentResponse> userAgent(
|
||||
$grpc.ServiceCall call, $async.Stream<$1.UserAgentRequest> request);
|
||||
}
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'client.pb.dart' as $0;
|
||||
import 'user_agent.pb.dart' as $1;
|
||||
|
||||
export 'arbiter.pb.dart';
|
||||
|
||||
@$pb.GrpcServiceName('arbiter.ArbiterService')
|
||||
class ArbiterServiceClient extends $grpc.Client {
|
||||
/// The hostname for this service.
|
||||
static const $core.String defaultHost = '';
|
||||
|
||||
/// OAuth scopes needed for the client.
|
||||
static const $core.List<$core.String> oauthScopes = [
|
||||
'',
|
||||
];
|
||||
|
||||
ArbiterServiceClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
$grpc.ResponseStream<$0.ClientResponse> client(
|
||||
$async.Stream<$0.ClientRequest> request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createStreamingCall(_$client, request, options: options);
|
||||
}
|
||||
|
||||
$grpc.ResponseStream<$1.UserAgentResponse> userAgent(
|
||||
$async.Stream<$1.UserAgentRequest> request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createStreamingCall(_$userAgent, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$client =
|
||||
$grpc.ClientMethod<$0.ClientRequest, $0.ClientResponse>(
|
||||
'/arbiter.ArbiterService/Client',
|
||||
($0.ClientRequest value) => value.writeToBuffer(),
|
||||
$0.ClientResponse.fromBuffer);
|
||||
static final _$userAgent =
|
||||
$grpc.ClientMethod<$1.UserAgentRequest, $1.UserAgentResponse>(
|
||||
'/arbiter.ArbiterService/UserAgent',
|
||||
($1.UserAgentRequest value) => value.writeToBuffer(),
|
||||
$1.UserAgentResponse.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('arbiter.ArbiterService')
|
||||
abstract class ArbiterServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'arbiter.ArbiterService';
|
||||
|
||||
ArbiterServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.ClientRequest, $0.ClientResponse>(
|
||||
'Client',
|
||||
client,
|
||||
true,
|
||||
true,
|
||||
($core.List<$core.int> value) => $0.ClientRequest.fromBuffer(value),
|
||||
($0.ClientResponse value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$1.UserAgentRequest, $1.UserAgentResponse>(
|
||||
'UserAgent',
|
||||
userAgent,
|
||||
true,
|
||||
true,
|
||||
($core.List<$core.int> value) => $1.UserAgentRequest.fromBuffer(value),
|
||||
($1.UserAgentResponse value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Stream<$0.ClientResponse> client(
|
||||
$grpc.ServiceCall call, $async.Stream<$0.ClientRequest> request);
|
||||
|
||||
$async.Stream<$1.UserAgentResponse> userAgent(
|
||||
$grpc.ServiceCall call, $async.Stream<$1.UserAgentRequest> request);
|
||||
}
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use serverInfoDescriptor instead')
|
||||
const ServerInfo$json = {
|
||||
'1': 'ServerInfo',
|
||||
'2': [
|
||||
{'1': 'version', '3': 1, '4': 1, '5': 9, '10': 'version'},
|
||||
{'1': 'cert_public_key', '3': 2, '4': 1, '5': 12, '10': 'certPublicKey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ServerInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List serverInfoDescriptor = $convert.base64Decode(
|
||||
'CgpTZXJ2ZXJJbmZvEhgKB3ZlcnNpb24YASABKAlSB3ZlcnNpb24SJgoPY2VydF9wdWJsaWNfa2'
|
||||
'V5GAIgASgMUg1jZXJ0UHVibGljS2V5');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from arbiter.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use serverInfoDescriptor instead')
|
||||
const ServerInfo$json = {
|
||||
'1': 'ServerInfo',
|
||||
'2': [
|
||||
{'1': 'version', '3': 1, '4': 1, '5': 9, '10': 'version'},
|
||||
{'1': 'cert_public_key', '3': 2, '4': 1, '5': 12, '10': 'certPublicKey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ServerInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List serverInfoDescriptor = $convert.base64Decode(
|
||||
'CgpTZXJ2ZXJJbmZvEhgKB3ZlcnNpb24YASABKAlSB3ZlcnNpb24SJgoPY2VydF9wdWJsaWNfa2'
|
||||
'V5GAIgASgMUg1jZXJ0UHVibGljS2V5');
|
||||
|
||||
@@ -1,264 +1,264 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'client/auth.pb.dart' as $0;
|
||||
import 'client/evm.pb.dart' as $2;
|
||||
import 'client/vault.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum ClientRequest_Payload { auth, vault, evm, notSet }
|
||||
|
||||
class ClientRequest extends $pb.GeneratedMessage {
|
||||
factory ClientRequest({
|
||||
$0.Request? auth,
|
||||
$1.Request? vault,
|
||||
$2.Request? evm,
|
||||
$core.int? requestId,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (requestId != null) result.requestId = requestId;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientRequest._();
|
||||
|
||||
factory ClientRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, ClientRequest_Payload>
|
||||
_ClientRequest_PayloadByTag = {
|
||||
1: ClientRequest_Payload.auth,
|
||||
2: ClientRequest_Payload.vault,
|
||||
3: ClientRequest_Payload.evm,
|
||||
0: ClientRequest_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientRequest',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Request>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Request.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Request.create)
|
||||
..aI(4, _omitFieldNames ? '' : 'requestId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientRequest copyWith(void Function(ClientRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientRequest))
|
||||
as ClientRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientRequest create() => ClientRequest._();
|
||||
@$core.override
|
||||
ClientRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientRequest>(create);
|
||||
static ClientRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
ClientRequest_Payload whichPayload() =>
|
||||
_ClientRequest_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Request value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.int get requestId => $_getIZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set requestId($core.int value) => $_setSignedInt32(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasRequestId() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearRequestId() => $_clearField(4);
|
||||
}
|
||||
|
||||
enum ClientResponse_Payload { auth, vault, evm, notSet }
|
||||
|
||||
class ClientResponse extends $pb.GeneratedMessage {
|
||||
factory ClientResponse({
|
||||
$0.Response? auth,
|
||||
$1.Response? vault,
|
||||
$2.Response? evm,
|
||||
$core.int? requestId,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (requestId != null) result.requestId = requestId;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientResponse._();
|
||||
|
||||
factory ClientResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, ClientResponse_Payload>
|
||||
_ClientResponse_PayloadByTag = {
|
||||
1: ClientResponse_Payload.auth,
|
||||
2: ClientResponse_Payload.vault,
|
||||
3: ClientResponse_Payload.evm,
|
||||
0: ClientResponse_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientResponse',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Response>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Response.create)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Response.create)
|
||||
..aI(7, _omitFieldNames ? '' : 'requestId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientResponse copyWith(void Function(ClientResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientResponse))
|
||||
as ClientResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientResponse create() => ClientResponse._();
|
||||
@$core.override
|
||||
ClientResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientResponse>(create);
|
||||
static ClientResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
ClientResponse_Payload whichPayload() =>
|
||||
_ClientResponse_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Response value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(7)
|
||||
$core.int get requestId => $_getIZ(3);
|
||||
@$pb.TagNumber(7)
|
||||
set requestId($core.int value) => $_setSignedInt32(3, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasRequestId() => $_has(3);
|
||||
@$pb.TagNumber(7)
|
||||
void clearRequestId() => $_clearField(7);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'client/auth.pb.dart' as $0;
|
||||
import 'client/evm.pb.dart' as $2;
|
||||
import 'client/vault.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum ClientRequest_Payload { auth, vault, evm, notSet }
|
||||
|
||||
class ClientRequest extends $pb.GeneratedMessage {
|
||||
factory ClientRequest({
|
||||
$0.Request? auth,
|
||||
$1.Request? vault,
|
||||
$2.Request? evm,
|
||||
$core.int? requestId,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (requestId != null) result.requestId = requestId;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientRequest._();
|
||||
|
||||
factory ClientRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, ClientRequest_Payload>
|
||||
_ClientRequest_PayloadByTag = {
|
||||
1: ClientRequest_Payload.auth,
|
||||
2: ClientRequest_Payload.vault,
|
||||
3: ClientRequest_Payload.evm,
|
||||
0: ClientRequest_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientRequest',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Request>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Request.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Request.create)
|
||||
..aI(4, _omitFieldNames ? '' : 'requestId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientRequest copyWith(void Function(ClientRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientRequest))
|
||||
as ClientRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientRequest create() => ClientRequest._();
|
||||
@$core.override
|
||||
ClientRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientRequest>(create);
|
||||
static ClientRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
ClientRequest_Payload whichPayload() =>
|
||||
_ClientRequest_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Request value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.int get requestId => $_getIZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set requestId($core.int value) => $_setSignedInt32(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasRequestId() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearRequestId() => $_clearField(4);
|
||||
}
|
||||
|
||||
enum ClientResponse_Payload { auth, vault, evm, notSet }
|
||||
|
||||
class ClientResponse extends $pb.GeneratedMessage {
|
||||
factory ClientResponse({
|
||||
$0.Response? auth,
|
||||
$1.Response? vault,
|
||||
$2.Response? evm,
|
||||
$core.int? requestId,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (requestId != null) result.requestId = requestId;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientResponse._();
|
||||
|
||||
factory ClientResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, ClientResponse_Payload>
|
||||
_ClientResponse_PayloadByTag = {
|
||||
1: ClientResponse_Payload.auth,
|
||||
2: ClientResponse_Payload.vault,
|
||||
3: ClientResponse_Payload.evm,
|
||||
0: ClientResponse_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientResponse',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Response>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Response.create)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Response.create)
|
||||
..aI(7, _omitFieldNames ? '' : 'requestId')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientResponse copyWith(void Function(ClientResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientResponse))
|
||||
as ClientResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientResponse create() => ClientResponse._();
|
||||
@$core.override
|
||||
ClientResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientResponse>(create);
|
||||
static ClientResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
ClientResponse_Payload whichPayload() =>
|
||||
_ClientResponse_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Response value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(7)
|
||||
$core.int get requestId => $_getIZ(3);
|
||||
@$pb.TagNumber(7)
|
||||
set requestId($core.int value) => $_setSignedInt32(3, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasRequestId() => $_has(3);
|
||||
@$pb.TagNumber(7)
|
||||
void clearRequestId() => $_clearField(7);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,116 +1,116 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use clientRequestDescriptor instead')
|
||||
const ClientRequest$json = {
|
||||
'1': 'ClientRequest',
|
||||
'2': [
|
||||
{'1': 'request_id', '3': 4, '4': 1, '5': 5, '10': 'requestId'},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.Request',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.vault.Request',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.evm.Request',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientRequestDescriptor = $convert.base64Decode(
|
||||
'Cg1DbGllbnRSZXF1ZXN0Eh0KCnJlcXVlc3RfaWQYBCABKAVSCXJlcXVlc3RJZBIyCgRhdXRoGA'
|
||||
'EgASgLMhwuYXJiaXRlci5jbGllbnQuYXV0aC5SZXF1ZXN0SABSBGF1dGgSNQoFdmF1bHQYAiAB'
|
||||
'KAsyHS5hcmJpdGVyLmNsaWVudC52YXVsdC5SZXF1ZXN0SABSBXZhdWx0Ei8KA2V2bRgDIAEoCz'
|
||||
'IbLmFyYml0ZXIuY2xpZW50LmV2bS5SZXF1ZXN0SABSA2V2bUIJCgdwYXlsb2Fk');
|
||||
|
||||
@$core.Deprecated('Use clientResponseDescriptor instead')
|
||||
const ClientResponse$json = {
|
||||
'1': 'ClientResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'request_id',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
'5': 5,
|
||||
'9': 1,
|
||||
'10': 'requestId',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.Response',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.vault.Response',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.evm.Response',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
{'1': '_request_id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientResponseDescriptor = $convert.base64Decode(
|
||||
'Cg5DbGllbnRSZXNwb25zZRIiCgpyZXF1ZXN0X2lkGAcgASgFSAFSCXJlcXVlc3RJZIgBARIzCg'
|
||||
'RhdXRoGAEgASgLMh0uYXJiaXRlci5jbGllbnQuYXV0aC5SZXNwb25zZUgAUgRhdXRoEjYKBXZh'
|
||||
'dWx0GAIgASgLMh4uYXJiaXRlci5jbGllbnQudmF1bHQuUmVzcG9uc2VIAFIFdmF1bHQSMAoDZX'
|
||||
'ZtGAMgASgLMhwuYXJiaXRlci5jbGllbnQuZXZtLlJlc3BvbnNlSABSA2V2bUIJCgdwYXlsb2Fk'
|
||||
'Qg0KC19yZXF1ZXN0X2lk');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use clientRequestDescriptor instead')
|
||||
const ClientRequest$json = {
|
||||
'1': 'ClientRequest',
|
||||
'2': [
|
||||
{'1': 'request_id', '3': 4, '4': 1, '5': 5, '10': 'requestId'},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.Request',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.vault.Request',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.evm.Request',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientRequestDescriptor = $convert.base64Decode(
|
||||
'Cg1DbGllbnRSZXF1ZXN0Eh0KCnJlcXVlc3RfaWQYBCABKAVSCXJlcXVlc3RJZBIyCgRhdXRoGA'
|
||||
'EgASgLMhwuYXJiaXRlci5jbGllbnQuYXV0aC5SZXF1ZXN0SABSBGF1dGgSNQoFdmF1bHQYAiAB'
|
||||
'KAsyHS5hcmJpdGVyLmNsaWVudC52YXVsdC5SZXF1ZXN0SABSBXZhdWx0Ei8KA2V2bRgDIAEoCz'
|
||||
'IbLmFyYml0ZXIuY2xpZW50LmV2bS5SZXF1ZXN0SABSA2V2bUIJCgdwYXlsb2Fk');
|
||||
|
||||
@$core.Deprecated('Use clientResponseDescriptor instead')
|
||||
const ClientResponse$json = {
|
||||
'1': 'ClientResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'request_id',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
'5': 5,
|
||||
'9': 1,
|
||||
'10': 'requestId',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.Response',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.vault.Response',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.evm.Response',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
{'1': '_request_id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientResponseDescriptor = $convert.base64Decode(
|
||||
'Cg5DbGllbnRSZXNwb25zZRIiCgpyZXF1ZXN0X2lkGAcgASgFSAFSCXJlcXVlc3RJZIgBARIzCg'
|
||||
'RhdXRoGAEgASgLMh0uYXJiaXRlci5jbGllbnQuYXV0aC5SZXNwb25zZUgAUgRhdXRoEjYKBXZh'
|
||||
'dWx0GAIgASgLMh4uYXJiaXRlci5jbGllbnQudmF1bHQuUmVzcG9uc2VIAFIFdmF1bHQSMAoDZX'
|
||||
'ZtGAMgASgLMhwuYXJiaXRlci5jbGllbnQuZXZtLlJlc3BvbnNlSABSA2V2bUIJCgdwYXlsb2Fk'
|
||||
'Qg0KC19yZXF1ZXN0X2lk');
|
||||
|
||||
@@ -1,398 +1,398 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../shared/client.pb.dart' as $0;
|
||||
import 'auth.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'auth.pbenum.dart';
|
||||
|
||||
class AuthChallengeRequest extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeRequest({
|
||||
$core.List<$core.int>? pubkey,
|
||||
$0.ClientInfo? clientInfo,
|
||||
}) {
|
||||
final result = create();
|
||||
if (pubkey != null) result.pubkey = pubkey;
|
||||
if (clientInfo != null) result.clientInfo = clientInfo;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeRequest._();
|
||||
|
||||
factory AuthChallengeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeRequest',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'pubkey', $pb.PbFieldType.OY)
|
||||
..aOM<$0.ClientInfo>(2, _omitFieldNames ? '' : 'clientInfo',
|
||||
subBuilder: $0.ClientInfo.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest copyWith(void Function(AuthChallengeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeRequest))
|
||||
as AuthChallengeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest create() => AuthChallengeRequest._();
|
||||
@$core.override
|
||||
AuthChallengeRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeRequest>(create);
|
||||
static AuthChallengeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get pubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set pubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearPubkey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.ClientInfo get clientInfo => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set clientInfo($0.ClientInfo value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasClientInfo() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearClientInfo() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.ClientInfo ensureClientInfo() => $_ensure(1);
|
||||
}
|
||||
|
||||
class AuthChallenge extends $pb.GeneratedMessage {
|
||||
factory AuthChallenge({
|
||||
$fixnum.Int64? timestampNanos,
|
||||
$core.List<$core.int>? random,
|
||||
}) {
|
||||
final result = create();
|
||||
if (timestampNanos != null) result.timestampNanos = timestampNanos;
|
||||
if (random != null) result.random = random;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallenge._();
|
||||
|
||||
factory AuthChallenge.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallenge.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallenge',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestampNanos', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'random', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge copyWith(void Function(AuthChallenge) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallenge))
|
||||
as AuthChallenge;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge create() => AuthChallenge._();
|
||||
@$core.override
|
||||
AuthChallenge createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallenge>(create);
|
||||
static AuthChallenge? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestampNanos => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set timestampNanos($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTimestampNanos() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestampNanos() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get random => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set random($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRandom() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRandom() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallengeSolution extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeSolution({
|
||||
$core.List<$core.int>? signature,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signature != null) result.signature = signature;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeSolution._();
|
||||
|
||||
factory AuthChallengeSolution.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeSolution.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeSolution',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution copyWith(
|
||||
void Function(AuthChallengeSolution) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeSolution))
|
||||
as AuthChallengeSolution;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution create() => AuthChallengeSolution._();
|
||||
@$core.override
|
||||
AuthChallengeSolution createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeSolution>(create);
|
||||
static AuthChallengeSolution? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get signature => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signature($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignature() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignature() => $_clearField(1);
|
||||
}
|
||||
|
||||
enum Request_Payload { challengeRequest, challengeSolution, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
AuthChallengeRequest? challengeRequest,
|
||||
AuthChallengeSolution? challengeSolution,
|
||||
}) {
|
||||
final result = create();
|
||||
if (challengeRequest != null) result.challengeRequest = challengeRequest;
|
||||
if (challengeSolution != null) result.challengeSolution = challengeSolution;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.challengeRequest,
|
||||
2: Request_Payload.challengeSolution,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallengeRequest>(1, _omitFieldNames ? '' : 'challengeRequest',
|
||||
subBuilder: AuthChallengeRequest.create)
|
||||
..aOM<AuthChallengeSolution>(2, _omitFieldNames ? '' : 'challengeSolution',
|
||||
subBuilder: AuthChallengeSolution.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest get challengeRequest => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challengeRequest(AuthChallengeRequest value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallengeRequest() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallengeRequest() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest ensureChallengeRequest() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution get challengeSolution => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set challengeSolution(AuthChallengeSolution value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasChallengeSolution() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearChallengeSolution() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution ensureChallengeSolution() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { challenge, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
AuthChallenge? challenge,
|
||||
AuthResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (challenge != null) result$.challenge = challenge;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.challenge,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallenge>(1, _omitFieldNames ? '' : 'challenge',
|
||||
subBuilder: AuthChallenge.create)
|
||||
..aE<AuthResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: AuthResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge get challenge => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challenge(AuthChallenge value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallenge() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallenge() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge ensureChallenge() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(AuthResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../shared/client.pb.dart' as $0;
|
||||
import 'auth.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'auth.pbenum.dart';
|
||||
|
||||
class AuthChallengeRequest extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeRequest({
|
||||
$core.List<$core.int>? pubkey,
|
||||
$0.ClientInfo? clientInfo,
|
||||
}) {
|
||||
final result = create();
|
||||
if (pubkey != null) result.pubkey = pubkey;
|
||||
if (clientInfo != null) result.clientInfo = clientInfo;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeRequest._();
|
||||
|
||||
factory AuthChallengeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeRequest',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'pubkey', $pb.PbFieldType.OY)
|
||||
..aOM<$0.ClientInfo>(2, _omitFieldNames ? '' : 'clientInfo',
|
||||
subBuilder: $0.ClientInfo.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest copyWith(void Function(AuthChallengeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeRequest))
|
||||
as AuthChallengeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest create() => AuthChallengeRequest._();
|
||||
@$core.override
|
||||
AuthChallengeRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeRequest>(create);
|
||||
static AuthChallengeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get pubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set pubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearPubkey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.ClientInfo get clientInfo => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set clientInfo($0.ClientInfo value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasClientInfo() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearClientInfo() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.ClientInfo ensureClientInfo() => $_ensure(1);
|
||||
}
|
||||
|
||||
class AuthChallenge extends $pb.GeneratedMessage {
|
||||
factory AuthChallenge({
|
||||
$fixnum.Int64? timestampNanos,
|
||||
$core.List<$core.int>? random,
|
||||
}) {
|
||||
final result = create();
|
||||
if (timestampNanos != null) result.timestampNanos = timestampNanos;
|
||||
if (random != null) result.random = random;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallenge._();
|
||||
|
||||
factory AuthChallenge.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallenge.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallenge',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestampNanos', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'random', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge copyWith(void Function(AuthChallenge) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallenge))
|
||||
as AuthChallenge;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge create() => AuthChallenge._();
|
||||
@$core.override
|
||||
AuthChallenge createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallenge>(create);
|
||||
static AuthChallenge? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestampNanos => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set timestampNanos($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTimestampNanos() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestampNanos() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get random => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set random($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRandom() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRandom() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallengeSolution extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeSolution({
|
||||
$core.List<$core.int>? signature,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signature != null) result.signature = signature;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeSolution._();
|
||||
|
||||
factory AuthChallengeSolution.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeSolution.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeSolution',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution copyWith(
|
||||
void Function(AuthChallengeSolution) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeSolution))
|
||||
as AuthChallengeSolution;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution create() => AuthChallengeSolution._();
|
||||
@$core.override
|
||||
AuthChallengeSolution createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeSolution>(create);
|
||||
static AuthChallengeSolution? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get signature => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signature($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignature() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignature() => $_clearField(1);
|
||||
}
|
||||
|
||||
enum Request_Payload { challengeRequest, challengeSolution, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
AuthChallengeRequest? challengeRequest,
|
||||
AuthChallengeSolution? challengeSolution,
|
||||
}) {
|
||||
final result = create();
|
||||
if (challengeRequest != null) result.challengeRequest = challengeRequest;
|
||||
if (challengeSolution != null) result.challengeSolution = challengeSolution;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.challengeRequest,
|
||||
2: Request_Payload.challengeSolution,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallengeRequest>(1, _omitFieldNames ? '' : 'challengeRequest',
|
||||
subBuilder: AuthChallengeRequest.create)
|
||||
..aOM<AuthChallengeSolution>(2, _omitFieldNames ? '' : 'challengeSolution',
|
||||
subBuilder: AuthChallengeSolution.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest get challengeRequest => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challengeRequest(AuthChallengeRequest value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallengeRequest() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallengeRequest() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest ensureChallengeRequest() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution get challengeSolution => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set challengeSolution(AuthChallengeSolution value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasChallengeSolution() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearChallengeSolution() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution ensureChallengeSolution() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { challenge, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
AuthChallenge? challenge,
|
||||
AuthResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (challenge != null) result$.challenge = challenge;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.challenge,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallenge>(1, _omitFieldNames ? '' : 'challenge',
|
||||
subBuilder: AuthChallenge.create)
|
||||
..aE<AuthResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: AuthResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge get challenge => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challenge(AuthChallenge value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallenge() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallenge() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge ensureChallenge() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(AuthResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthResult extends $pb.ProtobufEnum {
|
||||
static const AuthResult AUTH_RESULT_UNSPECIFIED =
|
||||
AuthResult._(0, _omitEnumNames ? '' : 'AUTH_RESULT_UNSPECIFIED');
|
||||
static const AuthResult AUTH_RESULT_SUCCESS =
|
||||
AuthResult._(1, _omitEnumNames ? '' : 'AUTH_RESULT_SUCCESS');
|
||||
static const AuthResult AUTH_RESULT_INVALID_KEY =
|
||||
AuthResult._(2, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_KEY');
|
||||
static const AuthResult AUTH_RESULT_INVALID_SIGNATURE =
|
||||
AuthResult._(3, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_SIGNATURE');
|
||||
static const AuthResult AUTH_RESULT_APPROVAL_DENIED =
|
||||
AuthResult._(4, _omitEnumNames ? '' : 'AUTH_RESULT_APPROVAL_DENIED');
|
||||
static const AuthResult AUTH_RESULT_NO_USER_AGENTS_ONLINE = AuthResult._(
|
||||
5, _omitEnumNames ? '' : 'AUTH_RESULT_NO_USER_AGENTS_ONLINE');
|
||||
static const AuthResult AUTH_RESULT_INTERNAL =
|
||||
AuthResult._(6, _omitEnumNames ? '' : 'AUTH_RESULT_INTERNAL');
|
||||
|
||||
static const $core.List<AuthResult> values = <AuthResult>[
|
||||
AUTH_RESULT_UNSPECIFIED,
|
||||
AUTH_RESULT_SUCCESS,
|
||||
AUTH_RESULT_INVALID_KEY,
|
||||
AUTH_RESULT_INVALID_SIGNATURE,
|
||||
AUTH_RESULT_APPROVAL_DENIED,
|
||||
AUTH_RESULT_NO_USER_AGENTS_ONLINE,
|
||||
AUTH_RESULT_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<AuthResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 6);
|
||||
static AuthResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const AuthResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthResult extends $pb.ProtobufEnum {
|
||||
static const AuthResult AUTH_RESULT_UNSPECIFIED =
|
||||
AuthResult._(0, _omitEnumNames ? '' : 'AUTH_RESULT_UNSPECIFIED');
|
||||
static const AuthResult AUTH_RESULT_SUCCESS =
|
||||
AuthResult._(1, _omitEnumNames ? '' : 'AUTH_RESULT_SUCCESS');
|
||||
static const AuthResult AUTH_RESULT_INVALID_KEY =
|
||||
AuthResult._(2, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_KEY');
|
||||
static const AuthResult AUTH_RESULT_INVALID_SIGNATURE =
|
||||
AuthResult._(3, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_SIGNATURE');
|
||||
static const AuthResult AUTH_RESULT_APPROVAL_DENIED =
|
||||
AuthResult._(4, _omitEnumNames ? '' : 'AUTH_RESULT_APPROVAL_DENIED');
|
||||
static const AuthResult AUTH_RESULT_NO_USER_AGENTS_ONLINE = AuthResult._(
|
||||
5, _omitEnumNames ? '' : 'AUTH_RESULT_NO_USER_AGENTS_ONLINE');
|
||||
static const AuthResult AUTH_RESULT_INTERNAL =
|
||||
AuthResult._(6, _omitEnumNames ? '' : 'AUTH_RESULT_INTERNAL');
|
||||
|
||||
static const $core.List<AuthResult> values = <AuthResult>[
|
||||
AUTH_RESULT_UNSPECIFIED,
|
||||
AUTH_RESULT_SUCCESS,
|
||||
AUTH_RESULT_INVALID_KEY,
|
||||
AUTH_RESULT_INVALID_SIGNATURE,
|
||||
AUTH_RESULT_APPROVAL_DENIED,
|
||||
AUTH_RESULT_NO_USER_AGENTS_ONLINE,
|
||||
AUTH_RESULT_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<AuthResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 6);
|
||||
static AuthResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const AuthResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,154 +1,154 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authResultDescriptor instead')
|
||||
const AuthResult$json = {
|
||||
'1': 'AuthResult',
|
||||
'2': [
|
||||
{'1': 'AUTH_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'AUTH_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'AUTH_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'AUTH_RESULT_INVALID_SIGNATURE', '2': 3},
|
||||
{'1': 'AUTH_RESULT_APPROVAL_DENIED', '2': 4},
|
||||
{'1': 'AUTH_RESULT_NO_USER_AGENTS_ONLINE', '2': 5},
|
||||
{'1': 'AUTH_RESULT_INTERNAL', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List authResultDescriptor = $convert.base64Decode(
|
||||
'CgpBdXRoUmVzdWx0EhsKF0FVVEhfUkVTVUxUX1VOU1BFQ0lGSUVEEAASFwoTQVVUSF9SRVNVTF'
|
||||
'RfU1VDQ0VTUxABEhsKF0FVVEhfUkVTVUxUX0lOVkFMSURfS0VZEAISIQodQVVUSF9SRVNVTFRf'
|
||||
'SU5WQUxJRF9TSUdOQVRVUkUQAxIfChtBVVRIX1JFU1VMVF9BUFBST1ZBTF9ERU5JRUQQBBIlCi'
|
||||
'FBVVRIX1JFU1VMVF9OT19VU0VSX0FHRU5UU19PTkxJTkUQBRIYChRBVVRIX1JFU1VMVF9JTlRF'
|
||||
'Uk5BTBAG');
|
||||
|
||||
@$core.Deprecated('Use authChallengeRequestDescriptor instead')
|
||||
const AuthChallengeRequest$json = {
|
||||
'1': 'AuthChallengeRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'client_info',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'clientInfo'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeRequestDescriptor = $convert.base64Decode(
|
||||
'ChRBdXRoQ2hhbGxlbmdlUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRI7CgtjbGllbn'
|
||||
'RfaW5mbxgCIAEoCzIaLmFyYml0ZXIuc2hhcmVkLkNsaWVudEluZm9SCmNsaWVudEluZm8=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeDescriptor instead')
|
||||
const AuthChallenge$json = {
|
||||
'1': 'AuthChallenge',
|
||||
'2': [
|
||||
{'1': 'timestamp_nanos', '3': 1, '4': 1, '5': 4, '10': 'timestampNanos'},
|
||||
{'1': 'random', '3': 2, '4': 1, '5': 12, '10': 'random'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallenge`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeDescriptor = $convert.base64Decode(
|
||||
'Cg1BdXRoQ2hhbGxlbmdlEicKD3RpbWVzdGFtcF9uYW5vcxgBIAEoBFIOdGltZXN0YW1wTmFub3'
|
||||
'MSFgoGcmFuZG9tGAIgASgMUgZyYW5kb20=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeSolutionDescriptor instead')
|
||||
const AuthChallengeSolution$json = {
|
||||
'1': 'AuthChallengeSolution',
|
||||
'2': [
|
||||
{'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeSolution`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeSolutionDescriptor = $convert.base64Decode(
|
||||
'ChVBdXRoQ2hhbGxlbmdlU29sdXRpb24SHAoJc2lnbmF0dXJlGAEgASgMUglzaWduYXR1cmU=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallengeRequest',
|
||||
'9': 0,
|
||||
'10': 'challengeRequest'
|
||||
},
|
||||
{
|
||||
'1': 'challenge_solution',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallengeSolution',
|
||||
'9': 0,
|
||||
'10': 'challengeSolution'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElgKEWNoYWxsZW5nZV9yZXF1ZXN0GAEgASgLMikuYXJiaXRlci5jbGllbnQuYX'
|
||||
'V0aC5BdXRoQ2hhbGxlbmdlUmVxdWVzdEgAUhBjaGFsbGVuZ2VSZXF1ZXN0ElsKEmNoYWxsZW5n'
|
||||
'ZV9zb2x1dGlvbhgCIAEoCzIqLmFyYml0ZXIuY2xpZW50LmF1dGguQXV0aENoYWxsZW5nZVNvbH'
|
||||
'V0aW9uSABSEWNoYWxsZW5nZVNvbHV0aW9uQgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallenge',
|
||||
'9': 0,
|
||||
'10': 'challenge'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.client.auth.AuthResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJCCgljaGFsbGVuZ2UYASABKAsyIi5hcmJpdGVyLmNsaWVudC5hdXRoLkF1dG'
|
||||
'hDaGFsbGVuZ2VIAFIJY2hhbGxlbmdlEjkKBnJlc3VsdBgCIAEoDjIfLmFyYml0ZXIuY2xpZW50'
|
||||
'LmF1dGguQXV0aFJlc3VsdEgAUgZyZXN1bHRCCQoHcGF5bG9hZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authResultDescriptor instead')
|
||||
const AuthResult$json = {
|
||||
'1': 'AuthResult',
|
||||
'2': [
|
||||
{'1': 'AUTH_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'AUTH_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'AUTH_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'AUTH_RESULT_INVALID_SIGNATURE', '2': 3},
|
||||
{'1': 'AUTH_RESULT_APPROVAL_DENIED', '2': 4},
|
||||
{'1': 'AUTH_RESULT_NO_USER_AGENTS_ONLINE', '2': 5},
|
||||
{'1': 'AUTH_RESULT_INTERNAL', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List authResultDescriptor = $convert.base64Decode(
|
||||
'CgpBdXRoUmVzdWx0EhsKF0FVVEhfUkVTVUxUX1VOU1BFQ0lGSUVEEAASFwoTQVVUSF9SRVNVTF'
|
||||
'RfU1VDQ0VTUxABEhsKF0FVVEhfUkVTVUxUX0lOVkFMSURfS0VZEAISIQodQVVUSF9SRVNVTFRf'
|
||||
'SU5WQUxJRF9TSUdOQVRVUkUQAxIfChtBVVRIX1JFU1VMVF9BUFBST1ZBTF9ERU5JRUQQBBIlCi'
|
||||
'FBVVRIX1JFU1VMVF9OT19VU0VSX0FHRU5UU19PTkxJTkUQBRIYChRBVVRIX1JFU1VMVF9JTlRF'
|
||||
'Uk5BTBAG');
|
||||
|
||||
@$core.Deprecated('Use authChallengeRequestDescriptor instead')
|
||||
const AuthChallengeRequest$json = {
|
||||
'1': 'AuthChallengeRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'client_info',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'clientInfo'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeRequestDescriptor = $convert.base64Decode(
|
||||
'ChRBdXRoQ2hhbGxlbmdlUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRI7CgtjbGllbn'
|
||||
'RfaW5mbxgCIAEoCzIaLmFyYml0ZXIuc2hhcmVkLkNsaWVudEluZm9SCmNsaWVudEluZm8=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeDescriptor instead')
|
||||
const AuthChallenge$json = {
|
||||
'1': 'AuthChallenge',
|
||||
'2': [
|
||||
{'1': 'timestamp_nanos', '3': 1, '4': 1, '5': 4, '10': 'timestampNanos'},
|
||||
{'1': 'random', '3': 2, '4': 1, '5': 12, '10': 'random'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallenge`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeDescriptor = $convert.base64Decode(
|
||||
'Cg1BdXRoQ2hhbGxlbmdlEicKD3RpbWVzdGFtcF9uYW5vcxgBIAEoBFIOdGltZXN0YW1wTmFub3'
|
||||
'MSFgoGcmFuZG9tGAIgASgMUgZyYW5kb20=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeSolutionDescriptor instead')
|
||||
const AuthChallengeSolution$json = {
|
||||
'1': 'AuthChallengeSolution',
|
||||
'2': [
|
||||
{'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeSolution`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeSolutionDescriptor = $convert.base64Decode(
|
||||
'ChVBdXRoQ2hhbGxlbmdlU29sdXRpb24SHAoJc2lnbmF0dXJlGAEgASgMUglzaWduYXR1cmU=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallengeRequest',
|
||||
'9': 0,
|
||||
'10': 'challengeRequest'
|
||||
},
|
||||
{
|
||||
'1': 'challenge_solution',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallengeSolution',
|
||||
'9': 0,
|
||||
'10': 'challengeSolution'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElgKEWNoYWxsZW5nZV9yZXF1ZXN0GAEgASgLMikuYXJiaXRlci5jbGllbnQuYX'
|
||||
'V0aC5BdXRoQ2hhbGxlbmdlUmVxdWVzdEgAUhBjaGFsbGVuZ2VSZXF1ZXN0ElsKEmNoYWxsZW5n'
|
||||
'ZV9zb2x1dGlvbhgCIAEoCzIqLmFyYml0ZXIuY2xpZW50LmF1dGguQXV0aENoYWxsZW5nZVNvbH'
|
||||
'V0aW9uSABSEWNoYWxsZW5nZVNvbHV0aW9uQgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.client.auth.AuthChallenge',
|
||||
'9': 0,
|
||||
'10': 'challenge'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.client.auth.AuthResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJCCgljaGFsbGVuZ2UYASABKAsyIi5hcmJpdGVyLmNsaWVudC5hdXRoLkF1dG'
|
||||
'hDaGFsbGVuZ2VIAFIJY2hhbGxlbmdlEjkKBnJlc3VsdBgCIAEoDjIfLmFyYml0ZXIuY2xpZW50'
|
||||
'LmF1dGguQXV0aFJlc3VsdEgAUgZyZXN1bHRCCQoHcGF5bG9hZA==');
|
||||
|
||||
@@ -1,208 +1,208 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../evm.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { signTransaction, analyzeTransaction, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.EvmSignTransactionRequest? signTransaction,
|
||||
$0.EvmAnalyzeTransactionRequest? analyzeTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
if (analyzeTransaction != null)
|
||||
result.analyzeTransaction = analyzeTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.signTransaction,
|
||||
2: Request_Payload.analyzeTransaction,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<$0.EvmSignTransactionRequest>(
|
||||
1, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionRequest.create)
|
||||
..aOM<$0.EvmAnalyzeTransactionRequest>(
|
||||
2, _omitFieldNames ? '' : 'analyzeTransaction',
|
||||
subBuilder: $0.EvmAnalyzeTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionRequest get signTransaction => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signTransaction($0.EvmSignTransactionRequest value) =>
|
||||
$_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignTransaction() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignTransaction() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionRequest ensureSignTransaction() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionRequest get analyzeTransaction => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set analyzeTransaction($0.EvmAnalyzeTransactionRequest value) =>
|
||||
$_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAnalyzeTransaction() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAnalyzeTransaction() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionRequest ensureAnalyzeTransaction() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { signTransaction, analyzeTransaction, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$0.EvmSignTransactionResponse? signTransaction,
|
||||
$0.EvmAnalyzeTransactionResponse? analyzeTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
if (analyzeTransaction != null)
|
||||
result.analyzeTransaction = analyzeTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.signTransaction,
|
||||
2: Response_Payload.analyzeTransaction,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<$0.EvmSignTransactionResponse>(
|
||||
1, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionResponse.create)
|
||||
..aOM<$0.EvmAnalyzeTransactionResponse>(
|
||||
2, _omitFieldNames ? '' : 'analyzeTransaction',
|
||||
subBuilder: $0.EvmAnalyzeTransactionResponse.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionResponse get signTransaction => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signTransaction($0.EvmSignTransactionResponse value) =>
|
||||
$_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignTransaction() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignTransaction() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionResponse ensureSignTransaction() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionResponse get analyzeTransaction => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set analyzeTransaction($0.EvmAnalyzeTransactionResponse value) =>
|
||||
$_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAnalyzeTransaction() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAnalyzeTransaction() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionResponse ensureAnalyzeTransaction() => $_ensure(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import '../evm.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { signTransaction, analyzeTransaction, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.EvmSignTransactionRequest? signTransaction,
|
||||
$0.EvmAnalyzeTransactionRequest? analyzeTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
if (analyzeTransaction != null)
|
||||
result.analyzeTransaction = analyzeTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.signTransaction,
|
||||
2: Request_Payload.analyzeTransaction,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<$0.EvmSignTransactionRequest>(
|
||||
1, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionRequest.create)
|
||||
..aOM<$0.EvmAnalyzeTransactionRequest>(
|
||||
2, _omitFieldNames ? '' : 'analyzeTransaction',
|
||||
subBuilder: $0.EvmAnalyzeTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionRequest get signTransaction => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signTransaction($0.EvmSignTransactionRequest value) =>
|
||||
$_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignTransaction() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignTransaction() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionRequest ensureSignTransaction() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionRequest get analyzeTransaction => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set analyzeTransaction($0.EvmAnalyzeTransactionRequest value) =>
|
||||
$_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAnalyzeTransaction() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAnalyzeTransaction() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionRequest ensureAnalyzeTransaction() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { signTransaction, analyzeTransaction, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$0.EvmSignTransactionResponse? signTransaction,
|
||||
$0.EvmAnalyzeTransactionResponse? analyzeTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
if (analyzeTransaction != null)
|
||||
result.analyzeTransaction = analyzeTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.signTransaction,
|
||||
2: Response_Payload.analyzeTransaction,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.client.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<$0.EvmSignTransactionResponse>(
|
||||
1, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionResponse.create)
|
||||
..aOM<$0.EvmAnalyzeTransactionResponse>(
|
||||
2, _omitFieldNames ? '' : 'analyzeTransaction',
|
||||
subBuilder: $0.EvmAnalyzeTransactionResponse.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionResponse get signTransaction => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signTransaction($0.EvmSignTransactionResponse value) =>
|
||||
$_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignTransaction() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignTransaction() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.EvmSignTransactionResponse ensureSignTransaction() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionResponse get analyzeTransaction => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set analyzeTransaction($0.EvmAnalyzeTransactionResponse value) =>
|
||||
$_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAnalyzeTransaction() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAnalyzeTransaction() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmAnalyzeTransactionResponse ensureAnalyzeTransaction() => $_ensure(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,86 +1,86 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
{
|
||||
'1': 'analyze_transaction',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmAnalyzeTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'analyzeTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElMKEHNpZ25fdHJhbnNhY3Rpb24YASABKAsyJi5hcmJpdGVyLmV2bS5Fdm1TaW'
|
||||
'duVHJhbnNhY3Rpb25SZXF1ZXN0SABSD3NpZ25UcmFuc2FjdGlvbhJcChNhbmFseXplX3RyYW5z'
|
||||
'YWN0aW9uGAIgASgLMikuYXJiaXRlci5ldm0uRXZtQW5hbHl6ZVRyYW5zYWN0aW9uUmVxdWVzdE'
|
||||
'gAUhJhbmFseXplVHJhbnNhY3Rpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
{
|
||||
'1': 'analyze_transaction',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmAnalyzeTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'analyzeTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJUChBzaWduX3RyYW5zYWN0aW9uGAEgASgLMicuYXJiaXRlci5ldm0uRXZtU2'
|
||||
'lnblRyYW5zYWN0aW9uUmVzcG9uc2VIAFIPc2lnblRyYW5zYWN0aW9uEl0KE2FuYWx5emVfdHJh'
|
||||
'bnNhY3Rpb24YAiABKAsyKi5hcmJpdGVyLmV2bS5Fdm1BbmFseXplVHJhbnNhY3Rpb25SZXNwb2'
|
||||
'5zZUgAUhJhbmFseXplVHJhbnNhY3Rpb25CCQoHcGF5bG9hZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
{
|
||||
'1': 'analyze_transaction',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmAnalyzeTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'analyzeTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElMKEHNpZ25fdHJhbnNhY3Rpb24YASABKAsyJi5hcmJpdGVyLmV2bS5Fdm1TaW'
|
||||
'duVHJhbnNhY3Rpb25SZXF1ZXN0SABSD3NpZ25UcmFuc2FjdGlvbhJcChNhbmFseXplX3RyYW5z'
|
||||
'YWN0aW9uGAIgASgLMikuYXJiaXRlci5ldm0uRXZtQW5hbHl6ZVRyYW5zYWN0aW9uUmVxdWVzdE'
|
||||
'gAUhJhbmFseXplVHJhbnNhY3Rpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
{
|
||||
'1': 'analyze_transaction',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmAnalyzeTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'analyzeTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJUChBzaWduX3RyYW5zYWN0aW9uGAEgASgLMicuYXJiaXRlci5ldm0uRXZtU2'
|
||||
'lnblRyYW5zYWN0aW9uUmVzcG9uc2VIAFIPc2lnblRyYW5zYWN0aW9uEl0KE2FuYWx5emVfdHJh'
|
||||
'bnNhY3Rpb24YAiABKAsyKi5hcmJpdGVyLmV2bS5Fdm1BbmFseXplVHJhbnNhY3Rpb25SZXNwb2'
|
||||
'5zZUgAUhJhbmFseXplVHJhbnNhY3Rpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@@ -1,161 +1,161 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
import '../shared/vault.pbenum.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { queryState, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.Empty? queryState,
|
||||
}) {
|
||||
final result = create();
|
||||
if (queryState != null) result.queryState = queryState;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.queryState,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.client.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'queryState',
|
||||
subBuilder: $0.Empty.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get queryState => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set queryState($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasQueryState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearQueryState() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureQueryState() => $_ensure(0);
|
||||
}
|
||||
|
||||
enum Response_Payload { state, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$1.VaultState? state,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.state,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.client.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1])
|
||||
..aE<$1.VaultState>(1, _omitFieldNames ? '' : 'state',
|
||||
enumValues: $1.VaultState.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$1.VaultState get state => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($1.VaultState value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
import '../shared/vault.pbenum.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { queryState, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.Empty? queryState,
|
||||
}) {
|
||||
final result = create();
|
||||
if (queryState != null) result.queryState = queryState;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.queryState,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.client.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'queryState',
|
||||
subBuilder: $0.Empty.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get queryState => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set queryState($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasQueryState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearQueryState() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureQueryState() => $_ensure(0);
|
||||
}
|
||||
|
||||
enum Response_Payload { state, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$1.VaultState? state,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.state,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.client.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1])
|
||||
..aE<$1.VaultState>(1, _omitFieldNames ? '' : 'state',
|
||||
enumValues: $1.VaultState.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$1.VaultState get state => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($1.VaultState value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,64 +1,64 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'query_state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'queryState'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EjkKC3F1ZXJ5X3N0YXRlGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SA'
|
||||
'BSCnF1ZXJ5U3RhdGVCCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.shared.VaultState',
|
||||
'9': 0,
|
||||
'10': 'state'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRIyCgVzdGF0ZRgBIAEoDjIaLmFyYml0ZXIuc2hhcmVkLlZhdWx0U3RhdGVIAF'
|
||||
'IFc3RhdGVCCQoHcGF5bG9hZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from client/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'query_state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'queryState'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EjkKC3F1ZXJ5X3N0YXRlGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SA'
|
||||
'BSCnF1ZXJ5U3RhdGVCCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.shared.VaultState',
|
||||
'9': 0,
|
||||
'10': 'state'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRIyCgVzdGF0ZRgBIAEoDjIaLmFyYml0ZXIuc2hhcmVkLlZhdWx0U3RhdGVIAF'
|
||||
'IFc3RhdGVCCQoHcGF5bG9hZA==');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,40 +1,40 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class EvmError extends $pb.ProtobufEnum {
|
||||
static const EvmError EVM_ERROR_UNSPECIFIED =
|
||||
EvmError._(0, _omitEnumNames ? '' : 'EVM_ERROR_UNSPECIFIED');
|
||||
static const EvmError EVM_ERROR_VAULT_SEALED =
|
||||
EvmError._(1, _omitEnumNames ? '' : 'EVM_ERROR_VAULT_SEALED');
|
||||
static const EvmError EVM_ERROR_INTERNAL =
|
||||
EvmError._(2, _omitEnumNames ? '' : 'EVM_ERROR_INTERNAL');
|
||||
|
||||
static const $core.List<EvmError> values = <EvmError>[
|
||||
EVM_ERROR_UNSPECIFIED,
|
||||
EVM_ERROR_VAULT_SEALED,
|
||||
EVM_ERROR_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<EvmError?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 2);
|
||||
static EvmError? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const EvmError._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class EvmError extends $pb.ProtobufEnum {
|
||||
static const EvmError EVM_ERROR_UNSPECIFIED =
|
||||
EvmError._(0, _omitEnumNames ? '' : 'EVM_ERROR_UNSPECIFIED');
|
||||
static const EvmError EVM_ERROR_VAULT_SEALED =
|
||||
EvmError._(1, _omitEnumNames ? '' : 'EVM_ERROR_VAULT_SEALED');
|
||||
static const EvmError EVM_ERROR_INTERNAL =
|
||||
EvmError._(2, _omitEnumNames ? '' : 'EVM_ERROR_INTERNAL');
|
||||
|
||||
static const $core.List<EvmError> values = <EvmError>[
|
||||
EVM_ERROR_UNSPECIFIED,
|
||||
EVM_ERROR_VAULT_SEALED,
|
||||
EVM_ERROR_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<EvmError?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 2);
|
||||
static EvmError? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const EvmError._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,99 +1,99 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class ClientInfo extends $pb.GeneratedMessage {
|
||||
factory ClientInfo({
|
||||
$core.String? name,
|
||||
$core.String? description,
|
||||
$core.String? version,
|
||||
}) {
|
||||
final result = create();
|
||||
if (name != null) result.name = name;
|
||||
if (description != null) result.description = description;
|
||||
if (version != null) result.version = version;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientInfo._();
|
||||
|
||||
factory ClientInfo.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientInfo.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientInfo',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
..aOS(2, _omitFieldNames ? '' : 'description')
|
||||
..aOS(3, _omitFieldNames ? '' : 'version')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientInfo clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientInfo copyWith(void Function(ClientInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientInfo create() => ClientInfo._();
|
||||
@$core.override
|
||||
ClientInfo createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientInfo getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientInfo>(create);
|
||||
static ClientInfo? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearName() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get description => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set description($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasDescription() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearDescription() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get version => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set version($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasVersion() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearVersion() => $_clearField(3);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class ClientInfo extends $pb.GeneratedMessage {
|
||||
factory ClientInfo({
|
||||
$core.String? name,
|
||||
$core.String? description,
|
||||
$core.String? version,
|
||||
}) {
|
||||
final result = create();
|
||||
if (name != null) result.name = name;
|
||||
if (description != null) result.description = description;
|
||||
if (version != null) result.version = version;
|
||||
return result;
|
||||
}
|
||||
|
||||
ClientInfo._();
|
||||
|
||||
factory ClientInfo.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory ClientInfo.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'ClientInfo',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'name')
|
||||
..aOS(2, _omitFieldNames ? '' : 'description')
|
||||
..aOS(3, _omitFieldNames ? '' : 'version')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientInfo clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
ClientInfo copyWith(void Function(ClientInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as ClientInfo)) as ClientInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientInfo create() => ClientInfo._();
|
||||
@$core.override
|
||||
ClientInfo createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClientInfo getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<ClientInfo>(create);
|
||||
static ClientInfo? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get name => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set name($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearName() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get description => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set description($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasDescription() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearDescription() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get version => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set version($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasVersion() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearVersion() => $_clearField(3);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use clientInfoDescriptor instead')
|
||||
const ClientInfo$json = {
|
||||
'1': 'ClientInfo',
|
||||
'2': [
|
||||
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
{
|
||||
'1': 'description',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'description',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'version',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 1,
|
||||
'10': 'version',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_description'},
|
||||
{'1': '_version'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode(
|
||||
'CgpDbGllbnRJbmZvEhIKBG5hbWUYASABKAlSBG5hbWUSJQoLZGVzY3JpcHRpb24YAiABKAlIAF'
|
||||
'ILZGVzY3JpcHRpb26IAQESHQoHdmVyc2lvbhgDIAEoCUgBUgd2ZXJzaW9uiAEBQg4KDF9kZXNj'
|
||||
'cmlwdGlvbkIKCghfdmVyc2lvbg==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use clientInfoDescriptor instead')
|
||||
const ClientInfo$json = {
|
||||
'1': 'ClientInfo',
|
||||
'2': [
|
||||
{'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'},
|
||||
{
|
||||
'1': 'description',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'description',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'version',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 1,
|
||||
'10': 'version',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_description'},
|
||||
{'1': '_version'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ClientInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List clientInfoDescriptor = $convert.base64Decode(
|
||||
'CgpDbGllbnRJbmZvEhIKBG5hbWUYASABKAlSBG5hbWUSJQoLZGVzY3JpcHRpb24YAiABKAlIAF'
|
||||
'ILZGVzY3JpcHRpb26IAQESHQoHdmVyc2lvbhgDIAEoCUgBUgd2ZXJzaW9uiAEBQg4KDF9kZXNj'
|
||||
'cmlwdGlvbkIKCghfdmVyc2lvbg==');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,342 +1,342 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use etherTransferMeaningDescriptor instead')
|
||||
const EtherTransferMeaning$json = {
|
||||
'1': 'EtherTransferMeaning',
|
||||
'2': [
|
||||
{'1': 'to', '3': 1, '4': 1, '5': 12, '10': 'to'},
|
||||
{'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `EtherTransferMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List etherTransferMeaningDescriptor = $convert.base64Decode(
|
||||
'ChRFdGhlclRyYW5zZmVyTWVhbmluZxIOCgJ0bxgBIAEoDFICdG8SFAoFdmFsdWUYAiABKAxSBX'
|
||||
'ZhbHVl');
|
||||
|
||||
@$core.Deprecated('Use tokenInfoDescriptor instead')
|
||||
const TokenInfo$json = {
|
||||
'1': 'TokenInfo',
|
||||
'2': [
|
||||
{'1': 'symbol', '3': 1, '4': 1, '5': 9, '10': 'symbol'},
|
||||
{'1': 'address', '3': 2, '4': 1, '5': 12, '10': 'address'},
|
||||
{'1': 'chain_id', '3': 3, '4': 1, '5': 4, '10': 'chainId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TokenInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tokenInfoDescriptor = $convert.base64Decode(
|
||||
'CglUb2tlbkluZm8SFgoGc3ltYm9sGAEgASgJUgZzeW1ib2wSGAoHYWRkcmVzcxgCIAEoDFIHYW'
|
||||
'RkcmVzcxIZCghjaGFpbl9pZBgDIAEoBFIHY2hhaW5JZA==');
|
||||
|
||||
@$core.Deprecated('Use tokenTransferMeaningDescriptor instead')
|
||||
const TokenTransferMeaning$json = {
|
||||
'1': 'TokenTransferMeaning',
|
||||
'2': [
|
||||
{
|
||||
'1': 'token',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.TokenInfo',
|
||||
'10': 'token'
|
||||
},
|
||||
{'1': 'to', '3': 2, '4': 1, '5': 12, '10': 'to'},
|
||||
{'1': 'value', '3': 3, '4': 1, '5': 12, '10': 'value'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TokenTransferMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tokenTransferMeaningDescriptor = $convert.base64Decode(
|
||||
'ChRUb2tlblRyYW5zZmVyTWVhbmluZxIzCgV0b2tlbhgBIAEoCzIdLmFyYml0ZXIuc2hhcmVkLm'
|
||||
'V2bS5Ub2tlbkluZm9SBXRva2VuEg4KAnRvGAIgASgMUgJ0bxIUCgV2YWx1ZRgDIAEoDFIFdmFs'
|
||||
'dWU=');
|
||||
|
||||
@$core.Deprecated('Use specificMeaningDescriptor instead')
|
||||
const SpecificMeaning$json = {
|
||||
'1': 'SpecificMeaning',
|
||||
'2': [
|
||||
{
|
||||
'1': 'ether_transfer',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EtherTransferMeaning',
|
||||
'9': 0,
|
||||
'10': 'etherTransfer'
|
||||
},
|
||||
{
|
||||
'1': 'token_transfer',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.TokenTransferMeaning',
|
||||
'9': 0,
|
||||
'10': 'tokenTransfer'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'meaning'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `SpecificMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List specificMeaningDescriptor = $convert.base64Decode(
|
||||
'Cg9TcGVjaWZpY01lYW5pbmcSUQoOZXRoZXJfdHJhbnNmZXIYASABKAsyKC5hcmJpdGVyLnNoYX'
|
||||
'JlZC5ldm0uRXRoZXJUcmFuc2Zlck1lYW5pbmdIAFINZXRoZXJUcmFuc2ZlchJRCg50b2tlbl90'
|
||||
'cmFuc2ZlchgCIAEoCzIoLmFyYml0ZXIuc2hhcmVkLmV2bS5Ub2tlblRyYW5zZmVyTWVhbmluZ0'
|
||||
'gAUg10b2tlblRyYW5zZmVyQgkKB21lYW5pbmc=');
|
||||
|
||||
@$core.Deprecated('Use gasLimitExceededViolationDescriptor instead')
|
||||
const GasLimitExceededViolation$json = {
|
||||
'1': 'GasLimitExceededViolation',
|
||||
'2': [
|
||||
{
|
||||
'1': 'max_gas_fee_per_gas',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 0,
|
||||
'10': 'maxGasFeePerGas',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'max_priority_fee_per_gas',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 1,
|
||||
'10': 'maxPriorityFeePerGas',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_max_gas_fee_per_gas'},
|
||||
{'1': '_max_priority_fee_per_gas'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `GasLimitExceededViolation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List gasLimitExceededViolationDescriptor = $convert.base64Decode(
|
||||
'ChlHYXNMaW1pdEV4Y2VlZGVkVmlvbGF0aW9uEjEKE21heF9nYXNfZmVlX3Blcl9nYXMYASABKA'
|
||||
'xIAFIPbWF4R2FzRmVlUGVyR2FziAEBEjsKGG1heF9wcmlvcml0eV9mZWVfcGVyX2dhcxgCIAEo'
|
||||
'DEgBUhRtYXhQcmlvcml0eUZlZVBlckdhc4gBAUIWChRfbWF4X2dhc19mZWVfcGVyX2dhc0IbCh'
|
||||
'lfbWF4X3ByaW9yaXR5X2ZlZV9wZXJfZ2Fz');
|
||||
|
||||
@$core.Deprecated('Use evalViolationDescriptor instead')
|
||||
const EvalViolation$json = {
|
||||
'1': 'EvalViolation',
|
||||
'2': [
|
||||
{
|
||||
'1': 'invalid_target',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 0,
|
||||
'10': 'invalidTarget'
|
||||
},
|
||||
{
|
||||
'1': 'gas_limit_exceeded',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.GasLimitExceededViolation',
|
||||
'9': 0,
|
||||
'10': 'gasLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'rate_limit_exceeded',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'rateLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'volumetric_limit_exceeded',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'volumetricLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'invalid_time',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'invalidTime'
|
||||
},
|
||||
{
|
||||
'1': 'invalid_transaction_type',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'invalidTransactionType'
|
||||
},
|
||||
{
|
||||
'1': 'chain_id_mismatch',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EvalViolation.ChainIdMismatch',
|
||||
'9': 0,
|
||||
'10': 'chainIdMismatch'
|
||||
},
|
||||
],
|
||||
'3': [EvalViolation_ChainIdMismatch$json],
|
||||
'8': [
|
||||
{'1': 'kind'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use evalViolationDescriptor instead')
|
||||
const EvalViolation_ChainIdMismatch$json = {
|
||||
'1': 'ChainIdMismatch',
|
||||
'2': [
|
||||
{'1': 'expected', '3': 1, '4': 1, '5': 4, '10': 'expected'},
|
||||
{'1': 'actual', '3': 2, '4': 1, '5': 4, '10': 'actual'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `EvalViolation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List evalViolationDescriptor = $convert.base64Decode(
|
||||
'Cg1FdmFsVmlvbGF0aW9uEicKDmludmFsaWRfdGFyZ2V0GAEgASgMSABSDWludmFsaWRUYXJnZX'
|
||||
'QSXQoSZ2FzX2xpbWl0X2V4Y2VlZGVkGAIgASgLMi0uYXJiaXRlci5zaGFyZWQuZXZtLkdhc0xp'
|
||||
'bWl0RXhjZWVkZWRWaW9sYXRpb25IAFIQZ2FzTGltaXRFeGNlZWRlZBJIChNyYXRlX2xpbWl0X2'
|
||||
'V4Y2VlZGVkGAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSEXJhdGVMaW1pdEV4Y2Vl'
|
||||
'ZGVkElQKGXZvbHVtZXRyaWNfbGltaXRfZXhjZWVkZWQYBCABKAsyFi5nb29nbGUucHJvdG9idW'
|
||||
'YuRW1wdHlIAFIXdm9sdW1ldHJpY0xpbWl0RXhjZWVkZWQSOwoMaW52YWxpZF90aW1lGAUgASgL'
|
||||
'MhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSC2ludmFsaWRUaW1lElIKGGludmFsaWRfdHJhbn'
|
||||
'NhY3Rpb25fdHlwZRgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhZpbnZhbGlkVHJh'
|
||||
'bnNhY3Rpb25UeXBlEl8KEWNoYWluX2lkX21pc21hdGNoGAcgASgLMjEuYXJiaXRlci5zaGFyZW'
|
||||
'QuZXZtLkV2YWxWaW9sYXRpb24uQ2hhaW5JZE1pc21hdGNoSABSD2NoYWluSWRNaXNtYXRjaBpF'
|
||||
'Cg9DaGFpbklkTWlzbWF0Y2gSGgoIZXhwZWN0ZWQYASABKARSCGV4cGVjdGVkEhYKBmFjdHVhbB'
|
||||
'gCIAEoBFIGYWN0dWFsQgYKBGtpbmQ=');
|
||||
|
||||
@$core.Deprecated('Use noMatchingGrantErrorDescriptor instead')
|
||||
const NoMatchingGrantError$json = {
|
||||
'1': 'NoMatchingGrantError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'meaning',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.SpecificMeaning',
|
||||
'10': 'meaning'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NoMatchingGrantError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List noMatchingGrantErrorDescriptor = $convert.base64Decode(
|
||||
'ChROb01hdGNoaW5nR3JhbnRFcnJvchI9CgdtZWFuaW5nGAEgASgLMiMuYXJiaXRlci5zaGFyZW'
|
||||
'QuZXZtLlNwZWNpZmljTWVhbmluZ1IHbWVhbmluZw==');
|
||||
|
||||
@$core.Deprecated('Use policyViolationsErrorDescriptor instead')
|
||||
const PolicyViolationsError$json = {
|
||||
'1': 'PolicyViolationsError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'meaning',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.SpecificMeaning',
|
||||
'10': 'meaning'
|
||||
},
|
||||
{
|
||||
'1': 'violations',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EvalViolation',
|
||||
'10': 'violations'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PolicyViolationsError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List policyViolationsErrorDescriptor = $convert.base64Decode(
|
||||
'ChVQb2xpY3lWaW9sYXRpb25zRXJyb3ISPQoHbWVhbmluZxgBIAEoCzIjLmFyYml0ZXIuc2hhcm'
|
||||
'VkLmV2bS5TcGVjaWZpY01lYW5pbmdSB21lYW5pbmcSQQoKdmlvbGF0aW9ucxgCIAMoCzIhLmFy'
|
||||
'Yml0ZXIuc2hhcmVkLmV2bS5FdmFsVmlvbGF0aW9uUgp2aW9sYXRpb25z');
|
||||
|
||||
@$core.Deprecated('Use transactionEvalErrorDescriptor instead')
|
||||
const TransactionEvalError$json = {
|
||||
'1': 'TransactionEvalError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'contract_creation_not_supported',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'contractCreationNotSupported'
|
||||
},
|
||||
{
|
||||
'1': 'unsupported_transaction_type',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'unsupportedTransactionType'
|
||||
},
|
||||
{
|
||||
'1': 'no_matching_grant',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.NoMatchingGrantError',
|
||||
'9': 0,
|
||||
'10': 'noMatchingGrant'
|
||||
},
|
||||
{
|
||||
'1': 'policy_violations',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.PolicyViolationsError',
|
||||
'9': 0,
|
||||
'10': 'policyViolations'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'kind'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TransactionEvalError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List transactionEvalErrorDescriptor = $convert.base64Decode(
|
||||
'ChRUcmFuc2FjdGlvbkV2YWxFcnJvchJfCh9jb250cmFjdF9jcmVhdGlvbl9ub3Rfc3VwcG9ydG'
|
||||
'VkGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSHGNvbnRyYWN0Q3JlYXRpb25Ob3RT'
|
||||
'dXBwb3J0ZWQSWgocdW5zdXBwb3J0ZWRfdHJhbnNhY3Rpb25fdHlwZRgCIAEoCzIWLmdvb2dsZS'
|
||||
'5wcm90b2J1Zi5FbXB0eUgAUhp1bnN1cHBvcnRlZFRyYW5zYWN0aW9uVHlwZRJWChFub19tYXRj'
|
||||
'aGluZ19ncmFudBgDIAEoCzIoLmFyYml0ZXIuc2hhcmVkLmV2bS5Ob01hdGNoaW5nR3JhbnRFcn'
|
||||
'JvckgAUg9ub01hdGNoaW5nR3JhbnQSWAoRcG9saWN5X3Zpb2xhdGlvbnMYBCABKAsyKS5hcmJp'
|
||||
'dGVyLnNoYXJlZC5ldm0uUG9saWN5VmlvbGF0aW9uc0Vycm9ySABSEHBvbGljeVZpb2xhdGlvbn'
|
||||
'NCBgoEa2luZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use etherTransferMeaningDescriptor instead')
|
||||
const EtherTransferMeaning$json = {
|
||||
'1': 'EtherTransferMeaning',
|
||||
'2': [
|
||||
{'1': 'to', '3': 1, '4': 1, '5': 12, '10': 'to'},
|
||||
{'1': 'value', '3': 2, '4': 1, '5': 12, '10': 'value'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `EtherTransferMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List etherTransferMeaningDescriptor = $convert.base64Decode(
|
||||
'ChRFdGhlclRyYW5zZmVyTWVhbmluZxIOCgJ0bxgBIAEoDFICdG8SFAoFdmFsdWUYAiABKAxSBX'
|
||||
'ZhbHVl');
|
||||
|
||||
@$core.Deprecated('Use tokenInfoDescriptor instead')
|
||||
const TokenInfo$json = {
|
||||
'1': 'TokenInfo',
|
||||
'2': [
|
||||
{'1': 'symbol', '3': 1, '4': 1, '5': 9, '10': 'symbol'},
|
||||
{'1': 'address', '3': 2, '4': 1, '5': 12, '10': 'address'},
|
||||
{'1': 'chain_id', '3': 3, '4': 1, '5': 4, '10': 'chainId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TokenInfo`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tokenInfoDescriptor = $convert.base64Decode(
|
||||
'CglUb2tlbkluZm8SFgoGc3ltYm9sGAEgASgJUgZzeW1ib2wSGAoHYWRkcmVzcxgCIAEoDFIHYW'
|
||||
'RkcmVzcxIZCghjaGFpbl9pZBgDIAEoBFIHY2hhaW5JZA==');
|
||||
|
||||
@$core.Deprecated('Use tokenTransferMeaningDescriptor instead')
|
||||
const TokenTransferMeaning$json = {
|
||||
'1': 'TokenTransferMeaning',
|
||||
'2': [
|
||||
{
|
||||
'1': 'token',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.TokenInfo',
|
||||
'10': 'token'
|
||||
},
|
||||
{'1': 'to', '3': 2, '4': 1, '5': 12, '10': 'to'},
|
||||
{'1': 'value', '3': 3, '4': 1, '5': 12, '10': 'value'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TokenTransferMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List tokenTransferMeaningDescriptor = $convert.base64Decode(
|
||||
'ChRUb2tlblRyYW5zZmVyTWVhbmluZxIzCgV0b2tlbhgBIAEoCzIdLmFyYml0ZXIuc2hhcmVkLm'
|
||||
'V2bS5Ub2tlbkluZm9SBXRva2VuEg4KAnRvGAIgASgMUgJ0bxIUCgV2YWx1ZRgDIAEoDFIFdmFs'
|
||||
'dWU=');
|
||||
|
||||
@$core.Deprecated('Use specificMeaningDescriptor instead')
|
||||
const SpecificMeaning$json = {
|
||||
'1': 'SpecificMeaning',
|
||||
'2': [
|
||||
{
|
||||
'1': 'ether_transfer',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EtherTransferMeaning',
|
||||
'9': 0,
|
||||
'10': 'etherTransfer'
|
||||
},
|
||||
{
|
||||
'1': 'token_transfer',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.TokenTransferMeaning',
|
||||
'9': 0,
|
||||
'10': 'tokenTransfer'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'meaning'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `SpecificMeaning`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List specificMeaningDescriptor = $convert.base64Decode(
|
||||
'Cg9TcGVjaWZpY01lYW5pbmcSUQoOZXRoZXJfdHJhbnNmZXIYASABKAsyKC5hcmJpdGVyLnNoYX'
|
||||
'JlZC5ldm0uRXRoZXJUcmFuc2Zlck1lYW5pbmdIAFINZXRoZXJUcmFuc2ZlchJRCg50b2tlbl90'
|
||||
'cmFuc2ZlchgCIAEoCzIoLmFyYml0ZXIuc2hhcmVkLmV2bS5Ub2tlblRyYW5zZmVyTWVhbmluZ0'
|
||||
'gAUg10b2tlblRyYW5zZmVyQgkKB21lYW5pbmc=');
|
||||
|
||||
@$core.Deprecated('Use gasLimitExceededViolationDescriptor instead')
|
||||
const GasLimitExceededViolation$json = {
|
||||
'1': 'GasLimitExceededViolation',
|
||||
'2': [
|
||||
{
|
||||
'1': 'max_gas_fee_per_gas',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 0,
|
||||
'10': 'maxGasFeePerGas',
|
||||
'17': true
|
||||
},
|
||||
{
|
||||
'1': 'max_priority_fee_per_gas',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 1,
|
||||
'10': 'maxPriorityFeePerGas',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_max_gas_fee_per_gas'},
|
||||
{'1': '_max_priority_fee_per_gas'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `GasLimitExceededViolation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List gasLimitExceededViolationDescriptor = $convert.base64Decode(
|
||||
'ChlHYXNMaW1pdEV4Y2VlZGVkVmlvbGF0aW9uEjEKE21heF9nYXNfZmVlX3Blcl9nYXMYASABKA'
|
||||
'xIAFIPbWF4R2FzRmVlUGVyR2FziAEBEjsKGG1heF9wcmlvcml0eV9mZWVfcGVyX2dhcxgCIAEo'
|
||||
'DEgBUhRtYXhQcmlvcml0eUZlZVBlckdhc4gBAUIWChRfbWF4X2dhc19mZWVfcGVyX2dhc0IbCh'
|
||||
'lfbWF4X3ByaW9yaXR5X2ZlZV9wZXJfZ2Fz');
|
||||
|
||||
@$core.Deprecated('Use evalViolationDescriptor instead')
|
||||
const EvalViolation$json = {
|
||||
'1': 'EvalViolation',
|
||||
'2': [
|
||||
{
|
||||
'1': 'invalid_target',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 12,
|
||||
'9': 0,
|
||||
'10': 'invalidTarget'
|
||||
},
|
||||
{
|
||||
'1': 'gas_limit_exceeded',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.GasLimitExceededViolation',
|
||||
'9': 0,
|
||||
'10': 'gasLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'rate_limit_exceeded',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'rateLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'volumetric_limit_exceeded',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'volumetricLimitExceeded'
|
||||
},
|
||||
{
|
||||
'1': 'invalid_time',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'invalidTime'
|
||||
},
|
||||
{
|
||||
'1': 'invalid_transaction_type',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'invalidTransactionType'
|
||||
},
|
||||
{
|
||||
'1': 'chain_id_mismatch',
|
||||
'3': 7,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EvalViolation.ChainIdMismatch',
|
||||
'9': 0,
|
||||
'10': 'chainIdMismatch'
|
||||
},
|
||||
],
|
||||
'3': [EvalViolation_ChainIdMismatch$json],
|
||||
'8': [
|
||||
{'1': 'kind'},
|
||||
],
|
||||
};
|
||||
|
||||
@$core.Deprecated('Use evalViolationDescriptor instead')
|
||||
const EvalViolation_ChainIdMismatch$json = {
|
||||
'1': 'ChainIdMismatch',
|
||||
'2': [
|
||||
{'1': 'expected', '3': 1, '4': 1, '5': 4, '10': 'expected'},
|
||||
{'1': 'actual', '3': 2, '4': 1, '5': 4, '10': 'actual'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `EvalViolation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List evalViolationDescriptor = $convert.base64Decode(
|
||||
'Cg1FdmFsVmlvbGF0aW9uEicKDmludmFsaWRfdGFyZ2V0GAEgASgMSABSDWludmFsaWRUYXJnZX'
|
||||
'QSXQoSZ2FzX2xpbWl0X2V4Y2VlZGVkGAIgASgLMi0uYXJiaXRlci5zaGFyZWQuZXZtLkdhc0xp'
|
||||
'bWl0RXhjZWVkZWRWaW9sYXRpb25IAFIQZ2FzTGltaXRFeGNlZWRlZBJIChNyYXRlX2xpbWl0X2'
|
||||
'V4Y2VlZGVkGAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSEXJhdGVMaW1pdEV4Y2Vl'
|
||||
'ZGVkElQKGXZvbHVtZXRyaWNfbGltaXRfZXhjZWVkZWQYBCABKAsyFi5nb29nbGUucHJvdG9idW'
|
||||
'YuRW1wdHlIAFIXdm9sdW1ldHJpY0xpbWl0RXhjZWVkZWQSOwoMaW52YWxpZF90aW1lGAUgASgL'
|
||||
'MhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSC2ludmFsaWRUaW1lElIKGGludmFsaWRfdHJhbn'
|
||||
'NhY3Rpb25fdHlwZRgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhZpbnZhbGlkVHJh'
|
||||
'bnNhY3Rpb25UeXBlEl8KEWNoYWluX2lkX21pc21hdGNoGAcgASgLMjEuYXJiaXRlci5zaGFyZW'
|
||||
'QuZXZtLkV2YWxWaW9sYXRpb24uQ2hhaW5JZE1pc21hdGNoSABSD2NoYWluSWRNaXNtYXRjaBpF'
|
||||
'Cg9DaGFpbklkTWlzbWF0Y2gSGgoIZXhwZWN0ZWQYASABKARSCGV4cGVjdGVkEhYKBmFjdHVhbB'
|
||||
'gCIAEoBFIGYWN0dWFsQgYKBGtpbmQ=');
|
||||
|
||||
@$core.Deprecated('Use noMatchingGrantErrorDescriptor instead')
|
||||
const NoMatchingGrantError$json = {
|
||||
'1': 'NoMatchingGrantError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'meaning',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.SpecificMeaning',
|
||||
'10': 'meaning'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `NoMatchingGrantError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List noMatchingGrantErrorDescriptor = $convert.base64Decode(
|
||||
'ChROb01hdGNoaW5nR3JhbnRFcnJvchI9CgdtZWFuaW5nGAEgASgLMiMuYXJiaXRlci5zaGFyZW'
|
||||
'QuZXZtLlNwZWNpZmljTWVhbmluZ1IHbWVhbmluZw==');
|
||||
|
||||
@$core.Deprecated('Use policyViolationsErrorDescriptor instead')
|
||||
const PolicyViolationsError$json = {
|
||||
'1': 'PolicyViolationsError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'meaning',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.SpecificMeaning',
|
||||
'10': 'meaning'
|
||||
},
|
||||
{
|
||||
'1': 'violations',
|
||||
'3': 2,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.EvalViolation',
|
||||
'10': 'violations'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PolicyViolationsError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List policyViolationsErrorDescriptor = $convert.base64Decode(
|
||||
'ChVQb2xpY3lWaW9sYXRpb25zRXJyb3ISPQoHbWVhbmluZxgBIAEoCzIjLmFyYml0ZXIuc2hhcm'
|
||||
'VkLmV2bS5TcGVjaWZpY01lYW5pbmdSB21lYW5pbmcSQQoKdmlvbGF0aW9ucxgCIAMoCzIhLmFy'
|
||||
'Yml0ZXIuc2hhcmVkLmV2bS5FdmFsVmlvbGF0aW9uUgp2aW9sYXRpb25z');
|
||||
|
||||
@$core.Deprecated('Use transactionEvalErrorDescriptor instead')
|
||||
const TransactionEvalError$json = {
|
||||
'1': 'TransactionEvalError',
|
||||
'2': [
|
||||
{
|
||||
'1': 'contract_creation_not_supported',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'contractCreationNotSupported'
|
||||
},
|
||||
{
|
||||
'1': 'unsupported_transaction_type',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'unsupportedTransactionType'
|
||||
},
|
||||
{
|
||||
'1': 'no_matching_grant',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.NoMatchingGrantError',
|
||||
'9': 0,
|
||||
'10': 'noMatchingGrant'
|
||||
},
|
||||
{
|
||||
'1': 'policy_violations',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.evm.PolicyViolationsError',
|
||||
'9': 0,
|
||||
'10': 'policyViolations'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'kind'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `TransactionEvalError`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List transactionEvalErrorDescriptor = $convert.base64Decode(
|
||||
'ChRUcmFuc2FjdGlvbkV2YWxFcnJvchJfCh9jb250cmFjdF9jcmVhdGlvbl9ub3Rfc3VwcG9ydG'
|
||||
'VkGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSHGNvbnRyYWN0Q3JlYXRpb25Ob3RT'
|
||||
'dXBwb3J0ZWQSWgocdW5zdXBwb3J0ZWRfdHJhbnNhY3Rpb25fdHlwZRgCIAEoCzIWLmdvb2dsZS'
|
||||
'5wcm90b2J1Zi5FbXB0eUgAUhp1bnN1cHBvcnRlZFRyYW5zYWN0aW9uVHlwZRJWChFub19tYXRj'
|
||||
'aGluZ19ncmFudBgDIAEoCzIoLmFyYml0ZXIuc2hhcmVkLmV2bS5Ob01hdGNoaW5nR3JhbnRFcn'
|
||||
'JvckgAUg9ub01hdGNoaW5nR3JhbnQSWAoRcG9saWN5X3Zpb2xhdGlvbnMYBCABKAsyKS5hcmJp'
|
||||
'dGVyLnNoYXJlZC5ldm0uUG9saWN5VmlvbGF0aW9uc0Vycm9ySABSEHBvbGljeVZpb2xhdGlvbn'
|
||||
'NCBgoEa2luZA==');
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'vault.pbenum.dart';
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'vault.pbenum.dart';
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class VaultState extends $pb.ProtobufEnum {
|
||||
static const VaultState VAULT_STATE_UNSPECIFIED =
|
||||
VaultState._(0, _omitEnumNames ? '' : 'VAULT_STATE_UNSPECIFIED');
|
||||
static const VaultState VAULT_STATE_UNBOOTSTRAPPED =
|
||||
VaultState._(1, _omitEnumNames ? '' : 'VAULT_STATE_UNBOOTSTRAPPED');
|
||||
static const VaultState VAULT_STATE_SEALED =
|
||||
VaultState._(2, _omitEnumNames ? '' : 'VAULT_STATE_SEALED');
|
||||
static const VaultState VAULT_STATE_UNSEALED =
|
||||
VaultState._(3, _omitEnumNames ? '' : 'VAULT_STATE_UNSEALED');
|
||||
static const VaultState VAULT_STATE_ERROR =
|
||||
VaultState._(4, _omitEnumNames ? '' : 'VAULT_STATE_ERROR');
|
||||
|
||||
static const $core.List<VaultState> values = <VaultState>[
|
||||
VAULT_STATE_UNSPECIFIED,
|
||||
VAULT_STATE_UNBOOTSTRAPPED,
|
||||
VAULT_STATE_SEALED,
|
||||
VAULT_STATE_UNSEALED,
|
||||
VAULT_STATE_ERROR,
|
||||
];
|
||||
|
||||
static final $core.List<VaultState?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 4);
|
||||
static VaultState? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const VaultState._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class VaultState extends $pb.ProtobufEnum {
|
||||
static const VaultState VAULT_STATE_UNSPECIFIED =
|
||||
VaultState._(0, _omitEnumNames ? '' : 'VAULT_STATE_UNSPECIFIED');
|
||||
static const VaultState VAULT_STATE_UNBOOTSTRAPPED =
|
||||
VaultState._(1, _omitEnumNames ? '' : 'VAULT_STATE_UNBOOTSTRAPPED');
|
||||
static const VaultState VAULT_STATE_SEALED =
|
||||
VaultState._(2, _omitEnumNames ? '' : 'VAULT_STATE_SEALED');
|
||||
static const VaultState VAULT_STATE_UNSEALED =
|
||||
VaultState._(3, _omitEnumNames ? '' : 'VAULT_STATE_UNSEALED');
|
||||
static const VaultState VAULT_STATE_ERROR =
|
||||
VaultState._(4, _omitEnumNames ? '' : 'VAULT_STATE_ERROR');
|
||||
|
||||
static const $core.List<VaultState> values = <VaultState>[
|
||||
VAULT_STATE_UNSPECIFIED,
|
||||
VAULT_STATE_UNBOOTSTRAPPED,
|
||||
VAULT_STATE_SEALED,
|
||||
VAULT_STATE_UNSEALED,
|
||||
VAULT_STATE_ERROR,
|
||||
];
|
||||
|
||||
static final $core.List<VaultState?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 4);
|
||||
static VaultState? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const VaultState._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,34 +1,34 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use vaultStateDescriptor instead')
|
||||
const VaultState$json = {
|
||||
'1': 'VaultState',
|
||||
'2': [
|
||||
{'1': 'VAULT_STATE_UNSPECIFIED', '2': 0},
|
||||
{'1': 'VAULT_STATE_UNBOOTSTRAPPED', '2': 1},
|
||||
{'1': 'VAULT_STATE_SEALED', '2': 2},
|
||||
{'1': 'VAULT_STATE_UNSEALED', '2': 3},
|
||||
{'1': 'VAULT_STATE_ERROR', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `VaultState`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List vaultStateDescriptor = $convert.base64Decode(
|
||||
'CgpWYXVsdFN0YXRlEhsKF1ZBVUxUX1NUQVRFX1VOU1BFQ0lGSUVEEAASHgoaVkFVTFRfU1RBVE'
|
||||
'VfVU5CT09UU1RSQVBQRUQQARIWChJWQVVMVF9TVEFURV9TRUFMRUQQAhIYChRWQVVMVF9TVEFU'
|
||||
'RV9VTlNFQUxFRBADEhUKEVZBVUxUX1NUQVRFX0VSUk9SEAQ=');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from shared/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use vaultStateDescriptor instead')
|
||||
const VaultState$json = {
|
||||
'1': 'VaultState',
|
||||
'2': [
|
||||
{'1': 'VAULT_STATE_UNSPECIFIED', '2': 0},
|
||||
{'1': 'VAULT_STATE_UNBOOTSTRAPPED', '2': 1},
|
||||
{'1': 'VAULT_STATE_SEALED', '2': 2},
|
||||
{'1': 'VAULT_STATE_UNSEALED', '2': 3},
|
||||
{'1': 'VAULT_STATE_ERROR', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `VaultState`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List vaultStateDescriptor = $convert.base64Decode(
|
||||
'CgpWYXVsdFN0YXRlEhsKF1ZBVUxUX1NUQVRFX1VOU1BFQ0lGSUVEEAASHgoaVkFVTFRfU1RBVE'
|
||||
'VfVU5CT09UU1RSQVBQRUQQARIWChJWQVVMVF9TVEFURV9TRUFMRUQQAhIYChRWQVVMVF9TVEFU'
|
||||
'RV9VTlNFQUxFRBADEhUKEVZBVUxUX1NUQVRFX0VSUk9SEAQ=');
|
||||
|
||||
@@ -1,303 +1,303 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'user_agent/auth.pb.dart' as $0;
|
||||
import 'user_agent/evm.pb.dart' as $2;
|
||||
import 'user_agent/sdk_client.pb.dart' as $3;
|
||||
import 'user_agent/vault/vault.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum UserAgentRequest_Payload { auth, vault, evm, sdkClient, notSet }
|
||||
|
||||
class UserAgentRequest extends $pb.GeneratedMessage {
|
||||
factory UserAgentRequest({
|
||||
$0.Request? auth,
|
||||
$1.Request? vault,
|
||||
$2.Request? evm,
|
||||
$3.Request? sdkClient,
|
||||
$core.int? id,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (sdkClient != null) result.sdkClient = sdkClient;
|
||||
if (id != null) result.id = id;
|
||||
return result;
|
||||
}
|
||||
|
||||
UserAgentRequest._();
|
||||
|
||||
factory UserAgentRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UserAgentRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, UserAgentRequest_Payload>
|
||||
_UserAgentRequest_PayloadByTag = {
|
||||
1: UserAgentRequest_Payload.auth,
|
||||
2: UserAgentRequest_Payload.vault,
|
||||
3: UserAgentRequest_Payload.evm,
|
||||
4: UserAgentRequest_Payload.sdkClient,
|
||||
0: UserAgentRequest_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UserAgentRequest',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.user_agent'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..aOM<$0.Request>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Request.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Request.create)
|
||||
..aOM<$3.Request>(4, _omitFieldNames ? '' : 'sdkClient',
|
||||
subBuilder: $3.Request.create)
|
||||
..aI(16, _omitFieldNames ? '' : 'id')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentRequest copyWith(void Function(UserAgentRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as UserAgentRequest))
|
||||
as UserAgentRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentRequest create() => UserAgentRequest._();
|
||||
@$core.override
|
||||
UserAgentRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UserAgentRequest>(create);
|
||||
static UserAgentRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
UserAgentRequest_Payload whichPayload() =>
|
||||
_UserAgentRequest_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Request value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$3.Request get sdkClient => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set sdkClient($3.Request value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSdkClient() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearSdkClient() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$3.Request ensureSdkClient() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(16)
|
||||
$core.int get id => $_getIZ(4);
|
||||
@$pb.TagNumber(16)
|
||||
set id($core.int value) => $_setSignedInt32(4, value);
|
||||
@$pb.TagNumber(16)
|
||||
$core.bool hasId() => $_has(4);
|
||||
@$pb.TagNumber(16)
|
||||
void clearId() => $_clearField(16);
|
||||
}
|
||||
|
||||
enum UserAgentResponse_Payload { auth, vault, evm, sdkClient, notSet }
|
||||
|
||||
class UserAgentResponse extends $pb.GeneratedMessage {
|
||||
factory UserAgentResponse({
|
||||
$0.Response? auth,
|
||||
$1.Response? vault,
|
||||
$2.Response? evm,
|
||||
$3.Response? sdkClient,
|
||||
$core.int? id,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (sdkClient != null) result.sdkClient = sdkClient;
|
||||
if (id != null) result.id = id;
|
||||
return result;
|
||||
}
|
||||
|
||||
UserAgentResponse._();
|
||||
|
||||
factory UserAgentResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UserAgentResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, UserAgentResponse_Payload>
|
||||
_UserAgentResponse_PayloadByTag = {
|
||||
1: UserAgentResponse_Payload.auth,
|
||||
2: UserAgentResponse_Payload.vault,
|
||||
3: UserAgentResponse_Payload.evm,
|
||||
4: UserAgentResponse_Payload.sdkClient,
|
||||
0: UserAgentResponse_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UserAgentResponse',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.user_agent'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..aOM<$0.Response>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Response.create)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Response.create)
|
||||
..aOM<$3.Response>(4, _omitFieldNames ? '' : 'sdkClient',
|
||||
subBuilder: $3.Response.create)
|
||||
..aI(16, _omitFieldNames ? '' : 'id')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentResponse copyWith(void Function(UserAgentResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as UserAgentResponse))
|
||||
as UserAgentResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentResponse create() => UserAgentResponse._();
|
||||
@$core.override
|
||||
UserAgentResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UserAgentResponse>(create);
|
||||
static UserAgentResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
UserAgentResponse_Payload whichPayload() =>
|
||||
_UserAgentResponse_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Response value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$3.Response get sdkClient => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set sdkClient($3.Response value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSdkClient() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearSdkClient() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$3.Response ensureSdkClient() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(16)
|
||||
$core.int get id => $_getIZ(4);
|
||||
@$pb.TagNumber(16)
|
||||
set id($core.int value) => $_setSignedInt32(4, value);
|
||||
@$pb.TagNumber(16)
|
||||
$core.bool hasId() => $_has(4);
|
||||
@$pb.TagNumber(16)
|
||||
void clearId() => $_clearField(16);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'user_agent/auth.pb.dart' as $0;
|
||||
import 'user_agent/evm.pb.dart' as $2;
|
||||
import 'user_agent/sdk_client.pb.dart' as $3;
|
||||
import 'user_agent/vault/vault.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum UserAgentRequest_Payload { auth, vault, evm, sdkClient, notSet }
|
||||
|
||||
class UserAgentRequest extends $pb.GeneratedMessage {
|
||||
factory UserAgentRequest({
|
||||
$0.Request? auth,
|
||||
$1.Request? vault,
|
||||
$2.Request? evm,
|
||||
$3.Request? sdkClient,
|
||||
$core.int? id,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (sdkClient != null) result.sdkClient = sdkClient;
|
||||
if (id != null) result.id = id;
|
||||
return result;
|
||||
}
|
||||
|
||||
UserAgentRequest._();
|
||||
|
||||
factory UserAgentRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UserAgentRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, UserAgentRequest_Payload>
|
||||
_UserAgentRequest_PayloadByTag = {
|
||||
1: UserAgentRequest_Payload.auth,
|
||||
2: UserAgentRequest_Payload.vault,
|
||||
3: UserAgentRequest_Payload.evm,
|
||||
4: UserAgentRequest_Payload.sdkClient,
|
||||
0: UserAgentRequest_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UserAgentRequest',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.user_agent'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..aOM<$0.Request>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Request.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Request.create)
|
||||
..aOM<$3.Request>(4, _omitFieldNames ? '' : 'sdkClient',
|
||||
subBuilder: $3.Request.create)
|
||||
..aI(16, _omitFieldNames ? '' : 'id')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentRequest copyWith(void Function(UserAgentRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as UserAgentRequest))
|
||||
as UserAgentRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentRequest create() => UserAgentRequest._();
|
||||
@$core.override
|
||||
UserAgentRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UserAgentRequest>(create);
|
||||
static UserAgentRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
UserAgentRequest_Payload whichPayload() =>
|
||||
_UserAgentRequest_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Request value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Request ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$3.Request get sdkClient => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set sdkClient($3.Request value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSdkClient() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearSdkClient() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$3.Request ensureSdkClient() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(16)
|
||||
$core.int get id => $_getIZ(4);
|
||||
@$pb.TagNumber(16)
|
||||
set id($core.int value) => $_setSignedInt32(4, value);
|
||||
@$pb.TagNumber(16)
|
||||
$core.bool hasId() => $_has(4);
|
||||
@$pb.TagNumber(16)
|
||||
void clearId() => $_clearField(16);
|
||||
}
|
||||
|
||||
enum UserAgentResponse_Payload { auth, vault, evm, sdkClient, notSet }
|
||||
|
||||
class UserAgentResponse extends $pb.GeneratedMessage {
|
||||
factory UserAgentResponse({
|
||||
$0.Response? auth,
|
||||
$1.Response? vault,
|
||||
$2.Response? evm,
|
||||
$3.Response? sdkClient,
|
||||
$core.int? id,
|
||||
}) {
|
||||
final result = create();
|
||||
if (auth != null) result.auth = auth;
|
||||
if (vault != null) result.vault = vault;
|
||||
if (evm != null) result.evm = evm;
|
||||
if (sdkClient != null) result.sdkClient = sdkClient;
|
||||
if (id != null) result.id = id;
|
||||
return result;
|
||||
}
|
||||
|
||||
UserAgentResponse._();
|
||||
|
||||
factory UserAgentResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UserAgentResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, UserAgentResponse_Payload>
|
||||
_UserAgentResponse_PayloadByTag = {
|
||||
1: UserAgentResponse_Payload.auth,
|
||||
2: UserAgentResponse_Payload.vault,
|
||||
3: UserAgentResponse_Payload.evm,
|
||||
4: UserAgentResponse_Payload.sdkClient,
|
||||
0: UserAgentResponse_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UserAgentResponse',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.user_agent'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..aOM<$0.Response>(1, _omitFieldNames ? '' : 'auth',
|
||||
subBuilder: $0.Response.create)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'vault',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'evm',
|
||||
subBuilder: $2.Response.create)
|
||||
..aOM<$3.Response>(4, _omitFieldNames ? '' : 'sdkClient',
|
||||
subBuilder: $3.Response.create)
|
||||
..aI(16, _omitFieldNames ? '' : 'id')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UserAgentResponse copyWith(void Function(UserAgentResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as UserAgentResponse))
|
||||
as UserAgentResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentResponse create() => UserAgentResponse._();
|
||||
@$core.override
|
||||
UserAgentResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UserAgentResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UserAgentResponse>(create);
|
||||
static UserAgentResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
UserAgentResponse_Payload whichPayload() =>
|
||||
_UserAgentResponse_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response get auth => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set auth($0.Response value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasAuth() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearAuth() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Response ensureAuth() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get vault => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set vault($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasVault() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearVault() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureVault() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get evm => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set evm($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasEvm() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearEvm() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureEvm() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$3.Response get sdkClient => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set sdkClient($3.Response value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasSdkClient() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearSdkClient() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$3.Response ensureSdkClient() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(16)
|
||||
$core.int get id => $_getIZ(4);
|
||||
@$pb.TagNumber(16)
|
||||
set id($core.int value) => $_setSignedInt32(4, value);
|
||||
@$pb.TagNumber(16)
|
||||
$core.bool hasId() => $_has(4);
|
||||
@$pb.TagNumber(16)
|
||||
void clearId() => $_clearField(16);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,129 +1,129 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use userAgentRequestDescriptor instead')
|
||||
const UserAgentRequest$json = {
|
||||
'1': 'UserAgentRequest',
|
||||
'2': [
|
||||
{'1': 'id', '3': 16, '4': 1, '5': 5, '10': 'id'},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.Request',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.Request',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.Request',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
{
|
||||
'1': 'sdk_client',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Request',
|
||||
'9': 0,
|
||||
'10': 'sdkClient'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UserAgentRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List userAgentRequestDescriptor = $convert.base64Decode(
|
||||
'ChBVc2VyQWdlbnRSZXF1ZXN0Eg4KAmlkGBAgASgFUgJpZBI2CgRhdXRoGAEgASgLMiAuYXJiaX'
|
||||
'Rlci51c2VyX2FnZW50LmF1dGguUmVxdWVzdEgAUgRhdXRoEjkKBXZhdWx0GAIgASgLMiEuYXJi'
|
||||
'aXRlci51c2VyX2FnZW50LnZhdWx0LlJlcXVlc3RIAFIFdmF1bHQSMwoDZXZtGAMgASgLMh8uYX'
|
||||
'JiaXRlci51c2VyX2FnZW50LmV2bS5SZXF1ZXN0SABSA2V2bRJHCgpzZGtfY2xpZW50GAQgASgL'
|
||||
'MiYuYXJiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuUmVxdWVzdEgAUglzZGtDbGllbnRCCQ'
|
||||
'oHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use userAgentResponseDescriptor instead')
|
||||
const UserAgentResponse$json = {
|
||||
'1': 'UserAgentResponse',
|
||||
'2': [
|
||||
{'1': 'id', '3': 16, '4': 1, '5': 5, '9': 1, '10': 'id', '17': true},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.Response',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.Response',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.Response',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
{
|
||||
'1': 'sdk_client',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Response',
|
||||
'9': 0,
|
||||
'10': 'sdkClient'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
{'1': '_id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UserAgentResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List userAgentResponseDescriptor = $convert.base64Decode(
|
||||
'ChFVc2VyQWdlbnRSZXNwb25zZRITCgJpZBgQIAEoBUgBUgJpZIgBARI3CgRhdXRoGAEgASgLMi'
|
||||
'EuYXJiaXRlci51c2VyX2FnZW50LmF1dGguUmVzcG9uc2VIAFIEYXV0aBI6CgV2YXVsdBgCIAEo'
|
||||
'CzIiLmFyYml0ZXIudXNlcl9hZ2VudC52YXVsdC5SZXNwb25zZUgAUgV2YXVsdBI0CgNldm0YAy'
|
||||
'ABKAsyIC5hcmJpdGVyLnVzZXJfYWdlbnQuZXZtLlJlc3BvbnNlSABSA2V2bRJICgpzZGtfY2xp'
|
||||
'ZW50GAQgASgLMicuYXJiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuUmVzcG9uc2VIAFIJc2'
|
||||
'RrQ2xpZW50QgkKB3BheWxvYWRCBQoDX2lk');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use userAgentRequestDescriptor instead')
|
||||
const UserAgentRequest$json = {
|
||||
'1': 'UserAgentRequest',
|
||||
'2': [
|
||||
{'1': 'id', '3': 16, '4': 1, '5': 5, '10': 'id'},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.Request',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.Request',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.Request',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
{
|
||||
'1': 'sdk_client',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Request',
|
||||
'9': 0,
|
||||
'10': 'sdkClient'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UserAgentRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List userAgentRequestDescriptor = $convert.base64Decode(
|
||||
'ChBVc2VyQWdlbnRSZXF1ZXN0Eg4KAmlkGBAgASgFUgJpZBI2CgRhdXRoGAEgASgLMiAuYXJiaX'
|
||||
'Rlci51c2VyX2FnZW50LmF1dGguUmVxdWVzdEgAUgRhdXRoEjkKBXZhdWx0GAIgASgLMiEuYXJi'
|
||||
'aXRlci51c2VyX2FnZW50LnZhdWx0LlJlcXVlc3RIAFIFdmF1bHQSMwoDZXZtGAMgASgLMh8uYX'
|
||||
'JiaXRlci51c2VyX2FnZW50LmV2bS5SZXF1ZXN0SABSA2V2bRJHCgpzZGtfY2xpZW50GAQgASgL'
|
||||
'MiYuYXJiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuUmVxdWVzdEgAUglzZGtDbGllbnRCCQ'
|
||||
'oHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use userAgentResponseDescriptor instead')
|
||||
const UserAgentResponse$json = {
|
||||
'1': 'UserAgentResponse',
|
||||
'2': [
|
||||
{'1': 'id', '3': 16, '4': 1, '5': 5, '9': 1, '10': 'id', '17': true},
|
||||
{
|
||||
'1': 'auth',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.Response',
|
||||
'9': 0,
|
||||
'10': 'auth'
|
||||
},
|
||||
{
|
||||
'1': 'vault',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.Response',
|
||||
'9': 0,
|
||||
'10': 'vault'
|
||||
},
|
||||
{
|
||||
'1': 'evm',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.Response',
|
||||
'9': 0,
|
||||
'10': 'evm'
|
||||
},
|
||||
{
|
||||
'1': 'sdk_client',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Response',
|
||||
'9': 0,
|
||||
'10': 'sdkClient'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
{'1': '_id'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UserAgentResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List userAgentResponseDescriptor = $convert.base64Decode(
|
||||
'ChFVc2VyQWdlbnRSZXNwb25zZRITCgJpZBgQIAEoBUgBUgJpZIgBARI3CgRhdXRoGAEgASgLMi'
|
||||
'EuYXJiaXRlci51c2VyX2FnZW50LmF1dGguUmVzcG9uc2VIAFIEYXV0aBI6CgV2YXVsdBgCIAEo'
|
||||
'CzIiLmFyYml0ZXIudXNlcl9hZ2VudC52YXVsdC5SZXNwb25zZUgAUgV2YXVsdBI0CgNldm0YAy'
|
||||
'ABKAsyIC5hcmJpdGVyLnVzZXJfYWdlbnQuZXZtLlJlc3BvbnNlSABSA2V2bRJICgpzZGtfY2xp'
|
||||
'ZW50GAQgASgLMicuYXJiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuUmVzcG9uc2VIAFIJc2'
|
||||
'RrQ2xpZW50QgkKB3BheWxvYWRCBQoDX2lk');
|
||||
|
||||
@@ -1,394 +1,394 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'auth.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'auth.pbenum.dart';
|
||||
|
||||
class AuthChallengeRequest extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeRequest({
|
||||
$core.List<$core.int>? pubkey,
|
||||
$core.String? bootstrapToken,
|
||||
}) {
|
||||
final result = create();
|
||||
if (pubkey != null) result.pubkey = pubkey;
|
||||
if (bootstrapToken != null) result.bootstrapToken = bootstrapToken;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeRequest._();
|
||||
|
||||
factory AuthChallengeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'pubkey', $pb.PbFieldType.OY)
|
||||
..aOS(2, _omitFieldNames ? '' : 'bootstrapToken')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest copyWith(void Function(AuthChallengeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeRequest))
|
||||
as AuthChallengeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest create() => AuthChallengeRequest._();
|
||||
@$core.override
|
||||
AuthChallengeRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeRequest>(create);
|
||||
static AuthChallengeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get pubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set pubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearPubkey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get bootstrapToken => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set bootstrapToken($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasBootstrapToken() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearBootstrapToken() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallenge extends $pb.GeneratedMessage {
|
||||
factory AuthChallenge({
|
||||
$fixnum.Int64? timestampNanos,
|
||||
$core.List<$core.int>? random,
|
||||
}) {
|
||||
final result = create();
|
||||
if (timestampNanos != null) result.timestampNanos = timestampNanos;
|
||||
if (random != null) result.random = random;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallenge._();
|
||||
|
||||
factory AuthChallenge.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallenge.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallenge',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestampNanos', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'random', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge copyWith(void Function(AuthChallenge) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallenge))
|
||||
as AuthChallenge;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge create() => AuthChallenge._();
|
||||
@$core.override
|
||||
AuthChallenge createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallenge>(create);
|
||||
static AuthChallenge? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestampNanos => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set timestampNanos($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTimestampNanos() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestampNanos() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get random => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set random($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRandom() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRandom() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallengeSolution extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeSolution({
|
||||
$core.List<$core.int>? signature,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signature != null) result.signature = signature;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeSolution._();
|
||||
|
||||
factory AuthChallengeSolution.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeSolution.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeSolution',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution copyWith(
|
||||
void Function(AuthChallengeSolution) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeSolution))
|
||||
as AuthChallengeSolution;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution create() => AuthChallengeSolution._();
|
||||
@$core.override
|
||||
AuthChallengeSolution createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeSolution>(create);
|
||||
static AuthChallengeSolution? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get signature => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signature($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignature() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignature() => $_clearField(1);
|
||||
}
|
||||
|
||||
enum Request_Payload { challengeRequest, challengeSolution, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
AuthChallengeRequest? challengeRequest,
|
||||
AuthChallengeSolution? challengeSolution,
|
||||
}) {
|
||||
final result = create();
|
||||
if (challengeRequest != null) result.challengeRequest = challengeRequest;
|
||||
if (challengeSolution != null) result.challengeSolution = challengeSolution;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.challengeRequest,
|
||||
2: Request_Payload.challengeSolution,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallengeRequest>(1, _omitFieldNames ? '' : 'challengeRequest',
|
||||
subBuilder: AuthChallengeRequest.create)
|
||||
..aOM<AuthChallengeSolution>(2, _omitFieldNames ? '' : 'challengeSolution',
|
||||
subBuilder: AuthChallengeSolution.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest get challengeRequest => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challengeRequest(AuthChallengeRequest value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallengeRequest() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallengeRequest() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest ensureChallengeRequest() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution get challengeSolution => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set challengeSolution(AuthChallengeSolution value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasChallengeSolution() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearChallengeSolution() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution ensureChallengeSolution() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { challenge, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
AuthChallenge? challenge,
|
||||
AuthResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (challenge != null) result$.challenge = challenge;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.challenge,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallenge>(1, _omitFieldNames ? '' : 'challenge',
|
||||
subBuilder: AuthChallenge.create)
|
||||
..aE<AuthResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: AuthResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge get challenge => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challenge(AuthChallenge value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallenge() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallenge() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge ensureChallenge() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(AuthResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'auth.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'auth.pbenum.dart';
|
||||
|
||||
class AuthChallengeRequest extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeRequest({
|
||||
$core.List<$core.int>? pubkey,
|
||||
$core.String? bootstrapToken,
|
||||
}) {
|
||||
final result = create();
|
||||
if (pubkey != null) result.pubkey = pubkey;
|
||||
if (bootstrapToken != null) result.bootstrapToken = bootstrapToken;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeRequest._();
|
||||
|
||||
factory AuthChallengeRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'pubkey', $pb.PbFieldType.OY)
|
||||
..aOS(2, _omitFieldNames ? '' : 'bootstrapToken')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeRequest copyWith(void Function(AuthChallengeRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeRequest))
|
||||
as AuthChallengeRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest create() => AuthChallengeRequest._();
|
||||
@$core.override
|
||||
AuthChallengeRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeRequest>(create);
|
||||
static AuthChallengeRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get pubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set pubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearPubkey() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get bootstrapToken => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set bootstrapToken($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasBootstrapToken() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearBootstrapToken() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallenge extends $pb.GeneratedMessage {
|
||||
factory AuthChallenge({
|
||||
$fixnum.Int64? timestampNanos,
|
||||
$core.List<$core.int>? random,
|
||||
}) {
|
||||
final result = create();
|
||||
if (timestampNanos != null) result.timestampNanos = timestampNanos;
|
||||
if (random != null) result.random = random;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallenge._();
|
||||
|
||||
factory AuthChallenge.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallenge.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallenge',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$fixnum.Int64>(
|
||||
1, _omitFieldNames ? '' : 'timestampNanos', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'random', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallenge copyWith(void Function(AuthChallenge) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallenge))
|
||||
as AuthChallenge;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge create() => AuthChallenge._();
|
||||
@$core.override
|
||||
AuthChallenge createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallenge getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallenge>(create);
|
||||
static AuthChallenge? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$fixnum.Int64 get timestampNanos => $_getI64(0);
|
||||
@$pb.TagNumber(1)
|
||||
set timestampNanos($fixnum.Int64 value) => $_setInt64(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTimestampNanos() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTimestampNanos() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get random => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set random($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRandom() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRandom() => $_clearField(2);
|
||||
}
|
||||
|
||||
class AuthChallengeSolution extends $pb.GeneratedMessage {
|
||||
factory AuthChallengeSolution({
|
||||
$core.List<$core.int>? signature,
|
||||
}) {
|
||||
final result = create();
|
||||
if (signature != null) result.signature = signature;
|
||||
return result;
|
||||
}
|
||||
|
||||
AuthChallengeSolution._();
|
||||
|
||||
factory AuthChallengeSolution.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory AuthChallengeSolution.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'AuthChallengeSolution',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'signature', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
AuthChallengeSolution copyWith(
|
||||
void Function(AuthChallengeSolution) updates) =>
|
||||
super.copyWith((message) => updates(message as AuthChallengeSolution))
|
||||
as AuthChallengeSolution;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution create() => AuthChallengeSolution._();
|
||||
@$core.override
|
||||
AuthChallengeSolution createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static AuthChallengeSolution getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<AuthChallengeSolution>(create);
|
||||
static AuthChallengeSolution? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get signature => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set signature($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSignature() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSignature() => $_clearField(1);
|
||||
}
|
||||
|
||||
enum Request_Payload { challengeRequest, challengeSolution, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
AuthChallengeRequest? challengeRequest,
|
||||
AuthChallengeSolution? challengeSolution,
|
||||
}) {
|
||||
final result = create();
|
||||
if (challengeRequest != null) result.challengeRequest = challengeRequest;
|
||||
if (challengeSolution != null) result.challengeSolution = challengeSolution;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.challengeRequest,
|
||||
2: Request_Payload.challengeSolution,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallengeRequest>(1, _omitFieldNames ? '' : 'challengeRequest',
|
||||
subBuilder: AuthChallengeRequest.create)
|
||||
..aOM<AuthChallengeSolution>(2, _omitFieldNames ? '' : 'challengeSolution',
|
||||
subBuilder: AuthChallengeSolution.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest get challengeRequest => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challengeRequest(AuthChallengeRequest value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallengeRequest() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallengeRequest() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallengeRequest ensureChallengeRequest() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution get challengeSolution => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set challengeSolution(AuthChallengeSolution value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasChallengeSolution() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearChallengeSolution() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
AuthChallengeSolution ensureChallengeSolution() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { challenge, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
AuthChallenge? challenge,
|
||||
AuthResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (challenge != null) result$.challenge = challenge;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.challenge,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.auth'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<AuthChallenge>(1, _omitFieldNames ? '' : 'challenge',
|
||||
subBuilder: AuthChallenge.create)
|
||||
..aE<AuthResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: AuthResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge get challenge => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set challenge(AuthChallenge value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasChallenge() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearChallenge() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
AuthChallenge ensureChallenge() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
AuthResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(AuthResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthResult extends $pb.ProtobufEnum {
|
||||
static const AuthResult AUTH_RESULT_UNSPECIFIED =
|
||||
AuthResult._(0, _omitEnumNames ? '' : 'AUTH_RESULT_UNSPECIFIED');
|
||||
static const AuthResult AUTH_RESULT_SUCCESS =
|
||||
AuthResult._(1, _omitEnumNames ? '' : 'AUTH_RESULT_SUCCESS');
|
||||
static const AuthResult AUTH_RESULT_INVALID_KEY =
|
||||
AuthResult._(2, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_KEY');
|
||||
static const AuthResult AUTH_RESULT_INVALID_SIGNATURE =
|
||||
AuthResult._(3, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_SIGNATURE');
|
||||
static const AuthResult AUTH_RESULT_BOOTSTRAP_REQUIRED =
|
||||
AuthResult._(4, _omitEnumNames ? '' : 'AUTH_RESULT_BOOTSTRAP_REQUIRED');
|
||||
static const AuthResult AUTH_RESULT_TOKEN_INVALID =
|
||||
AuthResult._(5, _omitEnumNames ? '' : 'AUTH_RESULT_TOKEN_INVALID');
|
||||
static const AuthResult AUTH_RESULT_INTERNAL =
|
||||
AuthResult._(6, _omitEnumNames ? '' : 'AUTH_RESULT_INTERNAL');
|
||||
|
||||
static const $core.List<AuthResult> values = <AuthResult>[
|
||||
AUTH_RESULT_UNSPECIFIED,
|
||||
AUTH_RESULT_SUCCESS,
|
||||
AUTH_RESULT_INVALID_KEY,
|
||||
AUTH_RESULT_INVALID_SIGNATURE,
|
||||
AUTH_RESULT_BOOTSTRAP_REQUIRED,
|
||||
AUTH_RESULT_TOKEN_INVALID,
|
||||
AUTH_RESULT_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<AuthResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 6);
|
||||
static AuthResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const AuthResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class AuthResult extends $pb.ProtobufEnum {
|
||||
static const AuthResult AUTH_RESULT_UNSPECIFIED =
|
||||
AuthResult._(0, _omitEnumNames ? '' : 'AUTH_RESULT_UNSPECIFIED');
|
||||
static const AuthResult AUTH_RESULT_SUCCESS =
|
||||
AuthResult._(1, _omitEnumNames ? '' : 'AUTH_RESULT_SUCCESS');
|
||||
static const AuthResult AUTH_RESULT_INVALID_KEY =
|
||||
AuthResult._(2, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_KEY');
|
||||
static const AuthResult AUTH_RESULT_INVALID_SIGNATURE =
|
||||
AuthResult._(3, _omitEnumNames ? '' : 'AUTH_RESULT_INVALID_SIGNATURE');
|
||||
static const AuthResult AUTH_RESULT_BOOTSTRAP_REQUIRED =
|
||||
AuthResult._(4, _omitEnumNames ? '' : 'AUTH_RESULT_BOOTSTRAP_REQUIRED');
|
||||
static const AuthResult AUTH_RESULT_TOKEN_INVALID =
|
||||
AuthResult._(5, _omitEnumNames ? '' : 'AUTH_RESULT_TOKEN_INVALID');
|
||||
static const AuthResult AUTH_RESULT_INTERNAL =
|
||||
AuthResult._(6, _omitEnumNames ? '' : 'AUTH_RESULT_INTERNAL');
|
||||
|
||||
static const $core.List<AuthResult> values = <AuthResult>[
|
||||
AUTH_RESULT_UNSPECIFIED,
|
||||
AUTH_RESULT_SUCCESS,
|
||||
AUTH_RESULT_INVALID_KEY,
|
||||
AUTH_RESULT_INVALID_SIGNATURE,
|
||||
AUTH_RESULT_BOOTSTRAP_REQUIRED,
|
||||
AUTH_RESULT_TOKEN_INVALID,
|
||||
AUTH_RESULT_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<AuthResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 6);
|
||||
static AuthResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const AuthResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,159 +1,159 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authResultDescriptor instead')
|
||||
const AuthResult$json = {
|
||||
'1': 'AuthResult',
|
||||
'2': [
|
||||
{'1': 'AUTH_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'AUTH_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'AUTH_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'AUTH_RESULT_INVALID_SIGNATURE', '2': 3},
|
||||
{'1': 'AUTH_RESULT_BOOTSTRAP_REQUIRED', '2': 4},
|
||||
{'1': 'AUTH_RESULT_TOKEN_INVALID', '2': 5},
|
||||
{'1': 'AUTH_RESULT_INTERNAL', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List authResultDescriptor = $convert.base64Decode(
|
||||
'CgpBdXRoUmVzdWx0EhsKF0FVVEhfUkVTVUxUX1VOU1BFQ0lGSUVEEAASFwoTQVVUSF9SRVNVTF'
|
||||
'RfU1VDQ0VTUxABEhsKF0FVVEhfUkVTVUxUX0lOVkFMSURfS0VZEAISIQodQVVUSF9SRVNVTFRf'
|
||||
'SU5WQUxJRF9TSUdOQVRVUkUQAxIiCh5BVVRIX1JFU1VMVF9CT09UU1RSQVBfUkVRVUlSRUQQBB'
|
||||
'IdChlBVVRIX1JFU1VMVF9UT0tFTl9JTlZBTElEEAUSGAoUQVVUSF9SRVNVTFRfSU5URVJOQUwQ'
|
||||
'Bg==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeRequestDescriptor instead')
|
||||
const AuthChallengeRequest$json = {
|
||||
'1': 'AuthChallengeRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'bootstrap_token',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'bootstrapToken',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_bootstrap_token'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeRequestDescriptor = $convert.base64Decode(
|
||||
'ChRBdXRoQ2hhbGxlbmdlUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIsCg9ib290c3'
|
||||
'RyYXBfdG9rZW4YAiABKAlIAFIOYm9vdHN0cmFwVG9rZW6IAQFCEgoQX2Jvb3RzdHJhcF90b2tl'
|
||||
'bg==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeDescriptor instead')
|
||||
const AuthChallenge$json = {
|
||||
'1': 'AuthChallenge',
|
||||
'2': [
|
||||
{'1': 'timestamp_nanos', '3': 1, '4': 1, '5': 4, '10': 'timestampNanos'},
|
||||
{'1': 'random', '3': 2, '4': 1, '5': 12, '10': 'random'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallenge`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeDescriptor = $convert.base64Decode(
|
||||
'Cg1BdXRoQ2hhbGxlbmdlEicKD3RpbWVzdGFtcF9uYW5vcxgBIAEoBFIOdGltZXN0YW1wTmFub3'
|
||||
'MSFgoGcmFuZG9tGAIgASgMUgZyYW5kb20=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeSolutionDescriptor instead')
|
||||
const AuthChallengeSolution$json = {
|
||||
'1': 'AuthChallengeSolution',
|
||||
'2': [
|
||||
{'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeSolution`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeSolutionDescriptor = $convert.base64Decode(
|
||||
'ChVBdXRoQ2hhbGxlbmdlU29sdXRpb24SHAoJc2lnbmF0dXJlGAEgASgMUglzaWduYXR1cmU=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeRequest',
|
||||
'9': 0,
|
||||
'10': 'challengeRequest'
|
||||
},
|
||||
{
|
||||
'1': 'challenge_solution',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeSolution',
|
||||
'9': 0,
|
||||
'10': 'challengeSolution'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElwKEWNoYWxsZW5nZV9yZXF1ZXN0GAEgASgLMi0uYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LmF1dGguQXV0aENoYWxsZW5nZVJlcXVlc3RIAFIQY2hhbGxlbmdlUmVxdWVzdBJfChJjaGFs'
|
||||
'bGVuZ2Vfc29sdXRpb24YAiABKAsyLi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC5BdXRoQ2hhbG'
|
||||
'xlbmdlU29sdXRpb25IAFIRY2hhbGxlbmdlU29sdXRpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallenge',
|
||||
'9': 0,
|
||||
'10': 'challenge'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.auth.AuthResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJGCgljaGFsbGVuZ2UYASABKAsyJi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC'
|
||||
'5BdXRoQ2hhbGxlbmdlSABSCWNoYWxsZW5nZRI9CgZyZXN1bHQYAiABKA4yIy5hcmJpdGVyLnVz'
|
||||
'ZXJfYWdlbnQuYXV0aC5BdXRoUmVzdWx0SABSBnJlc3VsdEIJCgdwYXlsb2Fk');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/auth.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use authResultDescriptor instead')
|
||||
const AuthResult$json = {
|
||||
'1': 'AuthResult',
|
||||
'2': [
|
||||
{'1': 'AUTH_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'AUTH_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'AUTH_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'AUTH_RESULT_INVALID_SIGNATURE', '2': 3},
|
||||
{'1': 'AUTH_RESULT_BOOTSTRAP_REQUIRED', '2': 4},
|
||||
{'1': 'AUTH_RESULT_TOKEN_INVALID', '2': 5},
|
||||
{'1': 'AUTH_RESULT_INTERNAL', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List authResultDescriptor = $convert.base64Decode(
|
||||
'CgpBdXRoUmVzdWx0EhsKF0FVVEhfUkVTVUxUX1VOU1BFQ0lGSUVEEAASFwoTQVVUSF9SRVNVTF'
|
||||
'RfU1VDQ0VTUxABEhsKF0FVVEhfUkVTVUxUX0lOVkFMSURfS0VZEAISIQodQVVUSF9SRVNVTFRf'
|
||||
'SU5WQUxJRF9TSUdOQVRVUkUQAxIiCh5BVVRIX1JFU1VMVF9CT09UU1RSQVBfUkVRVUlSRUQQBB'
|
||||
'IdChlBVVRIX1JFU1VMVF9UT0tFTl9JTlZBTElEEAUSGAoUQVVUSF9SRVNVTFRfSU5URVJOQUwQ'
|
||||
'Bg==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeRequestDescriptor instead')
|
||||
const AuthChallengeRequest$json = {
|
||||
'1': 'AuthChallengeRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'bootstrap_token',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'9': 0,
|
||||
'10': 'bootstrapToken',
|
||||
'17': true
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': '_bootstrap_token'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeRequestDescriptor = $convert.base64Decode(
|
||||
'ChRBdXRoQ2hhbGxlbmdlUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIsCg9ib290c3'
|
||||
'RyYXBfdG9rZW4YAiABKAlIAFIOYm9vdHN0cmFwVG9rZW6IAQFCEgoQX2Jvb3RzdHJhcF90b2tl'
|
||||
'bg==');
|
||||
|
||||
@$core.Deprecated('Use authChallengeDescriptor instead')
|
||||
const AuthChallenge$json = {
|
||||
'1': 'AuthChallenge',
|
||||
'2': [
|
||||
{'1': 'timestamp_nanos', '3': 1, '4': 1, '5': 4, '10': 'timestampNanos'},
|
||||
{'1': 'random', '3': 2, '4': 1, '5': 12, '10': 'random'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallenge`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeDescriptor = $convert.base64Decode(
|
||||
'Cg1BdXRoQ2hhbGxlbmdlEicKD3RpbWVzdGFtcF9uYW5vcxgBIAEoBFIOdGltZXN0YW1wTmFub3'
|
||||
'MSFgoGcmFuZG9tGAIgASgMUgZyYW5kb20=');
|
||||
|
||||
@$core.Deprecated('Use authChallengeSolutionDescriptor instead')
|
||||
const AuthChallengeSolution$json = {
|
||||
'1': 'AuthChallengeSolution',
|
||||
'2': [
|
||||
{'1': 'signature', '3': 1, '4': 1, '5': 12, '10': 'signature'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `AuthChallengeSolution`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List authChallengeSolutionDescriptor = $convert.base64Decode(
|
||||
'ChVBdXRoQ2hhbGxlbmdlU29sdXRpb24SHAoJc2lnbmF0dXJlGAEgASgMUglzaWduYXR1cmU=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeRequest',
|
||||
'9': 0,
|
||||
'10': 'challengeRequest'
|
||||
},
|
||||
{
|
||||
'1': 'challenge_solution',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallengeSolution',
|
||||
'9': 0,
|
||||
'10': 'challengeSolution'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0ElwKEWNoYWxsZW5nZV9yZXF1ZXN0GAEgASgLMi0uYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LmF1dGguQXV0aENoYWxsZW5nZVJlcXVlc3RIAFIQY2hhbGxlbmdlUmVxdWVzdBJfChJjaGFs'
|
||||
'bGVuZ2Vfc29sdXRpb24YAiABKAsyLi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC5BdXRoQ2hhbG'
|
||||
'xlbmdlU29sdXRpb25IAFIRY2hhbGxlbmdlU29sdXRpb25CCQoHcGF5bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'challenge',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.auth.AuthChallenge',
|
||||
'9': 0,
|
||||
'10': 'challenge'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.auth.AuthResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJGCgljaGFsbGVuZ2UYASABKAsyJi5hcmJpdGVyLnVzZXJfYWdlbnQuYXV0aC'
|
||||
'5BdXRoQ2hhbGxlbmdlSABSCWNoYWxsZW5nZRI9CgZyZXN1bHQYAiABKA4yIy5hcmJpdGVyLnVz'
|
||||
'ZXJfYWdlbnQuYXV0aC5BdXRoUmVzdWx0SABSBnJlc3VsdEIJCgdwYXlsb2Fk');
|
||||
|
||||
@@ -1,432 +1,432 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
|
||||
|
||||
import '../evm.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class SignTransactionRequest extends $pb.GeneratedMessage {
|
||||
factory SignTransactionRequest({
|
||||
$core.int? clientId,
|
||||
$0.EvmSignTransactionRequest? request,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientId != null) result.clientId = clientId;
|
||||
if (request != null) result.request = request;
|
||||
return result;
|
||||
}
|
||||
|
||||
SignTransactionRequest._();
|
||||
|
||||
factory SignTransactionRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory SignTransactionRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'SignTransactionRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aI(1, _omitFieldNames ? '' : 'clientId')
|
||||
..aOM<$0.EvmSignTransactionRequest>(2, _omitFieldNames ? '' : 'request',
|
||||
subBuilder: $0.EvmSignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest copyWith(
|
||||
void Function(SignTransactionRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as SignTransactionRequest))
|
||||
as SignTransactionRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest create() => SignTransactionRequest._();
|
||||
@$core.override
|
||||
SignTransactionRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<SignTransactionRequest>(create);
|
||||
static SignTransactionRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get clientId => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientId($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientId() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientId() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest get request => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set request($0.EvmSignTransactionRequest value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRequest() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRequest() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest ensureRequest() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Request_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$1.Empty? walletCreate,
|
||||
$1.Empty? walletList,
|
||||
$0.EvmGrantCreateRequest? grantCreate,
|
||||
$0.EvmGrantDeleteRequest? grantDelete,
|
||||
$0.EvmGrantListRequest? grantList,
|
||||
SignTransactionRequest? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.walletCreate,
|
||||
2: Request_Payload.walletList,
|
||||
3: Request_Payload.grantCreate,
|
||||
4: Request_Payload.grantDelete,
|
||||
5: Request_Payload.grantList,
|
||||
6: Request_Payload.signTransaction,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$1.Empty>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$1.Empty>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$0.EvmGrantCreateRequest>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateRequest.create)
|
||||
..aOM<$0.EvmGrantDeleteRequest>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteRequest.create)
|
||||
..aOM<$0.EvmGrantListRequest>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListRequest.create)
|
||||
..aOM<SignTransactionRequest>(6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: SignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($1.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($1.Empty value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateRequest value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteRequest value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListRequest value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction(SignTransactionRequest value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
enum Response_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$0.WalletCreateResponse? walletCreate,
|
||||
$0.WalletListResponse? walletList,
|
||||
$0.EvmGrantCreateResponse? grantCreate,
|
||||
$0.EvmGrantDeleteResponse? grantDelete,
|
||||
$0.EvmGrantListResponse? grantList,
|
||||
$0.EvmSignTransactionResponse? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.walletCreate,
|
||||
2: Response_Payload.walletList,
|
||||
3: Response_Payload.grantCreate,
|
||||
4: Response_Payload.grantDelete,
|
||||
5: Response_Payload.grantList,
|
||||
6: Response_Payload.signTransaction,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$0.WalletCreateResponse>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $0.WalletCreateResponse.create)
|
||||
..aOM<$0.WalletListResponse>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $0.WalletListResponse.create)
|
||||
..aOM<$0.EvmGrantCreateResponse>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateResponse.create)
|
||||
..aOM<$0.EvmGrantDeleteResponse>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteResponse.create)
|
||||
..aOM<$0.EvmGrantListResponse>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListResponse.create)
|
||||
..aOM<$0.EvmSignTransactionResponse>(
|
||||
6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionResponse.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($0.WalletCreateResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($0.WalletListResponse value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateResponse value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteResponse value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListResponse value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction($0.EvmSignTransactionResponse value) =>
|
||||
$_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $1;
|
||||
|
||||
import '../evm.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class SignTransactionRequest extends $pb.GeneratedMessage {
|
||||
factory SignTransactionRequest({
|
||||
$core.int? clientId,
|
||||
$0.EvmSignTransactionRequest? request,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientId != null) result.clientId = clientId;
|
||||
if (request != null) result.request = request;
|
||||
return result;
|
||||
}
|
||||
|
||||
SignTransactionRequest._();
|
||||
|
||||
factory SignTransactionRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory SignTransactionRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'SignTransactionRequest',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aI(1, _omitFieldNames ? '' : 'clientId')
|
||||
..aOM<$0.EvmSignTransactionRequest>(2, _omitFieldNames ? '' : 'request',
|
||||
subBuilder: $0.EvmSignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SignTransactionRequest copyWith(
|
||||
void Function(SignTransactionRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as SignTransactionRequest))
|
||||
as SignTransactionRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest create() => SignTransactionRequest._();
|
||||
@$core.override
|
||||
SignTransactionRequest createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SignTransactionRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<SignTransactionRequest>(create);
|
||||
static SignTransactionRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.int get clientId => $_getIZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientId($core.int value) => $_setSignedInt32(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientId() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientId() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest get request => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set request($0.EvmSignTransactionRequest value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasRequest() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearRequest() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.EvmSignTransactionRequest ensureRequest() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Request_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$1.Empty? walletCreate,
|
||||
$1.Empty? walletList,
|
||||
$0.EvmGrantCreateRequest? grantCreate,
|
||||
$0.EvmGrantDeleteRequest? grantDelete,
|
||||
$0.EvmGrantListRequest? grantList,
|
||||
SignTransactionRequest? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.walletCreate,
|
||||
2: Request_Payload.walletList,
|
||||
3: Request_Payload.grantCreate,
|
||||
4: Request_Payload.grantDelete,
|
||||
5: Request_Payload.grantList,
|
||||
6: Request_Payload.signTransaction,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$1.Empty>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$1.Empty>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $1.Empty.create)
|
||||
..aOM<$0.EvmGrantCreateRequest>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateRequest.create)
|
||||
..aOM<$0.EvmGrantDeleteRequest>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteRequest.create)
|
||||
..aOM<$0.EvmGrantListRequest>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListRequest.create)
|
||||
..aOM<SignTransactionRequest>(6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: SignTransactionRequest.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($1.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$1.Empty ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($1.Empty value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Empty ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateRequest value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateRequest ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteRequest value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteRequest ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListRequest value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListRequest ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction(SignTransactionRequest value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
SignTransactionRequest ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
enum Response_Payload {
|
||||
walletCreate,
|
||||
walletList,
|
||||
grantCreate,
|
||||
grantDelete,
|
||||
grantList,
|
||||
signTransaction,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$0.WalletCreateResponse? walletCreate,
|
||||
$0.WalletListResponse? walletList,
|
||||
$0.EvmGrantCreateResponse? grantCreate,
|
||||
$0.EvmGrantDeleteResponse? grantDelete,
|
||||
$0.EvmGrantListResponse? grantList,
|
||||
$0.EvmSignTransactionResponse? signTransaction,
|
||||
}) {
|
||||
final result = create();
|
||||
if (walletCreate != null) result.walletCreate = walletCreate;
|
||||
if (walletList != null) result.walletList = walletList;
|
||||
if (grantCreate != null) result.grantCreate = grantCreate;
|
||||
if (grantDelete != null) result.grantDelete = grantDelete;
|
||||
if (grantList != null) result.grantList = grantList;
|
||||
if (signTransaction != null) result.signTransaction = signTransaction;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.walletCreate,
|
||||
2: Response_Payload.walletList,
|
||||
3: Response_Payload.grantCreate,
|
||||
4: Response_Payload.grantDelete,
|
||||
5: Response_Payload.grantList,
|
||||
6: Response_Payload.signTransaction,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..aOM<$0.WalletCreateResponse>(1, _omitFieldNames ? '' : 'walletCreate',
|
||||
subBuilder: $0.WalletCreateResponse.create)
|
||||
..aOM<$0.WalletListResponse>(2, _omitFieldNames ? '' : 'walletList',
|
||||
subBuilder: $0.WalletListResponse.create)
|
||||
..aOM<$0.EvmGrantCreateResponse>(3, _omitFieldNames ? '' : 'grantCreate',
|
||||
subBuilder: $0.EvmGrantCreateResponse.create)
|
||||
..aOM<$0.EvmGrantDeleteResponse>(4, _omitFieldNames ? '' : 'grantDelete',
|
||||
subBuilder: $0.EvmGrantDeleteResponse.create)
|
||||
..aOM<$0.EvmGrantListResponse>(5, _omitFieldNames ? '' : 'grantList',
|
||||
subBuilder: $0.EvmGrantListResponse.create)
|
||||
..aOM<$0.EvmSignTransactionResponse>(
|
||||
6, _omitFieldNames ? '' : 'signTransaction',
|
||||
subBuilder: $0.EvmSignTransactionResponse.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse get walletCreate => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set walletCreate($0.WalletCreateResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasWalletCreate() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearWalletCreate() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.WalletCreateResponse ensureWalletCreate() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse get walletList => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set walletList($0.WalletListResponse value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasWalletList() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearWalletList() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.WalletListResponse ensureWalletList() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse get grantCreate => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set grantCreate($0.EvmGrantCreateResponse value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasGrantCreate() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearGrantCreate() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.EvmGrantCreateResponse ensureGrantCreate() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse get grantDelete => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set grantDelete($0.EvmGrantDeleteResponse value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasGrantDelete() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearGrantDelete() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.EvmGrantDeleteResponse ensureGrantDelete() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse get grantList => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set grantList($0.EvmGrantListResponse value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasGrantList() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearGrantList() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.EvmGrantListResponse ensureGrantList() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse get signTransaction => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set signTransaction($0.EvmSignTransactionResponse value) =>
|
||||
$_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasSignTransaction() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearSignTransaction() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
$0.EvmSignTransactionResponse ensureSignTransaction() => $_ensure(5);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,190 +1,190 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use signTransactionRequestDescriptor instead')
|
||||
const SignTransactionRequest$json = {
|
||||
'1': 'SignTransactionRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
{
|
||||
'1': 'request',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionRequest',
|
||||
'10': 'request'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `SignTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List signTransactionRequestDescriptor = $convert.base64Decode(
|
||||
'ChZTaWduVHJhbnNhY3Rpb25SZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQSQA'
|
||||
'oHcmVxdWVzdBgCIAEoCzImLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlcXVlc3RS'
|
||||
'B3JlcXVlc3Q=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateRequest',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteRequest',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListRequest',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.SignTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0Ej0KDXdhbGxldF9jcmVhdGUYASABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdH'
|
||||
'lIAFIMd2FsbGV0Q3JlYXRlEjkKC3dhbGxldF9saXN0GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVm'
|
||||
'LkVtcHR5SABSCndhbGxldExpc3QSRwoMZ3JhbnRfY3JlYXRlGAMgASgLMiIuYXJiaXRlci5ldm'
|
||||
'0uRXZtR3JhbnRDcmVhdGVSZXF1ZXN0SABSC2dyYW50Q3JlYXRlEkcKDGdyYW50X2RlbGV0ZRgE'
|
||||
'IAEoCzIiLmFyYml0ZXIuZXZtLkV2bUdyYW50RGVsZXRlUmVxdWVzdEgAUgtncmFudERlbGV0ZR'
|
||||
'JBCgpncmFudF9saXN0GAUgASgLMiAuYXJiaXRlci5ldm0uRXZtR3JhbnRMaXN0UmVxdWVzdEgA'
|
||||
'UglncmFudExpc3QSWwoQc2lnbl90cmFuc2FjdGlvbhgGIAEoCzIuLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5ldm0uU2lnblRyYW5zYWN0aW9uUmVxdWVzdEgAUg9zaWduVHJhbnNhY3Rpb25CCQoHcGF5'
|
||||
'bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletListResponse',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteResponse',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListResponse',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJICg13YWxsZXRfY3JlYXRlGAEgASgLMiEuYXJiaXRlci5ldm0uV2FsbGV0Q3'
|
||||
'JlYXRlUmVzcG9uc2VIAFIMd2FsbGV0Q3JlYXRlEkIKC3dhbGxldF9saXN0GAIgASgLMh8uYXJi'
|
||||
'aXRlci5ldm0uV2FsbGV0TGlzdFJlc3BvbnNlSABSCndhbGxldExpc3QSSAoMZ3JhbnRfY3JlYX'
|
||||
'RlGAMgASgLMiMuYXJiaXRlci5ldm0uRXZtR3JhbnRDcmVhdGVSZXNwb25zZUgAUgtncmFudENy'
|
||||
'ZWF0ZRJICgxncmFudF9kZWxldGUYBCABKAsyIy5hcmJpdGVyLmV2bS5Fdm1HcmFudERlbGV0ZV'
|
||||
'Jlc3BvbnNlSABSC2dyYW50RGVsZXRlEkIKCmdyYW50X2xpc3QYBSABKAsyIS5hcmJpdGVyLmV2'
|
||||
'bS5Fdm1HcmFudExpc3RSZXNwb25zZUgAUglncmFudExpc3QSVAoQc2lnbl90cmFuc2FjdGlvbh'
|
||||
'gGIAEoCzInLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlc3BvbnNlSABSD3NpZ25U'
|
||||
'cmFuc2FjdGlvbkIJCgdwYXlsb2Fk');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/evm.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use signTransactionRequestDescriptor instead')
|
||||
const SignTransactionRequest$json = {
|
||||
'1': 'SignTransactionRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
{
|
||||
'1': 'request',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionRequest',
|
||||
'10': 'request'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `SignTransactionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List signTransactionRequestDescriptor = $convert.base64Decode(
|
||||
'ChZTaWduVHJhbnNhY3Rpb25SZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQSQA'
|
||||
'oHcmVxdWVzdBgCIAEoCzImLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlcXVlc3RS'
|
||||
'B3JlcXVlc3Q=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateRequest',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteRequest',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListRequest',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.evm.SignTransactionRequest',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0Ej0KDXdhbGxldF9jcmVhdGUYASABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdH'
|
||||
'lIAFIMd2FsbGV0Q3JlYXRlEjkKC3dhbGxldF9saXN0GAIgASgLMhYuZ29vZ2xlLnByb3RvYnVm'
|
||||
'LkVtcHR5SABSCndhbGxldExpc3QSRwoMZ3JhbnRfY3JlYXRlGAMgASgLMiIuYXJiaXRlci5ldm'
|
||||
'0uRXZtR3JhbnRDcmVhdGVSZXF1ZXN0SABSC2dyYW50Q3JlYXRlEkcKDGdyYW50X2RlbGV0ZRgE'
|
||||
'IAEoCzIiLmFyYml0ZXIuZXZtLkV2bUdyYW50RGVsZXRlUmVxdWVzdEgAUgtncmFudERlbGV0ZR'
|
||||
'JBCgpncmFudF9saXN0GAUgASgLMiAuYXJiaXRlci5ldm0uRXZtR3JhbnRMaXN0UmVxdWVzdEgA'
|
||||
'UglncmFudExpc3QSWwoQc2lnbl90cmFuc2FjdGlvbhgGIAEoCzIuLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5ldm0uU2lnblRyYW5zYWN0aW9uUmVxdWVzdEgAUg9zaWduVHJhbnNhY3Rpb25CCQoHcGF5'
|
||||
'bG9hZA==');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'wallet_create',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'walletCreate'
|
||||
},
|
||||
{
|
||||
'1': 'wallet_list',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.WalletListResponse',
|
||||
'9': 0,
|
||||
'10': 'walletList'
|
||||
},
|
||||
{
|
||||
'1': 'grant_create',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantCreateResponse',
|
||||
'9': 0,
|
||||
'10': 'grantCreate'
|
||||
},
|
||||
{
|
||||
'1': 'grant_delete',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantDeleteResponse',
|
||||
'9': 0,
|
||||
'10': 'grantDelete'
|
||||
},
|
||||
{
|
||||
'1': 'grant_list',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmGrantListResponse',
|
||||
'9': 0,
|
||||
'10': 'grantList'
|
||||
},
|
||||
{
|
||||
'1': 'sign_transaction',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.evm.EvmSignTransactionResponse',
|
||||
'9': 0,
|
||||
'10': 'signTransaction'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJICg13YWxsZXRfY3JlYXRlGAEgASgLMiEuYXJiaXRlci5ldm0uV2FsbGV0Q3'
|
||||
'JlYXRlUmVzcG9uc2VIAFIMd2FsbGV0Q3JlYXRlEkIKC3dhbGxldF9saXN0GAIgASgLMh8uYXJi'
|
||||
'aXRlci5ldm0uV2FsbGV0TGlzdFJlc3BvbnNlSABSCndhbGxldExpc3QSSAoMZ3JhbnRfY3JlYX'
|
||||
'RlGAMgASgLMiMuYXJiaXRlci5ldm0uRXZtR3JhbnRDcmVhdGVSZXNwb25zZUgAUgtncmFudENy'
|
||||
'ZWF0ZRJICgxncmFudF9kZWxldGUYBCABKAsyIy5hcmJpdGVyLmV2bS5Fdm1HcmFudERlbGV0ZV'
|
||||
'Jlc3BvbnNlSABSC2dyYW50RGVsZXRlEkIKCmdyYW50X2xpc3QYBSABKAsyIS5hcmJpdGVyLmV2'
|
||||
'bS5Fdm1HcmFudExpc3RSZXNwb25zZUgAUglncmFudExpc3QSVAoQc2lnbl90cmFuc2FjdGlvbh'
|
||||
'gGIAEoCzInLmFyYml0ZXIuZXZtLkV2bVNpZ25UcmFuc2FjdGlvblJlc3BvbnNlSABSD3NpZ25U'
|
||||
'cmFuc2FjdGlvbkIJCgdwYXlsb2Fk');
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,46 +1,46 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class Error extends $pb.ProtobufEnum {
|
||||
static const Error ERROR_UNSPECIFIED =
|
||||
Error._(0, _omitEnumNames ? '' : 'ERROR_UNSPECIFIED');
|
||||
static const Error ERROR_ALREADY_EXISTS =
|
||||
Error._(1, _omitEnumNames ? '' : 'ERROR_ALREADY_EXISTS');
|
||||
static const Error ERROR_NOT_FOUND =
|
||||
Error._(2, _omitEnumNames ? '' : 'ERROR_NOT_FOUND');
|
||||
static const Error ERROR_HAS_RELATED_DATA =
|
||||
Error._(3, _omitEnumNames ? '' : 'ERROR_HAS_RELATED_DATA');
|
||||
static const Error ERROR_INTERNAL =
|
||||
Error._(4, _omitEnumNames ? '' : 'ERROR_INTERNAL');
|
||||
|
||||
static const $core.List<Error> values = <Error>[
|
||||
ERROR_UNSPECIFIED,
|
||||
ERROR_ALREADY_EXISTS,
|
||||
ERROR_NOT_FOUND,
|
||||
ERROR_HAS_RELATED_DATA,
|
||||
ERROR_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<Error?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 4);
|
||||
static Error? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Error._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class Error extends $pb.ProtobufEnum {
|
||||
static const Error ERROR_UNSPECIFIED =
|
||||
Error._(0, _omitEnumNames ? '' : 'ERROR_UNSPECIFIED');
|
||||
static const Error ERROR_ALREADY_EXISTS =
|
||||
Error._(1, _omitEnumNames ? '' : 'ERROR_ALREADY_EXISTS');
|
||||
static const Error ERROR_NOT_FOUND =
|
||||
Error._(2, _omitEnumNames ? '' : 'ERROR_NOT_FOUND');
|
||||
static const Error ERROR_HAS_RELATED_DATA =
|
||||
Error._(3, _omitEnumNames ? '' : 'ERROR_HAS_RELATED_DATA');
|
||||
static const Error ERROR_INTERNAL =
|
||||
Error._(4, _omitEnumNames ? '' : 'ERROR_INTERNAL');
|
||||
|
||||
static const $core.List<Error> values = <Error>[
|
||||
ERROR_UNSPECIFIED,
|
||||
ERROR_ALREADY_EXISTS,
|
||||
ERROR_NOT_FOUND,
|
||||
ERROR_HAS_RELATED_DATA,
|
||||
ERROR_INTERNAL,
|
||||
];
|
||||
|
||||
static final $core.List<Error?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 4);
|
||||
static Error? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const Error._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,438 +1,438 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use errorDescriptor instead')
|
||||
const Error$json = {
|
||||
'1': 'Error',
|
||||
'2': [
|
||||
{'1': 'ERROR_UNSPECIFIED', '2': 0},
|
||||
{'1': 'ERROR_ALREADY_EXISTS', '2': 1},
|
||||
{'1': 'ERROR_NOT_FOUND', '2': 2},
|
||||
{'1': 'ERROR_HAS_RELATED_DATA', '2': 3},
|
||||
{'1': 'ERROR_INTERNAL', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Error`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List errorDescriptor = $convert.base64Decode(
|
||||
'CgVFcnJvchIVChFFUlJPUl9VTlNQRUNJRklFRBAAEhgKFEVSUk9SX0FMUkVBRFlfRVhJU1RTEA'
|
||||
'ESEwoPRVJST1JfTk9UX0ZPVU5EEAISGgoWRVJST1JfSEFTX1JFTEFURURfREFUQRADEhIKDkVS'
|
||||
'Uk9SX0lOVEVSTkFMEAQ=');
|
||||
|
||||
@$core.Deprecated('Use revokeRequestDescriptor instead')
|
||||
const RevokeRequest$json = {
|
||||
'1': 'RevokeRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeRequestDescriptor = $convert.base64Decode(
|
||||
'Cg1SZXZva2VSZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQ=');
|
||||
|
||||
@$core.Deprecated('Use entryDescriptor instead')
|
||||
const Entry$json = {
|
||||
'1': 'Entry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
{'1': 'created_at', '3': 4, '4': 1, '5': 5, '10': 'createdAt'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Entry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List entryDescriptor = $convert.base64Decode(
|
||||
'CgVFbnRyeRIOCgJpZBgBIAEoBVICaWQSFgoGcHVia2V5GAIgASgMUgZwdWJrZXkSLgoEaW5mbx'
|
||||
'gDIAEoCzIaLmFyYml0ZXIuc2hhcmVkLkNsaWVudEluZm9SBGluZm8SHQoKY3JlYXRlZF9hdBgE'
|
||||
'IAEoBVIJY3JlYXRlZEF0');
|
||||
|
||||
@$core.Deprecated('Use list_Descriptor instead')
|
||||
const List_$json = {
|
||||
'1': 'List',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Entry',
|
||||
'10': 'clients'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `List`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List list_Descriptor = $convert.base64Decode(
|
||||
'CgRMaXN0Ej4KB2NsaWVudHMYASADKAsyJC5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC'
|
||||
'5FbnRyeVIHY2xpZW50cw==');
|
||||
|
||||
@$core.Deprecated('Use revokeResponseDescriptor instead')
|
||||
const RevokeResponse$json = {
|
||||
'1': 'RevokeResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'ok',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'ok'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeResponseDescriptor = $convert.base64Decode(
|
||||
'Cg5SZXZva2VSZXNwb25zZRIoCgJvaxgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUg'
|
||||
'JvaxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LkVycm9y'
|
||||
'SABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use listResponseDescriptor instead')
|
||||
const ListResponse$json = {
|
||||
'1': 'ListResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.List',
|
||||
'9': 0,
|
||||
'10': 'clients'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listResponseDescriptor = $convert.base64Decode(
|
||||
'CgxMaXN0UmVzcG9uc2USPwoHY2xpZW50cxgBIAEoCzIjLmFyYml0ZXIudXNlcl9hZ2VudC5zZG'
|
||||
'tfY2xpZW50Lkxpc3RIAFIHY2xpZW50cxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9h'
|
||||
'Z2VudC5zZGtfY2xpZW50LkVycm9ySABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use connectionRequestDescriptor instead')
|
||||
const ConnectionRequest$json = {
|
||||
'1': 'ConnectionRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionRequestDescriptor = $convert.base64Decode(
|
||||
'ChFDb25uZWN0aW9uUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIuCgRpbmZvGAIgAS'
|
||||
'gLMhouYXJiaXRlci5zaGFyZWQuQ2xpZW50SW5mb1IEaW5mbw==');
|
||||
|
||||
@$core.Deprecated('Use connectionResponseDescriptor instead')
|
||||
const ConnectionResponse$json = {
|
||||
'1': 'ConnectionResponse',
|
||||
'2': [
|
||||
{'1': 'approved', '3': 1, '4': 1, '5': 8, '10': 'approved'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionResponseDescriptor = $convert.base64Decode(
|
||||
'ChJDb25uZWN0aW9uUmVzcG9uc2USGgoIYXBwcm92ZWQYASABKAhSCGFwcHJvdmVkEhYKBnB1Ym'
|
||||
'tleRgCIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use connectionCancelDescriptor instead')
|
||||
const ConnectionCancel$json = {
|
||||
'1': 'ConnectionCancel',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionCancel`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionCancelDescriptor = $convert
|
||||
.base64Decode('ChBDb25uZWN0aW9uQ2FuY2VsEhYKBnB1YmtleRgBIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use walletAccessDescriptor instead')
|
||||
const WalletAccess$json = {
|
||||
'1': 'WalletAccess',
|
||||
'2': [
|
||||
{'1': 'wallet_id', '3': 1, '4': 1, '5': 5, '10': 'walletId'},
|
||||
{'1': 'sdk_client_id', '3': 2, '4': 1, '5': 5, '10': 'sdkClientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessDescriptor = $convert.base64Decode(
|
||||
'CgxXYWxsZXRBY2Nlc3MSGwoJd2FsbGV0X2lkGAEgASgFUgh3YWxsZXRJZBIiCg1zZGtfY2xpZW'
|
||||
'50X2lkGAIgASgFUgtzZGtDbGllbnRJZA==');
|
||||
|
||||
@$core.Deprecated('Use walletAccessEntryDescriptor instead')
|
||||
const WalletAccessEntry$json = {
|
||||
'1': 'WalletAccessEntry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{
|
||||
'1': 'access',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'access'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccessEntry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessEntryDescriptor = $convert.base64Decode(
|
||||
'ChFXYWxsZXRBY2Nlc3NFbnRyeRIOCgJpZBgBIAEoBVICaWQSQwoGYWNjZXNzGAIgASgLMisuYX'
|
||||
'JiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuV2FsbGV0QWNjZXNzUgZhY2Nlc3M=');
|
||||
|
||||
@$core.Deprecated('Use grantWalletAccessDescriptor instead')
|
||||
const GrantWalletAccess$json = {
|
||||
'1': 'GrantWalletAccess',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `GrantWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List grantWalletAccessDescriptor = $convert.base64Decode(
|
||||
'ChFHcmFudFdhbGxldEFjY2VzcxJHCghhY2Nlc3NlcxgBIAMoCzIrLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5zZGtfY2xpZW50LldhbGxldEFjY2Vzc1IIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use revokeWalletAccessDescriptor instead')
|
||||
const RevokeWalletAccess$json = {
|
||||
'1': 'RevokeWalletAccess',
|
||||
'2': [
|
||||
{'1': 'accesses', '3': 1, '4': 3, '5': 5, '10': 'accesses'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeWalletAccessDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChJSZXZva2VXYWxsZXRBY2Nlc3MSGgoIYWNjZXNzZXMYASADKAVSCGFjY2Vzc2Vz');
|
||||
|
||||
@$core.Deprecated('Use listWalletAccessResponseDescriptor instead')
|
||||
const ListWalletAccessResponse$json = {
|
||||
'1': 'ListWalletAccessResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccessEntry',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListWalletAccessResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listWalletAccessResponseDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChhMaXN0V2FsbGV0QWNjZXNzUmVzcG9uc2USTAoIYWNjZXNzZXMYASADKAsyMC5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQuc2RrX2NsaWVudC5XYWxsZXRBY2Nlc3NFbnRyeVIIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_response',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionResponse',
|
||||
'9': 0,
|
||||
'10': 'connectionResponse'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeRequest',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'grant_wallet_access',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.GrantWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'grantWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'revoke_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'revokeWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EmQKE2Nvbm5lY3Rpb25fcmVzcG9uc2UYASABKAsyMS5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVzcG9uc2VIAFISY29ubmVjdGlvblJlc3BvbnNl'
|
||||
'EkYKBnJldm9rZRgCIAEoCzIsLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LlJldm9rZV'
|
||||
'JlcXVlc3RIAFIGcmV2b2tlEiwKBGxpc3QYAyABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlI'
|
||||
'AFIEbGlzdBJiChNncmFudF93YWxsZXRfYWNjZXNzGAQgASgLMjAuYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LnNka19jbGllbnQuR3JhbnRXYWxsZXRBY2Nlc3NIAFIRZ3JhbnRXYWxsZXRBY2Nlc3MSZQoU'
|
||||
'cmV2b2tlX3dhbGxldF9hY2Nlc3MYBSABKAsyMS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaW'
|
||||
'VudC5SZXZva2VXYWxsZXRBY2Nlc3NIAFIScmV2b2tlV2FsbGV0QWNjZXNzEkYKEmxpc3Rfd2Fs'
|
||||
'bGV0X2FjY2VzcxgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhBsaXN0V2FsbGV0QW'
|
||||
'NjZXNzQgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionRequest',
|
||||
'9': 0,
|
||||
'10': 'connectionRequest'
|
||||
},
|
||||
{
|
||||
'1': 'connection_cancel',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionCancel',
|
||||
'9': 0,
|
||||
'10': 'connectionCancel'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeResponse',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListResponse',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListWalletAccessResponse',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJhChJjb25uZWN0aW9uX3JlcXVlc3QYASABKAsyMC5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVxdWVzdEgAUhFjb25uZWN0aW9uUmVxdWVzdBJe'
|
||||
'ChFjb25uZWN0aW9uX2NhbmNlbBgCIAEoCzIvLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW'
|
||||
'50LkNvbm5lY3Rpb25DYW5jZWxIAFIQY29ubmVjdGlvbkNhbmNlbBJHCgZyZXZva2UYAyABKAsy'
|
||||
'LS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC5SZXZva2VSZXNwb25zZUgAUgZyZXZva2'
|
||||
'USQQoEbGlzdBgEIAEoCzIrLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50Lkxpc3RSZXNw'
|
||||
'b25zZUgAUgRsaXN0EmcKEmxpc3Rfd2FsbGV0X2FjY2VzcxgFIAEoCzI3LmFyYml0ZXIudXNlcl'
|
||||
'9hZ2VudC5zZGtfY2xpZW50Lkxpc3RXYWxsZXRBY2Nlc3NSZXNwb25zZUgAUhBsaXN0V2FsbGV0'
|
||||
'QWNjZXNzQgkKB3BheWxvYWQ=');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/sdk_client.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use errorDescriptor instead')
|
||||
const Error$json = {
|
||||
'1': 'Error',
|
||||
'2': [
|
||||
{'1': 'ERROR_UNSPECIFIED', '2': 0},
|
||||
{'1': 'ERROR_ALREADY_EXISTS', '2': 1},
|
||||
{'1': 'ERROR_NOT_FOUND', '2': 2},
|
||||
{'1': 'ERROR_HAS_RELATED_DATA', '2': 3},
|
||||
{'1': 'ERROR_INTERNAL', '2': 4},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Error`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List errorDescriptor = $convert.base64Decode(
|
||||
'CgVFcnJvchIVChFFUlJPUl9VTlNQRUNJRklFRBAAEhgKFEVSUk9SX0FMUkVBRFlfRVhJU1RTEA'
|
||||
'ESEwoPRVJST1JfTk9UX0ZPVU5EEAISGgoWRVJST1JfSEFTX1JFTEFURURfREFUQRADEhIKDkVS'
|
||||
'Uk9SX0lOVEVSTkFMEAQ=');
|
||||
|
||||
@$core.Deprecated('Use revokeRequestDescriptor instead')
|
||||
const RevokeRequest$json = {
|
||||
'1': 'RevokeRequest',
|
||||
'2': [
|
||||
{'1': 'client_id', '3': 1, '4': 1, '5': 5, '10': 'clientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeRequestDescriptor = $convert.base64Decode(
|
||||
'Cg1SZXZva2VSZXF1ZXN0EhsKCWNsaWVudF9pZBgBIAEoBVIIY2xpZW50SWQ=');
|
||||
|
||||
@$core.Deprecated('Use entryDescriptor instead')
|
||||
const Entry$json = {
|
||||
'1': 'Entry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
{'1': 'created_at', '3': 4, '4': 1, '5': 5, '10': 'createdAt'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Entry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List entryDescriptor = $convert.base64Decode(
|
||||
'CgVFbnRyeRIOCgJpZBgBIAEoBVICaWQSFgoGcHVia2V5GAIgASgMUgZwdWJrZXkSLgoEaW5mbx'
|
||||
'gDIAEoCzIaLmFyYml0ZXIuc2hhcmVkLkNsaWVudEluZm9SBGluZm8SHQoKY3JlYXRlZF9hdBgE'
|
||||
'IAEoBVIJY3JlYXRlZEF0');
|
||||
|
||||
@$core.Deprecated('Use list_Descriptor instead')
|
||||
const List_$json = {
|
||||
'1': 'List',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.Entry',
|
||||
'10': 'clients'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `List`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List list_Descriptor = $convert.base64Decode(
|
||||
'CgRMaXN0Ej4KB2NsaWVudHMYASADKAsyJC5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC'
|
||||
'5FbnRyeVIHY2xpZW50cw==');
|
||||
|
||||
@$core.Deprecated('Use revokeResponseDescriptor instead')
|
||||
const RevokeResponse$json = {
|
||||
'1': 'RevokeResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'ok',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'ok'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeResponseDescriptor = $convert.base64Decode(
|
||||
'Cg5SZXZva2VSZXNwb25zZRIoCgJvaxgBIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUg'
|
||||
'JvaxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LkVycm9y'
|
||||
'SABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use listResponseDescriptor instead')
|
||||
const ListResponse$json = {
|
||||
'1': 'ListResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'clients',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.List',
|
||||
'9': 0,
|
||||
'10': 'clients'
|
||||
},
|
||||
{
|
||||
'1': 'error',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.sdk_client.Error',
|
||||
'9': 0,
|
||||
'10': 'error'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'result'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listResponseDescriptor = $convert.base64Decode(
|
||||
'CgxMaXN0UmVzcG9uc2USPwoHY2xpZW50cxgBIAEoCzIjLmFyYml0ZXIudXNlcl9hZ2VudC5zZG'
|
||||
'tfY2xpZW50Lkxpc3RIAFIHY2xpZW50cxI8CgVlcnJvchgCIAEoDjIkLmFyYml0ZXIudXNlcl9h'
|
||||
'Z2VudC5zZGtfY2xpZW50LkVycm9ySABSBWVycm9yQggKBnJlc3VsdA==');
|
||||
|
||||
@$core.Deprecated('Use connectionRequestDescriptor instead')
|
||||
const ConnectionRequest$json = {
|
||||
'1': 'ConnectionRequest',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
{
|
||||
'1': 'info',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.shared.ClientInfo',
|
||||
'10': 'info'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionRequestDescriptor = $convert.base64Decode(
|
||||
'ChFDb25uZWN0aW9uUmVxdWVzdBIWCgZwdWJrZXkYASABKAxSBnB1YmtleRIuCgRpbmZvGAIgAS'
|
||||
'gLMhouYXJiaXRlci5zaGFyZWQuQ2xpZW50SW5mb1IEaW5mbw==');
|
||||
|
||||
@$core.Deprecated('Use connectionResponseDescriptor instead')
|
||||
const ConnectionResponse$json = {
|
||||
'1': 'ConnectionResponse',
|
||||
'2': [
|
||||
{'1': 'approved', '3': 1, '4': 1, '5': 8, '10': 'approved'},
|
||||
{'1': 'pubkey', '3': 2, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionResponseDescriptor = $convert.base64Decode(
|
||||
'ChJDb25uZWN0aW9uUmVzcG9uc2USGgoIYXBwcm92ZWQYASABKAhSCGFwcHJvdmVkEhYKBnB1Ym'
|
||||
'tleRgCIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use connectionCancelDescriptor instead')
|
||||
const ConnectionCancel$json = {
|
||||
'1': 'ConnectionCancel',
|
||||
'2': [
|
||||
{'1': 'pubkey', '3': 1, '4': 1, '5': 12, '10': 'pubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ConnectionCancel`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List connectionCancelDescriptor = $convert
|
||||
.base64Decode('ChBDb25uZWN0aW9uQ2FuY2VsEhYKBnB1YmtleRgBIAEoDFIGcHVia2V5');
|
||||
|
||||
@$core.Deprecated('Use walletAccessDescriptor instead')
|
||||
const WalletAccess$json = {
|
||||
'1': 'WalletAccess',
|
||||
'2': [
|
||||
{'1': 'wallet_id', '3': 1, '4': 1, '5': 5, '10': 'walletId'},
|
||||
{'1': 'sdk_client_id', '3': 2, '4': 1, '5': 5, '10': 'sdkClientId'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessDescriptor = $convert.base64Decode(
|
||||
'CgxXYWxsZXRBY2Nlc3MSGwoJd2FsbGV0X2lkGAEgASgFUgh3YWxsZXRJZBIiCg1zZGtfY2xpZW'
|
||||
'50X2lkGAIgASgFUgtzZGtDbGllbnRJZA==');
|
||||
|
||||
@$core.Deprecated('Use walletAccessEntryDescriptor instead')
|
||||
const WalletAccessEntry$json = {
|
||||
'1': 'WalletAccessEntry',
|
||||
'2': [
|
||||
{'1': 'id', '3': 1, '4': 1, '5': 5, '10': 'id'},
|
||||
{
|
||||
'1': 'access',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'access'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `WalletAccessEntry`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List walletAccessEntryDescriptor = $convert.base64Decode(
|
||||
'ChFXYWxsZXRBY2Nlc3NFbnRyeRIOCgJpZBgBIAEoBVICaWQSQwoGYWNjZXNzGAIgASgLMisuYX'
|
||||
'JiaXRlci51c2VyX2FnZW50LnNka19jbGllbnQuV2FsbGV0QWNjZXNzUgZhY2Nlc3M=');
|
||||
|
||||
@$core.Deprecated('Use grantWalletAccessDescriptor instead')
|
||||
const GrantWalletAccess$json = {
|
||||
'1': 'GrantWalletAccess',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccess',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `GrantWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List grantWalletAccessDescriptor = $convert.base64Decode(
|
||||
'ChFHcmFudFdhbGxldEFjY2VzcxJHCghhY2Nlc3NlcxgBIAMoCzIrLmFyYml0ZXIudXNlcl9hZ2'
|
||||
'VudC5zZGtfY2xpZW50LldhbGxldEFjY2Vzc1IIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use revokeWalletAccessDescriptor instead')
|
||||
const RevokeWalletAccess$json = {
|
||||
'1': 'RevokeWalletAccess',
|
||||
'2': [
|
||||
{'1': 'accesses', '3': 1, '4': 3, '5': 5, '10': 'accesses'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `RevokeWalletAccess`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List revokeWalletAccessDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChJSZXZva2VXYWxsZXRBY2Nlc3MSGgoIYWNjZXNzZXMYASADKAVSCGFjY2Vzc2Vz');
|
||||
|
||||
@$core.Deprecated('Use listWalletAccessResponseDescriptor instead')
|
||||
const ListWalletAccessResponse$json = {
|
||||
'1': 'ListWalletAccessResponse',
|
||||
'2': [
|
||||
{
|
||||
'1': 'accesses',
|
||||
'3': 1,
|
||||
'4': 3,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.WalletAccessEntry',
|
||||
'10': 'accesses'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `ListWalletAccessResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List listWalletAccessResponseDescriptor =
|
||||
$convert.base64Decode(
|
||||
'ChhMaXN0V2FsbGV0QWNjZXNzUmVzcG9uc2USTAoIYWNjZXNzZXMYASADKAsyMC5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQuc2RrX2NsaWVudC5XYWxsZXRBY2Nlc3NFbnRyeVIIYWNjZXNzZXM=');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_response',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionResponse',
|
||||
'9': 0,
|
||||
'10': 'connectionResponse'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeRequest',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'grant_wallet_access',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.GrantWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'grantWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'revoke_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeWalletAccess',
|
||||
'9': 0,
|
||||
'10': 'revokeWalletAccess'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EmQKE2Nvbm5lY3Rpb25fcmVzcG9uc2UYASABKAsyMS5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVzcG9uc2VIAFISY29ubmVjdGlvblJlc3BvbnNl'
|
||||
'EkYKBnJldm9rZRgCIAEoCzIsLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50LlJldm9rZV'
|
||||
'JlcXVlc3RIAFIGcmV2b2tlEiwKBGxpc3QYAyABKAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHlI'
|
||||
'AFIEbGlzdBJiChNncmFudF93YWxsZXRfYWNjZXNzGAQgASgLMjAuYXJiaXRlci51c2VyX2FnZW'
|
||||
'50LnNka19jbGllbnQuR3JhbnRXYWxsZXRBY2Nlc3NIAFIRZ3JhbnRXYWxsZXRBY2Nlc3MSZQoU'
|
||||
'cmV2b2tlX3dhbGxldF9hY2Nlc3MYBSABKAsyMS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaW'
|
||||
'VudC5SZXZva2VXYWxsZXRBY2Nlc3NIAFIScmV2b2tlV2FsbGV0QWNjZXNzEkYKEmxpc3Rfd2Fs'
|
||||
'bGV0X2FjY2VzcxgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhBsaXN0V2FsbGV0QW'
|
||||
'NjZXNzQgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'connection_request',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionRequest',
|
||||
'9': 0,
|
||||
'10': 'connectionRequest'
|
||||
},
|
||||
{
|
||||
'1': 'connection_cancel',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ConnectionCancel',
|
||||
'9': 0,
|
||||
'10': 'connectionCancel'
|
||||
},
|
||||
{
|
||||
'1': 'revoke',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.RevokeResponse',
|
||||
'9': 0,
|
||||
'10': 'revoke'
|
||||
},
|
||||
{
|
||||
'1': 'list',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListResponse',
|
||||
'9': 0,
|
||||
'10': 'list'
|
||||
},
|
||||
{
|
||||
'1': 'list_wallet_access',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.sdk_client.ListWalletAccessResponse',
|
||||
'9': 0,
|
||||
'10': 'listWalletAccess'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJhChJjb25uZWN0aW9uX3JlcXVlc3QYASABKAsyMC5hcmJpdGVyLnVzZXJfYW'
|
||||
'dlbnQuc2RrX2NsaWVudC5Db25uZWN0aW9uUmVxdWVzdEgAUhFjb25uZWN0aW9uUmVxdWVzdBJe'
|
||||
'ChFjb25uZWN0aW9uX2NhbmNlbBgCIAEoCzIvLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW'
|
||||
'50LkNvbm5lY3Rpb25DYW5jZWxIAFIQY29ubmVjdGlvbkNhbmNlbBJHCgZyZXZva2UYAyABKAsy'
|
||||
'LS5hcmJpdGVyLnVzZXJfYWdlbnQuc2RrX2NsaWVudC5SZXZva2VSZXNwb25zZUgAUgZyZXZva2'
|
||||
'USQQoEbGlzdBgEIAEoCzIrLmFyYml0ZXIudXNlcl9hZ2VudC5zZGtfY2xpZW50Lkxpc3RSZXNw'
|
||||
'b25zZUgAUgRsaXN0EmcKEmxpc3Rfd2FsbGV0X2FjY2VzcxgFIAEoCzI3LmFyYml0ZXIudXNlcl'
|
||||
'9hZ2VudC5zZGtfY2xpZW50Lkxpc3RXYWxsZXRBY2Nlc3NSZXNwb25zZUgAUhBsaXN0V2FsbGV0'
|
||||
'QWNjZXNzQgkKB3BheWxvYWQ=');
|
||||
|
||||
@@ -1,221 +1,221 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'bootstrap.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'bootstrap.pbenum.dart';
|
||||
|
||||
class BootstrapEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory BootstrapEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
BootstrapEncryptedKey._();
|
||||
|
||||
factory BootstrapEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory BootstrapEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'BootstrapEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey copyWith(
|
||||
void Function(BootstrapEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as BootstrapEncryptedKey))
|
||||
as BootstrapEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey create() => BootstrapEncryptedKey._();
|
||||
@$core.override
|
||||
BootstrapEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<BootstrapEncryptedKey>(create);
|
||||
static BootstrapEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
BootstrapEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<BootstrapEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: BootstrapEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey get encryptedKey => $_getN(0);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(BootstrapEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(0);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey ensureEncryptedKey() => $_ensure(0);
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
BootstrapResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aE<BootstrapResult>(1, _omitFieldNames ? '' : 'result',
|
||||
enumValues: BootstrapResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
BootstrapResult get result => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set result(BootstrapResult value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasResult() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearResult() => $_clearField(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'bootstrap.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'bootstrap.pbenum.dart';
|
||||
|
||||
class BootstrapEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory BootstrapEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
BootstrapEncryptedKey._();
|
||||
|
||||
factory BootstrapEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory BootstrapEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'BootstrapEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
BootstrapEncryptedKey copyWith(
|
||||
void Function(BootstrapEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as BootstrapEncryptedKey))
|
||||
as BootstrapEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey create() => BootstrapEncryptedKey._();
|
||||
@$core.override
|
||||
BootstrapEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static BootstrapEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<BootstrapEncryptedKey>(create);
|
||||
static BootstrapEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
BootstrapEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<BootstrapEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: BootstrapEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey get encryptedKey => $_getN(0);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(BootstrapEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(0);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
BootstrapEncryptedKey ensureEncryptedKey() => $_ensure(0);
|
||||
}
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
BootstrapResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.bootstrap'),
|
||||
createEmptyInstance: create)
|
||||
..aE<BootstrapResult>(1, _omitFieldNames ? '' : 'result',
|
||||
enumValues: BootstrapResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
BootstrapResult get result => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set result(BootstrapResult value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasResult() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearResult() => $_clearField(1);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,44 +1,44 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class BootstrapResult extends $pb.ProtobufEnum {
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_UNSPECIFIED = BootstrapResult._(
|
||||
0, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_UNSPECIFIED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_SUCCESS =
|
||||
BootstrapResult._(1, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_SUCCESS');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED =
|
||||
BootstrapResult._(
|
||||
2, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_INVALID_KEY = BootstrapResult._(
|
||||
3, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_INVALID_KEY');
|
||||
|
||||
static const $core.List<BootstrapResult> values = <BootstrapResult>[
|
||||
BOOTSTRAP_RESULT_UNSPECIFIED,
|
||||
BOOTSTRAP_RESULT_SUCCESS,
|
||||
BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED,
|
||||
BOOTSTRAP_RESULT_INVALID_KEY,
|
||||
];
|
||||
|
||||
static final $core.List<BootstrapResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static BootstrapResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const BootstrapResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class BootstrapResult extends $pb.ProtobufEnum {
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_UNSPECIFIED = BootstrapResult._(
|
||||
0, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_UNSPECIFIED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_SUCCESS =
|
||||
BootstrapResult._(1, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_SUCCESS');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED =
|
||||
BootstrapResult._(
|
||||
2, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED');
|
||||
static const BootstrapResult BOOTSTRAP_RESULT_INVALID_KEY = BootstrapResult._(
|
||||
3, _omitEnumNames ? '' : 'BOOTSTRAP_RESULT_INVALID_KEY');
|
||||
|
||||
static const $core.List<BootstrapResult> values = <BootstrapResult>[
|
||||
BOOTSTRAP_RESULT_UNSPECIFIED,
|
||||
BOOTSTRAP_RESULT_SUCCESS,
|
||||
BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED,
|
||||
BOOTSTRAP_RESULT_INVALID_KEY,
|
||||
];
|
||||
|
||||
static final $core.List<BootstrapResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static BootstrapResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const BootstrapResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,89 +1,89 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use bootstrapResultDescriptor instead')
|
||||
const BootstrapResult$json = {
|
||||
'1': 'BootstrapResult',
|
||||
'2': [
|
||||
{'1': 'BOOTSTRAP_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'BOOTSTRAP_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED', '2': 2},
|
||||
{'1': 'BOOTSTRAP_RESULT_INVALID_KEY', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapResultDescriptor = $convert.base64Decode(
|
||||
'Cg9Cb290c3RyYXBSZXN1bHQSIAocQk9PVFNUUkFQX1JFU1VMVF9VTlNQRUNJRklFRBAAEhwKGE'
|
||||
'JPT1RTVFJBUF9SRVNVTFRfU1VDQ0VTUxABEikKJUJPT1RTVFJBUF9SRVNVTFRfQUxSRUFEWV9C'
|
||||
'T09UU1RSQVBQRUQQAhIgChxCT09UU1RSQVBfUkVTVUxUX0lOVkFMSURfS0VZEAM=');
|
||||
|
||||
@$core.Deprecated('Use bootstrapEncryptedKeyDescriptor instead')
|
||||
const BootstrapEncryptedKey$json = {
|
||||
'1': 'BootstrapEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChVCb290c3RyYXBFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcn'
|
||||
'RleHQYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lh'
|
||||
'dGVkRGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapEncryptedKey',
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0El4KDWVuY3J5cHRlZF9rZXkYAiABKAsyOS5hcmJpdGVyLnVzZXJfYWdlbnQudm'
|
||||
'F1bHQuYm9vdHN0cmFwLkJvb3RzdHJhcEVuY3J5cHRlZEtleVIMZW5jcnlwdGVkS2V5');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapResult',
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJLCgZyZXN1bHQYASABKA4yMy5hcmJpdGVyLnVzZXJfYWdlbnQudmF1bHQuYm'
|
||||
'9vdHN0cmFwLkJvb3RzdHJhcFJlc3VsdFIGcmVzdWx0');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/bootstrap.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use bootstrapResultDescriptor instead')
|
||||
const BootstrapResult$json = {
|
||||
'1': 'BootstrapResult',
|
||||
'2': [
|
||||
{'1': 'BOOTSTRAP_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'BOOTSTRAP_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'BOOTSTRAP_RESULT_ALREADY_BOOTSTRAPPED', '2': 2},
|
||||
{'1': 'BOOTSTRAP_RESULT_INVALID_KEY', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapResultDescriptor = $convert.base64Decode(
|
||||
'Cg9Cb290c3RyYXBSZXN1bHQSIAocQk9PVFNUUkFQX1JFU1VMVF9VTlNQRUNJRklFRBAAEhwKGE'
|
||||
'JPT1RTVFJBUF9SRVNVTFRfU1VDQ0VTUxABEikKJUJPT1RTVFJBUF9SRVNVTFRfQUxSRUFEWV9C'
|
||||
'T09UU1RSQVBQRUQQAhIgChxCT09UU1RSQVBfUkVTVUxUX0lOVkFMSURfS0VZEAM=');
|
||||
|
||||
@$core.Deprecated('Use bootstrapEncryptedKeyDescriptor instead')
|
||||
const BootstrapEncryptedKey$json = {
|
||||
'1': 'BootstrapEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `BootstrapEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List bootstrapEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChVCb290c3RyYXBFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcn'
|
||||
'RleHQYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lh'
|
||||
'dGVkRGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapEncryptedKey',
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0El4KDWVuY3J5cHRlZF9rZXkYAiABKAsyOS5hcmJpdGVyLnVzZXJfYWdlbnQudm'
|
||||
'F1bHQuYm9vdHN0cmFwLkJvb3RzdHJhcEVuY3J5cHRlZEtleVIMZW5jcnlwdGVkS2V5');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.BootstrapResult',
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJLCgZyZXN1bHQYASABKA4yMy5hcmJpdGVyLnVzZXJfYWdlbnQudmF1bHQuYm'
|
||||
'9vdHN0cmFwLkJvb3RzdHJhcFJlc3VsdFIGcmVzdWx0');
|
||||
|
||||
@@ -1,392 +1,392 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'unseal.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'unseal.pbenum.dart';
|
||||
|
||||
class UnsealStart extends $pb.GeneratedMessage {
|
||||
factory UnsealStart({
|
||||
$core.List<$core.int>? clientPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientPubkey != null) result.clientPubkey = clientPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStart._();
|
||||
|
||||
factory UnsealStart.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStart.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStart',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'clientPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart copyWith(void Function(UnsealStart) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStart))
|
||||
as UnsealStart;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart create() => UnsealStart._();
|
||||
@$core.override
|
||||
UnsealStart createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStart>(create);
|
||||
static UnsealStart? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get clientPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealStartResponse extends $pb.GeneratedMessage {
|
||||
factory UnsealStartResponse({
|
||||
$core.List<$core.int>? serverPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (serverPubkey != null) result.serverPubkey = serverPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStartResponse._();
|
||||
|
||||
factory UnsealStartResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStartResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStartResponse',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'serverPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse copyWith(void Function(UnsealStartResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStartResponse))
|
||||
as UnsealStartResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse create() => UnsealStartResponse._();
|
||||
@$core.override
|
||||
UnsealStartResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStartResponse>(create);
|
||||
static UnsealStartResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get serverPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set serverPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasServerPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearServerPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory UnsealEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealEncryptedKey._();
|
||||
|
||||
factory UnsealEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey copyWith(void Function(UnsealEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealEncryptedKey))
|
||||
as UnsealEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey create() => UnsealEncryptedKey._();
|
||||
@$core.override
|
||||
UnsealEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealEncryptedKey>(create);
|
||||
static UnsealEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
enum Request_Payload { start, encryptedKey, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
UnsealStart? start,
|
||||
UnsealEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (start != null) result.start = start;
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.start,
|
||||
2: Request_Payload.encryptedKey,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStart>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStart.create)
|
||||
..aOM<UnsealEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: UnsealEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStart value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey get encryptedKey => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(UnsealEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey ensureEncryptedKey() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { start, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
UnsealStartResponse? start,
|
||||
UnsealResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (start != null) result$.start = start;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.start,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStartResponse>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStartResponse.create)
|
||||
..aE<UnsealResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: UnsealResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStartResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(UnsealResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'unseal.pbenum.dart';
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
export 'unseal.pbenum.dart';
|
||||
|
||||
class UnsealStart extends $pb.GeneratedMessage {
|
||||
factory UnsealStart({
|
||||
$core.List<$core.int>? clientPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (clientPubkey != null) result.clientPubkey = clientPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStart._();
|
||||
|
||||
factory UnsealStart.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStart.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStart',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'clientPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStart copyWith(void Function(UnsealStart) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStart))
|
||||
as UnsealStart;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart create() => UnsealStart._();
|
||||
@$core.override
|
||||
UnsealStart createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStart getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStart>(create);
|
||||
static UnsealStart? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get clientPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set clientPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasClientPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearClientPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealStartResponse extends $pb.GeneratedMessage {
|
||||
factory UnsealStartResponse({
|
||||
$core.List<$core.int>? serverPubkey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (serverPubkey != null) result.serverPubkey = serverPubkey;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealStartResponse._();
|
||||
|
||||
factory UnsealStartResponse.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealStartResponse.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealStartResponse',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'serverPubkey', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealStartResponse copyWith(void Function(UnsealStartResponse) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealStartResponse))
|
||||
as UnsealStartResponse;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse create() => UnsealStartResponse._();
|
||||
@$core.override
|
||||
UnsealStartResponse createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealStartResponse getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealStartResponse>(create);
|
||||
static UnsealStartResponse? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get serverPubkey => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set serverPubkey($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasServerPubkey() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearServerPubkey() => $_clearField(1);
|
||||
}
|
||||
|
||||
class UnsealEncryptedKey extends $pb.GeneratedMessage {
|
||||
factory UnsealEncryptedKey({
|
||||
$core.List<$core.int>? nonce,
|
||||
$core.List<$core.int>? ciphertext,
|
||||
$core.List<$core.int>? associatedData,
|
||||
}) {
|
||||
final result = create();
|
||||
if (nonce != null) result.nonce = nonce;
|
||||
if (ciphertext != null) result.ciphertext = ciphertext;
|
||||
if (associatedData != null) result.associatedData = associatedData;
|
||||
return result;
|
||||
}
|
||||
|
||||
UnsealEncryptedKey._();
|
||||
|
||||
factory UnsealEncryptedKey.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory UnsealEncryptedKey.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'UnsealEncryptedKey',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'nonce', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'ciphertext', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'associatedData', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
UnsealEncryptedKey copyWith(void Function(UnsealEncryptedKey) updates) =>
|
||||
super.copyWith((message) => updates(message as UnsealEncryptedKey))
|
||||
as UnsealEncryptedKey;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey create() => UnsealEncryptedKey._();
|
||||
@$core.override
|
||||
UnsealEncryptedKey createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static UnsealEncryptedKey getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<UnsealEncryptedKey>(create);
|
||||
static UnsealEncryptedKey? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get nonce => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set nonce($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasNonce() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearNonce() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get ciphertext => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set ciphertext($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCiphertext() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCiphertext() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get associatedData => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set associatedData($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasAssociatedData() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearAssociatedData() => $_clearField(3);
|
||||
}
|
||||
|
||||
enum Request_Payload { start, encryptedKey, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
UnsealStart? start,
|
||||
UnsealEncryptedKey? encryptedKey,
|
||||
}) {
|
||||
final result = create();
|
||||
if (start != null) result.start = start;
|
||||
if (encryptedKey != null) result.encryptedKey = encryptedKey;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.start,
|
||||
2: Request_Payload.encryptedKey,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStart>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStart.create)
|
||||
..aOM<UnsealEncryptedKey>(2, _omitFieldNames ? '' : 'encryptedKey',
|
||||
subBuilder: UnsealEncryptedKey.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStart value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStart ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey get encryptedKey => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set encryptedKey(UnsealEncryptedKey value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasEncryptedKey() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearEncryptedKey() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
UnsealEncryptedKey ensureEncryptedKey() => $_ensure(1);
|
||||
}
|
||||
|
||||
enum Response_Payload { start, result, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
UnsealStartResponse? start,
|
||||
UnsealResult? result,
|
||||
}) {
|
||||
final result$ = create();
|
||||
if (start != null) result$.start = start;
|
||||
if (result != null) result$.result = result;
|
||||
return result$;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.start,
|
||||
2: Response_Payload.result,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault.unseal'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<UnsealStartResponse>(1, _omitFieldNames ? '' : 'start',
|
||||
subBuilder: UnsealStartResponse.create)
|
||||
..aE<UnsealResult>(2, _omitFieldNames ? '' : 'result',
|
||||
enumValues: UnsealResult.values)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse get start => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set start(UnsealStartResponse value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStart() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStart() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
UnsealStartResponse ensureStart() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
UnsealResult get result => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set result(UnsealResult value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasResult() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearResult() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,43 +1,43 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class UnsealResult extends $pb.ProtobufEnum {
|
||||
static const UnsealResult UNSEAL_RESULT_UNSPECIFIED =
|
||||
UnsealResult._(0, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNSPECIFIED');
|
||||
static const UnsealResult UNSEAL_RESULT_SUCCESS =
|
||||
UnsealResult._(1, _omitEnumNames ? '' : 'UNSEAL_RESULT_SUCCESS');
|
||||
static const UnsealResult UNSEAL_RESULT_INVALID_KEY =
|
||||
UnsealResult._(2, _omitEnumNames ? '' : 'UNSEAL_RESULT_INVALID_KEY');
|
||||
static const UnsealResult UNSEAL_RESULT_UNBOOTSTRAPPED =
|
||||
UnsealResult._(3, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNBOOTSTRAPPED');
|
||||
|
||||
static const $core.List<UnsealResult> values = <UnsealResult>[
|
||||
UNSEAL_RESULT_UNSPECIFIED,
|
||||
UNSEAL_RESULT_SUCCESS,
|
||||
UNSEAL_RESULT_INVALID_KEY,
|
||||
UNSEAL_RESULT_UNBOOTSTRAPPED,
|
||||
];
|
||||
|
||||
static final $core.List<UnsealResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static UnsealResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const UnsealResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class UnsealResult extends $pb.ProtobufEnum {
|
||||
static const UnsealResult UNSEAL_RESULT_UNSPECIFIED =
|
||||
UnsealResult._(0, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNSPECIFIED');
|
||||
static const UnsealResult UNSEAL_RESULT_SUCCESS =
|
||||
UnsealResult._(1, _omitEnumNames ? '' : 'UNSEAL_RESULT_SUCCESS');
|
||||
static const UnsealResult UNSEAL_RESULT_INVALID_KEY =
|
||||
UnsealResult._(2, _omitEnumNames ? '' : 'UNSEAL_RESULT_INVALID_KEY');
|
||||
static const UnsealResult UNSEAL_RESULT_UNBOOTSTRAPPED =
|
||||
UnsealResult._(3, _omitEnumNames ? '' : 'UNSEAL_RESULT_UNBOOTSTRAPPED');
|
||||
|
||||
static const $core.List<UnsealResult> values = <UnsealResult>[
|
||||
UNSEAL_RESULT_UNSPECIFIED,
|
||||
UNSEAL_RESULT_SUCCESS,
|
||||
UNSEAL_RESULT_INVALID_KEY,
|
||||
UNSEAL_RESULT_UNBOOTSTRAPPED,
|
||||
];
|
||||
|
||||
static final $core.List<UnsealResult?> _byValue =
|
||||
$pb.ProtobufEnum.$_initByValueList(values, 3);
|
||||
static UnsealResult? valueOf($core.int value) =>
|
||||
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
||||
|
||||
const UnsealResult._(super.value, super.name);
|
||||
}
|
||||
|
||||
const $core.bool _omitEnumNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|
||||
|
||||
@@ -1,144 +1,144 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use unsealResultDescriptor instead')
|
||||
const UnsealResult$json = {
|
||||
'1': 'UnsealResult',
|
||||
'2': [
|
||||
{'1': 'UNSEAL_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'UNSEAL_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'UNSEAL_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'UNSEAL_RESULT_UNBOOTSTRAPPED', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List unsealResultDescriptor = $convert.base64Decode(
|
||||
'CgxVbnNlYWxSZXN1bHQSHQoZVU5TRUFMX1JFU1VMVF9VTlNQRUNJRklFRBAAEhkKFVVOU0VBTF'
|
||||
'9SRVNVTFRfU1VDQ0VTUxABEh0KGVVOU0VBTF9SRVNVTFRfSU5WQUxJRF9LRVkQAhIgChxVTlNF'
|
||||
'QUxfUkVTVUxUX1VOQk9PVFNUUkFQUEVEEAM=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartDescriptor instead')
|
||||
const UnsealStart$json = {
|
||||
'1': 'UnsealStart',
|
||||
'2': [
|
||||
{'1': 'client_pubkey', '3': 1, '4': 1, '5': 12, '10': 'clientPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStart`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartDescriptor = $convert.base64Decode(
|
||||
'CgtVbnNlYWxTdGFydBIjCg1jbGllbnRfcHVia2V5GAEgASgMUgxjbGllbnRQdWJrZXk=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartResponseDescriptor instead')
|
||||
const UnsealStartResponse$json = {
|
||||
'1': 'UnsealStartResponse',
|
||||
'2': [
|
||||
{'1': 'server_pubkey', '3': 1, '4': 1, '5': 12, '10': 'serverPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStartResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartResponseDescriptor = $convert.base64Decode(
|
||||
'ChNVbnNlYWxTdGFydFJlc3BvbnNlEiMKDXNlcnZlcl9wdWJrZXkYASABKAxSDHNlcnZlclB1Ym'
|
||||
'tleQ==');
|
||||
|
||||
@$core.Deprecated('Use unsealEncryptedKeyDescriptor instead')
|
||||
const UnsealEncryptedKey$json = {
|
||||
'1': 'UnsealEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChJVbnNlYWxFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcnRleH'
|
||||
'QYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lhdGVk'
|
||||
'RGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStart',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealEncryptedKey',
|
||||
'9': 0,
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EkQKBXN0YXJ0GAEgASgLMiwuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2'
|
||||
'VhbC5VbnNlYWxTdGFydEgAUgVzdGFydBJaCg1lbmNyeXB0ZWRfa2V5GAIgASgLMjMuYXJiaXRl'
|
||||
'ci51c2VyX2FnZW50LnZhdWx0LnVuc2VhbC5VbnNlYWxFbmNyeXB0ZWRLZXlIAFIMZW5jcnlwdG'
|
||||
'VkS2V5QgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStartResponse',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJMCgVzdGFydBgBIAEoCzI0LmFyYml0ZXIudXNlcl9hZ2VudC52YXVsdC51bn'
|
||||
'NlYWwuVW5zZWFsU3RhcnRSZXNwb25zZUgAUgVzdGFydBJHCgZyZXN1bHQYAiABKA4yLS5hcmJp'
|
||||
'dGVyLnVzZXJfYWdlbnQudmF1bHQudW5zZWFsLlVuc2VhbFJlc3VsdEgAUgZyZXN1bHRCCQoHcG'
|
||||
'F5bG9hZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/unseal.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use unsealResultDescriptor instead')
|
||||
const UnsealResult$json = {
|
||||
'1': 'UnsealResult',
|
||||
'2': [
|
||||
{'1': 'UNSEAL_RESULT_UNSPECIFIED', '2': 0},
|
||||
{'1': 'UNSEAL_RESULT_SUCCESS', '2': 1},
|
||||
{'1': 'UNSEAL_RESULT_INVALID_KEY', '2': 2},
|
||||
{'1': 'UNSEAL_RESULT_UNBOOTSTRAPPED', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealResult`. Decode as a `google.protobuf.EnumDescriptorProto`.
|
||||
final $typed_data.Uint8List unsealResultDescriptor = $convert.base64Decode(
|
||||
'CgxVbnNlYWxSZXN1bHQSHQoZVU5TRUFMX1JFU1VMVF9VTlNQRUNJRklFRBAAEhkKFVVOU0VBTF'
|
||||
'9SRVNVTFRfU1VDQ0VTUxABEh0KGVVOU0VBTF9SRVNVTFRfSU5WQUxJRF9LRVkQAhIgChxVTlNF'
|
||||
'QUxfUkVTVUxUX1VOQk9PVFNUUkFQUEVEEAM=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartDescriptor instead')
|
||||
const UnsealStart$json = {
|
||||
'1': 'UnsealStart',
|
||||
'2': [
|
||||
{'1': 'client_pubkey', '3': 1, '4': 1, '5': 12, '10': 'clientPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStart`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartDescriptor = $convert.base64Decode(
|
||||
'CgtVbnNlYWxTdGFydBIjCg1jbGllbnRfcHVia2V5GAEgASgMUgxjbGllbnRQdWJrZXk=');
|
||||
|
||||
@$core.Deprecated('Use unsealStartResponseDescriptor instead')
|
||||
const UnsealStartResponse$json = {
|
||||
'1': 'UnsealStartResponse',
|
||||
'2': [
|
||||
{'1': 'server_pubkey', '3': 1, '4': 1, '5': 12, '10': 'serverPubkey'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealStartResponse`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealStartResponseDescriptor = $convert.base64Decode(
|
||||
'ChNVbnNlYWxTdGFydFJlc3BvbnNlEiMKDXNlcnZlcl9wdWJrZXkYASABKAxSDHNlcnZlclB1Ym'
|
||||
'tleQ==');
|
||||
|
||||
@$core.Deprecated('Use unsealEncryptedKeyDescriptor instead')
|
||||
const UnsealEncryptedKey$json = {
|
||||
'1': 'UnsealEncryptedKey',
|
||||
'2': [
|
||||
{'1': 'nonce', '3': 1, '4': 1, '5': 12, '10': 'nonce'},
|
||||
{'1': 'ciphertext', '3': 2, '4': 1, '5': 12, '10': 'ciphertext'},
|
||||
{'1': 'associated_data', '3': 3, '4': 1, '5': 12, '10': 'associatedData'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `UnsealEncryptedKey`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List unsealEncryptedKeyDescriptor = $convert.base64Decode(
|
||||
'ChJVbnNlYWxFbmNyeXB0ZWRLZXkSFAoFbm9uY2UYASABKAxSBW5vbmNlEh4KCmNpcGhlcnRleH'
|
||||
'QYAiABKAxSCmNpcGhlcnRleHQSJwoPYXNzb2NpYXRlZF9kYXRhGAMgASgMUg5hc3NvY2lhdGVk'
|
||||
'RGF0YQ==');
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStart',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'encrypted_key',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealEncryptedKey',
|
||||
'9': 0,
|
||||
'10': 'encryptedKey'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EkQKBXN0YXJ0GAEgASgLMiwuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2'
|
||||
'VhbC5VbnNlYWxTdGFydEgAUgVzdGFydBJaCg1lbmNyeXB0ZWRfa2V5GAIgASgLMjMuYXJiaXRl'
|
||||
'ci51c2VyX2FnZW50LnZhdWx0LnVuc2VhbC5VbnNlYWxFbmNyeXB0ZWRLZXlIAFIMZW5jcnlwdG'
|
||||
'VkS2V5QgkKB3BheWxvYWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'start',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealStartResponse',
|
||||
'9': 0,
|
||||
'10': 'start'
|
||||
},
|
||||
{
|
||||
'1': 'result',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.user_agent.vault.unseal.UnsealResult',
|
||||
'9': 0,
|
||||
'10': 'result'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRJMCgVzdGFydBgBIAEoCzI0LmFyYml0ZXIudXNlcl9hZ2VudC52YXVsdC51bn'
|
||||
'NlYWwuVW5zZWFsU3RhcnRSZXNwb25zZUgAUgVzdGFydBJHCgZyZXN1bHQYAiABKA4yLS5hcmJp'
|
||||
'dGVyLnVzZXJfYWdlbnQudmF1bHQudW5zZWFsLlVuc2VhbFJlc3VsdEgAUgZyZXN1bHRCCQoHcG'
|
||||
'F5bG9hZA==');
|
||||
|
||||
@@ -1,235 +1,235 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
import '../../shared/vault.pbenum.dart' as $3;
|
||||
import 'bootstrap.pb.dart' as $2;
|
||||
import 'unseal.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { queryState, unseal, bootstrap, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.Empty? queryState,
|
||||
$1.Request? unseal,
|
||||
$2.Request? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (queryState != null) result.queryState = queryState;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.queryState,
|
||||
2: Request_Payload.unseal,
|
||||
3: Request_Payload.bootstrap,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'queryState',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Request.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get queryState => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set queryState($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasQueryState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearQueryState() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureQueryState() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
enum Response_Payload { state, unseal, bootstrap, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$3.VaultState? state,
|
||||
$1.Response? unseal,
|
||||
$2.Response? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.state,
|
||||
2: Response_Payload.unseal,
|
||||
3: Response_Payload.bootstrap,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aE<$3.VaultState>(1, _omitFieldNames ? '' : 'state',
|
||||
enumValues: $3.VaultState.values)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Response.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$3.VaultState get state => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($3.VaultState value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
import '../../shared/vault.pbenum.dart' as $3;
|
||||
import 'bootstrap.pb.dart' as $2;
|
||||
import 'unseal.pb.dart' as $1;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
enum Request_Payload { queryState, unseal, bootstrap, notSet }
|
||||
|
||||
class Request extends $pb.GeneratedMessage {
|
||||
factory Request({
|
||||
$0.Empty? queryState,
|
||||
$1.Request? unseal,
|
||||
$2.Request? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (queryState != null) result.queryState = queryState;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Request._();
|
||||
|
||||
factory Request.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Request.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Request_Payload> _Request_PayloadByTag = {
|
||||
1: Request_Payload.queryState,
|
||||
2: Request_Payload.unseal,
|
||||
3: Request_Payload.bootstrap,
|
||||
0: Request_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Request',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'queryState',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$1.Request>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Request.create)
|
||||
..aOM<$2.Request>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Request.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Request copyWith(void Function(Request) updates) =>
|
||||
super.copyWith((message) => updates(message as Request)) as Request;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request create() => Request._();
|
||||
@$core.override
|
||||
Request createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Request getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Request>(create);
|
||||
static Request? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Request_Payload whichPayload() => _Request_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get queryState => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set queryState($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasQueryState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearQueryState() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureQueryState() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Request value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Request ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Request value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Request ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
enum Response_Payload { state, unseal, bootstrap, notSet }
|
||||
|
||||
class Response extends $pb.GeneratedMessage {
|
||||
factory Response({
|
||||
$3.VaultState? state,
|
||||
$1.Response? unseal,
|
||||
$2.Response? bootstrap,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
if (unseal != null) result.unseal = unseal;
|
||||
if (bootstrap != null) result.bootstrap = bootstrap;
|
||||
return result;
|
||||
}
|
||||
|
||||
Response._();
|
||||
|
||||
factory Response.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Response.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, Response_Payload> _Response_PayloadByTag = {
|
||||
1: Response_Payload.state,
|
||||
2: Response_Payload.unseal,
|
||||
3: Response_Payload.bootstrap,
|
||||
0: Response_Payload.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Response',
|
||||
package: const $pb.PackageName(
|
||||
_omitMessageNames ? '' : 'arbiter.user_agent.vault'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3])
|
||||
..aE<$3.VaultState>(1, _omitFieldNames ? '' : 'state',
|
||||
enumValues: $3.VaultState.values)
|
||||
..aOM<$1.Response>(2, _omitFieldNames ? '' : 'unseal',
|
||||
subBuilder: $1.Response.create)
|
||||
..aOM<$2.Response>(3, _omitFieldNames ? '' : 'bootstrap',
|
||||
subBuilder: $2.Response.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Response copyWith(void Function(Response) updates) =>
|
||||
super.copyWith((message) => updates(message as Response)) as Response;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response create() => Response._();
|
||||
@$core.override
|
||||
Response createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Response getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Response>(create);
|
||||
static Response? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
Response_Payload whichPayload() => _Response_PayloadByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
void clearPayload() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$3.VaultState get state => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($3.VaultState value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response get unseal => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unseal($1.Response value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnseal() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnseal() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$1.Response ensureUnseal() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response get bootstrap => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set bootstrap($2.Response value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasBootstrap() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearBootstrap() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$2.Response ensureBootstrap() => $_ensure(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
|
||||
@@ -1,105 +1,105 @@
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'query_state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'queryState'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Request',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Request',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EjkKC3F1ZXJ5X3N0YXRlGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SA'
|
||||
'BSCnF1ZXJ5U3RhdGUSQgoGdW5zZWFsGAIgASgLMiguYXJiaXRlci51c2VyX2FnZW50LnZhdWx0'
|
||||
'LnVuc2VhbC5SZXF1ZXN0SABSBnVuc2VhbBJLCglib290c3RyYXAYAyABKAsyKy5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQudmF1bHQuYm9vdHN0cmFwLlJlcXVlc3RIAFIJYm9vdHN0cmFwQgkKB3BheWxv'
|
||||
'YWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.shared.VaultState',
|
||||
'9': 0,
|
||||
'10': 'state'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Response',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Response',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRIyCgVzdGF0ZRgBIAEoDjIaLmFyYml0ZXIuc2hhcmVkLlZhdWx0U3RhdGVIAF'
|
||||
'IFc3RhdGUSQwoGdW5zZWFsGAIgASgLMikuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2Vh'
|
||||
'bC5SZXNwb25zZUgAUgZ1bnNlYWwSTAoJYm9vdHN0cmFwGAMgASgLMiwuYXJiaXRlci51c2VyX2'
|
||||
'FnZW50LnZhdWx0LmJvb3RzdHJhcC5SZXNwb25zZUgAUglib290c3RyYXBCCQoHcGF5bG9hZA==');
|
||||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from user_agent/vault/vault.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
||||
// ignore_for_file: unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use requestDescriptor instead')
|
||||
const Request$json = {
|
||||
'1': 'Request',
|
||||
'2': [
|
||||
{
|
||||
'1': 'query_state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.google.protobuf.Empty',
|
||||
'9': 0,
|
||||
'10': 'queryState'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Request',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Request',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Request`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List requestDescriptor = $convert.base64Decode(
|
||||
'CgdSZXF1ZXN0EjkKC3F1ZXJ5X3N0YXRlGAEgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SA'
|
||||
'BSCnF1ZXJ5U3RhdGUSQgoGdW5zZWFsGAIgASgLMiguYXJiaXRlci51c2VyX2FnZW50LnZhdWx0'
|
||||
'LnVuc2VhbC5SZXF1ZXN0SABSBnVuc2VhbBJLCglib290c3RyYXAYAyABKAsyKy5hcmJpdGVyLn'
|
||||
'VzZXJfYWdlbnQudmF1bHQuYm9vdHN0cmFwLlJlcXVlc3RIAFIJYm9vdHN0cmFwQgkKB3BheWxv'
|
||||
'YWQ=');
|
||||
|
||||
@$core.Deprecated('Use responseDescriptor instead')
|
||||
const Response$json = {
|
||||
'1': 'Response',
|
||||
'2': [
|
||||
{
|
||||
'1': 'state',
|
||||
'3': 1,
|
||||
'4': 1,
|
||||
'5': 14,
|
||||
'6': '.arbiter.shared.VaultState',
|
||||
'9': 0,
|
||||
'10': 'state'
|
||||
},
|
||||
{
|
||||
'1': 'unseal',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.unseal.Response',
|
||||
'9': 0,
|
||||
'10': 'unseal'
|
||||
},
|
||||
{
|
||||
'1': 'bootstrap',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.arbiter.user_agent.vault.bootstrap.Response',
|
||||
'9': 0,
|
||||
'10': 'bootstrap'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'payload'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Response`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List responseDescriptor = $convert.base64Decode(
|
||||
'CghSZXNwb25zZRIyCgVzdGF0ZRgBIAEoDjIaLmFyYml0ZXIuc2hhcmVkLlZhdWx0U3RhdGVIAF'
|
||||
'IFc3RhdGUSQwoGdW5zZWFsGAIgASgLMikuYXJiaXRlci51c2VyX2FnZW50LnZhdWx0LnVuc2Vh'
|
||||
'bC5SZXNwb25zZUgAUgZ1bnNlYWwSTAoJYm9vdHN0cmFwGAMgASgLMiwuYXJiaXRlci51c2VyX2'
|
||||
'FnZW50LnZhdWx0LmJvb3RzdHJhcC5SZXNwb25zZUgAUglib290c3RyYXBCCQoHcGF5bG9hZA==');
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'bootstrap_token.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class BootstrapToken extends _$BootstrapToken {
|
||||
@override
|
||||
String? build() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void set(String token) {
|
||||
state = token;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
state = null;
|
||||
}
|
||||
|
||||
String? take() {
|
||||
final token = state;
|
||||
state = null;
|
||||
return token;
|
||||
}
|
||||
}
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'bootstrap_token.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class BootstrapToken extends _$BootstrapToken {
|
||||
@override
|
||||
String? build() {
|
||||
return null;
|
||||
}
|
||||
|
||||
void set(String token) {
|
||||
state = token;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
state = null;
|
||||
}
|
||||
|
||||
String? take() {
|
||||
final token = state;
|
||||
state = null;
|
||||
return token;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,62 +1,62 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'bootstrap_token.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BootstrapToken)
|
||||
final bootstrapTokenProvider = BootstrapTokenProvider._();
|
||||
|
||||
final class BootstrapTokenProvider
|
||||
extends $NotifierProvider<BootstrapToken, String?> {
|
||||
BootstrapTokenProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bootstrapTokenProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bootstrapTokenHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BootstrapToken create() => BootstrapToken();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(String? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<String?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bootstrapTokenHash() => r'5c09ea4480fc3a7fd0d0a0bced712912542cca5d';
|
||||
|
||||
abstract class _$BootstrapToken extends $Notifier<String?> {
|
||||
String? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<String?, String?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<String?, String?>,
|
||||
String?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'bootstrap_token.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(BootstrapToken)
|
||||
final bootstrapTokenProvider = BootstrapTokenProvider._();
|
||||
|
||||
final class BootstrapTokenProvider
|
||||
extends $NotifierProvider<BootstrapToken, String?> {
|
||||
BootstrapTokenProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'bootstrapTokenProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$bootstrapTokenHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
BootstrapToken create() => BootstrapToken();
|
||||
|
||||
/// {@macro riverpod.override_with_value}
|
||||
Override overrideWithValue(String? value) {
|
||||
return $ProviderOverride(
|
||||
origin: this,
|
||||
providerOverride: $SyncValueProvider<String?>(value),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
String _$bootstrapTokenHash() => r'5c09ea4480fc3a7fd0d0a0bced712912542cca5d';
|
||||
|
||||
abstract class _$BootstrapToken extends $Notifier<String?> {
|
||||
String? build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<String?, String?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<String?, String?>,
|
||||
String?,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
import 'package:arbiter/features/connection/auth.dart';
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/providers/connection/bootstrap_token.dart';
|
||||
import 'package:arbiter/providers/key.dart';
|
||||
import 'package:arbiter/providers/server_info.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'connection_manager.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class ConnectionManager extends _$ConnectionManager {
|
||||
@override
|
||||
Future<Connection?> build() async {
|
||||
final serverInfo = await ref.watch(serverInfoProvider.future);
|
||||
final key = await ref.watch(keyProvider.future);
|
||||
final token = ref.read(bootstrapTokenProvider);
|
||||
|
||||
if (serverInfo == null || key == null) {
|
||||
return null;
|
||||
}
|
||||
final Connection connection;
|
||||
try {
|
||||
connection = await connectAndAuthorize(
|
||||
serverInfo,
|
||||
key,
|
||||
bootstrapToken: token,
|
||||
);
|
||||
if (token != null) {
|
||||
ref.read(bootstrapTokenProvider.notifier).clear();
|
||||
}
|
||||
} catch (e) {
|
||||
talker.handle(e);
|
||||
rethrow;
|
||||
}
|
||||
|
||||
ref.onDispose(() {
|
||||
final connection = state.asData?.value;
|
||||
if (connection != null) {
|
||||
connection.close();
|
||||
}
|
||||
});
|
||||
|
||||
return connection;
|
||||
}
|
||||
}
|
||||
import 'package:arbiter/features/connection/auth.dart';
|
||||
import 'package:arbiter/features/connection/connection.dart';
|
||||
import 'package:arbiter/providers/connection/bootstrap_token.dart';
|
||||
import 'package:arbiter/providers/key.dart';
|
||||
import 'package:arbiter/providers/server_info.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'connection_manager.g.dart';
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class ConnectionManager extends _$ConnectionManager {
|
||||
@override
|
||||
Future<Connection?> build() async {
|
||||
final serverInfo = await ref.watch(serverInfoProvider.future);
|
||||
final key = await ref.watch(keyProvider.future);
|
||||
final token = ref.read(bootstrapTokenProvider);
|
||||
|
||||
if (serverInfo == null || key == null) {
|
||||
return null;
|
||||
}
|
||||
final Connection connection;
|
||||
try {
|
||||
connection = await connectAndAuthorize(
|
||||
serverInfo,
|
||||
key,
|
||||
bootstrapToken: token,
|
||||
);
|
||||
if (token != null) {
|
||||
ref.read(bootstrapTokenProvider.notifier).clear();
|
||||
}
|
||||
} catch (e) {
|
||||
talker.handle(e);
|
||||
rethrow;
|
||||
}
|
||||
|
||||
ref.onDispose(() {
|
||||
final connection = state.asData?.value;
|
||||
if (connection != null) {
|
||||
connection.close();
|
||||
}
|
||||
});
|
||||
|
||||
return connection;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'connection_manager.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(ConnectionManager)
|
||||
final connectionManagerProvider = ConnectionManagerProvider._();
|
||||
|
||||
final class ConnectionManagerProvider
|
||||
extends $AsyncNotifierProvider<ConnectionManager, Connection?> {
|
||||
ConnectionManagerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'connectionManagerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$connectionManagerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ConnectionManager create() => ConnectionManager();
|
||||
}
|
||||
|
||||
String _$connectionManagerHash() => r'f471afb49bdcde77238424942f5af1716634f084';
|
||||
|
||||
abstract class _$ConnectionManager extends $AsyncNotifier<Connection?> {
|
||||
FutureOr<Connection?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<AsyncValue<Connection?>, Connection?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<Connection?>, Connection?>,
|
||||
AsyncValue<Connection?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'connection_manager.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(ConnectionManager)
|
||||
final connectionManagerProvider = ConnectionManagerProvider._();
|
||||
|
||||
final class ConnectionManagerProvider
|
||||
extends $AsyncNotifierProvider<ConnectionManager, Connection?> {
|
||||
ConnectionManagerProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'connectionManagerProvider',
|
||||
isAutoDispose: false,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$connectionManagerHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
ConnectionManager create() => ConnectionManager();
|
||||
}
|
||||
|
||||
String _$connectionManagerHash() => r'f471afb49bdcde77238424942f5af1716634f084';
|
||||
|
||||
abstract class _$ConnectionManager extends $AsyncNotifier<Connection?> {
|
||||
FutureOr<Connection?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<AsyncValue<Connection?>, Connection?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<Connection?>, Connection?>,
|
||||
AsyncValue<Connection?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,46 +1,46 @@
|
||||
import 'package:arbiter/features/connection/evm.dart' as evm;
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:hooks_riverpod/experimental/mutation.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'evm.g.dart';
|
||||
|
||||
@riverpod
|
||||
class Evm extends _$Evm {
|
||||
@override
|
||||
Future<List<WalletEntry>?> build() async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return evm.listEvmWallets(connection);
|
||||
}
|
||||
|
||||
Future<void> refreshWallets() async {
|
||||
final connection = await ref.read(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
state = const AsyncData(null);
|
||||
return;
|
||||
}
|
||||
|
||||
state = const AsyncLoading();
|
||||
state = await AsyncValue.guard(() => evm.listEvmWallets(connection));
|
||||
}
|
||||
}
|
||||
|
||||
final createEvmWallet = Mutation();
|
||||
|
||||
Future<void> executeCreateEvmWallet(MutationTarget target) async {
|
||||
return await createEvmWallet.run(target, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
await evm.createEvmWallet(connection);
|
||||
|
||||
await tsx.get(evmProvider.notifier).refreshWallets();
|
||||
});
|
||||
}
|
||||
import 'package:arbiter/features/connection/evm.dart' as evm;
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:hooks_riverpod/experimental/mutation.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'evm.g.dart';
|
||||
|
||||
@riverpod
|
||||
class Evm extends _$Evm {
|
||||
@override
|
||||
Future<List<WalletEntry>?> build() async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return evm.listEvmWallets(connection);
|
||||
}
|
||||
|
||||
Future<void> refreshWallets() async {
|
||||
final connection = await ref.read(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
state = const AsyncData(null);
|
||||
return;
|
||||
}
|
||||
|
||||
state = const AsyncLoading();
|
||||
state = await AsyncValue.guard(() => evm.listEvmWallets(connection));
|
||||
}
|
||||
}
|
||||
|
||||
final createEvmWallet = Mutation();
|
||||
|
||||
Future<void> executeCreateEvmWallet(MutationTarget target) async {
|
||||
return await createEvmWallet.run(target, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
await evm.createEvmWallet(connection);
|
||||
|
||||
await tsx.get(evmProvider.notifier).refreshWallets();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,55 +1,55 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'evm.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(Evm)
|
||||
final evmProvider = EvmProvider._();
|
||||
|
||||
final class EvmProvider
|
||||
extends $AsyncNotifierProvider<Evm, List<WalletEntry>?> {
|
||||
EvmProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'evmProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$evmHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
Evm create() => Evm();
|
||||
}
|
||||
|
||||
String _$evmHash() => r'ca2c9736065c5dc7cc45d8485000dd85dfbfa572';
|
||||
|
||||
abstract class _$Evm extends $AsyncNotifier<List<WalletEntry>?> {
|
||||
FutureOr<List<WalletEntry>?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref =
|
||||
this.ref as $Ref<AsyncValue<List<WalletEntry>?>, List<WalletEntry>?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<List<WalletEntry>?>, List<WalletEntry>?>,
|
||||
AsyncValue<List<WalletEntry>?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'evm.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(Evm)
|
||||
final evmProvider = EvmProvider._();
|
||||
|
||||
final class EvmProvider
|
||||
extends $AsyncNotifierProvider<Evm, List<WalletEntry>?> {
|
||||
EvmProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'evmProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$evmHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
Evm create() => Evm();
|
||||
}
|
||||
|
||||
String _$evmHash() => r'ca2c9736065c5dc7cc45d8485000dd85dfbfa572';
|
||||
|
||||
abstract class _$Evm extends $AsyncNotifier<List<WalletEntry>?> {
|
||||
FutureOr<List<WalletEntry>?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref =
|
||||
this.ref as $Ref<AsyncValue<List<WalletEntry>?>, List<WalletEntry>?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<List<WalletEntry>?>, List<WalletEntry>?>,
|
||||
AsyncValue<List<WalletEntry>?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,105 +1,105 @@
|
||||
import 'package:arbiter/features/connection/evm/grants.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:hooks_riverpod/experimental/mutation.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'evm_grants.freezed.dart';
|
||||
part 'evm_grants.g.dart';
|
||||
|
||||
final createEvmGrantMutation = Mutation<int>();
|
||||
final revokeEvmGrantMutation = Mutation<void>();
|
||||
|
||||
@freezed
|
||||
abstract class EvmGrantsState with _$EvmGrantsState {
|
||||
const EvmGrantsState._();
|
||||
|
||||
const factory EvmGrantsState({
|
||||
required List<GrantEntry> grants,
|
||||
@Default(false) bool showRevoked,
|
||||
}) = _EvmGrantsState;
|
||||
|
||||
bool get revokedFilterBackedByServer => false;
|
||||
}
|
||||
|
||||
@riverpod
|
||||
class EvmGrants extends _$EvmGrants {
|
||||
@override
|
||||
Future<EvmGrantsState?> build() async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
final grants = await listEvmGrants(connection);
|
||||
return EvmGrantsState(grants: grants);
|
||||
} catch (e, st) {
|
||||
talker.handle(e, st);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
void toggleShowRevoked(bool value) {
|
||||
final current = state.asData?.value;
|
||||
if (current == null) {
|
||||
return;
|
||||
}
|
||||
state = AsyncData(current.copyWith(showRevoked: value));
|
||||
}
|
||||
|
||||
Future<void> refresh() async {
|
||||
final connection = await ref.read(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
state = const AsyncData(null);
|
||||
return;
|
||||
}
|
||||
|
||||
final previous = state.asData?.value;
|
||||
state = const AsyncLoading();
|
||||
|
||||
state = await AsyncValue.guard(() async {
|
||||
final grants = await listEvmGrants(connection);
|
||||
return EvmGrantsState(
|
||||
grants: grants,
|
||||
showRevoked: previous?.showRevoked ?? false,
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Future<int> executeCreateEvmGrant(
|
||||
MutationTarget ref, {
|
||||
required SharedSettings sharedSettings,
|
||||
required SpecificGrant specific,
|
||||
}) {
|
||||
return createEvmGrantMutation.run(ref, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
final grantId = await createEvmGrant(
|
||||
connection,
|
||||
sharedSettings: sharedSettings,
|
||||
specific: specific,
|
||||
);
|
||||
|
||||
await tsx.get(evmGrantsProvider.notifier).refresh();
|
||||
return grantId;
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> executeRevokeEvmGrant(MutationTarget ref, {required int grantId}) {
|
||||
return revokeEvmGrantMutation.run(ref, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
await deleteEvmGrant(connection, grantId);
|
||||
await tsx.get(evmGrantsProvider.notifier).refresh();
|
||||
});
|
||||
}
|
||||
import 'package:arbiter/features/connection/evm/grants.dart';
|
||||
import 'package:arbiter/proto/evm.pb.dart';
|
||||
import 'package:arbiter/providers/connection/connection_manager.dart';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
import 'package:hooks_riverpod/experimental/mutation.dart';
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
|
||||
part 'evm_grants.freezed.dart';
|
||||
part 'evm_grants.g.dart';
|
||||
|
||||
final createEvmGrantMutation = Mutation<int>();
|
||||
final revokeEvmGrantMutation = Mutation<void>();
|
||||
|
||||
@freezed
|
||||
abstract class EvmGrantsState with _$EvmGrantsState {
|
||||
const EvmGrantsState._();
|
||||
|
||||
const factory EvmGrantsState({
|
||||
required List<GrantEntry> grants,
|
||||
@Default(false) bool showRevoked,
|
||||
}) = _EvmGrantsState;
|
||||
|
||||
bool get revokedFilterBackedByServer => false;
|
||||
}
|
||||
|
||||
@riverpod
|
||||
class EvmGrants extends _$EvmGrants {
|
||||
@override
|
||||
Future<EvmGrantsState?> build() async {
|
||||
final connection = await ref.watch(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
final grants = await listEvmGrants(connection);
|
||||
return EvmGrantsState(grants: grants);
|
||||
} catch (e, st) {
|
||||
talker.handle(e, st);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
void toggleShowRevoked(bool value) {
|
||||
final current = state.asData?.value;
|
||||
if (current == null) {
|
||||
return;
|
||||
}
|
||||
state = AsyncData(current.copyWith(showRevoked: value));
|
||||
}
|
||||
|
||||
Future<void> refresh() async {
|
||||
final connection = await ref.read(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
state = const AsyncData(null);
|
||||
return;
|
||||
}
|
||||
|
||||
final previous = state.asData?.value;
|
||||
state = const AsyncLoading();
|
||||
|
||||
state = await AsyncValue.guard(() async {
|
||||
final grants = await listEvmGrants(connection);
|
||||
return EvmGrantsState(
|
||||
grants: grants,
|
||||
showRevoked: previous?.showRevoked ?? false,
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Future<int> executeCreateEvmGrant(
|
||||
MutationTarget ref, {
|
||||
required SharedSettings sharedSettings,
|
||||
required SpecificGrant specific,
|
||||
}) {
|
||||
return createEvmGrantMutation.run(ref, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
final grantId = await createEvmGrant(
|
||||
connection,
|
||||
sharedSettings: sharedSettings,
|
||||
specific: specific,
|
||||
);
|
||||
|
||||
await tsx.get(evmGrantsProvider.notifier).refresh();
|
||||
return grantId;
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> executeRevokeEvmGrant(MutationTarget ref, {required int grantId}) {
|
||||
return revokeEvmGrantMutation.run(ref, (tsx) async {
|
||||
final connection = await tsx.get(connectionManagerProvider.future);
|
||||
if (connection == null) {
|
||||
throw Exception('Not connected to the server.');
|
||||
}
|
||||
|
||||
await deleteEvmGrant(connection, grantId);
|
||||
await tsx.get(evmGrantsProvider.notifier).refresh();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,280 +1,280 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'evm_grants.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$EvmGrantsState {
|
||||
|
||||
List<GrantEntry> get grants; bool get showRevoked;
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$EvmGrantsStateCopyWith<EvmGrantsState> get copyWith => _$EvmGrantsStateCopyWithImpl<EvmGrantsState>(this as EvmGrantsState, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is EvmGrantsState&&const DeepCollectionEquality().equals(other.grants, grants)&&(identical(other.showRevoked, showRevoked) || other.showRevoked == showRevoked));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(grants),showRevoked);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'EvmGrantsState(grants: $grants, showRevoked: $showRevoked)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $EvmGrantsStateCopyWith<$Res> {
|
||||
factory $EvmGrantsStateCopyWith(EvmGrantsState value, $Res Function(EvmGrantsState) _then) = _$EvmGrantsStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
List<GrantEntry> grants, bool showRevoked
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$EvmGrantsStateCopyWithImpl<$Res>
|
||||
implements $EvmGrantsStateCopyWith<$Res> {
|
||||
_$EvmGrantsStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final EvmGrantsState _self;
|
||||
final $Res Function(EvmGrantsState) _then;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? grants = null,Object? showRevoked = null,}) {
|
||||
return _then(_self.copyWith(
|
||||
grants: null == grants ? _self.grants : grants // ignore: cast_nullable_to_non_nullable
|
||||
as List<GrantEntry>,showRevoked: null == showRevoked ? _self.showRevoked : showRevoked // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [EvmGrantsState].
|
||||
extension EvmGrantsStatePatterns on EvmGrantsState {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _EvmGrantsState value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _EvmGrantsState value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _EvmGrantsState value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( List<GrantEntry> grants, bool showRevoked)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( List<GrantEntry> grants, bool showRevoked) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState():
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( List<GrantEntry> grants, bool showRevoked)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _EvmGrantsState extends EvmGrantsState {
|
||||
const _EvmGrantsState({required final List<GrantEntry> grants, this.showRevoked = false}): _grants = grants,super._();
|
||||
|
||||
|
||||
final List<GrantEntry> _grants;
|
||||
@override List<GrantEntry> get grants {
|
||||
if (_grants is EqualUnmodifiableListView) return _grants;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_grants);
|
||||
}
|
||||
|
||||
@override@JsonKey() final bool showRevoked;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$EvmGrantsStateCopyWith<_EvmGrantsState> get copyWith => __$EvmGrantsStateCopyWithImpl<_EvmGrantsState>(this, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _EvmGrantsState&&const DeepCollectionEquality().equals(other._grants, _grants)&&(identical(other.showRevoked, showRevoked) || other.showRevoked == showRevoked));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_grants),showRevoked);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'EvmGrantsState(grants: $grants, showRevoked: $showRevoked)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$EvmGrantsStateCopyWith<$Res> implements $EvmGrantsStateCopyWith<$Res> {
|
||||
factory _$EvmGrantsStateCopyWith(_EvmGrantsState value, $Res Function(_EvmGrantsState) _then) = __$EvmGrantsStateCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
List<GrantEntry> grants, bool showRevoked
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$EvmGrantsStateCopyWithImpl<$Res>
|
||||
implements _$EvmGrantsStateCopyWith<$Res> {
|
||||
__$EvmGrantsStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _EvmGrantsState _self;
|
||||
final $Res Function(_EvmGrantsState) _then;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? grants = null,Object? showRevoked = null,}) {
|
||||
return _then(_EvmGrantsState(
|
||||
grants: null == grants ? _self._grants : grants // ignore: cast_nullable_to_non_nullable
|
||||
as List<GrantEntry>,showRevoked: null == showRevoked ? _self.showRevoked : showRevoked // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// dart format on
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// coverage:ignore-file
|
||||
// ignore_for_file: type=lint
|
||||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark
|
||||
|
||||
part of 'evm_grants.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// FreezedGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// dart format off
|
||||
T _$identity<T>(T value) => value;
|
||||
/// @nodoc
|
||||
mixin _$EvmGrantsState {
|
||||
|
||||
List<GrantEntry> get grants; bool get showRevoked;
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
$EvmGrantsStateCopyWith<EvmGrantsState> get copyWith => _$EvmGrantsStateCopyWithImpl<EvmGrantsState>(this as EvmGrantsState, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is EvmGrantsState&&const DeepCollectionEquality().equals(other.grants, grants)&&(identical(other.showRevoked, showRevoked) || other.showRevoked == showRevoked));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(grants),showRevoked);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'EvmGrantsState(grants: $grants, showRevoked: $showRevoked)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class $EvmGrantsStateCopyWith<$Res> {
|
||||
factory $EvmGrantsStateCopyWith(EvmGrantsState value, $Res Function(EvmGrantsState) _then) = _$EvmGrantsStateCopyWithImpl;
|
||||
@useResult
|
||||
$Res call({
|
||||
List<GrantEntry> grants, bool showRevoked
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class _$EvmGrantsStateCopyWithImpl<$Res>
|
||||
implements $EvmGrantsStateCopyWith<$Res> {
|
||||
_$EvmGrantsStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final EvmGrantsState _self;
|
||||
final $Res Function(EvmGrantsState) _then;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline') @override $Res call({Object? grants = null,Object? showRevoked = null,}) {
|
||||
return _then(_self.copyWith(
|
||||
grants: null == grants ? _self.grants : grants // ignore: cast_nullable_to_non_nullable
|
||||
as List<GrantEntry>,showRevoked: null == showRevoked ? _self.showRevoked : showRevoked // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// Adds pattern-matching-related methods to [EvmGrantsState].
|
||||
extension EvmGrantsStatePatterns on EvmGrantsState {
|
||||
/// A variant of `map` that fallback to returning `orElse`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeMap<TResult extends Object?>(TResult Function( _EvmGrantsState value)? $default,{required TResult orElse(),}){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// Callbacks receives the raw object, upcasted.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case final Subclass2 value:
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult map<TResult extends Object?>(TResult Function( _EvmGrantsState value) $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState():
|
||||
return $default(_that);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `map` that fallback to returning `null`.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case final Subclass value:
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? mapOrNull<TResult extends Object?>(TResult? Function( _EvmGrantsState value)? $default,){
|
||||
final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to an `orElse` callback.
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return orElse();
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult maybeWhen<TResult extends Object?>(TResult Function( List<GrantEntry> grants, bool showRevoked)? $default,{required TResult orElse(),}) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
return orElse();
|
||||
|
||||
}
|
||||
}
|
||||
/// A `switch`-like method, using callbacks.
|
||||
///
|
||||
/// As opposed to `map`, this offers destructuring.
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case Subclass2(:final field2):
|
||||
/// return ...;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult when<TResult extends Object?>(TResult Function( List<GrantEntry> grants, bool showRevoked) $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState():
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
throw StateError('Unexpected subclass');
|
||||
|
||||
}
|
||||
}
|
||||
/// A variant of `when` that fallback to returning `null`
|
||||
///
|
||||
/// It is equivalent to doing:
|
||||
/// ```dart
|
||||
/// switch (sealedClass) {
|
||||
/// case Subclass(:final field):
|
||||
/// return ...;
|
||||
/// case _:
|
||||
/// return null;
|
||||
/// }
|
||||
/// ```
|
||||
|
||||
@optionalTypeArgs TResult? whenOrNull<TResult extends Object?>(TResult? Function( List<GrantEntry> grants, bool showRevoked)? $default,) {final _that = this;
|
||||
switch (_that) {
|
||||
case _EvmGrantsState() when $default != null:
|
||||
return $default(_that.grants,_that.showRevoked);case _:
|
||||
return null;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
|
||||
|
||||
class _EvmGrantsState extends EvmGrantsState {
|
||||
const _EvmGrantsState({required final List<GrantEntry> grants, this.showRevoked = false}): _grants = grants,super._();
|
||||
|
||||
|
||||
final List<GrantEntry> _grants;
|
||||
@override List<GrantEntry> get grants {
|
||||
if (_grants is EqualUnmodifiableListView) return _grants;
|
||||
// ignore: implicit_dynamic_type
|
||||
return EqualUnmodifiableListView(_grants);
|
||||
}
|
||||
|
||||
@override@JsonKey() final bool showRevoked;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@pragma('vm:prefer-inline')
|
||||
_$EvmGrantsStateCopyWith<_EvmGrantsState> get copyWith => __$EvmGrantsStateCopyWithImpl<_EvmGrantsState>(this, _$identity);
|
||||
|
||||
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
return identical(this, other) || (other.runtimeType == runtimeType&&other is _EvmGrantsState&&const DeepCollectionEquality().equals(other._grants, _grants)&&(identical(other.showRevoked, showRevoked) || other.showRevoked == showRevoked));
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,const DeepCollectionEquality().hash(_grants),showRevoked);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'EvmGrantsState(grants: $grants, showRevoked: $showRevoked)';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// @nodoc
|
||||
abstract mixin class _$EvmGrantsStateCopyWith<$Res> implements $EvmGrantsStateCopyWith<$Res> {
|
||||
factory _$EvmGrantsStateCopyWith(_EvmGrantsState value, $Res Function(_EvmGrantsState) _then) = __$EvmGrantsStateCopyWithImpl;
|
||||
@override @useResult
|
||||
$Res call({
|
||||
List<GrantEntry> grants, bool showRevoked
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// @nodoc
|
||||
class __$EvmGrantsStateCopyWithImpl<$Res>
|
||||
implements _$EvmGrantsStateCopyWith<$Res> {
|
||||
__$EvmGrantsStateCopyWithImpl(this._self, this._then);
|
||||
|
||||
final _EvmGrantsState _self;
|
||||
final $Res Function(_EvmGrantsState) _then;
|
||||
|
||||
/// Create a copy of EvmGrantsState
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override @pragma('vm:prefer-inline') $Res call({Object? grants = null,Object? showRevoked = null,}) {
|
||||
return _then(_EvmGrantsState(
|
||||
grants: null == grants ? _self._grants : grants // ignore: cast_nullable_to_non_nullable
|
||||
as List<GrantEntry>,showRevoked: null == showRevoked ? _self.showRevoked : showRevoked // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// dart format on
|
||||
|
||||
@@ -1,54 +1,54 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'evm_grants.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(EvmGrants)
|
||||
final evmGrantsProvider = EvmGrantsProvider._();
|
||||
|
||||
final class EvmGrantsProvider
|
||||
extends $AsyncNotifierProvider<EvmGrants, EvmGrantsState?> {
|
||||
EvmGrantsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'evmGrantsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$evmGrantsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EvmGrants create() => EvmGrants();
|
||||
}
|
||||
|
||||
String _$evmGrantsHash() => r'd71ec12bbc1b412f11fdbaae27382b289f8a3538';
|
||||
|
||||
abstract class _$EvmGrants extends $AsyncNotifier<EvmGrantsState?> {
|
||||
FutureOr<EvmGrantsState?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<AsyncValue<EvmGrantsState?>, EvmGrantsState?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<EvmGrantsState?>, EvmGrantsState?>,
|
||||
AsyncValue<EvmGrantsState?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'evm_grants.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
|
||||
@ProviderFor(EvmGrants)
|
||||
final evmGrantsProvider = EvmGrantsProvider._();
|
||||
|
||||
final class EvmGrantsProvider
|
||||
extends $AsyncNotifierProvider<EvmGrants, EvmGrantsState?> {
|
||||
EvmGrantsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'evmGrantsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$evmGrantsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
EvmGrants create() => EvmGrants();
|
||||
}
|
||||
|
||||
String _$evmGrantsHash() => r'd71ec12bbc1b412f11fdbaae27382b289f8a3538';
|
||||
|
||||
abstract class _$EvmGrants extends $AsyncNotifier<EvmGrantsState?> {
|
||||
FutureOr<EvmGrantsState?> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final ref = this.ref as $Ref<AsyncValue<EvmGrantsState?>, EvmGrantsState?>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<EvmGrantsState?>, EvmGrantsState?>,
|
||||
AsyncValue<EvmGrantsState?>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleCreate(ref, build);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,59 +1,59 @@
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
import 'package:arbiter/features/identity/hazmat_mldsa.dart';
|
||||
|
||||
part 'key.g.dart';
|
||||
|
||||
@riverpod
|
||||
KeyManager keyManager(Ref ref) {
|
||||
return HazmatMLDSAManager();
|
||||
}
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class Key extends _$Key {
|
||||
@override
|
||||
Future<KeyHandle?> build() async {
|
||||
final manager = ref.watch(keyManagerProvider);
|
||||
final keyHandle = await manager.get();
|
||||
return keyHandle;
|
||||
}
|
||||
|
||||
Future<void> create() async {
|
||||
final manager = ref.watch(keyManagerProvider);
|
||||
if (state.value != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
state = await AsyncValue.guard(() async {
|
||||
final newKeyHandle = await manager.create();
|
||||
return newKeyHandle;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class KeyBootstrapper implements StageFactory {
|
||||
final ProviderContainer ref;
|
||||
|
||||
KeyBootstrapper({required this.ref});
|
||||
|
||||
@override
|
||||
String get title => "Setting up your identity";
|
||||
|
||||
@override
|
||||
Future<bool> get isAlreadyCompleted async {
|
||||
final key = await ref.read(keyProvider.future);
|
||||
return key != null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
controller.setIndefiniteProgress();
|
||||
final key = ref.read(keyProvider.notifier);
|
||||
|
||||
await key.create();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {}
|
||||
}
|
||||
import 'package:mtcore/markettakers.dart';
|
||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||
import 'package:arbiter/features/identity/pk_manager.dart';
|
||||
import 'package:arbiter/features/identity/hazmat_mldsa.dart';
|
||||
|
||||
part 'key.g.dart';
|
||||
|
||||
@riverpod
|
||||
KeyManager keyManager(Ref ref) {
|
||||
return HazmatMLDSAManager();
|
||||
}
|
||||
|
||||
@Riverpod(keepAlive: true)
|
||||
class Key extends _$Key {
|
||||
@override
|
||||
Future<KeyHandle?> build() async {
|
||||
final manager = ref.watch(keyManagerProvider);
|
||||
final keyHandle = await manager.get();
|
||||
return keyHandle;
|
||||
}
|
||||
|
||||
Future<void> create() async {
|
||||
final manager = ref.watch(keyManagerProvider);
|
||||
if (state.value != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
state = await AsyncValue.guard(() async {
|
||||
final newKeyHandle = await manager.create();
|
||||
return newKeyHandle;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class KeyBootstrapper implements StageFactory {
|
||||
final ProviderContainer ref;
|
||||
|
||||
KeyBootstrapper({required this.ref});
|
||||
|
||||
@override
|
||||
String get title => "Setting up your identity";
|
||||
|
||||
@override
|
||||
Future<bool> get isAlreadyCompleted async {
|
||||
final key = await ref.read(keyProvider.future);
|
||||
return key != null;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> start(StageController controller) async {
|
||||
controller.setIndefiniteProgress();
|
||||
final key = ref.read(keyProvider.notifier);
|
||||
|
||||
await key.create();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user