@morpho-org/morpho-test 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/lib/hardhat.js +3 -26
  2. package/package.json +8 -20
package/lib/hardhat.js CHANGED
@@ -1,27 +1,4 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
4
  };
@@ -30,7 +7,7 @@ exports.setUp = exports.resetAfterEach = exports.reset = exports.mine = void 0;
30
7
  const sinon_1 = __importDefault(require("sinon"));
31
8
  const hardhat_network_helpers_1 = require("@nomicfoundation/hardhat-network-helpers");
32
9
  try {
33
- Promise.resolve().then(() => __importStar(require("@nomicfoundation/hardhat-ethers")));
10
+ import("@nomicfoundation/hardhat-ethers");
34
11
  const { ethers } = require("hardhat");
35
12
  Object.defineProperty(ethers.provider, "_networkName", {
36
13
  value: "mainnet",
@@ -48,8 +25,8 @@ const reset = ({ url, blockNumber, } = {}) => {
48
25
  if (url === null)
49
26
  return (0, hardhat_network_helpers_1.reset)();
50
27
  const { config } = require("hardhat");
51
- url ?? (url = config.networks.hardhat.forking?.url);
52
- blockNumber ?? (blockNumber = config.networks.hardhat.forking?.blockNumber);
28
+ url ??= config.networks.hardhat.forking?.url;
29
+ blockNumber ??= config.networks.hardhat.forking?.blockNumber;
53
30
  return (0, hardhat_network_helpers_1.reset)(url, blockNumber);
54
31
  };
55
32
  exports.reset = reset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morpho-org/morpho-test",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"
@@ -9,11 +9,8 @@
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "prepublish": "yarn build",
12
- "add:morpho-test": "yarn add",
13
12
  "build": "tsc --build tsconfig.build.json",
14
- "build:morpho-test": "yarn build",
15
- "test": "jest",
16
- "test:morpho-test": "yarn test"
13
+ "test": "jest"
17
14
  },
18
15
  "dependencies": {
19
16
  "@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
@@ -23,13 +20,12 @@
23
20
  "chai-as-promised": "^7.1.2",
24
21
  "chai-exclude": "^2.1.0",
25
22
  "ethers": "^6.12.1",
26
- "ethers-types": "^3.16.0",
27
- "hardhat": "^2.20.1",
28
- "hardhat-deal": "^3.0.4",
29
- "hardhat-tracer": "^2.8.2",
23
+ "ethers-types": "^3.17.1",
24
+ "hardhat": "2.20.1",
25
+ "hardhat-deal": "^3.1.0",
26
+ "hardhat-tracer": "^3.0.1",
30
27
  "jest": "^29.6.2",
31
- "rxjs": "^7.8.1",
32
- "sinon": "^17.0.1",
28
+ "sinon": "^18.0.0",
33
29
  "sinon-chai": "^3.7.0"
34
30
  },
35
31
  "devDependencies": {
@@ -46,14 +42,6 @@
46
42
  "ts-node": "^10.9.2",
47
43
  "typescript": "^5.4.5"
48
44
  },
49
- "peerDependencies": {
50
- "rxjs": "^7.8.1"
51
- },
52
- "peerDependenciesMeta": {
53
- "rxjs": {
54
- "optional": true
55
- }
56
- },
57
45
  "publishConfig": {
58
46
  "access": "public"
59
47
  },
@@ -76,5 +64,5 @@
76
64
  ],
77
65
  "preset": "ts-jest"
78
66
  },
79
- "gitHead": "e3de20633be74fc506bd0a3a8d0115bcc0744d70"
67
+ "gitHead": "cc64e88993808eb357c59e27501e4d05bd868e5b"
80
68
  }