Skip to content

Commit 6eda93d

Browse files
committed
feat: auto-generated client demo
1 parent 780c84e commit 6eda93d

38 files changed

+3132
-14
lines changed

.vscode/launch.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@
7878
"console": "integratedTerminal",
7979
"preLaunchTask": "stacks-node:deploy-dev",
8080
"postDebugTask": "stacks-node:stop-dev",
81-
}
81+
},
82+
{
83+
"type": "node",
84+
"request": "launch",
85+
"name": "client-lib test",
86+
"runtimeArgs": ["-r", "ts-node/register/transpile-only", "-r", "tsconfig-paths/register"],
87+
"cwd": "${workspaceFolder}/docs/client",
88+
"args": ["${workspaceFolder}/docs/client/src/test.ts"],
89+
"outputCapture": "std",
90+
"internalConsoleOptions": "openOnSessionStart",
91+
"env": {
92+
"NODE_ENV": "development",
93+
"TS_NODE_SKIP_IGNORE": "true"
94+
}
95+
},
8296
]
8397
}

docs/api/core-node/get-contract-interface.schema.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,37 @@
77
"properties": {
88
"functions": {
99
"type": "array",
10+
"items": {
11+
"type": "object"
12+
},
1013
"description": "List of defined methods"
1114
},
1215
"variables": {
1316
"type": "array",
17+
"items": {
18+
"type": "object"
19+
},
1420
"description": "List of defined variables"
1521
},
1622
"maps": {
1723
"type": "array",
24+
"items": {
25+
"type": "object"
26+
},
1827
"description": "List of defined data-maps"
1928
},
2029
"fungible_tokens": {
2130
"type": "array",
31+
"items": {
32+
"type": "object"
33+
},
2234
"description": "List of fungible tokens in the contract"
2335
},
2436
"non_fungible_tokens": {
2537
"type": "array",
38+
"items": {
39+
"type": "object"
40+
},
2641
"description": "List of non-fungible tokens in the contract"
2742
}
2843
}

docs/client/package-lock.json

Lines changed: 183 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/client/package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "@blockstack/client",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "rimraf ./lib && tsc",
8+
"test": "ts-node src/test.ts"
9+
},
10+
"keywords": [],
11+
"author": "",
12+
"license": "ISC",
13+
"devDependencies": {
14+
"rimraf": "^3.0.2",
15+
"ts-node": "^8.10.2",
16+
"typescript": "^3.9.7"
17+
},
18+
"dependencies": {
19+
"cross-fetch": "^3.0.5"
20+
}
21+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.3.1

0 commit comments

Comments
 (0)