Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
d3368db
Fix chart problem (#495)
AmirRajabii Jan 6, 2025
31fa658
Merge branch 'main' into dev
Marchosiax Jan 8, 2025
05fc3d6
New transfer ‌category(for referral) (#487)
AmirRajabii Jan 13, 2025
08274a3
SVG Chart of Price Trend (#498)
AmirRajabii Jan 15, 2025
5dffd9e
Merge OTC changes to dev (#501)
Marchosiax Jan 25, 2025
da756fa
Add voucher (#502)
AmirRajabii Feb 8, 2025
e99d876
Fix voucher services (#503)
AmirRajabii Feb 16, 2025
af38835
Merge branch 'main' into dev
Marchosiax Feb 17, 2025
5cfbe67
Remove preferences and its configs (#505)
Marchosiax Feb 18, 2025
dc502bd
Merge branch 'main' into dev
Marchosiax Feb 18, 2025
e49f5f5
Delete preferences from readme
Marchosiax Feb 18, 2025
d006378
fix spark-line and recent trades problems (#507)
AmirRajabii Feb 19, 2025
e8a87dc
Fix typo in terminal query (#508)
fatemeh-i Feb 20, 2025
9223442
Merge branch 'main' into dev
Marchosiax Feb 23, 2025
e75dea7
Develop a service to calculate source amount in swapping (#515)
fatemeh-i Mar 3, 2025
cd9e6b0
Organize wallet service for admin (#512)
AmirRajabii Mar 4, 2025
64b531f
Pair trading availability for admin services (#514)
AmirRajabii Mar 4, 2025
070b91f
Calculate source amount (#516)
fatemeh-i Mar 5, 2025
2703817
The description has been added to the user's voucher transactions (#518)
AmirRajabii Mar 10, 2025
c0b621b
Add more logs in BackupService
Marchosiax Mar 16, 2025
5e104f4
Admin services (#521)
AmirRajabii Mar 17, 2025
cd2ccd8
update workflows (#525)
AmirRajabii Apr 20, 2025
4c51eaf
Merge branch 'main' into dev
Marchosiax Apr 26, 2025
a4a6efb
Refactor user management (#530)
Marchosiax Apr 29, 2025
0a62837
Add matching-gateway vault config
Marchosiax Apr 30, 2025
3f33f84
Gateway and voucher changes (#527)
AmirRajabii May 5, 2025
596678f
New UI services (#531)
AmirRajabii May 5, 2025
80299ec
Add captchaType (#532)
AmirRajabii May 11, 2025
0adf8ae
New register and login flow (#533)
Marchosiax May 12, 2025
cdd3458
fix security problem (#534)
AmirRajabii May 12, 2025
7ff5c0b
fix deposit manually problem (#536)
AmirRajabii May 17, 2025
0273a85
Temporarily add otp code in response. Will remove later.
Marchosiax May 17, 2025
43d104e
Merge remote-tracking branch 'origin/dev' into dev
Marchosiax May 17, 2025
b8e596b
Record manual deposit in tx history completely
AmirRajabii May 17, 2025
06922b7
Add new wallet services (#535)
AmirRajabii May 18, 2025
3f09a47
Set user's mobile number as a title of wallet owner
fatemeh-i May 18, 2025
7923cf6
add captcha to new authentication flow (#538)
AmirRajabii May 19, 2025
761e25b
fix matching gateway problem (#540)
AmirRajabii May 25, 2025
d5f31b6
use central api module (#541)
AmirRajabii May 31, 2025
a2b0979
Add infrastructure for permission authorization (#542)
Marchosiax May 31, 2025
7575823
Replace old keycloak (#543)
Marchosiax Jun 2, 2025
ce5ffe4
Otc security config (#544)
Marchosiax Jun 7, 2025
a95c2d1
Fix profile image url
Marchosiax Jun 7, 2025
1553f56
Add open order service without symbol
Marchosiax Jun 8, 2025
78dffd5
Fix token exchange error (#545)
Marchosiax Jun 9, 2025
bbcaf41
Fix api key token exchange error (#546)
Marchosiax Jun 11, 2025
3651743
Remove zookeeper (#548)
AmirRajabii Jun 30, 2025
a0c2280
Add quote currency management feature (#549)
AmirRajabii Jul 7, 2025
7c09f9c
Add count to history services (#550)
AmirRajabii Jul 8, 2025
9c019a9
Validation and calculation based on precision (#547)
AmirRajabii Jul 12, 2025
a6c72b1
Update dev.yml
fatemeh-i Jul 12, 2025
853a4c9
Calculate min and max based on quote asset for pairs (#552)
AmirRajabii Jul 14, 2025
2f3e098
Add max amount to currency (#555)
AmirRajabii Jul 15, 2025
840ca4d
Fix trade history problem (#556)
AmirRajabii Jul 15, 2025
1ba16fd
hot fix (#557)
AmirRajabii Jul 16, 2025
7327e03
Fix the problem of not creating a profile after user registration (#558)
AmirRajabii Jul 19, 2025
e37e032
Add market event producer (#559)
Marchosiax Jul 21, 2025
ec47220
Fix test error
Marchosiax Jul 21, 2025
02429d3
Fix sms provider for otp
Marchosiax Jul 22, 2025
41596a0
Fix email otp
Marchosiax Jul 23, 2025
3a295a3
Config db pool in wallet module (#560)
fatemeh-i Jul 23, 2025
d6bb06d
Add session services (#563)
Marchosiax Jul 28, 2025
e407d2e
Add forward-headers-strategy in auth-gateway
Marchosiax Jul 29, 2025
239f232
Implement internal user identifier (#564)
AmirRajabii Jul 29, 2025
7aa0f06
Implement OTP resend request without captcha (#565)
AmirRajabii Jul 29, 2025
f69fe4d
Separate withdraw and deposit gateway activation and displayOrder for…
AmirRajabii Jul 30, 2025
b605927
Complete the profile module requirements (#561)
AmirRajabii Jul 30, 2025
f41d754
Replace WebClient with RestTemplate in Opex api
Marchosiax Jul 30, 2025
8797129
Add nationality type to profile (#566)
AmirRajabii Aug 2, 2025
d5c49cb
Profile hot fix (#567)
AmirRajabii Aug 2, 2025
07f5124
Completely abolish reactive and coroutines from API
Marchosiax Aug 2, 2025
f733f29
Refactor comparative inquiry and profile model updates (#569)
AmirRajabii Aug 2, 2025
6cb29ce
Completely abolish reactive and coroutines from API (#568)
Marchosiax Aug 3, 2025
cddca61
Remove usage of getForObject and postForObject in API
Marchosiax Aug 3, 2025
07da041
Merge branch 'api-refactor' into dev
Marchosiax Aug 3, 2025
0b8f440
Fix incorrect http method for transaction count proxy in API
Marchosiax Aug 3, 2025
341458b
Add token in order requests
Marchosiax Aug 3, 2025
2cd08a3
Change getProfile endpoint
AmirRajabii Aug 3, 2025
6c37a99
Fix api key
Marchosiax Aug 3, 2025
566add1
Merge remote-tracking branch 'origin/dev' into dev
Marchosiax Aug 3, 2025
3845004
Fix api key header getting null
Marchosiax Aug 3, 2025
a530a63
Add new role to user after changing kyc level (#572)
AmirRajabii Aug 5, 2025
df435c0
Bump up error handler version
Marchosiax Aug 5, 2025
ced5ea4
Merge remote-tracking branch 'origin/dev' into dev
Marchosiax Aug 5, 2025
a85c8db
Trade volume value by usdt and irt (#574)
Marchosiax Aug 11, 2025
19b12ab
Refactor profile services (#575)
AmirRajabii Aug 12, 2025
3b73464
Fix profile approval request problem
AmirRajabii Aug 12, 2025
7d03682
Fix logout
Marchosiax Aug 12, 2025
a6c72a5
Fix opex chart
AmirRajabii Aug 13, 2025
9cdb486
Create a snapshot of total assets every night (#578)
AmirRajabii Aug 20, 2025
b0d6f4c
Fix opex orders (#579)
Marchosiax Aug 20, 2025
3598c71
Resolve symbol related issue in OTC profile
fatemeh-i Aug 27, 2025
cad154d
Update keycloack webclient config
AmirRajabii Aug 31, 2025
8136fda
Request assigning address based on currency name and gatewayUuid
fatemeh-i Aug 31, 2025
4c66afb
Fix redis config in wallet module on otc profile
fatemeh-i Aug 31, 2025
db9c6f8
Add maxOrder to currency convertor
fatemeh-i Aug 31, 2025
c3f45bd
Update currency convertor
AmirRajabii Aug 31, 2025
c6e7c91
Add assign address api to API module (#586)
AmirRajabii Sep 3, 2025
08656b2
update assignAddress parameter type (#587)
AmirRajabii Sep 3, 2025
7361b28
Update assignAddress api response
AmirRajabii Sep 3, 2025
7ee2bf6
Separate withdraw and deposit description in gateway commands
fatemeh-i Sep 6, 2025
12ae0f5
Update precision calculator
AmirRajabii Sep 7, 2025
0b1a555
Change the pool configuration of accountant
fatemeh-i Sep 21, 2025
996174e
Add fee config, wallet snapshot, and withdraw limit services (#591)
AmirRajabii Sep 22, 2025
6f86015
Update jwt token extension (#593)
AmirRajabii Sep 22, 2025
17e7df9
Fix user fee endpoint (#594)
AmirRajabii Sep 24, 2025
41ec5d2
Update git workflows to build parallel
fatemeh-i Sep 24, 2025
403b749
Translate constants
fatemeh-i Sep 27, 2025
7855603
Change the name of OTP property in the auth-gateway module
fatemeh-i Sep 27, 2025
21098d0
Change the name of captcha property in the auth-gateway module
fatemeh-i Sep 27, 2025
9c57efe
Log API call in fetching last messages
fatemeh-i Sep 27, 2025
74fa32b
Add custom serializer to Gson
fatemeh-i Sep 27, 2025
57980f7
Add market basic data services (#601)
AmirRajabii Sep 29, 2025
0571eb5
Add MPG to supported transferMothods
fatemeh-i Oct 9, 2025
cfdca11
Refactor withdraw volume API to use Interval parameter (#603)
AmirRajabii Oct 18, 2025
516adb6
Add otp receiver to register and forget password services (#602)
AmirRajabii Oct 18, 2025
417b0e1
Tune webclient config in connection between wallet and bc-gateway (#607)
fatemeh-i Oct 21, 2025
da3f9d1
Develop a new module to manage devices
fatemeh-i Oct 26, 2025
05168a0
Remove the block operation in fetching profile
fatemeh-i Oct 26, 2025
702543f
Hot fix profile update
fatemeh-i Oct 27, 2025
54b236f
Implement OTP verification for withdraw requests (#606)
AmirRajabii Oct 27, 2025
7854b49
Hot fix profile update
fatemeh-i Oct 28, 2025
7cedcc9
Hot fix profile update
fatemeh-i Oct 28, 2025
658f77e
Hot fix profile update
fatemeh-i Oct 29, 2025
e21764d
Hot fix profile update
fatemeh-i Oct 29, 2025
77309b7
Revert API changes
fatemeh-i Nov 1, 2025
1cb53e8
Change the URI of fetching fees
fatemeh-i Nov 1, 2025
2d74bb4
Tune the connection between API and auth-gateway modules
fatemeh-i Nov 3, 2025
1b7e054
Tune the connection between api and auth modules
fatemeh-i Nov 3, 2025
2cbc9b7
Set a default webclient profile for API module
fatemeh-i Nov 3, 2025
5bc3e46
Update pr.yml
fatemeh-i Nov 3, 2025
ea5acfc
Update dev.yml
fatemeh-i Nov 3, 2025
f1adc23
Set a default webclient profile for api module in securityConfig
fatemeh-i Nov 3, 2025
f322169
Bound WebClient queues and add non-blocking bulkheads
fatemeh-i Nov 3, 2025
2f21857
Update dev.yml
fatemeh-i Nov 3, 2025
210b9d5
Enhance logging setup
fatemeh-i Nov 3, 2025
e78606b
Modify the Api webFilter
fatemeh-i Nov 3, 2025
c3bdd8b
Create the device dto
fatemeh-i Nov 5, 2025
be690e5
Modify the openjdk image package (#624)
fatemeh-i Nov 5, 2025
12bcd3c
Tune db connection in bc-gateway (#625)
fatemeh-i Nov 5, 2025
48592e6
Tune db connection in bc-gateway
fatemeh-i Nov 5, 2025
4d7f6f5
Merge branch 'dev' of https://github.com/opexdev/core into device_man…
fatemeh-i Nov 8, 2025
5876309
Add financial accounts and address book (#608)
AmirRajabii Nov 9, 2025
8785ebb
Refactor withdraw accept/done logic (#628)
AmirRajabii Nov 15, 2025
785ffc2
Add profile update event flow and monitoring endpoints (#627)
AmirRajabii Nov 22, 2025
85def41
Update market security config
AmirRajabii Nov 23, 2025
8e1d10f
Profile admin services (#629)
AmirRajabii Nov 25, 2025
69cb0c6
Wallet admin services (#630)
AmirRajabii Nov 29, 2025
af4bcbe
Tune kafka to hadle logout requests
fatemeh-i Nov 29, 2025
4c57c5b
Add metadata to chains and develop a controller to fetch chains in ap…
fatemeh-i Nov 30, 2025
3452343
Handle logout other requests in device-management module
fatemeh-i Dec 1, 2025
b6a65ef
Merge branch 'dev' of https://github.com/opexdev/core into device_man…
fatemeh-i Dec 1, 2025
9ce2c8a
Add user first/last name in fetching the list of approval requests
fatemeh-i Dec 11, 2025
460a333
Rename the current session field
fatemeh-i Dec 11, 2025
cffc430
Implement device management module to save device data and attach it …
fatemeh-i Dec 12, 2025
4066632
Apply precision in calculating withdraw volume
fatemeh-i Dec 12, 2025
c11b89d
Merge branch 'dev' of https://github.com/opexdev/core into device_man…
fatemeh-i Dec 12, 2025
41f7642
Change the os type in login event
fatemeh-i Dec 12, 2025
8f1a12b
Merge pull request #634 from opexdev/device_management
Hossein-ab99 Dec 12, 2025
2f7a04c
Update precision rounding mode in calculating withdraw volume
AmirRajabii Dec 13, 2025
2944514
Add withdraw history filters (#636)
AmirRajabii Dec 15, 2025
9f0f72d
Update ChainModel.kt
fatemeh-i Dec 16, 2025
09b0097
Update application.yml
fatemeh-i Dec 16, 2025
6f93aff
Update login flow and check audience and token issuer in each requests
fatemeh-i Dec 17, 2025
791e880
Read the valid token issuer from the env
fatemeh-i Dec 17, 2025
33b8bef
Develop resend OTP in login flow
fatemeh-i Dec 22, 2025
e8f3c07
Replace the exchange approach with the bootstrap grant type in the lo…
fatemeh-i Dec 24, 2025
a3d4fa3
Remove offline access scope in normal access token (#642)
fatemeh-i Dec 24, 2025
6f2c65e
Change request authentication flow when accessing API through a third…
fatemeh-i Dec 28, 2025
c59fc76
Wrap the otc services behind the api module
fatemeh-i Dec 29, 2025
8727ede
Implement rate limit (#645)
AmirRajabii Jan 4, 2026
3f4a0d1
Report user activity per day
fatemeh-i Jan 5, 2026
4bb3a9b
Update SecurityConfig.kt
fatemeh-i Jan 5, 2026
9bf8f2e
Update WalletStatController.kt
fatemeh-i Jan 5, 2026
74ba23a
Update WalletStatController.kt
fatemeh-i Jan 5, 2026
655e526
Update WalletStatController.kt
fatemeh-i Jan 5, 2026
51fc641
Update SecurityConfig.kt
fatemeh-i Jan 5, 2026
43914ab
Update RateLimitConfig.kt
AmirRajabii Jan 6, 2026
34f668d
Handle exceptions in API filter (#649)
fatemeh-i Jan 6, 2026
20aba48
Handle different modes of profile inquiries (#651)
AmirRajabii Feb 21, 2026
5ccc6a7
Implement storage services (#650)
AmirRajabii Feb 21, 2026
3c111bc
Add profile services to api module (#646)
AmirRajabii Feb 21, 2026
ac740d1
Clean the internal payment request
fatemeh-i Feb 22, 2026
33f8302
Add REWARD transfer method and allow GET /bank-account (#653)
AmirRajabii Feb 22, 2026
ddde2fa
Add date serializer to api (#654)
AmirRajabii Feb 22, 2026
c4e0620
Find the address holder at the specific time (#655)
fatemeh-i Feb 24, 2026
dd9bedf
Add user assets detail service (#656)
AmirRajabii Apr 5, 2026
7233c48
Make OTP response optional and toggle via config (#657)
AmirRajabii Apr 8, 2026
29dc872
Add forbidden swap pair support and swappable flag (#658)
AmirRajabii Apr 12, 2026
4d8992a
update storage services (#660)
AmirRajabii Apr 20, 2026
1abf3f0
Add terminal localization support (#659)
AmirRajabii Apr 21, 2026
834a2f6
Add currency localization support (#662)
AmirRajabii Apr 25, 2026
eae341e
captcha hot fix (#663)
AmirRajabii Apr 25, 2026
e21b0ce
Bulk localization upserts and add owner field to terminal
AmirRajabii Apr 28, 2026
ec0c001
Update GatewayTerminalRepository.kt
fatemeh-i Apr 28, 2026
4aac69e
Add gateway localization support (#665)
AmirRajabii May 4, 2026
a8867c4
Use proxy in sending email, if needed. (#666)
fatemeh-i May 5, 2026
01eca88
Update application.yml
fatemeh-i May 5, 2026
37aaff9
Update WalletProxyImpl.kt
fatemeh-i May 5, 2026
8f98774
Fix typo in URI for getGatewayTerminal method (#667)
AmirRajabii May 5, 2026
1ead57c
Fix endpoint URI in getGatewayTerminal (#668)
AmirRajabii May 5, 2026
05012e3
Add interceptors dependency to all related modules (#669)
AmirRajabii May 9, 2026
5c1a43e
Update language services (#670)
AmirRajabii May 11, 2026
bc058cf
Remove type from terminal (#671)
AmirRajabii May 11, 2026
1d43422
Add new config services to api module (#672)
AmirRajabii May 12, 2026
c548a13
Enable custom user language and fix localizations (#673)
AmirRajabii May 13, 2026
a13be64
Update pom.xml
fatemeh-i May 13, 2026
f0d6340
Update pom.xml
fatemeh-i May 13, 2026
e546da1
Update pom.xml
fatemeh-i May 13, 2026
ee335bb
Update pom.xml
fatemeh-i May 13, 2026
8f54028
Update common version
fatemeh-i May 13, 2026
0fbbe9f
Update favorite pair service (#674)
AmirRajabii May 14, 2026
15fc454
Update default user config (#675)
AmirRajabii May 14, 2026
1918369
Fix withdraw history service (#676)
AmirRajabii May 16, 2026
90e024a
Increase api web client timeout and buffer size (#677)
AmirRajabii May 16, 2026
b79e90e
temporary removal of decrypt step
maryarm May 22, 2026
697c84b
revert otc-dev changes
maryarm May 22, 2026
5479646
Feature/API_docs_improvement
fatemeh-i May 30, 2026
72f3657
Feature/Handle allowed origins dynamically
fatemeh-i May 30, 2026
04acbb2
Log allowed origins in cors config
fatemeh-i May 30, 2026
f6b709f
Feature/"Setup custom server url for open APIs
fatemeh-i May 31, 2026
aad6da9
Feature/wallet fiat deposit webhook (#681)
AmirRajabii May 31, 2026
7ff582b
Fetch trades and orders history
fatemeh-i Jun 14, 2026
3c3ad14
Fetch trades and orders history
fatemeh-i Jun 15, 2026
adf1af4
Fetch trades and orders history
fatemeh-i Jun 15, 2026
702c144
Improve external deposit service
AmirRajabii Jun 20, 2026
4879702
Fetch trades and orders history
fatemeh-i Jun 29, 2026
4d06af0
Implement new SMS providers to support international phone numbers
fatemeh-i Jul 6, 2026
128e3c5
Add rate limit to auth services (#691)
AmirRajabii Jul 22, 2026
ba2e727
Refactor auth token extraction in session controller (#692)
AmirRajabii Jul 23, 2026
1badc89
Add admin impersonated swap operations (#694)
AmirRajabii Jul 25, 2026
493776a
Remove parallel build from main branch
fatemeh-i Jul 26, 2026
00cc0c2
Merge branch 'main' into dev
fatemeh-i Jul 26, 2026
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
  •  
  •  
  •  
17 changes: 10 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +25,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 9 additions & 11 deletions .github/workflows/dev-otc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build, Test, and Deploy otc (DEV env) services for specific partner
name: Build, Test, and Deploy otc (DEV env) services for specific partner
on:
# push:
# branches:
# - dev
# push:
# branches:
# - dev

workflow_dispatch:
inputs:
Expand All @@ -29,10 +29,9 @@ jobs:
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
distribution: temurin
java-version: ${{ matrix.java }}

- name: Fetch partners config
Expand Down Expand Up @@ -69,7 +68,6 @@ jobs:
echo "PASSWORD=$PASSWORD" >> $GITHUB_OUTPUT
echo "ENV_PATH=$ENV_PATH" >> $GITHUB_OUTPUT
echo "SSH_PORT=$SSH_PORT" >> $GITHUB_OUTPUT

- name: Decrypt data
id: decrypt_data

Expand Down Expand Up @@ -107,9 +105,9 @@ jobs:
echo "password=$server_pass" >> $GITHUB_OUTPUT

- name: Build
run: |
mvn -pl common -am -B -T 1C clean install -Potc
mvn -pl wallet,bc-gateway -amd -B -T 1C clean install -Potc
run: |
mvn -pl common -am -B clean install -Potc
mvn -pl wallet,bc-gateway -amd -B clean install -Potc

- name: Run Tests
run: |
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
distribution: temurin
java-version: ${{ matrix.java }}
# cache: maven
# cache: maven
- name: Build
run: mvn -B -T 1C clean install
run: mvn -B clean install
- name: Run Tests
run: mvn -B -T 1C -Dskip.unit.tests=false surefire:test
run: mvn -B -Dskip.unit.tests=false surefire:test
- name: Build Docker images
env:
TAG: dev
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/main-otc.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Build, Test, and Deploy otc (PRD env) services for specific partner
name: Build, Test, and Deploy otc (PRD env) services for specific partner
on:
# push:
# branches:
# - main
# push:
# branches:
# - main

workflow_dispatch:
inputs:
Expand All @@ -29,10 +29,9 @@ jobs:
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
distribution: temurin
java-version: ${{ matrix.java }}

- name: Fetch partners config
Expand Down Expand Up @@ -107,14 +106,14 @@ jobs:
echo "password=$server_pass" >> $GITHUB_OUTPUT

- name: Build
run: |
run: |
mvn -pl common -am -B -T 1C clean install -Potc
mvn -pl wallet,bc-gateway -amd -B -T 1C clean install -Potc

- name: Run Tests
run: |
mvn -pl common -am -B -T 1C -Dskip.unit.tests=false surefire:test
mvn -pl wallet,bc-gateway -amd -B -T 1C -Dskip.unit.tests=false surefire:test
mvn -pl common -am -B -Dskip.unit.tests=false surefire:test
mvn -pl wallet,bc-gateway -amd -B -Dskip.unit.tests=false surefire:test

- name: Build Docker images
run: docker compose -f docker-compose-otc.build.yml build
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
distribution: temurin
java-version: ${{ matrix.java }}
# cache: maven
# cache: maven
- name: Build
run: mvn -B -T 1C clean install
run: mvn -B clean install
- name: Run Tests
run: mvn -B -T 1C -Dskip.unit.tests=false surefire:test
run: mvn -B -Dskip.unit.tests=false surefire:test
- name: Build Docker images
env:
TAG: latest
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Verify Docker
run: docker info
- name: Build
run: mvn -B -T 1C clean install -Potc
run: mvn -B clean install -Potc
- name: Run Tests
run: mvn -B -T 1C -Dskip.unit.tests=false surefire:test
run: mvn -B -Dskip.unit.tests=false surefire:test

- name: Build Docker images
env:
TAG: pr
run: docker compose -f docker-compose.build.yml build
run: docker compose -f docker-compose.build.yml build
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ on:
# branches:
# - dev
workflow_dispatch:

# inputs:
# partner_name:
# type: string
# description: 'The name of the partner (provided during workflow execution)'
# required: true
# default: default
jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -17,10 +22,9 @@ jobs:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-package: jdk
distribution: temurin
java-version: ${{ matrix.java }}
# cache: maven
- name: Build
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

./api.csv
### STS ###
.apt_generated
.classpath
Expand Down Expand Up @@ -44,3 +44,4 @@ build/
!/.mvn/

.DS_Store
realms
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,12 @@ PANEL_PASS=admin
BACKEND_USER=admin
KEYCLOAK_ADMIN_USERNAME=opex
KEYCLOAK_ADMIN_PASSWORD=hiopex
SMTP_PASS=x
SMTP_PASSWORD=x
API_KEY_CLIENT_SECRET=x
KEYCLOAK_FRONTEND_URL=http://localhost:8083/auth
KEYCLOAK_ADMIN_URL=http://localhost:8083/auth
KEYCLOAK_VERIFY_REDIRECT_URL=http://localhost:8080/verify
KEYCLOAK_FORGOT_REDIRECT_URL=http://localhost:8080/forgot
PREFERENCES=preferences-demo.yml
WHITELIST_REGISTER_ENABLED=true
WHITELIST_LOGIN_ENABLED=true
WALLET_BACKUP_ENABLED=false
Expand All @@ -77,10 +76,9 @@ TAG=debug
| BACKEND_USER | Username used by services to access vault data. Also used as the username for Vault admin panel |
| KEYCLOAK_ADMIN_USERNAME | Username for Keycloak admin panel |
| KEYCLOAK_ADMIN_PASSWORD | Password for Keycloak admin panel |
| SMTP_PASS | SMTP password used by keycloak to send emails for various operations (e.g. user verification, reset password) |
| SMTP_PASSWORD | SMTP password used by keycloak to send emails for various operations (e.g. user verification, reset password) |
| API_KEY_CLIENT_SECRET | In order to access the api key feature, please follow the steps below:</br>1. Go to Keycloak admin panel located at http://localhost:8083/auth/admin/master/console/#/realms/opex/clients <br/>2. Login with the username and password you provided in the `.env` file (KEYCLOAK_ADMIN_USERNAME and KEYCLOAK_ADMIN_PASSWORD)<br/>3. Go to `clients` section on the left menu </br>4. Click on `opex-api-key` client </br>5. In the credentials section, click on `Regenerate Secret` button </br>6. Copy the generated secret and paste it into this section |
| KEYCLOAK_FRONTEND_URL<br/>KEYCLOAK_ADMIN_URL<br/>KEYCLOAK_VERIFY_REDIRECT_URL<br/>KEYCLOAK_FORGOT_REDIRECT_URL | Replace `localhost` with your server's IP if you're not running on local machine. Do not change the rest. |
| PREFERENCES | Points to a file containing seed data used to by modules to initialize their databases. An example of this file is provided and is available inside the root directory (preferences-demo.yml). It's deprecated and will be removed soon |
| WHITELIST_REGISTER_ENABLED | Allows registration only for whitelisted emails |
| WHITELIST_LOGIN_ENABLED | Allows login only for whitelisted emails |
| WALLET_BACKUP_ENABLED | Enables wallet data backup to google drive folder. In order to use this feature, you need to have `drive-key.json` file (obtained from google drive API panel) in the root directory of project |
Expand Down
2 changes: 1 addition & 1 deletion accountant/accountant-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:11
FROM eclipse-temurin:17-jdk
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar"]
Expand Down
10 changes: 5 additions & 5 deletions accountant/accountant-app/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -51,6 +51,10 @@
<groupId>co.nilin.opex.utility</groupId>
<artifactId>error-handler</artifactId>
</dependency>
<dependency>
<groupId>co.nilin.opex.utility</groupId>
<artifactId>interceptors</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-vault-config</artifactId>
Expand All @@ -64,10 +68,6 @@
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>co.nilin.opex.utility</groupId>
<artifactId>preferences</artifactId>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package co.nilin.opex.accountant.app

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
import org.springframework.context.annotation.ComponentScan

Expand Down
Loading
Loading