@dedot/api 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -66,6 +66,7 @@ class CheckMortality extends SignedExtension_js_1.SignedExtension {
66
66
  #calculateMortalLength() {
67
67
  return (0, utils_1.bnMin)(BigInt(this.#getConst('system', 'blockHashCount') || exports.FALLBACK_MAX_HASH_COUNT), BigInt(exports.MORTAL_PERIOD) /
68
68
  BigInt(this.#getConst('babe', 'expectedBlockTime') ||
69
+ this.#getConst('aura', 'slotDuration') ||
69
70
  BigInt(this.#getConst('timestamp', 'minimumPeriod') || 0) * 2n ||
70
71
  exports.FALLBACK_PERIOD) +
71
72
  BigInt(exports.MAX_FINALITY_LAG));
@@ -63,6 +63,7 @@ export class CheckMortality extends SignedExtension {
63
63
  #calculateMortalLength() {
64
64
  return bnMin(BigInt(this.#getConst('system', 'blockHashCount') || FALLBACK_MAX_HASH_COUNT), BigInt(MORTAL_PERIOD) /
65
65
  BigInt(this.#getConst('babe', 'expectedBlockTime') ||
66
+ this.#getConst('aura', 'slotDuration') ||
66
67
  BigInt(this.#getConst('timestamp', 'minimumPeriod') || 0) * 2n ||
67
68
  FALLBACK_PERIOD) +
68
69
  BigInt(MAX_FINALITY_LAG));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/api",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "A delightful JavaScript/TypeScript client for Polkadot & Substrate",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "homepage": "https://github.com/dedotdev/dedot/tree/main/packages/api",
@@ -13,13 +13,13 @@
13
13
  "type": "module",
14
14
  "sideEffects": false,
15
15
  "dependencies": {
16
- "@dedot/codecs": "0.6.0",
17
- "@dedot/providers": "0.6.0",
18
- "@dedot/runtime-specs": "0.6.0",
19
- "@dedot/shape": "0.6.0",
20
- "@dedot/storage": "0.6.0",
21
- "@dedot/types": "0.6.0",
22
- "@dedot/utils": "0.6.0"
16
+ "@dedot/codecs": "0.6.1",
17
+ "@dedot/providers": "0.6.1",
18
+ "@dedot/runtime-specs": "0.6.1",
19
+ "@dedot/shape": "0.6.1",
20
+ "@dedot/storage": "0.6.1",
21
+ "@dedot/types": "0.6.1",
22
+ "@dedot/utils": "0.6.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json",
@@ -44,11 +44,14 @@
44
44
  "access": "public",
45
45
  "directory": "dist"
46
46
  },
47
- "license": "Apache-2.0",
48
47
  "devDependencies": {
49
- "@polkadot/types": "^14.0.1"
48
+ "@polkadot/types": "~14.0.1"
49
+ },
50
+ "engines": {
51
+ "node": ">=18"
50
52
  },
51
- "gitHead": "80e64c7da483c4f5b757f6af7259aa4fdd5397fc",
53
+ "license": "Apache-2.0",
54
+ "gitHead": "90f161f221c4c4479c92f016591c601614594dd9",
52
55
  "module": "./index.js",
53
56
  "types": "./index.d.ts"
54
57
  }