Commit Graph

896 Commits

Author SHA1 Message Date
Rafael Cardenas
586e1db61c ci: fix ord ingore path for codecov 2025-02-13 11:06:54 -06:00
Rafael Cárdenas
3409345e33 ci: fix api docker builds, upgrade to node 20, ignore ord from coverage (#426)
* ci: fix api docker builds, upgrade to node 20

* try again, ignore ord

* fix dockerignore

* restore ci order
2025-02-13 10:51:20 -06:00
Rafael Cárdenas
19c8a79cd2 fix: remove double parsing of inscriptions (#421) 2025-02-13 09:01:45 -06:00
Rafael Cárdenas
216cd52c0e fix: clean up rocksdb connections during rollbacks (#420)
* fix: only one rocksdb conn

* unify context

* improve logs

* clean up connections

* revert sequencing

* improve logs

* revert logs
2025-02-13 09:01:24 -06:00
Rafael Cárdenas
48b3ccef48 chore: improve log messages for zeromq and fork processing (#422)
* fix: only one rocksdb conn

* unify context

* improve logs

* clean up connections

* revert sequencing

* improve logs

* revert

* chore: standard log
2025-02-12 17:23:31 -06:00
ASuciuX
e48731de05 Merge pull request #418 from hirosystems/chore/unify-package-version
chore: unify package versions to workspace.package.version 2.2.5
2025-02-12 18:54:20 +02:00
ASuciuX
b4e0157a56 chore: unify package versions to workspace.package.version 2.2.5 2025-02-12 17:43:55 +02:00
Rafael Cárdenas
fcffa7e5c1 fix: upgrade ord dependencies and integrate chainhook-sdk code (#397)
* chore: upgrade ord code

* chore: deps

* chore: add parents table

* chore: move pg deps to workspace

* fix: delegation works

* chore: import chainhook-sdk code

* chore: move ord to its own component

* ci: dockerfile

* docs: ord readme

* refactor: remove all unused code from chainhook-sdk (#412)

* chore: remove stacks types

* checkpoint before removing predicates

* chore: remove all predicates code

* bitcoin dep

* fix: tests

* fix: api tests
2025-02-11 12:21:30 -06:00
dependabot[bot]
c7b9a34b4f chore(deps): bump cookie and light-my-request in /api/ordinals (#405)
Bumps [cookie](https://github.com/jshttp/cookie) and [light-my-request](https://github.com/fastify/light-my-request). These dependencies needed to be updated together.

Updates `cookie` from 0.5.0 to 0.7.2
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.5.0...v0.7.2)

Updates `light-my-request` from 5.9.1 to 5.14.0
- [Release notes](https://github.com/fastify/light-my-request/releases)
- [Commits](https://github.com/fastify/light-my-request/compare/v5.9.1...v5.14.0)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: light-my-request
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:39:51 -06:00
dependabot[bot]
5a9588adb3 chore(deps): bump @fastify/multipart in /api/ordinals (#404)
Bumps [@fastify/multipart](https://github.com/fastify/fastify-multipart) from 7.1.0 to 8.3.1.
- [Release notes](https://github.com/fastify/fastify-multipart/releases)
- [Commits](https://github.com/fastify/fastify-multipart/compare/v7.1.0...v8.3.1)

---
updated-dependencies:
- dependency-name: "@fastify/multipart"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:39:27 -06:00
dependabot[bot]
fea12167d5 chore(deps): bump dompurify and redoc-cli in /api/ordinals (#408)
Removes [dompurify](https://github.com/cure53/DOMPurify). It's no longer used after updating ancestor dependency [redoc-cli](https://github.com/Redocly/redoc). These dependencies need to be updated together.


Removes `dompurify`

Updates `redoc-cli` from 0.13.20 to 0.13.21
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-type: indirect
- dependency-name: redoc-cli
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:38:29 -06:00
dependabot[bot]
50b0000097 chore(deps): bump undici from 5.22.1 to 5.28.5 in /api/ordinals (#406)
Bumps [undici](https://github.com/nodejs/undici) from 5.22.1 to 5.28.5.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.22.1...v5.28.5)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-10 11:37:50 -06:00
ASuciuX
42f20c8917 Merge pull request #396 from hirosystems/fix/mutants-dependency-binding
fix mutants: dependency binding error on Secp256k1
2025-02-10 18:19:35 +02:00
Rafael Cárdenas
205b4c80bd feat: migrate ordinals api to ordhook repo (#389)
* feat: add database migration cli commands

* update cargo lock

* chore: import first api files

* test: cache first

* test: cache

* test: sats

* test: inscription show

* test: inscription transfers

* test: inscriptions index

* test: inscriptions complete

* test: counts

* test: status

* test: block counts

* test: brc20 activity

* test: brc20 holders

* ci: api tests

* ci: update nvmrc path

* ci: remove migration refs

* ci: unused exports

* ci: unused

* ci: build publish

* ci: monorepo

* fix: timestamps

* Update api/ordinals/docs/feature-guides/rate-limiting.md

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>

* Update api/ordinals/docs/feature-guides/rate-limiting.md

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>

* Update api/ordinals/docs/overview.md

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>

* Update api/ordinals/src/api/schemas.ts

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>

* Update api/ordinals/src/api/schemas.ts

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>

* fix: warnings

---------

Co-authored-by: ASuciuX <151519329+ASuciuX@users.noreply.github.com>
2025-02-07 13:44:21 -06:00
ASuciuX
dbc54e4e98 update mutants version 2025-02-07 13:31:35 +02:00
Rafael Cárdenas
fe842e2e77 fix(brc20): verify ordinal transfers in chunks instead of individually (#394)
* chore: group transfers

* fix: finish integration

* fix: chunk query

* chunk size

* test: indexing

* fix: comments
2025-02-05 13:14:41 -06:00
ASuciuX
88a3b4d4c8 fix mutants: dependency binding error on Secp256k1 2025-02-05 15:58:05 +02:00
Rafael Cárdenas
51d3a76272 Merge pull request #393 from hirosystems/beta
beta to develop
2025-02-03 14:43:41 -06:00
Rafael Cárdenas
b203a1588d Merge pull request #392 from hirosystems/develop
merge develop into beta
2025-01-30 09:27:39 -06:00
semantic-release-bot
5075f163ff chore(release): 3.0.0-beta.5 [skip ci]
## [3.0.0-beta.5](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2025-01-29)

### Bug Fixes

* store inscription content as is ([#391](https://github.com/hirosystems/ordhook/issues/391)) ([3f10607](3f10607ba9))
2025-01-29 16:56:47 +00:00
Rafael Cárdenas
3f10607ba9 fix: store inscription content as is (#391) 2025-01-29 10:51:18 -06:00
semantic-release-bot
2dba824d7b chore(release): 3.0.0-beta.4 [skip ci]
## [3.0.0-beta.4](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2025-01-28)

### Bug Fixes

* **brc20:** add to_address index to operations table ([#390](https://github.com/hirosystems/ordhook/issues/390)) ([67c6035](67c6035828))
2025-01-28 16:56:36 +00:00
Rafael Cárdenas
67c6035828 fix(brc20): add to_address index to operations table (#390) 2025-01-28 10:51:18 -06:00
ASuciuX
6eefce6747 Merge pull request #388 from hirosystems/docs/contributing-file
Docs: add Contributing file
2025-01-21 23:57:28 +02:00
ASuciuX
5278495bf7 Merge branch 'develop' into docs/contributing-file 2025-01-21 23:57:20 +02:00
ASuciuX
09a83ffe74 Merge pull request #387 from hirosystems/feat/ci-mutants-on-prs
Add: CI mutants output and update rust version
2025-01-21 23:56:56 +02:00
ASuciuX
3ecabba8b1 Merge branch 'develop' into feat/ci-mutants-on-prs 2025-01-21 23:56:44 +02:00
ASuciuX
0a4fb13be7 docs: add Contributing file 2025-01-16 20:47:08 +02:00
ASuciuX
ef723d440a Add: CI mutants output and update rust version
- the version update to 1.81 is required to support mutation testing
2025-01-16 18:16:02 +02:00
semantic-release-bot
a183832400 chore(release): 3.0.0-beta.3 [skip ci]
## [3.0.0-beta.3](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.2...v3.0.0-beta.3) (2025-01-14)

### ⚠ BREAKING CHANGES

* store inscription data in postgres instead of sqlite (#375)

### Code Refactoring

* store inscription data in postgres instead of sqlite ([#375](https://github.com/hirosystems/ordhook/issues/375)) ([4afb201](4afb201006))
2025-01-14 18:38:39 +00:00
Rafael Cárdenas
126ce32d33 Merge pull request #383 from hirosystems/develop
release new beta
2025-01-14 12:33:07 -06:00
Rafael Cardenas
e60904356e chore: merge beta 2025-01-14 11:41:01 -06:00
Rafael Cárdenas
4afb201006 refactor!: store inscription data in postgres instead of sqlite (#375)
* chore: new pg lib

* chore: migrations and connection code

* brc20 migrations

* connection opts

* fixed columns

* vscode configs

* transaction utils

* chain tip integration

* more progress

* progress

* models

* brc20 progress

* progress

* more

* utils

* models and isnerts

* some more inserts

* ordering support

* remove extra code

* organize

* deadpool

* chain tip

* counts

* optimize transfers table

* optimize reinscriptions

* transfers in same block

* drop blocks structure

* brc20 counts

* token minted supplies

* brc20 insert chunks

* brc20 tweaks

* tweaks

* rollback progress

* restore tests

* fix brc20 tests

* cache tests

* brc20 db tests

* pg docker compose

* fix: pg path

* fix: dockerfile

* test: inscr write

* test: rollbacks

* fix: token minted supply rollback

* fix: ordinals rollback

* chore: upgrade rust

* fix: share rocksdb conn across threads

* chore: search path support

* chore: logs cleanup

* chore: re-enable seq cursor tests

* fix: wire up rollbacks

* fix: brc20 decimal conversion

* fix: recursion parsing

* fix: remove 0x from binary content

* fix: inscription content fixed for real this time

* fix: remove null bytes before inserting

* chore: delete http api

* fix: new pg methods

* fix: all tests

* chore: add pool size config, remove http config

* style: comments
2025-01-04 17:44:58 -06:00
dependabot[bot]
30e8f7a8c4 chore(deps): bump pprof from 0.13.0 to 0.14.0 (#377)
Bumps [pprof](https://github.com/tikv/pprof-rs) from 0.13.0 to 0.14.0.
- [Changelog](https://github.com/tikv/pprof-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tikv/pprof-rs/commits)

---
updated-dependencies:
- dependency-name: pprof
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 11:05:12 -06:00
semantic-release-bot
1fbdcd9d5f chore(release): 3.0.0-beta.2 [skip ci]
## [3.0.0-beta.2](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2024-09-24)

### Bug Fixes

* roll back ordinals db changes when brc20 db commit fails ([#367](https://github.com/hirosystems/ordhook/issues/367)) ([f4e0c79](f4e0c7935b))
2024-09-24 00:16:08 +00:00
Rafael Cárdenas
f4e0c7935b fix: roll back ordinals db changes when brc20 db commit fails (#367) 2024-09-23 18:10:39 -06:00
semantic-release-bot
ef9725b7b1 chore(release): 3.0.0-beta.1 [skip ci]
## [3.0.0-beta.1](https://github.com/hirosystems/ordhook/compare/v2.2.5...v3.0.0-beta.1) (2024-09-20)

### ⚠ BREAKING CHANGES

* support brc20 activity on scan blocks command (#350)
* keep original deployed ticker for brc20 tokens (#349)

### Features

* add prometheus monitoring ([#356](https://github.com/hirosystems/ordhook/issues/356)) ([f35e1d0](f35e1d00e7))
* keep original deployed ticker for brc20 tokens ([#349](https://github.com/hirosystems/ordhook/issues/349)) ([39774a9](39774a9f86))
* support a separate storage directory for observers.sqlite ([#354](https://github.com/hirosystems/ordhook/issues/354)) ([7a65fdf](7a65fdf107))
* support brc20 activity on scan blocks command ([#350](https://github.com/hirosystems/ordhook/issues/350)) ([caacff7](caacff7c4f))
* wait for bitcoind to be at chain tip before starting service ([#364](https://github.com/hirosystems/ordhook/issues/364)) ([d4b67bb](d4b67bb6f6))

### Bug Fixes

* also check config when looking for brc20 db connection ([#347](https://github.com/hirosystems/ordhook/issues/347)) ([d80388b](d80388b505))
* only create brc-20 db connection and cache if required ([#357](https://github.com/hirosystems/ordhook/issues/357)) ([5692426](5692426e4b))
2024-09-20 18:58:00 +00:00
Rafael Cárdenas
721b68b24f Merge pull request #366 from hirosystems/develop
release to beta
2024-09-20 12:43:50 -06:00
Rafael Cárdenas
786f877fa7 Merge branch 'beta' into develop 2024-09-20 11:58:12 -06:00
Rafael Cárdenas
8eac12ee09 ci: add beta releases (#365) 2024-09-20 11:56:02 -06:00
Rafael Cárdenas
d4b67bb6f6 feat: wait for bitcoind to be at chain tip before starting service (#364)
* feat: wait for bitcoind to be at chain tip before starting service

* fix: reset confirmations

* chore: more logs
2024-09-20 11:34:04 -06:00
Rafael Cárdenas
21fcf46fac chore: clean up db sync command (#363)
* chore: clean up db sync command

* fix: test delete db

* chore: tweak log messages
2024-09-19 19:23:39 -06:00
dependabot[bot]
231b7568e3 chore(deps): bump miniscript from 11.0.0 to 11.2.0 (#360)
Bumps [miniscript](https://github.com/rust-bitcoin/rust-miniscript) from 11.0.0 to 11.2.0.
- [Changelog](https://github.com/rust-bitcoin/rust-miniscript/blob/11.2.0/CHANGELOG.md)
- [Commits](https://github.com/rust-bitcoin/rust-miniscript/compare/11.0.0...11.2.0)

---
updated-dependencies:
- dependency-name: miniscript
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 11:00:01 -06:00
dependabot[bot]
f100e618ca chore(deps): bump micromatch in /components/ordhook-sdk-js (#358)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 10:59:35 -06:00
Rafael Cárdenas
a0300cecc2 test: inscription indexing, parsing, sequencing and satoshi numbering (#359)
* feat: add prometheus monitoring

* chore: progress

* fix: create object

* chore: port config

* chore: set initial metrics on start

* fix: monitor predicates

* test: add

* test: inscription indexing

* test: tools and parsing start

* test: raw blocks

* test: cursor

* fix: test drop

* test: cursor more

* refactor: rocksdb separate file

* refactor: db into files

* refactor: delete ordhook config, unify use of config

* fix: consolidate db initialization

* test: full block sequencing

* test: sat numbering with cache

* test: sat coinbase fees

* test: uncached traversal

* test: non spend

* test: sat tracking post transfer

* test: burnt sat pos

* test: integration test transfeR

* fix: witness test

* test: consolidate block

* test: indexing channel

* test: archiver

* test: transfers channel

* test: brc20 augment
2024-09-17 10:54:20 -06:00
Rafael Cárdenas
f35e1d00e7 feat: add prometheus monitoring (#356)
* feat: add prometheus monitoring

* chore: progress

* fix: create object

* chore: port config

* chore: set initial metrics on start

* fix: monitor predicates

* test: add
2024-09-05 14:50:57 -06:00
Rafael Cárdenas
5692426e4b fix: only create brc-20 db connection and cache if required (#357)
* fix: unify db create

* fix: test

* fix: create on drop

* fix: build

* chore: remove warnings

* fix: add some logs

* fix: blocking thread
2024-09-04 08:59:21 -06:00
Rafael Cárdenas
7a65fdf107 feat: support a separate storage directory for observers.sqlite (#354)
* chore: observers db dir

* fix: control observers path only on db functions

* chore: test structure

* test: incorrect predicate

* fix: test predicate registration

* test: more

* fix: duplicate uuid test
2024-09-03 12:21:56 -06:00
Ryan
154afdf287 docs: meta-protocols flag command (#355) 2024-08-05 16:51:39 -06:00
Rafael Cárdenas
caacff7c4f feat!: support brc20 activity on scan blocks command (#350)
* fix: meta protocols for block scan

* chore: show brc20 operations on block scan

* docs: readme

* chore: generator
2024-07-31 11:37:43 -06:00