Skip to content

Commit

Permalink
Merge pull request #71 from logion-network/feature/upgrade-deps
Browse files Browse the repository at this point in the history
chore: upgrade dependencies.
  • Loading branch information
benoitdevos authored Jan 18, 2022
2 parents 4f445fd + fb62691 commit a97739f
Show file tree
Hide file tree
Showing 25 changed files with 5,974 additions and 1,456 deletions.
67 changes: 37 additions & 30 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,65 +14,72 @@
"start": "yarn run build && NODE_ENV=development node dist/app.js",
"serve": "tsc-watch --p ./tsconfig.app.json --onSuccess \"env NODE_ENV=development node ./dist/app.js\"",
"test": "yarn run unit-test && yarn run integration-test",
"unit-test": "jasmine-ts JASMINE_CONFIG_PATH=spec/support/jasmine.json",
"integration-test": "yarn run setup-test-db && jasmine-ts JASMINE_CONFIG_PATH=spec/support/jasmine-integration.json ; yarn run teardown-test-db",
"unit-test": "jasmine --config=spec/support/jasmine.json",
"integration-test": "yarn run setup-test-db && jasmine --config=spec/support/jasmine-integration.json ; yarn run teardown-test-db",
"setup-test-db": "docker run -d --rm --name logion-test-db -e POSTGRES_PASSWORD=secret -p 5432:5432 postgres:12",
"teardown-test-db": "docker stop logion-test-db",
"coverage-unit": "nyc yarn run unit-test",
"coverage": "nyc yarn run test",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js --config db-tools/ormconfig.ts"
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js --config db-tools/ormconfig.ts",
"generate:defs-meta": "yarn generate:defs && yarn generate:meta",
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --input ./src/logion/lib/polkadot/interfaces/ --package ../interfaces",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --endpoint ws://localhost:9944 --output src/logion/lib/polkadot/interfaces/ --package ../interfaces"
},
"dependencies": {
"@polkadot/api": "^5.4.1",
"@polkadot/api": "^7.4.1",
"@substrate/calc": "^0.2.2",
"ansi-regex": "^5.0.1",
"body-parser": "^1.19.0",
"bson": "^4.4.1",
"ansi-regex": "^6.0.1",
"body-parser": "^1.19.1",
"bson": "^4.6.1",
"cors": "^2.8.5",
"dinoloop": "^2.4.0",
"express": "^4.17.1",
"express": "^4.17.2",
"express-fileupload": "^1.2.1",
"express-oas-generator": "^1.0.39",
"inversify": "^5.1.1",
"express-oas-generator": "^1.0.41",
"inversify": "^6.0.1",
"jsonwebtoken": "^8.5.1",
"moment": "^2.29.1",
"mongoose": "^5.13.9",
"mongoose-to-swagger": "^1.3.0",
"openapi-typescript": "^4.0.2",
"mongoose": "^6.1.6",
"mongoose-to-swagger": "^1.4.0",
"node-fetch": "3.1.1",
"openapi-typescript": "^5.1.0",
"pg": "^8.7.1",
"source-map-support": "^0.5.10",
"swagger-ui-express": "^4.1.6",
"toad-scheduler": "^1.5.0",
"typeorm": "^0.2.36",
"source-map-support": "^0.5.21",
"swagger-ui-express": "^4.3.0",
"toad-scheduler": "^1.6.0",
"typeorm": "^0.2.41",
"uuid": "^8.3.2"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@polkadot/typegen": "^7.4.1",
"@tsconfig/node14": "^1.0.1",
"@types/cors": "^2.8.12",
"@types/express": "^4.17.13",
"@types/express-fileupload": "^1.1.7",
"@types/jasmine": "^3.8.2",
"@types/jsonwebtoken": "^8.5.5",
"@types/node": "^16.4.13",
"@types/express-fileupload": "^1.2.2",
"@types/jasmine": "^3.10.3",
"@types/jsonwebtoken": "^8.5.8",
"@types/node": "^17.0.9",
"@types/supertest": "^2.0.11",
"@types/swagger-ui-express": "^4.1.3",
"@types/uuid": "^8.3.1",
"jasmine": "^3.8.0",
"@types/uuid": "^8.3.4",
"jasmine": "^4.0.2",
"jasmine-spec-reporter": "^7.0.0",
"jasmine-ts": "^0.4.0",
"moq.ts": "^7.3.4",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"supertest": "^6.1.5",
"ts-node": "^10.2.0",
"tsc-watch": "^4.4.0",
"typescript": "^4.0.0"
"supertest": "^6.2.1",
"ts-node": "^10.4.0",
"tsc-watch": "^4.6.0",
"typescript": "^4.5.4"
},
"engines": {
"node": ">=14"
},
"workspaces": [
"calc/pkg"
]
],
"resolutions": {
"node-fetch": "2.6.7"
}
}
2 changes: 1 addition & 1 deletion spec/support/jasmine-integration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"**/*.spec.ts"
],
"helpers": [
"../helpers/helper.ts"
"../../test/helpers/typescript-helper.js"
],
"stopSpecOnExpectationFailure": false,
"reporters": [
Expand Down
2 changes: 1 addition & 1 deletion spec/support/jasmine.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"**/*.spec.ts"
],
"helpers": [
"../helpers/helper.ts"
"../../test/helpers/typescript-helper.js"
],
"stopSpecOnExpectationFailure": false,
"reporters": [
Expand Down
171 changes: 171 additions & 0 deletions src/logion/lib/polkadot/interfaces/augment-api-consts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
// Auto-generated via `yarn polkadot-types-from-chain`, do not edit
/* eslint-disable */

import type { ApiTypes } from '@polkadot/api-base/types';
import type { Vec, u16, u32, u8 } from '@polkadot/types-codec';
import type { Codec } from '@polkadot/types-codec/types';
import type { Balance, BalanceOf, BlockNumber, Moment, RuntimeDbWeight } from '@polkadot/types/interfaces/runtime';
import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
import type { WeightToFeeCoefficient } from '@polkadot/types/interfaces/support';
import type { BlockLength, BlockWeights } from '@polkadot/types/interfaces/system';

declare module '@polkadot/api-base/types/consts' {
export interface AugmentedConsts<ApiType extends ApiTypes> {
balances: {
/**
* The minimum amount required to keep an account open.
**/
existentialDeposit: Balance & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
multisig: {
/**
* The base amount of currency needed to reserve for creating a multisig execution or to store
* a dispatch call for later.
**/
depositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* The amount of currency needed per unit threshold when creating a multisig execution.
**/
depositFactor: BalanceOf & AugmentedConst<ApiType>;
/**
* The maximum amount of signatories allowed for a given multisig.
**/
maxSignatories: u16 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
nodeAuthorization: {
/**
* The maximum length in bytes of PeerId
**/
maxPeerIdLength: u32 & AugmentedConst<ApiType>;
/**
* The maximum number of authorized well known nodes
**/
maxWellKnownNodes: u32 & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
proxy: {
/**
* `AnnouncementDepositBase` metadata shadow.
**/
announcementDepositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* `AnnouncementDepositFactor` metadata shadow.
**/
announcementDepositFactor: BalanceOf & AugmentedConst<ApiType>;
/**
* `MaxPending` metadata shadow.
**/
maxPending: u32 & AugmentedConst<ApiType>;
/**
* The maximum amount of proxies allowed for a single account.
**/
maxProxies: u16 & AugmentedConst<ApiType>;
/**
* The base amount of currency needed to reserve for creating a proxy.
**/
proxyDepositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* The amount of currency needed per proxy added.
**/
proxyDepositFactor: BalanceOf & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
recovery: {
/**
* The base amount of currency needed to reserve for creating a recovery configuration.
**/
configDepositBase: BalanceOf & AugmentedConst<ApiType>;
/**
* The amount of currency needed per additional user when creating a recovery configuration.
**/
friendDepositFactor: BalanceOf & AugmentedConst<ApiType>;
/**
* The maximum amount of friends allowed in a recovery configuration.
**/
maxFriends: u16 & AugmentedConst<ApiType>;
/**
* The base amount of currency needed to reserve for starting a recovery.
**/
recoveryDeposit: BalanceOf & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
system: {
/**
* Maximum number of block number to block hash mappings to keep (oldest pruned first).
**/
blockHashCount: BlockNumber & AugmentedConst<ApiType>;
/**
* The maximum length of a block (in bytes).
**/
blockLength: BlockLength & AugmentedConst<ApiType>;
/**
* Block & extrinsics weights: base values and limits.
**/
blockWeights: BlockWeights & AugmentedConst<ApiType>;
/**
* The weight of runtime database operations the runtime can invoke.
**/
dbWeight: RuntimeDbWeight & AugmentedConst<ApiType>;
/**
* The designated SS85 prefix of this chain.
*
* This replaces the "ss58Format" property declared in the chain spec. Reason is
* that the runtime should know about the prefix in order to make use of it as
* an identifier of the chain.
**/
ss58Prefix: u8 & AugmentedConst<ApiType>;
/**
* Get the chain's current version.
**/
version: RuntimeVersion & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
timestamp: {
/**
* The minimum period between blocks. Beware that this is different to the *expected* period
* that the block production apparatus provides. Your chosen consensus system will generally
* work with this to determine a sensible block time. e.g. For Aura, it will be double this
* period on default settings.
**/
minimumPeriod: Moment & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
transactionPayment: {
/**
* The fee to be paid for making a transaction; the per-byte portion.
**/
transactionByteFee: BalanceOf & AugmentedConst<ApiType>;
/**
* The polynomial that is applied in order to derive fee from weight.
**/
weightToFee: Vec<WeightToFeeCoefficient> & AugmentedConst<ApiType>;
/**
* Generic const
**/
[key: string]: Codec;
};
} // AugmentedConsts
} // declare module
Loading

0 comments on commit a97739f

Please sign in to comment.