You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"run e2e USDT test", "test USDC on [chain]", "test USDT on [chain]", or wants to verify Grid's
11
+
stablecoin deposit/withdrawal/quote pipeline (USDC on Solana/Base/Polygon/Ethereum, USDT on Tron).
11
12
Even if the user mentions just one chain, one test, or one corridor, this skill applies.
12
13
This replaces both grid-solana-usdc-sandbox and grid-base-usdc-test.
13
14
allowed-tools:
@@ -20,15 +21,17 @@ allowed-tools:
20
21
21
22
# Grid API Test Suite
22
23
23
-
End-to-end tests for USDC flows on Solana, Base, Polygon, and Ethereum L1: deposits, withdrawals, and cross-currency quotes using real testnet (or mainnet) funds.
24
+
End-to-end tests for stablecoin flows: USDC on Solana, Base, Polygon, and Ethereum L1, and USDT on Tron. Covers deposits, withdrawals, and cross-currency quotes using real testnet (or mainnet) funds.
25
+
26
+
Each chain has a single supported stablecoin (`STABLE_ASSET` / `STABLE_CURRENCY` in the catalog). For Solana/Base/Polygon/Ethereum this is USDC; for Tron it is USDT. The tests themselves are asset-agnostic and parameterized over the chain's stablecoin.
24
27
25
28
## Step 1: Parse the User's Prompt
26
29
27
30
Determine what to run from the user's request:
28
31
29
32
**Chains** (default: all available — see step 3 for which have keys):
30
-
-`solana`, `base`, `polygon`, `ethereum`, or `all`
31
-
- Multiple chains: "test solana and base", "run base and polygon tests", "test ethereum"
33
+
-`solana`, `base`, `polygon`, `ethereum`, `tron`, or `all`
34
+
- Multiple chains: "test solana and base", "run base and polygon tests", "test tron"
32
35
33
36
**Tests** (default: all):
34
37
- By number: "run test 4 on solana"
@@ -98,26 +101,30 @@ For each chain the user wants to test, set the chain-specific variables and veri
| Other vars | Same as testnet | Same as testnet | Same as testnet | Same as testnet | Same as testnet |
126
+
127
+
`STABLE_ASSET` is the lowercase asset name used in helper subcommands (`$STABLE_ASSET-balance`, `send-$STABLE_ASSET`). `STABLE_CURRENCY` is the uppercase Grid currency code used in API request bodies. Tron uses USDT; every other chain uses USDC.
121
128
122
129
### Per-chain prerequisites
123
130
@@ -146,23 +153,25 @@ For each selected chain, run these checks. Skip a chain (with a warning) if its
146
153
147
154
4.**Check gas balance:**
148
155
```bash
149
-
$CHAIN_HELPER$GAS_CMD
156
+
chain_helper$GAS_CMD
150
157
```
151
158
If below `GAS_MIN`, warn the user with instructions for obtaining testnet gas:
- Tron (USDT): https://shasta.tronex.io/ (Shasta testnet faucet — request TRX, then swap or fund via the TRC-20 USDT contract `TG3XXyExBkPp9nzdajDZsozEu4BkaSJozs`)
166
175
167
176
6.**Get wallet address:**
168
177
```bash
@@ -187,31 +196,34 @@ If running a subset, create the customer (Test 1) silently as setup, then run on
187
196
- Base: `CHAIN_PREFIX="base-test"`
188
197
- Polygon: `CHAIN_PREFIX="polygon-test"`
189
198
- Ethereum: `CHAIN_PREFIX="ethereum-test"`
199
+
- Tron: `CHAIN_PREFIX="tron-test"`
190
200
191
201
## Step 6: Results Summary
192
202
193
203
After all tests complete, print a results table per chain:
@@ -226,6 +238,7 @@ If multiple chains were tested, add an aggregate summary:
226
238
| Solana | 7/7 | 0 | 0 |
227
239
| Base | 6/7 | 1 | 0 |
228
240
| Polygon | 0/7 | 0 | 7 |
241
+
| Tron | 7/7 | 0 | 0 |
229
242
```
230
243
231
244
## Error Handling
@@ -241,21 +254,21 @@ If multiple chains were tested, add an aggregate summary:
241
254
242
255
## Amounts Reference
243
256
244
-
All tests use small amounts to conserve testnet funds:
257
+
All tests use small amounts to conserve testnet funds. Amounts are denominated in the chain's stablecoin (USDC for Solana/Base/Polygon/Ethereum, USDT for Tron) at 6 decimals.
0 commit comments