Skip to content

Commit

Permalink
[js-legacy] Add record program js-legacy client (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto authored Jan 23, 2025
1 parent da783fe commit e183767
Show file tree
Hide file tree
Showing 13 changed files with 2,449 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clients/js-legacy/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extension": [
"ts"
],
"node-option": [
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
],
"timeout": 5000
}
3 changes: 3 additions & 0 deletions clients/js-legacy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @solana/record

A TypeScript library for interacting with the record program.
41 changes: 41 additions & 0 deletions clients/js-legacy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "@solana/spl-record",
"description": "Record Program JS API",
"version": "0.1.0",
"repository": "https://github.com/solana-program/record",
"license": "Apache-2.0",
"type": "module",
"sideEffects": false,
"engines": {
"node": ">=16"
},
"files": [
"src"
],
"scripts": {
"build": "tsc --build --verbose",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "eslint --fix .",
"format": "prettier --check src test",
"format:fix": "prettier --write src test",
"test": "start-server-and-test 'solana-test-validator --bpf-program recr1L3PCGKLbckBqMNcJhuuyU1zgo8nBhfLVsJNwr5 ../../target/deploy/spl_record.so --reset --quiet' http://127.0.0.1:8899/health 'mocha test'"
},
"peerDependencies": {
"@solana/web3.js": "^1.95.5"
},
"dependencies": {
"@solana/codecs-numbers": "^2.0.0"
},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/node": "^22.10.1",
"@types/mocha": "^10.0.10",
"chai": "^5.1.2",
"mocha": "^11.0.1",
"prettier": "^3.4.2",
"typescript": "^5.7.2",
"start-server-and-test": "^2.0.8",
"ts-node": "^10.9.2"
},
"prettier": "@solana/prettier-config-solana"
}
Loading

0 comments on commit e183767

Please sign in to comment.