Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5746 commits
Select commit Hold shift + click to select a range
82f8873
breakdown li.fi fees
noateden Sep 26, 2025
e0fe76b
fix uniswap v4
noateden Sep 26, 2025
0f8c89a
fix uniswap v4
noateden Sep 26, 2025
47fae3a
fix list
noateden Sep 26, 2025
dd8c711
SunPerp Volume (#4293)
SunPerp-Dev Sep 26, 2025
0f60cae
fix uscc
noateden Sep 26, 2025
0f9fd49
BrownFi: add bsc and linea (#4304)
anhnq82 Sep 26, 2025
e90022b
track pacaswap dex & fees
g1nt0ki Sep 26, 2025
72c87a8
fix uniswap v4 balcklist filter
noateden Sep 26, 2025
57890c3
Merge branch 'fix-univ4'
noateden Sep 26, 2025
87f05a8
fix thena perp
g1nt0ki Sep 26, 2025
2b4af4d
get hl perps data from indexer (#4306)
noateden Sep 26, 2025
b2f6732
refactor
noateden Sep 26, 2025
59f40d1
fetch hl builder fees vol from indxer
noateden Sep 26, 2025
40e3ec9
update hl builder adapters
noateden Sep 26, 2025
545014d
Fullsail pr (#4307)
noateden Sep 26, 2025
c672b2e
Feat: Fees for Streamflow (#4249)
tatomir-streamflow Sep 26, 2025
9abf176
Export 0supply reserves (#4280)
green-jay Sep 26, 2025
d489098
fix: step finance fees (#4289)
KPHEMRAJ Sep 26, 2025
08c9eb0
Xtrade pr (#4308)
noateden Sep 26, 2025
0168f55
added xdock.meme fees (#4297)
XdockMeme Sep 26, 2025
7ff2762
fix moonbeam, monnriver chain fees
noateden Sep 26, 2025
ac66c8f
refactor hl perps
g1nt0ki Sep 26, 2025
c46f2eb
remove bad rubic volume
noateden Sep 28, 2025
a151cda
disable sushi agg boba bnb
noateden Sep 28, 2025
fbfad6e
update hyperliquid fees breakdown (#4310)
noateden Sep 28, 2025
6771d9b
fix metropolis amm holder revenue
g1nt0ki Sep 29, 2025
08373bc
track thena oi
g1nt0ki Sep 29, 2025
816d077
split apollox
g1nt0ki Sep 29, 2025
5b38b29
bugfix
g1nt0ki Sep 29, 2025
504b3d2
opensea: track hyperevm
g1nt0ki Sep 29, 2025
e707107
fix holdstation agg fees
noateden Sep 29, 2025
4668c63
track somnex fees & volume
g1nt0ki Sep 29, 2025
332bc68
update aden
g1nt0ki Sep 29, 2025
d6cc458
remove spectra bad pool
noateden Sep 29, 2025
fd7b60d
New open-interest Adapters, Fix kalshi (#4316)
treeoflife2 Sep 29, 2025
090f2cd
track somnia network fees
g1nt0ki Sep 29, 2025
a310bba
add xtrade protocol perps (#4311)
hoangxprotocol Sep 30, 2025
23e8240
Added PoolTogether V5 POOL Revenue (#4303)
Ncookiez Sep 30, 2025
40ec38d
feat: update ring protocol fees (#4312)
qiuchenghui Sep 30, 2025
0451878
[0x]: Track volumes for Plasma chain (#4314)
pgrzesik Sep 30, 2025
be8ed29
blazingbot: add Story chain addresses and start date (#4315)
rangerf Sep 30, 2025
5a61300
Optfun notional volume methodogy for v2 (offchain execution) (#4298)
lukmaan-k Sep 30, 2025
d47bdf5
update rubic bad data
noateden Sep 30, 2025
ab656b5
smol fix
noateden Sep 30, 2025
c3b7426
injective: split oi & vol
g1nt0ki Sep 30, 2025
09b3dff
aerodrome pre-launch token bribe revenue (#4318)
treeoflife2 Sep 30, 2025
5bbcee1
fix pacaswap
g1nt0ki Sep 30, 2025
4bfbbfc
fix skate bsc
noateden Oct 1, 2025
819dc4b
remove wrong comment (#4320)
treeoflife2 Oct 1, 2025
e19f825
query hl history fees from hypurrscan (#4321)
noateden Oct 1, 2025
69dc783
fix boros volume
noateden Oct 1, 2025
3164752
add notes
noateden Oct 1, 2025
708473a
update hlp fees and start times
noateden Oct 1, 2025
c53c9b8
track legion volume and fees (#4323)
noateden Oct 1, 2025
981238e
Fix silo v2 fee and revenue on defi llama (#4291)
yvesfracari Oct 1, 2025
c1f0e2d
fxi silo v2
noateden Oct 1, 2025
6905d4d
track limitless fee and volume (#4266)
KPHEMRAJ Oct 1, 2025
cf89467
fix aptos env typo (#4331)
noateden Oct 2, 2025
1ef0384
remove spam vol paycash
noateden Oct 2, 2025
2d6a837
track metamask usd fees (#4313)
KPHEMRAJ Oct 2, 2025
eb5017f
track lotus-finance volume (#4334)
treeoflife2 Oct 2, 2025
1e285bc
DefiTuna Liquidity fees adapter (#4333)
nordwinder Oct 2, 2025
01ee12d
add dexs/ultrasolid-v3.ts (#4328)
ultrasolidxyz Oct 2, 2025
7f32f4c
Create diviswap.ts (#4330)
diviswap Oct 2, 2025
d614191
TeaREX: add more markets (#4327)
VensonLiou Oct 2, 2025
e979e0c
delay padre data pull
g1nt0ki Oct 2, 2025
ccb6384
Added Defx Fees and Open Interest (#4324)
rajatmehta-work Oct 2, 2025
7a6f88d
Add premium volume and fees (#4329)
lukmaan-k Oct 2, 2025
332bb80
Xpress update (#4325)
jack-squirrel Oct 2, 2025
333fb39
add dexalot bsc volumes (#4336)
jaimi-io Oct 2, 2025
89a29a8
Blazingbot story (#4335)
rangerf Oct 2, 2025
1bf3d6f
remove unused
g1nt0ki Oct 2, 2025
c2cd992
add dependencies flag for dune adapters (#4339)
treeoflife2 Oct 3, 2025
13e373c
fix virtual protocol query and disable solana as very low volume (#4340)
treeoflife2 Oct 3, 2025
bb38e9f
verify and update boros
noateden Oct 3, 2025
4d9208a
fix dln holder revenue
noateden Oct 3, 2025
03578af
update unit deployed coins
noateden Oct 3, 2025
29f81f4
add euler EUL holders revenue
noateden Oct 3, 2025
6ff057b
fix netRevenue
noateden Oct 3, 2025
3afde9f
update letsbonk fees
noateden Oct 3, 2025
5e2f82d
fix boros
noateden Oct 3, 2025
d9592f1
update boros market ids
noateden Oct 3, 2025
7e8e04c
fix zkswap v2
noateden Oct 3, 2025
aa6351f
fix babydogeswap fees
noateden Oct 3, 2025
19698ef
track token works fees and vol (#4342)
noateden Oct 3, 2025
2149b9c
track tokos fees
g1nt0ki Oct 3, 2025
2207da2
Add pingu null check (#4348)
RohanNero Oct 4, 2025
fedaea8
retry paraswap api
noateden Oct 4, 2025
01136c8
fix bebop
noateden Oct 4, 2025
4535fbd
update new curators fees (#4351)
noateden Oct 4, 2025
8a21702
fix: usual fee (#4338)
KPHEMRAJ Oct 4, 2025
056b60c
Add Plasma chain support to Omni Exchange DEX adapters (#4345)
tazmaan-defi Oct 4, 2025
ab9b34a
add bsc token blacklist for dexs
noateden Oct 4, 2025
6dcad04
fix Reya open interest (#4350)
ioanaroceanu2000 Oct 4, 2025
6832851
blacklist tokens
noateden Oct 4, 2025
293beb1
blacklist tokens
noateden Oct 4, 2025
4f17db3
clear spam vol sushi agg
noateden Oct 4, 2025
08e4d01
track rysk-v12 finance fees and volume (#4349)
KPHEMRAJ Oct 4, 2025
111948d
merge defx
g1nt0ki Oct 4, 2025
019f90f
update quickswap v2 hr
noateden Oct 4, 2025
ffd0998
fix swapmode
noateden Oct 4, 2025
b80bd08
blacklist dex vol tokens
noateden Oct 5, 2025
7cd8656
fix migrate-fun remove self unwrap transactions (#4364)
treeoflife2 Oct 6, 2025
0f4efa4
Virtual-protocol-correct-start-date (#4365)
treeoflife2 Oct 6, 2025
db77f6a
add salsadex (#4361)
Tarnadas Oct 6, 2025
bdc663c
fix pacifica oi calculation (#4366)
treeoflife2 Oct 6, 2025
dccd118
Fix paradex OI calculation (#4369)
treeoflife2 Oct 6, 2025
c92a7e1
blacklist bsc token vol
noateden Oct 6, 2025
9e23898
track https://www.punkstrategy.fun fees
g1nt0ki Oct 6, 2025
6a11f3a
Added Etherlink chain for 3route aggregator (#4371)
k-karuna Oct 6, 2025
41ac073
remove apex-omni volume check (#4376)
treeoflife2 Oct 7, 2025
3aee5f6
add shibarium tracking for shibaswap (#4373)
RohanNero Oct 7, 2025
71a7eaf
Added new tax wallet for tracking Fees of the lab-terminal platform (…
vitusha-rat Oct 7, 2025
1da7e5b
track upshift fees (#4343)
KPHEMRAJ Oct 7, 2025
eb58424
added filters for double counting (#4344)
DomCrogan Oct 7, 2025
fb156c4
chore: Add Quanto perpetuals adapter for Solana (#4346)
Genesis3800 Oct 7, 2025
b8b65e0
o1.exchange SOL fee (#4354)
JerryPan2718 Oct 7, 2025
5346c64
update @defillama/sdk
g1nt0ki Oct 7, 2025
91bca93
track nouns (#4359)
KPHEMRAJ Oct 7, 2025
2f63724
track punkstrategy (#4360)
KPHEMRAJ Oct 7, 2025
52fa1de
Fix EdgeX revenue field (#4379)
sean35809 Oct 7, 2025
d17f472
added baby doge perps (#4380)
giantHound Oct 7, 2025
29c0bdb
add leadBTC fees (#4341)
Max974fi Oct 7, 2025
6bad8f4
track node ops fees & revenue
g1nt0ki Oct 7, 2025
3ccd72f
count whitelisted token vol only
noateden Oct 7, 2025
f12b113
fix solv d2 fees
noateden Oct 7, 2025
67b1732
add shibaswap-v2 adapter (#4381)
RohanNero Oct 7, 2025
49ff480
add spread fees to Reya DEX (#4356)
ioanaroceanu2000 Oct 7, 2025
4d02d06
track Aspecta ai (#4370)
s4rv4d Oct 7, 2025
f95c646
feat: Fees for UPUP (#4234)
upheaval-defi Oct 8, 2025
5875abf
minor fix (#4386)
KPHEMRAJ Oct 8, 2025
fdbdab3
Adds tracking of Sonic chain for 0x (#4387)
pgrzesik Oct 8, 2025
7ee3bd9
Change token-strategy from hooks to treasury address inflows due to h…
treeoflife2 Oct 8, 2025
1cebea4
fix zyfai fees
noateden Oct 8, 2025
d2fbde5
kyberswap aggregator plasma chain (#4389)
treeoflife2 Oct 8, 2025
40700cc
fix uni v2 bsc
noateden Oct 8, 2025
caaf494
track metamask perps vol fees
noateden Oct 8, 2025
c1f44e3
fix 1inch agg
noateden Oct 8, 2025
08affc9
remove 1inch bad vol bsc
noateden Oct 8, 2025
5435aa7
Add dyorSwap volume/fees tracking on Plasma chain (#4363)
fosc19 Oct 8, 2025
808e458
Track v1 fees (#4367)
lukmaan-k Oct 8, 2025
d550dbf
fix reya daily spread fees (#4391)
ioanaroceanu2000 Oct 8, 2025
cb91ad9
Split Overtime adapter: separate fees from options volume (#4375)
LeifuChen Oct 8, 2025
e73285a
update gmgn fee accounts (#4397)
BlackKeyZ Oct 9, 2025
4890b48
feat: add RP9_2 support to sushi agg (#4398)
0xMasayoshi Oct 9, 2025
f9762b4
Add datadex revenue tracking (#4395)
RohanNero Oct 9, 2025
84cfa16
track idex classic historic fee and volume (#4235)
KPHEMRAJ Oct 9, 2025
2670a78
update @defillama/sdk
g1nt0ki Oct 9, 2025
60288f7
Feat: Add Symmio and builders (#4377)
0xpeluche Oct 9, 2025
3cefe48
fix dex vols
noateden Oct 9, 2025
c6c79e5
accept zero fees
noateden Oct 9, 2025
b0073ed
refactor datadex
noateden Oct 9, 2025
83aa23f
update nodeops
g1nt0ki Oct 9, 2025
c295eff
breakdown fees squadswap
noateden Oct 9, 2025
ea78782
four-meme-dune version (#4399)
treeoflife2 Oct 9, 2025
1f82959
add correct revenue for token-works (#4400)
treeoflife2 Oct 9, 2025
4d97d99
four-meme dex volume convert to v1 (#4407)
treeoflife2 Oct 10, 2025
394973c
feature: update fee data source (#4393)
crispyfisherman Oct 10, 2025
0d323c1
update resolv (#4411)
0xpeluche Oct 10, 2025
ffb10c0
fix typo
noateden Oct 10, 2025
63d8f43
Update: Resolv (#4412)
0xpeluche Oct 10, 2025
d4faa43
Add dyorswap-launchpad (Plasma) on-chain volume & fees (bonding curve…
fosc19 Oct 10, 2025
8d846f5
Update makenow-meme.ts (#4409)
alaskan-malamute2 Oct 10, 2025
306b6ef
Track Paal-AI revenue (#4403)
0x4r45h Oct 10, 2025
c19e768
Somnia revenue (#4404)
0x4r45h Oct 10, 2025
08b6804
Aborean finance adapters (#4413)
treeoflife2 Oct 10, 2025
14dbf38
Autopilot fees (#4406)
KPHEMRAJ Oct 10, 2025
c2eb459
add hwusd and lint (#4408)
darvinrio Oct 10, 2025
f828f0c
refactor near-intent (#4414)
treeoflife2 Oct 10, 2025
4685169
holder revenue for somnia chain (#4415)
treeoflife2 Oct 10, 2025
0c3732f
fix sushi spike volume
noateden Oct 10, 2025
bf2bed9
disable plume on ambient
noateden Oct 10, 2025
52891f1
Bob pr (#4416)
noateden Oct 10, 2025
ee1efe8
Implement LiquidMesh aggregator adapter (#4385)
welkinbai Oct 10, 2025
89b4e81
Update gauntlet.ts (#4402)
Roni-1997 Oct 11, 2025
4b53beb
maestro fix base dispatcher and add missing chains (#4419)
treeoflife2 Oct 11, 2025
3a13ea1
maestro new chains and remove eth transfers logic (#4420)
treeoflife2 Oct 11, 2025
4a95c77
fetch HLP pnl from hl api (#4421)
noateden Oct 11, 2025
15a3303
throw error when data not found
noateden Oct 11, 2025
b284b28
disable hlp mm pnl
noateden Oct 11, 2025
97baa0a
fix dfyn
g1nt0ki Oct 12, 2025
8090b72
fix lynex volume
noateden Oct 12, 2025
fd06aaa
fix swapx algebra
g1nt0ki Oct 12, 2025
51cbb42
bugfix
g1nt0ki Oct 12, 2025
fe69319
fix liquidmesh
noateden Oct 12, 2025
4923f11
refactor
noateden Oct 12, 2025
1158ee7
Adding HyperLiquid + Plasma Networks (#4423)
andrewnguyen1997 Oct 12, 2025
09d4d05
Fix protocol adapters (#4425)
treeoflife2 Oct 13, 2025
a7dd3d1
fix LSP finance
g1nt0ki Oct 13, 2025
e4f5822
bugfix
g1nt0ki Oct 13, 2025
5507742
temp disable tokens filter 1inch
noateden Oct 13, 2025
3320e43
bugfix
g1nt0ki Oct 13, 2025
7c70496
Fix migrate-fun fees/revenue (#4432)
treeoflife2 Oct 13, 2025
318a4b5
hide Jup perp oi, until we get correct source (#4433)
treeoflife2 Oct 13, 2025
a89f90f
remove dispatcher logic, so it calculate the fees accurately. (#4434)
treeoflife2 Oct 13, 2025
0d55c6e
maestro hide tron chain (#4435)
treeoflife2 Oct 13, 2025
a1911ba
fix swapx v2 dexs
noateden Oct 13, 2025
12fb033
add giza fee tracking (#4396)
RohanNero Oct 13, 2025
6826970
new phantom evm fee wallet (#4436)
treeoflife2 Oct 13, 2025
0dec0b1
track rainbow perps data (#4441)
KPHEMRAJ Oct 14, 2025
d0400fd
fix: aggregators: hyperflow: support router v21 (#4437)
hyperflowdev Oct 14, 2025
2ba7a62
update reya dex and satori oi name
noateden Oct 14, 2025
e880682
fix: reserve rights fees (#4438)
KPHEMRAJ Oct 14, 2025
0c1639d
track derive oi (#4439)
KPHEMRAJ Oct 14, 2025
8d8b8e0
Sparkdex-v3-1 revenue (#4427)
0x4r45h Oct 14, 2025
39ab958
add fluxa for dex aggregator (#4426)
dev-capylabs Oct 14, 2025
8109b2f
add bl token
noateden Oct 14, 2025
e8047d6
Add Hemi Support (#4448)
0xJonHoldsCrypto Oct 14, 2025
f26b7cb
Cheapgm pr (#4449)
noateden Oct 14, 2025
716f897
reya fees batching logs (#4444)
ioanaroceanu2000 Oct 14, 2025
085643c
track moonwell vaults fees
noateden Oct 14, 2025
cb23c15
update source for navi-aggregator (#4450)
MarkChen1213866 Oct 15, 2025
aaf1f0e
Add Cetus DLMM (#4442)
jay20972 Oct 15, 2025
93d747c
aster keep realistic volume wrt OI, until we figure out the farming v…
treeoflife2 Oct 15, 2025
3cdfbf7
feat: Enhance Haiku aggregator with new chains (#4453)
haiku-bevis Oct 15, 2025
6230cd9
Add Start and End timestamps for fetching fees (#4446)
abdullahabro Oct 15, 2025
1c3cee7
Add Punk.Coffee fee&volume (#4417)
matthew7251 Oct 15, 2025
5a80d31
Add Stratex Protocol fees adapter (#4454)
AlexRamos93 Oct 15, 2025
b21cece
Updated BSC USD Addresses (#4457)
a-d-i-t-y-a-s Oct 15, 2025
f11b364
track tydro fees
g1nt0ki Oct 15, 2025
24b2af0
Add methodology for holder revenue description in Overtime adapter (#…
LeifuChen Oct 16, 2025
38c9dda
Hyperbeat pr (#4466)
noateden Oct 16, 2025
2e9facf
add clearstar hemi
noateden Oct 16, 2025
e3f4757
fix morpho hemi address
noateden Oct 16, 2025
7c1a082
verify colony fees
noateden Oct 16, 2025
5d63af3
split lst fees from hyperbeat (#4468)
noateden Oct 16, 2025
d959fcd
fix paradex vol api
noateden Oct 17, 2025
4af4868
Breakdown balance minor bug (#4471)
KPHEMRAJ Oct 17, 2025
36248d7
Fix Rango statistics (#4464)
hamidgh09 Oct 17, 2025
3080383
Fix native asset logic (#4463)
elvijsTDL Oct 17, 2025
6e95f42
build dimension modules
g1nt0ki Oct 17, 2025
19f28f7
skip ts check
g1nt0ki Oct 17, 2025
3a2fe04
update hyperbeat revenue
noateden Oct 17, 2025
c5f3fb8
Track token buybacks for ApeX Protocol (#4390)
0x4r45h Oct 17, 2025
a067717
Feat: update volume for FlowX Perps (#4445)
devflowx Oct 17, 2025
eb321ba
track solid-yield fees/revenue (#4474)
treeoflife2 Oct 17, 2025
9b742bd
PuppyFun Connector Update (#4443)
giantHound Oct 17, 2025
dedc5ec
adjust fees and update graph link (#4447)
CLAM101 Oct 17, 2025
0ea0266
fix: origin protocol fee (#4473)
KPHEMRAJ Oct 17, 2025
1a6b388
add pharaoh-v3-cl and legacy (#4470)
0xShad0w Oct 17, 2025
0d7eea8
Aark dimension (#4462)
jerry7285 Oct 17, 2025
2657573
Variational fee adapter (#4455)
s4rv4d Oct 17, 2025
ed0d27f
track open stable index fees (#4461)
KPHEMRAJ Oct 17, 2025
e459267
fix hyperbeat revenue
noateden Oct 17, 2025
8e2c7e9
update indexer support day
noateden Oct 17, 2025
ca89849
hyperevm and plasma chain fees/revenue (#4475)
treeoflife2 Oct 18, 2025
ef2087a
add aquifer dex in the style of tesserav, humidifi (#4465)
totlsota Oct 18, 2025
1212713
switch to pnpm
g1nt0ki Oct 18, 2025
6abe5f1
Use pnpm cache (#4476)
g1nt0ki Oct 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 40 additions & 0 deletions .github/workflows/build-modules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build dimensionModules and upload artifact

on:
push:
branches: [ "master" ]

jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run buildImports script
run: pnpm run build

- name: Publish dimensionModules.json as "latest" release
uses: ncipollo/release-action@v1
with:
tag: latest
name: Latest dimensionModules
artifacts: cli/dimensionModules.json
allowUpdates: true
31 changes: 19 additions & 12 deletions .github/workflows/commentResult.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { readFileSync } = require('fs');
const axios = require('axios');
const junk = 'VPTOH1X0B7rf8od7BGNsQ1z0BJk8iMNLxqrD';
const junk = 'rmicl\x1Eefn]JsfjoHoGRpWOt3_u@L_LpTUc_BLf0T/i/mXC';

async function main() {
const [, , log, author, repo, pr, adapterNameKey ] = process.argv;
Expand All @@ -9,32 +9,39 @@ async function main() {
const [_, adapterName] = adapterNameKey.split('@')


const errorString = '------ ERROR ------';
const summaryIndex = file.indexOf('_______________________________________');
const errorString = 'ERROR';
const summaryIndex = file.indexOf('---------------------------------------------------');
const errorIndex = file.indexOf(errorString);
let body;

if (summaryIndex != -1) {
body = `The ${adapterName} adapter exports:
\n \n ${file.substring(summaryIndex).replaceAll('\n', '\n ')}`;
body = `The ${adapterName} adapter exports:
\n \n ${file.replaceAll('\n', '\n ')}`;
console.info(`Posting comment:\n${body}`)
} else if (errorIndex != -1) {
body = `Error while running adapter ${adapterName} adapter:
body = `Error while running adapter ${adapterName} adapter:
\n \n ${file.split(errorString)[1].replaceAll('\n', '\n ')}`;
} else
console.info(`Posting comment:\n${body}`)
} else {
console.info(`No error or summary found in log file`);
return;
}


console.info(`Posting comment:\n${body}`)

await axios.post(
`https://api.github.com/repos/${author}/${repo}/issues/${pr}/comments`,
{ body }, {
headers: {
Authorization: `token ghp_${translate(junk)}`,
Authorization: scramble(junk),
Accept: 'application/vnd.github.v3+json'
}
});
};
function translate(input) {
return input ? translate(input.substring(1)) + input[0] : input;
};
main();
function scramble(str) {
return str.split('').reduce((a, b) => {
return a + String.fromCharCode(b.charCodeAt(0) + 2);
}, '');
}
main();
4 changes: 2 additions & 2 deletions .github/workflows/getFileList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const ALLOWED_ROOTS = ['volumes', 'dexs', 'options', 'derivatives', 'incentives', 'fees', 'options', 'protocols']
const ALLOWED_ROOTS = ['volumes', 'dexs', 'options', 'derivatives', 'incentives', 'fees', 'options', 'protocols', 'aggregators','aggregator-derivatives','bridge-aggregators', 'open-interest']
const MODIFIED = parse(process.env.MODIFIED)
const ADDED = parse(process.env.ADDED)
const fileSet = new Set();
Expand All @@ -13,4 +13,4 @@ console.log(JSON.stringify([...fileSet]))

function parse(data) {
return data.replace('[', '').replace(']', '').split(',')
}
}
47 changes: 36 additions & 11 deletions .github/workflows/test-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,42 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: file_changes
uses: trilom/file-changes-action@v1.2.4
uses: trilom/file-changes-action@ce38c8ce2459ca3c303415eec8cb0409857b4272
with:
output: 'json'
fileOutput: 'json'
- name: Check out repository code
uses: actions/checkout@v2

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run changes files through test script
run: |
# Store the current commit hash in a variable
current_commit=$(git rev-parse HEAD)

# Checkout to master to check if new adapters files are of v2
git fetch origin master:master

# Checkout back to the original commit
git checkout $current_commit

RUN_FILES=$(
MODIFIED=${{ steps.file_changes.outputs.files_modified}} \
ADDED=${{ steps.file_changes.outputs.files_added}} \
Expand All @@ -24,22 +52,19 @@ jobs:
exit 0
fi

yarn install --production
yarn upgrade @defillama/sdk

list=$(echo $RUN_FILES | tr -d '"[]' | tr "," "\n")

for i in ${list}
do
{
do
{
IFS='@' read -r -a array <<< "$i"
yarn test ${array[0]} ${array[1]} 2>&1 | tee output.txt
npm run test ${array[0]} ${array[1]} 2>&1 | tee output.txt
node ${{ github.workspace }}/.github/workflows/commentResult.js /home/runner/work/dimension-adapters/dimension-adapters/output.txt "${{ github.repository_owner }}" "${{ github.event.repository.name }}" "${{ github.event.number }}" ${i}
if grep -q "\-\-\-\- ERROR \-\-\-\-" output.txt; then
exit 1;
fi
} || {
} || {
echo -n $i
echo ' doesnt run'
}
done
done
36 changes: 25 additions & 11 deletions .github/workflows/ts-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,28 @@ jobs:
ts-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn run update-submodules
- name: Get Node.js
uses: actions/setup-node@v1
with:
node-version: '16'
- run: yarn
- name: Checking adapters
run: yarn run ts-check
- name: Checking cli
run: yarn run ts-check-cli
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Checking adapters
run: pnpm run ts-check

- name: Checking cli
run: pnpm run ts-check-cli
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ node_modules
.vscode
.DS_store
.env
.idea
.idea
yarn.lock
test.py
test.js

cli/dimensionModules.json
Loading