Skip to content

Commit

Permalink
Merge pull request #3058 from TalaoDAO/tmp
Browse files Browse the repository at this point in the history
Tmp
  • Loading branch information
hawkbee1 authored Nov 1, 2024
2 parents c5418bc + 3a2fb4b commit 8671546
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 69 deletions.
12 changes: 8 additions & 4 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1883,16 +1883,20 @@ List<VCFormatType> getPresentVCDetails({
final vpFormats = clientMetaData['vp_formats'] as Map<String, dynamic>;

/// ldp_vc
presentLdpVc = vpFormats.containsKey('ldp_vc');
presentLdpVc =
vpFormats.containsKey('ldp_vc') || vpFormats.containsKey('ldp_vp');

/// jwt_vc
presentJwtVc = vpFormats.containsKey('jwt_vc');
presentJwtVc =
vpFormats.containsKey('jwt_vc') || vpFormats.containsKey('jwt_vp');

/// jwt_vc_json
presentJwtVcJson = vpFormats.containsKey('jwt_vc_json');
presentJwtVcJson = vpFormats.containsKey('jwt_vc_json') ||
vpFormats.containsKey('jwt_vp_json');

/// jwt_vc_json-ld
presentJwtVcJsonLd = vpFormats.containsKey('jwt_vc_json-ld');
presentJwtVcJsonLd = vpFormats.containsKey('jwt_vc_json-ld') ||
vpFormats.containsKey('jwt_vp_json-ld');

/// vc+sd-jwt
presentVcSdJwt = vpFormats.containsKey('vc+sd-jwt');
Expand Down
28 changes: 0 additions & 28 deletions lib/dashboard/drawer/ssi/manage_did/view/did_menu.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import 'package:altme/app/app.dart';
import 'package:altme/dashboard/dashboard.dart';
import 'package:altme/l10n/l10n.dart';
import 'package:altme/polygon_id/polygon_id.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class DidMenu extends StatelessWidget {
const DidMenu({super.key});
Expand Down Expand Up @@ -73,32 +71,6 @@ class DidView extends StatelessWidget {
);
},
),
// DrawerItem(
// title: l10n.polygonDecentralizedID,
// onTap: () async {
// LoadingView().show(context: context);
// try {
// final polygonIdCubit = context.read<PolygonIdCubit>();
// await polygonIdCubit.initialise();
// LoadingView().hide();
// await Navigator.of(context)
// .push<void>(ManageDidPolygonIdPage.route());
// } catch (e) {
// LoadingView().hide();
// AlertMessage.showStateMessage(
// context: context,
// stateMessage: StateMessage.error(
// showDialog: true,
// //stringMessage: e.toString(),
// messageHandler: ResponseMessage(
// message: ResponseString
// .RESPONSE_STRING_deviceIncompatibilityMessage,
// ),
// ),
// );
// }
// },
// ),
DrawerItem(
title: l10n.jwkThumbprintP256Key,
onTap: () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class BinanceAssociatedAddressModel extends CredentialSubjectModel {
BinanceAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType: CredentialSubjectType.binanceAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory BinanceAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class EthereumAssociatedAddressModel extends CredentialSubjectModel {
EthereumAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType: CredentialSubjectType.ethereumAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory EthereumAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ class EtherlinkAssociatedAddressModel extends CredentialSubjectModel {
EtherlinkAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType:
CredentialSubjectType.etherlinkAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory EtherlinkAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class FantomAssociatedAddressModel extends CredentialSubjectModel {
FantomAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType: CredentialSubjectType.fantomAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory FantomAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class PolygonAssociatedAddressModel extends CredentialSubjectModel {
PolygonAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType: CredentialSubjectType.polygonAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory PolygonAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ class TezosAssociatedAddressModel extends CredentialSubjectModel {
TezosAssociatedAddressModel({
this.associatedAddress,
this.accountName,
required String id,
required String type,
required Author issuedBy,
required String super.id,
required String super.type,
required Author super.issuedBy,
}) : super(
id: id,
type: type,
credentialSubjectType: CredentialSubjectType.tezosAssociatedWallet,
credentialCategory: CredentialCategory.blockchainAccountsCards,
issuedBy: issuedBy,
);

factory TezosAssociatedAddressModel.fromJson(Map<String, dynamic> json) =>
Expand Down
2 changes: 1 addition & 1 deletion lib/dashboard/profile/models/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class ProfileModel extends Equatable {
clientType: ClientType.did,
clientId: clientId,
clientSecret: clientSecret,
vcFormatType: VCFormatType.vcSdJWT,
vcFormatType: VCFormatType.auto,
proofType: ProofType.jwt,
),
),
Expand Down

0 comments on commit 8671546

Please sign in to comment.