-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
30 lines (30 loc) · 1.24 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
{
"name": "@talismn/astar-types",
"packageManager": "yarn@4.1.0",
"type": "module",
"exports": {
".": {
"types": "./build/index.d.ts",
"require": "./build/index.js",
"default": "./build/index.js"
},
"./*": {
"types": "./build/*.d.ts",
"require": "./build/*.js",
"default": "./build/*.js"
}
},
"scripts": {
"build": "rm -rf build && tsc --build tsconfig.json",
"codegen": "yarn download:metadata &&yarn generate:defs && yarn generate:meta",
"download:metadata": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' https://shibuya-rpc.dwellir.com > metadata.json",
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package sample-polkadotjs-typegen/interfaces --input ./src/interfaces --endpoint ./metadata.json",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package sample-polkadotjs-typegen/interfaces --endpoint ./metadata.json --output ./src/interfaces",
"lint": "tsc --noEmit --pretty"
},
"devDependencies": {
"@polkadot/typegen": "^10.11.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}