forked from interlay/interbtc-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
133 lines (133 loc) · 5.09 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "@interlay/interbtc-api",
"version": "2.6.0",
"description": "JavaScript library to interact with interBTC",
"main": "build/cjs/src/index.js",
"module": "build/esm/src/index.js",
"types": "build/types/src/index.d.ts",
"repository": "https://github.com/interlay/interbtc-api",
"license": "Apache-2.0",
"keywords": [
"Polkadot",
"Kusama",
"Bitcoin",
"Interlay",
"iBTC",
"Kintsugi",
"kBTC"
],
"scripts": {
"build": "run-s generate:defs generate:meta build:clean build:types build:esm build:cjs build:create-package-json",
"build:clean": "rm -fr build/*",
"build:esm": "tsc -p tsconfig.json",
"build:cjs": "tsc -p tsconfig-cjs.json",
"build:types": "tsc -p tsconfig-types.json",
"build:create-package-json": "sh ./create-build-package-json.sh",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:lint": "eslint --fix src --ext .ts",
"ci:test": "run-s build test:lint test:unit test:integration",
"ci:test:staging": "run-s build test:lint test:unit test:integration:staging",
"ci:test:release": "run-s build test:integration:release",
"ci:test-with-coverage": "nyc -r lcov -e .ts -x \"*.test.ts\" yarn ci:test",
"docs": "./generate_docs",
"generate:defs": "node --experimental-specifier-resolution=node --loader ts-node/esm node_modules/.bin/polkadot-types-from-defs --package @interlay/interbtc-api/interfaces --input ./src/interfaces --endpoint ./src/json/parachain.json",
"generate:meta": "node --experimental-specifier-resolution=node --loader ts-node/esm node_modules/.bin/polkadot-types-from-chain --package @interlay/interbtc-api/interfaces --endpoint ./src/json/parachain.json --output ./src/interfaces",
"hrmp-setup": "ts-node scripts/hrmp-setup",
"runtime-upgrade": "ts-node scripts/runtime-upgrade",
"xcm-cross-chain-transfer": "ts-node scripts/xcm-cross-chain-transfer",
"xcm-return-unknown-tokens": "ts-node scripts/xcm-return-unknown-tokens",
"democracy": "ts-node scripts/democracy",
"create-proposal": "ts-node scripts/create-proposal",
"undercollateralized-borrowers": "ts-node scripts/get-undercollateralized-borrowers",
"test": "run-s build test:*",
"test:lint": "eslint src --ext .ts",
"test:unit": "jest test/unit/*.test.ts test/unit/**/*.test.ts",
"test:integration": "run-s test:integration:staging",
"test:integration:staging": "run-s test:integration:setup test:integration:parallel test:integration:sequential",
"test:integration:setup": "jest test/integration/**/staging/setup/initialize.test.ts",
"test:integration:parallel": "jest test/integration/**/staging/*.test.ts",
"test:integration:sequential": "jest --runInBand test/integration/**/staging/sequential/*.test.ts",
"watch:build": "tsc -p tsconfig.json -w",
"watch:test": "jest --watch test/**/*.test.ts",
"update-metadata": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9933 > src/json/parachain.json",
"update-metadata-kintnet": "curl -H 'Content-Type: application/json' -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' https://api-dev-kintsugi.interlay.io/parachain > src/json/parachain.json"
},
"engines": {
"node": ">=11"
},
"engineStrict": true,
"dependencies": {
"@interlay/esplora-btc-api": "1.3.0",
"@interlay/monetary-js": "0.7.3",
"@polkadot/api": "10.9.1",
"big.js": "6.1.1",
"bitcoinjs-lib": "^5.2.0",
"bn.js": "4.12.0",
"cross-fetch": "^4.0.0",
"yargs": "^17.5.1"
},
"devDependencies": {
"@polkadot/typegen": "10.9.1",
"@types/big.js": "6.1.2",
"@types/jest": "^29.5.3",
"@types/node": "^20.5.7",
"@types/shelljs": "0.8.12",
"@types/yargs": "^17.0.10",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^5.59.7",
"bitcoin-core": "^3.0.0",
"cli-table3": "0.6.3",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"jest": "^29.6.2",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.1",
"shelljs": "0.8.5",
"ts-jest": "^29.1.1",
"ts-node": "10.9.1",
"typedoc": "^0.25.0",
"typedoc-plugin-markdown": "^3.16.0",
"typescript": "5.2.2"
},
"resolutions": {
"bn.js": "4.12.0"
},
"files": [
"build",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"prettier": {
"singleQuote": false,
"tabWidth": 4
},
"jest": {
"moduleNameMapper": {
"^(\\.\\.?\\/.+)\\.js$": "$1"
},
"testPathIgnorePatterns": [
"<rootDir>/src"
],
"preset": "ts-jest",
"testEnvironment": "node",
"modulePathIgnorePatterns": [
"<rootDir>/build/"
],
"collectCoverageFrom": [
"<rootDir>/src/**/*.ts*"
],
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/build/",
"<rootDir>/src/interfaces/"
],
"setupFilesAfterEnv": [
"<rootDir>/test/utils/jestSetupFileAfterEnv.ts"
],
"testTimeout": 30000
}
}