Commits on Source (5)
...@@ -19,9 +19,9 @@ WORKDIR /home/nonroot/simnet_scripts ...@@ -19,9 +19,9 @@ WORKDIR /home/nonroot/simnet_scripts
COPY package.json package-lock.json tsconfig.json . COPY package.json package-lock.json tsconfig.json .
COPY src/ src/ COPY src/ src/
RUN npm install typescript RUN yarn add typescript
# This will generate dist dir which is needed in order for the script to run # This will generate dist dir which is needed in order for the script to run
RUN npm run build RUN npm run build
# place index.js in a place where gurke expects it # place index.js in a place where gurke expects it
RUN ln -s "$(pwd)"/dist/index.js /usr/local/bin/simnet_scripts RUN ln -s "$(pwd)"/dist/index.js /usr/local/bin/simnet_scripts
......
# simnet_scripts # Simnet_scripts
Scripts for running in Simnet projects Scripts for running in Simnet projects
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
"prettier": "prettier" "prettier": "prettier"
}, },
"dependencies": { "dependencies": {
"@polkadot/api": "^4.16.3-0", "@polkadot/api": "^4.17.2-13",
"@polkadot/keyring": "^6.10.1", "@polkadot/keyring": "^6.11.1",
"@polkadot/types": "^4.16.3-0", "@polkadot/types": "^4.17.2-13",
"@types/yargs": "15.0.5", "@types/yargs": "15.0.5",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"yargs": "15.4.1" "yargs": "15.4.1"
......
...@@ -43,7 +43,7 @@ async function showSystemEvents(api: ApiPromise) { ...@@ -43,7 +43,7 @@ async function showSystemEvents(api: ApiPromise) {
console.log( console.log(
`\t${event.section}:${event.method}:: (phase=${phase.toString()})` `\t${event.section}:${event.method}:: (phase=${phase.toString()})`
); );
console.log(`\t\t${event.meta.documentation.toString()}`); console.log(`\t\t${event.meta.docs.toString()}`);
event.data.forEach((data, index) => { event.data.forEach((data, index) => {
console.log(`\t\t\t${types[index].type}: ${data.toString()}`); console.log(`\t\t\t${types[index].type}: ${data.toString()}`);
......