forked from SoulSwapFinance/soul-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.js
89 lines (68 loc) · 3.21 KB
/
router.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
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
'use strict';
const Router = require('koa-router');
const router = new Router();
const noop = require('./api/noop');
const supply = require('./api/supply');
const price = require('./api/price');
const tokens = require('./api/tokens');
const sor = require('./api/sor');
const nft = require('./api/nft');
const enjoyooor = require('./api/enjoyooor/nft');
const pairs = require('./api/pairs');
const users = require('./api/users');
const luxor = require('./api/luxor');
const underworld = require('./api/underworld');
const coffin = require('./api/coffinbox');
const summoner = require('./api/summoner');
const defarm = require('./api/defarm');
const manifester = require('./api/manifester');
const soulswap = require('./api/soulswap');
const crosschain = require('./api/crosschain');
const bonds = require('./api/bonds');
const aggregator = require('./api/aggregator');
router.get('/supply/circulating', supply.circulatingSupply);
router.get('/supply/circulating-adjusted', supply.circulatingSupplyAdjusted);
router.get('/supply/total', supply.totalSupply);
router.get('/supply/total-adjusted', supply.totalSupplyAdjusted);
router.get('/supply/max', supply.maxSupply);
router.get('/sor', sor.sorInfo);
router.get('/nft/pop/circulating', nft.circulatingSupply);
router.get('/enjoyooor/nft/:collection', enjoyooor.collectionInfo)
router.get('/enjoyooor/nft/:collection/:id', enjoyooor.itemInfo);
router.get('/tokens/:id', tokens.tokenInfo);
router.get('/pairs/:id', pairs.pairInfo);
router.get('/pairs/:userAddress/:id', pairs.userPairInfo);
router.get('/priceftm/:tokenAddress', price.derivedPriceOfToken)
router.get('/priceusd/:tokenAddress', price.priceOfToken)
router.get('/users/:id', users.userInfo)
router.get('/users/:id/:tokenAddress', users.tokenInfo)
router.get('/luxor', luxor.infos)
router.get('/luxor/:id', luxor.bondInfo)
router.get('/luxor/users/:userAddress', luxor.userInfo)
// router.get('/underworld', underworld.infos)
router.get('/underworld/:id', underworld.pairInfo)
router.get('/underworld/users/:userAddress/:id', underworld.userInfo)
// router.get('/coffin', coffin.infos)
router.get('/coffin/:id', coffin.coffinInfo)
router.get('/coffin/users/:userAddress/:id', coffin.userInfo)
router.get('/summoner', summoner.infos)
router.get('/summoner/stake/users/:userAddress', summoner.stakeInfo)
router.get('/summoner/:id', summoner.poolInfo)
router.get('/summoner/users/:userAddress/:id', summoner.userInfo)
router.get('/defarm', defarm.infos)
router.get('/defarm/:id', defarm.poolInfo)
router.get('/defarm/users/:userAddress/:id', defarm.userInfo)
router.get('/manifester', manifester.infos)
router.get('/manifester/:id', manifester.poolInfo)
router.get('/manifester/users/:userAddress/:id', manifester.userInfo)
router.get('/soulswap', soulswap.infos)
router.get('/soulswap/vault', soulswap.vaultInfo)
router.get('/soulswap/vault/users/:userAddress', soulswap.userVaultInfo)
router.get('/bonds', bonds.infos)
router.get('/bonds/:pid', bonds.bondInfo)
router.get('/bonds/users/:userAddress/:pid', bonds.userInfo)
router.get('/crosschain/:id', crosschain.crossInfo)
router.get('/aggregator/', aggregator.aggregatorInfo)
router.get('/aggregator/:inputAmount/:fromAddress/:toAddress', aggregator.amountsOut)
router.get('/', noop);
module.exports = router;