UNPKG

@saberhq/snapshots

Version:

The TypeScript SDK for the Saber Voting Escrow Snapshot system.

100 lines 3.15 kB
{ "name": "@saberhq/snapshots", "version": "0.2.8", "description": "The TypeScript SDK for the Saber Voting Escrow Snapshot system.", "keywords": [ "solana", "tribeca", "saber", "governance" ], "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "repository": "git@github.com:saber-hq/snapshots.git", "author": "Saber Team <team@saber.so>", "bugs": { "url": "https://github.com/saber-hq/snapshots/issues", "email": "team@saber.so" }, "homepage": "https://saber.so", "license": "AGPL-3.0", "scripts": { "build": "rm -fr dist/ && tsc -P tsconfig.build.json && tsc -P tsconfig.esm.json", "clean": "rm -fr dist/", "idl:generate": "./scripts/parse-idls.sh && ./scripts/generate-idl-types.sh", "idl:generate:nolint": "./scripts/parse-idls.sh && RUN_ESLINT=none ./scripts/generate-idl-types.sh", "typecheck": "tsc", "lint": "eslint . --cache", "lint:ci": "eslint . --max-warnings=0", "test:e2e": "anchor test --skip-build 'tests/**/*.ts'", "docs:generate": "typedoc --excludePrivate --includeVersion --out site/ts/ src/index.ts", "prepare": "husky install", "cargo-readme": "cd programs/snapshots/ && cargo readme > README.md && cd ../../ && rm README.md && cp programs/snapshots/README.md README.md" }, "devDependencies": { "@gokiprotocol/client": "^0.10.3", "@project-serum/anchor": "^0.24.2", "@rushstack/eslint-patch": "^1.1.3", "@saberhq/anchor-contrib": "^1.12.61", "@saberhq/chai-solana": "^1.12.61", "@saberhq/eslint-config": "^1.12.61", "@saberhq/solana-contrib": "^1.12.61", "@saberhq/token-utils": "^1.12.61", "@saberhq/tsconfig": "^1.12.61", "@solana/web3.js": "^1.39.1", "@tribecahq/tribeca-sdk": "^0.5.6", "@types/bn.js": "^5.1.0", "@types/chai": "^4.3.1", "@types/lodash": "^4.14.181", "@types/mocha": "^9.1.0", "@types/node": "^17.0.24", "@types/prettier": "^2.6.0", "@yarnpkg/doctor": "^4.0.0-rc.2", "bn.js": "^5.2.0", "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-import-resolver-node": "^0.3.6", "eslint-plugin-import": "^2.26.0", "husky": "^7.0.4", "jsbi": "^4.2.1", "lint-staged": "^12.3.8", "lodash": "^4.17.21", "mocha": "^9.2.2", "prettier": "^2.6.2", "ts-node": "^10.7.0", "typedoc": "^0.22.15", "typescript": "^4.6.3" }, "peerDependencies": { "@project-serum/anchor": ">=0.19", "@saberhq/anchor-contrib": "^1.12", "@saberhq/solana-contrib": "^1.12", "@saberhq/token-utils": "^1.12", "@solana/web3.js": "^1.29.2", "@tribecahq/tribeca-sdk": "^0.3.1", "bn.js": "^5.2.0" }, "resolutions": { "bn.js": "^5.2.0", "@types/bn.js": "^5.1.0", "chai": "=4.3.4" }, "publishConfig": { "access": "public" }, "files": [ "dist/", "src/" ], "lint-staged": { "*.{ts,tsx}": "eslint --cache --fix", "*.{js,json,jsx,html,css,md}": "prettier --write" }, "dependencies": { "@solana/buffer-layout": "^4.0.0", "superstruct": "^0.15.4", "tiny-invariant": "^1.2.0", "tslib": "^2.3.1" }, "packageManager": "yarn@3.2.0" }