-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathrpc-endpoints.ts
More file actions
55 lines (54 loc) · 1.18 KB
/
rpc-endpoints.ts
File metadata and controls
55 lines (54 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { MockEventsObject } from '../../../framework';
/**
* Mock data for external RPC endpoints used in E2E testing.
* Blocks actual requests to external RPC providers that are not needed for testing.
*/
export const DEFAULT_RPC_ENDPOINT_MOCKS: MockEventsObject = {
POST: [
{
urlEndpoint: 'https://carrot.megaeth.com/rpc',
responseCode: 200,
response: {
jsonrpc: '2.0',
id: 1,
result: '0x0',
},
},
{
urlEndpoint: 'https://polygon-rpc.com',
responseCode: 200,
response: {
jsonrpc: '2.0',
id: 1,
result: '0x0',
},
},
{
urlEndpoint: 'https://api.avax.network/ext/bc/C/rpc',
responseCode: 200,
response: {
jsonrpc: '2.0',
id: 1,
result: '0x0',
},
},
{
urlEndpoint: 'https://mainnet.era.zksync.io/',
responseCode: 200,
response: {
jsonrpc: '2.0',
id: 1,
result: '0x0',
},
},
{
urlEndpoint: /^https:\/\/virtual\.mainnet\.rpc\.tenderly\.co\/.+$/,
responseCode: 200,
response: {
jsonrpc: '2.0',
id: 1,
result: '0x0',
},
},
],
};