forked from smartcontractkit/external-adapters-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixtures.ts
190 lines (189 loc) · 8.81 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
import nock from 'nock'
export const mockResponseSuccess = (): nock.Scope =>
nock('https://coincodex.com/api/coincodex')
.get('/get_coin/eth')
.reply(
200,
() => ({
symbol: 'ETH',
coin_name: 'Ethereum',
shortname: 'ethereum',
slug: 'ethereum',
display_symbol: 'ETH',
display: 'true',
release_date: '2015-07-30',
ico_price: '0.311420000',
today_open: 4540.318618097,
market_cap_rank: 2,
volume_rank: 4,
description:
'<p>Ethereum is a blockchain network that was launched in July of 2015. While there were numerous founders behind the project, Ethereum was initially proposed by Vitalik Buterin. In order to fund development, the project sold rights to ETH tokens in a sale that took place between July and August of 2014. The currency used by the participants to purchase ETH was Bitcoin. The Ethereum project raised approximately $16 million worth of BTC in its initial coin offering.</p>\n\n<p>Key Ethereum features:</p>\n\n<ul>\n\t<li>Launched in 2015 after a 2014 ICO that raised $16 million</li>\n\t<li>Leading smart contract and dApp platform</li>\n\t<li>Users can create custom tokens that run on top of Ethereum</li>\n\t<li>Ethereum uses proof-of-work but is transitioning to proof-of-stake</li>\n</ul>\n\n<p>Ethereum makes it possible for users to create smart contracts and <a href="/dapp-list/ethereum/" target="_blank">decentralized applications (dApps)</a>. Once these apps and contracts are deployed to the Ethereum network, they are executed exactly as programmed and are exceedingly difficult to censor.</p>\n\n<p>The Ethereum network is secured through proof-of-work, similarly to the design employed by <a href="/crypto/bitcoin/" target="_blank">Bitcoin</a>. However, the goal is for Ethereum to transition to proof-of-stake consensus to improve the scalability of the network and reduce the negative environmental impact of mining.</p>\n\n<p>ETH is the native asset of the Ethereum blockchain, and it is used to pay the fees necessary for sending transactions and interacting with dApps. However, ETH is not the only asset that can be sent through Ethereum – users can create custom tokens and set the parameters such as the maximum supply to their liking. </p>\n\n<p>In fact, this was one of the features that enabled Ethereum to get a lot traction within the cryptocurrency community. Ethereum’s technology enabled projects to run <a href="/ico-calendar/" target="_blank">initial coin offerings (ICOs)</a>, and Ethereum continues to be the most popular platform for token sales.</p>\n\n<p>On Ethereum, users can also create <a href="/article/2354/what-are-non-fungible-tokens-nfts/" target="_blank">non-fungible tokens (NFTs)</a>, which is a unique use-case enabled by blockchain technology – NFTs are verifiably scarce digital objects, which is why they’re sometimes called “crypto collectibles”. CryptoKitties is an example of a dApp that leverages NFTs.</p>\n\n<p>One of the major emerging trends in the Ethereum ecosystem is decentralized finance, commonly referred to with the abbreviation DeFi. This term refers to the numerous protocols built on top of Ethereum that allow users to lend, borrow, buy and sell their cryptocurrency without having to trust an intermediary in the process. </p>\n\n<p>On CoinCodex, you can stay up to date with the latest information regarding the Ethereum price, market cap and news.</p>\n',
price_high_24_usd: 4643.006075327,
price_low_24_usd: 4458.616999837,
start: '2014-06-01 00:00:00',
end: '2014-08-31 23:59:00',
is_promoted: 'false',
message: '',
website: 'https://www.ethereum.org/',
whitepaper: '',
total_supply: null,
supply: 118590048,
platform: 'ETH',
how_to_buy_url: null,
last_price_usd: 4533.8640179546355,
price_change_1H_percent: '-1.570000000',
price_change_1D_percent: '-1.360000000',
price_change_7D_percent: '10.060000000',
price_change_30D_percent: '0.440000000',
price_change_90D_percent: '15.980000000',
price_change_180D_percent: '67.020000000',
price_change_365D_percent: '654.710000000',
price_change_3Y_percent: '4015.57',
price_change_5Y_percent: '55572.2',
price_change_ALL_percent: '131314',
price_change_YTD_percent: '524.100000000',
volume_24_usd: 32862676992,
trading_since: '2015-08-07 14:55:00',
stages_start: '2014-06-01 00:00:00',
stages_end: '2014-08-31 23:59:00',
include_supply: 'true',
use_volume: 'true',
ath_usd: '4867.17',
ath_date: '2021-11-10 16:05:00',
not_trading_since: null,
last_update: '2021-12-03 14:58:04',
cycle_low_usd: 3946.25,
cycle_high_usd: 4775.09,
cycle_low_date: '2021-11-26 12:14:48',
cycle_high_date: '2021-12-01 07:48:42',
image_t: 1635175785,
initial_data: {
date: '2015-08-07 14:55:00',
price_usd: '3.45005',
price_btc: '0.0123583',
price_eth: '1',
},
ath_data: {
ath_usd: 4867.17,
ath_usd_date: '2021-11-10 16:05:00',
ath_btc: 0.153698,
ath_btc_date: '2017-06-13 01:40:00',
ath_eth: 1,
ath_eth_date: '2020-01-02 20:00:00',
},
social: {
explorer: 'https://etherscan.io/',
bitcointalk: 'https://bitcointalk.org/index.php?topic=428589.0',
'message board': 'https://forum.ethereum.org/',
twitter: 'https://twitter.com/ethereum',
reddit: 'https://www.reddit.com/r/ethereum',
github: 'https://github.com/ethereum',
chat: 'https://gitter.im/orgs/ethereum/rooms',
explorer1: 'https://www.etherchain.org/',
explorer2: 'https://blockchair.com/ethereum',
explorer3: 'https://coincodex.enjinx.io/eth/transactions',
},
socials: [
{
name: 'explorer',
id: '156585',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '13',
value: 'https://etherscan.io/',
label: 'Etherscan',
order_by: '0',
},
{
name: 'bitcointalk',
id: '156586',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '8',
value: 'https://bitcointalk.org/index.php?topic=428589.0',
label: '',
order_by: '0',
},
{
name: 'message board',
id: '156587',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '14',
value: 'https://forum.ethereum.org/',
label: '',
order_by: '0',
},
{
name: 'twitter',
id: '156588',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '3',
value: 'https://twitter.com/ethereum',
label: '',
order_by: '0',
},
{
name: 'reddit',
id: '156589',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '2',
value: 'https://www.reddit.com/r/ethereum',
label: '',
order_by: '0',
},
{
name: 'github',
id: '156590',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '9',
value: 'https://github.com/ethereum',
label: '',
order_by: '0',
},
{
name: 'chat',
id: '156591',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '15',
value: 'https://gitter.im/orgs/ethereum/rooms',
label: '',
order_by: '0',
},
{
name: 'explorer',
id: '156592',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '13',
value: 'https://www.etherchain.org/',
label: 'Etherchain',
order_by: '0',
},
{
name: 'explorer',
id: '156593',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '13',
value: 'https://blockchair.com/ethereum',
label: 'Blockchair',
order_by: '0',
},
{
name: 'explorer',
id: '156594',
coincodex_coin_symbol: 'ETH',
coincodex_socials_id: '13',
value: 'https://coincodex.enjinx.io/eth/transactions',
label: 'CoinCodex',
order_by: '-1',
},
],
}),
[
'Content-Type',
'application/json',
'Connection',
'close',
'Vary',
'Accept-Encoding',
'Vary',
'Origin',
],
)