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: BRC-20 tokens #78

Merged
merged 138 commits into from
Sep 12, 2023
Merged

feat: BRC-20 tokens #78

merged 138 commits into from
Sep 12, 2023

Conversation

rafaelcr
Copy link
Collaborator

@rafaelcr rafaelcr commented May 19, 2023

This PR adds BRC-20 indexing support to the API.

To index operations, this code follows these indexer rules:
https://docs.bestinslot.xyz/indexer-rules
https://domo-2.gitbook.io/brc-20-experiment/

Additionally, this PR creates the following new endpoints:

  • /ordinals/brc-20/tokens
    Return paginated token information (ticker, max, limit, supply)
  • /ordinals/brc-20/tokens/:ticker
    Return token info for a single ticker (all details + total holders)
  • /ordinals/brc-20/tokens/:ticker/events
    Return event history for a single ticker
  • /ordinals/brc-20/balances/:address
    Return balance for an address (optionally filtered by 1 or more tickers) giving available balance, transferrable balance, overall balance

Fixes #49

@rafaelcr rafaelcr marked this pull request as draft May 19, 2023 15:47
@rafaelcr rafaelcr linked an issue May 19, 2023 that may be closed by this pull request
@rafaelcr rafaelcr temporarily deployed to Preview June 13, 2023 17:28 — with GitHub Actions Inactive
@github-actions
Copy link

github-actions bot commented Jun 13, 2023

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

@rafaelcr rafaelcr temporarily deployed to Preview June 13, 2023 20:37 — with GitHub Actions Inactive
@rafaelcr rafaelcr temporarily deployed to Preview June 15, 2023 00:20 — with GitHub Actions Inactive
@rafaelcr rafaelcr temporarily deployed to Preview September 10, 2023 04:57 — with GitHub Actions Inactive
## [1.0.0-brc-20.23](v1.0.0-brc-20.22...v1.0.0-brc-20.23) (2023-09-10)

### Bug Fixes

* only increase counts on valid operations ([01f0865](01f0865))
@blockstack-devops blockstack-devops temporarily deployed to Preview September 10, 2023 05:00 — with GitHub Actions Inactive
@rafaelcr rafaelcr temporarily deployed to Preview September 10, 2023 18:42 — with GitHub Actions Inactive
## [1.0.0-brc-20.24](v1.0.0-brc-20.23...v1.0.0-brc-20.24) (2023-09-10)

### Features

* add location to activity response ([580861e](580861e))
@blockstack-devops blockstack-devops temporarily deployed to Preview September 10, 2023 18:45 — with GitHub Actions Inactive
Co-authored-by: janniks <janniks@users.noreply.github.com>
@rafaelcr rafaelcr temporarily deployed to Preview September 11, 2023 19:44 — with GitHub Actions Inactive
## [1.0.0-brc-20.25](v1.0.0-brc-20.24...v1.0.0-brc-20.25) (2023-09-11)

### Bug Fixes

* change tx_count to json number ([#216](#216)) ([20f9415](20f9415))
@blockstack-devops blockstack-devops temporarily deployed to Preview September 11, 2023 19:47 — with GitHub Actions Inactive
@rafaelcr rafaelcr temporarily deployed to Preview September 11, 2023 20:04 — with GitHub Actions Inactive
## [1.0.0-brc-20.26](v1.0.0-brc-20.25...v1.0.0-brc-20.26) (2023-09-11)

### Bug Fixes

* ticker filter for balances ([#217](#217)) ([1ca3bcd](1ca3bcd))
@blockstack-devops blockstack-devops temporarily deployed to Preview September 11, 2023 20:06 — with GitHub Actions Inactive
@rafaelcr rafaelcr temporarily deployed to Preview September 12, 2023 00:20 — with GitHub Actions Inactive
## [1.0.0-brc-20.27](v1.0.0-brc-20.26...v1.0.0-brc-20.27) (2023-09-12)

### Bug Fixes

* return to sender balance calculation ([#218](#218)) ([226dfe6](226dfe6))
@blockstack-devops blockstack-devops temporarily deployed to Preview September 12, 2023 00:23 — with GitHub Actions Inactive
@rafaelcr rafaelcr requested a review from janniks September 12, 2023 15:46
@rafaelcr rafaelcr merged commit a39bfd3 into develop Sep 12, 2023
@rafaelcr rafaelcr deleted the brc-20 branch September 12, 2023 15:58
blockstack-devops pushed a commit that referenced this pull request Sep 12, 2023
## [1.1.0](v1.0.0...v1.1.0) (2023-09-12)

### Features

* BRC-20 token support ([#78](#78)) ([a39bfd3](a39bfd3)), closes [#147](#147) [#147](#147) [#156](#156) [#154](#154) [#147](#147) [#165](#165) [#147](#147) [#165](#165) [#168](#168) [#168](#168) [#167](#167) [#167](#167) [#174](#174) [#174](#174) [#175](#175) [#175](#175) [#177](#177) [#177](#177) [#178](#178) [#178](#178) [#186](#186) [#129](#129) [#168](#168) [#70](#70) [#186](#186) [#167](#167) [#129](#129) [#177](#177) [#132](#132) [#105](#105) [#178](#178) [#147](#147) [#156](#156) [#175](#175) [#154](#154) [#165](#165) [#174](#174) [#145](#145) [#183](#183)

### Bug Fixes

* lint errors ([#220](#220)) ([f6bc735](f6bc735))

### Reverts

* Revert "Added H1 to the overview page" ([8fedf86](8fedf86))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

g0drlc added a commit to g0drlc/btc-ordinals-api that referenced this pull request Jul 14, 2024
## [1.1.0](hirosystems/ordinals-api@v1.0.0...v1.1.0) (2023-09-12)

### Features

* BRC-20 token support ([#78](hirosystems/ordinals-api#78)) ([a39bfd3](hirosystems/ordinals-api@a39bfd3)), closes [#147](hirosystems/ordinals-api#147) [#147](hirosystems/ordinals-api#147) [#156](hirosystems/ordinals-api#156) [#154](hirosystems/ordinals-api#154) [#147](hirosystems/ordinals-api#147) [#165](hirosystems/ordinals-api#165) [#147](hirosystems/ordinals-api#147) [#165](hirosystems/ordinals-api#165) [#168](hirosystems/ordinals-api#168) [#168](hirosystems/ordinals-api#168) [#167](hirosystems/ordinals-api#167) [#167](hirosystems/ordinals-api#167) [#174](hirosystems/ordinals-api#174) [#174](hirosystems/ordinals-api#174) [#175](hirosystems/ordinals-api#175) [#175](hirosystems/ordinals-api#175) [#177](hirosystems/ordinals-api#177) [#177](hirosystems/ordinals-api#177) [#178](hirosystems/ordinals-api#178) [#178](hirosystems/ordinals-api#178) [#186](hirosystems/ordinals-api#186) [#129](hirosystems/ordinals-api#129) [#168](hirosystems/ordinals-api#168) [#70](hirosystems/ordinals-api#70) [#186](hirosystems/ordinals-api#186) [#167](hirosystems/ordinals-api#167) [#129](hirosystems/ordinals-api#129) [#177](hirosystems/ordinals-api#177) [#132](hirosystems/ordinals-api#132) [#105](hirosystems/ordinals-api#105) [#178](hirosystems/ordinals-api#178) [#147](hirosystems/ordinals-api#147) [#156](hirosystems/ordinals-api#156) [#175](hirosystems/ordinals-api#175) [#154](hirosystems/ordinals-api#154) [#165](hirosystems/ordinals-api#165) [#174](hirosystems/ordinals-api#174) [#145](hirosystems/ordinals-api#145) [#183](hirosystems/ordinals-api#183)

### Bug Fixes

* lint errors ([#220](hirosystems/ordinals-api#220)) ([f6bc735](hirosystems/ordinals-api@f6bc735))

### Reverts

* Revert "Added H1 to the overview page" ([8fedf86](hirosystems/ordinals-api@8fedf86))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

feature: support for BRC-20 tokens
7 participants