feat(evm): add EVM grants screen with create UI and list
Some checks failed
Some checks failed
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// coverage:ignore-file
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:arbiter/proto/user_agent.pb.dart' as _i14;
|
||||
import 'package:arbiter/proto/user_agent.pb.dart' as _i15;
|
||||
import 'package:arbiter/screens/bootstrap.dart' as _i2;
|
||||
import 'package:arbiter/screens/dashboard.dart' as _i7;
|
||||
import 'package:arbiter/screens/dashboard/about.dart' as _i1;
|
||||
@@ -17,23 +17,24 @@ import 'package:arbiter/screens/dashboard/clients/details.dart' as _i3;
|
||||
import 'package:arbiter/screens/dashboard/clients/details/client_details.dart'
|
||||
as _i4;
|
||||
import 'package:arbiter/screens/dashboard/clients/table.dart' as _i5;
|
||||
import 'package:arbiter/screens/dashboard/evm/evm.dart' as _i8;
|
||||
import 'package:arbiter/screens/dashboard/evm/evm.dart' as _i9;
|
||||
import 'package:arbiter/screens/dashboard/evm/grants/grant_create.dart' as _i6;
|
||||
import 'package:arbiter/screens/server_connection.dart' as _i9;
|
||||
import 'package:arbiter/screens/server_info_setup.dart' as _i10;
|
||||
import 'package:arbiter/screens/vault_setup.dart' as _i11;
|
||||
import 'package:auto_route/auto_route.dart' as _i12;
|
||||
import 'package:flutter/material.dart' as _i13;
|
||||
import 'package:arbiter/screens/dashboard/evm/grants/grants.dart' as _i8;
|
||||
import 'package:arbiter/screens/server_connection.dart' as _i10;
|
||||
import 'package:arbiter/screens/server_info_setup.dart' as _i11;
|
||||
import 'package:arbiter/screens/vault_setup.dart' as _i12;
|
||||
import 'package:auto_route/auto_route.dart' as _i13;
|
||||
import 'package:flutter/material.dart' as _i14;
|
||||
|
||||
/// generated route for
|
||||
/// [_i1.AboutScreen]
|
||||
class AboutRoute extends _i12.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i12.PageRouteInfo>? children})
|
||||
class AboutRoute extends _i13.PageRouteInfo<void> {
|
||||
const AboutRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(AboutRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'AboutRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i1.AboutScreen();
|
||||
@@ -43,13 +44,13 @@ class AboutRoute extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i2.Bootstrap]
|
||||
class Bootstrap extends _i12.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i12.PageRouteInfo>? children})
|
||||
class Bootstrap extends _i13.PageRouteInfo<void> {
|
||||
const Bootstrap({List<_i13.PageRouteInfo>? children})
|
||||
: super(Bootstrap.name, initialChildren: children);
|
||||
|
||||
static const String name = 'Bootstrap';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i2.Bootstrap();
|
||||
@@ -59,11 +60,11 @@ class Bootstrap extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i3.ClientDetails]
|
||||
class ClientDetails extends _i12.PageRouteInfo<ClientDetailsArgs> {
|
||||
class ClientDetails extends _i13.PageRouteInfo<ClientDetailsArgs> {
|
||||
ClientDetails({
|
||||
_i13.Key? key,
|
||||
required _i14.SdkClientEntry client,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
_i14.Key? key,
|
||||
required _i15.SdkClientEntry client,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ClientDetails.name,
|
||||
args: ClientDetailsArgs(key: key, client: client),
|
||||
@@ -72,7 +73,7 @@ class ClientDetails extends _i12.PageRouteInfo<ClientDetailsArgs> {
|
||||
|
||||
static const String name = 'ClientDetails';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ClientDetailsArgs>();
|
||||
@@ -84,9 +85,9 @@ class ClientDetails extends _i12.PageRouteInfo<ClientDetailsArgs> {
|
||||
class ClientDetailsArgs {
|
||||
const ClientDetailsArgs({this.key, required this.client});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final _i14.SdkClientEntry client;
|
||||
final _i15.SdkClientEntry client;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
@@ -106,11 +107,11 @@ class ClientDetailsArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i4.ClientDetailsScreen]
|
||||
class ClientDetailsRoute extends _i12.PageRouteInfo<ClientDetailsRouteArgs> {
|
||||
class ClientDetailsRoute extends _i13.PageRouteInfo<ClientDetailsRouteArgs> {
|
||||
ClientDetailsRoute({
|
||||
_i13.Key? key,
|
||||
_i14.Key? key,
|
||||
required int clientId,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ClientDetailsRoute.name,
|
||||
args: ClientDetailsRouteArgs(key: key, clientId: clientId),
|
||||
@@ -120,7 +121,7 @@ class ClientDetailsRoute extends _i12.PageRouteInfo<ClientDetailsRouteArgs> {
|
||||
|
||||
static const String name = 'ClientDetailsRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final pathParams = data.inheritedPathParams;
|
||||
@@ -136,7 +137,7 @@ class ClientDetailsRoute extends _i12.PageRouteInfo<ClientDetailsRouteArgs> {
|
||||
class ClientDetailsRouteArgs {
|
||||
const ClientDetailsRouteArgs({this.key, required this.clientId});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final int clientId;
|
||||
|
||||
@@ -158,13 +159,13 @@ class ClientDetailsRouteArgs {
|
||||
|
||||
/// generated route for
|
||||
/// [_i5.ClientsScreen]
|
||||
class ClientsRoute extends _i12.PageRouteInfo<void> {
|
||||
const ClientsRoute({List<_i12.PageRouteInfo>? children})
|
||||
class ClientsRoute extends _i13.PageRouteInfo<void> {
|
||||
const ClientsRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(ClientsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ClientsRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i5.ClientsScreen();
|
||||
@@ -174,13 +175,13 @@ class ClientsRoute extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i6.CreateEvmGrantScreen]
|
||||
class CreateEvmGrantRoute extends _i12.PageRouteInfo<void> {
|
||||
const CreateEvmGrantRoute({List<_i12.PageRouteInfo>? children})
|
||||
class CreateEvmGrantRoute extends _i13.PageRouteInfo<void> {
|
||||
const CreateEvmGrantRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(CreateEvmGrantRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'CreateEvmGrantRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i6.CreateEvmGrantScreen();
|
||||
@@ -190,13 +191,13 @@ class CreateEvmGrantRoute extends _i12.PageRouteInfo<void> {
|
||||
|
||||
/// generated route for
|
||||
/// [_i7.DashboardRouter]
|
||||
class DashboardRouter extends _i12.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i12.PageRouteInfo>? children})
|
||||
class DashboardRouter extends _i13.PageRouteInfo<void> {
|
||||
const DashboardRouter({List<_i13.PageRouteInfo>? children})
|
||||
: super(DashboardRouter.name, initialChildren: children);
|
||||
|
||||
static const String name = 'DashboardRouter';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i7.DashboardRouter();
|
||||
@@ -205,29 +206,45 @@ class DashboardRouter extends _i12.PageRouteInfo<void> {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i8.EvmScreen]
|
||||
class EvmRoute extends _i12.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i12.PageRouteInfo>? children})
|
||||
: super(EvmRoute.name, initialChildren: children);
|
||||
/// [_i8.EvmGrantsScreen]
|
||||
class EvmGrantsRoute extends _i13.PageRouteInfo<void> {
|
||||
const EvmGrantsRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(EvmGrantsRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'EvmRoute';
|
||||
static const String name = 'EvmGrantsRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i8.EvmScreen();
|
||||
return const _i8.EvmGrantsScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i9.ServerConnectionScreen]
|
||||
/// [_i9.EvmScreen]
|
||||
class EvmRoute extends _i13.PageRouteInfo<void> {
|
||||
const EvmRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(EvmRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'EvmRoute';
|
||||
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i9.EvmScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.ServerConnectionScreen]
|
||||
class ServerConnectionRoute
|
||||
extends _i12.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
extends _i13.PageRouteInfo<ServerConnectionRouteArgs> {
|
||||
ServerConnectionRoute({
|
||||
_i13.Key? key,
|
||||
_i14.Key? key,
|
||||
String? arbiterUrl,
|
||||
List<_i12.PageRouteInfo>? children,
|
||||
List<_i13.PageRouteInfo>? children,
|
||||
}) : super(
|
||||
ServerConnectionRoute.name,
|
||||
args: ServerConnectionRouteArgs(key: key, arbiterUrl: arbiterUrl),
|
||||
@@ -236,13 +253,13 @@ class ServerConnectionRoute
|
||||
|
||||
static const String name = 'ServerConnectionRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
final args = data.argsAs<ServerConnectionRouteArgs>(
|
||||
orElse: () => const ServerConnectionRouteArgs(),
|
||||
);
|
||||
return _i9.ServerConnectionScreen(
|
||||
return _i10.ServerConnectionScreen(
|
||||
key: args.key,
|
||||
arbiterUrl: args.arbiterUrl,
|
||||
);
|
||||
@@ -253,7 +270,7 @@ class ServerConnectionRoute
|
||||
class ServerConnectionRouteArgs {
|
||||
const ServerConnectionRouteArgs({this.key, this.arbiterUrl});
|
||||
|
||||
final _i13.Key? key;
|
||||
final _i14.Key? key;
|
||||
|
||||
final String? arbiterUrl;
|
||||
|
||||
@@ -274,33 +291,33 @@ class ServerConnectionRouteArgs {
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i10.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i12.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i11.ServerInfoSetupScreen]
|
||||
class ServerInfoSetupRoute extends _i13.PageRouteInfo<void> {
|
||||
const ServerInfoSetupRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(ServerInfoSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'ServerInfoSetupRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i10.ServerInfoSetupScreen();
|
||||
return const _i11.ServerInfoSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/// generated route for
|
||||
/// [_i11.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i12.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i12.PageRouteInfo>? children})
|
||||
/// [_i12.VaultSetupScreen]
|
||||
class VaultSetupRoute extends _i13.PageRouteInfo<void> {
|
||||
const VaultSetupRoute({List<_i13.PageRouteInfo>? children})
|
||||
: super(VaultSetupRoute.name, initialChildren: children);
|
||||
|
||||
static const String name = 'VaultSetupRoute';
|
||||
|
||||
static _i12.PageInfo page = _i12.PageInfo(
|
||||
static _i13.PageInfo page = _i13.PageInfo(
|
||||
name,
|
||||
builder: (data) {
|
||||
return const _i11.VaultSetupScreen();
|
||||
return const _i12.VaultSetupScreen();
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user