Skip to content

Commit

Permalink
chore: update accounts-controller peers
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Jan 30, 2025
1 parent 79f106d commit fe73aba
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 619 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/dist/assetsUtil.cjs b/dist/assetsUtil.cjs
index 017fb94055b64f99c75f8d54b763a501bdd03e97..34396ba143e3ebcb04fa2c80f7a35d1abd06710e 100644
--- a/dist/assetsUtil.cjs
+++ b/dist/assetsUtil.cjs
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
+function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
exports.getKeyByValue = exports.fetchTokenContractExchangeRates = exports.reduceInBatchesSerially = exports.divideIntoBatches = exports.ethersBigNumberToBN = exports.addUrlProtocolPrefix = exports.getFormattedIpfsUrl = exports.getIpfsCIDv1AndPath = exports.removeIpfsProtocolPrefix = exports.isTokenListSupportedForNetwork = exports.isTokenDetectionSupportedForNetwork = exports.SupportedStakedBalanceNetworks = exports.SupportedTokenDetectionNetworks = exports.formatIconUrlWithProxy = exports.formatAggregatorNames = exports.hasNewCollectionFields = exports.compareNftMetadata = exports.TOKEN_PRICES_BATCH_SIZE = void 0;
const controller_utils_1 = require("@metamask/controller-utils");
const utils_1 = require("@metamask/utils");
@@ -233,7 +234,7 @@ async function getIpfsCIDv1AndPath(ipfsUrl) {
const index = url.indexOf('/');
const cid = index !== -1 ? url.substring(0, index) : url;
const path = index !== -1 ? url.substring(index) : undefined;
- const { CID } = await import("multiformats");
+ const { CID } = _interopRequireWildcard(require("multiformats"));
// We want to ensure that the CID is v1 (https://docs.ipfs.io/concepts/content-addressing/#identifier-formats)
// because most cid v0s appear to be incompatible with IPFS subdomains
return {
45 changes: 4 additions & 41 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,6 @@
"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger": {
"globals": {
"console": true
},
"packages": {
"tslib": true
}
},
"@metamask/notification-services-controller>firebase>@firebase/messaging": {
Expand All @@ -565,6 +562,7 @@
"addEventListener": true,
"atob": true,
"btoa": true,
"clearTimeout": true,
"clients.matchAll": true,
"clients.openWindow": true,
"console.warn": true,
Expand All @@ -583,12 +581,12 @@
"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component": true,
"@metamask/notification-services-controller>firebase>@firebase/installations": true,
"@metamask/notification-services-controller>firebase>@firebase/util": true,
"@metamask/notification-services-controller>firebase>@firebase/app>idb": true,
"tslib": true
"@metamask/notification-services-controller>firebase>@firebase/app>idb": true
}
},
"@metamask/notification-services-controller>firebase>@firebase/util": {
"globals": {
"WorkerGlobalScope": true,
"atob": true,
"browser": true,
"btoa": true,
Expand All @@ -598,7 +596,6 @@
"indexedDB": true,
"navigator": true,
"process": true,
"self": true,
"setTimeout": true
},
"packages": {
Expand Down Expand Up @@ -926,7 +923,6 @@
"@metamask/name-controller>async-mutex": true,
"bitcoin-address-validation": true,
"bn.js": true,
"cockatiel": true,
"lodash": true,
"@ensdomains/content-hash>multicodec>uint8arrays>multiformats": true,
"single-call-balance-checker-abi": true,
Expand Down Expand Up @@ -1366,14 +1362,6 @@
"@metamask/keyring-api>bech32": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api": {
"packages": {
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/keyring-utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true,
"@metamask/keyring-api>bech32": true
}
},
"@metamask/keyring-controller": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
Expand Down Expand Up @@ -1410,16 +1398,6 @@
"bitcoin-address-validation": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/keyring-utils": {
"globals": {
"URL": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true,
"bitcoin-address-validation": true
}
},
"@metamask/logging-controller": {
"packages": {
"@metamask/base-controller": true,
Expand Down Expand Up @@ -1655,7 +1633,7 @@
},
"packages": {
"@metamask/base-controller": true,
"@metamask/profile-sync-controller>@metamask/keyring-api": true,
"@metamask/keyring-api": true,
"@metamask/keyring-controller": true,
"@metamask/network-controller": true,
"@metamask/profile-sync-controller>@noble/ciphers": true,
Expand Down Expand Up @@ -2278,21 +2256,6 @@
"semver": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"browserify>buffer": true,
"nock>debug": true,
"@metamask/utils>pony-cause": true,
"semver": true
}
},
"@metamask/keyring-controller>@metamask/utils": {
"globals": {
"TextDecoder": true,
Expand Down
80 changes: 5 additions & 75 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,6 @@
"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/logger": {
"globals": {
"console": true
},
"packages": {
"tslib": true
}
},
"@metamask/notification-services-controller>firebase>@firebase/messaging": {
Expand All @@ -565,6 +562,7 @@
"addEventListener": true,
"atob": true,
"btoa": true,
"clearTimeout": true,
"clients.matchAll": true,
"clients.openWindow": true,
"console.warn": true,
Expand All @@ -583,12 +581,12 @@
"@metamask/notification-services-controller>firebase>@firebase/app>@firebase/component": true,
"@metamask/notification-services-controller>firebase>@firebase/installations": true,
"@metamask/notification-services-controller>firebase>@firebase/util": true,
"@metamask/notification-services-controller>firebase>@firebase/app>idb": true,
"tslib": true
"@metamask/notification-services-controller>firebase>@firebase/app>idb": true
}
},
"@metamask/notification-services-controller>firebase>@firebase/util": {
"globals": {
"WorkerGlobalScope": true,
"atob": true,
"browser": true,
"btoa": true,
Expand All @@ -598,7 +596,6 @@
"indexedDB": true,
"navigator": true,
"process": true,
"self": true,
"setTimeout": true
},
"packages": {
Expand Down Expand Up @@ -926,7 +923,6 @@
"@metamask/name-controller>async-mutex": true,
"bitcoin-address-validation": true,
"bn.js": true,
"cockatiel": true,
"lodash": true,
"@ensdomains/content-hash>multicodec>uint8arrays>multiformats": true,
"single-call-balance-checker-abi": true,
Expand Down Expand Up @@ -1366,22 +1362,6 @@
"@metamask/keyring-api>bech32": true
}
},
"@metamask/multichain-transactions-controller>@metamask/keyring-api": {
"packages": {
"@metamask/multichain-transactions-controller>@metamask/keyring-api>@metamask/keyring-utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/multichain-transactions-controller>@metamask/utils": true,
"@metamask/keyring-api>bech32": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api": {
"packages": {
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/keyring-utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true,
"@metamask/keyring-api>bech32": true
}
},
"@metamask/keyring-controller": {
"packages": {
"@ethereumjs/tx>@ethereumjs/util": true,
Expand Down Expand Up @@ -1418,26 +1398,6 @@
"bitcoin-address-validation": true
}
},
"@metamask/multichain-transactions-controller>@metamask/keyring-api>@metamask/keyring-utils": {
"globals": {
"URL": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/multichain-transactions-controller>@metamask/utils": true,
"bitcoin-address-validation": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/keyring-utils": {
"globals": {
"URL": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": true,
"bitcoin-address-validation": true
}
},
"@metamask/logging-controller": {
"packages": {
"@metamask/base-controller": true,
Expand Down Expand Up @@ -1494,7 +1454,7 @@
},
"packages": {
"@metamask/base-controller": true,
"@metamask/multichain-transactions-controller>@metamask/keyring-api": true,
"@metamask/keyring-api": true,
"@metamask/keyring-snap-client": true,
"@metamask/snaps-utils": true
}
Expand Down Expand Up @@ -1686,7 +1646,7 @@
},
"packages": {
"@metamask/base-controller": true,
"@metamask/profile-sync-controller>@metamask/keyring-api": true,
"@metamask/keyring-api": true,
"@metamask/keyring-controller": true,
"@metamask/network-controller": true,
"@metamask/profile-sync-controller>@noble/ciphers": true,
Expand Down Expand Up @@ -2309,21 +2269,6 @@
"semver": true
}
},
"@metamask/profile-sync-controller>@metamask/keyring-api>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"browserify>buffer": true,
"nock>debug": true,
"@metamask/utils>pony-cause": true,
"semver": true
}
},
"@metamask/keyring-controller>@metamask/utils": {
"globals": {
"TextDecoder": true,
Expand Down Expand Up @@ -2384,21 +2329,6 @@
"semver": true
}
},
"@metamask/multichain-transactions-controller>@metamask/utils": {
"globals": {
"TextDecoder": true,
"TextEncoder": true
},
"packages": {
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"browserify>buffer": true,
"nock>debug": true,
"@metamask/utils>pony-cause": true,
"semver": true
}
},
"@metamask/name-controller>@metamask/utils": {
"globals": {
"TextDecoder": true,
Expand Down
Loading

0 comments on commit fe73aba

Please sign in to comment.