Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2878 commits
Select commit Hold shift + click to select a range
c016d77
Add hydradx swaps option
valentunn Jan 31, 2024
a6deb22
add InvArch dapp (#2438)
leohar Jan 31, 2024
5a19b5f
fix kusama asset hub coeff (#2439)
stepanLav Jan 31, 2024
e8e615a
Update USDC coefficients (#2436)
stepanLav Jan 31, 2024
4e21940
Promote USDC for AssetHub <> HydraDX
stepanLav Jan 31, 2024
01f6035
promote InvArch dapp
leohar Jan 31, 2024
129a3cc
kusama asset hub fix (#2440)
stepanLav Jan 31, 2024
30e388f
add Manta contract, add Manta EVM API, fix Explorer, update name to M…
leohar Jan 31, 2024
be5d739
add Rolimec Testnet (#2443)
leohar Jan 31, 2024
a16b5ca
promote Manta Pacific
leohar Jan 31, 2024
e466afa
add networkDeliveryFee to v5 dev (#2447)
leohar Jan 31, 2024
3d9d3d1
Update Test data File (#2445)
novasama-bot[bot] Jan 31, 2024
d56310b
promote add networkDeliveryFee to v6 (#2448)
leohar Jan 31, 2024
9c0acf4
add Manta to v17 (#2449)
stepanLav Jan 31, 2024
0a0e59b
Merge pull request #2446 from novasamatech/feat/promote_manta_pacific
ERussel Feb 1, 2024
a2b73ad
Merge pull request #2442 from novasamatech/feat/promote_invarch_dapp
ERussel Feb 1, 2024
aca4092
Update networks list (#2451)
novasama-bot[bot] Feb 1, 2024
f87718d
Update dapps list (#2452)
novasama-bot[bot] Feb 1, 2024
8aacd8d
add testnet to Rolimec (#2450)
leohar Feb 1, 2024
fff87dd
Merge pull request #2441 from novasamatech/promote/USDC_xcm
ERussel Feb 1, 2024
f827bfa
Update networks list (#2454)
novasama-bot[bot] Feb 2, 2024
ce8c937
Merge pull request #2437 from novasamatech/hydradx-swaps
ERussel Feb 2, 2024
6c743d4
Merge pull request #2433 from novasamatech/feat/promote_polimec_staking
ERussel Feb 2, 2024
ec64167
Update networks list (#2455)
novasama-bot[bot] Feb 2, 2024
9e67be7
Update transfers.json
antonijzelinskij Feb 2, 2024
72766e9
Merge pull request #2457 from novasamatech/fix/dot-manta-xcm
ERussel Feb 2, 2024
c1c5c6a
Pause Kapex network (#2456)
stepanLav Feb 6, 2024
c31a480
Update test data file (#2459)
novasama-bot[bot] Feb 6, 2024
66d0aa4
Update networks list (#2458)
novasama-bot[bot] Feb 6, 2024
4b211b8
Add RadiumBlock nodes to chains json (#2453)
radiumb Feb 6, 2024
3114d32
switch Hydra subquery to stage
leohar Feb 6, 2024
3ba67d6
Merge pull request #2460 from novasamatech/feat/switch_hydra_subquery…
ERussel Feb 6, 2024
4895628
remove KSM xcms, leave Kusama <KSM> Kusama Asset Hub in v6
leohar Feb 6, 2024
3e3cbcc
fix: get back Amplitude USDT Statemine
leohar Feb 6, 2024
9d0a95c
Merge pull request #2461 from novasamatech/fix/remove_kusama_xcms
ERussel Feb 6, 2024
3865b4a
remove USDT and RMRK
stepanLav Feb 7, 2024
abd647f
remove USDT and RMRK
stepanLav Feb 7, 2024
51f160d
adding new infura nodes (#2462)
stepanLav Feb 7, 2024
072466e
Merge pull request #2463 from novasamatech/fix/xcm_kusama_hub
ERussel Feb 7, 2024
d70eba0
update bit.country pioneer nodes
stepanLav Feb 8, 2024
f20f637
Merge pull request #2465 from novasamatech/fix/add_nodes_bit_country
ERussel Feb 8, 2024
26ccfc1
add Ajuna, Jur projects to dev (#2467)
leohar Feb 9, 2024
2fbe9f8
promote Ajuna, Jur tx history
leohar Feb 9, 2024
0d3788d
add Energy Web (#2469)
leohar Feb 12, 2024
e603320
Add stableswap pools (#2470)
ERussel Feb 12, 2024
1beac4c
remove Flashbots node (#2466)
stepanLav Feb 12, 2024
6fc2ac7
add Polkadex crowdloan (#2473)
leohar Feb 13, 2024
b6e10db
promote Polkadex crowdloan
leohar Feb 13, 2024
56d31de
replace pool token icons (#2475)
leohar Feb 13, 2024
e51f957
Merge pull request #2474 from novasamatech/feat/promote_polkadex_crow…
ERussel Feb 14, 2024
b34307e
remove price-id for TZERO (#2476)
stepanLav Feb 15, 2024
ffc2541
promote HydraDX swaps
leohar Feb 15, 2024
1109fce
fix pendulum fee for DOT (#2478)
stepanLav Feb 15, 2024
35ae718
Promote Pendulum DOT fee coeff (#2479)
stepanLav Feb 15, 2024
6b7e8e9
update moonriver coeff (#2471)
stepanLav Feb 16, 2024
10bca44
Merge pull request #2477 from novasamatech/feat/promote_hydra_swaps
ERussel Feb 16, 2024
381052d
XCM. Return KSM on Moonriver (#2481)
stepanLav Feb 16, 2024
892edc5
Merge pull request #2468 from novasamatech/feat/promote_ajuna_jur_sub…
ERussel Feb 19, 2024
d475c78
remove polkadot XCMs
stepanLav Feb 19, 2024
bba910c
Merge pull request #2484 from novasamatech/fix/switch_off_polkadot_xcms
ERussel Feb 19, 2024
8c6f6b8
return Karura
stepanLav Feb 19, 2024
ad661e7
update karura fee
stepanLav Feb 19, 2024
0c32f52
Added moonbeam RadiumBlock rpc endpoints (#2483)
radiumb Feb 19, 2024
86938ce
add Cypress token price
leohar Feb 19, 2024
24a2624
Merge pull request #2488 from novasamatech/feat/add_price_cypress
ERussel Feb 19, 2024
66e49ae
update delivery fee
stepanLav Feb 19, 2024
23ba38b
adding polkadot delivery fee (#2490)
stepanLav Feb 19, 2024
a4ac223
XCM. Return RMRK (#2482)
stepanLav Feb 19, 2024
e94013b
Merge pull request #2485 from novasamatech/promote/return_karura
ERussel Feb 20, 2024
b46288c
XCM. Return Polkadot XCMs (#2491)
stepanLav Feb 20, 2024
2b82cf4
fix problems
stepanLav Feb 20, 2024
e1578ce
fix zeros
stepanLav Feb 20, 2024
c88b0fd
Merge pull request #2493 from novasamatech/fix/delivery_fee
ERussel Feb 20, 2024
c001d25
return Moonbeam
stepanLav Feb 20, 2024
a463a83
Merge pull request #2492 from novasamatech/promote/return_moonbeam
ERussel Feb 20, 2024
bbdb15c
add vsDOT, MANTA, vMANTA to Bifrost Polkadot (#2495)
leohar Feb 20, 2024
f8d8e24
return Acala
stepanLav Feb 20, 2024
ecbf638
promote vsDOT, MANTA, vMANTA to Bifrost Polkadot (#2496)
leohar Feb 21, 2024
515ea0e
Merge pull request #2494 from novasamatech/promote/return_acala
ERussel Feb 21, 2024
25985d0
return Bifrost Polkadot
stepanLav Feb 23, 2024
43acf5f
Bifrost Pokadot. Update currency_id_scale (#2498)
stepanLav Feb 23, 2024
a071c17
return Astar network
stepanLav Feb 23, 2024
eb32d92
return Interlay XCMs
stepanLav Feb 23, 2024
944700b
set kusama subquery (#2500)
stepanLav Feb 23, 2024
bcdbd8d
subquery switch (#2502)
stepanLav Feb 23, 2024
dde562c
Merge pull request #2499 from novasamatech/promote/return_astar_xcms
ERussel Feb 24, 2024
ae5e013
Merge pull request #2501 from novasamatech/promote/return_interlay_xcms
ERussel Feb 24, 2024
cb4b7c4
return subquery back
stepanLav Feb 26, 2024
eec3629
Merge pull request #2504 from novasamatech/fix/return_kusama_subquery
ERussel Feb 26, 2024
a1a4589
Merge pull request #2497 from novasamatech/promote/return_bifrost_pol…
ERussel Feb 26, 2024
b2a07b9
add RMRK on Moonbeam and Ethereum (#2505)
leohar Feb 26, 2024
87a291b
promote add RMRK to Moonbeam, Ethereum
leohar Feb 26, 2024
1fed71f
remove Parallel rewards claim dapp
leohar Feb 27, 2024
b4953b6
Merge pull request #2508 from novasamatech/feat/promote_rmrk_on_moonb…
ERussel Feb 27, 2024
800bfda
Merge pull request #2509 from novasamatech/fix/remove_parallel_reward…
ERussel Feb 27, 2024
e7dcfa6
Update dapps list (#2510)
novasama-bot[bot] Feb 27, 2024
d5fea02
add pools to TZERO (#2507)
leohar Feb 27, 2024
ed0f6ed
Add Ternoa HUB (#2512)
TernoaSupport Feb 28, 2024
010eb4e
update Ternoa icon and position (#2514)
leohar Feb 28, 2024
fc40684
add networkdeliveryfee for Kusama Polkadot Bridgehub Collectives (#2515)
leohar Feb 28, 2024
5cec2aa
fix Ternoa icon (#2517)
leohar Feb 28, 2024
808c5cd
update Ternoa dapp icon to png (#2518)
leohar Feb 28, 2024
d59668b
Original Trail Parachain rebranding (#2520)
leohar Feb 29, 2024
2ded667
add DED GAMES (#2522)
leohar Feb 29, 2024
f04e8b0
fix update tokens test (#2525)
leohar Feb 29, 2024
c5ca868
promote NeuroWeb (#2521)
leohar Mar 1, 2024
1a561e0
promote Ternoa HUB (#2519)
leohar Mar 1, 2024
cc152ea
Update dapps list (#2529)
novasama-bot[bot] Mar 1, 2024
67974d0
add AUSD - KUSD back to check new assets test (#2528)
leohar Mar 1, 2024
9dfc85f
update Subsocial test account (#2530)
leohar Mar 1, 2024
56e2c0d
remove Button dap (#2526)
leohar Mar 1, 2024
1fc2356
promote DED GAMES (#2523)
leohar Mar 1, 2024
bf27587
update DED Mine url (#2531)
leohar Mar 1, 2024
266f0bd
return back MangataX xcms
leohar Mar 1, 2024
730dd59
Update dapps list (#2533)
novasama-bot[bot] Mar 1, 2024
a885e25
XCM. Return Bifrost Kusama (#2487)
stepanLav Mar 4, 2024
1ae4a55
update coef
leohar Mar 4, 2024
6a3b36a
update reserve fee for KSM
leohar Mar 4, 2024
85ac440
update reserve fee for KSM
leohar Mar 4, 2024
3cbac8d
update reserve fee for KSM
leohar Mar 4, 2024
641e787
update reserve fee for KSM
leohar Mar 4, 2024
bc3d223
Return XCMs to System parachains (#2524)
stepanLav Mar 4, 2024
e7ad89c
update reserve fee for KSM
leohar Mar 4, 2024
77f2735
update reserve fee for KSM
leohar Mar 4, 2024
ffdf7c0
update reserve fee for KSM
leohar Mar 4, 2024
d90a375
update reserve fee for KSM
leohar Mar 4, 2024
1d6db92
update reserve fee for KSM
leohar Mar 4, 2024
8615ed8
update reserve fee for KSM
leohar Mar 4, 2024
30cd92b
update reserve fee for KSM
leohar Mar 4, 2024
18772b3
update reserve fee for KSM
leohar Mar 4, 2024
bdb241d
update reserve fee for KSM
leohar Mar 4, 2024
06afabc
update reserve fee for KSM
leohar Mar 4, 2024
cb94b38
Merge remote-tracking branch 'origin/master' into feat/promote_return…
leohar Mar 4, 2024
e31760f
update reserve fee for KSM
leohar Mar 4, 2024
549829b
update reserve fee for KSM
leohar Mar 4, 2024
17c0a2c
return Parallel (#2516)
stepanLav Mar 4, 2024
98e8fc7
add Basilisk KSM > Mangata
leohar Mar 4, 2024
7ba7177
remove all parachain dests except Basilisk
leohar Mar 4, 2024
5fde8d0
update reserveFee back
leohar Mar 4, 2024
a8f0c91
update fee
leohar Mar 4, 2024
e0a62f2
update fee
leohar Mar 4, 2024
ccc46a1
update fee
leohar Mar 4, 2024
53e8301
update fee
leohar Mar 4, 2024
1636f59
Merge pull request #2534 from novasamatech/feat/promote_return_mangatax
ERussel Mar 5, 2024
d762719
XCM. Return Pendulum ✅ (#2536)
stepanLav Mar 5, 2024
a4b163f
XCM. Return Centrifuge ✅ (#2537)
stepanLav Mar 5, 2024
5e7690f
Push support flag added (#2541)
antonijzelinskij Mar 6, 2024
fa14eb5
XCM. Return USDT-Statemine ✅ (#2539)
leohar Mar 7, 2024
f0801be
XCM. Return iBTC for HydraDX (#2540)
stepanLav Mar 11, 2024
4f183ad
add Continuum network (#2545)
leohar Mar 11, 2024
daeee3f
update Polkaverse to Grill (#2547)
leohar Mar 11, 2024
e269b94
Update Test data File (#2546)
novasama-bot[bot] Mar 11, 2024
b70d1ee
promote update PolkaVerse to Grill (#2548)
leohar Mar 11, 2024
5d05de8
Update dapps list (#2550)
novasama-bot[bot] Mar 11, 2024
522d9a8
promote Continuum network (#2549)
leohar Mar 11, 2024
9c04777
Update networks list (#2551)
novasama-bot[bot] Mar 12, 2024
6bbb0ba
add Enjin Relaychain network (#2552)
leohar Mar 12, 2024
f934786
add UNQ, NODL, CRU to HydraDX (#2555)
leohar Mar 12, 2024
dfd64fb
Update Test data File (#2554)
novasama-bot[bot] Mar 13, 2024
ee3f35a
add USDT Moonbeam (#2559)
leohar Mar 13, 2024
e871847
add Novasama pushSupport (#2561)
leohar Mar 14, 2024
3d88585
XCM. Return KSM destinations ✅ (#2553)
stepanLav Mar 15, 2024
eb8db14
XCM. Return -> MANTA transfers ✅ (#2562)
stepanLav Mar 15, 2024
d7942b8
promote CRU, UNQ, NODL, USDT-Moonbeam to HydraDX (#2556)
leohar Mar 15, 2024
eceb33a
Update networks list (#2563)
novasama-bot[bot] Mar 15, 2024
4d8c687
promote Enjin Relay (#2557)
leohar Mar 15, 2024
0f7aca5
Update networks list (#2564)
novasama-bot[bot] Mar 18, 2024
29f1450
🆙 Update XCM coefficients for DEV env (#2565)
novasama-bot[bot] Mar 18, 2024
5222e97
promote push notifications to Polkadot, Kusama
leohar Mar 18, 2024
55f288e
XCMs. USDC transfers (#2566)
stepanLav Mar 18, 2024
7c2eea9
Add Paseo Testnet (#2543)
hitchhooker Mar 18, 2024
0107d99
add Paseo to v18 dev (#2571)
leohar Mar 19, 2024
04beff3
add tokens to Bnaxa (#2572)
leohar Mar 19, 2024
7f3170d
add DED to Polkadot Asset Hub (#2573)
leohar Mar 20, 2024
e71876b
promote DED token (#2575)
leohar Mar 20, 2024
370fa9d
Update networks list (#2576)
novasama-bot[bot] Mar 20, 2024
bb5af91
Promote. USDC xcms for Moonbeam (#2567)
stepanLav Mar 20, 2024
e7447cb
add vKSM vGLMR price (#2560)
leohar Mar 20, 2024
f72e4c4
Update networks list (#2577)
novasama-bot[bot] Mar 20, 2024
d32ebb6
fix network params (#2574)
leohar Mar 20, 2024
5e373de
update icons for stable coins (#2570)
leohar Mar 20, 2024
5ac6d83
add Hyperbridge crowdloan (#2579)
leohar Mar 21, 2024
a8d8abe
promote tokens to Banxa (#2578)
leohar Mar 21, 2024
9c37f8d
promote Hyperbridge crowdloan (#2580)
leohar Mar 21, 2024
de9face
Merge pull request #2569 from novasamatech/feat/promote_push_notiific…
ERussel Mar 21, 2024
95fb5fd
update Beamswap url
leohar Mar 22, 2024
1d84bcb
Merge pull request #2581 from novasamatech/fix/update_beamswap_url
ERussel Mar 25, 2024
05064f3
Update dapps list (#2582)
novasama-bot[bot] Mar 25, 2024
a57dbb8
add PINK token to Moonbeam, Polkadot Asset Hub (#2583)
leohar Mar 26, 2024
30e256f
promote PINK to Polkadot Asset Hub and Moonbeam
leohar Mar 26, 2024
637c7e3
Merge pull request #2584 from novasamatech/feat/promote_pink
ERussel Mar 26, 2024
91c738a
Update networks list (#2585)
novasama-bot[bot] Mar 26, 2024
25b7ecb
add puah to Azero (#2587)
leohar Mar 27, 2024
be75d2c
add PINK, DED to HydraDX (#2586)
leohar Mar 27, 2024
a93a608
promote DED, PINK to HydraDX (#2588)
leohar Mar 27, 2024
ddb4ef2
Update networks list (#2589)
novasama-bot[bot] Mar 27, 2024
bcf6ad7
remove Polkaholic, Polkascan (#2590)
leohar Mar 28, 2024
2d14071
promote push to Alephzero (#2591)
leohar Mar 30, 2024
4d7f45f
add JUR Paused status
leohar Apr 2, 2024
45af18d
Merge pull request #2594 from novasamatech/feat/add_jur_paused_status
ERussel Apr 2, 2024
8e1003e
promote Polkadex gov1 (#2597)
leohar Apr 2, 2024
ac345e0
adding BNC to Interlay (#2568)
stepanLav Apr 3, 2024
b05d532
Update networks list (#2596)
novasama-bot[bot] Apr 3, 2024
da5baf4
Update test data file (#2595)
novasama-bot[bot] Apr 3, 2024
cb20bcb
add DED to transfers_dev.json (#2593)
leohar Apr 3, 2024
4aa2415
🆙 Update XCM coefficients for DEV env (#2602)
novasama-bot[bot] Apr 3, 2024
09195fb
add PINK to Acala (#2606)
leohar Apr 3, 2024
3f8e87a
add USDC for Mercuryo (#2604)
leohar Apr 3, 2024
2f35e71
add DED, PINK, GLMR for Polkadex (#2605)
leohar Apr 3, 2024
2e210c8
🆙 Update XCM coefficients for DEV env (#2603)
novasama-bot[bot] Apr 4, 2024
fa54d98
promote Polkaholic, Polkascan removal (#2592)
leohar Apr 4, 2024
cd1449b
promote PINK to Acala, PINK, DED, GLMR to Polkadex (#2609)
leohar Apr 4, 2024
a7ba148
promote USDC to Mercuryo (#2610)
leohar Apr 4, 2024
42e44a5
Update networks list (#2611)
novasama-bot[bot] Apr 4, 2024
897ecfb
XCM. return USDT and SUB ✅ (#2600)
stepanLav Apr 8, 2024
7582874
XCM. return Amplitude ✅ (#2607)
stepanLav Apr 8, 2024
2d1920d
XCM add Manta (#2608)
stepanLav Apr 8, 2024
aee14c6
add LAOS crowdloan (#2612)
leohar Apr 8, 2024
4671cae
Add STINK and DOTA to HydraDX (#2616)
Leemo94 Apr 15, 2024
87e1834
fix DOTA precision (#2618)
leohar Apr 15, 2024
11d2d14
add Curio (#2617)
leohar Apr 15, 2024
0e349e7
Update Test data File (#2619)
novasama-bot[bot] Apr 15, 2024
6443cc5
* remove gov1 from Moonbeam/Moonriver
leohar Apr 15, 2024
6960df5
* add delegation to Moonbeam
leohar Apr 15, 2024
03739c3
🆙 Update XCM coefficients for DEV env (#2615)
novasama-bot[bot] Apr 15, 2024
22a57a6
Merge pull request #2621 from novasamatech/fix/remove_gov1_from_moonb…
ERussel Apr 16, 2024
594ca5a
Update networks list (#2623)
novasama-bot[bot] Apr 16, 2024
51175e0
promote STINK, DOTA to HydraDX (#2620)
leohar Apr 16, 2024
cf96649
Update networks list (#2624)
novasama-bot[bot] Apr 16, 2024
5363e58
add SAMA to Ethereum (#2629)
leohar Apr 17, 2024
f0fdc94
add DOTA, STINK to Polkadot Asset Hub (#2628)
leohar Apr 17, 2024
0404e40
update node order for Polkadot (#2625)
leohar Apr 17, 2024
d043687
promote Curio network (#2626)
leohar Apr 17, 2024
928585d
Update networks list (#2632)
novasama-bot[bot] Apr 17, 2024
6a32a32
promote DOTA, STINK to Polkadot Asset Hub (#2631)
leohar Apr 22, 2024
27ac41c
promote SAMA to Ethereum (#2630)
leohar Apr 22, 2024
d17b18a
promote LAOS crowdloan (#2614)
leohar Apr 22, 2024
08c278a
🆙 Update XCM coefficients for DEV env (#2622)
novasama-bot[bot] Apr 22, 2024
c5fb496
update polkadot nodes order (#2635)
stepanLav Apr 23, 2024
45f8696
adding MYTH token (#2634)
stepanLav Apr 23, 2024
3894b28
change to dwellir first (#2637)
stepanLav Apr 23, 2024
0070817
Update networks list (#2636)
novasama-bot[bot] Apr 23, 2024
ae15f07
Add Capital DEX DApp (#2633)
sushkov Apr 23, 2024
b9c013d
Add spacewalk assets to nova wallet (#2627)
gianfra-t Apr 23, 2024
788184b
Adding Avail testnet (#2639)
stepanLav Apr 24, 2024
23e63d1
Promote MYTH asset (#2640)
stepanLav Apr 24, 2024
2222241
fix Avail icon (#2642)
stepanLav Apr 24, 2024
543b7fb
adding staking (#2643)
stepanLav Apr 24, 2024
585651e
Adding nomination-pools to VARA Avail (#2645)
stepanLav Apr 24, 2024
f23e0f1
enable swaps on PAH
stepanLav Apr 24, 2024
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
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/get_actual_json_path.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
SCRIPT_PATH=$(dirname "$0")
MAIN_DIRECTORY=${SCRIPT_PATH%/*}

# Retrieve the folder names and extract the version numbers
folders=($(ls -1 ${MAIN_DIRECTORY}/../$1))
version_numbers=()
for folder in "${folders[@]}"; do
# Extract the version number by removing the "v" prefix and any non-numeric characters
version_number=$(echo ${folder#v} | tr -dc '[:digit:]')
# Append the extracted version number to the array
version_numbers+=($version_number)
done

# Sort the version numbers in descending order
sorted_version_numbers=($(printf '%s\n' "${version_numbers[@]}" | sort -rn))

# Retrieve the latest version folder
latest_version_number=${sorted_version_numbers[0]}

# Check if second argument exists and if so, subtract 1 from the latest version
if [ -n "$2" ]; then
latest_version_number=$((latest_version_number - 1))
fi

latest_version_folder="v${latest_version_number}"

echo $latest_version_folder
28 changes: 28 additions & 0 deletions .github/workflows/check_commit_rules.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check commit rules

on:
pull_request:
branches: [master]

jobs:
check-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.PR_APP_ID}}
private_key: ${{ secrets.PR_APP_TOKEN}}

- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ steps.generate-token.outputs.token }}

- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.0

- uses: stefanzweifel/git-auto-commit-action@v5
if: always()
57 changes: 57 additions & 0 deletions .github/workflows/make-pull-request/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Make pull request
description: Create commit and make pull-request
inputs:
commit-files:
description: "Which files will add to commit"
required: true
commit-message:
description: "Message for creating a commit"
required: true
app-id:
description: "Id for getting access to GitHub app"
required: true
app-token:
description: "Token for getting access to GitHub app"
required: true
branch-name:
description: "Name for branch for creating a commit"
required: true
pr-base:
description: "Base branch for creating PR"
required: true
pr-title:
description: "Title for creating Pull Request"
required: true
pr-body:
description: "Body for creating Pull Request"
required: true
pr-reviewer:
description: "Reviewers for creating PR, support comma delimiter"
required: false
default: "stepanLav,leohar"

runs:
using: "composite"
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ inputs.app-id }}
private_key: ${{ inputs.app-token }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: ${{ inputs.commit-message }}
add-paths: ${{ inputs.commit-files }}
committer: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
author: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
signoff: false
branch: ${{ inputs.branch-name }}
delete-branch: true
title: ${{ inputs.pr-title }}
body: ${{ inputs.pr-body }}
reviewers: ${{ inputs.pr-reviewer }}
draft: false
base: ${{ inputs.pr-base }}
103 changes: 103 additions & 0 deletions .github/workflows/pull_request_for_xcm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Check pull requests

on:
pull_request:
paths:
- 'xcm/**'
pull_request_target:
types: [labeled]

env:
BODY_FILE: body_file.txt

jobs:
create-comment-with-changes:
runs-on: ubuntu-latest
name: Create a comment with xcm changed data

steps:
- name: Checkout
uses: actions/checkout@v3

- name: 🛠 Set up actual paths
uses: ./.github/workflows/setup-path

- name: Was transfers.json changed?
id: prod
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.XCM_JSON_PATH }}

- name: Was transfers_dev.json changed?
id: dev
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.DEV_XCM_JSON_PATH }}

- name: Was previous transfers.json changed?
id: prev_prod
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.PREVIOUS_XCM_JSON_PATH }}

- name: Was previous transfers.json changed?
id: prev_dev
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.PREVIOUS_DEV_XCM_JSON_PATH }}

- name: Set GITHUB_BASE environment variable
run: echo "GITHUB_BASE=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV

- name: Install dependencies
run: make init

- name: Build body text
run: echo This comment was written by a bot! >> ${{ env.BODY_FILE }}

- name: Generate message for PROD
if: steps.prod.outputs.any_changed == 'true'
run: |
make pr-comment-creation PR_ENV=${{ env.XCM_VERSION }}-PROD PR_FILE_NAME=${{ env.BODY_FILE }} XCM_PATH=${{ env.XCM_JSON_PATH }} CHAINS_PATH=${{ env.CHAINS_JSON_PATH }}

- name: Generate message for DEV
if: steps.dev.outputs.any_changed == 'true'
run: |
make pr-comment-creation PR_ENV=${{ env.XCM_VERSION }}-DEV PR_FILE_NAME=${{ env.BODY_FILE }} XCM_PATH=${{ env.DEV_XCM_JSON_PATH }} CHAINS_PATH=${{ env.DEV_CHAINS_JSON_PATH }}

- name: Generate message for prvious PROD
if: steps.prev_prod.outputs.any_changed == 'true'
run: |
make pr-comment-creation PR_ENV=${{ env.PREVIOUS_XCM_VERSION }}-PROD PR_FILE_NAME=${{ env.BODY_FILE }} XCM_PATH=${{ env.PREVIOUS_XCM_JSON_PATH }} CHAINS_PATH=${{ env.PREVIOUS_CHAINS_JSON_PATH }}

- name: Generate message for prvious DEV
if: steps.prev_dev.outputs.any_changed == 'true'
run: |
make pr-comment-creation PR_ENV=${{ env.PREVIOUS_XCM_VERSION }}-DEV PR_FILE_NAME=${{ env.BODY_FILE }} XCM_PATH=${{ env.PREVIOUS_DEV_XCM_JSON_PATH }} CHAINS_PATH=${{ env.PREVIOUS_DEV_CHAINS_JSON_PATH }}

- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: This comment was written by a bot!

- name: Create comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body-file: ${{ env.BODY_FILE }}

- name: Update comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body-file: ${{ env.BODY_FILE }}
edit-mode: replace
135 changes: 135 additions & 0 deletions .github/workflows/run_integration_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: Integration tests for config

on:
pull_request:
paths:
- "chains/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
BODY_FILE: comment-body.txt

jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
current: ${{ steps.current.outputs.any_changed }}
previous: ${{ steps.previous.outputs.any_changed }}
name: Check which version was changed

steps:
- name: Checkout
uses: actions/checkout@v3

- name: 🛠 Set up actual paths
uses: ./.github/workflows/setup-path

- name: Was chains.json changed?
id: current
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.CHAINS_JSON_PATH }}

- name: Was previous chains.json changed?
id: previous
uses: tj-actions/changed-files@v18.2
with:
files: |
${{ env.PREVIOUS_CHAINS_JSON_PATH }}

- name: Generate test paths
run: |
if [[ "${{ steps.current.outputs.any_changed }}" == 'true' ]]; then
echo "TEST_PATHS=${{ env.CHAINS_JSON_PATH }}" >> $GITHUB_ENV
fi
if [[ "${{ steps.previous.outputs.any_changed }}" == 'true' ]]; then
if [[ -n "${{ env.TEST_PATHS }}" ]]; then
echo "TEST_PATHS=${{ env.TEST_PATHS }},${{ env.PREVIOUS_CHAINS_JSON_PATH }}" >> $GITHUB_ENV
else
echo "TEST_PATHS=${{ env.PREVIOUS_CHAINS_JSON_PATH }}" >> $GITHUB_ENV
fi
fi
- name: Set matrix
id: set-matrix
run: |
echo "::set-output name=matrix::{\"test_path\": [\"${TEST_PATHS}\"]}"


integration-tests:
name: ${{ matrix.test_path }}
runs-on: ubuntu-latest
needs: prepare-matrix
if: always() && (needs.prepare-matrix.outputs.current == 'true' || needs.prepare-matrix.outputs.previous == 'true')
strategy:
fail-fast: false
matrix:
test_path: ${{fromJson(needs.prepare-matrix.outputs.matrix).test_path}}

steps:
- uses: actions/checkout@v4
- name: Set up actual paths
uses: ./.github/workflows/setup-path

- name: Install dependencies
run: make init

- name: Run test
run: CHAINS_JSON_PATH=${{ matrix.test_path }} make test-core
continue-on-error: true

- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@main
with:
path: test-results.xml

process-results:
runs-on: ubuntu-latest
needs: integration-tests
if: always() && (needs.integration-tests.result == 'failure' || needs.integration-tests.result == 'success')
steps:
- name: Save URLs to file
run: echo "🧪 Test results" > ${{ env.BODY_FILE }}

- name: Install jq
run: sudo apt-get install jq

- name: Get job IDs and create URLs
id: get-job-ids
run: |
url="https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs"
response=$(curl --silent --location "$url")
job_ids=$(echo "$response" | jq '.jobs[1:-1][] | .id')
urls=""
for id in $job_ids
do
echo "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/1#summary-$id" >> ${{ env.BODY_FILE }}
done

- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 🧪 Test results

- name: Create comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body-file: ${{ env.BODY_FILE }}

- name: Update comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
body-file: ${{ env.BODY_FILE }}
edit-mode: replace
24 changes: 24 additions & 0 deletions .github/workflows/setup-path/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Set actual chains.json path
description: Push actual paths to env
runs:
using: "composite"
steps:
- name: Setup version to variables
run: |
echo "CHAINS_VERSION=$(bash .github/get_actual_json_path.sh chains)" >> "$GITHUB_ENV"
echo "PREVIOUS_CHAINS_VERSION=$(bash .github/get_actual_json_path.sh chains 1)" >> "$GITHUB_ENV"
echo "XCM_VERSION=$(bash .github/get_actual_json_path.sh xcm)" >> "$GITHUB_ENV"
echo "PREVIOUS_XCM_VERSION=$(bash .github/get_actual_json_path.sh xcm 1)" >> "$GITHUB_ENV"
shell: bash

- name: Setup json paths
run: |
echo "DEV_CHAINS_JSON_PATH=chains/${{ env.CHAINS_VERSION }}/chains_dev.json" >> "$GITHUB_ENV"
echo "CHAINS_JSON_PATH=chains/${{ env.CHAINS_VERSION }}/chains.json" >> "$GITHUB_ENV"
echo "PREVIOUS_DEV_CHAINS_JSON_PATH=chains/${{ env.PREVIOUS_CHAINS_VERSION }}/chains_dev.json" >> "$GITHUB_ENV"
echo "PREVIOUS_CHAINS_JSON_PATH=chains/${{ env.PREVIOUS_CHAINS_VERSION }}/chains.json" >> "$GITHUB_ENV"
echo "DEV_XCM_JSON_PATH=xcm/${{ env.XCM_VERSION }}/transfers_dev.json" >> "$GITHUB_ENV"
echo "XCM_JSON_PATH=xcm/${{ env.XCM_VERSION }}/transfers.json" >> "$GITHUB_ENV"
echo "PREVIOUS_DEV_XCM_JSON_PATH=xcm/${{ env.PREVIOUS_XCM_VERSION }}/transfers_dev.json" >> "$GITHUB_ENV"
echo "PREVIOUS_XCM_JSON_PATH=xcm/${{ env.PREVIOUS_XCM_VERSION }}/transfers.json" >> "$GITHUB_ENV"
shell: bash
Loading