Skip to content

Commit 83b83e1

Browse files
committed
feat(lazer): update js examples
1 parent 4641c36 commit 83b83e1

File tree

6 files changed

+701
-477
lines changed

6 files changed

+701
-477
lines changed

lazer/js/package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,28 @@
77
"scripts": {
88
"start": "node --loader ts-node/esm src/index.js",
99
"start:publish": "node --loader ts-node/esm src/publish.js",
10-
"test": "pnpm run test:format && pnpm run build:cjs && pnpm run build:esm",
10+
"start:verify_ecdsa_message": "node --loader ts-node/esm src/verify_ecdsa_message.js",
11+
"start:verify_ed25519_message": "node --loader ts-node/esm src/verify_ed25519_message.js",
12+
"test": "pnpm run test:format && pnpm run test:types && pnpm run build:cjs && pnpm run build:esm",
1113
"build:cjs": "tsc --project tsconfig.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
1214
"build:esm": "tsc --project tsconfig.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json",
1315
"fix:format": "prettier --write **/*.*",
14-
"test:format": "prettier --check **/*.*"
16+
"test:format": "prettier --check **/*.*",
17+
"test:types": "tsc"
1518
},
1619
"author": "",
1720
"license": "Apache-2.0",
1821
"dependencies": {
19-
"@pythnetwork/pyth-lazer-sdk": "^0.3.1",
20-
"@solana/web3.js": "^1.98.0"
22+
"@pythnetwork/pyth-lazer-sdk": "^2.0.0",
23+
"@pythnetwork/pyth-lazer-solana-sdk": "^0.1.2",
24+
"@solana/web3.js": "^1.98.0",
25+
"@coral-xyz/anchor": "^0.30.1",
26+
"yargs": "^17.7.2"
2127
},
2228
"devDependencies": {
2329
"@cprussin/tsconfig": "^3.0.1",
2430
"@types/node": "^22.10.0",
31+
"@types/yargs": "^17.0.33",
2532
"prettier": "^3.4.1",
2633
"ts-node": "^10.9.2",
2734
"typescript": "^5.7.2"

0 commit comments

Comments
 (0)