feat(evm): add wallet access grant/revoke functionality
Some checks failed
Some checks failed
This commit is contained in:
@@ -9,27 +9,29 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:arbiter/proto/user_agent.pb.dart' as _i13;
|
||||
import 'package:arbiter/screens/bootstrap.dart' as _i2;
|
||||
import 'package:arbiter/screens/dashboard.dart' as _i5;
|
||||
import 'package:arbiter/screens/dashboard.dart' as _i6;
|
||||
import 'package:arbiter/screens/dashboard/about.dart' as _i1;
|
||||
import 'package:arbiter/screens/dashboard/clients/table.dart' as _i3;
|
||||
import 'package:arbiter/screens/dashboard/evm/evm.dart' as _i6;
|
||||
import 'package:arbiter/screens/dashboard/evm/grants/grant_create.dart' as _i4;
|
||||
import 'package:arbiter/screens/server_connection.dart' as _i7;
|
||||
import 'package:arbiter/screens/server_info_setup.dart' as _i8;
|
||||
import 'package:arbiter/screens/vault_setup.dart' as _i9;
|
||||
import 'package:auto_route/auto_route.dart' as _i10;
|
||||
import 'package:flutter/material.dart' as _i11;
|
||||
import 'package:arbiter/screens/dashboard/clients/details.dart' as _i3;
|
||||
import 'package:arbiter/screens/dashboard/clients/table.dart' as _i4;
|
||||
import 'package:arbiter/screens/dashboard/evm/evm.dart' as _i7;
|
||||
import 'package:arbiter/screens/dashboard/evm/grants/grant_create.dart' as _i5;
|
||||
import 'package:arbiter/screens/server_connection.dart' as _i8;
|
||||
import 'package:arbiter/screens/server_info_setup.dart' as _i9;
|
||||
import 'package:arbiter/screens/vault_setup.dart' as _i10;
|
||||
import 'package:auto_route/auto_route.dart' as _i11;
|
||||
import 'package:flutter/material.dart' as _i12;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.AboutScreen]
|
||||
class AboutRoute extends _i10.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i10.PageRouteInfo>? children})
|
||||
class AboutRoute extends _i11.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(AboutRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AboutRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.AboutScreen();
|
||||
@@ -39,13 +41,13 @@ class AboutRoute extends _i10.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.Bootstrap]
|
||||
class Bootstrap extends _i10.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i10.PageRouteInfo>? children})
|
||||
class Bootstrap extends _i11.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i11.PageRouteInfo>? children})
|
||||
: super(Bootstrap.name, initialChildren: children);
|
||||
|
||||
static const String name = 'Bootstrap';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i2.Bootstrap();
|
||||
@@ -54,77 +56,124 @@ class Bootstrap extends _i10.PageRouteInfo<void> {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.ClientsScreen]
|
||||
class ClientsRoute extends _i10.PageRouteInfo<void> {
|
||||
const ClientsRoute({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i3.ClientDetails]
|
||||
class ClientDetails extends _i11.PageRouteInfo<ClientDetailsArgs> {
|
||||
ClientDetails({
|
||||
_i12.Key? key,
|
||||
required _i13.SdkClientEntry client,
|
||||
List<_i11.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ClientDetails.name,
|
||||
args: ClientDetailsArgs(key: key, client: client),
|
||||
initialChildren: children,
|
||||
);
|
||||
|
||||
static const String name = 'ClientDetails';
|
||||
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ClientDetailsArgs>();
|
||||
return _i3.ClientDetails(key: args.key, client: args.client);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class ClientDetailsArgs {
|
||||
const ClientDetailsArgs({this.key, required this.client});
|
||||
|
||||
final _i12.Key? key;
|
||||
|
||||
final _i13.SdkClientEntry client;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ClientDetailsArgs{key: $key, client: $client}';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
if (other is! ClientDetailsArgs) return false;
|
||||
return key == other.key && client == other.client;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => key.hashCode ^ client.hashCode;
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.ClientsScreen]
|
||||
class ClientsRoute extends _i11.PageRouteInfo<void> {
|
||||
const ClientsRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(ClientsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ClientsRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.ClientsScreen();
|
||||
return const _i4.ClientsScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.CreateEvmGrantScreen]
|
||||
class CreateEvmGrantRoute extends _i10.PageRouteInfo<void> {
|
||||
const CreateEvmGrantRoute({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i5.CreateEvmGrantScreen]
|
||||
class CreateEvmGrantRoute extends _i11.PageRouteInfo<void> {
|
||||
const CreateEvmGrantRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(CreateEvmGrantRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CreateEvmGrantRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.CreateEvmGrantScreen();
|
||||
return const _i5.CreateEvmGrantScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.DashboardRouter]
|
||||
class DashboardRouter extends _i10.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i6.DashboardRouter]
|
||||
class DashboardRouter extends _i11.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i11.PageRouteInfo>? children})
|
||||
: super(DashboardRouter.name, initialChildren: children);
|
||||
|
||||
static const String name = 'DashboardRouter';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.DashboardRouter();
|
||||
return const _i6.DashboardRouter();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.EvmScreen]
|
||||
class EvmRoute extends _i10.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i7.EvmScreen]
|
||||
class EvmRoute extends _i11.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(EvmRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'EvmRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.EvmScreen();
|
||||
return const _i7.EvmScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.ServerConnectionScreen]
|
||||
/// [_i8.ServerConnectionScreen]
|
||||
class ServerConnectionRoute
|
||||
extends _i10.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
extends _i11.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
ServerConnectionRoute({
|
||||
_i11.Key? key,
|
||||
_i12.Key? key,
|
||||
String? arbiterUrl,
|
||||
List<_i10.PageRouteInfo>? children,
|
||||
List<_i11.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ServerConnectionRoute.name,
|
||||
args: ServerConnectionRouteArgs(key: key, arbiterUrl: arbiterUrl),
|
||||
@@ -133,13 +182,13 @@ class ServerConnectionRoute
|
||||
|
||||
static const String name = 'ServerConnectionRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ServerConnectionRouteArgs>(
|
||||
orElse: () => const ServerConnectionRouteArgs(),
|
||||
);
|
||||
return _i7.ServerConnectionScreen(
|
||||
return _i8.ServerConnectionScreen(
|
||||
key: args.key,
|
||||
arbiterUrl: args.arbiterUrl,
|
||||
);
|
||||
@@ -150,7 +199,7 @@ class ServerConnectionRoute
|
||||
class ServerConnectionRouteArgs {
|
||||
const ServerConnectionRouteArgs({this.key, this.arbiterUrl});
|
||||
|
||||
final _i11.Key? key;
|
||||
final _i12.Key? key;
|
||||
|
||||
final String? arbiterUrl;
|
||||
|
||||
@@ -171,33 +220,33 @@ class ServerConnectionRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i10.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i9.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i11.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(ServerInfoSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ServerInfoSetupRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.ServerInfoSetupScreen();
|
||||
return const _i9.ServerInfoSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i10.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i10.PageRouteInfo>? children})
|
||||
/// [_i10.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i11.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i11.PageRouteInfo>? children})
|
||||
: super(VaultSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'VaultSetupRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
static _i11.PageInfo page = _i11.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i9.VaultSetupScreen();
|
||||
return const _i10.VaultSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user