Skip to content

Commit

Permalink
[MMI] Removed compliance feature from the codebase (#20088)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertolive authored Jul 20, 2023
1 parent 88cb8ce commit 26225aa
Show file tree
Hide file tree
Showing 55 changed files with 18 additions and 2,217 deletions.
81 changes: 0 additions & 81 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions app/scripts/controllers/mmi-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,6 @@ export default class MMIController extends EventEmitter {
) {
this.transactionUpdateController.getCustomerProofForAddresses(addresses);
}

try {
if (this.institutionalFeaturesController.getComplianceProjectId()) {
this.institutionalFeaturesController.startPolling();
}
} catch (e) {
log.error('Failed to start Compliance polling');
log.error(e);
}
}

async connectCustodyAddresses(custodianType, custodianName, accounts) {
Expand Down
24 changes: 0 additions & 24 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2471,30 +2471,6 @@ export default class MetamaskController extends EventEmitter {
this.mmiConfigurationController.getConfiguration.bind(
this.mmiConfigurationController,
),
setComplianceAuthData:
this.institutionalFeaturesController.setComplianceAuthData.bind(
this.institutionalFeaturesController,
),
deleteComplianceAuthData:
this.institutionalFeaturesController.deleteComplianceAuthData.bind(
this.institutionalFeaturesController,
),
generateComplianceReport:
this.institutionalFeaturesController.generateComplianceReport.bind(
this.institutionalFeaturesController,
),
syncReportsInProgress:
this.institutionalFeaturesController.syncReportsInProgress.bind(
this.institutionalFeaturesController,
),
removeConnectInstitutionalFeature:
this.institutionalFeaturesController.removeConnectInstitutionalFeature.bind(
this.institutionalFeaturesController,
),
getComplianceHistoricalReportsByAddress:
this.institutionalFeaturesController.getComplianceHistoricalReportsByAddress.bind(
this.institutionalFeaturesController,
),
removeAddTokenConnectRequest:
this.institutionalFeaturesController.removeAddTokenConnectRequest.bind(
this.institutionalFeaturesController,
Expand Down
2 changes: 1 addition & 1 deletion shared/constants/metametrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export enum MetaMetricsEventName {
ConnectCustodialAccountClicked = 'Connect Custodial Account Clicked',
MMIPortfolioButtonClicked = 'MMI Portfolio Button Clicked',
StakeButtonClicked = 'Stake Button Clicked',
ComplianceButtonClicked = 'Compliance Button Clicked',
InteractiveReplacementTokenButtonClicked = 'Interactive Replacement Token Button Clicked',
RefreshTokenListClicked = 'Refresh Token List Clicked',
SignatureDeeplinkDisplayed = 'Signature Deeplink Displayed',
InstitutionalFeatureConnected = 'Institutional Feature Connected',
Expand Down
3 changes: 2 additions & 1 deletion ui/components/app/app-components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@
@import 'network-account-balance-header/index';
@import 'approve-content-card/index';
@import 'transaction-alerts/transaction-alerts';
@import '../institutional/compliance-details/index';
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
@import '../institutional/interactive-replacement-token-notification/index';
@import '../institutional/confirm-remove-jwt-modal/index';
@import '../institutional/custody-confirm-link-modal/index';
@import '../institutional/transaction-failed-modal/index';
///: END:ONLY_INCLUDE_IN
4 changes: 2 additions & 2 deletions ui/components/app/modals/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
@import 'convert-token-to-nft-modal/index';
@import 'contract-details-modal/index';
@import 'hold-to-reveal-modal/index';
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
@import '../../institutional/confirm-remove-jwt-modal/index';
@import '../../institutional/custody-confirm-link-modal/index';
@import '../../institutional/compliance-modal/index';
@import '../../institutional/compliance-details/index';
@import '../../institutional/transaction-failed-modal/index';
///: END:ONLY_INCLUDE_IN
@import 'eth-sign-modal/index';

.modal {
Expand Down
31 changes: 0 additions & 31 deletions ui/components/app/modals/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { mmiActionsFactory } from '../../../store/institutional/institution-back
// Modal Components
import AddNetworkModal from '../../../pages/onboarding-flow/add-network-modal';
///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
import ComplianceDetailsModal from '../../institutional/compliance-details';
import ComplianceModal from '../../institutional/compliance-modal';
import ConfirmRemoveJWT from '../../institutional/confirm-remove-jwt-modal';
import CustodyConfirmLink from '../../institutional/custody-confirm-link-modal';
import InteractiveReplacementTokenModal from '../../institutional/interactive-replacement-token-modal';
Expand Down Expand Up @@ -330,35 +328,6 @@ const MODALS = {
},

///: BEGIN:ONLY_INCLUDE_IN(build-mmi)
COMPLIANCE: {
contents: <ComplianceModal />,
onHide: (props) => props.hideWarning(),
mobileModalStyle: {
...modalContainerMobileStyle,
},
laptopModalStyle: {
...modalContainerLaptopStyle,
},
contentStyle: {
borderRadius: '8px',
},
},

COMPLIANCE_DETAILS: {
contents: <ComplianceDetailsModal />,
onHide: (props) => props.hideWarning(),
mobileModalStyle: {
...modalContainerMobileStyle,
},
laptopModalStyle: {
...modalContainerLaptopStyle,
},
contentStyle: {
padding: '0px',
borderRadius: '8px',
},
},

CONFIRM_REMOVE_JWT: {
contents: <ConfirmRemoveJWT />,
mobileModalStyle: {
Expand Down
1 change: 0 additions & 1 deletion ui/components/component-library/icon/icon.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export enum IconName {
People = 'people',
ProgrammingArrows = 'programming-arrows',
MmmiPortfolioDashboard = 'portfolio-dashboard',
Compliance = 'compliance',
Custody = 'custody',
Question = 'question',
Received = 'received',
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 26225aa

Please sign in to comment.