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

feat/ledger stateless test inline cache #500

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
397bbf1
feat(ledger): make stateless
gfyrag Sep 4, 2024
9b0d153
clean: some todo
gfyrag Sep 24, 2024
f475282
feat: make insertMoves return post commit volumes
gfyrag Sep 24, 2024
8171ffb
feat: remove ExpandedTransaction and fetch pc(e)v when inserting moves
gfyrag Sep 25, 2024
ff7ee84
feat: remove usage of unified sdk
gfyrag Sep 25, 2024
1d79c9d
feat: introduce acounts_volumes table
gfyrag Sep 25, 2024
bb63867
feat: make balance aggregation use accounts_volumes table if pit is n…
gfyrag Sep 25, 2024
35a4902
feat: make the core defined transactions timestamp
gfyrag Sep 25, 2024
d48a887
feat: homogeneize volumes names
gfyrag Sep 25, 2024
f48dcce
feat: make transactions pcv computed on the fly
gfyrag Sep 25, 2024
6c14dba
feat: introduce feature MOVES_HISTORY
gfyrag Sep 25, 2024
d9cb20f
feat: convert post_commit_volumes to jsonb
gfyrag Sep 25, 2024
05b8e28
feat: compute move pcv on the fly
gfyrag Sep 25, 2024
f28611a
feat: remove MOVES_HISTORY_POST_COMMIT_VOLUMES
gfyrag Sep 25, 2024
1d975bb
feat: define insertion date at store level
gfyrag Sep 25, 2024
83cc331
feat: modify stress test parameters
gfyrag Sep 25, 2024
7bd64f4
feat: remove automatic pit
gfyrag Sep 25, 2024
e0bb709
feat: handle errors on create api of v1 api
gfyrag Sep 25, 2024
9c03070
feat: add features validation
gfyrag Sep 25, 2024
421746b
chore: clean todo
gfyrag Sep 25, 2024
c47dd0a
fix: test logging
gfyrag Sep 25, 2024
59f5835
feat: remove transaction sequences
gfyrag Sep 25, 2024
26f924d
feat: remove sequence of accounts
gfyrag Sep 26, 2024
a8555fe
fix: potential double dispense on some rare case
gfyrag Sep 26, 2024
ab48b9b
chore: pre-commit
gfyrag Sep 26, 2024
57a3fa1
feat: add sql options on WithTX
gfyrag Sep 26, 2024
e30c7d7
fix: import locking
gfyrag Sep 26, 2024
355f5a4
chore: lint
gfyrag Sep 26, 2024
9123016
refactor(Earthfile): reuse sources stage and optimize build process (…
flemzord Sep 26, 2024
df15cb4
fix: regexp
gfyrag Sep 26, 2024
8c15414
feat: make transaction denorm in sql trigger
gfyrag Sep 26, 2024
6803319
clean: remove ledgerstore.Transaction model
gfyrag Sep 26, 2024
5caf5b0
chore: remove accounts_address_array from moves
gfyrag Sep 26, 2024
c27588d
fix: various
gfyrag Sep 26, 2024
9576cfa
feat: move segments generation on a trigger
gfyrag Sep 26, 2024
e324335
chore: simplify storage
gfyrag Sep 27, 2024
97b1517
chore: simplify storage
gfyrag Sep 27, 2024
6dc9b73
chore: simplify storage
gfyrag Sep 27, 2024
b395804
chore: simplify storage
gfyrag Sep 27, 2024
8ca1091
chore: simplify storage
gfyrag Sep 27, 2024
593118b
feat: optimize cache on +generate
gfyrag Sep 27, 2024
1aa7f9a
feat: move code
gfyrag Sep 27, 2024
aca657c
chore: lint
gfyrag Sep 27, 2024
2ea1f9b
chore: clean code
gfyrag Sep 27, 2024
a589baf
chore: clean
gfyrag Sep 27, 2024
c68780a
feat: move model in core
gfyrag Sep 27, 2024
27b00d8
feat: move code
gfyrag Sep 27, 2024
b064332
chore: simplify code
gfyrag Sep 27, 2024
d0a0274
feat: add nats server on integration tests
gfyrag Sep 27, 2024
e26b818
feat: add test of events
gfyrag Sep 27, 2024
b1a2062
fix: events
gfyrag Sep 27, 2024
166d549
feat: move code
gfyrag Sep 27, 2024
869b7bb
feat: check event schemas and values
gfyrag Sep 27, 2024
a9ffe41
feat: completely test events COMITTED_TRANSACTIONS
gfyrag Sep 27, 2024
3e7695c
feat: test save metadata event for transactions
gfyrag Sep 27, 2024
9ea5c0b
chore: increate golangci-lint timeout
gfyrag Sep 27, 2024
2500cb0
fix(Earthfile): persist golangci-lint cache for faster builds
flemzord Sep 27, 2024
c839fe4
feat: test deleted metadata event for transactions
gfyrag Sep 27, 2024
12f7aed
fix: make reversal date of reverted transactions matching insertion d…
gfyrag Sep 27, 2024
d3698dd
fix: make 'expand' query param more smart by splitting ','
gfyrag Sep 27, 2024
4a99e85
fix: go libs hash and missing package in coverage
gfyrag Sep 27, 2024
eac11dd
chore: add gitignore
gfyrag Sep 27, 2024
d31b1b4
chore: pre commit
gfyrag Sep 27, 2024
30d79d7
fix: missing build tag
gfyrag Sep 27, 2024
a9d3a58
wip
gfyrag Sep 28, 2024
e2264bc
wip
gfyrag Sep 28, 2024
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
  •  
  •  
  •  
33 changes: 10 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,19 @@ jobs:
uses: ./.github/actions/env
with:
token: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: "NumaryBot"
password: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--save-inline-cache
--use-inline-cache
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
--push
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
+pre-commit
env:
Expand All @@ -53,28 +62,6 @@ jobs:
exit 1
fi

Tests:
runs-on: "ubuntu-latest"
needs:
- Dirty
steps:
- uses: 'actions/checkout@v4'
with:
fetch-depth: 0
- name: Setup Env
uses: ./.github/actions/env
with:
token: ${{ secrets.NUMARY_GITHUB_TOKEN }}
- run: >
earthly
--no-output
--allow-privileged
--secret SPEAKEASY_API_KEY=$SPEAKEASY_API_KEY
${{ contains(github.event.pull_request.labels.*.name, 'no-cache') && '--no-cache' || '' }}
+tests
env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

GoReleaser:
runs-on: "ubuntu-latest"
if: contains(github.event.pull_request.labels.*.name, 'build-images') || github.ref == 'refs/heads/main' || github.event_name == 'merge_group'
Expand Down Expand Up @@ -120,7 +107,7 @@ jobs:
environment: staging
needs:
- GoReleaser
- Tests
- Dirty
steps:
- uses: earthly/actions-setup@v1
with:
Expand Down
21 changes: 3 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
coverage*
/dist/
cmd/control/*
!cmd/control/gitkeep
.DS_Store
.idea
vendor
sdk/swagger.yaml
sdk/swagger.yaml-e
sdk/sdks
.vscode
.env
sqlstorage.test
ledger.test
antlr-*-complete.jar
go.work
go.work.sum
benchs
cover.out
go.work*
*.jar
Loading
Loading