Skip to content

Commit

Permalink
Remove 3box feature and delete ThreeBoxController
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Apr 29, 2022
1 parent 54a89f0 commit d3657fe
Show file tree
Hide file tree
Showing 38 changed files with 755 additions and 11,632 deletions.
8 changes: 0 additions & 8 deletions .storybook/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,12 +1308,6 @@ const state = {
},
},
},
threeBoxSyncingAllowed: false,
showRestorePrompt: true,
threeBoxLastUpdated: 0,
threeBoxAddress: null,
threeBoxSynced: false,
threeBoxDisabled: false,
swapsState: {
quotes: {},
fetchParams: null,
Expand Down Expand Up @@ -1397,8 +1391,6 @@ const state = {
},
networksTabSelectedRpcUrl: '',
loadingMethodData: false,
show3BoxModalAfterImport: false,
threeBoxLastUpdated: null,
requestAccountTabs: {},
openMetaMaskTabs: {},
currentWindowTab: {},
Expand Down
9 changes: 0 additions & 9 deletions app/_locales/en/messages.json

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

1 change: 0 additions & 1 deletion app/scripts/controllers/metametrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,6 @@ export default class MetaMetricsController {
).length,
[TRAITS.NUMBER_OF_TOKENS]: this._getNumberOfTokens(metamaskState),
[TRAITS.OPENSEA_API_ENABLED]: metamaskState.openSeaEnabled,
[TRAITS.THREE_BOX_ENABLED]: metamaskState.threeBoxSyncingAllowed,
[TRAITS.THEME]: metamaskState.theme || 'default',
};

Expand Down
6 changes: 0 additions & 6 deletions app/scripts/controllers/metametrics.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ describe('MetaMetricsController', function () {
identities: [{}, {}],
ledgerTransportType: 'web-hid',
openSeaEnabled: true,
threeBoxSyncingAllowed: false,
useCollectibleDetection: false,
theme: 'default',
});
Expand All @@ -694,7 +693,6 @@ describe('MetaMetricsController', function () {
[TRAITS.NUMBER_OF_NFTS]: 4,
[TRAITS.NUMBER_OF_TOKENS]: 5,
[TRAITS.OPENSEA_API_ENABLED]: true,
[TRAITS.THREE_BOX_ENABLED]: false,
[TRAITS.THEME]: 'default',
});
});
Expand All @@ -714,7 +712,6 @@ describe('MetaMetricsController', function () {
ledgerTransportType: 'web-hid',
openSeaEnabled: true,
identities: [{}, {}],
threeBoxSyncingAllowed: false,
useCollectibleDetection: false,
theme: 'default',
});
Expand All @@ -734,7 +731,6 @@ describe('MetaMetricsController', function () {
ledgerTransportType: 'web-hid',
openSeaEnabled: false,
identities: [{}, {}, {}],
threeBoxSyncingAllowed: false,
useCollectibleDetection: false,
theme: 'default',
});
Expand Down Expand Up @@ -762,7 +758,6 @@ describe('MetaMetricsController', function () {
ledgerTransportType: 'web-hid',
openSeaEnabled: true,
identities: [{}, {}],
threeBoxSyncingAllowed: false,
useCollectibleDetection: true,
theme: 'default',
});
Expand All @@ -780,7 +775,6 @@ describe('MetaMetricsController', function () {
ledgerTransportType: 'web-hid',
openSeaEnabled: true,
identities: [{}, {}],
threeBoxSyncingAllowed: false,
useCollectibleDetection: true,
theme: 'default',
});
Expand Down
Loading

0 comments on commit d3657fe

Please sign in to comment.