edge-currency-accountbased 0.7.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +713 -0
  2. package/LICENSE +29 -0
  3. package/README.md +63 -0
  4. package/index.js +3 -0
  5. package/lib/binance/bnbEngine.js +591 -0
  6. package/lib/binance/bnbInfo.js +43 -0
  7. package/lib/binance/bnbPlugin.js +168 -0
  8. package/lib/binance/bnbSchema.js +83 -0
  9. package/lib/binance/bnbTypes.js +39 -0
  10. package/lib/common/engine.js +918 -0
  11. package/lib/common/plugin.js +152 -0
  12. package/lib/common/schema.js +108 -0
  13. package/lib/common/types.js +85 -0
  14. package/lib/common/utils.js +378 -0
  15. package/lib/eos/eosEngine.js +1216 -0
  16. package/lib/eos/eosInfo.js +98 -0
  17. package/lib/eos/eosPlugin.js +314 -0
  18. package/lib/eos/eosSchema.js +190 -0
  19. package/lib/eos/eosTypes.js +88 -0
  20. package/lib/eos/telosInfo.js +94 -0
  21. package/lib/eos/waxInfo.js +95 -0
  22. package/lib/ethereum/etcInfo.js +121 -0
  23. package/lib/ethereum/ethEngine.js +832 -0
  24. package/lib/ethereum/ethInfo.js +1300 -0
  25. package/lib/ethereum/ethMiningFees.js +157 -0
  26. package/lib/ethereum/ethNetwork.js +2195 -0
  27. package/lib/ethereum/ethPlugin.js +377 -0
  28. package/lib/ethereum/ethSchema.js +61 -0
  29. package/lib/ethereum/ethTypes.js +461 -0
  30. package/lib/ethereum/ftminfo.js +102 -0
  31. package/lib/ethereum/rskInfo.js +101 -0
  32. package/lib/fio/fioConst.js +38 -0
  33. package/lib/fio/fioEngine.js +1250 -0
  34. package/lib/fio/fioError.js +38 -0
  35. package/lib/fio/fioInfo.js +72 -0
  36. package/lib/fio/fioPlugin.js +486 -0
  37. package/lib/fio/fioSchema.js +56 -0
  38. package/lib/index.js +44 -0
  39. package/lib/pluginError.js +32 -0
  40. package/lib/react-native/edge-currency-accountbased.js +239635 -0
  41. package/lib/react-native/edge-currency-accountbased.js.map +1 -0
  42. package/lib/react-native-io.js +41 -0
  43. package/lib/stellar/stellarEngine.js +563 -0
  44. package/lib/stellar/stellarInfo.js +37 -0
  45. package/lib/stellar/stellarPlugin.js +215 -0
  46. package/lib/stellar/stellarSchema.js +54 -0
  47. package/lib/stellar/stellarTypes.js +66 -0
  48. package/lib/tezos/tezosEngine.js +497 -0
  49. package/lib/tezos/tezosInfo.js +60 -0
  50. package/lib/tezos/tezosPlugin.js +174 -0
  51. package/lib/tezos/tezosTypes.js +110 -0
  52. package/lib/xrp/xrpEngine.js +583 -0
  53. package/lib/xrp/xrpInfo.js +47 -0
  54. package/lib/xrp/xrpPlugin.js +229 -0
  55. package/lib/xrp/xrpSchema.js +74 -0
  56. package/lib/xrp/xrpTypes.js +38 -0
  57. package/package.json +139 -0
  58. package/postinstall.sh +7 -0
@@ -0,0 +1,1300 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ import { makeEthereumBasedPluginInner } from './ethPlugin'
10
+
11
+
12
+ // 1 mainnet, 3 ropsten, 4 rinkeby, 5 goerli, 42 kovan, etc
13
+ const chainId = 1
14
+
15
+ const defaultNetworkFees = {
16
+ default: {
17
+ baseFeeMultiplier: {
18
+ lowFee: '1',
19
+ standardFeeLow: '1.25',
20
+ standardFeeHigh: '1.5',
21
+ highFee: '1.75'
22
+ },
23
+ gasLimit: {
24
+ regularTransaction: '21000',
25
+ tokenTransaction: '300000',
26
+ minGasLimit: '21000'
27
+ },
28
+ gasPrice: {
29
+ lowFee: '1000000001',
30
+ standardFeeLow: '40000000001',
31
+ standardFeeHigh: '300000000001',
32
+ standardFeeLowAmount: '100000000000000000',
33
+ standardFeeHighAmount: '10000000000000000000',
34
+ highFee: '40000000001',
35
+ minGasPrice: '1000000000'
36
+ },
37
+ minPriorityFee: '2000000000'
38
+ },
39
+ '1983987abc9837fbabc0982347ad828': {
40
+ baseFeeMultiplier: undefined,
41
+ gasLimit: {
42
+ regularTransaction: '21002',
43
+ tokenTransaction: '37124'
44
+ },
45
+ gasPrice: {
46
+ lowFee: '1000000002',
47
+ standardFeeLow: '40000000002',
48
+ standardFeeHigh: '300000000002',
49
+ standardFeeLowAmount: '200000000000000000',
50
+ standardFeeHighAmount: '20000000000000000000',
51
+ highFee: '40000000002'
52
+ },
53
+ minPriorityFee: undefined
54
+ },
55
+ '2983987abc9837fbabc0982347ad828': {
56
+ baseFeeMultiplier: undefined,
57
+ gasLimit: {
58
+ regularTransaction: '21002',
59
+ tokenTransaction: '37124'
60
+ },
61
+ gasPrice: undefined,
62
+ minPriorityFee: undefined
63
+ }
64
+ }
65
+
66
+ const otherSettings = {
67
+ rpcServers: (() => {
68
+ // Mainnet | Ropsten | Rinkeby | Goerli | Kovan
69
+ switch (chainId) {
70
+ case 1:
71
+ return [
72
+ 'https://eth-mainnet.alchemyapi.io',
73
+ 'https://mainnet.infura.io/v3',
74
+ 'https://cloudflare-eth.com'
75
+ ]
76
+ case 3:
77
+ return [
78
+ 'https://eth-ropsten.alchemyapi.io',
79
+ 'https://ropsten.infura.io/v3'
80
+ ]
81
+ case 4:
82
+ return [
83
+ 'https://eth-rinkeby.alchemyapi.io',
84
+ 'https://rinkeby.infura.io/v3'
85
+ ]
86
+ case 5:
87
+ return [
88
+ 'https://eth-goerli.alchemyapi.io',
89
+ 'https://goerli.infura.io/v3'
90
+ ]
91
+ case 42:
92
+ return ['https://eth-kovan.alchemyapi.io', 'https://kovan.infura.io/v3']
93
+ default:
94
+ return []
95
+ }
96
+ })(),
97
+
98
+ etherscanApiServers: (() => {
99
+ // Mainnet | Ropsten | Rinkeby | Goerli | Kovan
100
+ switch (chainId) {
101
+ case 1:
102
+ return [
103
+ 'https://api.etherscan.io'
104
+ // 'https://blockscout.com/eth/mainnet' // not reliable enough...
105
+ ]
106
+ case 3:
107
+ return ['https://api-ropsten.etherscan.io']
108
+ case 4:
109
+ return ['https://api-rinkeby.etherscan.io']
110
+ case 5:
111
+ return ['https://api-goerli.etherscan.io']
112
+ case 42:
113
+ return ['https://api-kovan.etherscan.io']
114
+ default:
115
+ return []
116
+ }
117
+ })(),
118
+ blockcypherApiServers: (() => {
119
+ // Mainnet
120
+ switch (chainId) {
121
+ case 1:
122
+ return ['https://api.blockcypher.com']
123
+ default:
124
+ return []
125
+ }
126
+ })(),
127
+ blockbookServers: (() => {
128
+ // Mainnet | Ropsten
129
+ switch (chainId) {
130
+ case 1:
131
+ return [
132
+ 'https://blockbook-ethereum.tronwallet.me',
133
+ 'https://eth1.trezor.io',
134
+ 'https://eth2.trezor.io',
135
+ 'https://eth2.bcfn.ca'
136
+ ]
137
+ case 3:
138
+ return ['https://ropsten1.trezor.io', 'https://ropsten2.trezor.io']
139
+ default:
140
+ return []
141
+ }
142
+ })(),
143
+ uriNetworks: ['ethereum', 'ether'],
144
+ ercTokenStandard: 'ERC20',
145
+ chainParams: {
146
+ chainId,
147
+ name: 'Ethereum Mainnet'
148
+ },
149
+ hdPathCoinType: 60,
150
+ checkUnconfirmedTransactions: true,
151
+ iosAllowedTokens: {
152
+ REP: true,
153
+ WINGS: true,
154
+ HUR: true,
155
+ IND: true,
156
+ USDT: true,
157
+ AGLD: true
158
+ },
159
+ blockchairApiServers: (() => {
160
+ // Mainnet
161
+ switch (chainId) {
162
+ case 1:
163
+ return ['https://api.blockchair.com']
164
+ default:
165
+ return []
166
+ }
167
+ })(),
168
+ alethioApiServers: (() => {
169
+ // Mainnet
170
+ switch (chainId) {
171
+ case 1:
172
+ return ['https://api.aleth.io/v1']
173
+ default:
174
+ return []
175
+ }
176
+ })(),
177
+ alethioCurrencies: {
178
+ // object or null
179
+ native: 'ether',
180
+ token: 'token'
181
+ },
182
+ amberdataRpcServers: (() => {
183
+ // Mainnet
184
+ switch (chainId) {
185
+ case 1:
186
+ return ['https://rpc.web3api.io']
187
+ default:
188
+ return []
189
+ }
190
+ })(),
191
+ amberdataApiServers: (() => {
192
+ // Mainnet
193
+ switch (chainId) {
194
+ case 1:
195
+ return ['https://web3api.io/api/v2']
196
+ default:
197
+ return []
198
+ }
199
+ })(),
200
+ amberDataBlockchainId: '1c9c969065fcd1cf', // ETH mainnet
201
+ pluginMnemonicKeyName: 'ethereumMnemonic',
202
+ pluginRegularKeyName: 'ethereumKey',
203
+ ethGasStationUrl: 'https://www.ethgasstation.info/json/ethgasAPI.json',
204
+ defaultNetworkFees
205
+ }
206
+
207
+ const defaultSettings = {
208
+ customFeeSettings: ['gasLimit', 'gasPrice'],
209
+ otherSettings
210
+ }
211
+
212
+ export const currencyInfo = {
213
+ // Basic currency information:
214
+ currencyCode: 'ETH',
215
+ displayName: 'Ethereum',
216
+ pluginId: 'ethereum',
217
+ walletType: 'wallet:ethereum',
218
+
219
+ defaultSettings,
220
+
221
+ addressExplorer: 'https://etherscan.io/address/%s',
222
+ transactionExplorer: 'https://etherscan.io/tx/%s',
223
+
224
+ denominations: [
225
+ // An array of Objects of the possible denominations for this currency
226
+ {
227
+ name: 'ETH',
228
+ multiplier: '1000000000000000000',
229
+ symbol: 'Ξ'
230
+ },
231
+ {
232
+ name: 'mETH',
233
+ multiplier: '1000000000000000',
234
+ symbol: 'mΞ'
235
+ }
236
+ ],
237
+ metaTokens: [
238
+ // Array of objects describing the supported metatokens
239
+ {
240
+ currencyCode: 'REP',
241
+ currencyName: 'Augur',
242
+ denominations: [
243
+ {
244
+ name: 'REP',
245
+ multiplier: '1000000000000000000'
246
+ }
247
+ ],
248
+ contractAddress: '0x1985365e9f78359a9B6AD760e32412f4a445E862'
249
+ },
250
+ {
251
+ currencyCode: 'REPV2',
252
+ currencyName: 'Augur v2',
253
+ denominations: [
254
+ {
255
+ name: 'REPV2',
256
+ multiplier: '1000000000000000000'
257
+ }
258
+ ],
259
+ contractAddress: '0x221657776846890989a759BA2973e427DfF5C9bB'
260
+ },
261
+ {
262
+ currencyCode: 'HERC',
263
+ currencyName: 'Hercules',
264
+ denominations: [
265
+ {
266
+ name: 'HERC',
267
+ multiplier: '1000000000000000000'
268
+ }
269
+ ],
270
+ contractAddress: '0x2e91E3e54C5788e9FdD6A181497FDcEa1De1bcc1'
271
+ },
272
+ {
273
+ currencyCode: 'AGLD',
274
+ currencyName: 'Anthem Gold',
275
+ denominations: [
276
+ {
277
+ name: 'AGLD',
278
+ multiplier: '1000000000'
279
+ }
280
+ ],
281
+ contractAddress: '0xd668dab892f1b702a6b9ee01342508b14d4e62c5'
282
+ },
283
+ {
284
+ currencyCode: 'DAI',
285
+ currencyName: 'Dai Stablecoin',
286
+ denominations: [
287
+ {
288
+ name: 'DAI',
289
+ multiplier: '1000000000000000000'
290
+ }
291
+ ],
292
+ contractAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F'
293
+ },
294
+ {
295
+ currencyCode: 'SAI',
296
+ currencyName: 'Sai Stablecoin',
297
+ denominations: [
298
+ {
299
+ name: 'SAI',
300
+ multiplier: '1000000000000000000'
301
+ }
302
+ ],
303
+ contractAddress: '0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359'
304
+ },
305
+ {
306
+ currencyCode: 'WINGS',
307
+ currencyName: 'Wings',
308
+ denominations: [
309
+ {
310
+ name: 'WINGS',
311
+ multiplier: '1000000000000000000'
312
+ }
313
+ ],
314
+ contractAddress: '0x667088b212ce3d06a1b553a7221E1fD19000d9aF'
315
+ },
316
+ {
317
+ currencyCode: 'USDT',
318
+ currencyName: 'Tether',
319
+ denominations: [
320
+ {
321
+ name: 'USDT',
322
+ multiplier: '1000000'
323
+ }
324
+ ],
325
+ contractAddress: '0xdac17f958d2ee523a2206206994597c13d831ec7'
326
+ },
327
+ {
328
+ currencyCode: 'IND',
329
+ currencyName: 'Indorse',
330
+ denominations: [
331
+ {
332
+ name: 'IND',
333
+ multiplier: '1000000000000000000'
334
+ }
335
+ ],
336
+ contractAddress: '0xf8e386EDa857484f5a12e4B5DAa9984E06E73705'
337
+ },
338
+ {
339
+ currencyCode: 'HUR',
340
+ currencyName: 'Hurify',
341
+ denominations: [
342
+ {
343
+ name: 'HUR',
344
+ multiplier: '1000000000000000000'
345
+ }
346
+ ],
347
+ contractAddress: '0xCDB7eCFd3403Eef3882c65B761ef9B5054890a47'
348
+ },
349
+ {
350
+ currencyCode: 'ANTV1',
351
+ currencyName: 'Aragon',
352
+ denominations: [
353
+ {
354
+ name: 'ANTV1',
355
+ multiplier: '1000000000000000000'
356
+ }
357
+ ],
358
+ contractAddress: '0x960b236A07cf122663c4303350609A66A7B288C0'
359
+ },
360
+ {
361
+ currencyCode: 'ANT',
362
+ currencyName: 'Aragon',
363
+ denominations: [
364
+ {
365
+ name: 'ANT',
366
+ multiplier: '1000000000000000000'
367
+ }
368
+ ],
369
+ contractAddress: '0xa117000000f279D81A1D3cc75430fAA017FA5A2e'
370
+ },
371
+ {
372
+ currencyCode: 'BAT',
373
+ currencyName: 'Basic Attention Token',
374
+ denominations: [
375
+ {
376
+ name: 'BAT',
377
+ multiplier: '1000000000000000000'
378
+ }
379
+ ],
380
+ contractAddress: '0x0D8775F648430679A709E98d2b0Cb6250d2887EF'
381
+ },
382
+ {
383
+ currencyCode: 'BNT',
384
+ currencyName: 'Bancor',
385
+ denominations: [
386
+ {
387
+ name: 'BNT',
388
+ multiplier: '1000000000000000000'
389
+ }
390
+ ],
391
+ contractAddress: '0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C'
392
+ },
393
+ {
394
+ currencyCode: 'GNT',
395
+ currencyName: 'Golem (old)',
396
+ denominations: [
397
+ {
398
+ name: 'GNT',
399
+ multiplier: '1000000000000000000'
400
+ }
401
+ ],
402
+ contractAddress: '0xa74476443119A942dE498590Fe1f2454d7D4aC0d'
403
+ },
404
+ {
405
+ currencyCode: 'KNC',
406
+ currencyName: 'Kyber Network',
407
+ denominations: [
408
+ {
409
+ name: 'KNC',
410
+ multiplier: '1000000000000000000'
411
+ }
412
+ ],
413
+ contractAddress: '0xdd974D5C2e2928deA5F71b9825b8b646686BD200'
414
+ },
415
+ {
416
+ currencyCode: 'POLY',
417
+ currencyName: 'Polymath Network',
418
+ denominations: [
419
+ {
420
+ name: 'POLY',
421
+ multiplier: '1000000000000000000'
422
+ }
423
+ ],
424
+ contractAddress: '0x9992eC3cF6A55b00978cdDF2b27BC6882d88D1eC'
425
+ },
426
+ {
427
+ currencyCode: 'STORJ',
428
+ currencyName: 'Storj',
429
+ denominations: [
430
+ {
431
+ name: 'STORJ',
432
+ multiplier: '100000000'
433
+ }
434
+ ],
435
+ contractAddress: '0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC'
436
+ },
437
+ {
438
+ currencyCode: 'USDC',
439
+ currencyName: 'USD Coin',
440
+ denominations: [
441
+ {
442
+ name: 'USDC',
443
+ multiplier: '1000000'
444
+ }
445
+ ],
446
+ contractAddress: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
447
+ },
448
+ {
449
+ currencyCode: 'USDS',
450
+ currencyName: 'StableUSD',
451
+ denominations: [
452
+ {
453
+ name: 'USDS',
454
+ multiplier: '1000000'
455
+ }
456
+ ],
457
+ contractAddress: '0xA4Bdb11dc0a2bEC88d24A3aa1E6Bb17201112eBe'
458
+ },
459
+ {
460
+ currencyCode: 'TUSD',
461
+ currencyName: 'TrueUSD',
462
+ denominations: [
463
+ {
464
+ name: 'TUSD',
465
+ multiplier: '1000000000000000000'
466
+ }
467
+ ],
468
+ contractAddress: '0x0000000000085d4780B73119b644AE5ecd22b376'
469
+ },
470
+ {
471
+ currencyCode: 'ZRX',
472
+ currencyName: '0x',
473
+ denominations: [
474
+ {
475
+ name: 'ZRX',
476
+ multiplier: '1000000000000000000'
477
+ }
478
+ ],
479
+ contractAddress: '0xE41d2489571d322189246DaFA5ebDe1F4699F498'
480
+ },
481
+ {
482
+ currencyCode: 'GNO',
483
+ currencyName: 'Gnosis',
484
+ denominations: [
485
+ {
486
+ name: 'GNO',
487
+ multiplier: '1000000000000000000'
488
+ }
489
+ ],
490
+ contractAddress: '0x6810e776880C02933D47DB1b9fc05908e5386b96'
491
+ },
492
+ {
493
+ currencyCode: 'OMG',
494
+ currencyName: 'OmiseGO',
495
+ denominations: [
496
+ {
497
+ name: 'OMG',
498
+ multiplier: '1000000000000000000'
499
+ }
500
+ ],
501
+ contractAddress: '0xd26114cd6EE289AccF82350c8d8487fedB8A0C07'
502
+ },
503
+ {
504
+ currencyCode: 'NMR',
505
+ currencyName: 'Numeraire',
506
+ denominations: [
507
+ {
508
+ name: 'NMR',
509
+ multiplier: '1000000000000000000'
510
+ }
511
+ ],
512
+ contractAddress: '0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671'
513
+ },
514
+ {
515
+ currencyCode: 'MKR',
516
+ currencyName: 'Maker',
517
+ denominations: [
518
+ {
519
+ name: 'MKR',
520
+ multiplier: '1000000000000000000'
521
+ }
522
+ ],
523
+ contractAddress: '0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2'
524
+ },
525
+ {
526
+ currencyCode: 'GUSD',
527
+ currencyName: 'Gemini Dollar',
528
+ denominations: [
529
+ {
530
+ name: 'GUSD',
531
+ multiplier: '100'
532
+ }
533
+ ],
534
+ contractAddress: '0x056fd409e1d7a124bd7017459dfea2f387b6d5cd'
535
+ },
536
+ {
537
+ currencyCode: 'PAX',
538
+ currencyName: 'Paxos',
539
+ denominations: [
540
+ {
541
+ name: 'PAX',
542
+ multiplier: '1000000000000000000'
543
+ }
544
+ ],
545
+ contractAddress: '0x8e870d67f660d95d5be530380d0ec0bd388289e1'
546
+ },
547
+ {
548
+ currencyCode: 'SALT',
549
+ currencyName: 'SALT',
550
+ denominations: [
551
+ {
552
+ name: 'SALT',
553
+ multiplier: '100000000'
554
+ }
555
+ ],
556
+ contractAddress: '0x4156D3342D5c385a87D264F90653733592000581'
557
+ },
558
+ {
559
+ currencyCode: 'MANA',
560
+ currencyName: 'Decentraland',
561
+ denominations: [
562
+ {
563
+ name: 'MANA',
564
+ multiplier: '1000000000000000000'
565
+ }
566
+ ],
567
+ contractAddress: '0x0F5D2fB29fb7d3CFeE444a200298f468908cC942'
568
+ },
569
+ {
570
+ currencyCode: 'NEXO',
571
+ currencyName: 'Nexo',
572
+ denominations: [
573
+ {
574
+ name: 'NEXO',
575
+ multiplier: '1000000000000000000'
576
+ }
577
+ ],
578
+ contractAddress: '0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206'
579
+ },
580
+ {
581
+ currencyCode: 'FUN',
582
+ currencyName: 'FunFair',
583
+ denominations: [
584
+ {
585
+ name: 'FUN',
586
+ multiplier: '100000000'
587
+ }
588
+ ],
589
+ contractAddress: '0x419D0d8BdD9aF5e606Ae2232ed285Aff190E711b'
590
+ },
591
+ {
592
+ currencyCode: 'KIN',
593
+ currencyName: 'Kin',
594
+ denominations: [
595
+ {
596
+ name: 'KIN',
597
+ multiplier: '1000000000000000000'
598
+ }
599
+ ],
600
+ contractAddress: '0x818Fc6C2Ec5986bc6E2CBf00939d90556aB12ce5'
601
+ },
602
+ {
603
+ currencyCode: 'LINK',
604
+ currencyName: 'Chainlink',
605
+ denominations: [
606
+ {
607
+ name: 'LINK',
608
+ multiplier: '1000000000000000000'
609
+ }
610
+ ],
611
+ contractAddress: '0x514910771af9ca656af840dff83e8264ecf986ca'
612
+ },
613
+ {
614
+ currencyCode: 'BRZ',
615
+ currencyName: 'BRZ Token',
616
+ denominations: [
617
+ {
618
+ name: 'BRZ',
619
+ multiplier: '10000'
620
+ }
621
+ ],
622
+ contractAddress: '0x420412E765BFa6d85aaaC94b4f7b708C89be2e2B'
623
+ },
624
+ {
625
+ currencyCode: 'CREP',
626
+ currencyName: 'Compound Augur',
627
+ denominations: [
628
+ {
629
+ name: 'CREP',
630
+ multiplier: '100000000'
631
+ }
632
+ ],
633
+ contractAddress: '0x158079ee67fce2f58472a96584a73c7ab9ac95c1'
634
+ },
635
+ {
636
+ currencyCode: 'CUSDC',
637
+ currencyName: 'Compound USDC',
638
+ denominations: [
639
+ {
640
+ name: 'CUSDC',
641
+ multiplier: '100000000'
642
+ }
643
+ ],
644
+ contractAddress: '0x39aa39c021dfbae8fac545936693ac917d5e7563'
645
+ },
646
+ {
647
+ currencyCode: 'CETH',
648
+ currencyName: 'Compound ETH',
649
+ denominations: [
650
+ {
651
+ name: 'CETH',
652
+ multiplier: '100000000'
653
+ }
654
+ ],
655
+ contractAddress: '0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5'
656
+ },
657
+ {
658
+ currencyCode: 'CBAT',
659
+ currencyName: 'Compound BAT',
660
+ denominations: [
661
+ {
662
+ name: 'CBAT',
663
+ multiplier: '100000000'
664
+ }
665
+ ],
666
+ contractAddress: '0x6c8c6b02e7b2be14d4fa6022dfd6d75921d90e4e'
667
+ },
668
+ {
669
+ currencyCode: 'CZRX',
670
+ currencyName: 'Compound ZRX',
671
+ denominations: [
672
+ {
673
+ name: 'CZRX',
674
+ multiplier: '100000000'
675
+ }
676
+ ],
677
+ contractAddress: '0xb3319f5d18bc0d84dd1b4825dcde5d5f7266d407'
678
+ },
679
+ {
680
+ currencyCode: 'CWBTC',
681
+ currencyName: 'Compound WBTC',
682
+ denominations: [
683
+ {
684
+ name: 'CWBTC',
685
+ multiplier: '100000000'
686
+ }
687
+ ],
688
+ contractAddress: '0xc11b1268c1a384e55c48c2391d8d480264a3a7f4'
689
+ },
690
+ {
691
+ currencyCode: 'CSAI',
692
+ currencyName: 'Compound SAI',
693
+ denominations: [
694
+ {
695
+ name: 'CSAI',
696
+ multiplier: '100000000'
697
+ }
698
+ ],
699
+ contractAddress: '0xf5dce57282a584d2746faf1593d3121fcac444dc'
700
+ },
701
+ {
702
+ currencyCode: 'CDAI',
703
+ currencyName: 'Compound DAI',
704
+ denominations: [
705
+ {
706
+ name: 'CDAI',
707
+ multiplier: '100000000'
708
+ }
709
+ ],
710
+ contractAddress: '0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643'
711
+ },
712
+ {
713
+ currencyCode: 'ETHBNT',
714
+ currencyName: 'BNT Smart Token Relay',
715
+ denominations: [
716
+ {
717
+ name: 'ETHBNT',
718
+ multiplier: '1000000000000000000'
719
+ }
720
+ ],
721
+ contractAddress: '0xb1CD6e4153B2a390Cf00A6556b0fC1458C4A5533'
722
+ },
723
+ {
724
+ currencyCode: 'OXT',
725
+ currencyName: 'Orchid',
726
+ denominations: [
727
+ {
728
+ name: 'OXT',
729
+ multiplier: '1000000000000000000'
730
+ }
731
+ ],
732
+ contractAddress: '0x4575f41308EC1483f3d399aa9a2826d74Da13Deb'
733
+ },
734
+ {
735
+ currencyCode: 'COMP',
736
+ currencyName: 'Compound',
737
+ denominations: [
738
+ {
739
+ name: 'COMP',
740
+ multiplier: '1000000000000000000'
741
+ }
742
+ ],
743
+ contractAddress: '0xc00e94cb662c3520282e6f5717214004a7f26888'
744
+ },
745
+ {
746
+ currencyCode: 'MET',
747
+ currencyName: 'Metronome',
748
+ denominations: [
749
+ {
750
+ name: 'MET',
751
+ multiplier: '1000000000000000000'
752
+ }
753
+ ],
754
+ contractAddress: '0xa3d58c4e56fedcae3a7c43a725aee9a71f0ece4e'
755
+ },
756
+ {
757
+ currencyCode: 'SNX',
758
+ currencyName: 'Synthetix Network',
759
+ denominations: [
760
+ {
761
+ name: 'SNX',
762
+ multiplier: '1000000000000000000'
763
+ }
764
+ ],
765
+ contractAddress: '0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f'
766
+ },
767
+ {
768
+ currencyCode: 'SUSD',
769
+ currencyName: 'Synthetix USD',
770
+ denominations: [
771
+ {
772
+ name: 'SUSD',
773
+ multiplier: '1000000000000000000'
774
+ }
775
+ ],
776
+ contractAddress: '0x57Ab1ec28D129707052df4dF418D58a2D46d5f51'
777
+ },
778
+ {
779
+ currencyCode: 'SBTC',
780
+ currencyName: 'Synthetix BTC',
781
+ denominations: [
782
+ {
783
+ name: 'SBTC',
784
+ multiplier: '1000000000000000000'
785
+ }
786
+ ],
787
+ contractAddress: '0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6'
788
+ },
789
+ {
790
+ currencyCode: 'AAVE',
791
+ currencyName: 'Aave',
792
+ denominations: [
793
+ {
794
+ name: 'AAVE',
795
+ multiplier: '1000000000000000000'
796
+ }
797
+ ],
798
+ contractAddress: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9'
799
+ },
800
+ {
801
+ currencyCode: 'AYFI',
802
+ currencyName: 'Aave Interest Bearing YFI',
803
+ denominations: [
804
+ {
805
+ name: 'AYFI',
806
+ multiplier: '1000000000000000000'
807
+ }
808
+ ],
809
+ contractAddress: '0x5165d24277cd063f5ac44efd447b27025e888f37'
810
+ },
811
+ {
812
+ currencyCode: 'ALINK',
813
+ currencyName: 'Aave Interest Bearing LINK',
814
+ denominations: [
815
+ {
816
+ name: 'ALINK',
817
+ multiplier: '1000000000000000000'
818
+ }
819
+ ],
820
+ contractAddress: '0xa06bc25b5805d5f8d82847d191cb4af5a3e873e0'
821
+ },
822
+ {
823
+ currencyCode: 'ADAI',
824
+ currencyName: 'Aave Interest Bearing Dai',
825
+ denominations: [
826
+ {
827
+ name: 'ADAI',
828
+ multiplier: '1000000000000000000'
829
+ }
830
+ ],
831
+ contractAddress: '0x028171bCA77440897B824Ca71D1c56caC55b68A3'
832
+ },
833
+ {
834
+ currencyCode: 'ABAT',
835
+ currencyName: 'Aave Interest Bearing BAT',
836
+ denominations: [
837
+ {
838
+ name: 'ABAT',
839
+ multiplier: '1000000000000000000'
840
+ }
841
+ ],
842
+ contractAddress: '0x05ec93c0365baaeabf7aeffb0972ea7ecdd39cf1'
843
+ },
844
+ {
845
+ currencyCode: 'AWETH',
846
+ currencyName: 'Aave Interest Bearing Wrapped ETH',
847
+ denominations: [
848
+ {
849
+ name: 'AWETH',
850
+ multiplier: '1000000000000000000'
851
+ }
852
+ ],
853
+ contractAddress: '0x030ba81f1c18d280636f32af80b9aad02cf0854e'
854
+ },
855
+ {
856
+ currencyCode: 'AWBTC',
857
+ currencyName: 'Aave Interest Bearing Wrapped BTC',
858
+ denominations: [
859
+ {
860
+ name: 'AWBTC',
861
+ multiplier: '100000000'
862
+ }
863
+ ],
864
+ contractAddress: '0x9ff58f4ffb29fa2266ab25e75e2a8b3503311656'
865
+ },
866
+ {
867
+ currencyCode: 'ASNX',
868
+ currencyName: 'Aave Interest Bearing SNX',
869
+ denominations: [
870
+ {
871
+ name: 'ASNX',
872
+ multiplier: '1000000000000000000'
873
+ }
874
+ ],
875
+ contractAddress: '0x35f6b052c598d933d69a4eec4d04c73a191fe6c2'
876
+ },
877
+ {
878
+ currencyCode: 'AREN',
879
+ currencyName: 'Aave Interest Bearing REN',
880
+ denominations: [
881
+ {
882
+ name: 'AREN',
883
+ multiplier: '1000000000000000000'
884
+ }
885
+ ],
886
+ contractAddress: '0xcc12abe4ff81c9378d670de1b57f8e0dd228d77a'
887
+ },
888
+ {
889
+ currencyCode: 'AUSDT',
890
+ currencyName: 'Aave Interest Bearing USDT',
891
+ denominations: [
892
+ {
893
+ name: 'AUSDT',
894
+ multiplier: '1000000'
895
+ }
896
+ ],
897
+ contractAddress: '0x3ed3b47dd13ec9a98b44e6204a523e766b225811'
898
+ },
899
+ {
900
+ currencyCode: 'AMKR',
901
+ currencyName: 'Aave Interest Bearing MKR',
902
+ denominations: [
903
+ {
904
+ name: 'AMKR',
905
+ multiplier: '1000000000000000000'
906
+ }
907
+ ],
908
+ contractAddress: '0xc713e5e149d5d0715dcd1c156a020976e7e56b88'
909
+ },
910
+ {
911
+ currencyCode: 'AMANA',
912
+ currencyName: 'Aave Interest Bearing MANA',
913
+ denominations: [
914
+ {
915
+ name: 'AMANA',
916
+ multiplier: '1000000000000000000'
917
+ }
918
+ ],
919
+ contractAddress: '0xa685a61171bb30d4072b338c80cb7b2c865c873e'
920
+ },
921
+ {
922
+ currencyCode: 'AZRX',
923
+ currencyName: 'Aave Interest Bearing ZRX',
924
+ denominations: [
925
+ {
926
+ name: 'AZRX',
927
+ multiplier: '1000000000000000000'
928
+ }
929
+ ],
930
+ contractAddress: '0xdf7ff54aacacbff42dfe29dd6144a69b629f8c9e'
931
+ },
932
+ {
933
+ currencyCode: 'AKNC',
934
+ currencyName: 'Aave Interest Bearing KNC',
935
+ denominations: [
936
+ {
937
+ name: 'AKNC',
938
+ multiplier: '1000000000000000000'
939
+ }
940
+ ],
941
+ contractAddress: '0x39c6b3e42d6a679d7d776778fe880bc9487c2eda'
942
+ },
943
+ {
944
+ currencyCode: 'AUSDC',
945
+ currencyName: 'Aave Interest Bearing USDC',
946
+ denominations: [
947
+ {
948
+ name: 'AUSDC',
949
+ multiplier: '1000000'
950
+ }
951
+ ],
952
+ contractAddress: '0xbcca60bb61934080951369a648fb03df4f96263c'
953
+ },
954
+ {
955
+ currencyCode: 'ASUSD',
956
+ currencyName: 'Aave Interest Bearing SUSD',
957
+ denominations: [
958
+ {
959
+ name: 'ASUSD',
960
+ multiplier: '1000000000000000000'
961
+ }
962
+ ],
963
+ contractAddress: '0x6c5024cd4f8a59110119c56f8933403a539555eb'
964
+ },
965
+ {
966
+ currencyCode: 'AUNI',
967
+ currencyName: 'Aave Interest Bearing UNI',
968
+ denominations: [
969
+ {
970
+ name: 'AUNI',
971
+ multiplier: '1000000000000000000'
972
+ }
973
+ ],
974
+ contractAddress: '0xb9d7cb55f463405cdfbe4e90a6d2df01c2b92bf1'
975
+ },
976
+ {
977
+ currencyCode: 'WBTC',
978
+ currencyName: 'Wrapped Bitcoin',
979
+ denominations: [
980
+ {
981
+ name: 'WBTC',
982
+ multiplier: '100000000'
983
+ }
984
+ ],
985
+ contractAddress: '0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599'
986
+ },
987
+ {
988
+ currencyCode: 'YFI',
989
+ currencyName: 'Yearn Finance',
990
+ denominations: [
991
+ {
992
+ name: 'YFI',
993
+ multiplier: '1000000000000000000'
994
+ }
995
+ ],
996
+ contractAddress: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e'
997
+ },
998
+ {
999
+ currencyCode: 'CRV',
1000
+ currencyName: 'Curve DAO Token',
1001
+ denominations: [
1002
+ {
1003
+ name: 'CRV',
1004
+ multiplier: '1000000000000000000'
1005
+ }
1006
+ ],
1007
+ contractAddress: '0xD533a949740bb3306d119CC777fa900bA034cd52'
1008
+ },
1009
+ {
1010
+ currencyCode: 'BAL',
1011
+ currencyName: 'Balancer',
1012
+ denominations: [
1013
+ {
1014
+ name: 'BAL',
1015
+ multiplier: '1000000000000000000'
1016
+ }
1017
+ ],
1018
+ contractAddress: '0xba100000625a3754423978a60c9317c58a424e3d'
1019
+ },
1020
+ {
1021
+ currencyCode: 'SUSHI',
1022
+ currencyName: 'Sushi Token',
1023
+ denominations: [
1024
+ {
1025
+ name: 'SUSHI',
1026
+ multiplier: '1000000000000000000'
1027
+ }
1028
+ ],
1029
+ contractAddress: '0x6b3595068778dd592e39a122f4f5a5cf09c90fe2'
1030
+ },
1031
+ {
1032
+ currencyCode: 'UMA',
1033
+ currencyName: 'UMA',
1034
+ denominations: [
1035
+ {
1036
+ name: 'UMA',
1037
+ multiplier: '1000000000000000000'
1038
+ }
1039
+ ],
1040
+ contractAddress: '0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828'
1041
+ },
1042
+ {
1043
+ currencyCode: 'BADGER',
1044
+ currencyName: 'Badger',
1045
+ denominations: [
1046
+ {
1047
+ name: 'BADGER',
1048
+ multiplier: '1000000000000000000'
1049
+ }
1050
+ ],
1051
+ contractAddress: '0x3472A5A71965499acd81997a54BBA8D852C6E53d'
1052
+ },
1053
+ {
1054
+ currencyCode: 'IDLE',
1055
+ currencyName: 'Idle Finance',
1056
+ denominations: [
1057
+ {
1058
+ name: 'IDLE',
1059
+ multiplier: '1000000000000000000'
1060
+ }
1061
+ ],
1062
+ contractAddress: '0x875773784Af8135eA0ef43b5a374AaD105c5D39e'
1063
+ },
1064
+ {
1065
+ currencyCode: 'NXM',
1066
+ currencyName: 'Nexus Mutual',
1067
+ denominations: [
1068
+ {
1069
+ name: 'NXM',
1070
+ multiplier: '1000000000000000000'
1071
+ }
1072
+ ],
1073
+ contractAddress: '0xd7c49cee7e9188cca6ad8ff264c1da2e69d4cf3b'
1074
+ },
1075
+ {
1076
+ currencyCode: 'CREAM',
1077
+ currencyName: 'Cream',
1078
+ denominations: [
1079
+ {
1080
+ name: 'CREAM',
1081
+ multiplier: '1000000000000000000'
1082
+ }
1083
+ ],
1084
+ contractAddress: '0x2ba592F78dB6436527729929AAf6c908497cB200'
1085
+ },
1086
+ {
1087
+ currencyCode: 'PICKLE',
1088
+ currencyName: 'PickleToken',
1089
+ denominations: [
1090
+ {
1091
+ name: 'PICKLE',
1092
+ multiplier: '1000000000000000000'
1093
+ }
1094
+ ],
1095
+ contractAddress: '0x429881672B9AE42b8EbA0E26cD9C73711b891Ca5'
1096
+ },
1097
+ {
1098
+ currencyCode: 'CVP',
1099
+ currencyName: 'Concentrated Voting Power',
1100
+ denominations: [
1101
+ {
1102
+ name: 'CVP',
1103
+ multiplier: '1000000000000000000'
1104
+ }
1105
+ ],
1106
+ contractAddress: '0x38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1'
1107
+ },
1108
+ {
1109
+ currencyCode: 'ROOK',
1110
+ currencyName: 'Keeper DAO',
1111
+ denominations: [
1112
+ {
1113
+ name: 'ROOK',
1114
+ multiplier: '1000000000000000000'
1115
+ }
1116
+ ],
1117
+ contractAddress: '0xfA5047c9c78B8877af97BDcb85Db743fD7313d4a'
1118
+ },
1119
+ {
1120
+ currencyCode: 'DOUGH',
1121
+ currencyName: 'PieDAO',
1122
+ denominations: [
1123
+ {
1124
+ name: 'DOUGH',
1125
+ multiplier: '1000000000000000000'
1126
+ }
1127
+ ],
1128
+ contractAddress: '0xad32a8e6220741182940c5abf610bde99e737b2d'
1129
+ },
1130
+ {
1131
+ currencyCode: 'COMBO',
1132
+ currencyName: 'COMBO',
1133
+ denominations: [
1134
+ {
1135
+ name: 'COMBO',
1136
+ multiplier: '1000000000000000000'
1137
+ }
1138
+ ],
1139
+ contractAddress: '0xffffffff2ba8f66d4e51811c5190992176930278'
1140
+ },
1141
+ {
1142
+ currencyCode: 'INDEX',
1143
+ currencyName: 'INDEX COOP',
1144
+ denominations: [
1145
+ {
1146
+ name: 'INDEX',
1147
+ multiplier: '1000000000000000000'
1148
+ }
1149
+ ],
1150
+ contractAddress: '0x0954906da0Bf32d5479e25f46056d22f08464cab'
1151
+ },
1152
+ {
1153
+ currencyCode: 'WETH',
1154
+ currencyName: 'Wrapped ETH',
1155
+ denominations: [
1156
+ {
1157
+ name: 'WETH',
1158
+ multiplier: '1000000000000000000'
1159
+ }
1160
+ ],
1161
+ contractAddress: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
1162
+ },
1163
+ {
1164
+ currencyCode: 'RENBTC',
1165
+ currencyName: 'Ren BTC',
1166
+ denominations: [
1167
+ {
1168
+ name: 'RENBTC',
1169
+ multiplier: '100000000'
1170
+ }
1171
+ ],
1172
+ contractAddress: '0xeb4c2781e4eba804ce9a9803c67d0893436bb27d'
1173
+ },
1174
+ {
1175
+ currencyCode: 'RENBCH',
1176
+ currencyName: 'Ren BCH',
1177
+ denominations: [
1178
+ {
1179
+ name: 'RENBCH',
1180
+ multiplier: '100000000'
1181
+ }
1182
+ ],
1183
+ contractAddress: '0x459086f2376525bdceba5bdda135e4e9d3fef5bf'
1184
+ },
1185
+ {
1186
+ currencyCode: 'RENZEC',
1187
+ currencyName: 'Ren ZEC',
1188
+ denominations: [
1189
+ {
1190
+ name: 'RENZEC',
1191
+ multiplier: '100000000'
1192
+ }
1193
+ ],
1194
+ contractAddress: '0x1c5db575e2ff833e46a2e9864c22f4b22e0b37c2'
1195
+ },
1196
+ {
1197
+ currencyCode: 'TBTC',
1198
+ currencyName: 'tBTC',
1199
+ denominations: [
1200
+ {
1201
+ name: 'TBTC',
1202
+ multiplier: '1000000000000000000'
1203
+ }
1204
+ ],
1205
+ contractAddress: '0x8dAEBADE922dF735c38C80C7eBD708Af50815fAa'
1206
+ },
1207
+ {
1208
+ currencyCode: 'DPI',
1209
+ currencyName: 'DefiPulse Index',
1210
+ denominations: [
1211
+ {
1212
+ name: 'DPI',
1213
+ multiplier: '1000000000000000000'
1214
+ }
1215
+ ],
1216
+ contractAddress: '0x1494ca1f11d487c2bbe4543e90080aeba4ba3c2b'
1217
+ },
1218
+ {
1219
+ currencyCode: 'YETI',
1220
+ currencyName: 'Yearn Ecosystem Token Index',
1221
+ denominations: [
1222
+ {
1223
+ name: 'YETI',
1224
+ multiplier: '1000000000000000000'
1225
+ }
1226
+ ],
1227
+ contractAddress: '0xb4bebd34f6daafd808f73de0d10235a92fbb6c3d'
1228
+ },
1229
+ {
1230
+ currencyCode: 'BAND',
1231
+ currencyName: 'BAND',
1232
+ denominations: [
1233
+ {
1234
+ name: 'BAND',
1235
+ multiplier: '1000000000000000000'
1236
+ }
1237
+ ],
1238
+ contractAddress: '0xba11d00c5f74255f56a5e366f4f77f5a186d7f55'
1239
+ },
1240
+ {
1241
+ currencyCode: 'REN',
1242
+ currencyName: 'Ren',
1243
+ denominations: [
1244
+ {
1245
+ name: 'REN',
1246
+ multiplier: '1000000000000000000'
1247
+ }
1248
+ ],
1249
+ contractAddress: '0x408e41876cccdc0f92210600ef50372656052a38'
1250
+ },
1251
+ {
1252
+ currencyCode: 'AMPL',
1253
+ currencyName: 'Ampleforth',
1254
+ denominations: [
1255
+ {
1256
+ name: 'AMPL',
1257
+ multiplier: '1000000000'
1258
+ }
1259
+ ],
1260
+ contractAddress: '0xd46ba6d942050d489dbd938a2c909a5d5039a161'
1261
+ },
1262
+ {
1263
+ currencyCode: 'OCEAN',
1264
+ currencyName: 'OCEAN',
1265
+ denominations: [
1266
+ {
1267
+ name: 'OCEAN',
1268
+ multiplier: '1000000000000000000'
1269
+ }
1270
+ ],
1271
+ contractAddress: '0x967da4048cD07aB37855c090aAF366e4ce1b9F48'
1272
+ },
1273
+ {
1274
+ currencyCode: 'GLM',
1275
+ currencyName: 'Golem',
1276
+ denominations: [
1277
+ {
1278
+ name: 'GLM',
1279
+ multiplier: '1000000000000000000'
1280
+ }
1281
+ ],
1282
+ contractAddress: '0x7DD9c5Cba05E151C895FDe1CF355C9A1D5DA6429'
1283
+ },
1284
+ {
1285
+ currencyCode: 'UNI',
1286
+ currencyName: 'Uniswap',
1287
+ denominations: [
1288
+ {
1289
+ name: 'UNI',
1290
+ multiplier: '1000000000000000000'
1291
+ }
1292
+ ],
1293
+ contractAddress: '0x1f9840a85d5af5bf1d1762f925bdaddc4201f984'
1294
+ }
1295
+ ]
1296
+ }
1297
+
1298
+ export const makeEthereumPlugin = (opts) => {
1299
+ return makeEthereumBasedPluginInner(opts, currencyInfo)
1300
+ }