Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d8ca5c4
chore: move tron files into packages
taran-a Jul 27, 2026
7acd5f9
chore: yarn constraints fixes
taran-a Jul 27, 2026
dcfa6b5
chore: fix eslint errors, yarn constraints
taran-a Jul 27, 2026
7514358
chore: upgrade keyring packages and snaps tooling for v2 support
hmalik88 Jul 28, 2026
ded2225
feat: configure moduleResolution bundler for v2 subpath imports
hmalik88 Jul 28, 2026
90994ef
feat: add ExportAccountRequestStruct and PrivateKeyHexStruct
hmalik88 Jul 28, 2026
2cab39e
feat: register Keyring API v2 method permissions
hmalik88 Jul 28, 2026
e093671
feat: implement KeyringSnapRpc v2 interface on KeyringHandler
hmalik88 Jul 28, 2026
b43d316
test: update getAccounts test for v2 rename
hmalik88 Jul 28, 2026
359d7b6
feat: add endowment:keyring capabilities for v2
hmalik88 Jul 28, 2026
d18e874
chore: fix formatting, bump monorepo dep versions, add changelog entry
hmalik88 Jul 28, 2026
581017e
chore: update deps
hmalik88 Jul 29, 2026
b46edee
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Jul 30, 2026
24149a0
fix: yarn.lock
hmalik88 Jul 30, 2026
5ae23e0
fix: bitcoin shasum
hmalik88 Jul 30, 2026
8c843b5
feat: align deps
hmalik88 Jul 30, 2026
931808e
fix: tron shasum
hmalik88 Jul 30, 2026
785af81
fix: remove unused var
hmalik88 Jul 30, 2026
4151202
fix: undo changelog change
hmalik88 Jul 30, 2026
f8fa113
chore: add changelog entries
hmalik88 Jul 30, 2026
ff3263e
fix: changelogs
hmalik88 Jul 30, 2026
ee3a925
feat(tron-snap): fold discoverAccounts into createAccounts and remove…
hmalik88 Jul 30, 2026
8d0452c
fix: update tron snap shasum to match production build
hmalik88 Jul 30, 2026
35faa47
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Jul 30, 2026
00d3327
fix: bitcoin shasum
hmalik88 Jul 30, 2026
37628fa
fix: add changelog PR links and restore coverage above thresholds
hmalik88 Jul 30, 2026
04d8ff3
fix: resolve lint and formatting issues in test files
hmalik88 Jul 30, 2026
d2e6e21
fix: format eslint-suppressions.json
hmalik88 Jul 30, 2026
d6c0fd3
fix: remove any types in keyring handler and test file
hmalik88 Jul 30, 2026
e2e37da
fix: tron shasum
hmalik88 Jul 30, 2026
e04998f
fix: add missing blank line between import groups in keyring test
hmalik88 Jul 30, 2026
aa92f48
refactor: throw instead of assert
hmalik88 Jul 30, 2026
1063a9c
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Jul 30, 2026
e3b3f34
fix: tron shasum
hmalik88 Jul 30, 2026
5277ddd
fix: remove setSelectedAccounts from dapp permissions
hmalik88 Jul 31, 2026
d24d9b4
test: add exportAccount tests to KeyringHandler
hmalik88 Jul 31, 2026
da6fb77
chore: update tron shasum
hmalik88 Jul 31, 2026
74d6866
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Jul 31, 2026
49a1dc9
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Jul 31, 2026
87d7ea2
fix: tron shasum
hmalik88 Jul 31, 2026
be1e53c
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Aug 3, 2026
bb25e66
Merge remote-tracking branch 'origin/main' into hm/tron-v2
hmalik88 Aug 3, 2026
04a5c2c
chore: add lodash
hmalik88 Aug 3, 2026
816f1bf
chore: update tron shasum
hmalik88 Aug 3, 2026
9cf18b3
fix: eslint suppressions
hmalik88 Aug 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 1 addition & 60 deletions eslint-suppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,24 +182,8 @@
"count": 2
}
},
"packages/tron-wallet-snap/src/clients/price-api/PriceApiClient.test.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
},
"n/no-extraneous-import": {
"count": 1
}
},
"packages/tron-wallet-snap/src/clients/price-api/PriceApiClient.ts": {
"import-x/no-extraneous-dependencies": {
"count": 2
}
},
"packages/tron-wallet-snap/src/clients/price-api/structs.test.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
},
"n/no-extraneous-import": {
"count": 1
}
},
Expand Down Expand Up @@ -265,19 +249,6 @@
"count": 4
}
},
"packages/tron-wallet-snap/src/handlers/keyring/keyring.test.ts": {
"@typescript-eslint/no-explicit-any": {
"count": 10
},
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/handlers/keyring/keyring.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/accounts/AccountsRepository.ts": {
"no-restricted-syntax": {
"count": 1
Expand All @@ -298,11 +269,6 @@
"count": 2
}
},
"packages/tron-wallet-snap/src/services/assets/AssetsRepository.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/assets/AssetsService.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 3
Expand All @@ -313,7 +279,7 @@
},
"packages/tron-wallet-snap/src/services/assets/AssetsService.ts": {
"import-x/no-extraneous-dependencies": {
"count": 2
"count": 1
}
},
"packages/tron-wallet-snap/src/services/config/ConfigProvider.ts": {
Expand Down Expand Up @@ -362,11 +328,6 @@
"count": 1
}
},
"packages/tron-wallet-snap/src/services/state/InMemoryState.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/state/State.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 1
Expand All @@ -375,11 +336,6 @@
"count": 1
}
},
"packages/tron-wallet-snap/src/services/state/State.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/transaction-expiration-refresher/TransactionExpirationRefresherService.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
Expand All @@ -395,21 +351,11 @@
"count": 4
}
},
"packages/tron-wallet-snap/src/services/transactions/TransactionsRepository.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/transactions/TransactionsService.test.ts": {
"@typescript-eslint/no-explicit-any": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/transactions/TransactionsService.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/services/wallet/WalletService.test.ts": {
"@typescript-eslint/explicit-function-return-type": {
"count": 2
Expand Down Expand Up @@ -493,11 +439,6 @@
"count": 3
}
},
"packages/tron-wallet-snap/src/utils/serialization/serialize.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
}
},
"packages/tron-wallet-snap/src/validation/keyring-structs.test.ts": {
"import-x/no-extraneous-dependencies": {
"count": 1
Expand Down
4 changes: 4 additions & 0 deletions packages/bitcoin-wallet-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Migrate `KeyringHandler` to implement `KeyringSnapRpc` from `@metamask/keyring-api/v2` ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
- Update `snap.manifest.json` to declare `derivePath` capability in the `bip44` keyring block ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
- Mark accounts as exportable in the keyring account mapping ([#43](https://github.com/MetaMask/internal-snaps/pull/43))
- Bump `@metamask/snaps-cli` from `^8.3.0` to `^8.4.1` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Bump `@metamask/keyring-api` from `^23.2.0` to `^23.7.0` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Bump `@metamask/keyring-snap-sdk` from `^8.0.0` to `^9.2.1` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Bump `@metamask/snaps-sdk` from `11.1.1` to `11.2.0` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))

## [1.15.2]

Expand Down
5 changes: 5 additions & 0 deletions packages/sample-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add package to `internal-snaps` monorepo ([#8](https://github.com/MetaMask/internal-snaps/pull/8))

### Changed

- Bump `@metamask/snaps-cli` from `^8.3.0` to `^8.4.1` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Bump `@metamask/snaps-sdk` from `11.1.1` to `11.2.0` ([#56](https://github.com/MetaMask/internal-snaps/pull/56))

[Unreleased]: https://github.com/MetaMask/internal-snaps/
6 changes: 6 additions & 0 deletions packages/tron-wallet-snap/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- **BREAKING** Implement Keyring API v2 (`KeyringSnapRpc` interface): rename `listAccounts` → `getAccounts`, `listAccountAssets` → `getAccountAssets`, `listAccountTransactions` → `getAccountTransactions`; `getAccount` now throws instead of returning `undefined`; add `exportAccount` with hexadecimal private key export using `sensitive()` for redaction; remove v1-only methods `createAccount`, `discoverAccounts`, `filterAccountChains`, and `updateAccount`. ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Add `bip44:discover` support to `createAccounts`: checks on-chain activity across all Tron networks before persisting; returns `[]` if no activity to signal end-of-discovery to the client. ([#56](https://github.com/MetaMask/internal-snaps/pull/56))
- Add `endowment:keyring` capabilities to manifest declaring the `tron:728126428` scope, hexadecimal private key export, and BIP-44 derivation strategies. ([#56](https://github.com/MetaMask/internal-snaps/pull/56))

## [2.0.0]

### Changed
Expand Down
2 changes: 2 additions & 0 deletions packages/tron-wallet-snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@metamask/snaps-jest": "^10.2.0",
"@metamask/snaps-sdk": "^11.2.0",
"@metamask/superstruct": "^3.4.1",
"@types/lodash": "^4.14.191",
"async-mutex": "^0.5.0",
"bignumber.js": "^9.3.1",
"concurrently": "^10.0.3",
Expand All @@ -64,6 +65,7 @@
"jest": "30.0.3",
"jest-it-up": "^2.0.2",
"jest-transform-stub": "2.0.0",
"lodash": "^4.17.21",
"oxfmt": "^0.45.0",
"tronweb": "patch:tronweb@npm%3A6.1.0#~/.yarn/patches/tronweb-npm-6.1.0-771b242b6a.patch",
"typescript": "~5.8.3"
Expand Down
19 changes: 17 additions & 2 deletions packages/tron-wallet-snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/internal-snaps.git"
},
"source": {
"shasum": "0E86PeuwFcabw+zj98vn+O/XML6E9aDeng1o7+Qq47s=",
"shasum": "AzSGXXOl7hLkleKs2n45byefpbqom1y+l1ik4ucTd4Y=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand All @@ -23,7 +23,22 @@
},
"initialPermissions": {
"endowment:keyring": {
"allowedOrigins": ["https://portfolio.metamask.io"]
"allowedOrigins": ["https://portfolio.metamask.io"],
"capabilities": {
"scopes": ["tron:728126428"],
"privateKey": {
"exportFormats": [
{
"encoding": "hexadecimal"
}
]
},
"bip44": {
"deriveIndex": true,
"deriveIndexRange": true,
"discover": true
}
}
},
"snap_getBip32Entropy": [
{
Expand Down
Loading
Loading