@solidstate/abdk-math-extensions 1.1.0 → 1.2.0

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.
@@ -0,0 +1,5 @@
1
+ export declare const MIN_64x64: bigint;
2
+ export declare const MAX_64x64: bigint;
3
+ export declare const ONE_64x64: bigint;
4
+ export declare const E_64x64: bigint;
5
+ export declare const PI_64x64: bigint;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PI_64x64 = exports.E_64x64 = exports.ONE_64x64 = exports.MAX_64x64 = exports.MIN_64x64 = void 0;
4
+ exports.MIN_64x64 = -BigInt('0x80000000000000000000000000000000');
5
+ exports.MAX_64x64 = BigInt('0x7fffffffffffffffffffffffffffffff');
6
+ exports.ONE_64x64 = BigInt('0x10000000000000000');
7
+ exports.E_64x64 = BigInt('0x2b7e151628aed1975');
8
+ exports.PI_64x64 = BigInt('0x3243f6a8885a2f7a4');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstate/abdk-math-extensions",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Solidstate extensions for the ABDK Solidity libraries",
5
5
  "keywords": [
6
6
  "solidity",
@@ -21,34 +21,41 @@
21
21
  "repository": "github:solidstate-network/abdk-math-extensions",
22
22
  "license": "MIT",
23
23
  "author": "Nick Barry",
24
+ "exports": {
25
+ "./constants": "./dist/constants.js"
26
+ },
27
+ "types": "./dist/constants.d.ts",
24
28
  "files": [
25
- "contracts/*.sol"
29
+ "contracts/",
30
+ "dist/",
31
+ "src/"
26
32
  ],
27
33
  "devDependencies": {
28
- "@nomicfoundation/hardhat-chai-matchers": "^2.0.9",
29
- "@nomicfoundation/hardhat-ethers": "^3.0.9",
34
+ "@nomicfoundation/hardhat-chai-matchers": "^2.1.0",
35
+ "@nomicfoundation/hardhat-ethers": "^3.1.0",
30
36
  "@tsconfig/node22": "^22.0.2",
31
37
  "@typechain/ethers-v6": "^0.5.1",
32
38
  "@typechain/hardhat": "^9.1.0",
33
39
  "@types/chai": "^5.2.2",
34
40
  "@types/mocha": "^10.0.10",
35
- "@types/node": "^24.0.10",
41
+ "@types/node": "^24.2.1",
36
42
  "abdk-libraries-solidity": "^3.2.0",
37
43
  "chai": "^4.5.0",
38
- "dotenv": "^17.0.1",
44
+ "dotenv": "^17.2.1",
39
45
  "ethers": "^6.15.0",
40
- "hardhat": "^2.25.0",
46
+ "hardhat": "^2.26.3",
41
47
  "hardhat-exposed": "^0.3.19",
42
48
  "hardhat-gas-reporter": "^2.3.0",
43
49
  "hardhat-spdx-license-identifier": "^2.3.1",
44
50
  "husky": "^9.1.7",
45
- "lint-staged": "^16.1.2",
51
+ "lint-staged": "^16.1.5",
46
52
  "prettier": "^3.6.2",
47
- "prettier-plugin-packagejson": "^2.5.18",
48
- "prettier-plugin-solidity": "^2.0.0",
53
+ "prettier-plugin-packagejson": "^2.5.19",
54
+ "prettier-plugin-solidity": "^2.1.0",
49
55
  "solidity-coverage": "^0.8.16",
56
+ "tsx": "^4.20.4",
50
57
  "typechain": "^8.3.2",
51
- "typescript": "^5.8.3"
58
+ "typescript": "^5.9.2"
52
59
  },
53
60
  "peerDependencies": {
54
61
  "abdk-libraries-solidity": "^3.0.0"
@@ -57,6 +64,8 @@
57
64
  "access": "public"
58
65
  },
59
66
  "scripts": {
60
- "prettier": "prettier --write --ignore-path .gitignore ."
67
+ "build": "pnpm clean && tsc --build",
68
+ "clean": "rm -rf dist/",
69
+ "test": "hardhat test"
61
70
  }
62
71
  }
@@ -0,0 +1,5 @@
1
+ export const MIN_64x64 = -BigInt('0x80000000000000000000000000000000');
2
+ export const MAX_64x64 = BigInt('0x7fffffffffffffffffffffffffffffff');
3
+ export const ONE_64x64 = BigInt('0x10000000000000000');
4
+ export const E_64x64 = BigInt('0x2b7e151628aed1975');
5
+ export const PI_64x64 = BigInt('0x3243f6a8885a2f7a4');