@avaprotocol/protocols 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/dist/index.cjs +768 -102
- package/dist/index.js +768 -102
- package/dist/tokens/base-sepolia.json +14 -2
- package/dist/tokens/base.json +121 -1
- package/dist/tokens/ethereum.json +154 -4
- package/dist/tokens/index.d.ts +39 -21
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/sepolia.json +22 -4
- package/dist/tokens/types.d.ts +13 -1
- package/dist/tokens/types.d.ts.map +1 -1
- package/package.json +3 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# @avaprotocol/protocols
|
|
2
|
+
|
|
3
|
+
## 0.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9460f61: `lookupToken` now walks per-protocol `tokens` tables (`Protocols.aaveV3.tokens.LINK`, `Protocols.uniswapV3.tokens.WETH`, etc.) as a third resolution pass after the top-level `Tokens` catalog scan. Covers token addresses that ship alongside a specific protocol but don't appear in the top-level catalog — most notably the AAVE-V3 Sepolia faucet LINK (`0xf8Fb37…0EBE5`), which is the address AAVE templates actually use on Sepolia even though the canonical Chainlink LINK (`0x779877…4789`) lives elsewhere.
|
|
8
|
+
|
|
9
|
+
When the symbol resolved from a per-protocol map also appears in `Tokens` on some chain, decimals/name are lifted from there; otherwise decimals default to 18 (true for every per-protocol token currently shipped).
|
|
10
|
+
|
|
11
|
+
Fixes a regression introduced by 0.4.0's Studio seed where `Tokens.LINK[Sepolia]` switched to the canonical Chainlink address, leaving consumers unable to recover the symbol for the AAVE template's faucet address.
|
|
12
|
+
|
|
13
|
+
## 0.4.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 2ea828e: Restructure the token catalog from inline TypeScript objects into per-chain JSON
|
|
18
|
+
data files (`src/tokens/data/<chain>.json`) and port Studio's curated catalogs
|
|
19
|
+
into the new format. Catalog grew from 15 → 65 entries across 5 chains:
|
|
20
|
+
ethereum (5 → 30), sepolia (3 → 6), base (3 → 23), base-sepolia (2 → 4), and
|
|
21
|
+
bnb-mainnet (unchanged at 2).
|
|
22
|
+
|
|
23
|
+
Notable behaviour change worth flagging for consumers: `Tokens.LINK[Sepolia]`
|
|
24
|
+
now resolves to the canonical Sepolia ChainLink Token (`0x779877…4789`) instead
|
|
25
|
+
of the AAVE-V3 faucet variant. The AAVE-V3 faucet LINK still lives at
|
|
26
|
+
`Protocols.aaveV3.tokens.LINK[Chains.Sepolia]` for template consumers — that
|
|
27
|
+
path is unchanged.
|
|
28
|
+
|
|
29
|
+
New: `yarn port:studio` helper for future re-syncs from upstream Studio.
|
|
30
|
+
|
|
31
|
+
`buildTokensFromData` now throws on duplicate `(symbol, chainId)` rows instead
|
|
32
|
+
of silently overwriting.
|
|
33
|
+
|
|
34
|
+
`TokenLinks` extended with the link types Studio's catalog uses (`x`,
|
|
35
|
+
`facebook`, `discord`, `telegram`, `medium`, `docs`, `forum`, `youtube`) and
|
|
36
|
+
drops the now-obsolete `twitter` alias (Studio standardized on `x`).
|