timelock-sdk 0.0.51 → 0.0.52
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/client.cjs +6 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +172 -116
- package/dist/client.d.ts +172 -116
- package/dist/client.js +6 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-BPKijlT_.d.cts → index-D_lnxPOC.d.ts} +2 -2
- package/dist/{index-Dt4gerGl.d.ts → index-HQTA4ETi.d.cts} +2 -2
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -36,7 +36,8 @@ const GetActiveUserOptionsDocument = gql`
|
|
|
36
36
|
entryPrice
|
|
37
37
|
expiresAt
|
|
38
38
|
createdAt
|
|
39
|
-
|
|
39
|
+
premium
|
|
40
|
+
protocolFee
|
|
40
41
|
realizedPayout
|
|
41
42
|
marketAddr
|
|
42
43
|
liquiditiesAtOpen
|
|
@@ -70,7 +71,8 @@ const GetClosedUserOptionsDocument = gql`
|
|
|
70
71
|
entryPrice
|
|
71
72
|
expiresAt
|
|
72
73
|
createdAt
|
|
73
|
-
|
|
74
|
+
premium
|
|
75
|
+
protocolFee
|
|
74
76
|
realizedPayout
|
|
75
77
|
marketAddr
|
|
76
78
|
liquiditiesAtOpen
|
|
@@ -487,7 +489,8 @@ const useUserOptions = (user, active = false) => {
|
|
|
487
489
|
optionType: option.optionType,
|
|
488
490
|
createdAt: /* @__PURE__ */ new Date(Number(option.createdAt) * 1e3),
|
|
489
491
|
expiresAt: /* @__PURE__ */ new Date(Number(option.expiresAt) * 1e3),
|
|
490
|
-
|
|
492
|
+
premium: BigInt(option.premium),
|
|
493
|
+
protocolFee: BigInt(option.protocolFee),
|
|
491
494
|
realizedPayout: BigInt(option.realizedPayout),
|
|
492
495
|
liquiditiesAtOpen: option.liquiditiesAtOpen.map((l) => BigInt(l)),
|
|
493
496
|
liquiditiesCurrent: option.liquiditiesCurrent.map((l) => BigInt(l)),
|