@merkl/api 0.16.3 → 0.16.4

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.
@@ -7,33 +7,11 @@ export class BoostService {
7
7
  const protocol = query.protocol;
8
8
  const target = query.target;
9
9
  const url = `https://www.data-openblocklabs.com/zksync/boosts/${protocol}/${target}`;
10
- // console.log(url);
11
- // return (
12
- // await axios.post(url, body, {
13
- // headers: {
14
- // "Content-Type": "application/json",
15
- // }}));
16
- return [
17
- { address: "0x684566c9ffcac7f6a04c3a9997000d2d58c00824", boost: "0" },
18
- { address: "0x29dfdd80d6acc0f9028d8a6fa7d7d448342e25c1", boost: "0" },
19
- { address: "0x5b9effdcbd65946f2b143725dc244563248aa4ee", boost: "0" },
20
- { address: "0xd2262a05e225ce0c61fb699fdcf14068132dd362", boost: "0" },
21
- { address: "0x7da8481e24303d55f29f0c06174f18b30b81c9ac", boost: "0" },
22
- { address: "0x1d098a8d7fa63a39e0884b720f86f9ba8cbbeef1", boost: "0" },
23
- { address: "0x7f3e3d663a5f29274d0809020c675f5cc3d1429a", boost: "0" },
24
- { address: "0x7f04f7fdad3272b806e3d57bec445e0ece82f2ad", boost: "0" },
25
- { address: "0xfe769b6f39a000ff508b5baf8fbe3a1f516f258c", boost: "0" },
26
- { address: "0xd635736f8ac2241cdfcc3ee02d3f3bac1f78431f", boost: "0" },
27
- { address: "0xb38c7e2b4ba3cdc4eaea863cbb01470353c5ea16", boost: "0" },
28
- { address: "0xe37885b5e1187f7f618407fb0c14a3383998348e", boost: "0" },
29
- { address: "0xe01f660b304be815627628c38c2dcdf37f68245e", boost: "0" },
30
- { address: "0xe746db07d2b4babf5f2051d40987b7278414192f", boost: "0" },
31
- { address: "0xa0265ed27561b25c0e7ad3ed1fed74c2ee5f8cdf", boost: "0" },
32
- { address: "0xdf5ad5a87fceaacb1ecef40e8e61c42c92339a10", boost: "0" },
33
- { address: "0xc91fc9dd7f1bb6ec429eddb577b9ace6236b2147", boost: "0" },
34
- { address: "0x8b81420441ac3933c58d1190c8499c2f89eb1263", boost: "0" },
35
- { address: "0x0000000000000000000000000000000000000000", boost: "1" },
36
- ];
10
+ return (await axios.post(url, body, {
11
+ headers: {
12
+ "Content-Type": "application/json",
13
+ },
14
+ })).data.map(({ address, boost }) => ({ address, boost: boost.toString() }));
37
15
  }
38
16
  static async getOpenBlockBoostDefault() {
39
17
  return [