@0xslots/sdk 0.3.0 → 0.4.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/index.js CHANGED
@@ -62,7 +62,6 @@ var GetSlotCreatedEventsDocument = gql`
62
62
  slotId
63
63
  currency
64
64
  basePrice
65
- price
66
65
  taxPercentage
67
66
  timestamp
68
67
  blockNumber
@@ -91,33 +90,14 @@ var GetPriceUpdatesDocument = gql`
91
90
  }
92
91
  }
93
92
  `;
94
- var GetFlowChangesDocument = gql`
95
- query GetFlowChanges($first: Int = 100, $where: FlowChange_filter) {
96
- flowChanges(
97
- first: $first
98
- where: $where
99
- orderBy: timestamp
100
- orderDirection: desc
101
- ) {
102
- id
103
- from
104
- to
105
- oldRate
106
- newRate
107
- operation
108
- timestamp
109
- blockNumber
110
- tx
111
- }
112
- }
113
- `;
114
93
  var GetHubDocument = gql`
115
94
  query GetHub($id: ID!) {
116
95
  hub(id: $id) {
117
96
  id
118
97
  protocolFeeBps
119
98
  protocolFeeRecipient
120
- slotPrice
99
+ landCreationFee
100
+ slotExpansionFee
121
101
  defaultCurrency {
122
102
  id
123
103
  name
@@ -130,6 +110,9 @@ var GetHubDocument = gql`
130
110
  defaultMaxTaxPercentage
131
111
  defaultMinTaxUpdatePeriod
132
112
  defaultModule
113
+ moduleCallGasLimit
114
+ liquidationBountyBps
115
+ minDepositSeconds
133
116
  }
134
117
  }
135
118
  `;
@@ -150,10 +133,6 @@ var GetAllowedCurrenciesDocument = gql`
150
133
  name
151
134
  symbol
152
135
  decimals
153
- underlyingToken
154
- underlyingName
155
- underlyingSymbol
156
- underlyingDecimals
157
136
  }
158
137
  }
159
138
  `;
@@ -326,9 +305,6 @@ function getSdk(client, withWrapper = defaultWrapper) {
326
305
  GetPriceUpdates(variables, requestHeaders, signal) {
327
306
  return withWrapper((wrappedRequestHeaders) => client.request({ document: GetPriceUpdatesDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetPriceUpdates", "query", variables);
328
307
  },
329
- GetFlowChanges(variables, requestHeaders, signal) {
330
- return withWrapper((wrappedRequestHeaders) => client.request({ document: GetFlowChangesDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetFlowChanges", "query", variables);
331
- },
332
308
  GetHub(variables, requestHeaders, signal) {
333
309
  return withWrapper((wrappedRequestHeaders) => client.request({ document: GetHubDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetHub", "query", variables);
334
310
  },
@@ -365,10 +341,12 @@ function getSdk(client, withWrapper = defaultWrapper) {
365
341
  // src/client.ts
366
342
  var SlotsChain = /* @__PURE__ */ ((SlotsChain2) => {
367
343
  SlotsChain2[SlotsChain2["BASE_SEPOLIA"] = 84532] = "BASE_SEPOLIA";
344
+ SlotsChain2[SlotsChain2["ARBITRUM"] = 42161] = "ARBITRUM";
368
345
  return SlotsChain2;
369
346
  })(SlotsChain || {});
370
347
  var SUBGRAPH_URLS = {
371
- [84532 /* BASE_SEPOLIA */]: "https://api.studio.thegraph.com/query/958/0-x-slots-base-sepolia/version/latest"
348
+ [84532 /* BASE_SEPOLIA */]: "https://api.studio.thegraph.com/query/958/0-x-slots-base-sepolia/version/latest",
349
+ [42161 /* ARBITRUM */]: "https://api.studio.thegraph.com/query/958/0-x-slots-arb/version/latest"
372
350
  };
373
351
  var SlotsClient = class {
374
352
  /**
@@ -460,9 +438,6 @@ var SlotsClient = class {
460
438
  getSlotCreatedEvents(...args) {
461
439
  return this.sdk.GetSlotCreatedEvents(...args);
462
440
  }
463
- getFlowChanges(...args) {
464
- return this.sdk.GetFlowChanges(...args);
465
- }
466
441
  getPriceUpdates(...args) {
467
442
  return this.sdk.GetPriceUpdates(...args);
468
443
  }
@@ -471,6 +446,6 @@ function createSlotsClient(config) {
471
446
  return new SlotsClient(config);
472
447
  }
473
448
 
474
- export { GetAllowedCurrenciesDocument, GetAllowedModulesDocument, GetAvailableSlotsDocument, GetFlowChangesDocument, GetHubDocument, GetLandDocument, GetLandOpenedEventsDocument, GetLandsByOwnerDocument, GetLandsDocument, GetPriceUpdatesDocument, GetSlotCreatedEventsDocument, GetSlotDocument, GetSlotPurchasesDocument, GetSlotsByOccupantDocument, GetSlotsDocument, SUBGRAPH_URLS, SlotsChain, SlotsClient, createSlotsClient, getSdk };
449
+ export { GetAllowedCurrenciesDocument, GetAllowedModulesDocument, GetAvailableSlotsDocument, GetHubDocument, GetLandDocument, GetLandOpenedEventsDocument, GetLandsByOwnerDocument, GetLandsDocument, GetPriceUpdatesDocument, GetSlotCreatedEventsDocument, GetSlotDocument, GetSlotPurchasesDocument, GetSlotsByOccupantDocument, GetSlotsDocument, SUBGRAPH_URLS, SlotsChain, SlotsClient, createSlotsClient, getSdk };
475
450
  //# sourceMappingURL=index.js.map
476
451
  //# sourceMappingURL=index.js.map