Skip to content

Move postgres changes to develop#160

Merged
gclaramunt merged 69 commits into
developfrom
release/integrationnet
Aug 22, 2025
Merged

Move postgres changes to develop#160
gclaramunt merged 69 commits into
developfrom
release/integrationnet

Conversation

@gclaramunt

Copy link
Copy Markdown
Contributor

No description provided.

@gclaramunt

Copy link
Copy Markdown
Contributor Author

(reopened because the previous one was complaining about conflicts that didn't exist)

@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres June 18, 2025 03:37 — with GitHub Actions Inactive
* add currencyId to locks and spends

* remove obsolete triggers
@gclaramunt gclaramunt force-pushed the release/integrationnet branch from 8634cbc to 1433bb9 Compare June 18, 2025 04:28
@gclaramunt gclaramunt temporarily deployed to testnet-postgres June 18, 2025 04:29 — with GitHub Actions Inactive
@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres June 18, 2025 04:29 — with GitHub Actions Inactive
@gclaramunt gclaramunt temporarily deployed to testnet-postgres June 19, 2025 15:34 — with GitHub Actions Inactive
@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres June 19, 2025 15:34 — with GitHub Actions Inactive
@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres July 28, 2025 14:53 — with GitHub Actions Inactive
@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres July 30, 2025 16:53 — with GitHub Actions Inactive
* add deploy action

* use postgres and prisma for dag, metagraph, and actions endpoints

* temporarily change stage

* add prisma binary targets

* add new endpoints

* update db structure

* Added endpoint tests using local postgres db

* fix typo

* update db structure

* fix typo

* Adjust fields optionality

* use ordinal from query parameters

* update db structure

* Adjust fields optionality

* use ordinal from query parameters

* add ordinal and unlock ordinal

* fix: PROT-1112 add fee, staking address, owner addres, and size to metagraph snapshot response

* fix: await globalSnapshotWhere and metagraphSnapshotWhere

* PROT-1119 add detail endpoints

* shorter names

* Fix metagraph filters for findUnique

* use proper latest for querying metagraph snapshot

* fix: use metagraph_id for query

* add active token locks query param

* remove error details

* fix transaction ordering and add tests

* update tests

* Add delegated staking endpoints

* docs: added openapi spec covering current endpoints

* token lock tests

* add active filter to address endpoint

* token locks tests

* add active filter to allow spends

* add metagraph count to response

* Update docs/schemas/dag.yml

Co-authored-by: Alex Brandes <asbrandes@gmail.com>

* PROT-1163 increase page size limit

* add snapshot ordinal to actions

* add fee transactions endpoint and tests

* add new fee tx endpoint docs

* add position endponts

* query tx by snapshot directly

* rename sizeInKB

* fix: delegated staking pagination

* add nodeId filter

* return transaction original

* add delegated staking to actions

* fix ordinal number

* fallback to opensearch for balance changes

* fix not found

* remove opensearch fallback

* optomize total rewards

* fix snapshot count typo

* fix dag/mg pagination

* PROT 1236 remove transferred stakes from active and include transferred rewards in total withdrawal (#187)

* optimize positions and fix bug

* fix transfer from/to logic

* fix total withdrawn amount and tests

* feat: PROT 1237 add global snapshot to txs (#184)

add global snapshot hash and ordinal to txs

* Merge branch 'PROT-1266-add-before-after' into release/testnet

* PROT-1257 add currencyId to locks and spends (#189)

* add currencyId to locks and spends

* remove obsolete triggers

* add desc indexes

* fix view create script for test

* fix: global snapshot transactions pagination (#191)

fix pagination for global snapshot txs

* support multiple rewards per address (#192)

* Support many rewards per address (#193)

update types

* Improve spend pagination and add more comprehensive pagination test (#194)

add more comprehensive pagination test

---------

Co-authored-by: Alex Brandes <alex@getdor.com>
Co-authored-by: Alex Brandes <asbrandes@gmail.com>
gclaramunt and others added 2 commits August 4, 2025 16:41
* filter spend tx  by allow spend ref

* update apidoc
@gclaramunt gclaramunt temporarily deployed to integrationnet-postgres August 4, 2025 21:10 — with GitHub Actions Inactive
@gclaramunt gclaramunt merged commit fc82b59 into develop Aug 22, 2025
5 checks passed
@gclaramunt gclaramunt deleted the release/integrationnet branch August 22, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants