Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

fix: add brc20 stats view#203

Draft
janniks wants to merge 66 commits intodevelopfrom
fix/add-brc20-stats-view
Draft

fix: add brc20 stats view#203
janniks wants to merge 66 commits intodevelopfrom
fix/add-brc20-stats-view

Conversation

@janniks
Copy link
Copy Markdown
Contributor

@janniks janniks commented Aug 30, 2023

  • add materialized view for tx_count and holder_count

not finished yet,
if we like this, it can be used in other queries (e.g. replace the getTokenHolders queries)

  • can be used for sorting by tx_count in endpoints (e.g. getTokens) -- currently, would have to join with brc20_events COUNT OVER, which makes the query a lot slower

rafaelcr and others added 26 commits August 17, 2023 09:02
## [1.0.0-brc-20.1](v0.4.15...v1.0.0-brc-20.1) (2023-08-17)

### ⚠ BREAKING CHANGES

* optimize transfer replay capability (#129)

### Features

* add inscription number sort option ([#168](#168)) ([9f4cdbc](9f4cdbc))
* add stats endpoint for inscription counts ([#70](#70)) ([ac18e62](ac18e62))
* brc-20 balance at block ([#186](#186)) ([ced5cb3](ced5cb3))
* detect and tag recursive inscriptions ([#167](#167)) ([fb36285](fb36285))
* first balance endpoint ([f9c6654](f9c6654))
* first balance transfers ([dd8ec07](dd8ec07))
* holders endpoint ([a01f77e](a01f77e))
* mint within supply ([c8e5820](c8e5820))
* mints with balance changes ([32e90f7](32e90f7))
* optimize transfer replay capability ([#129](#129)) ([97874cc](97874cc))
* start storing token deploys ([bf4c7f6](bf4c7f6))
* token details ([5d35d5b](5d35d5b))
* token info endpoint ([8fad6b9](8fad6b9))
* tokens endpoint as paginated index ([ae2049b](ae2049b))

### Bug Fixes

* add address column to genesis and current ([d71e1d4](d71e1d4))
* add indexes for fks ([354ddd0](354ddd0))
* add secondary sorting by inscription number ([#177](#177)) ([99959df](99959df))
* allow gap fills for transfers ([026c275](026c275))
* allow multiple transfers of an inscription in one block ([#132](#132)) ([bc545f0](bc545f0))
* auto predicate registration option ([e1ed7c7](e1ed7c7))
* balances and rollbacks ([61b4139](61b4139))
* balances/:address ([687c2e4](687c2e4))
* build beta image ([13f2c13](13f2c13))
* build event server using chainhook client library ([#105](#105)) ([ab4c795](ab4c795))
* chainhook client upgrades ([9a96492](9a96492))
* consider `tx_index` in transfers by block endpoint ([#178](#178)) ([ed517d6](ed517d6))
* introduce materialized view to count address inscriptions ([#147](#147)) ([09a95d5](09a95d5))
* invalid decimal count ([aa15b0e](aa15b0e))
* make etag calculation sensitive to inscription location gap fills and upserts ([#156](#156)) ([5648c9e](5648c9e))
* only consider blessed inscriptions ([2a4700c](2a4700c))
* optimize COUNT calculations via the use of count tables ([#175](#175)) ([31498bd](31498bd))
* refresh views in parallel ([#154](#154)) ([a7674a9](a7674a9))
* remove old json content tables ([0732048](0732048))
* remove old json schemas ([8cc7f8a](8cc7f8a))
* remove unused json functions ([#165](#165)) ([3eb0e24](3eb0e24))
* rename location pointer tables ([b84d27e](b84d27e))
* rollback location pointers ([#174](#174)) ([3c9d7f0](3c9d7f0))
* save tx_index on locations to support transfers on same block ([#145](#145)) ([30a9635](30a9635))
* skip db migrations during readonly mode ([d5157f0](d5157f0))
* tick must be 4 bytes or less ([f6fd0a6](f6fd0a6))
* transfers only usable once ([542ec34](542ec34))
* upgrade chainhook client ([cbbb951](cbbb951))
* upgrade chainhook client to 1.3.3 ([ee66f93](ee66f93))
* warn correctly on missing prev locations ([879bf55](879bf55))
* refactor: update nullish access

* feat: add deploy_timestamp to brc-20 token endpoints

* feat: add minted_supply to brc-20 token endpoints

* refactor: improve scan performance with generated lower ticker

* feat: add prefix filtering to brc20 deploy tickers

* test: add token endpoint test

---------

Co-authored-by: janniks <[email protected]>
* chore: draft optims

* chore: more optimizations

* fix: reveals and transfers in same batch

* fix: inscriptions tests pass

* fix: optimize pointer logic

* fix: cache updated_at writes

* feat: scan block concept

* fix: individual items, start transfers

* fix: all tests pass

* fix: env var brc20 processing

* feat: add admin rpc server to control brc20 scans

* style: comments
## [1.0.0-brc-20.2](v1.0.0-brc-20.1...v1.0.0-brc-20.2) (2023-08-24)

### Features

* add more brc20 features ([#183](#183)) ([c1939ce](c1939ce))

### Bug Fixes

* optimize inscription and brc-20 inserts ([#189](#189)) ([3807334](3807334))
## [1.0.0-brc-20.3](v1.0.0-brc-20.2...v1.0.0-brc-20.3) (2023-08-24)

### Bug Fixes

* add unique indexes for mints and transfers ([b428bb4](b428bb4))
* sending transfer as fee returns amt to sender ([e23012a](e23012a))
* fix: upgrade api-toolkit

* fix: isProdEnv helper
## [1.0.0-brc-20.4](v1.0.0-brc-20.3...v1.0.0-brc-20.4) (2023-08-25)

### Bug Fixes

* refresh supplies view only if BRC-20 is enabled ([7d6705a](7d6705a))
* upgrade api-toolkit ([#190](#190)) ([0e673a7](0e673a7))
## [1.0.0-brc-20.5](v1.0.0-brc-20.4...v1.0.0-brc-20.5) (2023-08-25)

### Bug Fixes

* change uniqueness constraint in locations table ([9a9c5de](9a9c5de))
## [1.0.0-brc-20.6](v1.0.0-brc-20.5...v1.0.0-brc-20.6) (2023-08-26)

### Bug Fixes

* place a cap on max insertion size ([bef5f23](bef5f23))
* fix: do not insert repeated recursions

* chore: remove custom launch
@janniks janniks temporarily deployed to Preview August 30, 2023 01:01 — with GitHub Actions Inactive
@janniks janniks changed the base branch from develop to brc-20 August 30, 2023 01:01
@github-actions
Copy link
Copy Markdown

Vercel deployment URL: https://ordinals-bt85y9s71-blockstack.vercel.app 🚀

Base automatically changed from brc-20 to develop September 12, 2023 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

No open projects
Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

4 participants