Skip to content

Commit

Permalink
runtime 2270 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan authored Nov 9, 2024
1 parent c3df18a commit 83ff53e
Show file tree
Hide file tree
Showing 15 changed files with 1,074 additions and 8,190 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"publish": "yarn workspaces foreach -vit run publish:manual"
},
"devDependencies": {
"@polkadot/api": "^12",
"@polkadot/api": "^14",
"@types/eslint": "^8",
"@types/node": "^20.4.9",
"@typescript-eslint/eslint-plugin": "^6.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@acala-network/types": "6.1.3"
},
"peerDependencies": {
"@polkadot/api": "^12"
"@polkadot/api": "^14"
},
"devDependencies": {
"typescript": "^5.0.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@acala-network/types": "6.1.3"
},
"peerDependencies": {
"@polkadot/api": "^12"
"@polkadot/api": "^14"
},
"devDependencies": {
"typescript": "^5.0.4"
Expand Down
6 changes: 3 additions & 3 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"type": "module",
"scripts": {
"generate": "npm run load:meta && npm run generate:defs && npm run generate:meta",
"load:meta": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://localhost:9944 > metadata.json",
"load:meta": "curl -s -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' https://acala-rpc.aca-api.network > metadata.json",
"generate:defs": "node --experimental-specifier-resolution=node --loader ts-node/esm ../../node_modules/.bin/polkadot-types-from-defs --package @acala-network/types/interfaces --endpoint ./metadata.json --input ./src/interfaces",
"generate:meta": "node --experimental-specifier-resolution=node --loader ts-node/esm ../../node_modules/.bin/polkadot-types-from-chain --package @acala-network/types/interfaces --endpoint ./metadata.json --output ./src/interfaces",
"build": "rm -rf dist && tsc --build tsconfig.cjs.json --verbose -f && yarn postBuild",
Expand All @@ -34,10 +34,10 @@
}
},
"peerDependencies": {
"@polkadot/api": "^12"
"@polkadot/api": "^14"
},
"devDependencies": {
"@polkadot/typegen": "^12.2.1",
"@polkadot/typegen": "^14",
"@types/node": "^20.4.9",
"typescript": "^5.0.4"
}
Expand Down
Loading

0 comments on commit 83ff53e

Please sign in to comment.