@avaprotocol/protocols 0.4.1 → 0.6.0
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 +49 -0
- package/dist/index.cjs +529 -15
- package/dist/index.js +529 -15
- package/dist/protocols/chainlink.d.ts +6 -1
- package/dist/protocols/chainlink.d.ts.map +1 -1
- package/dist/protocols/erc20.d.ts +7 -0
- package/dist/protocols/erc20.d.ts.map +1 -1
- package/dist/protocols/index.d.ts +11 -0
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/tokens/base-sepolia.cjs +93 -0
- package/dist/tokens/base-sepolia.d.ts +5 -0
- package/dist/tokens/base-sepolia.d.ts.map +1 -0
- package/dist/tokens/base-sepolia.js +65 -0
- package/dist/tokens/base.cjs +358 -0
- package/dist/tokens/base.d.ts +5 -0
- package/dist/tokens/base.d.ts.map +1 -0
- package/dist/tokens/base.js +330 -0
- package/dist/tokens/bnb-mainnet.cjs +83 -0
- package/dist/tokens/bnb-mainnet.d.ts +5 -0
- package/dist/tokens/bnb-mainnet.d.ts.map +1 -0
- package/dist/tokens/bnb-mainnet.js +55 -0
- package/dist/tokens/ethereum.cjs +894 -0
- package/dist/tokens/ethereum.d.ts +5 -0
- package/dist/tokens/ethereum.d.ts.map +1 -0
- package/dist/tokens/ethereum.js +866 -0
- package/dist/tokens/ethereum.json +444 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/per-chain.d.ts +30 -0
- package/dist/tokens/per-chain.d.ts.map +1 -0
- package/dist/tokens/sepolia.cjs +105 -0
- package/dist/tokens/sepolia.d.ts +5 -0
- package/dist/tokens/sepolia.d.ts.map +1 -0
- package/dist/tokens/sepolia.js +77 -0
- package/package.json +29 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @avaprotocol/protocols
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f81f84b: Per-chain token subpath exports + new ERC-20 / Chainlink ABI fragments and event topics.
|
|
8
|
+
|
|
9
|
+
**Subpath exports.** Each chain's token catalog is now importable on its own — consumers that only need one chain's tokens get just that file in their bundle instead of all five chains' worth via the root `Tokens` namespace:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { tokens, chainId } from "@avaprotocol/protocols/tokens/sepolia";
|
|
13
|
+
const usdc = tokens.USDC?.address;
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Available subpaths: `./tokens/ethereum`, `./tokens/sepolia`, `./tokens/base`, `./tokens/base-sepolia`, `./tokens/bnb-mainnet`. Each module exports `chainId` and a frozen, symbol-keyed `tokens` map of the existing `TokenChainEntry` shape.
|
|
17
|
+
|
|
18
|
+
The root `import { Tokens } from "@avaprotocol/protocols"` keeps working unchanged — the per-chain modules are additive.
|
|
19
|
+
|
|
20
|
+
**`sideEffects: false`** declared in `package.json` so bundlers can tree-shake unused protocol modules.
|
|
21
|
+
|
|
22
|
+
**ERC-20 additions** (`Protocols.erc20`):
|
|
23
|
+
|
|
24
|
+
- `transferAbi` — single-fragment ABI for `transfer(address,uint256)`
|
|
25
|
+
- `symbolAbi` — single-fragment ABI for `symbol()`
|
|
26
|
+
- `decimalsAbi` — single-fragment ABI for `decimals()`
|
|
27
|
+
- `transferEventAbi` — single-fragment event ABI for `Transfer(address indexed, address indexed, uint256)`
|
|
28
|
+
- `eventTopics.Transfer` — pre-computed keccak256 of the canonical Transfer event signature
|
|
29
|
+
|
|
30
|
+
**Chainlink additions** (`Protocols.chainlink`):
|
|
31
|
+
|
|
32
|
+
- `answerUpdatedEventAbi` — single-fragment event ABI for `AnswerUpdated(int256 indexed, uint256 indexed, uint256)`
|
|
33
|
+
- `eventTopics.AnswerUpdated` — pre-computed keccak256 of the canonical AnswerUpdated event signature
|
|
34
|
+
|
|
35
|
+
These let downstream consumers (templates, SDK tests, summarizers) drop hand-rolled ABI fragments and topic hashes that were re-derived across repos.
|
|
36
|
+
|
|
37
|
+
## 0.5.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- eaa22cb: Backfill the mainnet token catalog from `EigenLayer-AVS/token_whitelist/ethereum.json`. Adds 74 mainnet tokens (`AAVE` is already in via Studio; the new ones are tokens the AVS aggregator's existing whitelist tracked but Studio's catalog never carried — `APE`, `ATH`, `AXS`, `BGB`, `BNB`, `BUIDL`, `Bonk`, `BTT`, `cbBTC`, `Cake`, `CRO`, `DEXE`, `eETH`, `ETHFI`, `FDUSD`, `FLOKI`, and 58 more).
|
|
42
|
+
|
|
43
|
+
Catalog now totals 139 entries across 5 chains: ethereum (30 → **104**), sepolia (6), base (23), base-sepolia (4), bnb-mainnet (2).
|
|
44
|
+
|
|
45
|
+
`src/tokens/data/` is now the _union_ of Studio's app/lib/erc20 catalog and AVS's token_whitelist — captured by two complementary port scripts:
|
|
46
|
+
|
|
47
|
+
- `yarn port:studio` — pulls Studio's rich metadata (description, website, explorer, links) and **wins on existing entries** so per-token descriptions stay up to date.
|
|
48
|
+
- `yarn port:avs` — pulls AVS's broader coverage and **preserves existing entries** so Studio's richer rows aren't overwritten by AVS's barebones rows.
|
|
49
|
+
|
|
50
|
+
Both scripts are idempotent over an already-ported tree.
|
|
51
|
+
|
|
3
52
|
## 0.4.1
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|