Skip to content

Commit

Permalink
Add Polygon and BSC paths (#12)
Browse files Browse the repository at this point in the history
* Add Polygon and BSC paths

* Bump version

* Add XDAI

* Fix BSC path
  • Loading branch information
FrederikBolding authored Jun 30, 2021
1 parent ae04a49 commit 2acd147
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mycrypto/wallets",
"version": "1.2.1",
"version": "1.2.2",
"description": "Wallet abstractions to be used throughout the MyCrypto product suite.",
"repository": "MyCryptoHQ/wallets",
"author": "MyCrypto",
Expand Down
20 changes: 19 additions & 1 deletion src/dpaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,21 @@ export const DEFAULT_ETI: DerivationPath = {
path: "m/44'/464'/0'/0/<account>"
};

export const DEFAULT_POLYGON: DerivationPath = {
name: 'Default (Polygon)',
path: "m/44'/966'/0'/0/<account>"
};

export const DEFAULT_BSC: DerivationPath = {
name: 'Default (BSC)',
path: "m/44'/714'/0'/0/<account>"
};

export const DEFAULT_XDAI: DerivationPath = {
name: 'Default (XDAI)',
path: "m/44'/700'/0'/0/<account>"
};

export const LEDGER_LIVE_ETH: DerivationPath = {
name: 'Ledger Live (ETH)',
path: "m/44'/60'/<account>'/0/0",
Expand Down Expand Up @@ -275,7 +290,10 @@ export const ALL_DERIVATION_PATHS: DerivationPath[] = [
DEFAULT_ARTIS_SIGMA1,
DEFAULT_POA,
DEFAULT_ARTIS_TAU1,
DEFAULT_ETI
DEFAULT_ETI,
DEFAULT_POLYGON,
DEFAULT_BSC,
DEFAULT_XDAI
];

/**
Expand Down

0 comments on commit 2acd147

Please sign in to comment.