Skip to content

Commit 5dde9c2

Browse files
authored
Merge pull request #141 from hirosystems/develop
release develop into master
2 parents 8fbdad8 + f677cf2 commit 5dde9c2

File tree

26 files changed

+13118
-95
lines changed

26 files changed

+13118
-95
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
ecmaVersion: 2020,
1010
sourceType: 'module',
1111
},
12-
ignorePatterns: ['*.config.js', 'config/*', '*.mjs', 'tests/*.js'],
12+
ignorePatterns: ['*.config.js', 'config/*', '*.mjs', 'tests/*.js', 'client/*'],
1313
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'prettier'],
1414
rules: {
1515
'prettier/prettier': 'error',

.github/workflows/new-issues.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Add issues to API project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add issue to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/add-to-project@main
14+
with:
15+
project-url: https://github.com/orgs/hirosystems/projects/11
16+
github-token: ${{ secrets.GH_TOKEN }}

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ Stacks blockchain and exposes it via JSON REST API endpoints.
77

88
* [Features](#features)
99
* [API reference](#api-reference)
10+
* [Client library](#client-library)
1011
* [Quick start](#quick-start)
1112
* [System requirements](#system-requirements)
1213
* [Running the service](#running-the-service)
14+
* [Run modes](#run-modes)
15+
* [Stopping the service](#stopping-the-service)
1316
* [Using an image cache service](#using-an-image-cache-service)
1417
* [Service architecture](#service-architecture)
1518
* [External](#external)
@@ -46,6 +49,11 @@ Stacks blockchain and exposes it via JSON REST API endpoints.
4649

4750
See the [Token Metadata API Reference](https://docs.hiro.so/metadata/) for more information.
4851

52+
## Client library
53+
54+
A TypeScript client library is available for consuming the API. See [the official
55+
package](https://www.npmjs.com/package/@hirosystems/token-metadata-api-client) for more information.
56+
4957
## Quick start
5058

5159
### System requirements

client/typescript.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"supportsES6": false,
3+
"npmName": "@hirosystems/token-metadata-api-client",
4+
"npmVersion": "1.0.0"
5+
}

client/typescript/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
wwwroot/*.js
2+
node_modules
3+
typings
4+
dist
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package.json
2+
package-lock.json
3+
README.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.41

client/typescript/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## @hirosystems/token-metadata-api-client
2+
3+
This is a client library for the [Token Metadata API](https://github.com/hirosystems/token-metadata-api).
4+
5+
### Installation
6+
7+
```
8+
npm install @hirosystems/token-metadata-api-client
9+
```
10+
11+
### Example
12+
13+
```typescript
14+
import { Configuration, TokensApi } from "@hirosystems/token-metadata-api-client";
15+
16+
const config: Configuration = {}
17+
const api = new TokensApi(config);
18+
const result = await api.getFtMetadata('SP1H1733V5MZ3SZ9XRW9FKYGEZT0JDGEB8Y634C7R.miamicoin-token-v2');
19+
```

0 commit comments

Comments
 (0)