-
Notifications
You must be signed in to change notification settings - Fork 308
/
fixtures.ts
63 lines (62 loc) · 1.55 KB
/
fixtures.ts
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
56
57
58
59
60
61
62
63
import nock from 'nock'
export const mockResponseSuccess = (): nock.Scope =>
nock('https://ethgas.watch')
.get('/api/gas')
.reply(
200,
() => ({
slow: { gwei: 141, usd: 13.42 },
normal: { gwei: 148, usd: 14.09 },
fast: { gwei: 170, usd: 16.18 },
instant: { gwei: 192, usd: 18.28 },
ethPrice: 4533.01,
lastUpdated: 1637862962320,
sources: [
{
name: 'Etherscan',
source: 'https://etherscan.io/gastracker',
fast: 145,
standard: 144,
slow: 144,
lastBlock: 13684916,
},
{
name: 'Gas station',
source: 'https://ethgasstation.info/',
instant: 183,
fast: 172,
standard: 148,
slow: 132,
lastBlock: 13684915,
},
{
name: 'MyCrypto',
source: 'https://gas.mycryptoapi.com/',
instant: 208,
fast: 168,
standard: 148,
slow: 138,
lastBlock: 13684915,
},
{
name: 'Upvest',
source: 'https://doc.upvest.co/reference#ethereum-fees',
instant: 192,
fast: 192,
standard: 166,
slow: 162,
lastUpdate: 1637862962296,
},
],
}),
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)