Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ turbo.json @pyth-network/web-team
/lazer/contracts/solana @Riateche @ali-behjati
/lazer/publisher_sdk @darunrs @Riateche
/lazer/sdk/js @ali-behjati @keyvankhademi
/lazer/sdk/js-solana @ali-behjati @keyvankhademi
/lazer/sdk/rust @darunrs @Riateche

flake.lock @cprussin
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pnpm-lock.yaml
patches/
.mypy_cache/
.turbo/
target_chains/sui/vendor/
lazer/contracts/evm/lib/
Expand Down Expand Up @@ -38,3 +39,4 @@ target_chains/ton/sdk/js
contract_manager
lazer/contracts/solana
lazer/sdk/js
lazer/sdk/js-solana
4 changes: 3 additions & 1 deletion lazer/contracts/solana/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions lazer/sdk/js-solana/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Coverage directory used by tools like istanbul
coverage

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# dotenv environment variables file
.env

# Build directory
dist/

tsconfig.tsbuildinfo
7 changes: 7 additions & 0 deletions lazer/sdk/js-solana/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.vscode/
coverage/
dist/
doc/
doc*/
node_modules/
src/idl/
1 change: 1 addition & 0 deletions lazer/sdk/js-solana/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { base as default } from "@cprussin/eslint-config";
64 changes: 64 additions & 0 deletions lazer/sdk/js-solana/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "@pythnetwork/pyth-lazer-solana-sdk",
"version": "0.1.0",
"description": "Pyth Lazer Solana SDK",
"publishConfig": {
"access": "public"
},
"files": [
"dist/**/*"
],
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"scripts": {
"update-idl": "cd ../../contracts/solana && RUSTUP_TOOLCHAIN=nightly-2025-04-15 anchor build && cp target/types/pyth_lazer_solana_contract.ts ../../sdk/js-solana/src/idl/pyth-lazer-solana-contract.ts && cp target/idl/pyth_lazer_solana_contract.json ../../sdk/js-solana/src/idl/pyth-lazer-solana-contract.json",
"build:cjs": "swc src -d dist/cjs --strip-leading-paths --copy-files -C module.type=commonjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"build:esm": "swc src -d dist/esm --strip-leading-paths --copy-files -C jsc.experimental.keepImportAttributes=true && echo '{\"type\":\"module\"}' > dist/esm/package.json",
"fix:lint": "eslint --fix . --max-warnings 0",
"test:lint": "eslint . --max-warnings 0",
"test:types": "tsc",
"test:format": "prettier --check .",
"fix:format": "prettier --write .",
"build:docs": "typedoc --out docs/typedoc src"
},
"devDependencies": {
"@cprussin/eslint-config": "catalog:",
"@cprussin/tsconfig": "catalog:",
"@swc/cli": "catalog:",
"@swc/core": "catalog:",
"@types/node": "catalog:",
"eslint": "catalog:",
"prettier": "catalog:",
"typedoc": "catalog:",
"typescript": "catalog:"
},
"bugs": {
"url": "https://github.com/pyth-network/pyth-crosschain/issues"
},
"type": "module",
"homepage": "https://github.com/pyth-network/pyth-crosschain/tree/main/lazer/sdk/js-solana",
"repository": {
"type": "git",
"url": "https://github.com/pyth-network/pyth-crosschain",
"directory": "lazer/sdk/js-solana"
},
"keywords": [
"pyth",
"oracle"
],
"license": "Apache-2.0",
"dependencies": {
"@solana/buffer-layout": "catalog:",
"@solana/web3.js": "catalog:"
}
}
Loading
Loading