fix(useragent): upgraded to new protocol changes
This commit is contained in:
99
useragent/lib/proto/shared/client.pb.dart
Normal file
99
useragent/lib/proto/shared/client.pb.dart
Normal file
@@ -0,0 +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');
|
||||
11
useragent/lib/proto/shared/client.pbenum.dart
Normal file
11
useragent/lib/proto/shared/client.pbenum.dart
Normal file
@@ -0,0 +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
|
||||
52
useragent/lib/proto/shared/client.pbjson.dart
Normal file
52
useragent/lib/proto/shared/client.pbjson.dart
Normal file
@@ -0,0 +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==');
|
||||
851
useragent/lib/proto/shared/evm.pb.dart
Normal file
851
useragent/lib/proto/shared/evm.pb.dart
Normal file
@@ -0,0 +1,851 @@
|
||||
// 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
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:fixnum/fixnum.dart' as $fixnum;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
import 'package:protobuf/well_known_types/google/protobuf/empty.pb.dart' as $0;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class EtherTransferMeaning extends $pb.GeneratedMessage {
|
||||
factory EtherTransferMeaning({
|
||||
$core.List<$core.int>? to,
|
||||
$core.List<$core.int>? value,
|
||||
}) {
|
||||
final result = create();
|
||||
if (to != null) result.to = to;
|
||||
if (value != null) result.value = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
EtherTransferMeaning._();
|
||||
|
||||
factory EtherTransferMeaning.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory EtherTransferMeaning.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'EtherTransferMeaning',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'to', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
EtherTransferMeaning clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
EtherTransferMeaning copyWith(void Function(EtherTransferMeaning) updates) =>
|
||||
super.copyWith((message) => updates(message as EtherTransferMeaning))
|
||||
as EtherTransferMeaning;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static EtherTransferMeaning create() => EtherTransferMeaning._();
|
||||
@$core.override
|
||||
EtherTransferMeaning createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static EtherTransferMeaning getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<EtherTransferMeaning>(create);
|
||||
static EtherTransferMeaning? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get to => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set to($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasTo() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearTo() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get value => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set value($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasValue() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearValue() => $_clearField(2);
|
||||
}
|
||||
|
||||
class TokenInfo extends $pb.GeneratedMessage {
|
||||
factory TokenInfo({
|
||||
$core.String? symbol,
|
||||
$core.List<$core.int>? address,
|
||||
$fixnum.Int64? chainId,
|
||||
}) {
|
||||
final result = create();
|
||||
if (symbol != null) result.symbol = symbol;
|
||||
if (address != null) result.address = address;
|
||||
if (chainId != null) result.chainId = chainId;
|
||||
return result;
|
||||
}
|
||||
|
||||
TokenInfo._();
|
||||
|
||||
factory TokenInfo.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory TokenInfo.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'TokenInfo',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'symbol')
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'address', $pb.PbFieldType.OY)
|
||||
..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'chainId', $pb.PbFieldType.OU6,
|
||||
defaultOrMaker: $fixnum.Int64.ZERO)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TokenInfo clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TokenInfo copyWith(void Function(TokenInfo) updates) =>
|
||||
super.copyWith((message) => updates(message as TokenInfo)) as TokenInfo;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TokenInfo create() => TokenInfo._();
|
||||
@$core.override
|
||||
TokenInfo createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TokenInfo getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TokenInfo>(create);
|
||||
static TokenInfo? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get symbol => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set symbol($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasSymbol() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearSymbol() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get address => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set address($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasAddress() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearAddress() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$fixnum.Int64 get chainId => $_getI64(2);
|
||||
@$pb.TagNumber(3)
|
||||
set chainId($fixnum.Int64 value) => $_setInt64(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasChainId() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearChainId() => $_clearField(3);
|
||||
}
|
||||
|
||||
/// Mirror of token_transfers::Meaning
|
||||
class TokenTransferMeaning extends $pb.GeneratedMessage {
|
||||
factory TokenTransferMeaning({
|
||||
TokenInfo? token,
|
||||
$core.List<$core.int>? to,
|
||||
$core.List<$core.int>? value,
|
||||
}) {
|
||||
final result = create();
|
||||
if (token != null) result.token = token;
|
||||
if (to != null) result.to = to;
|
||||
if (value != null) result.value = value;
|
||||
return result;
|
||||
}
|
||||
|
||||
TokenTransferMeaning._();
|
||||
|
||||
factory TokenTransferMeaning.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory TokenTransferMeaning.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'TokenTransferMeaning',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<TokenInfo>(1, _omitFieldNames ? '' : 'token',
|
||||
subBuilder: TokenInfo.create)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'to', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
3, _omitFieldNames ? '' : 'value', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TokenTransferMeaning clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TokenTransferMeaning copyWith(void Function(TokenTransferMeaning) updates) =>
|
||||
super.copyWith((message) => updates(message as TokenTransferMeaning))
|
||||
as TokenTransferMeaning;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TokenTransferMeaning create() => TokenTransferMeaning._();
|
||||
@$core.override
|
||||
TokenTransferMeaning createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TokenTransferMeaning getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<TokenTransferMeaning>(create);
|
||||
static TokenTransferMeaning? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
TokenInfo get token => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set token(TokenInfo value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasToken() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearToken() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
TokenInfo ensureToken() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get to => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set to($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasTo() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearTo() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.List<$core.int> get value => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set value($core.List<$core.int> value) => $_setBytes(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasValue() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearValue() => $_clearField(3);
|
||||
}
|
||||
|
||||
enum SpecificMeaning_Meaning { etherTransfer, tokenTransfer, notSet }
|
||||
|
||||
/// Mirror of policies::SpecificMeaning
|
||||
class SpecificMeaning extends $pb.GeneratedMessage {
|
||||
factory SpecificMeaning({
|
||||
EtherTransferMeaning? etherTransfer,
|
||||
TokenTransferMeaning? tokenTransfer,
|
||||
}) {
|
||||
final result = create();
|
||||
if (etherTransfer != null) result.etherTransfer = etherTransfer;
|
||||
if (tokenTransfer != null) result.tokenTransfer = tokenTransfer;
|
||||
return result;
|
||||
}
|
||||
|
||||
SpecificMeaning._();
|
||||
|
||||
factory SpecificMeaning.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory SpecificMeaning.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, SpecificMeaning_Meaning>
|
||||
_SpecificMeaning_MeaningByTag = {
|
||||
1: SpecificMeaning_Meaning.etherTransfer,
|
||||
2: SpecificMeaning_Meaning.tokenTransfer,
|
||||
0: SpecificMeaning_Meaning.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'SpecificMeaning',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2])
|
||||
..aOM<EtherTransferMeaning>(1, _omitFieldNames ? '' : 'etherTransfer',
|
||||
subBuilder: EtherTransferMeaning.create)
|
||||
..aOM<TokenTransferMeaning>(2, _omitFieldNames ? '' : 'tokenTransfer',
|
||||
subBuilder: TokenTransferMeaning.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SpecificMeaning clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
SpecificMeaning copyWith(void Function(SpecificMeaning) updates) =>
|
||||
super.copyWith((message) => updates(message as SpecificMeaning))
|
||||
as SpecificMeaning;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SpecificMeaning create() => SpecificMeaning._();
|
||||
@$core.override
|
||||
SpecificMeaning createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static SpecificMeaning getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<SpecificMeaning>(create);
|
||||
static SpecificMeaning? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
SpecificMeaning_Meaning whichMeaning() =>
|
||||
_SpecificMeaning_MeaningByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
void clearMeaning() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
EtherTransferMeaning get etherTransfer => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set etherTransfer(EtherTransferMeaning value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasEtherTransfer() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearEtherTransfer() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
EtherTransferMeaning ensureEtherTransfer() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
TokenTransferMeaning get tokenTransfer => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set tokenTransfer(TokenTransferMeaning value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasTokenTransfer() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearTokenTransfer() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
TokenTransferMeaning ensureTokenTransfer() => $_ensure(1);
|
||||
}
|
||||
|
||||
class GasLimitExceededViolation extends $pb.GeneratedMessage {
|
||||
factory GasLimitExceededViolation({
|
||||
$core.List<$core.int>? maxGasFeePerGas,
|
||||
$core.List<$core.int>? maxPriorityFeePerGas,
|
||||
}) {
|
||||
final result = create();
|
||||
if (maxGasFeePerGas != null) result.maxGasFeePerGas = maxGasFeePerGas;
|
||||
if (maxPriorityFeePerGas != null)
|
||||
result.maxPriorityFeePerGas = maxPriorityFeePerGas;
|
||||
return result;
|
||||
}
|
||||
|
||||
GasLimitExceededViolation._();
|
||||
|
||||
factory GasLimitExceededViolation.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory GasLimitExceededViolation.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'GasLimitExceededViolation',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'maxGasFeePerGas', $pb.PbFieldType.OY)
|
||||
..a<$core.List<$core.int>>(
|
||||
2, _omitFieldNames ? '' : 'maxPriorityFeePerGas', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
GasLimitExceededViolation clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
GasLimitExceededViolation copyWith(
|
||||
void Function(GasLimitExceededViolation) updates) =>
|
||||
super.copyWith((message) => updates(message as GasLimitExceededViolation))
|
||||
as GasLimitExceededViolation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static GasLimitExceededViolation create() => GasLimitExceededViolation._();
|
||||
@$core.override
|
||||
GasLimitExceededViolation createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static GasLimitExceededViolation getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<GasLimitExceededViolation>(create);
|
||||
static GasLimitExceededViolation? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get maxGasFeePerGas => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set maxGasFeePerGas($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasMaxGasFeePerGas() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearMaxGasFeePerGas() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.List<$core.int> get maxPriorityFeePerGas => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set maxPriorityFeePerGas($core.List<$core.int> value) => $_setBytes(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasMaxPriorityFeePerGas() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearMaxPriorityFeePerGas() => $_clearField(2);
|
||||
}
|
||||
|
||||
enum EvalViolation_Kind {
|
||||
invalidTarget,
|
||||
gasLimitExceeded,
|
||||
rateLimitExceeded,
|
||||
volumetricLimitExceeded,
|
||||
invalidTime,
|
||||
invalidTransactionType,
|
||||
notSet
|
||||
}
|
||||
|
||||
class EvalViolation extends $pb.GeneratedMessage {
|
||||
factory EvalViolation({
|
||||
$core.List<$core.int>? invalidTarget,
|
||||
GasLimitExceededViolation? gasLimitExceeded,
|
||||
$0.Empty? rateLimitExceeded,
|
||||
$0.Empty? volumetricLimitExceeded,
|
||||
$0.Empty? invalidTime,
|
||||
$0.Empty? invalidTransactionType,
|
||||
}) {
|
||||
final result = create();
|
||||
if (invalidTarget != null) result.invalidTarget = invalidTarget;
|
||||
if (gasLimitExceeded != null) result.gasLimitExceeded = gasLimitExceeded;
|
||||
if (rateLimitExceeded != null) result.rateLimitExceeded = rateLimitExceeded;
|
||||
if (volumetricLimitExceeded != null)
|
||||
result.volumetricLimitExceeded = volumetricLimitExceeded;
|
||||
if (invalidTime != null) result.invalidTime = invalidTime;
|
||||
if (invalidTransactionType != null)
|
||||
result.invalidTransactionType = invalidTransactionType;
|
||||
return result;
|
||||
}
|
||||
|
||||
EvalViolation._();
|
||||
|
||||
factory EvalViolation.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory EvalViolation.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, EvalViolation_Kind>
|
||||
_EvalViolation_KindByTag = {
|
||||
1: EvalViolation_Kind.invalidTarget,
|
||||
2: EvalViolation_Kind.gasLimitExceeded,
|
||||
3: EvalViolation_Kind.rateLimitExceeded,
|
||||
4: EvalViolation_Kind.volumetricLimitExceeded,
|
||||
5: EvalViolation_Kind.invalidTime,
|
||||
6: EvalViolation_Kind.invalidTransactionType,
|
||||
0: EvalViolation_Kind.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'EvalViolation',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4, 5, 6])
|
||||
..a<$core.List<$core.int>>(
|
||||
1, _omitFieldNames ? '' : 'invalidTarget', $pb.PbFieldType.OY)
|
||||
..aOM<GasLimitExceededViolation>(
|
||||
2, _omitFieldNames ? '' : 'gasLimitExceeded',
|
||||
subBuilder: GasLimitExceededViolation.create)
|
||||
..aOM<$0.Empty>(3, _omitFieldNames ? '' : 'rateLimitExceeded',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$0.Empty>(4, _omitFieldNames ? '' : 'volumetricLimitExceeded',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$0.Empty>(5, _omitFieldNames ? '' : 'invalidTime',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$0.Empty>(6, _omitFieldNames ? '' : 'invalidTransactionType',
|
||||
subBuilder: $0.Empty.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
EvalViolation clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
EvalViolation copyWith(void Function(EvalViolation) updates) =>
|
||||
super.copyWith((message) => updates(message as EvalViolation))
|
||||
as EvalViolation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static EvalViolation create() => EvalViolation._();
|
||||
@$core.override
|
||||
EvalViolation createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static EvalViolation getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<EvalViolation>(create);
|
||||
static EvalViolation? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
EvalViolation_Kind whichKind() => _EvalViolation_KindByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
@$pb.TagNumber(5)
|
||||
@$pb.TagNumber(6)
|
||||
void clearKind() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.List<$core.int> get invalidTarget => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set invalidTarget($core.List<$core.int> value) => $_setBytes(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasInvalidTarget() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearInvalidTarget() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
GasLimitExceededViolation get gasLimitExceeded => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set gasLimitExceeded(GasLimitExceededViolation value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasGasLimitExceeded() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearGasLimitExceeded() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
GasLimitExceededViolation ensureGasLimitExceeded() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$0.Empty get rateLimitExceeded => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set rateLimitExceeded($0.Empty value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasRateLimitExceeded() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearRateLimitExceeded() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
$0.Empty ensureRateLimitExceeded() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$0.Empty get volumetricLimitExceeded => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set volumetricLimitExceeded($0.Empty value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasVolumetricLimitExceeded() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearVolumetricLimitExceeded() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
$0.Empty ensureVolumetricLimitExceeded() => $_ensure(3);
|
||||
|
||||
@$pb.TagNumber(5)
|
||||
$0.Empty get invalidTime => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set invalidTime($0.Empty value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasInvalidTime() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearInvalidTime() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
$0.Empty ensureInvalidTime() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
$0.Empty get invalidTransactionType => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set invalidTransactionType($0.Empty value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasInvalidTransactionType() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearInvalidTransactionType() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
$0.Empty ensureInvalidTransactionType() => $_ensure(5);
|
||||
}
|
||||
|
||||
/// Transaction was classified but no grant covers it
|
||||
class NoMatchingGrantError extends $pb.GeneratedMessage {
|
||||
factory NoMatchingGrantError({
|
||||
SpecificMeaning? meaning,
|
||||
}) {
|
||||
final result = create();
|
||||
if (meaning != null) result.meaning = meaning;
|
||||
return result;
|
||||
}
|
||||
|
||||
NoMatchingGrantError._();
|
||||
|
||||
factory NoMatchingGrantError.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory NoMatchingGrantError.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'NoMatchingGrantError',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<SpecificMeaning>(1, _omitFieldNames ? '' : 'meaning',
|
||||
subBuilder: SpecificMeaning.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
NoMatchingGrantError clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
NoMatchingGrantError copyWith(void Function(NoMatchingGrantError) updates) =>
|
||||
super.copyWith((message) => updates(message as NoMatchingGrantError))
|
||||
as NoMatchingGrantError;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static NoMatchingGrantError create() => NoMatchingGrantError._();
|
||||
@$core.override
|
||||
NoMatchingGrantError createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static NoMatchingGrantError getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<NoMatchingGrantError>(create);
|
||||
static NoMatchingGrantError? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
SpecificMeaning get meaning => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set meaning(SpecificMeaning value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasMeaning() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearMeaning() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
SpecificMeaning ensureMeaning() => $_ensure(0);
|
||||
}
|
||||
|
||||
/// Transaction was classified and a grant was found, but constraints were violated
|
||||
class PolicyViolationsError extends $pb.GeneratedMessage {
|
||||
factory PolicyViolationsError({
|
||||
SpecificMeaning? meaning,
|
||||
$core.Iterable<EvalViolation>? violations,
|
||||
}) {
|
||||
final result = create();
|
||||
if (meaning != null) result.meaning = meaning;
|
||||
if (violations != null) result.violations.addAll(violations);
|
||||
return result;
|
||||
}
|
||||
|
||||
PolicyViolationsError._();
|
||||
|
||||
factory PolicyViolationsError.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory PolicyViolationsError.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'PolicyViolationsError',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..aOM<SpecificMeaning>(1, _omitFieldNames ? '' : 'meaning',
|
||||
subBuilder: SpecificMeaning.create)
|
||||
..pPM<EvalViolation>(2, _omitFieldNames ? '' : 'violations',
|
||||
subBuilder: EvalViolation.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PolicyViolationsError clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PolicyViolationsError copyWith(
|
||||
void Function(PolicyViolationsError) updates) =>
|
||||
super.copyWith((message) => updates(message as PolicyViolationsError))
|
||||
as PolicyViolationsError;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PolicyViolationsError create() => PolicyViolationsError._();
|
||||
@$core.override
|
||||
PolicyViolationsError createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PolicyViolationsError getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<PolicyViolationsError>(create);
|
||||
static PolicyViolationsError? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
SpecificMeaning get meaning => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set meaning(SpecificMeaning value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasMeaning() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearMeaning() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
SpecificMeaning ensureMeaning() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$pb.PbList<EvalViolation> get violations => $_getList(1);
|
||||
}
|
||||
|
||||
enum TransactionEvalError_Kind {
|
||||
contractCreationNotSupported,
|
||||
unsupportedTransactionType,
|
||||
noMatchingGrant,
|
||||
policyViolations,
|
||||
notSet
|
||||
}
|
||||
|
||||
/// top-level error returned when transaction evaluation fails
|
||||
class TransactionEvalError extends $pb.GeneratedMessage {
|
||||
factory TransactionEvalError({
|
||||
$0.Empty? contractCreationNotSupported,
|
||||
$0.Empty? unsupportedTransactionType,
|
||||
NoMatchingGrantError? noMatchingGrant,
|
||||
PolicyViolationsError? policyViolations,
|
||||
}) {
|
||||
final result = create();
|
||||
if (contractCreationNotSupported != null)
|
||||
result.contractCreationNotSupported = contractCreationNotSupported;
|
||||
if (unsupportedTransactionType != null)
|
||||
result.unsupportedTransactionType = unsupportedTransactionType;
|
||||
if (noMatchingGrant != null) result.noMatchingGrant = noMatchingGrant;
|
||||
if (policyViolations != null) result.policyViolations = policyViolations;
|
||||
return result;
|
||||
}
|
||||
|
||||
TransactionEvalError._();
|
||||
|
||||
factory TransactionEvalError.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory TransactionEvalError.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static const $core.Map<$core.int, TransactionEvalError_Kind>
|
||||
_TransactionEvalError_KindByTag = {
|
||||
1: TransactionEvalError_Kind.contractCreationNotSupported,
|
||||
2: TransactionEvalError_Kind.unsupportedTransactionType,
|
||||
3: TransactionEvalError_Kind.noMatchingGrant,
|
||||
4: TransactionEvalError_Kind.policyViolations,
|
||||
0: TransactionEvalError_Kind.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'TransactionEvalError',
|
||||
package:
|
||||
const $pb.PackageName(_omitMessageNames ? '' : 'arbiter.shared.evm'),
|
||||
createEmptyInstance: create)
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..aOM<$0.Empty>(1, _omitFieldNames ? '' : 'contractCreationNotSupported',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<$0.Empty>(2, _omitFieldNames ? '' : 'unsupportedTransactionType',
|
||||
subBuilder: $0.Empty.create)
|
||||
..aOM<NoMatchingGrantError>(3, _omitFieldNames ? '' : 'noMatchingGrant',
|
||||
subBuilder: NoMatchingGrantError.create)
|
||||
..aOM<PolicyViolationsError>(4, _omitFieldNames ? '' : 'policyViolations',
|
||||
subBuilder: PolicyViolationsError.create)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TransactionEvalError clone() => deepCopy();
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
TransactionEvalError copyWith(void Function(TransactionEvalError) updates) =>
|
||||
super.copyWith((message) => updates(message as TransactionEvalError))
|
||||
as TransactionEvalError;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TransactionEvalError create() => TransactionEvalError._();
|
||||
@$core.override
|
||||
TransactionEvalError createEmptyInstance() => create();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TransactionEvalError getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<TransactionEvalError>(create);
|
||||
static TransactionEvalError? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
TransactionEvalError_Kind whichKind() =>
|
||||
_TransactionEvalError_KindByTag[$_whichOneof(0)]!;
|
||||
@$pb.TagNumber(1)
|
||||
@$pb.TagNumber(2)
|
||||
@$pb.TagNumber(3)
|
||||
@$pb.TagNumber(4)
|
||||
void clearKind() => $_clearField($_whichOneof(0));
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty get contractCreationNotSupported => $_getN(0);
|
||||
@$pb.TagNumber(1)
|
||||
set contractCreationNotSupported($0.Empty value) => $_setField(1, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasContractCreationNotSupported() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearContractCreationNotSupported() => $_clearField(1);
|
||||
@$pb.TagNumber(1)
|
||||
$0.Empty ensureContractCreationNotSupported() => $_ensure(0);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$0.Empty get unsupportedTransactionType => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set unsupportedTransactionType($0.Empty value) => $_setField(2, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasUnsupportedTransactionType() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearUnsupportedTransactionType() => $_clearField(2);
|
||||
@$pb.TagNumber(2)
|
||||
$0.Empty ensureUnsupportedTransactionType() => $_ensure(1);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
NoMatchingGrantError get noMatchingGrant => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set noMatchingGrant(NoMatchingGrantError value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasNoMatchingGrant() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearNoMatchingGrant() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
NoMatchingGrantError ensureNoMatchingGrant() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
PolicyViolationsError get policyViolations => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set policyViolations(PolicyViolationsError value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasPolicyViolations() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearPolicyViolations() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
PolicyViolationsError ensurePolicyViolations() => $_ensure(3);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
||||
11
useragent/lib/proto/shared/evm.pbenum.dart
Normal file
11
useragent/lib/proto/shared/evm.pbenum.dart
Normal file
@@ -0,0 +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
|
||||
320
useragent/lib/proto/shared/evm.pbjson.dart
Normal file
320
useragent/lib/proto/shared/evm.pbjson.dart
Normal file
@@ -0,0 +1,320 @@
|
||||
// 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'
|
||||
},
|
||||
],
|
||||
'8': [
|
||||
{'1': 'kind'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `EvalViolation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List evalViolationDescriptor = $convert.base64Decode(
|
||||
'Cg1FdmFsVmlvbGF0aW9uEicKDmludmFsaWRfdGFyZ2V0GAEgASgMSABSDWludmFsaWRUYXJnZX'
|
||||
'QSXQoSZ2FzX2xpbWl0X2V4Y2VlZGVkGAIgASgLMi0uYXJiaXRlci5zaGFyZWQuZXZtLkdhc0xp'
|
||||
'bWl0RXhjZWVkZWRWaW9sYXRpb25IAFIQZ2FzTGltaXRFeGNlZWRlZBJIChNyYXRlX2xpbWl0X2'
|
||||
'V4Y2VlZGVkGAMgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSEXJhdGVMaW1pdEV4Y2Vl'
|
||||
'ZGVkElQKGXZvbHVtZXRyaWNfbGltaXRfZXhjZWVkZWQYBCABKAsyFi5nb29nbGUucHJvdG9idW'
|
||||
'YuRW1wdHlIAFIXdm9sdW1ldHJpY0xpbWl0RXhjZWVkZWQSOwoMaW52YWxpZF90aW1lGAUgASgL'
|
||||
'MhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5SABSC2ludmFsaWRUaW1lElIKGGludmFsaWRfdHJhbn'
|
||||
'NhY3Rpb25fdHlwZRgGIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAUhZpbnZhbGlkVHJh'
|
||||
'bnNhY3Rpb25UeXBlQgYKBGtpbmQ=');
|
||||
|
||||
@$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==');
|
||||
17
useragent/lib/proto/shared/vault.pb.dart
Normal file
17
useragent/lib/proto/shared/vault.pb.dart
Normal file
@@ -0,0 +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';
|
||||
46
useragent/lib/proto/shared/vault.pbenum.dart
Normal file
46
useragent/lib/proto/shared/vault.pbenum.dart
Normal file
@@ -0,0 +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');
|
||||
34
useragent/lib/proto/shared/vault.pbjson.dart
Normal file
34
useragent/lib/proto/shared/vault.pbjson.dart
Normal file
@@ -0,0 +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=');
|
||||
Reference in New Issue
Block a user