@0xslots/sdk 0.8.0 → 0.8.1

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
@@ -91,9 +91,64 @@ var GetAccountsDocument = gql`
91
91
  }
92
92
  }
93
93
  ${AccountFieldsFragmentDoc}`;
94
+ var GetSlotDeployedEventsDocument = gql`
95
+ query GetSlotDeployedEvents($first: Int!, $skip: Int, $orderBy: SlotDeployedEvent_orderBy, $orderDirection: OrderDirection, $where: SlotDeployedEvent_filter, $block: Block_height) {
96
+ slotDeployedEvents(
97
+ first: $first
98
+ skip: $skip
99
+ orderBy: $orderBy
100
+ orderDirection: $orderDirection
101
+ where: $where
102
+ block: $block
103
+ ) {
104
+ id
105
+ slot {
106
+ id
107
+ }
108
+ recipient
109
+ currency {
110
+ ...CurrencyFields
111
+ }
112
+ manager
113
+ mutableTax
114
+ mutableModule
115
+ taxPercentage
116
+ module
117
+ liquidationBountyBps
118
+ minDepositSeconds
119
+ deployer
120
+ timestamp
121
+ blockNumber
122
+ tx
123
+ }
124
+ }
125
+ ${CurrencyFieldsFragmentDoc}`;
94
126
  var GetRecentEventsDocument = gql`
95
- query GetRecentEvents($first: Int!) {
96
- boughtEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
127
+ query GetRecentEvents($first: Int!, $skip: Int) {
128
+ slotDeployedEvents(
129
+ first: $first
130
+ skip: $skip
131
+ orderBy: timestamp
132
+ orderDirection: desc
133
+ ) {
134
+ id
135
+ slot {
136
+ id
137
+ }
138
+ recipient
139
+ currency {
140
+ ...CurrencyFields
141
+ }
142
+ deployer
143
+ timestamp
144
+ tx
145
+ }
146
+ boughtEvents(
147
+ first: $first
148
+ skip: $skip
149
+ orderBy: timestamp
150
+ orderDirection: desc
151
+ ) {
97
152
  id
98
153
  slot {
99
154
  id
@@ -109,7 +164,12 @@ var GetRecentEventsDocument = gql`
109
164
  timestamp
110
165
  tx
111
166
  }
112
- releasedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
167
+ releasedEvents(
168
+ first: $first
169
+ skip: $skip
170
+ orderBy: timestamp
171
+ orderDirection: desc
172
+ ) {
113
173
  id
114
174
  slot {
115
175
  id
@@ -122,7 +182,12 @@ var GetRecentEventsDocument = gql`
122
182
  timestamp
123
183
  tx
124
184
  }
125
- liquidatedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
185
+ liquidatedEvents(
186
+ first: $first
187
+ skip: $skip
188
+ orderBy: timestamp
189
+ orderDirection: desc
190
+ ) {
126
191
  id
127
192
  slot {
128
193
  id
@@ -136,7 +201,12 @@ var GetRecentEventsDocument = gql`
136
201
  timestamp
137
202
  tx
138
203
  }
139
- priceUpdatedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
204
+ priceUpdatedEvents(
205
+ first: $first
206
+ skip: $skip
207
+ orderBy: timestamp
208
+ orderDirection: desc
209
+ ) {
140
210
  id
141
211
  slot {
142
212
  id
@@ -149,7 +219,12 @@ var GetRecentEventsDocument = gql`
149
219
  timestamp
150
220
  tx
151
221
  }
152
- depositedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
222
+ depositedEvents(
223
+ first: $first
224
+ skip: $skip
225
+ orderBy: timestamp
226
+ orderDirection: desc
227
+ ) {
153
228
  id
154
229
  slot {
155
230
  id
@@ -162,7 +237,12 @@ var GetRecentEventsDocument = gql`
162
237
  timestamp
163
238
  tx
164
239
  }
165
- withdrawnEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
240
+ withdrawnEvents(
241
+ first: $first
242
+ skip: $skip
243
+ orderBy: timestamp
244
+ orderDirection: desc
245
+ ) {
166
246
  id
167
247
  slot {
168
248
  id
@@ -175,7 +255,12 @@ var GetRecentEventsDocument = gql`
175
255
  timestamp
176
256
  tx
177
257
  }
178
- taxCollectedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
258
+ taxCollectedEvents(
259
+ first: $first
260
+ skip: $skip
261
+ orderBy: timestamp
262
+ orderDirection: desc
263
+ ) {
179
264
  id
180
265
  slot {
181
266
  id
@@ -188,7 +273,12 @@ var GetRecentEventsDocument = gql`
188
273
  timestamp
189
274
  tx
190
275
  }
191
- taxUpdateProposedEvents(first: $first, orderBy: timestamp, orderDirection: desc) {
276
+ taxUpdateProposedEvents(
277
+ first: $first
278
+ skip: $skip
279
+ orderBy: timestamp
280
+ orderDirection: desc
281
+ ) {
192
282
  id
193
283
  slot {
194
284
  id
@@ -199,6 +289,7 @@ var GetRecentEventsDocument = gql`
199
289
  }
200
290
  moduleUpdateProposedEvents(
201
291
  first: $first
292
+ skip: $skip
202
293
  orderBy: timestamp
203
294
  orderDirection: desc
204
295
  ) {
@@ -212,6 +303,7 @@ var GetRecentEventsDocument = gql`
212
303
  }
213
304
  pendingUpdateCancelledEvents(
214
305
  first: $first
306
+ skip: $skip
215
307
  orderBy: timestamp
216
308
  orderDirection: desc
217
309
  ) {
@@ -430,9 +522,10 @@ var GetPriceUpdatedEventsDocument = gql`
430
522
  }
431
523
  ${CurrencyFieldsFragmentDoc}`;
432
524
  var GetSlotActivityDocument = gql`
433
- query GetSlotActivity($slotId: String!, $first: Int!) {
525
+ query GetSlotActivity($slotId: String!, $first: Int!, $skip: Int) {
434
526
  boughtEvents(
435
527
  first: $first
528
+ skip: $skip
436
529
  orderBy: timestamp
437
530
  orderDirection: desc
438
531
  where: {slot: $slotId}
@@ -451,6 +544,7 @@ var GetSlotActivityDocument = gql`
451
544
  }
452
545
  releasedEvents(
453
546
  first: $first
547
+ skip: $skip
454
548
  orderBy: timestamp
455
549
  orderDirection: desc
456
550
  where: {slot: $slotId}
@@ -466,6 +560,7 @@ var GetSlotActivityDocument = gql`
466
560
  }
467
561
  liquidatedEvents(
468
562
  first: $first
563
+ skip: $skip
469
564
  orderBy: timestamp
470
565
  orderDirection: desc
471
566
  where: {slot: $slotId}
@@ -482,6 +577,7 @@ var GetSlotActivityDocument = gql`
482
577
  }
483
578
  priceUpdatedEvents(
484
579
  first: $first
580
+ skip: $skip
485
581
  orderBy: timestamp
486
582
  orderDirection: desc
487
583
  where: {slot: $slotId}
@@ -497,6 +593,7 @@ var GetSlotActivityDocument = gql`
497
593
  }
498
594
  depositedEvents(
499
595
  first: $first
596
+ skip: $skip
500
597
  orderBy: timestamp
501
598
  orderDirection: desc
502
599
  where: {slot: $slotId}
@@ -512,6 +609,7 @@ var GetSlotActivityDocument = gql`
512
609
  }
513
610
  withdrawnEvents(
514
611
  first: $first
612
+ skip: $skip
515
613
  orderBy: timestamp
516
614
  orderDirection: desc
517
615
  where: {slot: $slotId}
@@ -527,6 +625,7 @@ var GetSlotActivityDocument = gql`
527
625
  }
528
626
  taxCollectedEvents(
529
627
  first: $first
628
+ skip: $skip
530
629
  orderBy: timestamp
531
630
  orderDirection: desc
532
631
  where: {slot: $slotId}
@@ -542,6 +641,7 @@ var GetSlotActivityDocument = gql`
542
641
  }
543
642
  taxUpdateProposedEvents(
544
643
  first: $first
644
+ skip: $skip
545
645
  orderBy: timestamp
546
646
  orderDirection: desc
547
647
  where: {slot: $slotId}
@@ -553,6 +653,7 @@ var GetSlotActivityDocument = gql`
553
653
  }
554
654
  moduleUpdateProposedEvents(
555
655
  first: $first
656
+ skip: $skip
556
657
  orderBy: timestamp
557
658
  orderDirection: desc
558
659
  where: {slot: $slotId}
@@ -564,6 +665,7 @@ var GetSlotActivityDocument = gql`
564
665
  }
565
666
  pendingUpdateCancelledEvents(
566
667
  first: $first
668
+ skip: $skip
567
669
  orderBy: timestamp
568
670
  orderDirection: desc
569
671
  where: {slot: $slotId}
@@ -650,6 +752,9 @@ function getSdk(client, withWrapper = defaultWrapper) {
650
752
  GetAccounts(variables, requestHeaders, signal) {
651
753
  return withWrapper((wrappedRequestHeaders) => client.request({ document: GetAccountsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetAccounts", "query", variables);
652
754
  },
755
+ GetSlotDeployedEvents(variables, requestHeaders, signal) {
756
+ return withWrapper((wrappedRequestHeaders) => client.request({ document: GetSlotDeployedEventsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetSlotDeployedEvents", "query", variables);
757
+ },
653
758
  GetRecentEvents(variables, requestHeaders, signal) {
654
759
  return withWrapper((wrappedRequestHeaders) => client.request({ document: GetRecentEventsDocument, variables, requestHeaders: { ...requestHeaders, ...wrappedRequestHeaders }, signal }), "GetRecentEvents", "query", variables);
655
760
  },
@@ -821,6 +926,10 @@ var SlotsClient = class {
821
926
  return this.query("getModules", () => this.sdk.GetModules(...args));
822
927
  }
823
928
  // Event queries
929
+ /** Fetch slot deployed events with optional filters. */
930
+ getSlotDeployedEvents(...args) {
931
+ return this.query("getSlotDeployedEvents", () => this.sdk.GetSlotDeployedEvents(...args));
932
+ }
824
933
  /** Fetch bought events with optional filters. */
825
934
  getBoughtEvents(...args) {
826
935
  return this.query("getBoughtEvents", () => this.sdk.GetBoughtEvents(...args));
@@ -1236,6 +1345,6 @@ function createSlotsClient(config) {
1236
1345
  return new SlotsClient(config);
1237
1346
  }
1238
1347
 
1239
- export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, GetAccountDocument, GetAccountsDocument, GetBoughtEventsDocument, GetDepositedEventsDocument, GetFactoryDocument, GetLiquidatedEventsDocument, GetModulesDocument, GetPriceUpdatedEventsDocument, GetRecentEventsDocument, GetReleasedEventsDocument, GetSettledEventsDocument, GetSlotActivityDocument, GetSlotDocument, GetSlotsByOccupantDocument, GetSlotsByRecipientDocument, GetSlotsDocument, GetTaxCollectedEventsDocument, GetWithdrawnEventsDocument, SUBGRAPH_URLS, SlotFieldsFragmentDoc, SlotsChain, SlotsClient, SlotsError, createSlotsClient, getSdk };
1348
+ export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, GetAccountDocument, GetAccountsDocument, GetBoughtEventsDocument, GetDepositedEventsDocument, GetFactoryDocument, GetLiquidatedEventsDocument, GetModulesDocument, GetPriceUpdatedEventsDocument, GetRecentEventsDocument, GetReleasedEventsDocument, GetSettledEventsDocument, GetSlotActivityDocument, GetSlotDeployedEventsDocument, GetSlotDocument, GetSlotsByOccupantDocument, GetSlotsByRecipientDocument, GetSlotsDocument, GetTaxCollectedEventsDocument, GetWithdrawnEventsDocument, SUBGRAPH_URLS, SlotFieldsFragmentDoc, SlotsChain, SlotsClient, SlotsError, createSlotsClient, getSdk };
1240
1349
  //# sourceMappingURL=index.js.map
1241
1350
  //# sourceMappingURL=index.js.map