@@ -12,26 +12,22 @@ import {
12
12
const MAINNET_FALLBACK_HTTP_RPCS = [
13
13
"https://api.mycryptoapi.com/eth" ,
14
14
"https://cloudflare-eth.com" ,
15
- "https://ethereum.publicnode.com" ,
15
+ "https://ethereum-rpc .publicnode.com" ,
16
16
"https://mainnet.gateway.tenderly.co" ,
17
17
"https://rpc.blocknative.com/boost" ,
18
18
"https://rpc.flashbots.net/fast" ,
19
19
"https://rpc.mevblocker.io/fullprivacy" ,
20
20
] ;
21
21
22
22
const MAINNET_FALLBACK_WS_RPCS = [
23
- "wss://ethereum.publicnode.com" ,
23
+ "wss://ethereum-rpc .publicnode.com" ,
24
24
"wss://mainnet.gateway.tenderly.co" ,
25
25
] ;
26
26
27
27
const CHAIN_RPC_TEST_CASES : [ ChainRPCOptions , string [ ] ] [ ] = [
28
28
[
29
29
{ thirdwebApiKey : "SAMPLE_KEY" } ,
30
- [
31
- "https://ethereum.rpc.thirdweb.com/SAMPLE_KEY" ,
32
- "https://1.rpc.thirdweb.com/SAMPLE_KEY" ,
33
- ...MAINNET_FALLBACK_HTTP_RPCS ,
34
- ] ,
30
+ [ "https://1.rpc.thirdweb.com/SAMPLE_KEY" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
35
31
] ,
36
32
[
37
33
{ alchemyApiKey : "SAMPLE_KEY" } ,
@@ -63,26 +59,17 @@ describe("chains/utils", () => {
63
59
[
64
60
undefined ,
65
61
undefined ,
66
- [
67
- "https://ethereum.rpc.thirdweb.com/" ,
68
- "https://1.rpc.thirdweb.com/" ,
69
- ...MAINNET_FALLBACK_HTTP_RPCS ,
70
- ] ,
62
+ [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
71
63
] ,
72
64
[
73
65
undefined ,
74
66
"http" ,
75
- [
76
- "https://ethereum.rpc.thirdweb.com/" ,
77
- "https://1.rpc.thirdweb.com/" ,
78
- ...MAINNET_FALLBACK_HTTP_RPCS ,
79
- ] ,
67
+ [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
80
68
] ,
81
69
[
82
70
"SAMPLE_CLIENT_KEY" ,
83
71
undefined ,
84
72
[
85
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
86
73
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
87
74
...MAINNET_FALLBACK_HTTP_RPCS ,
88
75
] ,
@@ -91,7 +78,6 @@ describe("chains/utils", () => {
91
78
"SAMPLE_CLIENT_KEY" ,
92
79
"http" ,
93
80
[
94
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
95
81
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
96
82
...MAINNET_FALLBACK_HTTP_RPCS ,
97
83
] ,
@@ -117,7 +103,7 @@ describe("chains/utils", () => {
117
103
width : 512 ,
118
104
format : "png" ,
119
105
} ,
120
- rpc : [ "https://ethereum .rpc.thirdweb.com/${THIRDWEB_API_KEY}" ] ,
106
+ rpc : [ "https://1 .rpc.thirdweb.com/${THIRDWEB_API_KEY}" ] ,
121
107
nativeCurrency : {
122
108
name : "Ether" ,
123
109
symbol : "ETH" ,
@@ -153,11 +139,7 @@ describe("chains/utils", () => {
153
139
undefined ,
154
140
{
155
141
...Ethereum ,
156
- rpc : [
157
- "https://ethereum.rpc.thirdweb.com/" ,
158
- "https://1.rpc.thirdweb.com/" ,
159
- ...MAINNET_FALLBACK_HTTP_RPCS ,
160
- ] ,
142
+ rpc : [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
161
143
} ,
162
144
] ,
163
145
[
@@ -166,7 +148,6 @@ describe("chains/utils", () => {
166
148
{
167
149
...Ethereum ,
168
150
rpc : [
169
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
170
151
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY" ,
171
152
...MAINNET_FALLBACK_HTTP_RPCS ,
172
153
] ,
@@ -187,26 +168,17 @@ describe("chains/utils with APP_BUNDLE_ID", () => {
187
168
[
188
169
undefined ,
189
170
undefined ,
190
- [
191
- "https://ethereum.rpc.thirdweb.com/" ,
192
- "https://1.rpc.thirdweb.com/" ,
193
- ...MAINNET_FALLBACK_HTTP_RPCS ,
194
- ] ,
171
+ [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
195
172
] ,
196
173
[
197
174
undefined ,
198
175
"http" ,
199
- [
200
- "https://ethereum.rpc.thirdweb.com/" ,
201
- "https://1.rpc.thirdweb.com/" ,
202
- ...MAINNET_FALLBACK_HTTP_RPCS ,
203
- ] ,
176
+ [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
204
177
] ,
205
178
[
206
179
"SAMPLE_CLIENT_KEY" ,
207
180
undefined ,
208
181
[
209
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
210
182
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
211
183
...MAINNET_FALLBACK_HTTP_RPCS ,
212
184
] ,
@@ -215,7 +187,6 @@ describe("chains/utils with APP_BUNDLE_ID", () => {
215
187
"SAMPLE_CLIENT_KEY" ,
216
188
"http" ,
217
189
[
218
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
219
190
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
220
191
...MAINNET_FALLBACK_HTTP_RPCS ,
221
192
] ,
@@ -230,11 +201,7 @@ describe("chains/utils with APP_BUNDLE_ID", () => {
230
201
undefined ,
231
202
{
232
203
...Ethereum ,
233
- rpc : [
234
- "https://ethereum.rpc.thirdweb.com/" ,
235
- "https://1.rpc.thirdweb.com/" ,
236
- ...MAINNET_FALLBACK_HTTP_RPCS ,
237
- ] ,
204
+ rpc : [ "https://1.rpc.thirdweb.com/" , ...MAINNET_FALLBACK_HTTP_RPCS ] ,
238
205
} ,
239
206
] ,
240
207
[
@@ -243,7 +210,6 @@ describe("chains/utils with APP_BUNDLE_ID", () => {
243
210
{
244
211
...Ethereum ,
245
212
rpc : [
246
- "https://ethereum.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
247
213
"https://1.rpc.thirdweb.com/SAMPLE_CLIENT_KEY/?bundleId=com.thirdweb.rpc" ,
248
214
...MAINNET_FALLBACK_HTTP_RPCS ,
249
215
] ,
0 commit comments