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 CHANGED
@@ -27,6 +27,7 @@ const GetActiveUserOptionsDocument = graphql_tag.default`
27
27
  limit: 1000
28
28
  ) {
29
29
  id
30
+ optionId
30
31
  ownerAddr
31
32
  exerciseEvents {
32
33
  transactionHash
@@ -60,6 +61,7 @@ const GetClosedUserOptionsDocument = graphql_tag.default`
60
61
  limit: 1000
61
62
  ) {
62
63
  id
64
+ optionId
63
65
  ownerAddr
64
66
  exerciseEvents {
65
67
  transactionHash
@@ -231,7 +233,7 @@ const useExerciseOption = (marketAddr) => {
231
233
  abi: require_optionsMarket.optionsMarketAbi,
232
234
  functionName: "exerciseOption",
233
235
  args: [
234
- option.id,
236
+ option.optionId,
235
237
  liquidities,
236
238
  0n,
237
239
  refTick
@@ -460,7 +462,7 @@ const useUserOptions = (user, active = false) => {
460
462
  if (!graphqlClient) return [];
461
463
  return (active ? await graphqlClient.GetActiveUserOptions({ user: user.toLowerCase() }) : await graphqlClient.GetClosedUserOptions({ user: user.toLowerCase() })).UserOption.map((option) => ({
462
464
  ...option,
463
- id: BigInt(option.id),
465
+ optionId: BigInt(option.optionId),
464
466
  marketAddr: option.marketAddr,
465
467
  optionType: option.optionType,
466
468
  createdAt: /* @__PURE__ */ new Date(Number(option.createdAt) * 1e3),