@avaprotocol/protocols 0.2.0 → 0.4.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.
@@ -0,0 +1,26 @@
1
+ [
2
+ {
3
+ "id": "0xe4ab69c077896252fafbd49efd26b5d171a32410",
4
+ "name": "Chainlink",
5
+ "symbol": "LINK",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "id": "0x036cbd53842c5426634e7929541ec2318f3dcf7e",
10
+ "name": "USD Coin",
11
+ "symbol": "USDC",
12
+ "decimals": 6
13
+ },
14
+ {
15
+ "id": "0xce8565457cca0fc7542608a2c78610ed7bc66c8c",
16
+ "name": "Tether USD",
17
+ "symbol": "USDT",
18
+ "decimals": 6
19
+ },
20
+ {
21
+ "id": "0x4200000000000000000000000000000000000006",
22
+ "name": "Wrapped Ether",
23
+ "symbol": "WETH",
24
+ "decimals": 18
25
+ }
26
+ ]
@@ -0,0 +1,140 @@
1
+ [
2
+ {
3
+ "id": "0x63706e401c06ac8513145b7687a14804d17f814b",
4
+ "name": "Aave",
5
+ "symbol": "AAVE",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "id": "0x940181a94a35a4569e4529a3cdfb74e38fd98631",
10
+ "name": "Aerodrome",
11
+ "symbol": "AERO",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "id": "0xeb466342c4d449bc9f53a865d5cb90586f405215",
16
+ "name": "Axelar Wrapped USDC",
17
+ "symbol": "axlUSDC",
18
+ "decimals": 6
19
+ },
20
+ {
21
+ "id": "0x7c6b91d9be155a6db01f749217d76ff02a7227f2",
22
+ "name": "Balancer",
23
+ "symbol": "BAL",
24
+ "decimals": 18
25
+ },
26
+ {
27
+ "id": "0x532f27101965dd16442e59d40670faf5ebb142e4",
28
+ "name": "Brett",
29
+ "symbol": "BRETT",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "id": "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
34
+ "name": "Coinbase Wrapped BTC",
35
+ "symbol": "cbBTC",
36
+ "decimals": 8
37
+ },
38
+ {
39
+ "id": "0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22",
40
+ "name": "Coinbase Wrapped Staked ETH",
41
+ "symbol": "cbETH",
42
+ "decimals": 18
43
+ },
44
+ {
45
+ "id": "0x50c5725949a6f0c72e6c4a641f24049a917db0cb",
46
+ "name": "Dai",
47
+ "symbol": "DAI",
48
+ "decimals": 18
49
+ },
50
+ {
51
+ "id": "0x4ed4e862860bed51a9570b96d89af5e1b0efefed",
52
+ "name": "Degen",
53
+ "symbol": "DEGEN",
54
+ "decimals": 18
55
+ },
56
+ {
57
+ "id": "0x88fb150bdc53a65fe94dea0c9ba0a6daf8c6e196",
58
+ "name": "Chainlink",
59
+ "symbol": "LINK",
60
+ "decimals": 18
61
+ },
62
+ {
63
+ "id": "0xbaa5cc21fd487b8fcc2f632f3f4e8d37262a0842",
64
+ "name": "Morpho Token",
65
+ "symbol": "MORPHO",
66
+ "decimals": 18
67
+ },
68
+ {
69
+ "id": "0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c",
70
+ "name": "Rocket Pool ETH",
71
+ "symbol": "rETH",
72
+ "decimals": 18
73
+ },
74
+ {
75
+ "id": "0xab36452dbac151be02b16ca17d8919826072f64a",
76
+ "name": "Reserve Rights",
77
+ "symbol": "RSR",
78
+ "decimals": 18
79
+ },
80
+ {
81
+ "id": "0xac1bd2486aaf3b5c0fc3fd868558b082a531b2b4",
82
+ "name": "Toshi",
83
+ "symbol": "TOSHI",
84
+ "decimals": 18
85
+ },
86
+ {
87
+ "id": "0xc3de830ea07524a0761646a6a4e4be0e114a3c83",
88
+ "name": "Uniswap",
89
+ "symbol": "UNI",
90
+ "decimals": 18
91
+ },
92
+ {
93
+ "id": "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca",
94
+ "name": "USD Base Coin",
95
+ "symbol": "USDbC",
96
+ "decimals": 6
97
+ },
98
+ {
99
+ "id": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
100
+ "name": "USD Coin",
101
+ "symbol": "USDC",
102
+ "decimals": 6
103
+ },
104
+ {
105
+ "id": "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",
106
+ "name": "Bridged Tether USD",
107
+ "symbol": "USDT",
108
+ "decimals": 6
109
+ },
110
+ {
111
+ "id": "0x0b3e328455c4059eeb9e3f84b5543f74e24e7e1b",
112
+ "name": "Virtual Protocol",
113
+ "symbol": "VIRTUAL",
114
+ "decimals": 18
115
+ },
116
+ {
117
+ "id": "0xa88594d404727625a9437c3f886c7643872296ae",
118
+ "name": "WELL",
119
+ "symbol": "WELL",
120
+ "decimals": 18
121
+ },
122
+ {
123
+ "id": "0x4200000000000000000000000000000000000006",
124
+ "name": "Wrapped Ether",
125
+ "symbol": "WETH",
126
+ "decimals": 18
127
+ },
128
+ {
129
+ "id": "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
130
+ "name": "Wrapped liquid staked Ether 2.0",
131
+ "symbol": "wstETH",
132
+ "decimals": 18
133
+ },
134
+ {
135
+ "id": "0x9eaf8c1e34f05a589eda6bafdf391cf6ad3cb239",
136
+ "name": "yearn.finance",
137
+ "symbol": "YFI",
138
+ "decimals": 18
139
+ }
140
+ ]
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "id": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
4
+ "name": "Binance-Peg USD Coin",
5
+ "symbol": "USDC",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "id": "0x55d398326f99059ff775485246999027b3197955",
10
+ "name": "Binance-Peg Tether USD",
11
+ "symbol": "USDT",
12
+ "decimals": 18
13
+ }
14
+ ]
@@ -0,0 +1,182 @@
1
+ [
2
+ {
3
+ "id": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9",
4
+ "name": "Aave",
5
+ "symbol": "AAVE",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "id": "0xb50721bcf8d664c30412cfbc6cf7a15145234ad1",
10
+ "name": "Arbitrum",
11
+ "symbol": "ARB",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "id": "0xc00e94cb662c3520282e6f5717214004a7f26888",
16
+ "name": "Compound",
17
+ "symbol": "COMP",
18
+ "decimals": 18
19
+ },
20
+ {
21
+ "id": "0xd533a949740bb3306d119cc777fa900ba034cd52",
22
+ "name": "Curve DAO Token",
23
+ "symbol": "CRV",
24
+ "decimals": 18
25
+ },
26
+ {
27
+ "id": "0x6b175474e89094c44da98b954eedeac495271d0f",
28
+ "name": "Dai",
29
+ "symbol": "DAI",
30
+ "decimals": 18
31
+ },
32
+ {
33
+ "id": "0x92d6c1e31e14520e676a687f0a93788b716beff5",
34
+ "name": "dYdX",
35
+ "symbol": "DYDX",
36
+ "decimals": 18
37
+ },
38
+ {
39
+ "id": "0xec53bf9167f50cdeb3ae105f56099aaab9061f83",
40
+ "name": "Eigen",
41
+ "symbol": "EIGEN",
42
+ "decimals": 18
43
+ },
44
+ {
45
+ "id": "0x57e114b691db790c35207b2e685d4a43181e6061",
46
+ "name": "ENA",
47
+ "symbol": "ENA",
48
+ "decimals": 18
49
+ },
50
+ {
51
+ "id": "0xc18360217d8f7ab5e7c516566761ea12ce7f9d72",
52
+ "name": "Ethereum Name Service",
53
+ "symbol": "ENS",
54
+ "decimals": 18
55
+ },
56
+ {
57
+ "id": "0xaea46a60368a7bd060eec7df8cba43b7ef41ad85",
58
+ "name": "Fetch.ai",
59
+ "symbol": "FET",
60
+ "decimals": 18
61
+ },
62
+ {
63
+ "id": "0x853d955acef822db058eb8505911ed77f175b99e",
64
+ "name": "Frax",
65
+ "symbol": "FRAX",
66
+ "decimals": 18
67
+ },
68
+ {
69
+ "id": "0xc944e90c64b2c07662a292be6244bdf05cda44a7",
70
+ "name": "The Graph",
71
+ "symbol": "GRT",
72
+ "decimals": 18
73
+ },
74
+ {
75
+ "id": "0x5a98fcbea516cf06857215779fd812ca3bef1b32",
76
+ "name": "Lido DAO",
77
+ "symbol": "LDO",
78
+ "decimals": 18
79
+ },
80
+ {
81
+ "id": "0x514910771af9ca656af840dff83e8264ecf986ca",
82
+ "name": "Chainlink",
83
+ "symbol": "LINK",
84
+ "decimals": 18
85
+ },
86
+ {
87
+ "id": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
88
+ "name": "Maker",
89
+ "symbol": "MKR",
90
+ "decimals": 18
91
+ },
92
+ {
93
+ "id": "0x45804880de22913dafe09f4980848ece6ecbaf78",
94
+ "name": "PAX Gold",
95
+ "symbol": "PAXG",
96
+ "decimals": 18
97
+ },
98
+ {
99
+ "id": "0x808507121b80c02388fad14726482e061b8da827",
100
+ "name": "Pendle",
101
+ "symbol": "PENDLE",
102
+ "decimals": 18
103
+ },
104
+ {
105
+ "id": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
106
+ "name": "Pepe",
107
+ "symbol": "PEPE",
108
+ "decimals": 18
109
+ },
110
+ {
111
+ "id": "0x6c3ea9036406852006290770bedfcaba0e23a0e8",
112
+ "name": "PayPal USD",
113
+ "symbol": "PYUSD",
114
+ "decimals": 6
115
+ },
116
+ {
117
+ "id": "0x6de037ef9ad2725eb40118bb1702ebb27e4aeb24",
118
+ "name": "Render Token",
119
+ "symbol": "RNDR",
120
+ "decimals": 18
121
+ },
122
+ {
123
+ "id": "0xd33526068d116ce69f19a9ee46f0bd304f21a51f",
124
+ "name": "Rocket Pool",
125
+ "symbol": "RPL",
126
+ "decimals": 18
127
+ },
128
+ {
129
+ "id": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",
130
+ "name": "SHIBA INU",
131
+ "symbol": "SHIB",
132
+ "decimals": 18
133
+ },
134
+ {
135
+ "id": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f",
136
+ "name": "Synthetix",
137
+ "symbol": "SNX",
138
+ "decimals": 18
139
+ },
140
+ {
141
+ "id": "0xae7ab96520de3a18e5e111b5eaab095312d7fe84",
142
+ "name": "stETH",
143
+ "symbol": "stETH",
144
+ "decimals": 18
145
+ },
146
+ {
147
+ "id": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
148
+ "name": "Uniswap",
149
+ "symbol": "UNI",
150
+ "decimals": 18
151
+ },
152
+ {
153
+ "id": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
154
+ "name": "USD Coin",
155
+ "symbol": "USDC",
156
+ "decimals": 6
157
+ },
158
+ {
159
+ "id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
160
+ "name": "Tether",
161
+ "symbol": "USDT",
162
+ "decimals": 6
163
+ },
164
+ {
165
+ "id": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
166
+ "name": "Wrapped BTC",
167
+ "symbol": "WBTC",
168
+ "decimals": 8
169
+ },
170
+ {
171
+ "id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
172
+ "name": "WETH",
173
+ "symbol": "WETH",
174
+ "decimals": 18
175
+ },
176
+ {
177
+ "id": "0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0",
178
+ "name": "Wrapped liquid staked Ether 2.0",
179
+ "symbol": "wstETH",
180
+ "decimals": 18
181
+ }
182
+ ]
@@ -0,0 +1,55 @@
1
+ import { type TokenByChain, type TokenChainEntry } from "./types";
2
+ export type { TokenByChain, TokenChainEntry, TokenLinks } from "./types";
3
+ /**
4
+ * Symbol → per-chain entry. The outer object is frozen at module
5
+ * load, so the symbol set is immutable. The inner per-chain maps
6
+ * (e.g. `Tokens.USDC`) are NOT deep-frozen — callers must treat
7
+ * them as logically read-only. The shallow freeze is the right
8
+ * tradeoff: deep-freezing the chain maps + their entries on every
9
+ * import would add overhead for a guarantee no consumer has asked
10
+ * for. Add a deep-freeze pass here if a real misuse case emerges.
11
+ *
12
+ * Symbol keys preserve the casing used by the token's canonical
13
+ * branding as published by upstream catalogs. Most symbols are
14
+ * uppercase (USDC, WETH, AAVE) but mixed-case tickers exist where
15
+ * the project explicitly brands that way (stETH, wstETH, axlUSDC,
16
+ * cbBTC, USDbC, rETH, sUSDe). The catalog is intentionally NOT
17
+ * case-insensitive at this level — `Tokens.usdc` is `undefined`,
18
+ * not USDC — so callers needing fuzzy lookup should normalize at
19
+ * their own boundary or use `lookupToken(chainId, address)` which
20
+ * lookups by address (case-insensitive on address, but symbol-
21
+ * agnostic).
22
+ */
23
+ export declare const Tokens: Readonly<Record<string, TokenByChain>>;
24
+ /**
25
+ * Reverse lookup: given a contract address, find the token entry plus
26
+ * its symbol. Address matching is case-insensitive so callers can pass
27
+ * checksum or lowercase without normalizing upstream.
28
+ *
29
+ * Resolution strategy:
30
+ * 1. When `chainId` is provided, prefer a match registered for that
31
+ * chain.
32
+ * 2. If no chain-specific match (or no chainId), scan every chain
33
+ * for the address. Necessary when the caller's chain context
34
+ * diverges from where the address actually lives — happens in
35
+ * multi-chain dev gateways where the workflow targets one chain
36
+ * but the runtime is bound to a different one. The fallback is
37
+ * best-effort: the same 20-byte address is reachable on every
38
+ * EVM chain, so the scan only happens to be correct because the
39
+ * catalog only ships well-known canonical tokens whose contract
40
+ * addresses (mainnet USDC, OP-stack WETH predeploys, etc.) don't
41
+ * collide across chains in practice. Callers should still pass
42
+ * the right chainId when they have it.
43
+ *
44
+ * Returns `undefined` when no chain in the catalog carries the
45
+ * address, or when the address is missing/falsy.
46
+ *
47
+ * Typical use: aggregator payloads ship `tokenSymbol="UNKNOWN"` for
48
+ * tokens whose chain-specific RPC enrichment failed; consumers fall
49
+ * through to `lookupToken(chainId, contractAddress)` and recover the
50
+ * symbol + decimals from this catalog.
51
+ */
52
+ export declare function lookupToken(chainId: number | undefined, address: string | undefined): (TokenChainEntry & {
53
+ symbol: string;
54
+ }) | undefined;
55
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AA6BA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AAQlE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAqDzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAwC,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,CAAC,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,CAsBpD"}
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "id": "0x3e622317f8c93f7328350cf0b56d9ed4c620c5d6",
4
+ "name": "Dai Stablecoin",
5
+ "symbol": "DAI",
6
+ "decimals": 18
7
+ },
8
+ {
9
+ "id": "0x779877a7b0d9e8603169ddbd7836e478b4624789",
10
+ "name": "ChainLink Token",
11
+ "symbol": "LINK",
12
+ "decimals": 18
13
+ },
14
+ {
15
+ "id": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",
16
+ "name": "Uniswap",
17
+ "symbol": "UNI",
18
+ "decimals": 18
19
+ },
20
+ {
21
+ "id": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238",
22
+ "name": "USD Coin",
23
+ "symbol": "USDC",
24
+ "decimals": 6
25
+ },
26
+ {
27
+ "id": "0xaa8e23fb1079ea71e0a56f48a2aa51851d8433d0",
28
+ "name": "Tether USD",
29
+ "symbol": "USDT",
30
+ "decimals": 6
31
+ },
32
+ {
33
+ "id": "0xfff9976782d46cc05630d1f6ebab18b2324d6b14",
34
+ "name": "Wrapped Ether",
35
+ "symbol": "WETH",
36
+ "decimals": 18
37
+ }
38
+ ]
@@ -0,0 +1,59 @@
1
+ import { type ChainId } from "../chains";
2
+ /**
3
+ * External reference links for a token. All fields optional — the
4
+ * catalog only records what's actually known per token. Add new keys
5
+ * here when adding a category we want to surface; consumers ignore
6
+ * unknown keys harmlessly.
7
+ *
8
+ * Keys follow the names used by upstream catalogs (Studio's
9
+ * `app/lib/erc20/*.json` in particular) so the port is mechanical.
10
+ * `x` is the renamed Twitter; we deliberately use the current name
11
+ * rather than carrying a `twitter` alias.
12
+ */
13
+ export interface TokenLinks {
14
+ readonly github?: string;
15
+ readonly x?: string;
16
+ readonly coingecko?: string;
17
+ readonly coinmarketcap?: string;
18
+ readonly reddit?: string;
19
+ readonly blog?: string;
20
+ readonly whitepaper?: string;
21
+ readonly facebook?: string;
22
+ readonly discord?: string;
23
+ readonly telegram?: string;
24
+ readonly medium?: string;
25
+ readonly docs?: string;
26
+ readonly forum?: string;
27
+ readonly youtube?: string;
28
+ }
29
+ /**
30
+ * Per-chain token deployment record. `address` and `decimals` are
31
+ * required because they're the universal lookup primitives every
32
+ * consumer needs. All other fields are optional metadata.
33
+ *
34
+ * `name` is per-chain because some tokens use different display names
35
+ * on different deployments (e.g. AAVE's faucet-LINK on Sepolia is
36
+ * "ChainLink Token" vs. "Chainlink" on mainnet). When the chains
37
+ * agree, the same string is fine to repeat.
38
+ *
39
+ * `logoUrl` is a fully qualified URL — typically a GitHub Raw or CDN
40
+ * link. Studio renders local PNGs by resolving symbol+chain itself
41
+ * and ignores this field; backend consumers may surface the URL
42
+ * directly in summaries or skip it.
43
+ */
44
+ export interface TokenChainEntry {
45
+ readonly address: `0x${string}`;
46
+ readonly decimals: number;
47
+ readonly name?: string;
48
+ readonly description?: string;
49
+ readonly website?: string;
50
+ readonly explorer?: string;
51
+ readonly logoUrl?: string;
52
+ readonly links?: TokenLinks;
53
+ }
54
+ /**
55
+ * Map of `ChainId → TokenChainEntry`. `Partial` because no token is
56
+ * deployed on every chain in the catalog.
57
+ */
58
+ export type TokenByChain = Partial<Record<ChainId, TokenChainEntry>>;
59
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tokens/types.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,KAAK,MAAM,EAAE,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avaprotocol/protocols",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Multi-chain catalog of DeFi protocol contract addresses, ABI fragments, and event topic hashes — covers AAVE V3, Uniswap V3, Chainlink, Lido, Morpho, and more.",
5
5
  "keywords": [
6
6
  "defi",
@@ -50,17 +50,25 @@
50
50
  "scripts": {
51
51
  "build:declarations": "tsc -p tsconfig.build.json",
52
52
  "build:js": "tsup src/index.ts --format cjs,esm --target es2020",
53
- "build": "yarn clean:dist && yarn build:declarations && yarn build:js",
53
+ "build:tokens-sidecar": "tsx scripts/build-tokens-sidecar.ts",
54
+ "build": "yarn clean:dist && yarn build:declarations && yarn build:js && yarn build:tokens-sidecar",
55
+ "port:studio": "tsx scripts/port-from-studio.ts",
54
56
  "clean": "rm -rf node_modules dist tsconfig.tsbuildinfo",
55
57
  "clean:dist": "rm -rf dist tsconfig.tsbuildinfo",
56
58
  "test": "vitest",
57
59
  "test:run": "vitest run",
58
60
  "typecheck": "tsc --noEmit",
59
61
  "lint": "tsc --noEmit",
60
- "prepublishOnly": "yarn build"
62
+ "prepublishOnly": "yarn build",
63
+ "changeset": "changeset",
64
+ "version-packages": "changeset version",
65
+ "release": "yarn build && changeset publish"
61
66
  },
62
67
  "devDependencies": {
68
+ "@changesets/cli": "^2.31.0",
69
+ "ethers": "^6.16.0",
63
70
  "tsup": "^8.5.0",
71
+ "tsx": "^4.19.0",
64
72
  "typescript": "^5.5.4",
65
73
  "vitest": "^1.6.0"
66
74
  },