Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Chore] Merge develop into sep-6 #1157

Merged
merged 331 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
331 commits
Select commit Hold shift + click to select a range
b0d0679
Refactoring
rkharevych Jun 30, 2023
78b424c
Remove redundant method
rkharevych Jun 30, 2023
4b80f2c
Refactoring
rkharevych Jun 30, 2023
594c91b
Remove SEP-31 from actions
rkharevych Jun 30, 2023
4e2dd5b
SDFSOF-63 - Added implementation of endpoint for handling RPC calls w…
MazurakIhor Jun 30, 2023
112b1da
Rename action
rkharevych Jul 3, 2023
5608bdb
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 3, 2023
35038be
Update tests and refactoring
rkharevych Jul 3, 2023
807dbd6
Refactoring
rkharevych Jul 3, 2023
b746569
Update validation of actions
rkharevych Jul 3, 2023
d628cd3
Add trustline check
rkharevych Jul 3, 2023
5e60dbe
Fix amount validation
rkharevych Jul 3, 2023
dfacf6f
Update request validation
rkharevych Jul 3, 2023
c881e1d
Update exceptions
rkharevych Jul 3, 2023
d32accc
Add response to events
rkharevych Jul 3, 2023
c09ab2e
Refactoring
rkharevych Jul 3, 2023
6b34a85
Update amount validation
rkharevych Jul 3, 2023
d5b16dc
Add new actions
rkharevych Jul 4, 2023
72e5c18
Add tests for ActionHandler
rkharevych Jul 4, 2023
0569c4c
Add refund memo
rkharevych Jul 5, 2023
3b91ece
Fix memo
rkharevych Jul 5, 2023
7f1349b
Add tests for NotifyInteractiveFlowCompletedHandler
rkharevych Jul 5, 2023
5c5cc4e
SDFSOF-64 - Added handlers for notify_onchain_funds_received, notify_…
MazurakIhor Jul 5, 2023
13b4260
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 5, 2023
499e8de
Update tests
rkharevych Jul 5, 2023
b8a0391
Update tests
rkharevych Jul 5, 2023
b208456
Update tests
rkharevych Jul 5, 2023
fc2e62a
Update validation for amount expected
rkharevych Jul 5, 2023
aa5f5df
Update validation for amount expected
rkharevych Jul 5, 2023
4959e28
Update NOTIFY_ONCHAIN_FUNDS_SENT action
rkharevych Jul 5, 2023
45162b3
Cover new actions with tests
rkharevych Jul 6, 2023
44b26d7
Update tests
rkharevych Jul 6, 2023
bc58c67
Add request validation tests
rkharevych Jul 6, 2023
7e279d9
Add tests for REQUEST_ONCHAIN_FUNDS
rkharevych Jul 6, 2023
d66d8b0
Add tests for NOTIFY_OFFCHAIN_FUNDS_RECEIVED
rkharevych Jul 6, 2023
72b47db
Refactoring
rkharevych Jul 6, 2023
75a6d21
SDFSOF-64 - Fixed tests
MazurakIhor Jul 7, 2023
7a45430
Add tests for NOTIFY_ONCHAIN_FUNDS_RECEIVED
rkharevych Jul 7, 2023
7a7dbea
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 7, 2023
85c8f13
Update tests
rkharevych Jul 7, 2023
7e381c7
Update tests for ActionHandler
rkharevych Jul 7, 2023
a9dc830
Add tests for NOTIFY_ONCHAIN_FUNDS_SENT
rkharevych Jul 7, 2023
03557b2
SDFSOF-63 - Fixed review comments
MazurakIhor Jul 7, 2023
d9d8ee9
SDFSOF-63 - Changed back type of id from String to Object
MazurakIhor Jul 7, 2023
7fe799e
SDFSOF-63 - Added implementation of endpoint for handling RPC calls w…
MazurakIhor Jul 9, 2023
750328c
Handle Stellar transaction errors
rkharevych Jul 10, 2023
3ce4d7c
Add tests for DO_STELLAR_PAYMENT
rkharevych Jul 10, 2023
19808ec
Update naming for RPC requets
rkharevych Jul 10, 2023
ce6481a
Fix issue with DO_STELLAR_REFUND and memo
rkharevych Jul 10, 2023
77e0d1e
Update NOTIFY_OFFCHAIN_FUNDS_SENT action validation
rkharevych Jul 10, 2023
e1834cb
Add trustline config
rkharevych Jul 11, 2023
e6f7d8d
Update tests
rkharevych Jul 11, 2023
21f953c
Add tests
rkharevych Jul 11, 2023
633990f
SDFSOF-64 - Added logic of do_stellar_refund handler. Added tests for…
MazurakIhor Jul 11, 2023
cd2e3d1
SDFSOF-64 - Fixed an issue with an id in rpc call response
MazurakIhor Jul 12, 2023
074a23e
Merge remote-tracking branch 'origin/SDFSOF-64' into SDFSOF-64
MazurakIhor Jul 12, 2023
55405fa
Remove trust check count
rkharevych Jul 12, 2023
e42ec60
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 12, 2023
cb24d40
Update trustline check job
rkharevych Jul 12, 2023
733bd8b
Fix anchor config schema
rkharevych Jul 12, 2023
ed549fb
Fix IT tests
rkharevych Jul 12, 2023
500f61d
Rollback changes in configs
rkharevych Jul 12, 2023
c16c353
Update config comment
rkharevych Jul 12, 2023
d1ad9cd
Update trustcheck logic
rkharevych Jul 12, 2023
3553310
Enable Scheduling for Platform
rkharevych Jul 12, 2023
71044d0
SDFSOF-64-PR1: RPC Actions: implement logic and validations (#976)
rkharevych Jul 13, 2023
9e4baa1
Merge branch 'softserve-develop' of github.com:stellar/java-stellar-a…
rkharevych Jul 13, 2023
0368a28
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 13, 2023
72a4007
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 13, 2023
e512a0a
Prepare PR-2
rkharevych Jul 13, 2023
38db917
Remove test code
rkharevych Jul 13, 2023
0cb6d4d
Prepare PR-2
rkharevych Jul 13, 2023
196dee9
SDFSOF-64 - Fixed issues with notify_refund_sent for cases when refun…
MazurakIhor Jul 13, 2023
da58038
Merge pull request #990 from stellar/SDFSOF-64-PR2
MazurakIhor Jul 13, 2023
52aef90
SDFSOF-64 - Fixed failing tests
MazurakIhor Jul 16, 2023
854c6dd
Merge pull request #991 from stellar/SDFSOF-64_refunds
MazurakIhor Jul 16, 2023
23c7d9d
SDFSOF-64 - Fixed review comments
MazurakIhor Jul 17, 2023
75ee888
SDFSOF-101 - Fixed an error 500 on attempt to use notify_transaction_…
MazurakIhor Jul 17, 2023
63b466e
SDFSOF-99 - Added a set of fixes for do_stellar_refund action. Curren…
MazurakIhor Jul 17, 2023
0aa0021
SDFSOF-102 - Changed validators for amount out/fee from @NotBlank to …
MazurakIhor Jul 17, 2023
3fa82d1
SDFSOF-99 - Added support of multiple refunds via custody provider
MazurakIhor Jul 17, 2023
ee6693f
SDFSOF-67 - update Custody Server and Observer to use new RPC endpoint
MazurakIhor Jul 18, 2023
09a6a3d
Update Kotlin Reference Server to use actions
rkharevych Jul 18, 2023
35d5157
Update columns naming
rkharevych Jul 18, 2023
8f01de5
SDFSOF-67 - Fix failing test
MazurakIhor Jul 18, 2023
d874b5d
SDFSOF-103 - Fix calculation logic for case when refund is sent in a …
MazurakIhor Jul 18, 2023
34545e4
SDFSOF-97 - Made id field required. Removed error status codes from r…
MazurakIhor Jul 19, 2023
f456fab
Update validation for NOTIFY_AMOUNTS_UPDATED action
rkharevych Jul 19, 2023
f666adc
SDFSOF-67 - Fixed review comments
MazurakIhor Jul 19, 2023
3c7deda
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 19, 2023
5731049
SDFSOF-100 - Adjusted calculation of refunds
MazurakIhor Jul 19, 2023
59baeb6
Update amounts validation for NOTIFY_ONCHAIN_FUNDS_RECEIVED
rkharevych Jul 20, 2023
cb94c80
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 20, 2023
f4d69fb
SDFSOF-64 - Fixed Rpc integration tests
MazurakIhor Jul 20, 2023
c46e1bd
Fix tests
rkharevych Jul 20, 2023
965904e
Merge remote-tracking branch 'origin/SDFSOF-64' into SDFSOF-67
MazurakIhor Jul 20, 2023
9a67f63
Merge branch 'SDFSOF-64' of github.com:stellar/java-stellar-anchor-sd…
rkharevych Jul 20, 2023
2fca5c0
SDFSOF-67 - Fixed integration tests
MazurakIhor Jul 20, 2023
a2f940b
Remove redundant comments
rkharevych Jul 20, 2023
c299162
SDFSOF-64 - Added few additional tests
MazurakIhor Jul 20, 2023
e821be5
Merge remote-tracking branch 'origin/SDFSOF-64' into SDFSOF-64
MazurakIhor Jul 20, 2023
9a11d06
Merge pull request #992 from stellar/fireblocks_integration
MazurakIhor Jul 20, 2023
e4baefe
Merge branch fireblocks_integration into SDFSOF-64
MazurakIhor Jul 21, 2023
c1aa859
SDFSOF-64 - Minor fixes after PR review
MazurakIhor Jul 21, 2023
668d10f
Merge pull request #1001 from stellar/SDFSOF-64
MazurakIhor Jul 21, 2023
5a85e11
Merge remote-tracking branch 'origin/fireblocks_integration' into SDF…
MazurakIhor Jul 21, 2023
1fa62ee
Merge remote-tracking branch 'origin/softserve-develop' into firebloc…
MazurakIhor Jul 21, 2023
a933543
SDFSOF-105- Added refunded amount validation for notify_refund_initia…
MazurakIhor Jul 24, 2023
9188893
SDFSOF-105 - renamed test
MazurakIhor Jul 24, 2023
b1c7098
SDFSOF-107: Implement notify_offchain_fuds_pending (#1003)
rkharevych Jul 24, 2023
13474e4
Fix trustline check job
rkharevych Jul 24, 2023
1b255f9
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 24, 2023
b830040
Merge pull request #1004 from stellar/SDFSOF-105
MazurakIhor Jul 24, 2023
857e81f
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 24, 2023
ac62601
Create bean for NOTIFY_OFFCHAIN_FUNDS_PENDING handler
rkharevych Jul 24, 2023
d31ba09
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 24, 2023
9ccf253
SDFSOF-118 - Renamed notify_refund_initiated to notify_refund_pending
MazurakIhor Jul 25, 2023
0413713
Merge pull request #1005 from stellar/SDFSOF-118
MazurakIhor Jul 25, 2023
a5c81d5
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 25, 2023
65899de
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 25, 2023
675bc0d
SDFSOF-119: Add validation of onchain and offchain asset (#1008)
rkharevych Jul 26, 2023
9eeb241
SDFSOF-120: Allow asset attribute in refund object (#1009)
rkharevych Jul 26, 2023
cd150b8
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 26, 2023
f6c04ca
Update trustline check job
rkharevych Jul 26, 2023
7687a35
SDFSOF-64 - Transaction status can't be changed to Expired after fund…
MazurakIhor Jul 27, 2023
6d528e0
Merge pull request #1012 from stellar/SDFSOF-64_expired
MazurakIhor Jul 27, 2023
30f576f
Merge pull request #1002 from stellar/fireblocks_integration
MazurakIhor Jul 27, 2023
1286746
Merge branch 'develop' of github.com:stellar/java-stellar-anchor-sdk …
rkharevych Jul 27, 2023
47a909c
Merge remote-tracking branch 'origin/softserve-develop' into SDFSOF-67
MazurakIhor Jul 27, 2023
ab16131
Merge branch 'softserve-develop' of github.com:stellar/java-stellar-a…
rkharevych Jul 27, 2023
cc7de5f
SDFSOF-67 - Fixed integration test.
MazurakIhor Jul 27, 2023
3aaeed6
Fix tests
rkharevych Jul 27, 2023
0eccb55
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Jul 27, 2023
b53389f
Merge pull request #994 from stellar/SDFSOF-67
MazurakIhor Jul 27, 2023
f820efe
Merge branch 'softserve-develop' of github.com:stellar/java-stellar-a…
rkharevych Jul 27, 2023
46260b3
Merge branch 'softserve-develop' of https://github.com/stellar/java-s…
MazurakIhor Jul 27, 2023
77ef84f
Add events for actions
rkharevych Jul 27, 2023
4225889
Merge branch 'softserve-develop' of github.com:stellar/java-stellar-a…
rkharevych Jul 27, 2023
ed3737e
Fix tests
rkharevych Jul 27, 2023
80a095c
Added additional logs to understand why test fails
MazurakIhor Jul 28, 2023
215d339
Fixed reference server port
MazurakIhor Jul 28, 2023
f0218dc
Reverted previous commit
MazurakIhor Jul 28, 2023
7a93c7c
Added additional logs
MazurakIhor Jul 28, 2023
486aa2c
Increase number of attempts
MazurakIhor Jul 28, 2023
318bf47
Revert "Increase number of attempts"
MazurakIhor Jul 30, 2023
f91443d
Revert "Added additional logs"
MazurakIhor Jul 30, 2023
1f1fd2f
Revert "Reverted previous commit"
MazurakIhor Jul 30, 2023
8163030
Revert "Fixed reference server port"
MazurakIhor Jul 30, 2023
aa0b1a7
Revert "Added additional logs to understand why test fails"
MazurakIhor Jul 30, 2023
600781a
Changed port of reference server
MazurakIhor Jul 30, 2023
647e078
Merge pull request #1013 from stellar/softserve-develop-sync
MazurakIhor Jul 31, 2023
e5b4ebe
Merge branch 'softserve-develop' into SDFSOF-66
MazurakIhor Jul 31, 2023
9bb545e
SDFSOF-66 - Increased version of DB migration file
MazurakIhor Jul 31, 2023
426a8e8
Merge pull request #987 from stellar/SDFSOF-66
MazurakIhor Jul 31, 2023
4398b2a
Merge branch 'fireblocks_integration' of github.com:stellar/java-stel…
rkharevych Aug 1, 2023
9fe6b44
Fix issues
rkharevych Aug 1, 2023
e728c83
SDFSOF-68 - Fixed tests
MazurakIhor Aug 2, 2023
216096d
SDFSOF-124 - Removed /actions path prefix
MazurakIhor Aug 2, 2023
2f57b5e
Merge pull request #996 from stellar/SDFSOF-68
MazurakIhor Aug 3, 2023
944ce76
SDFSOF-92: RPC_Actions: Implement SEP 31 flow logic and validations (…
rkharevych Aug 3, 2023
41327ea
Merge branch 'softserve-develop' of github.com:stellar/java-stellar-a…
rkharevych Aug 3, 2023
94dd3ad
SDFSOF-65: RPC Actions - implement Custody refunds (#3)
rkharevych Aug 3, 2023
ab2152d
Add deposit short flow test
rkharevych Aug 3, 2023
69f4d20
Fix Kotlin Reference Server
rkharevych Aug 3, 2023
780876c
Add integration tests for actions
rkharevych Aug 3, 2023
3e1829b
SDFSOF-121 - Updated logic to use lastUpdatedAt instead of createdAt
MazurakIhor Aug 3, 2023
17af833
Merge pull request #4 from rkharevych/SDFSOF-121
MazurakIhor Aug 4, 2023
d9973a6
SDFSOF-134: Custody_refunds: do_stellar_refund action triggers a paym…
rkharevych Aug 4, 2023
235b9f1
SDFSOF-134: Custody_refunds: do_stellar_refund action triggers a paym…
rkharevych Aug 4, 2023
c980029
SDFSOF-70 - Added withdrawal integration tests
MazurakIhor Aug 4, 2023
b3a1c80
Store amount fee into custody_transaction table
MazurakIhor Aug 4, 2023
bf342f9
Fix notify_transaction_error call in payment handlers
rkharevych Aug 7, 2023
0e31f4b
Merge branch 'SDFSOF-70' of github.com:rkharevych/java-stellar-anchor…
rkharevych Aug 7, 2023
ef68605
Add SEP-31 test
rkharevych Aug 7, 2023
f17ba31
SDFSOF-70 - Added test for validations and errors
MazurakIhor Aug 7, 2023
1a3dc90
SDFSOF-137 - Removed validation for SEP-31
MazurakIhor Aug 7, 2023
850cdc4
Add action with custody
rkharevych Aug 7, 2023
4d2cf14
Refactoring
rkharevych Aug 7, 2023
8447622
Merge branch 'SDFSOF-70' of github.com:rkharevych/java-stellar-anchor…
rkharevych Aug 7, 2023
763ac32
SDFSOF-137 - Adjusted refund logic for SEP-31
MazurakIhor Aug 7, 2023
2287f58
Merge branch 'fireblocks_integration' of github.com:rkharevych/java-s…
rkharevych Aug 7, 2023
c6c99c0
Update tests
rkharevych Aug 7, 2023
830f8ae
Fix tests
rkharevych Aug 8, 2023
f936051
Fix tests
rkharevych Aug 8, 2023
b4e4ad3
SDFSOF-70 - Added custody refund integration test
MazurakIhor Aug 8, 2023
42b5f80
Fix tests
rkharevych Aug 8, 2023
8838b00
Merge branch 'SDFSOF-70' of github.com:rkharevych/java-stellar-anchor…
rkharevych Aug 8, 2023
75759cc
Fix tests
rkharevych Aug 8, 2023
ba61fa6
Fix tests
rkharevych Aug 8, 2023
ca97bbc
Fix tests
rkharevych Aug 8, 2023
ae87274
Fix tests
rkharevych Aug 8, 2023
2c8e9c6
Fix test
MazurakIhor Aug 9, 2023
6eec4f6
SDFSOF-133: Add validaton to MEMO types for specific providers (#7)
rkharevych Aug 9, 2023
a162cbb
Merge branch 'fireblocks_integration' of github.com:rkharevych/java-s…
rkharevych Aug 9, 2023
3a76f51
Fix for sep-31 test
MazurakIhor Aug 9, 2023
4c68925
Merge branch 'SDFSOF-70' of github.com:rkharevych/java-stellar-anchor…
rkharevych Aug 9, 2023
b2b01e8
SDFSOF-133: Add validaton to MEMO types for specific providers (#9)
rkharevych Aug 9, 2023
0e6b1c7
Fix for sep-24 test and added additional logs for sep-31 test
MazurakIhor Aug 9, 2023
e50b693
Merge remote-tracking branch 'origin/SDFSOF-70' into SDFSOF-70
MazurakIhor Aug 9, 2023
60b51b9
Fix for sep-31 test
MazurakIhor Aug 9, 2023
f2977dd
Add custody memo type validation for SEP-24 deposit
rkharevych Aug 9, 2023
d406c28
Merge pull request #8 from rkharevych/SDFSOF-70
MazurakIhor Aug 9, 2023
22a5b3e
SDFSOF-139: Limit # of items in one batch (#10)
rkharevych Aug 15, 2023
3ae916b
SDFSOF-70: RPC Actions - Integration and End2End tests (#1048)
MazurakIhor Aug 17, 2023
955befe
Merge branch 'develop' of github.com:rkharevych/java-stellar-anchor-s…
rkharevych Aug 18, 2023
fb3aac6
Merge branch 'softserve-develop' of github.com:rkharevych/java-stella…
rkharevych Aug 18, 2023
acde292
Sync softserve-develop with develop (#1058)
MazurakIhor Aug 22, 2023
5a192a5
SDFSOF-142: Rename RPC action to RPC request/method (#1061)
rkharevych Aug 28, 2023
dc42fbf
Merge branch 'develop' of github.com:rkharevych/java-stellar-anchor-s…
rkharevych Aug 31, 2023
24abfe6
Softserve develop sync (#1079)
rkharevych Aug 31, 2023
943f85f
Merge remote-tracking branch 'sdf/develop' into softserve-develop
lijamie98 Sep 6, 2023
93daec0
empty
lijamie98 Sep 6, 2023
a91ff45
Fix compile error
lijamie98 Sep 6, 2023
52014ed
SDFSOF-123: End2End tests for SEP-31 and sync with develop (#1076)
rkharevych Sep 7, 2023
9eecbb5
Fix RP comments (#1082)
MazurakIhor Sep 7, 2023
f1694ce
Softserve develop sync (#1096)
rkharevych Sep 7, 2023
2181364
Softserve develop sync (#1102)
MazurakIhor Sep 8, 2023
0aa93e0
Merge branch 'develop' into softserve-develop
JakeUrban Sep 8, 2023
28584fc
add import for AnchorEvent to EventService
JakeUrban Sep 8, 2023
103e2de
ANCHOR-401: Allow non-default destination account
Ifropc Sep 12, 2023
f00d116
Fix compile error
Ifropc Sep 12, 2023
e6991ef
Compilation fix
Ifropc Sep 12, 2023
7844131
Compilation fix
Ifropc Sep 12, 2023
1c6c98c
Merge remote-tracking branch 'sdf/develop' into HEAD
lijamie98 Sep 13, 2023
9aa132b
Test fix
Ifropc Sep 13, 2023
34e04ed
Add javadoc
Ifropc Sep 13, 2023
2ace197
[ANCHOR-422] Custody integration and RPC API (#1067)
lijamie98 Sep 14, 2023
476945d
Merge remote-tracking branch 'origin/develop' into ANCHOR-401-dest-acc
Ifropc Sep 18, 2023
c9d1315
Fix imports
Ifropc Sep 18, 2023
5dfba36
Add new conf flag
Ifropc Sep 18, 2023
b53c3f3
[ANCHOR-380] Add client_id to `getRate()` in `Sep31Service` (#1068)
lijamie98 Sep 18, 2023
ff38823
Merge remote-tracking branch 'origin/develop' into ANCHOR-401-dest-acc
Ifropc Sep 22, 2023
7c71652
Delete unused method
Ifropc Sep 22, 2023
5a6941a
Trigger
Ifropc Sep 22, 2023
979194f
Back merge 2.2.3 to `develop` (#1123)
lijamie98 Sep 22, 2023
cf292cf
update doc
Ifropc Sep 22, 2023
65e379e
Merge branch 'develop' into ANCHOR-401-dest-acc
Ifropc Sep 22, 2023
3d76fd4
ANCHOR-401: Allow non-default destination account (#1106)
Ifropc Sep 22, 2023
e674a0d
Add `custody-server` to the readme doc for development env setup (#1111)
lijamie98 Sep 27, 2023
b971275
Remove Markdown comments from PR template (#1118)
philipliu Sep 27, 2023
5419931
Choose PR action runner: ubuntu-latest-16-cores. (#1128)
lijamie98 Oct 3, 2023
625e469
[ANCHOR-462] Junit tests parallelization (core/api-schema) (#1112)
lijamie98 Oct 3, 2023
84811bd
[Anchor-418] Support auth with SEP10 in SEP38 (#1130)
JiahuiWho Oct 3, 2023
acbaad0
Improve logs for SEP10Service (#1024)
Ifropc Oct 4, 2023
7bc0c29
[ANCHOR-490] Add MEMO_RETURN support (#1140)
lijamie98 Oct 4, 2023
d1e8cb4
[ANCHOR-497]: Restructure Sep1Service functions for extensibility and…
lijamie98 Oct 9, 2023
a66f11a
[ANCHOR-498] Restructure Sep10Service functions for extensibility and…
lijamie98 Oct 11, 2023
0e9af76
Merge branch 'develop' into sep-6-10-11-merge
philipliu Oct 11, 2023
61c16d4
Fix tests
philipliu Oct 11, 2023
e3df5d7
Merge branch 'sep-6' into sep-6-10-11-copy
philipliu Oct 11, 2023
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: 7 additions & 10 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<!-- If you're making a doc PR or something tiny where the below is irrelevant, delete this
template and use a short description, but in your description aim to include both what the
change is, and why it is being made, with enough context for anyone to understand. -->

### Description

<!-- Short statement about what is changing. -->
- TODO: describe what this change does

### Context

<!-- Why this change is being made. Include any context required to understand the why. -->
- TODO: describe why this change was made

### Testing
<!-- How was this change tested? -->
<!-- Default to `./gradlew test` but if there are other steps required to test, include them here. -->
`./gradlew test`

- `./gradlew test`
- TODO: replace with any additional test steps

### Known limitations

<!-- Any known limitations or edge cases. If no known limitations, put NA here.-->
TODO: describe any limitations or replace with N/A

7 changes: 6 additions & 1 deletion .github/workflows/sub_gradle_test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
gradle_test_and_build:
name: Gradle Test and Build
runs-on: ubuntu-22.04
runs-on: ubuntu-latest-16-cores
# write to PR permission is required for jacocoTestReport Action to update comment
permissions:
contents: read
Expand All @@ -28,6 +28,7 @@ jobs:
sudo echo "127.0.0.1 reference-server" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 wallet-server" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 platform" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 custody-server" | sudo tee -a /etc/hosts
sudo echo "127.0.0.1 host.docker.internal" | sudo tee -a /etc/hosts
- name: Build and run the stack with docker compose
Expand Down Expand Up @@ -128,6 +129,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Gradle properties
run: |
echo "kotlin.daemon.jvmargs=-Xmx2g" >> gradle.properties
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .run/Run - All Servers - no Docker.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run - All Servers - no Docker" type="JetRunConfigurationType">
<envs>
<env name="sep24.enableTest" value="true" />
<env name="app.enableTest" value="true" />
</envs>
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.run_profiles.RunAllServers" />
<module name="java-stellar-anchor-sdk.service-runner.main" />
Expand Down
10 changes: 10 additions & 0 deletions .run/Run - Custody Server - no Docker.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run - Custody Server - no Docker" type="JetRunConfigurationType">
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.run_profiles.RunCustodyServer" />
<module name="java-stellar-anchor-sdk.service-runner.main" />
<shortenClasspath name="ARGS_FILE" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
2 changes: 1 addition & 1 deletion .run/Run - Kotlin Reference Server - no Docker.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run - Kotlin Reference Server - no Docker" type="JetRunConfigurationType">
<envs>
<env name="sep24.enableTest" value="true" />
<env name="app.enableTest" value="true" />
<env name="TEST_PROFILE_NAME" value="default" />
</envs>
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.run_profiles.RunKotlinReferenceServer" />
Expand Down
34 changes: 34 additions & 0 deletions .run/Test - End2End with RPC Test - no fullstack.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - End2End Test - no fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformApiRpcEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-rpc" />
<env name="run_all_servers" value="false" />
<env name="run_docker" value="false" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
34 changes: 34 additions & 0 deletions .run/Test - End2End with RPC Test - with fullstack.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - End2End Test - with fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformApiRpcEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-rpc" />
<env name="run_all_servers" value="true" />
<env name="run_docker" value="true" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
38 changes: 38 additions & 0 deletions .run/Test - Fireblocks End2End Test - no fullstack.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - Fireblocks End2End Test - no fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformCustodyEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-custody" />
<env name="run_all_servers" value="false" />
<env name="run_docker" value="false" />
<env name="CUSTODY_TYPE" value="fireblocks" />
<env name="CUSTODY_FIREBLOCKS_VAULT_ACCOUNT_ID" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_API_KEY" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_SECRET_KEY" value="stub" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
38 changes: 38 additions & 0 deletions .run/Test - Fireblocks End2End Test - with fullstack.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - Fireblocks End2End Test - with fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformCustodyEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-custody" />
<env name="run_all_servers" value="true" />
<env name="run_docker" value="true" />
<env name="CUSTODY_TYPE" value="fireblocks" />
<env name="CUSTODY_FIREBLOCKS_VAULT_ACCOUNT_ID" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_API_KEY" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_SECRET_KEY" value="stub" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - Fireblocks End2End Test - no fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformCustodyApiRpcEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-custody-rpc" />
<env name="run_all_servers" value="false" />
<env name="run_docker" value="false" />
<env name="CUSTODY_TYPE" value="fireblocks" />
<env name="CUSTODY_FIREBLOCKS_VAULT_ACCOUNT_ID" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_API_KEY" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_SECRET_KEY" value="stub" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test - Fireblocks End2End Test - with fullstack" type="JUnit" factoryName="JUnit">
<module name="java-stellar-anchor-sdk.integration-tests.test" />
<shortenClasspath name="ARGS_FILE" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.stellar.anchor.platform.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<extension name="net.ashald.envfile">
<option name="IS_ENABLED" value="false" />
<option name="IS_SUBST" value="false" />
<option name="IS_PATH_MACRO_SUPPORTED" value="false" />
<option name="IS_IGNORE_MISSING_FILES" value="false" />
<option name="IS_ENABLE_EXPERIMENTAL_INTEGRATIONS" value="false" />
<ENTRIES>
<ENTRY IS_ENABLED="true" PARSER="runconfig" IS_EXECUTABLE="false" />
</ENTRIES>
</extension>
<option name="PACKAGE_NAME" value="org.stellar.anchor.platform" />
<option name="MAIN_CLASS_NAME" value="org.stellar.anchor.platform.AnchorPlatformCustodyApiRpcEnd2EndTest" />
<option name="METHOD_NAME" value="" />
<option name="TEST_OBJECT" value="class" />
<envs>
<env name="TEST_PROFILE_NAME" value="default-custody-rpc" />
<env name="run_all_servers" value="true" />
<env name="run_docker" value="true" />
<env name="CUSTODY_TYPE" value="fireblocks" />
<env name="CUSTODY_FIREBLOCKS_VAULT_ACCOUNT_ID" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_API_KEY" value="stub" />
<env name="SECRET_CUSTODY_FIREBLOCKS_SECRET_KEY" value="stub" />
</envs>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
2 changes: 1 addition & 1 deletion anchor-reference-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies {
implementation(libs.h2database)
implementation(libs.sqlite.jdbc)
implementation(libs.google.gson)
implementation(libs.java.stellar.sdk)
implementation(variantOf(libs.java.stellar.sdk) { classifier("uber") })
implementation(libs.okhttp3)

implementation(project(":api-schema"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public FilterRegistrationBean<Filter> platformToAnchorTokenFilter(
String authSecret = integrationAuthSettings.getPlatformToAnchorSecret();
switch (integrationAuthSettings.getAuthType()) {
case JWT:
JwtService jwtService = new JwtService(null, null, null, authSecret, null);
JwtService jwtService = new JwtService(null, null, null, authSecret, null, null);
platformToAnchorFilter = new CallbackAuthJwtFilter(jwtService);
break;

Expand All @@ -78,7 +78,7 @@ AuthHelper authHelper(IntegrationAuthSettings integrationAuthSettings) {
switch (integrationAuthSettings.getAuthType()) {
case JWT:
return AuthHelper.forJwtToken(
new JwtService(null, null, null, null, authSecret),
new JwtService(null, null, null, null, authSecret, null),
integrationAuthSettings.getExpirationMilliseconds());
case API_KEY:
return AuthHelper.forApiKey(authSecret);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import javax.persistence.Converter;
import org.stellar.anchor.api.sep.sep38.RateFee;
import org.stellar.anchor.util.GsonUtils;
import shadow.com.google.common.reflect.TypeToken;
import com.google.common.reflect.TypeToken;

@Converter
public class RateFeeConverter implements AttributeConverter<RateFee, String> {
Expand Down
23 changes: 23 additions & 0 deletions api-schema/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,26 @@ dependencies {

annotationProcessor(libs.lombok)
}

tasks.test {
// Enable parallel test execution
systemProperty("junit.jupiter.execution.parallel.enabled", true)
// Allocate thread count based on available processors
systemProperty("junit.jupiter.execution.parallel.config.strategy", "dynamic")
// Set default parallel mode to same thread. All tests within a class are run in sequence.
systemProperty("junit.jupiter.execution.parallel.mode.default", "same_thread")
// Set default parallel mode for classes to concurrent. All test classes are run in parallel.
systemProperty("junit.jupiter.execution.parallel.mode.classes.default", "concurrent")

// Set default test class order to order annotation. All test classes are run in parallel.
// Some tests take longer to run. Enabling the order will execute long-running tests first to
// shorten the overall test time.
systemProperty(
"junit.jupiter.testclass.order.default",
"org.junit.jupiter.api.ClassOrderer\$OrderAnnotation"
)
maxParallelForks =
(Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1).also {
println("junit5 ... setting maxParallelForks to $it")
}
}
Loading
Loading