feat(evm): add grant management for EVM wallets
This commit is contained in:
@@ -10,24 +10,26 @@
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:arbiter/screens/bootstrap.dart' as _i2;
|
||||
import 'package:arbiter/screens/dashboard.dart' as _i3;
|
||||
import 'package:arbiter/screens/dashboard.dart' as _i4;
|
||||
import 'package:arbiter/screens/dashboard/about.dart' as _i1;
|
||||
import 'package:arbiter/screens/dashboard/evm.dart' as _i4;
|
||||
import 'package:arbiter/screens/server_connection.dart' as _i5;
|
||||
import 'package:arbiter/screens/server_info_setup.dart' as _i6;
|
||||
import 'package:arbiter/screens/vault_setup.dart' as _i7;
|
||||
import 'package:auto_route/auto_route.dart' as _i8;
|
||||
import 'package:flutter/material.dart' as _i9;
|
||||
import 'package:arbiter/screens/dashboard/evm.dart' as _i6;
|
||||
import 'package:arbiter/screens/dashboard/evm_grant_create.dart' as _i3;
|
||||
import 'package:arbiter/screens/dashboard/evm_grants.dart' as _i5;
|
||||
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;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.AboutScreen]
|
||||
class AboutRoute extends _i8.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i8.PageRouteInfo>? children})
|
||||
class AboutRoute extends _i10.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(AboutRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AboutRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.AboutScreen();
|
||||
@@ -37,13 +39,13 @@ class AboutRoute extends _i8.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.Bootstrap]
|
||||
class Bootstrap extends _i8.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i8.PageRouteInfo>? children})
|
||||
class Bootstrap extends _i10.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i10.PageRouteInfo>? children})
|
||||
: super(Bootstrap.name, initialChildren: children);
|
||||
|
||||
static const String name = 'Bootstrap';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i2.Bootstrap();
|
||||
@@ -52,45 +54,77 @@ class Bootstrap extends _i8.PageRouteInfo<void> {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.DashboardRouter]
|
||||
class DashboardRouter extends _i8.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i3.CreateEvmGrantScreen]
|
||||
class CreateEvmGrantRoute extends _i10.PageRouteInfo<void> {
|
||||
const CreateEvmGrantRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(CreateEvmGrantRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CreateEvmGrantRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.CreateEvmGrantScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.DashboardRouter]
|
||||
class DashboardRouter extends _i10.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i10.PageRouteInfo>? children})
|
||||
: super(DashboardRouter.name, initialChildren: children);
|
||||
|
||||
static const String name = 'DashboardRouter';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i3.DashboardRouter();
|
||||
return const _i4.DashboardRouter();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.EvmScreen]
|
||||
class EvmRoute extends _i8.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i5.EvmGrantsScreen]
|
||||
class EvmGrantsRoute extends _i10.PageRouteInfo<void> {
|
||||
const EvmGrantsRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(EvmGrantsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'EvmGrantsRoute';
|
||||
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.EvmGrantsScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.EvmScreen]
|
||||
class EvmRoute extends _i10.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(EvmRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'EvmRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i4.EvmScreen();
|
||||
return const _i6.EvmScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.ServerConnectionScreen]
|
||||
/// [_i7.ServerConnectionScreen]
|
||||
class ServerConnectionRoute
|
||||
extends _i8.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
extends _i10.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
ServerConnectionRoute({
|
||||
_i9.Key? key,
|
||||
_i11.Key? key,
|
||||
String? arbiterUrl,
|
||||
List<_i8.PageRouteInfo>? children,
|
||||
List<_i10.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ServerConnectionRoute.name,
|
||||
args: ServerConnectionRouteArgs(key: key, arbiterUrl: arbiterUrl),
|
||||
@@ -99,13 +133,13 @@ class ServerConnectionRoute
|
||||
|
||||
static const String name = 'ServerConnectionRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ServerConnectionRouteArgs>(
|
||||
orElse: () => const ServerConnectionRouteArgs(),
|
||||
);
|
||||
return _i5.ServerConnectionScreen(
|
||||
return _i7.ServerConnectionScreen(
|
||||
key: args.key,
|
||||
arbiterUrl: args.arbiterUrl,
|
||||
);
|
||||
@@ -116,7 +150,7 @@ class ServerConnectionRoute
|
||||
class ServerConnectionRouteArgs {
|
||||
const ServerConnectionRouteArgs({this.key, this.arbiterUrl});
|
||||
|
||||
final _i9.Key? key;
|
||||
final _i11.Key? key;
|
||||
|
||||
final String? arbiterUrl;
|
||||
|
||||
@@ -137,33 +171,33 @@ class ServerConnectionRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i8.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i8.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i10.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(ServerInfoSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ServerInfoSetupRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.ServerInfoSetupScreen();
|
||||
return const _i8.ServerInfoSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i8.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i8.PageRouteInfo>? children})
|
||||
/// [_i9.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i10.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i10.PageRouteInfo>? children})
|
||||
: super(VaultSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'VaultSetupRoute';
|
||||
|
||||
static _i8.PageInfo page = _i8.PageInfo(
|
||||
static _i10.PageInfo page = _i10.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i7.VaultSetupScreen();
|
||||
return const _i9.VaultSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user