diff --git a/package.json b/package.json index 413890f04..0fccbcc3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interlay/interbtc-api", - "version": "2.0.2", + "version": "2.0.3", "description": "JavaScript library to interact with interBTC", "main": "build/src/index.js", "typings": "build/src/index.d.ts", @@ -55,7 +55,7 @@ "@interlay/esplora-btc-api": "0.4.0", "@interlay/interbtc-types": "1.12.0", "@interlay/monetary-js": "0.7.2", - "@polkadot/api": "9.11.1", + "@polkadot/api": "9.14.2", "big.js": "6.1.1", "bitcoin-core": "^3.0.0", "bitcoinjs-lib": "^5.2.0", @@ -65,7 +65,7 @@ "regtest-client": "^0.2.0" }, "devDependencies": { - "@polkadot/typegen": "9.11.1", + "@polkadot/typegen": "9.14.2", "@types/big.js": "6.1.2", "@types/chai": "^4.2.12", "@types/chai-as-promised": "^7.1.3", diff --git a/src/parachain/constants.ts b/src/parachain/constants.ts index 74b758a9b..27d13f02a 100644 --- a/src/parachain/constants.ts +++ b/src/parachain/constants.ts @@ -1,5 +1,6 @@ -import { BlockNumber, Moment, RuntimeDbWeight } from "@polkadot/types/interfaces/runtime"; +import { BlockNumber, Moment } from "@polkadot/types/interfaces/runtime"; import { ApiPromise } from "@polkadot/api"; +import { SpWeightsRuntimeDbWeight } from "@polkadot/types/lookup"; /** * @category BTC Bridge @@ -14,7 +15,7 @@ export interface ConstantsAPI { /** * @returns The weight of database operations that the runtime can invoke. */ - getSystemDbWeight(): RuntimeDbWeight; + getSystemDbWeight(): SpWeightsRuntimeDbWeight; /** * @returns 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 @@ -31,7 +32,7 @@ export class DefaultConstantsAPI implements ConstantsAPI { return this.api.consts.system.blockHashCount; } - getSystemDbWeight(): RuntimeDbWeight { + getSystemDbWeight(): SpWeightsRuntimeDbWeight { return this.api.consts.system.dbWeight; }