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.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.id,
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
- id: BigInt(option.id),
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),