diff --git a/config/testnet/config.json b/config/testnet/config.json index 4560946b..a7c085b4 100644 --- a/config/testnet/config.json +++ b/config/testnet/config.json @@ -17,7 +17,7 @@ "blockTime": 10, "chainID": "01000000", "maxTransactionsSize": 15360, - "minimumCertifyHeight": 26689155 + "minimumCertifyHeight": 20520176 }, "network": { "version": "4.0", diff --git a/package.json b/package.json new file mode 100644 index 00000000..87b9cbcc --- /dev/null +++ b/package.json @@ -0,0 +1,112 @@ +{ + "name": "lisk-migrator", + "version": "2.0.0-rc.3", + "description": "A command-line tool for migrating the blockchain state to the latest protocol after a hard fork", + "author": "Lisk Foundation , lightcurve GmbH ", + "license": "Apache-2.0", + "keywords": [ + "lisk", + "blockchain" + ], + "homepage": "https://github.com/LiskHQ/lisk-migrator/tree/master/#readme", + "repository": { + "type": "git", + "url": "git+https://github.com/LiskHQ/lisk-migrator.git" + }, + "bugs": { + "url": "https://github.com/LiskHQ/lisk-migrator/issues" + }, + "engines": { + "node": ">=18.16 <=18", + "npm": ">=8.3.1" + }, + "main": "dist/index.js", + "bin": { + "lisk-migrator": "./bin/run" + }, + "scripts": { + "start": "ts-node src/index.js", + "format": "prettier --write '**/*'", + "lint": "eslint --ext .ts .", + "lint:fix": "eslint --fix --ext .ts .", + "test": "jest", + "test:coverage": "jest --config=jest.config.js --coverage=true --verbose --forceExit", + "test:ci": "jest --coverage=true --coverage-reporters=json --verbose", + "test:watch": "npm test -- --watch", + "copy-static-files": "copyfiles -u 1 src/**/*.sql ./dist", + "prebuild": "if test -d dist; then rm -r dist; fi; rm -f tsconfig.tsbuildinfo", + "build": "tsc && yarn copy-static-files", + "prepack": "oclif-dev manifest && oclif-dev readme --multi --dir=docs/commands", + "prepublishOnly": "yarn && yarn lint && yarn build" + }, + "oclif": { + "commands": "./dist/commands", + "bin": "lisk-migrator", + "plugins": [ + "@oclif/plugin-help" + ] + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "files": [ + "/bin", + "/npm-shrinkwrap.json", + "/oclif.manifest.json", + "/dist", + "/docs" + ], + "dependencies": { + "@liskhq/lisk-api-client": "5.2.0-rc.0", + "@liskhq/lisk-chain": "0.4.0-rc.0", + "@liskhq/lisk-codec": "0.4.0-rc.1", + "@liskhq/lisk-cryptography": "4.0.0-rc.1", + "@liskhq/lisk-db": "0.3.10", + "@liskhq/lisk-utils": "0.4.0-rc.0", + "@liskhq/lisk-validator": "0.8.0-rc.1", + "@oclif/command": "1.8.21", + "@oclif/config": "1.14.0", + "@oclif/errors": "1.2.2", + "@oclif/plugin-help": "2.2.3", + "cli-ux": "5.5.1", + "debug": "4.1.1", + "fs-extra": "11.1.0", + "lisk-framework": "0.11.0-rc.1", + "semver": "7.3.2", + "shelljs": "^0.8.5", + "tar": "6.1.13" + }, + "devDependencies": { + "@oclif/dev-cli": "1.22.2", + "@types/debug": "4.1.5", + "@types/ed2curve": "0.2.2", + "@types/fs-extra": "9.0.1", + "@types/jest": "27.0.2", + "@types/jest-when": "2.7.3", + "@types/lodash.clonedeep": "4.5.6", + "@types/node": "12.12.11", + "@types/semver": "7.3.3", + "@types/tar": "6.1.4", + "@typescript-eslint/eslint-plugin": "5.44.0", + "@typescript-eslint/parser": "5.44.0", + "copyfiles": "2.2.0", + "eslint": "8.28.0", + "eslint-config-lisk-base": "2.0.1", + "eslint-config-prettier": "6.11.0", + "eslint-plugin-import": "2.26.0", + "eslint-plugin-jest": "27.1.6", + "husky": "4.3.8", + "jest": "27.3.1", + "jest-extended": "1.1.0", + "jest-when": "3.4.1", + "lint-staged": "10.2.11", + "prettier": "2.0.5", + "source-map-support": "0.5.19", + "ts-jest": "27.0.7", + "ts-node": "10.9.1", + "tsconfig-paths": "3.9.0", + "typescript": "4.9.3" + } +} diff --git a/src/constants.ts b/src/constants.ts index 84af823b..4e35c556 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -31,7 +31,7 @@ export const DB_KEY_TRANSACTIONS_ID = 'transactions:id'; export const CHAIN_STATE_DELEGATE_VOTE_WEIGHTS = 'dpos:delegateVoteWeights'; export const CHAIN_STATE_UNREGISTERED_ADDRESSES = 'unregisteredAddresses'; -export const POS_INIT_ROUNDS = 60480; +export const POS_INIT_ROUNDS = 587; export const MAX_COMMISSION = 10000; export const NUMBER_ACTIVE_VALIDATORS = 101; export const NUMBER_STANDBY_VALIDATORS = 2;