feat: update mainnet fastUSD defaultToken tokenId#105
Merged
Conversation
Swap the bundled mainnet defaultToken from fastUSD (0x125b...86eb) to USDC (0xc655...9130). Behavior change for any CLI command that resolves the network's default token without an explicit --token (e.g. `fast send`, `fast info balance`): on mainnet they now default to USDC. Scripts relying on the implicit fastUSD default must add `--token fastUSD` explicitly. The dedicated `fast fund fastusd` command is unaffected. Testnet (testUSDC) unchanged. Test fixtures intentionally keep fastUSD as their fictional default — they exercise the resolver/lookup code paths and are decoupled from production config.
Reverse the symbol change in the previous commit on this branch while keeping the new tokenId. The bundled mainnet defaultToken is now: symbol = "fastUSD" (unchanged from main) tokenId = 0xc655...9130 (the value introduced by the prior commit) Net effect vs main: only the tokenId of the mainnet defaultToken is updated; the symbol that users type with --token fastUSD stays the same. Testnet default (testUSDC) is unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update the bundled mainnet
defaultTokentokenId. The user-facing symbol staysfastUSD; only the underlying on-Fast tokenId changes.symbol:"fastUSD"(unchanged frommain)tokenId:0x125b60bb2e805336f0934077d4f9fdb36f45bec9ded8d7b0e637516cc43a86eb→0xc655a12330da6af361d281b197996d2bc135aaed3b66278e729c2222291e9130Behavior change: CLI commands that resolve the network's default token without an explicit
--tokenflag (e.g.fast send,fast info balance) and any--token fastUSDinvocations on mainnet now operate against the new tokenId. The dedicatedfast fund fastusdcommand is unaffected. Testnet default (testUSDC) is unchanged.Scope
packages/fast-sdk/src/networks/mainnet.ts— production default tokenId swap (+ line-wrap to fit biome's max width)packages/fast-sdk/src/networks/types.ts— JSDoc untouched in net (briefly flipped to USDC then back to fastUSD)app/cli/src/services/token-resolver.ts— comment lightly updatedapp/cli/tests/schemas/networks.test.ts—tokenIdregex assertion updated to/^0xc655a123/; symbol assertion staysfastUSD.changeset/mainnet-fastusd-tokenid.md— patch bump for@fastxyz/sdkand@fastxyz/cliTest fixtures (
app/cli/tests/fixtures/networks.ts) intentionally keepfastUSDas their fictional default — they exercise resolver/lookup code paths and are decoupled from production config. No other tests need updates.History on this branch
Two commits:
55a1712— original change: swapped both symbol and tokenId (fastUSD→USDC,0x125b...→0xc655...).37e62af— reversed the symbol back tofastUSDwhile keeping the new tokenId.Net effect vs
mainis the single-line tokenId update described above.Test plan
pnpm --filter @fastxyz/sdk build— passespnpm --filter @fastxyz/sdk test— greenpnpm --filter @fastxyz/cli build— passespnpm --filter @fastxyz/cli test— 54 passingpnpm cli --network mainnet send fast1abc 10(dry-run) — resolves tofastUSDagainst the new tokenIdpnpm cli --network mainnet send fast1abc 10 --token fastUSD— same result as implicit default