## **Description**
This PR adds the Tron seeder assets and helper utilities used to fund
and prepare Tron accounts against a local node, together with their unit
tests. It is one reviewable step of a linear stack and replaces #44141.
Validated by 5 passing unit tests. Based on a fresh `main` and under
1000 changed lines.
## **Changelog**
CHANGELOG entry: null
## **Related issues**
Part of the local-blockchain E2E initiative (WPN-536).
Replaces #44141.
## **Manual testing steps**
1. `yarn jest test/e2e/helpers/tron-assets.test.ts
test/e2e/helpers/tron-seeder.test.ts` (expect 5 tests passing).
## **Screenshots/Recordings**
N/A — test infrastructure only, no user-facing UI change.
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Changes are confined to E2E test helpers and unit tests; no wallet,
snap, or production runtime paths are modified.
>
> **Overview**
> Adds **test-only Tron local-node seeding infrastructure** under
`test/e2e/seeder/tron/` so E2E can fund accounts and mock
TronGrid-shaped responses against a private Java-Tron node.
>
> New helpers cover **TRC-10/TRC-20 metadata**, base58/hex address
conversion, **TRC-20 transfer calldata encoding**, **TronGrid account
envelopes** (including optional staked TRX via `frozenV2`), and **preset
node profiles** (portfolio, staked, dapp USDT, low TRX).
**`TronSeeder`** deploys named TRC-20 test contracts (shared Solidity
0.5.10 artifact), tracks addresses in a registry, and seeds per-address
balances by deploying once per token and transferring totals.
>
> **Five Jest unit tests** exercise encoding, TronGrid shaping,
constructor ABI encoding, and seeder deploy/seed behavior with a mocked
node. **`test/e2e/constants.ts`** only updates comments to distinguish
Account 1 vs an arbitrary send-flow recipient for
`DEFAULT_TRON_ADDRESS_2`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
ac57b8f. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Description
This PR adds the Tron seeder assets and helper utilities used to fund and prepare Tron accounts against a local node, together with their unit tests. It is one reviewable step of a linear stack and replaces #44141. Validated by 5 passing unit tests. Based on a fresh
mainand under 1000 changed lines.Changelog
CHANGELOG entry: null
Related issues
Part of the local-blockchain E2E initiative (WPN-536).
Replaces #44141.
Manual testing steps
yarn jest test/e2e/helpers/tron-assets.test.ts test/e2e/helpers/tron-seeder.test.ts(expect 5 tests passing).Screenshots/Recordings
N/A — test infrastructure only, no user-facing UI change.
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Changes are confined to E2E test helpers and unit tests; no wallet, snap, or production runtime paths are modified.
Overview
Adds test-only Tron local-node seeding infrastructure under
test/e2e/seeder/tron/so E2E can fund accounts and mock TronGrid-shaped responses against a private Java-Tron node.New helpers cover TRC-10/TRC-20 metadata, base58/hex address conversion, TRC-20 transfer calldata encoding, TronGrid account envelopes (including optional staked TRX via
frozenV2), and preset node profiles (portfolio, staked, dapp USDT, low TRX).TronSeederdeploys named TRC-20 test contracts (shared Solidity 0.5.10 artifact), tracks addresses in a registry, and seeds per-address balances by deploying once per token and transferring totals.Five Jest unit tests exercise encoding, TronGrid shaping, constructor ABI encoding, and seeder deploy/seed behavior with a mocked node.
test/e2e/constants.tsonly updates comments to distinguish Account 1 vs an arbitrary send-flow recipient forDEFAULT_TRON_ADDRESS_2.Reviewed by Cursor Bugbot for commit ac57b8f. Bugbot is set up for automated code reviews on this repo. Configure here.