Skip to content

Commit 0be2aff

Browse files
authored
feat: add adresses and utility to guess block times (#24)
1 parent 73e4585 commit 0be2aff

15 files changed

Lines changed: 2943 additions & 151 deletions

File tree

.changeset/clever-deer-poke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bgd-labs/toolbox": patch
3+
---
4+
5+
Patch quicknode avalanche url

packages/toolbox/recordings/rpc-helpers_86922484/recording.har

Lines changed: 1454 additions & 0 deletions
Large diffs are not rendered by default.

packages/toolbox/src/browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export * from "./aave/umbrella/rewards";
1212
export * from "./abis";
1313
export * from "./math/binary";
1414
export * from "./math/slot";
15+
export * from "./ecosystem/addresses";
1516
export * from "./ecosystem/explorers";
1617
export * from "./ecosystem/tenderly";
1718
export * from "./ecosystem/tenderly.types";
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { ChainId } from "./chainIds";
2+
3+
// https://developers.velora.xyz/api/velora-api/velora-delta-api/contracts
4+
export const VELORA_PORTIKUS = {
5+
[ChainId.mainnet]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
6+
[ChainId.base]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
7+
[ChainId.optimism]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
8+
[ChainId.arbitrum]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
9+
[ChainId.polygon]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
10+
[ChainId.bnb]: "0x0000000000bbF5c5Fd284e657F01Bd000933C96D",
11+
};
12+
13+
/**
14+
* The following is a list of venues that offer free flashloans
15+
*/
16+
export const BALANCER_VAULT_V2 = "0xBA12222222228d8Ba445958a75a0704d566BF2C8";
17+
export const BALANCER_VAULT_V3 = "0xbA1333333333a1BA1108E8412f11850A5C319bA9";
18+
19+
export const UNISWAP_V4_MANAGER = {
20+
[ChainId.mainnet]: "0x000000000004444c5dc75cB358380D2e3dE08A90",
21+
[ChainId.base]: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22+
[ChainId.optimism]: "0x9a13f98cb987694c9f086b1f5eb990eea8264ec3",
23+
[ChainId.arbitrum]: "0x360e68faccca8ca495c1b759fd9eee466db9fb32",
24+
[ChainId.polygon]: "0x67366782805870060151383f4bbff9dab53e5cd6",
25+
[ChainId.ink]: "0x360e68faccca8ca495c1b759fd9eee466db9fb32",
26+
[ChainId.soneium]: "0x360e68faccca8ca495c1b759fd9eee466db9fb32",
27+
[ChainId.avalanche]: "0x06380c0e0912312b5150364b9dc4542ba0dbbc85",
28+
[ChainId.bnb]: "0x28e2ea090877bf75740558f6bfb36a5ffee9e9df",
29+
[ChainId.celo]: "0x288dc841A52FCA2707c6947B3A777c5E56cd87BC",
30+
[ChainId.megaeth]: "0xacb7e78fa05d562e0a5d3089ec896d57d057d38e",
31+
};
32+
33+
export const MORPHO = {
34+
[ChainId.mainnet]: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
35+
[ChainId.arbitrum]: "0x6c247b1F6182318877311737BaC0844bAa518F5e",
36+
[ChainId.avalanche]: "0x895383274303AA19fe978AFB4Ac55C7f094f982C",
37+
[ChainId.base]: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
38+
[ChainId.bnb]: "0x01b0Bd309AA75547f7a37Ad7B1219A898E67a83a",
39+
[ChainId.celo]: "0xd24ECdD8C1e0E57a4E26B1a7bbeAa3e95466A569",
40+
[ChainId.gnosis]: "0xB74D4dd451E250bC325AFF0556D717e4E2351c66",
41+
[ChainId.ink]: "0x857f3EefE8cbda3Bc49367C996cd664A880d3042",
42+
[ChainId.linea]: "0x6B0D716aC0A45536172308e08fC2C40387262c9F",
43+
[ChainId.plasma]: "0x2fF74A46536f5c67ef5A42FD5B4e2Ed8A2cee249",
44+
[ChainId.scroll]: "0x2d012EdbAdc37eDc2BC62791B666f9193FDF5a55",
45+
[ChainId.soneium]: "0xE75Fc5eA6e74B824954349Ca351eb4e671ADA53a",
46+
[ChainId.sonic]: "0xd6c916eB7542D0Ad3f18AEd0FCBD50C582cfa95f",
47+
};

packages/toolbox/src/ecosystem/generated/alchemyNetworkMap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const alchemyNetworkMap = {
3434
1328: "sei-testnet",
3535
1329: "sei-mainnet",
3636
1514: "story-mainnet",
37+
1672: "pharos-mainnet",
3738
1868: "soneium-mainnet",
3839
1946: "soneium-minato",
3940
2020: "ronin-mainnet",
@@ -65,7 +66,6 @@ export const alchemyNetworkMap = {
6566
9746: "plasma-testnet",
6667
10143: "monad-testnet",
6768
10200: "gnosis-chiado",
68-
10218: "tea-sepolia",
6969
11011: "shape-sepolia",
7070
11124: "abstract-testnet",
7171
14601: "sonic-testnet",
@@ -104,6 +104,7 @@ export const alchemyNetworkMap = {
104104
534352: "scroll-mainnet",
105105
560048: "eth-hoodi",
106106
685685: "gensyn-testnet",
107+
688689: "pharos-atlantic",
107108
763373: "ink-sepolia",
108109
808813: "bob-sepolia",
109110
5042002: "arc-testnet",

packages/toolbox/src/ecosystem/generated/blockscoutExplorers.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ export const blockscoutExplorers = {
132132
api: "https://bob-sepolia.explorer.gobob.xyz/api",
133133
explorer: "https://bob-sepolia.explorer.gobob.xyz/"
134134
},
135-
113: {
136-
api: "https://coston2-explorer.flare.network/api",
137-
explorer: "https://coston2-explorer.flare.network/"
138-
},
139135
114: {
140136
api: "https://coston2-explorer.flare.network/api",
141137
explorer: "https://coston2-explorer.flare.network/"
@@ -769,8 +765,8 @@ export const blockscoutExplorers = {
769765
explorer: "https://testnet.bitciexplorer.com"
770766
},
771767
1919: {
772-
api: "https://explorer.turkchain1919.com/api",
773-
explorer: "https://explorer.turkchain1919.com/"
768+
api: "https://turkscan.com/api",
769+
explorer: "https://turkscan.com"
774770
},
775771
1923: {
776772
api: "https://explorer.swellnetwork.io/api",
@@ -1164,10 +1160,6 @@ export const blockscoutExplorers = {
11641160
api: "https://explore.steamexchange.io/api",
11651161
explorer: "https://explore.steamexchange.io/"
11661162
},
1167-
6342: {
1168-
api: "https://megaeth-testnet.blockscout.com/api",
1169-
explorer: "https://megaeth-testnet.blockscout.com/"
1170-
},
11711163
6343: {
11721164
api: "https://megaeth-testnet-v2.blockscout.com/api",
11731165
explorer: "https://megaeth-testnet-v2.blockscout.com/"
@@ -2276,10 +2268,6 @@ export const blockscoutExplorers = {
22762268
api: "https://explorer.saakuru.network/api",
22772269
explorer: "https://explorer.saakuru.network/"
22782270
},
2279-
7777777: {
2280-
api: "https://explorer.zora.energy/api",
2281-
explorer: "https://explorer.zora.energy/"
2282-
},
22832271
7890785: {
22842272
api: "https://blockscout.xga.com/api",
22852273
explorer: "https://blockscout.xga.com/"

0 commit comments

Comments
 (0)