Skip to content

Commit

Permalink
chore(config): revert scripts to original endpoint
Browse files Browse the repository at this point in the history
When adding an instruction, the validity date parameter is now called `tradeDate`

BREAKING CHANGE: `validFrom` changed to `tradeDate` in `addInstruction` parameters and the
`InstructionDetails` interface
  • Loading branch information
monitz87 committed Jan 7, 2021
1 parent 0cff826 commit bff4d2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"license": "ISC",
"scripts": {
"start": "node scripts/generateTsconfigDev.js && cross-env webpack-dev-server --config=webpack.config.dev.js",
"generate:polkadot-types": "yarn generate:defs && yarn generate:meta && yarn generate:tags",
"generate:polkadot-types": "yarn fetch-definitions && yarn generate:defs && yarn generate:meta && yarn generate:tags",
"generate:middleware-types": "graphql-codegen -r dotenv/config",
"fetch-definitions": "node scripts/fetchDefinitions.js",
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package polymesh-types --input ./src/polkadot",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package polymesh-types --endpoint wss://dev.polymesh.live --output ./src/polkadot --strict",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package polymesh-types --endpoint wss://pme.polymath.network --output ./src/polkadot --strict",
"generate:tags": "node scripts/generateTxTags.js",
"test": "jest --coverage",
"build:ts": "ttsc -b",
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetchDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const definitionsDir = path.resolve('src', 'polkadot');
const typesDir = path.resolve(definitionsDir, 'polymesh');
const generatedDir = path.resolve('src', 'generated');

const urlPath = 'https://dev.polymesh.live/code';
const urlPath = 'https://pme.polymath.network/code';

rimraf.sync(typesDir);
fs.mkdirSync(typesDir);
Expand Down
2 changes: 1 addition & 1 deletion scripts/generateTxTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');

const websocket = new w3cwebsocket('wss://dev.polymesh.live');
const websocket = new w3cwebsocket('wss://pme.polymath.network');
websocket.onopen = () => {
websocket.send('{"id":"1","jsonrpc":"2.0","method":"state_getMetadata","params":[]}');
};
Expand Down

0 comments on commit bff4d2d

Please sign in to comment.