Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'

Expand Down Expand Up @@ -71,12 +71,12 @@ jobs:
STACKS_NODE_RPC_HOST: 127.0.0.1
STACKS_NODE_RPC_PORT: 24440
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'

Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
run: npm run test:${{ matrix.suite }} -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -122,6 +122,7 @@ jobs:
build-publish:
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
Expand All @@ -131,14 +132,13 @@ jobs:
steps:
- name: Generate release bot app token
id: generate_token
uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_ID }}
private-key: ${{ secrets.HIROSYSTEMS_RELEASE_BOT_PEM }}

- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: false

Expand All @@ -149,8 +149,14 @@ jobs:
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

- name: Install deps
run: |
npm ci --audit=false
cd client
npm ci --audit=false

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
uses: cycjimmy/semantic-release-action@9cc899c47e6841430bbaedb43de1560a568dfd16 # v5
id: semantic
# Only run on non-PR events or only PRs that aren't from forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
Expand All @@ -160,11 +166,10 @@ jobs:
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
with:
semantic_version: 19
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
conventional-changelog-conventionalcommits@6.1.0
conventional-changelog-conventionalcommits@9.1.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -188,7 +193,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build/Tag/Push Image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
Expand Down
18 changes: 17 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,24 @@
"preset": "conventionalcommits"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./client",
"npmPublish": true
}
],
"@semantic-release/github",
"@semantic-release/changelog",
"@semantic-release/git"
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"client/package.json",
"client/package-lock.json"
]
}
]
]
}
86 changes: 74 additions & 12 deletions client/src/generated/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ export interface operations {
* @example SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9
*/
address?: string;
/** @description If enabled, only tokens with valid SIP-016 metadata will be returned */
valid_metadata_only?: boolean;
/** @description Result offset */
offset?: number;
/** @description Results per page */
Expand Down Expand Up @@ -165,30 +167,42 @@ export interface operations {
total_supply?: string;
/**
* Format: uri
* @description URI for this token's metadata JSON
* @example ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json
*/
token_uri?: string;
/** @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets */
/**
* @description Description
* @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets
*/
description?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_uri?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_thumbnail_uri?: string;
/**
* Format: uri
* @description Original image URL
* @example ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_canonical_uri?: string;
/** @example 0xef2ac1126e16f46843228b1dk4830e19eb7599129e4jf392cab9e65ae83a45c0 */
tx_id: string;
/** @example ST399W7Z9WS0GMSNQGJGME5JAENKN56D65VGMGKGA */
sender_address: string;
/**
* @description Clarity asset identifier
* @example SPZA22A4D15RKH5G8XDGQ7BPC20Q5JNMH0VQKSR6.token-ststx-earn-v1::stSTXearn
*/
asset_identifier: string;
/** @example SP1H1733V5MZ3SZ9XRW9FKYGEZT0JDGEB8Y634C7R.miamicoin-token-v2 */
contract_principal: string;
}[];
Expand Down Expand Up @@ -222,62 +236,96 @@ export interface operations {
};
content: {
"application/json": {
/** @example Wrapped USD */
/**
* @description Token name
* @example Wrapped USD
*/
name?: string;
/** @example xUSD */
/**
* @description Token symbol
* @example xUSD
*/
symbol?: string;
/** @example 8 */
/**
* @description Number of decimal places clients should use to format this token's amounts
* @example 8
*/
decimals?: number;
/** @example 9999980000000 */
/**
* @description Current circulating supply as reported by its contract. Clients should format this amount with the correct number of `decimals` before displaying to users
* @example 9999980000000
*/
total_supply?: string;
/**
* Format: uri
* @description URI for this token's metadata JSON
* @example ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json
*/
token_uri?: string;
/** @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets */
/**
* @description Description
* @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets
*/
description?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_uri?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_thumbnail_uri?: string;
/**
* Format: uri
* @description Original image URL
* @example ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image_canonical_uri?: string;
/** @example 0x5642ca7d68976b6b2a2055689d9a57de26d67f0dd8b016d1b0d94cb634454cdd */
/**
* @description ID for the transaction that deployed this token
* @example 0x5642ca7d68976b6b2a2055689d9a57de26d67f0dd8b016d1b0d94cb634454cdd
*/
tx_id: string;
/** @example SPZA22A4D15RKH5G8XDGQ7BPC20Q5JNMH0VQKSR6 */
/**
* @description Deployer address
* @example SPZA22A4D15RKH5G8XDGQ7BPC20Q5JNMH0VQKSR6
*/
sender_address: string;
/** @example SPZA22A4D15RKH5G8XDGQ7BPC20Q5JNMH0VQKSR6.token-ststx-earn-v1::stSTXearn */
/**
* @description Clarity asset identifier
* @example SPZA22A4D15RKH5G8XDGQ7BPC20Q5JNMH0VQKSR6.token-ststx-earn-v1::stSTXearn
*/
asset_identifier: string;
/** Metadata */
metadata?: {
/** @example 16 */
sip: number;
/** @example Satoshi's Team #12200 */
name?: string;
/** @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets */
/**
* @description Description
* @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets
*/
description?: string;
/**
* Format: uri
* @description Original image URL
* @example ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_thumbnail_image?: string;
Expand Down Expand Up @@ -389,6 +437,7 @@ export interface operations {
"application/json": {
/**
* Format: uri
* @description URI for this token's metadata JSON
* @example ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json
*/
token_uri?: string;
Expand All @@ -398,20 +447,26 @@ export interface operations {
sip: number;
/** @example Satoshi's Team #12200 */
name?: string;
/** @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets */
/**
* @description Description
* @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets
*/
description?: string;
/**
* Format: uri
* @description Original image URL
* @example ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_thumbnail_image?: string;
Expand Down Expand Up @@ -523,6 +578,7 @@ export interface operations {
"application/json": {
/**
* Format: uri
* @description URI for this token's metadata JSON
* @example ipfs://ipfs/Qmf9yDYuPTrp8NRUFf8xxDd5Ud24Dx9uYMwMn8o8G2cWPW/12200.json
*/
token_uri?: string;
Expand All @@ -536,20 +592,26 @@ export interface operations {
sip: number;
/** @example Satoshi's Team #12200 */
name?: string;
/** @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets */
/**
* @description Description
* @example Heavy hitters, all-stars and legends of the game join forces to create a collection of unique varsity jackets
*/
description?: string;
/**
* Format: uri
* @description Original image URL
* @example ipfs://ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_image?: string;
/**
* Format: uri
* @description Cached image URL
* @example https://ipfs.io/ipfs/QmZMqhh2ztwuZ3Y8PyEp2z5auyH3TCm3nnr5ZfjjgDjd5q/12199.png
*/
cached_thumbnail_image?: string;
Expand Down