2022-05-17 09:42:04 -07:00
|
|
|
{
|
|
|
|
"name": "@switchboard-xyz/switchboard-v2",
|
2022-06-15 19:09:08 -07:00
|
|
|
"version": "0.0.111-beta.0",
|
2022-05-25 11:38:29 -07:00
|
|
|
"license": "MIT",
|
|
|
|
"author": "mitch@switchboard.xyz",
|
2022-05-17 09:42:04 -07:00
|
|
|
"description": "API wrapper for intergating with the Switchboardv2 program",
|
|
|
|
"keywords": [
|
|
|
|
"oracle",
|
|
|
|
"solana",
|
|
|
|
"Defi"
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/switchboard-xyz/switchboard-v2",
|
|
|
|
"directory": "libraries/ts"
|
|
|
|
},
|
2022-05-25 11:38:29 -07:00
|
|
|
"homepage": "https://docs.switchboard.xyz",
|
2022-05-17 09:42:04 -07:00
|
|
|
"files": [
|
2022-05-25 14:07:24 -07:00
|
|
|
"lib",
|
|
|
|
"src"
|
2022-05-17 09:42:04 -07:00
|
|
|
],
|
2022-06-16 09:48:26 -07:00
|
|
|
"main": "lib/cjs/index.js",
|
|
|
|
"module": "lib/esm/index.js",
|
|
|
|
"browser": "lib/cjs/index.js",
|
2022-05-27 13:07:44 -07:00
|
|
|
"types": "./lib/cjs/index.d.ts",
|
2022-06-16 09:48:26 -07:00
|
|
|
"exports": {
|
|
|
|
".": {
|
|
|
|
"import": "./lib/esm/index.js",
|
|
|
|
"require": "./lib/cjs/index.js"
|
|
|
|
}
|
|
|
|
},
|
2022-05-17 09:42:04 -07:00
|
|
|
"scripts": {
|
|
|
|
"docgen": "yarn build && npx typedoc",
|
2022-05-27 13:07:44 -07:00
|
|
|
"build:protos": "pbjs -t static-module -o src/protos/index.js ../protos/*.proto && pbts -o src/protos/index.d.ts src/protos/index.js",
|
2022-06-16 09:48:26 -07:00
|
|
|
"build:cjs:protos": "shx mkdir -p lib/cjs/protos; pbjs -t static-module -o lib/cjs/protos/index.js ../protos/*.proto && pbts -o lib/cjs/protos/index.d.ts lib/cjs/protos/index.js",
|
2022-06-13 12:38:57 -07:00
|
|
|
"build:esm:protos": "shx mkdir -p lib/esm/protos; pbjs -t static-module -w \"es6\" -o lib/esm/protos/index.js ../protos/*.proto && pbts -o lib/esm/protos/index.d.ts lib/esm/protos/index.js",
|
2022-05-27 13:07:44 -07:00
|
|
|
"build:cjs": "shx rm -rf lib/cjs && tsc -p tsconfig.cjs.json && shx echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json && yarn build:cjs:protos",
|
|
|
|
"build:esm": "shx rm -rf lib/esm && tsc -p tsconfig.esm.json && shx echo '{\"type\": \"module\"}' > lib/esm/package.json && yarn build:esm:protos",
|
|
|
|
"build": "shx rm -rf lib && yarn build:protos && yarn build:cjs && yarn build:esm && shx rm lib/*.tsbuildinfo",
|
2022-05-17 09:42:04 -07:00
|
|
|
"test": "mocha --extension ts --require ts-node/register -t 1000000 tests/",
|
2022-05-27 09:48:25 -07:00
|
|
|
"lint": "eslint --fix-dry-run --ext .ts src/**/*.ts",
|
2022-05-26 16:48:28 -07:00
|
|
|
"prepublish": "yarn build"
|
2022-05-17 09:42:04 -07:00
|
|
|
},
|
|
|
|
"peerDependencies": {
|
|
|
|
"@solana/spl-governance": "^0.0.34",
|
|
|
|
"@solana/spl-token": "^0.1.8",
|
2022-05-27 09:48:25 -07:00
|
|
|
"@solana/web3.js": "1.37.1"
|
2022-05-17 09:42:04 -07:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@project-serum/anchor": "^0.24.2",
|
|
|
|
"@solana/spl-governance": "^0.0.34",
|
|
|
|
"assert": "^2.0.0",
|
|
|
|
"big.js": "^6.1.1",
|
|
|
|
"bs58": "^4.0.1",
|
|
|
|
"chan": "^0.6.1",
|
|
|
|
"crypto-js": "^4.0.0",
|
|
|
|
"long": "^4.0.0",
|
2022-05-26 16:50:04 -07:00
|
|
|
"mocha": "^9.1.1",
|
2022-05-17 09:42:04 -07:00
|
|
|
"node-fetch": "^3.2.3",
|
2022-06-07 19:58:12 -07:00
|
|
|
"protobufjs": "^6.11.3"
|
2022-05-17 09:42:04 -07:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
|
|
|
"@types/big.js": "^6.0.2",
|
|
|
|
"@types/long": "^4.0.1",
|
|
|
|
"@types/mocha": "^9.0.0",
|
2022-05-27 09:48:25 -07:00
|
|
|
"@types/node": "^17.0.35",
|
2022-05-17 09:42:04 -07:00
|
|
|
"shx": "^0.3.4",
|
|
|
|
"typedoc": "^0.22.13",
|
2022-06-16 09:48:26 -07:00
|
|
|
"typescript": "^4.7"
|
2022-05-17 09:42:04 -07:00
|
|
|
}
|
|
|
|
}
|