Skip to content

feat(soft-delete): implement soft delete for PaymentOrder and LockPay… #409

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
a037d54
feat(soft-delete): implement soft delete for PaymentOrder and LockPay…
Fidel-wole Jan 31, 2025
af72143
feat(indexer): reduce block range for bsc FilterTransfer
chibie Jan 31, 2025
cf2c99d
feat(indexer): limit order created range to 10k for bsc
chibie Jan 31, 2025
354f2b7
fix(tasks): only refund orders with fulfillments
chibie Feb 4, 2025
7535678
feat(tasks): change tx_status GET to POST
chibie Feb 1, 2025
bd37aee
logic updated and testcase added
Shashwat-Nautiyal Jan 24, 2025
ad9631d
error resolved
Shashwat-Nautiyal Jan 24, 2025
6348a2c
imports made for tests
Shashwat-Nautiyal Jan 25, 2025
e2ccfd9
Set has_early_access Flag on User Registration in Non-Production
Shashwat-Nautiyal Jan 27, 2025
467985b
feat: enhance server configuration with cache duration settings and u…
sundayonah Jan 31, 2025
b09e182
refactor: clean up test environment variable handling in auth tests
sundayonah Jan 31, 2025
86e1c35
refactor: streamline user creation logic in auth tests with environme…
sundayonah Feb 1, 2025
e039ef3
feat: merge ServerConfiguration updates from main into user-early-access
sundayonah Feb 3, 2025
e12f378
refactor: remove unused cache duration fields and revert config/serve…
sundayonah Feb 3, 2025
6e27554
refactor: simplify server configuration by removing unused cache dura…
sundayonah Feb 3, 2025
997f032
feat(types): make txid optional in /fulfill
chibie Feb 3, 2025
378bc4d
refactor(tasks): consolidate lock order fulfillment sync logic
chibie Feb 4, 2025
05ff502
feat(schema): make tx_id optional in LockOrderFulfillment
chibie Feb 5, 2025
aaa14b5
chore(tasks): de-auth fulfillment sync
chibie Feb 5, 2025
47450b8
fix(tasks): proper types for sync fulfillments
chibie Feb 5, 2025
fff53bf
fix: improve error logging and signature generation in provider and t…
chibie Feb 5, 2025
7765a0a
fix(tasks): improve error logging in SyncLockOrderFulfillments
chibie Feb 5, 2025
6ee983f
fix(tasks): add order ID to lock order fulfillment creation
chibie Feb 5, 2025
8086f45
fix(config): adjust order timeouts and validation parameters
chibie Feb 5, 2025
7632cb6
fix(tasks): enhance error handling and processing for stuck lock orders
chibie Feb 6, 2025
3efd372
docs: add Ganache local blockchain setup instructions
chibie Feb 6, 2025
0538745
feat: implement delete account functionality
Adebisi1234 Jan 26, 2025
01d8396
fix: replace StatusUnauthorized to StatusBadRequest
Adebisi1234 Jan 27, 2025
c1f6e6a
fix: attempted fixes to auth test
Adebisi1234 Jan 27, 2025
3960939
fix: clear all test cases
Adebisi1234 Jan 30, 2025
78c6871
fix: improve error handling
chibie Feb 5, 2025
6b5ac63
fix(token): improve token rate retrieval and validation logic
chibie Feb 7, 2025
9f369ef
feat: store previous rate queue in redis for rate match pre-order ass…
believemanasseh Jan 31, 2025
a9a4dea
refactor: update comments
believemanasseh Jan 31, 2025
77143ac
test: fix missing import
believemanasseh Feb 4, 2025
a948711
refactor: add comment for match rate struct method
believemanasseh Feb 4, 2025
02c36d0
feat: store previous rate queue in redis for rate match pre-order ass…
believemanasseh Jan 31, 2025
8bf7380
fix: unpack queue before storing in redis
believemanasseh Feb 6, 2025
f0f0b5d
test: remove log statement
believemanasseh Feb 6, 2025
719510c
feat: store previous rate queue in redis for rate match pre-order ass…
believemanasseh Jan 31, 2025
c3b53f1
feat: convert function to struct method
believemanasseh Feb 6, 2025
c969bb5
test: refactor priority queue test setup and improve test case
chibie Feb 9, 2025
8f80324
fix(indexer): adjust BNB Smart Chain indexing start block
chibie Feb 11, 2025
ac05cf5
refactor(indexer): remove retry utility and simplify RPC client conne…
chibie Feb 11, 2025
645b6d5
fix(tasks): reduce timeout for lock order fulfillment request
chibie Feb 11, 2025
a5b06dd
feat(tasks): add context timeout to background tasks
chibie Feb 13, 2025
4ffcab1
refactor: update context usage and improve function signatures
chibie Feb 13, 2025
18ae9f8
refactor: improve error handling and context management
chibie Feb 14, 2025
36e0726
refactor: simplify context management and remove retry utility in tasks
chibie Feb 14, 2025
bd22a3b
fix: improve error handling in priority queue and email tasks
chibie Feb 14, 2025
6059fe8
fix: improve error handling and block indexing logic
chibie Feb 15, 2025
d5c65e9
refactor: optimize Smile Identity verification process
chibie Feb 15, 2025
fe5f900
fix: adjust EIP-1559 gas price calculation multiplier
chibie Feb 18, 2025
e7fae3e
refactor: improve priority queue management with previous queue handling
chibie Feb 18, 2025
07a91ae
chore: adjust cron job configuration and priority queue management
chibie Feb 18, 2025
7e2d8b2
fix: modify rate scaling in indexer service to handle decimal precision
chibie Feb 20, 2025
f518802
feat: enable NIN slip verification for Nigeria in ID verification pro…
chibie Feb 20, 2025
10b9a85
feat: added new `bundler_url` and `paymaster_url` columns to `network…
sundayonah Feb 6, 2025
9b82c4a
chore: update test file and remove unnecessary comments
sundayonah Feb 7, 2025
f1b4e7e
refactor: remove redundant env vars, optimize database queries, and c…
sundayonah Feb 11, 2025
4e947e2
feat(migrations): add bundler & paymaster URLs to networks table
sundayonah Feb 12, 2025
6f7e7ee
refactor: simplify database client access in getEndpoints
sundayonah Feb 17, 2025
6ba7a1d
refactor: update AA service integration and test URLs
chibie Feb 20, 2025
955dd3b
refactor: remove debug logging in SendUserOperation utility function
chibie Feb 20, 2025
e9592a8
Revert "feat: added new `bundler_url` and `paymaster_url` columns to …
chibie Feb 21, 2025
0f174dd
Move AA service urls to network table (#430)
chibie Feb 21, 2025
0fa9bff
chore: remove Biconomy AA service environment variables
chibie Feb 21, 2025
a4b81a0
fix: improve ID verification status expiration check
chibie Feb 21, 2025
c1562a2
feat: update Nigeria ID verification methods and order fulfillment ha…
chibie Feb 22, 2025
cb2c38c
fix: correct transaction ID reference in order fulfillment query
chibie Feb 23, 2025
3024932
fix: improve error handling and provider reassignment in lock order f…
chibie Feb 23, 2025
a6cb3a5
fix: enhance error handling in lock order fulfillment sync
chibie Feb 23, 2025
b485c8d
refactor: simplify lock order provider clearing method
chibie Feb 23, 2025
b66091a
feat: add network identifier to order status updates
chibie Feb 23, 2025
7145814
feat: add base currency support for tokens and rate calculations
chibie Feb 21, 2025
f80d37d
feat: improve token rate conversion error handling
chibie Feb 21, 2025
96fc41e
fix: improve error handling for unsupported tokens and currencies
chibie Feb 24, 2025
505d664
fix: handle local stablecoin rate deviation in priority queue
chibie Feb 24, 2025
6dc5c5e
fix: add order refund timeout configuration parameter
chibie Feb 28, 2025
9d1289c
Update issue templates
chibie Feb 26, 2025
60d1131
fix: normalize currency code case for institution lookup
chibie Feb 28, 2025
35701ea
feat(provider): update relationships to support multiple currencies f…
onahprosper Dec 16, 2024
13d8fdc
feat: restructure provider order token + refactor for multi-currency …
chibie Dec 16, 2024
357dee1
feat(provider): update registration to support multiple currencies
onahprosper Dec 17, 2024
81f919d
fix(pq): resolve token symbol reference
chibie Dec 17, 2024
5fa9155
feat(provider): update currency field to support multiple currencies
onahprosper Dec 17, 2024
937d76c
feat(provider): enhance registration to support multiple fiat currenc…
onahprosper Dec 19, 2024
f4ca052
feat(controllers): filter orders and stats by currency
chibie Feb 3, 2025
b54a67a
feat(test): resolve failing priority queue test
chibie Feb 3, 2025
06a4385
feat(test): resolve failing node info test
chibie Feb 3, 2025
92de733
fix(provider): improve node info currency validation
chibie Feb 3, 2025
de94329
fix: add currency validation for provider stats and lock payment orders
chibie Mar 8, 2025
4e8c6be
refactor: prepare schema for multi-currency provider support
chibie Mar 8, 2025
682052b
refactor: rename edge and column names for multi-currency provider su…
chibie Mar 10, 2025
78d942f
feat: improve token rate retrieval and validation in priority queue
chibie Mar 11, 2025
091da31
refactor: optimize multi-currency schema migration and indexing
chibie Mar 11, 2025
676f84b
chore: remove debug print statements and update test case
chibie Mar 11, 2025
416b2c3
test: update provider tests to include currency parameter
chibie Mar 11, 2025
566ef9e
feat: enable rate limiting middleware for enhanced request protection
chibie Mar 11, 2025
9c4253e
feat: prevent duplicate token symbols in priority queue processing
chibie Mar 12, 2025
15745c8
refactor: migrate institution retrieval to utils and remove redundant…
chibie Mar 12, 2025
0cc37b4
feat: add new ID verification methods for multiple countries
chibie Mar 17, 2025
4fb947d
feat: added cancellation reasons
sonkiee Jan 29, 2025
6cf120e
feat: added cancellation reasons
od-hunter Jan 29, 2025
8f178d1
fix: (tests) update order fetching and cancellation reason handling
sundayonah Feb 12, 2025
072d994
test: uncomment tests
sundayonah Feb 12, 2025
66f04ff
fix(tests): resolve order count mismatches and Redis issues in provid…
sundayonah Feb 21, 2025
ab23e8d
fix: resolve merge conflict in go.mod and go.sum
sundayonah Feb 21, 2025
d485bf0
refactor(tests): update expected order counts in provider tests
sundayonah Feb 21, 2025
771bb00
feat(soft-delete): implement soft delete for PaymentOrder and LockPay…
Fidel-wole Jan 31, 2025
500ea7c
fix: improve soft delete implementation for payment orders and lock …
sundayonah Mar 19, 2025
7104537
fix: resolve merge conflicts
sundayonah Mar 19, 2025
77449b7
fix: resolve merge conflict in server configuration
sundayonah Mar 19, 2025
58fbbef
Merge branch 'main' into feat/soft-delete-payment-orders
sundayonah Mar 20, 2025
5b6a604
refactor: remove unused order request and notification methods from P…
sundayonah Mar 20, 2025
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
18 changes: 8 additions & 10 deletions config/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ import (

// ServerConfiguration type defines the server configurations
type ServerConfiguration struct {
Debug bool
Host string
Port string
Timezone string
AllowedHosts string
Environment string
SentryDSN string
HostDomain string
RateLimitUnauthenticated int
RateLimitAuthenticated int
Debug bool
Host string
Port string
Timezone string
AllowedHosts string
Environment string
SentryDSN string
HostDomain string
}

// ServerConfig sets the server configuration
Expand Down
2 changes: 2 additions & 0 deletions controllers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ func (ctrl *Controller) GetTokenRate(ctx *gin.Context) {
}
}


rateResponse, err = ctrl.priorityQueueService.GetProviderRate(ctx, provider, token.Symbol, currency.Code)

if err != nil {
u.APIResponse(ctx, http.StatusInternalServerError, "error", "Failed to fetch provider rate", nil)
return
Expand Down
5 changes: 5 additions & 0 deletions controllers/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ func (ctrl *ProviderController) NodeInfo(ctx *gin.Context) {
Only(ctx)
if err != nil {
logger.Errorf("failed to fetch provider: %v", err)

u.APIResponse(ctx, http.StatusInternalServerError, "error", "Failed to fetch node info", nil)
return
}
Expand All @@ -868,14 +869,18 @@ func (ctrl *ProviderController) NodeInfo(ctx *gin.Context) {
Build().GET("/health").
Send()
if err != nil {

logger.Errorf("failed to fetch node info: %v", err)

u.APIResponse(ctx, http.StatusServiceUnavailable, "error", "Failed to fetch node info", nil)
return
}

data, err := u.ParseJSONResponse(res.RawResponse)
if err != nil {

logger.Errorf("failed to parse node info: %v", err)

u.APIResponse(ctx, http.StatusServiceUnavailable, "error", "Failed to fetch node info", nil)
return
}
Expand Down
Loading
Loading