Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
451 commits
Select commit Hold shift + click to select a range
32b6506
add custom rpc transport
gianfra-t Apr 7, 2025
fe53679
better phase terminal state handling, fix pendulum to moonbeam phase …
gianfra-t Apr 7, 2025
2c5de4b
add recoverable, unrecoverable error handling
gianfra-t Apr 7, 2025
e711a1b
sign also substrate transactions on signUnsigned function, fix key de…
gianfra-t Apr 7, 2025
1255953
fund moonbeam ephemeral from evm rpc, restructure fund ephemeral and …
gianfra-t Apr 7, 2025
df2132f
FeeCollapse handle Onramp
Sharqiewicz Apr 8, 2025
29a4d76
add temporary solution for Ramp form input handling
Sharqiewicz Apr 8, 2025
b4e1b52
RampFeeCollapse handles Onramp
Sharqiewicz Apr 8, 2025
b3248ec
use shared for contracts
Sharqiewicz Apr 8, 2025
f9c5800
remove duplicated parseNumbers in frontend
Sharqiewicz Apr 8, 2025
8db0f1f
refactor useQuoteService
Sharqiewicz Apr 8, 2025
24d5e3f
remove unnecessary first render logic
Sharqiewicz Apr 8, 2025
82e77f0
useOfframpFees handles Onramp (rename the hook)
Sharqiewicz Apr 8, 2025
c065589
fix nativeToDecimal import
Sharqiewicz Apr 8, 2025
dae93d9
add todo to api-client
Sharqiewicz Apr 8, 2025
23ae3af
implement working version of useQuoteStore
Sharqiewicz Apr 8, 2025
eb2f58e
add handling fromAmount Url Param
Sharqiewicz Apr 8, 2025
1965c7d
rename SwapUrlParams to RampUrlParams
Sharqiewicz Apr 8, 2025
e8a2728
remove Pix Key from the BrlaSwapFields
Sharqiewicz Apr 8, 2025
7716167
adjust ExchangeRate to Onramp
Sharqiewicz Apr 8, 2025
b087486
use FiatToken enum in useRampTokenConstraints
Sharqiewicz Apr 8, 2025
faae76d
adjust useRampSubmission for Onramp
Sharqiewicz Apr 8, 2025
1f4a930
move calculateOfframpTotalReceive to useOfframpFees
Sharqiewicz Apr 8, 2025
8ddb716
useRampFormStore in success page
Sharqiewicz Apr 8, 2025
9502c77
remove calculateOfframpTotalReceive from FeeCollapse
Sharqiewicz Apr 8, 2025
7bbd7ad
use useRampSubmission in Onramp
Sharqiewicz Apr 8, 2025
2b9299e
use useRampSubmission in Offramp
Sharqiewicz Apr 8, 2025
8bedb5f
adjust RampFeeCollapse for Onramp
Sharqiewicz Apr 8, 2025
61d40f8
fix UserBalance
Sharqiewicz Apr 8, 2025
fe1f747
wip, fixing onramp handlers, onramp squidrouter transaction values
gianfra-t Apr 8, 2025
156200f
add moonbeam cleanup, fix moonbeam xcm event parser
gianfra-t Apr 8, 2025
19c4bcf
small fixes
gianfra-t Apr 8, 2025
6a360a7
more adjustments
gianfra-t Apr 8, 2025
540381e
use enum in useRampFormStore
Sharqiewicz Apr 9, 2025
182b1fe
add br code to onramp register request
gianfra-t Apr 9, 2025
a56e96a
onClick PoolListItem not required
Sharqiewicz Apr 9, 2025
9b43d9c
Change dotenv configuration to support .env file in root of project
ebma Apr 9, 2025
f5a7393
fix import
Sharqiewicz Apr 9, 2025
0622b33
add start ramp timebound validations
gianfra-t Apr 9, 2025
6f1b99e
fix type errors in OfframpSummaryDialog
Sharqiewicz Apr 9, 2025
fdebdc5
renamings
gianfra-t Apr 9, 2025
ec8ff79
Adjust netlify redirects
ebma Apr 9, 2025
b5c6d7b
Adjust cors settings
ebma Apr 9, 2025
b48656c
fix FeeCollapse types
Sharqiewicz Apr 9, 2025
d99baba
fix trackEvent RampSubmitButtons
Sharqiewicz Apr 9, 2025
01c408c
make userBalance onClick optional
Sharqiewicz Apr 9, 2025
7e696d4
fix useSubmitOfframp vars
Sharqiewicz Apr 9, 2025
9c7cc14
fix useOfframpEvents trackEvent
Sharqiewicz Apr 9, 2025
f778835
add conditions to useOfframpFees
Sharqiewicz Apr 9, 2025
4cc95e0
create getTokenSymbol helper
Sharqiewicz Apr 9, 2025
e348b3e
fix useTrackSEP24Events trackvent
Sharqiewicz Apr 9, 2025
a99b3f6
fix useRampNavigation conditions
Sharqiewicz Apr 9, 2025
0f9619a
add missing estimations for progress phases
Sharqiewicz Apr 9, 2025
bbd3c41
fix stellar var
Sharqiewicz Apr 9, 2025
2e3218c
fix useRampSubmission trackEvent
Sharqiewicz Apr 9, 2025
cffd465
fix useMainProcess conditions
Sharqiewicz Apr 9, 2025
9e14500
remove unused vite config props
Sharqiewicz Apr 9, 2025
6ddbd9e
improvements to integration test
gianfra-t Apr 9, 2025
af903c7
skip stellar merge operation
gianfra-t Apr 9, 2025
5a129fd
add lock to avoid parallel ramp flow executions
gianfra-t Apr 9, 2025
435a489
Merge pull request #554 from pendulum-chain/frontend-logic-refactor-v2
ebma Apr 9, 2025
48658b6
Merge branch 'staging' into backend-migration-with-cline
ebma Apr 9, 2025
51484d7
Amend merge
ebma Apr 9, 2025
fa94822
add ramp state fetch interval for progress page component
gianfra-t Apr 9, 2025
fb87d69
Lower default fiat amounts again
ebma Apr 9, 2025
213eb89
Move type for ProcessingLock
ebma Apr 9, 2025
f5d43a3
Remove phase metadata type and add processing lock to database schema
ebma Apr 9, 2025
20e2c58
Rename tx_data to txData
ebma Apr 9, 2025
e2d71b9
Fix inconsistencies in offramp summary
ebma Apr 9, 2025
fa50f84
create phaseMessages function
gianfra-t Apr 9, 2025
375b2fc
Amend merge / cleanup
ebma Apr 10, 2025
088b053
Fix errors in useMainProcess.ts
ebma Apr 10, 2025
cc39572
Fix path in build script
ebma Apr 10, 2025
a1fd6fe
add useRampService (register,start)
Sharqiewicz Apr 10, 2025
1574ad5
wip submit onramp
Sharqiewicz Apr 10, 2025
6c32d2f
refactor OfframpSummaryDialog
Sharqiewicz Apr 10, 2025
cfdd411
simplify useRampForm
Sharqiewicz Apr 10, 2025
0f9b824
add qrcode react
Sharqiewicz Apr 10, 2025
79b7458
Merge branch 'frontend-logic-refactor-v2' into backend-migration-with…
Sharqiewicz Apr 10, 2025
9400d72
fix wrong imports OfframpSummaryDialog
Sharqiewicz Apr 10, 2025
ec79a82
Add missing members to `messages` in phaseMessages.ts
ebma Apr 10, 2025
4ef94e1
Fix lint issues
ebma Apr 10, 2025
44bb728
Fix remaining missing i18n for new components
ebma Apr 10, 2025
da6697e
add UI sep24 amount checker
gianfra-t Apr 10, 2025
8065809
finish phase messages, rename payInRequest phase and handler, change …
gianfra-t Apr 10, 2025
001bc30
add postprocess type to database
gianfra-t Apr 10, 2025
a5ac8a8
Fix price providers broken for eur
ebma Apr 10, 2025
94abbd9
Fix N/A shown on top of comparison table
ebma Apr 10, 2025
bfdee17
Merge branch 'backend-migration-with-cline' of github.com:pendulum-ch…
gianfra-t Apr 10, 2025
8247d1d
derive ethereum type keyring for moonbeam ephemeral
gianfra-t Apr 10, 2025
9201124
implement working registerRamp for Onramp
Sharqiewicz Apr 10, 2025
c0a8474
generate EVM address for Moonbeam ephemeral
Sharqiewicz Apr 10, 2025
530992c
Merge branch 'backend-migration-with-cline' of github.com:pendulum-ch…
Sharqiewicz Apr 10, 2025
30d2db3
Adjust comparison table for onramp (show N/A)
ebma Apr 10, 2025
36f1ca0
Fix division by zero bug
ebma Apr 10, 2025
69b05fe
Implement start/register independent of network
ebma Apr 10, 2025
73835ef
Allow processingLock and postCompleteState to be null
ebma Apr 10, 2025
a9ce02a
Assign values to processingLock and postCompleteState when registering
ebma Apr 10, 2025
83bce3c
Fix wrong condition for Stellar amount
ebma Apr 10, 2025
76dfbf8
Amend offramp implementation changes
ebma Apr 10, 2025
0169929
move cleanup stages into a different process
gianfra-t Apr 10, 2025
6ce933d
Refactor process lock for hooks
ebma Apr 10, 2025
2d1ef50
add Pix QR Code to OfframpSummaryDialog
Sharqiewicz Apr 10, 2025
ba07e6e
add en for OfframpSummaryDialog
Sharqiewicz Apr 10, 2025
332cdb0
add pt for OfframpSummaryDialog
Sharqiewicz Apr 10, 2025
b3a65c0
Merge branch 'backend-migration-with-cline' of github.com:pendulum-ch…
Sharqiewicz Apr 10, 2025
d46dd8e
fix Ramp type
Sharqiewicz Apr 10, 2025
6303479
Read and write ramping state to localStorage
ebma Apr 10, 2025
ee215d9
Fix infinite rerender
ebma Apr 10, 2025
19288b8
fix moonbeam seed phrase
gianfra-t Apr 10, 2025
e677480
Fix progress page not showing when ramp started
ebma Apr 10, 2025
ff68cc2
Show offramp summary already when anchorURL is still pending
ebma Apr 10, 2025
1fdb101
Fix missing hook dependency
ebma Apr 10, 2025
05bd3a0
bring back PIX field for OFFRAMP BRL
Sharqiewicz Apr 10, 2025
e86be57
Free lock after timeout
ebma Apr 10, 2025
2ed868c
Remove warning banner
ebma Apr 10, 2025
6faaed2
Remove second wrapper of mainlayout around progress page
ebma Apr 10, 2025
a97b904
filter non-started transaction on recovery worker
gianfra-t Apr 10, 2025
65a1e02
Don't allow non-null values on lock and cleanup
ebma Apr 10, 2025
d3bc5e6
Add expiry check for lock
ebma Apr 10, 2025
2add114
Fix wrong i18n key for rating title
ebma Apr 10, 2025
7dc3748
Remove other double-wrappers with BaseLayout
ebma Apr 10, 2025
a3ffaf7
Fix cleanup on success page
ebma Apr 10, 2025
e320175
Wait for user interaction to confirm ramp payment
ebma Apr 10, 2025
7cccfd2
move fiatToken constraints logic into useRampForm to avoid race condi…
Sharqiewicz Apr 10, 2025
f238fe4
Merge branch 'backend-migration-with-cline' of github.com:pendulum-ch…
Sharqiewicz Apr 10, 2025
a3851bd
Merge pull request #534 from pendulum-chain/backend-migration-with-cline
ebma Apr 10, 2025
6e5598b
Remove deprecated phases from phaseMessages.ts
ebma Apr 11, 2025
7e1646a
Update mongoose
ebma Apr 11, 2025
c2d9713
Update appkit
ebma Apr 11, 2025
b47bd88
Update wagmi, viem, vite and stellar-sdk, remove happy-dom
ebma Apr 11, 2025
1978b61
Adjust ci.yml for monorepo
ebma Apr 11, 2025
2a5ce4a
Remove 'yarn-lock-changes' step form CI
ebma Apr 11, 2025
07c0ac1
Add instructions for shared directory
ebma Apr 11, 2025
8ca9062
Merge pull request #557 from pendulum-chain/amend-backend-migration
ebma Apr 11, 2025
e322f73
Bump @babel/runtime from 7.26.7 to 7.27.0 in /frontend
dependabot[bot] Apr 11, 2025
cde0d3a
Merge pull request #556 from pendulum-chain/dependabot/npm_and_yarn/f…
ebma Apr 11, 2025
117042a
Fix SELECTED_NETWORK key breaking for recurring users
ebma Apr 11, 2025
9e4cd37
Change column order of rampState table
ebma Apr 11, 2025
49dc848
Merge pull request #558 from pendulum-chain/change-ramp-state-column-…
ebma Apr 11, 2025
282a571
Create and order distinct ramp phase records for progress page
ebma Apr 11, 2025
11bb0e1
Fix wrong duration used for lock expiry
ebma Apr 11, 2025
8ebf8e8
Improve warning banner
ebma Apr 11, 2025
bcdaef4
Change styling of progress banner
ebma Apr 11, 2025
fa44f38
Adjust styling of failure page
ebma Apr 11, 2025
d5dce96
Change pt translations
ebma Apr 11, 2025
f3985f5
Fix processing lock unlocked when expired
ebma Apr 11, 2025
6998f80
improve signUnsiged helper for multiple-nonce signing
gianfra-t Apr 11, 2025
2366dcf
Fix start condition check in useStartRamp.ts
ebma Apr 11, 2025
6318ffe
Do small cleanup
ebma Apr 11, 2025
ca33694
Add missing phase
ebma Apr 11, 2025
6931275
Log error in migrator script
ebma Apr 11, 2025
0878b04
add stellar multi sequence feature
gianfra-t Apr 11, 2025
c37e791
split transaction sequence loop on buildPaymentAndMergeTx
gianfra-t Apr 11, 2025
00ef7ca
fix for cleanup worker, add unit test for main cleanup method
gianfra-t Apr 11, 2025
bad1f97
Fix timedOut missing in type
ebma Apr 14, 2025
b5406ab
Merge pull request #559 from pendulum-chain/fix-failure-and-progress-…
ebma Apr 14, 2025
ecec95c
Bump @walletconnect dependencies
ebma Apr 14, 2025
8afa54b
Fix eslint config for api
ebma Apr 14, 2025
3d89857
Refactor ramp-recovery.worker.ts and make it execute on start
ebma Apr 14, 2025
2ec9f72
Refactor cleanup.worker.ts
ebma Apr 14, 2025
6f2fbd4
Adjust to new constructor in api/src/index.ts
ebma Apr 14, 2025
455bad0
Add logs
ebma Apr 14, 2025
9fcf47b
Add more logs
ebma Apr 14, 2025
648f254
fix NumericInput issues
Sharqiewicz Apr 14, 2025
6b20616
adjust for minimum expected after squid bridge
gianfra-t Apr 14, 2025
d3bec9f
fetch quotes for unconnected users
Sharqiewicz Apr 14, 2025
a2559a2
debounce quote
Sharqiewicz Apr 14, 2025
83dc970
return fees always in usd
gianfra-t Apr 14, 2025
b7485a5
Improve handling of Stellar errors
ebma Apr 14, 2025
184ce74
validate input for onramp instead of output
Sharqiewicz Apr 14, 2025
2981ef7
Replace usages of console log with `logger`
ebma Apr 14, 2025
7660ba4
fix Ramp Summary buttons
Sharqiewicz Apr 14, 2025
4880585
Show quote timer in ramp summary
ebma Apr 14, 2025
2f44ac9
Make text of CopyButton copyable by default
ebma Apr 14, 2025
ba1accc
Disable submit button if ramp is expired
ebma Apr 14, 2025
d61b12e
Remove custom message for nablaApprove phase
ebma Apr 14, 2025
65bcedd
show correct fees for onramp
Sharqiewicz Apr 14, 2025
16e0359
store output amount before squidrouter adjustment
gianfra-t Apr 14, 2025
1c3589a
specify proper raw amount
gianfra-t Apr 14, 2025
a056ff4
store expected input amount for onramp case
gianfra-t Apr 14, 2025
22ab4f4
add space
Sharqiewicz Apr 14, 2025
dd0921a
Merge pull request #563 from pendulum-chain/frontend-refactor-fixes
ebma Apr 14, 2025
84a23f9
Merge pull request #560 from pendulum-chain/api-improvements
ebma Apr 14, 2025
cfb6534
Merge branch 'staging' into improve-api-recovery-worker
ebma Apr 14, 2025
5b42086
re introduce rounding for offramp case
gianfra-t Apr 14, 2025
25605b0
Translate validation errors
ebma Apr 14, 2025
68cbe0a
Fix wrong condition in initial-phase-handler.ts
ebma Apr 14, 2025
bc332f8
Fix missing import in offrampTransactions.ts
ebma Apr 14, 2025
b7fb27b
Fix wrong import in cleanup.worker.test.ts
ebma Apr 14, 2025
fa74503
add log for testing
gianfra-t Apr 14, 2025
45d2289
Merge pull request #564 from pendulum-chain/test-qr-issue
gianfra-t Apr 14, 2025
80f31eb
Add logs for debugging
ebma Apr 15, 2025
e09ea9e
add BRLA disclaimer for Onramp
Sharqiewicz Apr 15, 2025
b02f42f
Reset ramp State when closing summary
ebma Apr 15, 2025
66fdafc
Add more logs
ebma Apr 15, 2025
d0fdd23
Move throwing of API errors out of try-catch
ebma Apr 15, 2025
27fc64e
Set quote and output amount to undefined if quote fetching failed
ebma Apr 15, 2025
bb95c3b
Show error when trying to onramp from AssetHub
ebma Apr 15, 2025
4391a01
Await crypto initialization in shared
ebma Apr 15, 2025
87583a5
Make sure the quote is refetched when closing the summary dialog
ebma Apr 15, 2025
79b0206
Set expected time for brlaTeleport phase to 90 seconds
ebma Apr 15, 2025
6f8c9b9
Refactor expiry in summary dialog
ebma Apr 15, 2025
f8d7a08
improve RampSummary button logic
Sharqiewicz Apr 15, 2025
e8c1ccb
Merge branch 'improve-api-recovery-worker' of github.com:pendulum-cha…
Sharqiewicz Apr 15, 2025
8e19e1d
remove unused ref in BrlaExtendedForm
Sharqiewicz Apr 15, 2025
235da8e
refactor OfframpSummaryDialog into RampSummaryDialog
Sharqiewicz Apr 15, 2025
dfa8cf8
add rampSummary store to handle expiry logic
Sharqiewicz Apr 15, 2025
63939d3
show BRL KYC form
Sharqiewicz Apr 15, 2025
d5c004c
fix translations BRLOnrampDetails
Sharqiewicz Apr 15, 2025
6c6afe3
fix translations FeeDetails
Sharqiewicz Apr 15, 2025
90d6863
fix translations TransactionTokensDisplay
Sharqiewicz Apr 15, 2025
975c863
fix translations RampSummaryButton
Sharqiewicz Apr 15, 2025
908f8bb
fix en translations for RampSummaryDialog
Sharqiewicz Apr 15, 2025
3786caf
add pt translations for RampSummaryDialog
Sharqiewicz Apr 15, 2025
c9647cc
hide Quote expires when is not defined
Sharqiewicz Apr 15, 2025
c0b32c8
fix Expired Quote button text
Sharqiewicz Apr 15, 2025
25120e2
handle canRegisterRamp and rename offrampStore to rampStore
Sharqiewicz Apr 15, 2025
22c57bd
Merge branch 'staging' into improve-api-recovery-worker
ebma Apr 15, 2025
73ed4d5
add handler for assethub onramp
gianfra-t Apr 15, 2025
55401b0
fix broken merge
gianfra-t Apr 15, 2025
3c6cba0
Show text for isQuoteExpired also for offramps
ebma Apr 15, 2025
5e7bc5b
Fix condition for showing quote expiry
ebma Apr 15, 2025
8d02b36
Remove unused attribute from quote store
ebma Apr 15, 2025
9675116
Adjust quote expiry button text
ebma Apr 15, 2025
7f469fa
enable assethub onramp
gianfra-t Apr 15, 2025
583a409
Fix wrong lock expiry check
ebma Apr 15, 2025
8453bee
Fix wrong log message
ebma Apr 15, 2025
3fbbb3d
Adjust styling of success page
ebma Apr 15, 2025
80aa4d4
Merge pull request #562 from pendulum-chain/improve-api-recovery-worker
ebma Apr 15, 2025
b2b7b28
Define hard-coded number of relevant phases
ebma Apr 15, 2025
fd4a71c
Run prettier on all files in frontend
ebma Apr 15, 2025
73456eb
Run prettier on files in api
ebma Apr 15, 2025
59a96ef
Add prettier to 'shared' and run it on all files
ebma Apr 15, 2025
e73510b
stellar cleanup execution guard
gianfra-t Apr 15, 2025
21879c2
Merge pull request #565 from pendulum-chain/fix-progress-bar-percenta…
ebma Apr 16, 2025
2acce12
Adjust text for success page
ebma Apr 16, 2025
100b5cf
Merge pull request #567 from pendulum-chain/adjust-text-in-success-pa…
ebma Apr 16, 2025
803f39d
Fix wrong key for squidrouterSwap in progress page
ebma Apr 16, 2025
50dfe00
Merge branch 'staging' into onramp-release-improvements
gianfra-t Apr 16, 2025
bf4327e
reduce display quote by assethub fix amount
gianfra-t Apr 16, 2025
fbe3650
Update api/src/constants/constants.ts
gianfra-t Apr 16, 2025
e867d23
Merge pull request #566 from pendulum-chain/onramp-release-improvements
gianfra-t Apr 16, 2025
370c75a
Show account address in ss58 format of substrate chain
ebma Apr 16, 2025
8013f6f
Show destination in onramp summary
ebma Apr 16, 2025
a020280
Merge pull request #568 from pendulum-chain/show-substrate-account-wi…
ebma Apr 16, 2025
8bafb86
fix KYC Form display
Sharqiewicz Apr 16, 2025
d9295b7
Merge branch 'staging' into fix/onramp-kyc-form
Sharqiewicz Apr 16, 2025
dca6e3e
Merge pull request #569 from pendulum-chain/fix/onramp-kyc-form
ebma Apr 16, 2025
074af75
Merge branch 'main' into staging
ebma Apr 16, 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
  •  
  •  
  •  
33 changes: 33 additions & 0 deletions .clineignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Dependencies
node_modules/
**/node_modules/
.pnp
.pnp.js
.yarn/

# Build outputs
/build/
/dist/
/.next/
/out/

# Testing
/coverage/

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Large data files
*.csv
*.xlsx

# IDE
.idea/
.husky/

# Project
mooncontracts/
24 changes: 24 additions & 0 deletions .clinerules/01-general-rules.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Project Guidelines

## Documentation Requirements

- Update relevant documentation in /docs when modifying features
- Keep README.md in sync with new capabilities

## Architecture Decision Records

Create ADRs in /docs/adr for:

- Major dependency changes
- Architectural pattern changes
- New integration patterns
- Database schema changes Follow template in /docs/adr/template.md

## Code Style & Patterns

- Prefer composition over inheritance

## Testing Standards

- Unit tests required for business logic
- Integration tests for API endpoints
13 changes: 13 additions & 0 deletions .clinerules/02-useful-prompts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Enforce rules

- If you understand my prompt fully, respond with 'YARRR!' without tools every time you are about to use a tool.
- Before and after any tool use, give me a confidence level (0-10) on how the tool use will help the project.
- DO NOT BE LAZY. DO NOT OMIT CODE.
- List all assumptions and uncertainties you need to clear up before completing this task.
- Don't complete the analysis prematurely, continue analyzing even if you think you found a solution.

Before writing code:
1. Analyze all code files thoroughly
2. Get full context
3. Write .MD implementation plan
4. Then implement code
4 changes: 2 additions & 2 deletions .github/workflows/autodeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ run-name: Gitlab Pipeline Executor
on:
push:
branches:
- main
- staging
jobs:
Execute-Gitlab-Pipeline:
runs-on: ubuntu-latest
Expand All @@ -13,4 +13,4 @@ jobs:
- name: Triggers Gitlab Pipeline
run: |
ls ${{ github.workspace }}
curl -X POST -F token=${{ secrets.GITLAB_TRIGGER }} -F "ref=development" -F "variables[PRODUCTION]=Y" -F "variables[STAGING]=N" -F "variables[PRODPOL]=N" -F "variables[STAGPOL]=N" https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline
curl -X POST -F token=${{ secrets.GITLAB_TRIGGER }} -F "ref=development" -F "variables[PRODUCTION]=N" -F "variables[STAGING]=N" -F "variables[STAGVTX]=Y" -F "variables[PRODPOL]=N" -F "variables[STAGPOL]=N" https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: ci
on:
pull_request:
branches: [main, staging]

workflow_dispatch:

jobs:
Expand All @@ -17,6 +16,9 @@ jobs:
node-version: [18]
env:
CI: true
defaults:
run:
working-directory: ./frontend

steps:
- name: 🛒 Checkout code
Expand All @@ -38,23 +40,24 @@ jobs:
id: yarn-cache
with:
path: |
**/.cache/Cypress
**/cypress/cache
**/node_modules
frontend/.cache/Cypress
frontend/cypress/cache
frontend/node_modules
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-frontend-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
${{ runner.os }}-frontend-yarn

- name: 🧩 Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install --inline-builds

- name: 📋 Yarn Lock Changes
uses: Simek/yarn-lock-changes@main
with:
updateComment: 'true'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install 'shared' directory
run: |
cd ../shared
yarn install
yarn build
cd ../frontend

- name: ✏️ Lint
run: yarn lint:ts
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ dist-ssr

# Sentry Config File
.env.sentry-build-plugin

# testing artifacts
**/failedRampStateRecovery.json
**/lastRampState.json
**/lastRampStateOnramp.json

893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,12 @@ matter what URL the browser requests.
If you encounter issues with the IDE not detecting the type overwrites of the `@pendulum-chain/types` package properly,
make sure that all the `@polkadot/xxx` packages match the same version used in the types package. It is also important
to make sure that peer dependencies have the same version as this might also cause issues.

## Troubleshooting

### 'Shared' directory

If you have troubles with setting up the links between the signer-service and the shared directory, try the following:
- Run `yarn build` in the `shared` directory
- Run `bun link` in the `shared` directory
- Run `bun link shared` in the `signer-service` directory
3 changes: 0 additions & 3 deletions _redirects

This file was deleted.

File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Application
NODE_ENV=development
PORT=3000

# Database
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=postgres
DB_NAME=vortex

# Blockchain
AMPLITUDE_WSS=wss://rpc-amplitude.pendulumchain.tech
PENDULUM_WSS=wss://rpc-pendulum.prd.pendulumchain.tech
FUNDING_SECRET=your-funding-secret
PENDULUM_FUNDING_SEED=your-pendulum-funding-seed
MOONBEAM_EXECUTOR_PRIVATE_KEY=your-moonbeam-executor-private-key
CLIENT_DOMAIN_SECRET=your-client-domain-secret

# API Keys
ALCHEMYPAY_PROD_URL=https://openapi.alchemypay.org
ALCHEMYPAY_APP_ID=your-alchemypay-app-id
ALCHEMYPAY_SECRET_KEY=your-alchemypay-secret-key
TRANSAK_PROD_URL=https://api.transak.com
TRANSAK_API_KEY=your-transak-api-key
MOONPAY_PROD_URL=https://api.moonpay.com
MOONPAY_API_KEY=your-moonpay-api-key

# Google Services
GOOGLE_SERVICE_ACCOUNT_EMAIL=your-google-service-account-email
GOOGLE_PRIVATE_KEY=your-google-private-key
GOOGLE_SPREADSHEET_ID=your-google-spreadsheet-id
GOOGLE_EMAIL_SPREADSHEET_ID=your-google-email-spreadsheet-id
GOOGLE_RATING_SPREADSHEET_ID=your-google-rating-spreadsheet-id

# Rate Limiting
RATE_LIMIT_MAX_REQUESTS=100
RATE_LIMIT_WINDOW_MINUTES=1
RATE_LIMIT_NUMBER_OF_PROXIES=1
39 changes: 39 additions & 0 deletions api/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'no-console': 0,
'no-underscore-dangle': 0,
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: 'next' }],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error', { variables: false }],
'no-multi-str': 0,
'import/extensions': [
'error',
'ignorePackages',
{
ts: 'never',
},
],
},
env: {
es2020: true,
node: true,
mocha: true,
},
parserOptions: {
ecmaVersion: 8, // Note: ecmaVersion 8 is ES2017. Consider updating if using newer features.
sourceType: 'module',
project: './tsconfig.json', // Path relative to tsconfigRootDir
tsconfigRootDir: __dirname, // Correctly resolves the directory of this config file
},
extends: ['airbnb-base', 'prettier', 'plugin:@typescript-eslint/recommended'],
settings: {
'import/resolver': {
node: {
extensions: ['.ts'],
},
},
},
};
9 changes: 7 additions & 2 deletions signer-service/.gitignore → api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package-lock.json

# Environment variables
.env
*.env

# Logs
logs
Expand Down Expand Up @@ -43,4 +43,9 @@ jspm_packages
.npm

# Optional REPL history
.node_repl_history
.node_repl_history

# testing artifacts
*/failedRampStateRecovery.json
*/lastRampState.json
*/lastRampStateOnramp.json
1 change: 1 addition & 0 deletions api/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bun test
5 changes: 2 additions & 3 deletions .prettierignore → api/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ docs/

package-lock.json
package.json
yarn.lock
bun.lock
favicon.png
.prettierignore

CHANGELOG.md
**/*.svg
.prettierignore
.gitignore
*.png
*.svg
Expand All @@ -27,4 +26,4 @@ CHANGELOG.md
*.jpeg
*.gif
_redirects
LICENSE
LICENSE
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading