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
Architecture:
✅ Removing SUPPORTED_TOKENS internal allowlist is clean — single source of truth via ActionsConfig.assets.allow
✅ Flat named exports are tree-shakeable and ergonomic
✅ All tests pass (340/340)
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
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.
Closes #210
Summary
Assetconstants toconstants/assets.ts(top market cap ERC-20s on Ethereum/L2s + ether.fi ecosystem tokens)SUPPORTED_TOKENSinternal allowlist —ActionsConfig.assets.allowis now the sole authority for which assets are activeTokenBalancenow usesasset: Assetinstead ofsymbol: string, andchainsobject keyed bychainIdinstead ofchainBalancesarrayWeisuffix →Rawsuffix everywhere (amountInWei→amountInRaw,balanceRaw, etc.)supportedAssetsthrough all React wallet providers (Dynamic, Privy, Turnkey)New asset exports
Stablecoins:
USDT,DAI,FRAX,USDE,PYUSD,SKYWrapped/staked:
WBTC,CBBTC,STETH,WSTETH,RETH,CBETH,EETH,WEETH,ETHFIDeFi:
AAVE,UNI,LINK,CRV,SNX,COMP,BAL,SUSHI,ONEINCH,PENDLE,MKR,LDO,RPL,GRT,ENSL1/L2:
OP,ARB,POL,RENDER,WLD,ONDO,ENAMeme:
SHIB,PEPETest plan
pnpm --filter @eth-optimism/actions-sdk test— 340 tests pass, 0 failurespnpm --filter @eth-optimism/actions-sdk build— clean buildpnpm --filter @eth-optimism/actions-service build— clean buildpnpm --filter actions-ui build— clean buildpnpm --filter @eth-optimism/actions-sdk lint— 0 errors (pre-existing warnings only)