Skip to content

Commit 8e4502b

Browse files
authored
Merge pull request #459 from hirosystems/beta
merge beta into develop
2 parents 16e8838 + 21e62a1 commit 8e4502b

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
## [3.0.0-beta.11](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.10...v3.0.0-beta.11) (2025-02-25)
2+
3+
4+
### Bug Fixes
5+
6+
* **brc20:** historical token balance ([#444](https://github.com/hirosystems/ordhook/issues/444)) ([41438ac](https://github.com/hirosystems/ordhook/commit/41438aca962ba7f2c4add4df87740fdb6df6de00))
7+
* display unbound inscription satpoints as all zeros with unbound sequence as offset ([#445](https://github.com/hirosystems/ordhook/issues/445)) ([6815878](https://github.com/hirosystems/ordhook/commit/68158786f06c0a4ad6f56509eaa96012986f7790))
8+
9+
## [3.0.0-beta.10](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2025-02-18)
10+
11+
12+
### Bug Fixes
13+
14+
* **api:** multiple parent display ([703f98f](https://github.com/hirosystems/ordhook/commit/703f98f77f9797db3e4f4f0e3e14fbdb7c5275f8))
15+
16+
## [3.0.0-beta.9](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2025-02-18)
17+
18+
19+
### Features
20+
21+
* **api:** add parent_refs field to inscription responses ([#436](https://github.com/hirosystems/ordhook/issues/436)) ([5630644](https://github.com/hirosystems/ordhook/commit/563064413bcc2168f96cb87af4fd6ab51ed36e73))
22+
23+
24+
### Bug Fixes
25+
26+
* **api:** show delegate inscription id correctly ([#439](https://github.com/hirosystems/ordhook/issues/439)) ([d4ee264](https://github.com/hirosystems/ordhook/commit/d4ee264ad0bec2749299b60e985927ba87d6f40e))
27+
* calculate charms correctly when inscription is unbound ([#440](https://github.com/hirosystems/ordhook/issues/440)) ([acfda83](https://github.com/hirosystems/ordhook/commit/acfda83757e5c06977ecf43ca396b7fcd780d71b))
28+
29+
## [3.0.0-beta.8](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2025-02-18)
30+
31+
32+
### Features
33+
34+
* **api:** return inscription charms in responses ([#435](https://github.com/hirosystems/ordhook/issues/435)) ([a7073da](https://github.com/hirosystems/ordhook/commit/a7073da0b4bb0c61d57284c48c65f73b0491a909))
35+
* index inscription charms ([#433](https://github.com/hirosystems/ordhook/issues/433)) ([4291eab](https://github.com/hirosystems/ordhook/commit/4291eabba7110ca5d4684f4801e234621e64d96b))
36+
137
## [3.0.0-beta.7](https://github.com/hirosystems/ordhook/compare/v3.0.0-beta.6...v3.0.0-beta.7) (2025-02-16)
238

339

api/ordinals/src/pg/pg-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export class PgStore extends BasePgStore {
172172
i.curse_type,
173173
i.ordinal_number AS sat_ordinal,
174174
(
175-
SELECT ip.parent_inscription_id
175+
SELECT STRING_AGG(ip.parent_inscription_id, ',')
176176
FROM inscription_parents AS ip
177177
WHERE ip.inscription_id = i.inscription_id
178178
) AS parent_refs,

api/ordinals/tests/api/inscriptions.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ describe('/inscriptions', () => {
225225
expect(response2.json()).toStrictEqual(expected);
226226
});
227227

228-
test('shows inscription with parent', async () => {
228+
test('shows inscription with parents', async () => {
229229
await inscriptionReveal(db.sql, {
230230
inscription_id: '9f4a9b73b0713c5da01c0a47f97c6c001af9028d6bdd9e264dfacbc4e6790201i0',
231231
ordinal_number: '257418248345364',
@@ -296,13 +296,18 @@ describe('/inscriptions', () => {
296296
inscription_id: 'f351d86c6e6cae3c64e297e7463095732f216875bcc1f3c03f950a492bb25421i0',
297297
parent_inscription_id: '9f4a9b73b0713c5da01c0a47f97c6c001af9028d6bdd9e264dfacbc4e6790201i0',
298298
});
299+
await insertTestInscriptionParent(db.sql, {
300+
inscription_id: 'f351d86c6e6cae3c64e297e7463095732f216875bcc1f3c03f950a492bb25421i0',
301+
parent_inscription_id: '001eec2c3fb12441057722b099ae22f4d67602e2e7add0bd018132c0b128cde3i0',
302+
});
299303
const response = await fastify.inject({
300304
method: 'GET',
301305
url: '/ordinals/v1/inscriptions/f351d86c6e6cae3c64e297e7463095732f216875bcc1f3c03f950a492bb25421i0',
302306
});
303307
expect(response.statusCode).toBe(200);
304308
expect(response.json().parent_refs).toStrictEqual([
305309
'9f4a9b73b0713c5da01c0a47f97c6c001af9028d6bdd9e264dfacbc4e6790201i0',
310+
'001eec2c3fb12441057722b099ae22f4d67602e2e7add0bd018132c0b128cde3i0',
306311
]);
307312
});
308313

0 commit comments

Comments
 (0)