@signals-protocol/v1-sdk 1.2.0 → 1.3.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.
package/dist/fees.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BigNumberish } from "ethers";
1
+ type BigNumberish = string | number | bigint;
2
2
  export type TradeSide = "BUY" | "SELL";
3
3
  export type Bytes32Like = `0x${string}`;
4
4
  interface FeeQuoteParams {
package/dist/fees.js CHANGED
@@ -9,13 +9,14 @@ exports.resolveFeePolicyWithMetadata = resolveFeePolicyWithMetadata;
9
9
  exports.encodePercentageFeePolicyDescriptor = encodePercentageFeePolicyDescriptor;
10
10
  exports.quoteOpenFee = quoteOpenFee;
11
11
  exports.quoteSellFee = quoteSellFee;
12
- const ethers_1 = require("ethers");
13
12
  const ZERO_CONTEXT = `0x${"00".repeat(32)}`;
14
13
  const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
15
14
  const WAD = 1000000000000000000n;
16
15
  const BPS_DENOM = 10000n;
17
16
  function toBigInt(value) {
18
- return (0, ethers_1.toBigInt)(value);
17
+ if (typeof value === "bigint")
18
+ return value;
19
+ return BigInt(value);
19
20
  }
20
21
  function normalizeContext(context) {
21
22
  return (context ?? ZERO_CONTEXT);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signals-protocol/v1-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Signals v1 SDK for CLMSR market calculations and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -44,8 +44,7 @@
44
44
  "typescript": "^5.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "big.js": "^6.2.1",
48
- "ethers": "^6.14.3"
47
+ "big.js": "^6.2.1"
49
48
  },
50
49
  "files": [
51
50
  "dist"