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

Update main #110

Merged
merged 302 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
302 commits
Select commit Hold shift + click to select a range
432498e
✨ Add a log level
wjuniorbh92 Nov 1, 2023
58a8e4b
💚 Fix CI Lint
wjuniorbh92 Nov 1, 2023
fbbc31e
♻️ Refactor the logger lib
wjuniorbh92 Nov 1, 2023
6c9f2d6
💚 Fix CI Build in the Logger Method
wjuniorbh92 Nov 1, 2023
7fb67cb
♻️ Refactor to looks good in the AWS Cloudwatch logs
wjuniorbh92 Nov 1, 2023
ed05036
🎨 Improve the Id request messages
wjuniorbh92 Nov 1, 2023
af0069e
♻️ Change the user auth flag
wjuniorbh92 Nov 1, 2023
b4741d2
Upgrade to latest version
wjuniorbh92 Nov 2, 2023
74d6fe9
🐛 Change Starlabs commit
wjuniorbh92 Nov 3, 2023
9131bc2
smart contract withdraw
lucasmagnus Nov 3, 2023
1e878f6
list contracts
lucasmagnus Nov 3, 2023
7ee0ffe
✅ update the submodules
wjuniorbh92 Nov 5, 2023
736e5a4
💚 fix ci
wjuniorbh92 Nov 5, 2023
1d3e5ab
🐛 fix a bug in the kms
wjuniorbh92 Nov 5, 2023
11c57fa
✅ Update starlabs
wjuniorbh92 Nov 6, 2023
a16af88
update soroban version
lucasmagnus Nov 7, 2023
f9dc7b1
git commit -m "Upgrade to latest version"
wjuniorbh92 Nov 10, 2023
8017747
Merge pull request #64 from CheesecakeLabs/add-logger-file
wjuniorbh92 Nov 10, 2023
6ffc126
Add LOG_LEVEL environment variable to services
wjuniorbh92 Nov 13, 2023
616f9e6
Add Kafka topics for signed envelopes and sign envelopes
wjuniorbh92 Nov 13, 2023
7adcd7b
Add pagination to get all assets endpoint
wjuniorbh92 Nov 13, 2023
d80f2d9
Add GetPaginatedAssets method to
wjuniorbh92 Nov 13, 2023
fb19fff
Refactor property names in swagger.yaml
wjuniorbh92 Nov 13, 2023
11bb0c1
Add pagination support for retrieving all vaults
wjuniorbh92 Nov 14, 2023
3c3589e
Update vault list API with pagination parameters
wjuniorbh92 Nov 14, 2023
4967e44
Add pagination to get all contracts API
wjuniorbh92 Nov 14, 2023
01f4a39
Add GetPaginatedContracts method to
wjuniorbh92 Nov 14, 2023
7f1dc28
Add endpoint for retrieving all contracts with
wjuniorbh92 Nov 14, 2023
d6cdab7
add contract compound
lucasmagnus Nov 20, 2023
a22138e
Add forget password endpoint
wjuniorbh92 Nov 21, 2023
166cfbd
Add hash field to Message struct
wjuniorbh92 Nov 21, 2023
e09dfcf
Add new envs
wjuniorbh92 Nov 21, 2023
c7013c2
Fix Kafka topic variable names
wjuniorbh92 Nov 21, 2023
b283cb7
Update dependencies in go.mod and go.sum
wjuniorbh92 Nov 21, 2023
2403561
Add .DS_Store to .gitignore
wjuniorbh92 Nov 21, 2023
beb40b2
soroban fixes
lucasmagnus Nov 21, 2023
21bf7e5
fix sald code
lucasmagnus Nov 22, 2023
1a4caf2
feat: soroban deposit
lucasmagnus Nov 23, 2023
036d35e
Merge pull request #66 from CheesecakeLabs/FEAT-add_pagination_assets
lucasmagnus Nov 27, 2023
2f684f1
feat: personal vault
lucasmagnus Nov 27, 2023
56e3881
feat: personal vault
lucasmagnus Nov 27, 2023
ba318c5
Merge remote-tracking branch 'origin/dev' into soroban-transactions
lucasmagnus Nov 27, 2023
c78e966
feat: withdraw refact
lucasmagnus Nov 29, 2023
5f32b6d
feat: vaults public and private
lucasmagnus Nov 29, 2023
c3a451b
feat: contract permissions
lucasmagnus Dec 6, 2023
1d949c3
feat: contract history
lucasmagnus Dec 6, 2023
9f97b83
fix tests
lucasmagnus Dec 6, 2023
f6f5976
fix warnings
lucasmagnus Dec 6, 2023
d3483f8
fix vault balance
lucasmagnus Dec 6, 2023
c5a9007
fix migration down
lucasmagnus Dec 6, 2023
4512b93
fix create personal vault
lucasmagnus Dec 6, 2023
68540f6
fix transaction vault message
lucasmagnus Dec 6, 2023
add606d
fix: create certificate button
lucasmagnus Dec 7, 2023
4aed09c
Refactor getAllAssets endpoint to return paginated
wjuniorbh92 Dec 7, 2023
96a26d2
Refactor API response schema
wjuniorbh92 Dec 7, 2023
7aef337
Merge branch 'dev' into FEAT-add_pagination_assets
wjuniorbh92 Dec 7, 2023
63db055
Merge branch 'soroban-transactions' into FEAT-add_pagination_assets
wjuniorbh92 Dec 7, 2023
2b3b103
log contract submit producer
lucasmagnus Dec 8, 2023
df58f3b
producer log
lucasmagnus Dec 8, 2023
b956c35
Fix GetPaginatedAssets function signature
wjuniorbh92 Dec 11, 2023
4681e83
Delete file go
wjuniorbh92 Dec 11, 2023
3d41b70
Merge pull request #69 from CheesecakeLabs/FEAT-add_pagination_assets
wjuniorbh92 Dec 11, 2023
53fb2be
fix error log
lucasmagnus Dec 11, 2023
4cd89ad
Merge remote-tracking branch 'origin/soroban-transactions' into sorob…
lucasmagnus Dec 11, 2023
fa38a73
feat: asset pagination
lucasmagnus Dec 11, 2023
033da99
feat: vault order
lucasmagnus Dec 11, 2023
315d239
log envs submit
lucasmagnus Dec 12, 2023
e3d34a2
log envs
lucasmagnus Dec 12, 2023
b0df03b
log envs
lucasmagnus Dec 12, 2023
a7a9fc2
Upgrade to e488a45
lucasmagnus Dec 12, 2023
da49a0d
Upgrade to fe26839
lucasmagnus Dec 12, 2023
097081e
Upgrade to 83c0b63
lucasmagnus Dec 12, 2023
1aa8c66
feat: update contract id
lucasmagnus Dec 12, 2023
c6cdf27
fix logout
lucasmagnus Dec 12, 2023
2672a4d
fix logout new token
lucasmagnus Dec 12, 2023
353f6be
fix min deposit stroops
lucasmagnus Dec 12, 2023
86ebc1a
fixes ui contracts
lucasmagnus Dec 13, 2023
83ef550
fix full width
lucasmagnus Dec 13, 2023
7201053
remove warnings
lucasmagnus Dec 13, 2023
64145b1
add s3 bucket in the aws service
wjuniorbh92 Dec 13, 2023
1a11a83
Merge branch 'dev' into auth-add-email-and-settings
wjuniorbh92 Dec 13, 2023
4d4841b
Add the s3 interface
wjuniorbh92 Dec 13, 2023
3b4614e
fix contract id generated
lucasmagnus Dec 13, 2023
74ac359
Merge branch 'soroban-transactions' into auth-add-email-and-settings
wjuniorbh92 Dec 13, 2023
2d16604
Change the upload image function
wjuniorbh92 Dec 13, 2023
eb77d82
authorize get all vaults
lucasmagnus Dec 13, 2023
cedcecc
fix get all vaults authorize
lucasmagnus Dec 13, 2023
ce32881
fix: add map keys
lucasmagnus Dec 13, 2023
f507689
feat: contracts pagination
lucasmagnus Dec 14, 2023
fe03385
fix: responsive screens
lucasmagnus Dec 14, 2023
628182f
Add the local storage method
wjuniorbh92 Dec 14, 2023
57b5695
Fix the mocks
wjuniorbh92 Dec 14, 2023
027c802
Merge pull request #70 from CheesecakeLabs/auth-add-email-and-settings
wjuniorbh92 Dec 15, 2023
727e754
feat: vaults and contracts pagination
lucasmagnus Dec 15, 2023
ff410c2
Merge remote-tracking branch 'origin/soroban-transactions' into sorob…
lucasmagnus Dec 15, 2023
6b12dd8
update mocks
lucasmagnus Dec 15, 2023
886977e
feat: aws images
lucasmagnus Dec 15, 2023
16d4efd
Add the edge case, if image is null
wjuniorbh92 Dec 18, 2023
847427f
feat: set images null
lucasmagnus Dec 18, 2023
1a42c9f
Add ContractId to asset retrieval queries
wjuniorbh92 Dec 18, 2023
4aa820d
fix: asset image contracts
lucasmagnus Dec 18, 2023
c6aee15
feat: update token cache
lucasmagnus Dec 18, 2023
6440777
feat: testnet reset
lucasmagnus Dec 18, 2023
2829ad1
feat: update contracts data
lucasmagnus Dec 18, 2023
5757c18
Add asset.ContractId to GetAssetByCode function
wjuniorbh92 Dec 19, 2023
8391065
Add AWS_REGION environment variable
wjuniorbh92 Dec 19, 2023
86140e9
Merge pull request #71 from CheesecakeLabs/feat_upload_image
lucasmagnus Dec 19, 2023
f7d7496
Merge pull request #62 from CheesecakeLabs/soroban-transactions
lucasmagnus Dec 19, 2023
f31e9c7
chore(tfv2-backend): add CA certificates to remote Docker stage
monteiro-alan Dec 19, 2023
af714b5
Merge pull request #73 from CheesecakeLabs/chore/add_ca_certs_to_tfv2…
monteiro-alan Dec 19, 2023
f93bd9b
feat: update soroban version
lucasmagnus Dec 19, 2023
1d65210
Merge pull request #75 from CheesecakeLabs/feat_update_soroban_client
lucasmagnus Dec 19, 2023
513b4d5
fix: asset images list
lucasmagnus Dec 19, 2023
79948aa
Merge pull request #76 from CheesecakeLabs/fix_asset_image_list
lucasmagnus Dec 19, 2023
c7bb54c
feat: implement GA and fix delete vault
lucasmagnus Dec 27, 2023
5b1a273
GITBOOK-5: No subject
Jan 2, 2024
cc151e1
GITBOOK-6: No subject
Jan 2, 2024
1c68128
GITBOOK-7: No subject
Jan 2, 2024
62a2534
Merge pull request #78 from CheesecakeLabs/documentation
fazzatti Jan 2, 2024
0f76c54
GITBOOK-8: No subject
Jan 2, 2024
2b478e3
Merge pull request #79 from CheesecakeLabs/documentation
fazzatti Jan 2, 2024
5f9a558
GITBOOK-9: No subject
Jan 2, 2024
75d9976
Merge pull request #80 from CheesecakeLabs/documentation
fazzatti Jan 2, 2024
15c0a25
feat: refactor stellar-plus
lucasmagnus Jan 5, 2024
04f9a8d
feat: new GA events added
lucasmagnus Jan 7, 2024
39ea029
Refactor asset image upload in AssetUseCase
wjuniorbh92 Jan 9, 2024
7742474
Refactor asset image upload and error handling
wjuniorbh92 Jan 9, 2024
cfbf581
Add timestamp to asset image name
wjuniorbh92 Jan 10, 2024
d165cd5
Merge pull request #77 from CheesecakeLabs/feat_implement_ga
lucasmagnus Jan 10, 2024
b834dc1
Merge pull request #83 from CheesecakeLabs/T1AS-99-assets-being-creat…
wjuniorbh92 Jan 11, 2024
d9c2f91
feat: testnet reset jan 2024
lucasmagnus Jan 11, 2024
0653761
feat: add public key to sign
lucasmagnus Jan 11, 2024
078bc86
feat: change key token
lucasmagnus Jan 11, 2024
046d747
Merge remote-tracking branch 'origin/dev' into feat_implement_stellar…
lucasmagnus Jan 11, 2024
f6c0f76
feat: update fields required
lucasmagnus Jan 15, 2024
5579e2b
Add AssetFilter struct and update GetAssets and GetPaginatedAssets me…
wjuniorbh92 Jan 16, 2024
89ef01f
Update package names in entity mocks
wjuniorbh92 Jan 16, 2024
0aa314f
Update API documentation for user and asset routes
wjuniorbh92 Jan 16, 2024
a9cc290
Add authorize_required, clawback_enabled, and freeze_enabled fields t…
wjuniorbh92 Jan 16, 2024
d28fc06
Add flag settings to asset creation
wjuniorbh92 Jan 16, 2024
432dc73
feat: refact cod
lucasmagnus Jan 16, 2024
e719eff
Merge pull request #85 from CheesecakeLabs/T1AS-59_handle_errors
lucasmagnus Jan 17, 2024
8746850
feat: add craco
lucasmagnus Jan 17, 2024
b7a6e55
add vcRpc to deposit contract
lucasmagnus Jan 17, 2024
fa08b83
remove log
lucasmagnus Jan 17, 2024
89539d6
feat: hide email user
lucasmagnus Jan 17, 2024
ac8b5e7
feat: text adjustments
lucasmagnus Jan 17, 2024
2584802
feat: add role to header
lucasmagnus Jan 17, 2024
a6c2c6d
Refactor GetAssets method to accept AssetFilter parameter
wjuniorbh92 Jan 18, 2024
325676e
Add filter conditions for authorize_required, clawback_enabled, and f…
wjuniorbh92 Jan 18, 2024
241e057
Refactor asset creation and retrieval
wjuniorbh92 Jan 18, 2024
4ff6fb1
Merge pull request #86 from CheesecakeLabs/T1AS-138-refactor-the-backend
wjuniorbh92 Jan 18, 2024
5e93179
Add Sentry configuration
wjuniorbh92 Jan 18, 2024
07a5633
Add Sentry integration and capture errors and messages
wjuniorbh92 Jan 18, 2024
5186917
Add sentrygin middleware for production stage
wjuniorbh92 Jan 18, 2024
b099793
Update Go version to 1.21
wjuniorbh92 Jan 18, 2024
47bd6c5
feat: upgrade stellar plus version
lucasmagnus Jan 18, 2024
8a1756e
Merge remote-tracking branch 'origin/dev' into feat_implement_stellar…
lucasmagnus Jan 18, 2024
05593c3
update package lock
lucasmagnus Jan 18, 2024
1f0459f
fix role id
lucasmagnus Jan 18, 2024
5f7c4ef
Merge pull request #87 from CheesecakeLabs/T1AS-132_hide_email_user
lucasmagnus Jan 19, 2024
eb71336
Merge pull request #89 from CheesecakeLabs/T1AS-140_role_header
lucasmagnus Jan 19, 2024
f9b5c60
Merge pull request #88 from CheesecakeLabs/T1AS-63_text_adjustments
lucasmagnus Jan 19, 2024
92a170c
fix timer
lucasmagnus Jan 19, 2024
6a08586
Merge pull request #82 from CheesecakeLabs/feat_implement_stellar_plus
lucasmagnus Jan 19, 2024
e0c7333
fix warnings
lucasmagnus Jan 19, 2024
48f2ce2
fix change role hide
lucasmagnus Jan 19, 2024
7a882bc
GITBOOK-10: No subject
Jan 19, 2024
a4078cf
Merge pull request #90 from CheesecakeLabs/documentation
fazzatti Jan 19, 2024
43dd65d
fix: name message
lucasmagnus Jan 22, 2024
14d7fba
Merge remote-tracking branch 'origin/dev' into dev
lucasmagnus Jan 22, 2024
dc99d54
Merge remote-tracking branch 'origin/dev' into feat_testnet_reset_jan_24
lucasmagnus Jan 23, 2024
3c4ba07
feat: update migration task number
lucasmagnus Jan 23, 2024
f511d46
Merge pull request #92 from CheesecakeLabs/feat_testnet_reset_jan_24
lucasmagnus Jan 23, 2024
5f797d6
feat: asset filter
lucasmagnus Jan 23, 2024
a5303af
fix: contract restore
lucasmagnus Jan 23, 2024
5d4958e
Merge pull request #93 from CheesecakeLabs/fix_contracts_live
lucasmagnus Jan 23, 2024
f6ee63a
update starlabs and kms version
wjuniorbh92 Jan 23, 2024
5db1ead
Merge branch 'dev' into T1AS-69-integrate-backend
wjuniorbh92 Jan 23, 2024
e8e5988
Merge pull request #91 from CheesecakeLabs/T1AS-69-integrate-backend
wjuniorbh92 Jan 23, 2024
bca9869
feat: created filters
lucasmagnus Jan 24, 2024
c2567c3
feat: added like to search by token
lucasmagnus Jan 24, 2024
a7191af
feat: add survey
lucasmagnus Jan 24, 2024
ce35820
fix: filter asset vaults
lucasmagnus Jan 24, 2024
51a004e
feat: vault category auto select
lucasmagnus Jan 24, 2024
df6e774
feat: disabled option
lucasmagnus Jan 24, 2024
f46a894
feat: remove * from contract create
lucasmagnus Jan 24, 2024
121fa67
Merge pull request #94 from CheesecakeLabs/feat_asset_filter
lucasmagnus Jan 25, 2024
f0550dd
Merge pull request #95 from CheesecakeLabs/T1AS-145_feat_survery
lucasmagnus Jan 25, 2024
95f22af
Merge pull request #96 from CheesecakeLabs/T1AS-152_fix_filter_asset_…
lucasmagnus Jan 25, 2024
30995e3
Merge pull request #97 from CheesecakeLabs/T1AS-141_vault_category_au…
lucasmagnus Jan 25, 2024
9976e86
feat: show main vault
lucasmagnus Jan 25, 2024
c5ddb3c
Merge pull request #98 from CheesecakeLabs/T1AS-103_feat_show_main_vault
lucasmagnus Jan 26, 2024
cd6413b
feat: rename search field filter
lucasmagnus Jan 26, 2024
21dc24e
feat: block controls not enabled
lucasmagnus Jan 26, 2024
2e1bbd4
feat: add flags asset get by id
lucasmagnus Jan 26, 2024
b3c39e4
Add 'created_by' field to Role entity and update RoleRepo methods
wjuniorbh92 Jan 28, 2024
c4890c7
update messages
lucasmagnus Jan 29, 2024
2bda18c
Merge remote-tracking branch 'origin/T1AS-151_feat_block_controls' in…
lucasmagnus Jan 29, 2024
f5a2f83
Merge pull request #100 from CheesecakeLabs/T1AS-151_feat_block_controls
lucasmagnus Jan 30, 2024
6e3c80f
fix: youtube video size
lucasmagnus Jan 30, 2024
6d0af99
Merge pull request #99 from CheesecakeLabs/T1AS-148-edit-endpoint-to-…
wjuniorbh92 Jan 30, 2024
53ded2f
feat: block standard roles
lucasmagnus Jan 30, 2024
b1fe604
improvements responsiveness
lucasmagnus Jan 31, 2024
715a434
feat: menu admin mobile
lucasmagnus Jan 31, 2024
9255413
fix: add restore contract
lucasmagnus Jan 31, 2024
183a840
feat: admin table responsive
lucasmagnus Feb 1, 2024
a2ba579
feat: create role unauthorized exception
lucasmagnus Feb 1, 2024
1e01588
Merge pull request #103 from CheesecakeLabs/T1AS-157_responsiveness_h…
lucasmagnus Feb 1, 2024
e48061f
Merge pull request #102 from CheesecakeLabs/fix_contracts_restore
lucasmagnus Feb 1, 2024
f2ee349
Merge remote-tracking branch 'origin/dev' into T1AS-149_block_standar…
lucasmagnus Feb 1, 2024
5cc9bb8
fix formatter
lucasmagnus Feb 1, 2024
2494998
Merge pull request #101 from CheesecakeLabs/T1AS-149_block_standard_r…
lucasmagnus Feb 1, 2024
6996679
fix remove symbol unexpected
lucasmagnus Feb 1, 2024
42cd8c0
remove warnings
lucasmagnus Feb 1, 2024
cc93bda
fix padding in forge asset
lucasmagnus Feb 1, 2024
a381cf3
Add asset authorization and control features, and implement profanity…
wjuniorbh92 Feb 1, 2024
c3587f4
feat: add profanity words restriction
alessandrak Feb 5, 2024
bd138e7
fix: error message response
alessandrak Feb 5, 2024
d273391
fix: vault and toml tests
alessandrak Feb 5, 2024
97cdde1
Merge branch 'dev' of https://github.com/CheesecakeLabs/token-factory…
alessandrak Feb 5, 2024
48eb62f
Merge pull request #104 from CheesecakeLabs/T1AS-156-add-name-restric…
alessandrak Feb 5, 2024
838b657
feat: payments clawback
lucasmagnus Feb 6, 2024
b14e719
feat: updated home texts
lucasmagnus Feb 6, 2024
5865719
fix loading vault category
lucasmagnus Feb 6, 2024
cefc586
feat: text updates
lucasmagnus Feb 6, 2024
d6c22ea
fix operation from
lucasmagnus Feb 6, 2024
00e0941
feat: menu action size
lucasmagnus Feb 6, 2024
96532c1
forge asset clawback control
lucasmagnus Feb 6, 2024
e07eca9
Merge pull request #105 from CheesecakeLabs/feat_vault_improvements
lucasmagnus Feb 6, 2024
3007765
test node env dev
lucasmagnus Feb 6, 2024
f7607cc
feat: reset testnet fev 2024
lucasmagnus Feb 6, 2024
67ceaf2
feat: GA envs
lucasmagnus Feb 6, 2024
3344b82
feat: update token name auth
lucasmagnus Feb 6, 2024
282879d
Merge remote-tracking branch 'origin/dev' into dev
lucasmagnus Feb 6, 2024
f260d2e
add roles
lucasmagnus Feb 6, 2024
8fd7beb
Merge remote-tracking branch 'origin/dev' into T1AS-143_remove_ga_dev
lucasmagnus Feb 6, 2024
17c13be
set admin roles
lucasmagnus Feb 6, 2024
ca485a7
return disable flag
lucasmagnus Feb 6, 2024
a20bf3e
fix get asset by id
lucasmagnus Feb 6, 2024
a7b795c
remove log
lucasmagnus Feb 6, 2024
e0ca257
Merge pull request #106 from CheesecakeLabs/T1AS-143_remove_ga_dev
lucasmagnus Feb 6, 2024
72bb409
Merge pull request #107 from CheesecakeLabs/fix_roles
lucasmagnus Feb 6, 2024
792c9a8
fix: get user id by profile in role permissions
lucasmagnus Feb 7, 2024
d19f030
Merge pull request #108 from CheesecakeLabs/fix_role_permissions_id_user
lucasmagnus Feb 7, 2024
8b3ce91
update wasm hash
lucasmagnus Feb 7, 2024
9dd5bb1
fix vault pagination
lucasmagnus Feb 7, 2024
7cdb4d6
fix pagination vault
lucasmagnus Feb 7, 2024
32c6a54
fix warnings
lucasmagnus Feb 7, 2024
203e21b
Merge pull request #109 from CheesecakeLabs/T1AS-170_fix_pagination_v…
lucasmagnus Feb 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
*.png
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ PG_USER=
PG_PASSWORD=
PG_DB_NAME=

# Deploy Stage
DEPLOY_STAGE=local

# Sentry
SENTRY_DSN=

# Kafka
KAFKA_CLIENT_GROUP_ID=
KAFKA_CLIENT_BROKERS=
Expand All @@ -14,17 +20,28 @@ KAFKA_ENVELOPE_PRODUCER_TOPIC=
KAFKA_ENVELOPE_CONSUMER_TOPICS=
KAFKA_HORIZON_PRODUCER_TOPIC=
KAFKA_HORIZON_CONSUMER_TOPICS=
KAFKA_SUBMIT_TRANSACTION_PRODUCER_TOPIC=
KAFKA_SIGN_SOROBAN_TRANSACTION_CONSUMER_TOPICS=
KAFKA_SIGN_SOROBAN_TRANSACTION_PRODUCER_TOPIC=

KAFKA_SCHEMA_REGISTRY_URL=

# Log
LOG_LEVEL=debug

# HTTP
HTTP_PORT=
HTTP_FRONT_ADRESS=
HTTP_FRONT_ADRESS=
## JWT SECRET
JWT_SECRET_KEY=secret

## Production environment
GIN_MODE=developer #release

AWS_BUCKET_NAME=
AWS_REGION=

## Horizon Config
HORIZON_PUBLIC_API_SERVER=https://horizon-testnet.stellar.org
HORIZON_TEST_API_SERVER=https://horizon-testnet.stellar.org
Expand Down Expand Up @@ -58,3 +75,4 @@ PRINCIPALS_TWITTER=
PRINCIPALS_GITHUB=
PRINCIPALS_ID_PHOTO_HASH=
PRINCIPALS_VERIFICATION_PHOTO_HASH=

2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ starlabs
# vendor/

# Go workspace file
go.work
go.work
1 change: 1 addition & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ WORKDIR /app
COPY --from=builder /workspace/main .
COPY --from=builder /lib/ld-musl-x86_64.so.1 /lib/ld-musl-x86_64.so.1
COPY --from=base /workspace/migrations ./migrations
COPY --from=base /etc/ssl/certs/ /etc/ssl/certs/
ENTRYPOINT ["./main"]
29 changes: 29 additions & 0 deletions backend/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ type (
HTTP HTTP
JWT JWT
Horizon Horizon
Log Log
AWS AWS
Deploy Deploy
Sentry Sentry
}

Log struct {
Level string `env-required:"true" env:"LOG_LEVEL" env-default:"info"`
}

KafkaConfig struct {
Expand All @@ -30,6 +38,14 @@ type (
ConsumerTopics []string `env:"KAFKA_HORIZON_CONSUMER_TOPICS"`
ProducerTopic string `env:"KAFKA_HORIZON_PRODUCER_TOPIC"`
}
SubmitTransactionCfg struct {
ConsumerTopics []string `env:"KAFKA_ENVELOPE_CONSUMER_TOPICS"`
ProducerTopic string `env:"KAFKA_SUBMIT_TRANSACTION_PRODUCER_TOPIC"`
}
SignTransactionCfg struct {
ConsumerTopics []string `env:"KAFKA_SIGN_SOROBAN_TRANSACTION_CONSUMER_TOPICS"`
ProducerTopic string `env:"KAFKA_SIGN_SOROBAN_TRANSACTION_PRODUCER_TOPIC"`
}
}

PGConfig struct {
Expand All @@ -49,6 +65,11 @@ type (
SecretKey string `env-required:"true" env:"JWT_SECRET_KEY"`
}

AWS struct {
BucketName string `env-required:"true" env:"AWS_BUCKET_NAME"`
AwsRegion string `env:"AWS_REGION"`
}

Horizon struct {
PublicAPIServer string `env:"HORIZON_PUBLIC_API_SERVER"`
TestAPIServer string `env:"HORIZON_TEST_API_SERVER"`
Expand Down Expand Up @@ -87,6 +108,14 @@ type (
IDPhotoHash string `env:"PRINCIPALS_ID_PHOTO_HASH"`
VerificationPhotoHash string `env:"PRINCIPALS_VERIFICATION_PHOTO_HASH"`
}

Deploy struct {
DeployStage string `env:"DEPLOY_STAGE"`
}

Sentry struct {
DSN string `env:"SENTRY_DSN"`
}
)

// NewConfig returns app config.
Expand Down
Loading
Loading