Skip to content

added xdc mainnet and testnet support #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 54 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
462935b
added xdc mainnet and testnet support
kshitij01042002 Jan 19, 2024
a88dc5f
Merge branch 'develop' into enable_xdc_mainnet_support
BlocksScanIO Jan 23, 2024
a5c5ebc
Merge branch 'develop' into enable_xdc_mainnet_support
kshitij01042002 Jan 23, 2024
19183bc
Merge branch 'develop' into enable_xdc_mainnet_support
BlocksScanIO Jan 24, 2024
67d2e91
Merge branch 'develop' into enable_xdc_mainnet_support
BlocksScanIO Jan 24, 2024
5e45a99
removed tslint error
kshitij01042002 Jan 25, 2024
94f10cc
excluded testnet from buyable list
kshitij01042002 Jan 25, 2024
797ab34
Merge branch 'develop' into enable_xdc_mainnet_support
kshitij01042002 Jan 25, 2024
b67f734
feat: Enable ppom on other chains (#22633)
segun Jan 25, 2024
769f458
Add imToken Wallet support with EIP-4527 (#21804)
makoshan Jan 25, 2024
c525579
feat: Add PPOM Validation to normal send. (#22321)
segun Jan 25, 2024
d3d67d5
feat: hardcode svg network (#22643)
salimtb Jan 25, 2024
36e3367
feat: update UI elements to use `getSelectedInternalAccount` selector…
montelaidev Jan 25, 2024
913979c
fix: Trezor connect - update to v9 in trezor-usb-permissions (#22591)
martykan Jan 25, 2024
803948a
Update Gas API URL (#22544)
dan437 Jan 25, 2024
263f84b
E2E test: Improve fill method in driver (#22652)
chloeYue Jan 25, 2024
e2eb52e
e2e: Wait for the loading overlay to disappear before clicking (#22672)
HowardBraham Jan 26, 2024
ce807ad
Petnames: code fence removal; experimental toggle (#22456)
dbrans Jan 26, 2024
3e166b7
chore: add types for `submitRequestToBackground` fn in `ui/store/acti…
davidmurdoch Jan 27, 2024
518dff8
Merge branch 'develop' into enable_xdc_mainnet_support
kshitij01042002 Jan 27, 2024
630e3f1
Use account identities as default petnames (#21956)
dbrans Jan 29, 2024
c45acd7
fix: Create patch for custody keyring type in accounts controller (#2…
montelaidev Jan 29, 2024
4632dcd
test: adds blockaid multiple network support test (#22691)
seaona Jan 29, 2024
4d66bd8
Add script to generate RC commits (#22673)
chloeYue Jan 29, 2024
46e755b
UX: Add 'Add' icon to Add Network button (#22628)
darkwing Jan 29, 2024
0d55408
replace hex values to design tokens (#22629)
garrettbear Jan 29, 2024
40ff834
Merge branch 'develop' into enable_xdc_mainnet_support
BlocksScanIO Jan 29, 2024
72ace4f
docs: tell vscode to use our workspace's typescript version for typec…
davidmurdoch Jan 29, 2024
116f480
UX: Updated connections icon (#22634)
NidhiKJha Jan 29, 2024
4392429
Updating design tokens to 1.13 includes accessibility updates (#22658)
georgewrmarshall Jan 29, 2024
cd38cdb
chore(22552): refactor modal selector in e2e tests (#22668)
DDDDDanica Jan 30, 2024
8317671
chore: Upgrade @metamask/transaction-controller to v21.0.1 (#22674)
vinistevam Jan 30, 2024
3ff646b
Changed the drop down class name and type of selection (#22727)
hjetpoluru Jan 30, 2024
3cbe6a0
UX: Multichain: Remove bottom navigation (#22623)
darkwing Jan 30, 2024
80451e3
e2e: when CircleCI hits a Chrome console error, do not cause cascadin…
HowardBraham Jan 30, 2024
ea23260
feat: create ConfirmTitle component (#22270)
digiwand Jan 30, 2024
3fe1f55
UX: Updated Custom network displayed for selectable in network select…
NidhiKJha Jan 30, 2024
c48602b
Merge branch 'develop' into enable_xdc_mainnet_support
kshitij01042002 Jan 31, 2024
862617d
deps: force js-sha3 to ^0.9.2 by resolutions (#20921)
legobeat Jan 31, 2024
7c15b31
Revert stake button and announcement (#22669)
martahj Jan 31, 2024
93a950f
add progress of scanning QR code (#20947)
renfengshi Jan 31, 2024
bd34bc5
Fixing sign button color and replacing deprecated components in Signa…
georgewrmarshall Jan 31, 2024
7a3d9e2
Cancel transaction signing from activity list (#22676)
matthewwalsh0 Jan 31, 2024
12627a0
useDisplayName Hook and Integration into <Name/> Component (#22734)
dbrans Jan 31, 2024
374cddd
Adding missing modal overlay to signature request original warning (#…
georgewrmarshall Jan 31, 2024
c1a25ec
devDeps: @storybook/test-runner@^0.10.0->^0.14.0 (#21767)
legobeat Jan 31, 2024
030d8cb
Integrate LavaDome private key protection (#22381)
weizman Feb 1, 2024
9a92987
[Bug|Feat] blockaid external link clicked metric update (#22631)
digiwand Feb 1, 2024
5667250
Petnames: Move Identicon within Name component (#22737)
dbrans Feb 1, 2024
391807f
Set FONTCONFIG_PATH on CircleCI containers (#22657)
mcmire Feb 1, 2024
2a9b933
Adds ModalBody component to AccountDetails modal (#22775)
georgewrmarshall Feb 1, 2024
eeeb939
chore: update Node.js to v20 (#22755)
davidmurdoch Feb 1, 2024
ff0a27d
Petnames: Addition of shouldSyncPetname Method for Petnames Synchroni…
dbrans Feb 1, 2024
c8cf3f9
Merge branch 'develop' into enable_xdc_mainnet_support
kshitij01042002 Feb 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 7 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,30 @@ version: 2.1
executors:
node-browsers:
docker:
- image: cimg/node:18.18-browsers
- image: cimg/node:20.11-browsers
environment:
FONTCONFIG_PATH: /etc/fonts
NODE_OPTIONS: --max_old_space_size=3072
node-browsers-medium-plus:
docker:
- image: cimg/node:18.18-browsers
- image: cimg/node:20.11-browsers
resource_class: medium+
environment:
FONTCONFIG_PATH: /etc/fonts
NODE_OPTIONS: --max_old_space_size=4096
node-browsers-large:
docker:
- image: cimg/node:18.18-browsers
- image: cimg/node:20.11-browsers
resource_class: large
environment:
FONTCONFIG_PATH: /etc/fonts
NODE_OPTIONS: --max_old_space_size=4096
shellcheck:
docker:
- image: koalaman/shellcheck-alpine@sha256:dfaf08fab58c158549d3be64fb101c626abc5f16f341b569092577ae207db199
playwright:
docker:
- image: mcr.microsoft.com/playwright:v1.39.0-jammy
- image: mcr.microsoft.com/playwright:v1.41.1-jammy

orbs:
gh: circleci/[email protected]
Expand Down
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ body:
- Keystone
- GridPlus Lattice1
- AirGap Vault
- imToken
- Other (please elaborate in the "Additional Context" section)
- type: textarea
id: additional
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const pendingTokenApprovals = {
address: '0x6b175474e89094c44da98b954eedeac495271d0f',
symbol: 'ETH',
decimals: 18,
image: './images/eth_logo.png',
image: './images/eth_logo.svg',
unlisted: false,
},
},
Expand Down Expand Up @@ -118,4 +118,4 @@ export const pendingTokenApprovals = {
},
},
},
};
};
2 changes: 1 addition & 1 deletion .storybook/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const state = {
address: '0x6b175474e89094c44da98b954eedeac495271d0f',
symbol: 'ETH',
decimals: 18,
image: './images/eth_logo.png',
image: './images/eth_logo.svg',
unlisted: false,
},
'0xB8c77482e45F1F44dE1745F52C74426C631bDD52': {
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"fileMatch": ["app/manifest/*/*.json"],
"url": "https://json.schemastore.org/chrome-manifest"
}
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
diff --git a/dist/utils.js b/dist/utils.js
index 810f229841ffff83f7a28191bc558862b1809e01..aa2ea845d4cccfac8e28f575d7972bd2dba8decf 100644
--- a/dist/utils.js
+++ b/dist/utils.js
@@ -11,35 +11,40 @@ const uuid_1 = require("uuid");
* @returns The name of the keyring type.
*/
function keyringTypeToName(keyringType) {
- switch (keyringType) {
- case keyring_controller_1.KeyringTypes.simple: {
- return 'Account';
- }
- case keyring_controller_1.KeyringTypes.hd: {
- return 'Account';
- }
- case keyring_controller_1.KeyringTypes.trezor: {
- return 'Trezor';
- }
- case keyring_controller_1.KeyringTypes.ledger: {
- return 'Ledger';
- }
- case keyring_controller_1.KeyringTypes.lattice: {
- return 'Lattice';
- }
- case keyring_controller_1.KeyringTypes.qr: {
- return 'QR';
- }
- case keyring_controller_1.KeyringTypes.snap: {
- return 'Snap Account';
- }
- case keyring_controller_1.KeyringTypes.custody: {
- return 'Custody';
- }
- default: {
- throw new Error(`Unknown keyring ${keyringType}`);
- }
+ // Custody Keyrings follow this pattern
+ if (/^Custody.*/.test(keyringType)) {
+ return "Custody";
+ }
+
+ switch (keyringType) {
+ case keyring_controller_1.KeyringTypes.simple: {
+ return "Account";
}
+ case keyring_controller_1.KeyringTypes.hd: {
+ return "Account";
+ }
+ case keyring_controller_1.KeyringTypes.trezor: {
+ return "Trezor";
+ }
+ case keyring_controller_1.KeyringTypes.ledger: {
+ return "Ledger";
+ }
+ case keyring_controller_1.KeyringTypes.lattice: {
+ return "Lattice";
+ }
+ case keyring_controller_1.KeyringTypes.qr: {
+ return "QR";
+ }
+ case keyring_controller_1.KeyringTypes.snap: {
+ return "Snap Account";
+ }
+ case keyring_controller_1.KeyringTypes.custody: {
+ return "Custody";
+ }
+ default: {
+ throw new Error(`Unknown keyring ${keyringType}`);
+ }
+ }
}
exports.keyringTypeToName = keyringTypeToName;
/**
@@ -48,10 +53,10 @@ exports.keyringTypeToName = keyringTypeToName;
* @returns The generated UUID.
*/
function getUUIDFromAddressOfNormalAccount(address) {
- const v4options = {
- random: (0, ethereumjs_util_1.sha256FromString)(address).slice(0, 16),
- };
- return (0, uuid_1.v4)(v4options);
+ const v4options = {
+ random: (0, ethereumjs_util_1.sha256FromString)(address).slice(0, 16),
+ };
+ return (0, uuid_1.v4)(v4options);
}
exports.getUUIDFromAddressOfNormalAccount = getUUIDFromAddressOfNormalAccount;
//# sourceMappingURL=utils.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To learn how to contribute to the MetaMask project itself, visit our [Internal D

## Building locally

- Install [Node.js](https://nodejs.org) version 18
- Install [Node.js](https://nodejs.org) version 20
- If you are using [nvm](https://github.com/nvm-sh/nvm#installing-and-updating) (recommended) running `nvm use` will automatically choose the right node version for you.
- Enable Corepack by executing the command `corepack enable` within the metamask-extension project. Corepack is a utility included with Node.js by default. It manages Yarn on a per-project basis, using the version specified by the `packageManager` property in the project's package.json file. Please note that modern releases of [Yarn](https://yarnpkg.com/getting-started/install) are not intended to be installed globally or via npm.
- Duplicate `.metamaskrc.dist` within the root and rename it to `.metamaskrc` by running `cp .metamaskrc{.dist,}`.
Expand Down
24 changes: 0 additions & 24 deletions app/_locales/de/messages.json

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

24 changes: 0 additions & 24 deletions app/_locales/el/messages.json

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

Loading