forked from EdgeApp/edge-exchange-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (48 loc) · 1.82 KB
/
index.js
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
// @flow
import { makeCoinbasePlugin } from './rate/coinbase.js'
import { makeCoincapPlugin } from './rate/coincap.js'
import { makeCompoundPlugin } from './rate/compound.js'
import { makeConstantRatePlugin } from './rate/constantRate.js'
import { makeCurrencyconverterapiPlugin } from './rate/currencyconverterapi.js'
import { makeNomicsPlugin } from './rate/nomics.js'
import { makeWazirxPlugin } from './rate/wazirx'
import { makeXagauPlugin } from './rate/xagau.js'
import { makeChangellyPlugin } from './swap/changelly.js'
import { makeChangeNowPlugin } from './swap/changenow.js'
import { makeCoinSwitchPlugin } from './swap/coinswitch.js'
import { makeFaastPlugin } from './swap/faast.js'
import { makeFoxExchangePlugin } from './swap/foxExchange.js'
import { makeGodexPlugin } from './swap/godex.js'
import { makeShapeshiftPlugin } from './swap/shapeshift.js'
import { makeSwitchainPlugin } from './swap/switchain.js'
import { makeTotlePlugin } from './swap/totle.js'
import { makeTransferPlugin } from './swap/transfer.js'
const edgeCorePlugins = {
// Rate plugins:
coinbase: makeCoinbasePlugin,
coincap: makeCoincapPlugin,
compound: makeCompoundPlugin,
constantRate: makeConstantRatePlugin,
currencyconverterapi: makeCurrencyconverterapiPlugin,
nomics: makeNomicsPlugin,
xagau: makeXagauPlugin,
wazirx: makeWazirxPlugin,
// Swap plugins:
changelly: makeChangellyPlugin,
changenow: makeChangeNowPlugin,
coinswitch: makeCoinSwitchPlugin,
faast: makeFaastPlugin,
foxExchange: makeFoxExchangePlugin,
godex: makeGodexPlugin,
shapeshift: makeShapeshiftPlugin,
switchain: makeSwitchainPlugin,
totle: makeTotlePlugin,
transfer: makeTransferPlugin
}
if (
typeof window !== 'undefined' &&
typeof window.addEdgeCorePlugins === 'function'
) {
window.addEdgeCorePlugins(edgeCorePlugins)
}
export default edgeCorePlugins