feat: add @solisting/sdk package scaffold
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1 +1,6 @@
|
|||||||
|
approvedGitRepositories:
|
||||||
|
- "**"
|
||||||
|
|
||||||
|
enableScripts: true
|
||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|||||||
17
package.json
17
package.json
@@ -1,21 +1,16 @@
|
|||||||
{
|
{
|
||||||
"name": "solisting",
|
"name": "solisting",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
"private": true,
|
||||||
|
"workspaces": [
|
||||||
|
"sdk",
|
||||||
|
"app"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
|
"lint:fix": "prettier */*.js \"*/**/*{.js,.ts}\" -w",
|
||||||
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
|
"lint": "prettier */*.js \"*/**/*{.js,.ts}\" --check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
|
||||||
"@anchor-lang/core": "^1.0.2"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bn.js": "^5.2.0",
|
"prettier": "^3.8.3"
|
||||||
"@types/chai": "^5.2.3",
|
|
||||||
"@types/mocha": "^10.0.10",
|
|
||||||
"chai": "^6.2.2",
|
|
||||||
"mocha": "^11.7.6",
|
|
||||||
"prettier": "^3.8.3",
|
|
||||||
"ts-mocha": "^11.1.0",
|
|
||||||
"typescript": "^6.0.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
11
sdk/codama.solisting.json
Normal file
11
sdk/codama.solisting.json
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"idl": "./src/idl/solisting.json",
|
||||||
|
"scripts": {
|
||||||
|
"js": [
|
||||||
|
{
|
||||||
|
"from": "@codama/renderers-js",
|
||||||
|
"args": ["./src/generated/solisting"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
24
sdk/package.json
Normal file
24
sdk/package.json
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"name": "@solisting/sdk",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"main": "./src/index.ts",
|
||||||
|
"types": "./src/index.ts",
|
||||||
|
"scripts": {
|
||||||
|
"generate": "codama run js --config codama.solisting.json",
|
||||||
|
"test": "vitest run",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@descro/sdk": "file:../../../../../descro/sdk",
|
||||||
|
"@solana/kit": "^6.0.0",
|
||||||
|
"@solana/program-client-core": "^6.4.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@codama/nodes-from-anchor": "^1.4.1",
|
||||||
|
"@codama/renderers-js": "^2.2.0",
|
||||||
|
"codama": "^1.6.0",
|
||||||
|
"typescript": "^6.0.3",
|
||||||
|
"vitest": "^3.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
1428
sdk/src/idl/solisting.json
Normal file
1428
sdk/src/idl/solisting.json
Normal file
File diff suppressed because it is too large
Load Diff
12
sdk/tsconfig.json
Normal file
12
sdk/tsconfig.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2022",
|
||||||
|
"module": "NodeNext",
|
||||||
|
"moduleResolution": "NodeNext",
|
||||||
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"outDir": "./dist"
|
||||||
|
},
|
||||||
|
"include": ["src"],
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user