Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
403 commits
Select commit Hold shift + click to select a range
424da8d
chore(log): remove logs
CaioCesarRocha Oct 15, 2025
f3ec820
feat(user validation): validation if user is a member or owner predicate
CaioCesarRocha Oct 15, 2025
33cc9f1
fix(name tx): change name tx and add user validation
CaioCesarRocha Oct 15, 2025
8ed6ff3
Merge pull request #415 from infinitybase/cr/fix/limitation-options-b…
luisburigo Oct 15, 2025
3cd0662
fix: build error
luisburigo Oct 15, 2025
0c3b833
Merge branch 'staging' into p2/feat/update-bakosafe-sdk-version
pedroanastacio Oct 17, 2025
94a41bd
chore: update bakosafe sdk version
pedroanastacio Oct 17, 2025
6d29cc3
fix(predicate-service): correct logic in checkOlderPredicateVersions …
ArthurCorbellini Oct 28, 2025
a417a09
feat(socket): send predicate version to encode signature
pedroanastacio Oct 30, 2025
35dc81d
Merge pull request #416 from infinitybase/ac/fix/random-vaults
guimroque Oct 30, 2025
16fa699
Merge pull request #414 from infinitybase/p2/feat/update-bakosafe-sdk…
guimroque Oct 31, 2025
4aa8f33
Update package.json
guimroque Oct 31, 2025
c388e53
Update package.json
guimroque Oct 31, 2025
148af33
chore(package): add @types/qs dependency
Vitosoaresp Nov 3, 2025
73a10b9
chore: update pnpm lock
Vitosoaresp Nov 3, 2025
e551d45
fix: build
Vitosoaresp Nov 3, 2025
f1106f7
feat(predicate): add owner filter to query in PredicateService
Vitosoaresp Nov 3, 2025
7e92094
feat(user): enhance transaction handling in UserController and add IL…
Vitosoaresp Nov 3, 2025
34016c1
feat(user): add ListUserTransactionsQuerySchema for transaction retri…
Vitosoaresp Nov 3, 2025
d4eea56
refactor(user): rename transaction endpoint and update related tests
Vitosoaresp Nov 4, 2025
d693a06
fix(user): correct typo in comment and simplify parameter passing in …
Vitosoaresp Nov 4, 2025
7073dd8
fix(predicate): create predicates based on versions
pedroanastacio Nov 4, 2025
380b202
fix(predicate): create predicates based on versions only to evm accounts
pedroanastacio Nov 4, 2025
aab8c6f
feat(predicate): add allocation method and related types for asset ma…
Vitosoaresp Nov 4, 2025
6fb17d6
feat(predicate): add allocation endpoint and controller method for as…
Vitosoaresp Nov 4, 2025
967ca6a
feat(user): add allocation endpoint and controller method for asset a…
Vitosoaresp Nov 4, 2025
2f0eee7
refactor(predicate): remove debug logging from asset allocation calcu…
Vitosoaresp Nov 4, 2025
772fa4f
Merge pull request #419 from infinitybase/p2/fix/create-predicates-ba…
guimroque Nov 4, 2025
8282ffc
feat(predicate): update allocation route to use a more RESTful path s…
Vitosoaresp Nov 4, 2025
1e4ba7c
chore: remove log
Vitosoaresp Nov 5, 2025
6c4de83
Update packages/api/src/modules/predicate/services.ts
Vitosoaresp Nov 5, 2025
1272131
feat(predicate): update allocation percentage calculation to ensure a…
Vitosoaresp Nov 5, 2025
75b387e
fix(predicate): filter transactions by status and network URL
Vitosoaresp Nov 5, 2025
a7322ba
feat(predicate): enhance allocation calculation to include 'others' c…
Vitosoaresp Nov 5, 2025
7eac086
chore: import user type enum from bakosafe sdk
pedroanastacio Nov 6, 2025
a10a214
fix: creates version based vaults only for evm users
pedroanastacio Nov 6, 2025
5ae2277
fix: changes the name of vaults created based on old versions
pedroanastacio Nov 7, 2025
d29ab24
Merge pull request #420 from infinitybase/vs/feat/balance-allocation
guimroque Nov 7, 2025
d0b3006
Merge branch 'staging' into vs/feat/user-transactions
guimroque Nov 7, 2025
269d753
Merge pull request #418 from infinitybase/vs/feat/user-transactions
guimroque Nov 7, 2025
4b8ecf8
Merge branch 'staging' into p2/fix/create-compatible-predicate-versio…
pedroanastacio Nov 10, 2025
87a73a0
fix(PredicateService): returns the predicate version in .findById() a…
ArthurCorbellini Nov 13, 2025
90dc352
Merge pull request #421 from infinitybase/p2/fix/create-compatible-pr…
pedroanastacio Nov 14, 2025
25cf1be
feat(transactions): adds endpoint do delete latest transaction by hash
pedroanastacio Nov 14, 2025
ea57a15
chore: install date-fns on socket-server
pedroanastacio Nov 17, 2025
7f7b713
feat(socket): adjusts transaction events based on connector type and …
pedroanastacio Nov 17, 2025
e1e0c63
feat(tests): adds endpoint test that excludes the latest transaction …
pedroanastacio Nov 17, 2025
52acb8e
fix: removes unnecessary validation
pedroanastacio Nov 17, 2025
a1a4937
refactor(socket): improves code readability
pedroanastacio Nov 17, 2025
3fc1795
Merge pull request #422 from infinitybase/ac/fix/vaults-without-predi…
pedroanastacio Nov 17, 2025
6ce773e
refactor(transaction): adjusts transaction delete endpoint to exclude…
pedroanastacio Nov 19, 2025
33b4d14
Merge pull request #423 from infinitybase/p2/feat/delete-transaction-…
pedroanastacio Nov 19, 2025
f2b315f
fix: prevent lost events by ensuring emit waits for connection and ad…
pedroanastacio Nov 19, 2025
0c35ec8
Merge pull request #424 from infinitybase/p2/fix/connector-login
guimroque Nov 19, 2025
8c1a547
perf: add caching to getAssetsMaps and refactor asset parsing functions
guimroque Nov 25, 2025
d09e2e8
refactor: centralize stFUEL price calculation in QuoteStorage
guimroque Nov 25, 2025
5005a83
perf: optimize asset allocation calculation with batch queries
guimroque Nov 25, 2025
0c0fa31
perf: add database indexes for predicates and transactions queries
guimroque Nov 25, 2025
5a55f16
feat: implement Redis-based balance cache with auto-invalidation
guimroque Nov 25, 2025
2987d9c
fix: remove invalid resourceCacheTTL option causing startup error
guimroque Nov 25, 2025
a1b9e25
fix: handle Address object in ProviderWithCache.getBalances
guimroque Nov 25, 2025
41cf0dc
fix: add optional chaining to predicateAddress.slice in balance cache
guimroque Nov 25, 2025
8899426
fix: add optional chaining to all predicateAddress.slice calls
guimroque Nov 25, 2025
42b6660
chore: migrate to docker compose v2 and set API version
guimroque Nov 25, 2025
2f28a76
perf: move assets cache from memory to Redis
guimroque Nov 26, 2025
22db09b
perf: move cache metrics from memory to Redis
guimroque Nov 26, 2025
55bd468
perf: add periodic cache clearing to FuelProvider
guimroque Nov 26, 2025
046d6ba
perf: add global chainId cache to FuelProvider
guimroque Nov 26, 2025
5c4647f
perf: optimize warmup with cache checks and limits
guimroque Nov 26, 2025
3d8c869
perf: add granular cache invalidation by chainId
guimroque Nov 26, 2025
ff78c1b
feat: add transaction cache with incremental refresh strategy
guimroque Nov 26, 2025
b8f16c1
docs: add cache strategy documentation
guimroque Nov 26, 2025
469b008
chore: add cache configuration to env example
guimroque Nov 26, 2025
8875d99
perf: optimize pending transactions query with indexes and early return
guimroque Nov 26, 2025
010aa53
perf: add indexes, parallelize notifications, and batch user lookups
guimroque Nov 26, 2025
2e8a464
fix: allow status and type query params in user transactions endpoint
guimroque Nov 26, 2025
794fc43
perf: return network object from select-network endpoint
guimroque Nov 26, 2025
a5534a9
perf: trigger cache warmup early when auth code is generated
guimroque Nov 26, 2025
529886e
feat(predicate): returns balance per vault
pedroanastacio Nov 26, 2025
915bd23
perf: warmup cache for all networks on auth code generation
guimroque Nov 26, 2025
d8cd402
fix(predicate): add distinct to prevent duplicated predicates on quer…
pedroanastacio Nov 26, 2025
d0aadc7
Merge pull request #425 from infinitybase/p2/feat/return-balance-per-…
guimroque Nov 27, 2025
0cb24f9
perf: add pagination to allocation endpoint with vault ordering
guimroque Nov 27, 2025
65962b3
feat: add vault name and address to allocation response
guimroque Nov 27, 2025
8de4850
feat: add members and minSigners to allocation response
guimroque Nov 27, 2025
a2ee84e
refactor: parallelize allocation queries and add structure tests
guimroque Nov 27, 2025
b33b2b6
perf: optimize build with incremental compilation and tsc-alias
guimroque Nov 27, 2025
fa9e944
perf: optimize CI/CD pipeline with Docker layer caching
guimroque Nov 27, 2025
216b722
chore: exclude test files from production build
guimroque Nov 27, 2025
a1e0d0d
fix: remove pnpm-lock.yaml reference from Dockerfile
guimroque Nov 27, 2025
dc070bc
perf: use ECR registry cache instead of GHA cache
guimroque Nov 27, 2025
952667f
refactor: consolidate API deploy workflows into single file
guimroque Nov 27, 2025
0ab5ae7
feat(worker): add user block sync queue with deposit persistence
guimroque Nov 27, 2025
04eae2e
perf: use bookworm image to speed up Docker builds by 32%
guimroque Nov 27, 2025
b25336d
fix: add error handling to allocation endpoint to prevent 500 errors
guimroque Nov 27, 2025
2789049
fix: remove latest tag from ECR push due to immutability
guimroque Nov 27, 2025
e84ed31
chore: build
guimroque Nov 27, 2025
8e38736
fix: replace DISTINCT ON with GROUP BY in allocation query
guimroque Nov 27, 2025
95ef785
fix: use GHA cache instead of ECR registry cache due to immutability
guimroque Nov 27, 2025
b7678f0
chore: trigger new build
guimroque Nov 27, 2025
b445941
fix: calculate total from all predicates but limit response to top 5
guimroque Nov 27, 2025
390fb8b
fix: include personal vault in login warmup for both networks
guimroque Nov 27, 2025
e7bb930
fix(transaction): also considers transactions from vaults of which th…
pedroanastacio Dec 2, 2025
590f175
fix(transaction): applies distinct to count pending transactions
pedroanastacio Dec 5, 2025
1f08168
fix(transaction): prevente transaction duplication on pending count
pedroanastacio Dec 8, 2025
1428973
Merge pull request #426 from infinitybase/p2/fix/adjusts-count-of-pen…
pedroanastacio Dec 8, 2025
dcd0539
fix(predicate): adjusts allocation endpoint test
pedroanastacio Dec 9, 2025
1c74df6
fix(predicate): calculates balance considering only active vaults for…
pedroanastacio Dec 9, 2025
9eec913
fix(predicate): adjusts query to filter by predicate id if it exists
pedroanastacio Dec 9, 2025
c7c4f1d
fix: uses andWhere to avoid replace anothers where
pedroanastacio Dec 11, 2025
87cbe00
refactor: adds active predicates filter to query
pedroanastacio Dec 11, 2025
c7a1f5a
Merge pull request #427 from infinitybase/p2/fix/calculate-allocation…
pedroanastacio Dec 11, 2025
ab30b81
fix(transactions): invalidates cache of all predicates involved in a …
pedroanastacio Dec 15, 2025
9bb4624
chore(transactions): adds success invalidation cache log
pedroanastacio Dec 15, 2025
1974442
Merge pull request #428 from infinitybase/p2/fix/transaction-cache-in…
pedroanastacio Dec 15, 2025
bcb13d2
fix(socket): removes timeout of socket events emit
pedroanastacio Dec 16, 2025
37b88e7
fix(socket-event): removes race condition emitting an event
pedroanastacio Dec 16, 2025
3b84ea3
Merge pull request #430 from infinitybase/p2/fix/emit-socket-events
pedroanastacio Dec 16, 2025
eec11c7
chore: updates bakosafe sdk version
pedroanastacio Dec 18, 2025
594aa2c
Merge pull request #431 from infinitybase/p2/chore/update-bako-sdk-ve…
pedroanastacio Dec 18, 2025
8ec241f
fix(notification): add error handling when sending successful transac…
pedroanastacio Dec 19, 2025
1e8943e
chore: specifies module in error log
pedroanastacio Dec 19, 2025
93874f9
chore: adds transaction info in error log
pedroanastacio Dec 19, 2025
7e1df80
Merge pull request #432 from infinitybase/p2/fix/transaction-send-error
pedroanastacio Dec 19, 2025
b4f9d66
feat(predicate): add support for SIGNER format in predicate creation
guimroque Dec 22, 2025
16a4ffe
chore: add debug logs for transaction and predicate lookup
guimroque Jan 6, 2026
ff2e792
fix: use findByAddress instead of filter().list() for transaction cre…
guimroque Jan 6, 2026
b5a4d1e
fix: use LEFT JOIN in findByAddress with explicit field selection
guimroque Jan 6, 2026
6fbf30e
fix: add all predicate fields to findByAddress for full compatibility
guimroque Jan 6, 2026
fe6d0c4
fix: add avatar fields to findByAddress (required by UI)
guimroque Jan 6, 2026
d6594a5
chore: add debug logs for predicate creation
guimroque Jan 6, 2026
e7aced0
fix: use single workspace as default for connector predicate creation
guimroque Jan 6, 2026
e212dff
chore(deps): update bakosafe to 0.6.0
guimroque Jan 7, 2026
fbbd5a7
chore(deps): update bakosafe to 0.6.0 in socket-server
guimroque Jan 7, 2026
0a3f976
fix(socket): adds error handler and retry to connection state request
pedroanastacio Jan 8, 2026
e2a52b1
chore(socket): rename index file
pedroanastacio Jan 8, 2026
6488a5b
chore(socket): adds connection state log
pedroanastacio Jan 8, 2026
0c3d502
chore(socket): decrease retry delay
pedroanastacio Jan 8, 2026
564f1cb
Merge pull request #434 from infinitybase/p2/fix/socket-restart-errors
pedroanastacio Jan 8, 2026
e6e8e3d
fix: adds strategy to update transaction and balance cache when balan…
pedroanastacio Jan 15, 2026
a24c392
chore: adds jsdoc to compareBalance function
pedroanastacio Jan 15, 2026
c3b9e81
fix(socket): adjusts transaction socket event type
pedroanastacio Jan 15, 2026
f11089f
feat(predicate): adds request param validation to predicate allocatio…
pedroanastacio Jan 15, 2026
3018f27
feat(user-check-balances): process predicates check balances in batches
pedroanastacio Jan 15, 2026
3a93730
chore: rename default predicate to Personal Account
GabrielTozatti Jan 15, 2026
3344f3a
Merge pull request #437 from infinitybase/p2/fix/update-transaction-a…
pedroanastacio Jan 15, 2026
bdec14f
fix: enforce duplicate name validation
GabrielTozatti Jan 15, 2026
e93d5c9
fix: correctly handle BadRequest in create() to return HTTP 400
GabrielTozatti Jan 15, 2026
0823c02
fix: validate unique name on create and update
GabrielTozatti Jan 15, 2026
c12bd59
fix: import formatting: add spaces around braces for BadRequest import
GabrielTozatti Jan 16, 2026
f3d6fe6
Merge pull request #439 from infinitybase/tzt/fix/validate-duplicate-…
GabrielTozatti Jan 16, 2026
e3f9c03
feat: adds pino logger to socket-server
pedroanastacio Jan 19, 2026
cb40f34
feat: adds pino logger to api
pedroanastacio Jan 19, 2026
280d27d
fix(logger): export only as const
pedroanastacio Jan 19, 2026
ee555ee
fix(logger): export only as const and remove sync invalid config
pedroanastacio Jan 19, 2026
d6befbe
Merge branch 'staging' into p2/feat/configure-logger
pedroanastacio Jan 19, 2026
4de6a20
fix: fixes predicates count key
pedroanastacio Jan 19, 2026
fe9ab4f
fix: fixes data of cache invalidation log
pedroanastacio Jan 19, 2026
79c4314
chore: removes blank line
pedroanastacio Jan 19, 2026
9743f52
fix(user-tests): send status as array to user transactions endpoint
pedroanastacio Jan 20, 2026
df62c03
fix(transaction-tests): use isolated vault to test transactions pendi…
pedroanastacio Jan 20, 2026
4658068
feat(transactions-test): adds validation to created transaction status
pedroanastacio Jan 20, 2026
a3497e0
refactor(transaction-tests): uses predicates array length to set the …
pedroanastacio Jan 20, 2026
4cbb45c
Merge pull request #441 from infinitybase/p2/fix/test-errors
pedroanastacio Jan 20, 2026
ef9167b
Merge branch 'staging' into p2/feat/configure-logger
pedroanastacio Jan 20, 2026
f20c09c
Merge pull request #440 from infinitybase/p2/feat/configure-logger
guimroque Jan 20, 2026
dde429b
Merge pull request #438 from infinitybase/tzt/chore/rename-personal-a…
pedroanastacio Jan 21, 2026
3ab704c
Merge branch 'p2/fix/send-tx-to-chain-prod' into p2/fix/send-tx-to-ch…
pedroanastacio Jan 22, 2026
083c6a6
fix: replaces console log with logger
pedroanastacio Jan 22, 2026
0125f2d
Merge pull request #445 from infinitybase/p2/fix/send-tx-to-chain-stg
guimroque Jan 23, 2026
82c43e0
feat(predicate-tests): adds test to validate error status returned by…
pedroanastacio Feb 2, 2026
9f302b2
fix(predicate-tests): garantee predicate with the given address doesn…
pedroanastacio Feb 2, 2026
da41d24
fix: downgrade pino to 9.6.0 for Node 18 compatibility
guimroque Feb 4, 2026
574c2aa
Merge pull request #446 from infinitybase/p2/feat/add-error-status-te…
pedroanastacio Feb 5, 2026
ea4f126
fix(migrations): add Provider.init() call before getChainId
guimroque Feb 5, 2026
c3708b9
chore(chain): update fuel-core to v0.43.1
guimroque Feb 5, 2026
28c736f
chore(docker): migrate to Docker Compose V2 syntax
guimroque Feb 5, 2026
c91ca26
docs: rewrite README with complete setup instructions
guimroque Feb 5, 2026
e19eff0
chore(deps): update lockfile and add ignoredBuiltDependencies
guimroque Feb 5, 2026
821ab46
docs: add comprehensive setup review and gap analysis
guimroque Feb 5, 2026
dc42ae9
fix: resolve critical setup blockers for local development
guimroque Feb 5, 2026
73b5e41
fix: resolve race condition in pnpm dev startup
guimroque Feb 5, 2026
f5d82cf
docs: improve README with architecture and complete setup guide
guimroque Feb 5, 2026
c70c989
docs: update review checklist with completed items
guimroque Feb 5, 2026
d28fc14
docs: add CONTRIBUTING.md with development guidelines
guimroque Feb 5, 2026
4efa03c
docs: mark CONTRIBUTING.md as completed in review checklist
guimroque Feb 5, 2026
187886f
fix(security): update vulnerable dependencies
guimroque Feb 5, 2026
e209b8d
docs: add test stability analysis report
guimroque Feb 5, 2026
b0499ae
test: add missing tests and fix test infrastructure
guimroque Feb 5, 2026
29efa01
docs: update test analysis with fixes applied
guimroque Feb 5, 2026
88585a5
ci: add workflow_dispatch trigger for manual runs
guimroque Feb 5, 2026
f9718a5
ci: optimize workflow with caching and concurrency
guimroque Feb 5, 2026
2a6114b
ci: add comprehensive CI pipeline with lint, typecheck and security
guimroque Feb 5, 2026
a0de177
fix(ci): adjust security audit to warning and fix test command
guimroque Feb 5, 2026
83f46b2
fix(security): patch vulnerable dependencies and ignore unpatched CVEs
guimroque Feb 5, 2026
33fcc04
ci: add changelog validation for PRs
guimroque Feb 5, 2026
e9ba543
chore(dapp): add logs to dapp connect
pedroanastacio Feb 6, 2026
115db54
Merge pull request #449 from infinitybase/p2/chore/add-logs-to-dapp-c…
pedroanastacio Feb 6, 2026
2345d25
fix(socket-client): adds timeout to disconnect socket after emit event
pedroanastacio Feb 9, 2026
adc3cf7
chore(socket-client): decrease timeout to disconnect socket when emit…
pedroanastacio Feb 9, 2026
67b6d10
refactor(socket-client): uses promise to await timeout to disconnect …
pedroanastacio Feb 9, 2026
eaa510e
Merge pull request #450 from infinitybase/p2/fix/disconnect-socket-af…
pedroanastacio Feb 9, 2026
5711788
Merge pull request #448 from infinitybase/staging-docs-review
guimroque Feb 10, 2026
d3cdb4e
fix(deploy): fix worker deploy and patch axios vulnerability
guimroque Feb 10, 2026
6bc8189
docs: update CHANGELOG with deploy fix and axios upgrade
guimroque Feb 10, 2026
0ff7984
Merge pull request #451 from infinitybase/fix/worker-deploy-and-axios…
guimroque Feb 10, 2026
79d65d3
chore(socket-server): removes dev command
pedroanastacio Feb 11, 2026
d3d215d
chore(doc): adds description of changes to changelog
pedroanastacio Feb 11, 2026
a981046
Merge pull request #452 from infinitybase/p2/chore/remove-socket-dev-…
pedroanastacio Feb 11, 2026
f7a6d57
chore(socket-client): add logs to socket client emitting events
pedroanastacio Feb 12, 2026
437c936
chore(socket-client): adjust log text
pedroanastacio Feb 12, 2026
7d03cf8
chore(doc): adds description of changes to changelog
pedroanastacio Feb 12, 2026
202c284
Merge pull request #453 from infinitybase/p2/test/add-logs-to-debug-c…
pedroanastacio Feb 12, 2026
39601af
fix(socket-client): increases disconnect timeout to avoid socket disc…
pedroanastacio Feb 12, 2026
ccb0f6f
chore(socket-client): add environment variable to set socket client d…
pedroanastacio Feb 12, 2026
41877b3
Merge pull request #454 from infinitybase/p2/fix/avoid-socket-disconn…
pedroanastacio Feb 12, 2026
d2e3a3a
chore(api): execute postbuild command when building prod
pedroanastacio Feb 13, 2026
95a3fce
chore(api): upgrade nodemailer version to resolve vulnerability
pedroanastacio Feb 13, 2026
0e8190f
Merge pull request #455 from infinitybase/p2/fix/send-email
pedroanastacio Feb 13, 2026
67058f3
feat(predicate): returs email and notify properties of predicate memb…
pedroanastacio Feb 13, 2026
cf0fe42
fix(predicate): send email when create predicate with membres with no…
pedroanastacio Feb 13, 2026
8a84956
refactor(predicate): avoid race condition creating notification and s…
pedroanastacio Feb 13, 2026
f8fefe9
Merge pull request #456 from infinitybase/p2/fix/send-create-vault-email
pedroanastacio Feb 13, 2026
39be8fc
feat(health-check): add endpoints to database and redis health check
pedroanastacio Feb 19, 2026
1fb57ba
refactor(health-check): returns internal error on health check error
pedroanastacio Feb 19, 2026
fdbb56e
chore(health-check): remove unnused import
pedroanastacio Feb 19, 2026
5dde0bc
Merge pull request #457 from infinitybase/p2/feat/add-health-checks-e…
pedroanastacio Feb 20, 2026
e2977c7
chore(deps-dev): bump ts-node-dev from 1.1.6 to 2.0.0
dependabot[bot] Feb 23, 2026
6e5fd29
chore(deps): bump jsonwebtoken and @types/jsonwebtoken
dependabot[bot] Feb 23, 2026
8088f3b
Merge pull request #473 from infinitybase/dependabot/npm_and_yarn/sta…
guimroque Feb 23, 2026
0b8e5b1
chore(deps-dev): bump tsx from 4.19.3 to 4.21.0
dependabot[bot] Feb 23, 2026
94b72ce
ci: skip changelog and security audit checks for dependabot PRs
guimroque Feb 23, 2026
ad07e09
Merge pull request #478 from infinitybase/dependabot/npm_and_yarn/sta…
guimroque Feb 23, 2026
871d5b8
Merge pull request #479 from infinitybase/dependabot/npm_and_yarn/sta…
guimroque Feb 23, 2026
4e7237e
chore: upgrade Node.js from 18 to 22 in production Dockerfiles
guimroque Feb 23, 2026
a293981
ci: add Docker build validation for all packages
guimroque Feb 23, 2026
261703c
Merge pull request #483 from infinitybase/chore/upgrade-node-22-ecs
guimroque Feb 23, 2026
eb77929
fix: use multi-arch node:22-alpine for socket-server Dockerfile
guimroque Feb 23, 2026
ab9f2c8
refactor: standardize socket-server Dockerfile to multi-stage build
guimroque Feb 23, 2026
665584c
Merge pull request #484 from infinitybase/fix/socket-server-multiarch…
guimroque Feb 23, 2026
5c54507
ci: unify staging deploys into single workflow with change detection
guimroque Feb 23, 2026
0d225d7
Merge pull request #485 from infinitybase/fix/worker-deploy-and-axios…
guimroque Feb 23, 2026
5507b81
chore: trigger dependabot re-evaluation
guimroque Feb 23, 2026
85aaa63
Merge branch 'staging' into p2/merge/fix-conflicts
pedroanastacio Feb 25, 2026
ee17570
Merge pull request #486 from infinitybase/p2/merge/fix-conflicts
pedroanastacio Feb 25, 2026
e6b0e37
chore(deps): bump @opentelemetry/exporter-trace-otlp-proto
dependabot[bot] Feb 28, 2026
fe0fc55
Merge pull request #496 from infinitybase/dependabot/npm_and_yarn/sta…
pedroanastacio Mar 12, 2026
e523586
fix(security-audit): fix high vulnerabilities
pedroanastacio Mar 12, 2026
926ac90
Merge pull request #508 from infinitybase/p2/fix/security-audit-vulne…
pedroanastacio Mar 12, 2026
14b330e
Merge pull request #510 from infinitybase/p2/merge/security-audit-stg
pedroanastacio Mar 12, 2026
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
6 changes: 3 additions & 3 deletions .github/actions/setup-forc/action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: "Rust & Forc Setup"
name: 'Rust & Forc Setup'

inputs:
rust-version:
default: 1.81.0
forc-components:
default: "forc@0.66.4, fuel-core@0.40.0"
default: 'forc@0.68.1, fuel-core@0.45.1'

runs:
using: "composite"
using: 'composite'
steps:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
Expand Down
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ updates:
schedule:
interval: weekly
open-pull-requests-limit: 10
# Force re-evaluation
83 changes: 0 additions & 83 deletions .github/workflows/aws-deploy-api-hml.yml

This file was deleted.

85 changes: 0 additions & 85 deletions .github/workflows/aws-deploy-api-stg.yml

This file was deleted.

88 changes: 50 additions & 38 deletions .github/workflows/aws-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,94 @@ name: "[API] Deploy to Amazon ECS"

on:
push:
branches: [main]
branches: [main, homologacao]
paths:
- "packages/api/**"

jobs:
check-changes:
name: "[VERIFY] Check for Changes"
setup:
name: "[SETUP] Determine Environment"
runs-on: ubuntu-latest

outputs:
should_deploy: ${{ steps.check.outputs.should_deploy }}
environment: ${{ steps.env.outputs.environment }}
ecr_repository: ${{ steps.env.outputs.ecr_repository }}
ecs_service: ${{ steps.env.outputs.ecs_service }}
ecs_cluster: ${{ steps.env.outputs.ecs_cluster }}
task_definition: ${{ steps.env.outputs.task_definition }}
container_name: ${{ steps.env.outputs.container_name }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2

- name: Check for changes in ./packages/api
id: check
- name: Determine environment from branch
id: env
run: |
if git diff --quiet HEAD~1 -- ./packages/api; then
echo "No changes detected in ./packages/api"
echo "::set-output name=should_deploy::false"
else
echo "Changes detected in ./packages/api"
echo "::set-output name=should_deploy::true"
BRANCH="${GITHUB_REF#refs/heads/}"
echo "Branch: $BRANCH"

if [ "$BRANCH" = "main" ]; then
echo "environment=production" >> $GITHUB_OUTPUT
echo "ecr_repository=bako-safe-api" >> $GITHUB_OUTPUT
echo "ecs_service=bako-safe-api-service" >> $GITHUB_OUTPUT
echo "ecs_cluster=Bako-Safe-ECS" >> $GITHUB_OUTPUT
echo "task_definition=./packages/api/prod_api_task_definition.json" >> $GITHUB_OUTPUT
echo "container_name=bako-safe-api" >> $GITHUB_OUTPUT
elif [ "$BRANCH" = "homologacao" ]; then
echo "environment=homologacao" >> $GITHUB_OUTPUT
echo "ecr_repository=bako-safe-api-hmg" >> $GITHUB_OUTPUT
echo "ecs_service=bako-safe-api-hmg-service" >> $GITHUB_OUTPUT
echo "ecs_cluster=Bako-Safe-Hmg" >> $GITHUB_OUTPUT
echo "task_definition=./packages/api/hml_api_task_definition.json" >> $GITHUB_OUTPUT
echo "container_name=bako-safe-api-hmg" >> $GITHUB_OUTPUT
fi

deploy:
name: "[API] Deploy to Amazon ECS"
name: "[API] Deploy to ${{ needs.setup.outputs.environment }}"
needs: setup
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.BAKO_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.BAKO_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Login to Amazon ECR
id: login_ecr
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login_ecr.outputs.registry }}
ECR_REPOSITORY: bako-safe-api
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and push it to ECR
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG ./packages/api
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
uses: docker/build-push-action@v6
with:
context: ./packages/api
platforms: linux/arm64
push: true
tags: ${{ steps.login_ecr.outputs.registry }}/${{ needs.setup.outputs.ecr_repository }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: ./packages/api/prod_api_task_definition.json
container-name: bako-safe-api
image: ${{ steps.build-image.outputs.image }}
task-definition: ${{ needs.setup.outputs.task_definition }}
container-name: ${{ needs.setup.outputs.container_name }}
image: ${{ steps.login_ecr.outputs.registry }}/${{ needs.setup.outputs.ecr_repository }}:${{ github.sha }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: bako-safe-api-service
cluster: Bako-Safe-ECS
service: ${{ needs.setup.outputs.ecs_service }}
cluster: ${{ needs.setup.outputs.ecs_cluster }}
wait-for-service-stability: true
Loading
Loading