timelock-sdk 0.0.35 → 0.0.36
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 +4 -2
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +165 -109
- package/dist/client.d.ts +166 -110
- package/dist/client.js +4 -2
- package/dist/client.js.map +1 -1
- package/dist/{index-CRhFaRiq.d.ts → index-B20z73_3.d.ts} +92 -92
- package/dist/package.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -20,6 +20,7 @@ const GetActiveUserOptionsDocument = gql`
|
|
|
20
20
|
limit: 1000
|
|
21
21
|
) {
|
|
22
22
|
id
|
|
23
|
+
optionId
|
|
23
24
|
ownerAddr
|
|
24
25
|
exerciseEvents {
|
|
25
26
|
transactionHash
|
|
@@ -53,6 +54,7 @@ const GetClosedUserOptionsDocument = gql`
|
|
|
53
54
|
limit: 1000
|
|
54
55
|
) {
|
|
55
56
|
id
|
|
57
|
+
optionId
|
|
56
58
|
ownerAddr
|
|
57
59
|
exerciseEvents {
|
|
58
60
|
transactionHash
|
|
@@ -224,7 +226,7 @@ const useExerciseOption = (marketAddr) => {
|
|
|
224
226
|
abi: optionsMarketAbi,
|
|
225
227
|
functionName: "exerciseOption",
|
|
226
228
|
args: [
|
|
227
|
-
option.
|
|
229
|
+
option.optionId,
|
|
228
230
|
liquidities,
|
|
229
231
|
0n,
|
|
230
232
|
refTick
|
|
@@ -453,7 +455,7 @@ const useUserOptions = (user, active = false) => {
|
|
|
453
455
|
if (!graphqlClient) return [];
|
|
454
456
|
return (active ? await graphqlClient.GetActiveUserOptions({ user: user.toLowerCase() }) : await graphqlClient.GetClosedUserOptions({ user: user.toLowerCase() })).UserOption.map((option) => ({
|
|
455
457
|
...option,
|
|
456
|
-
|
|
458
|
+
optionId: BigInt(option.optionId),
|
|
457
459
|
marketAddr: option.marketAddr,
|
|
458
460
|
optionType: option.optionType,
|
|
459
461
|
createdAt: /* @__PURE__ */ new Date(Number(option.createdAt) * 1e3),
|