@0xslots/sdk 0.12.0 → 0.13.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.
@@ -58,6 +58,12 @@ var MetadataSlotFieldsFragmentDoc = gql`
58
58
  symbol
59
59
  decimals
60
60
  }
61
+ module {
62
+ id
63
+ verified
64
+ name
65
+ version
66
+ }
61
67
  }
62
68
  }
63
69
  `;
@@ -740,12 +746,13 @@ var GetModulesDocument = gql`
740
746
  }
741
747
  `;
742
748
  var GetMetadataSlotsDocument = gql`
743
- query GetMetadataSlots($first: Int = 100, $skip: Int = 0, $orderBy: MetadataSlot_orderBy = updatedAt, $orderDirection: OrderDirection = desc) {
749
+ query GetMetadataSlots($first: Int = 100, $skip: Int = 0, $orderBy: MetadataSlot_orderBy = updatedAt, $orderDirection: OrderDirection = desc, $where: MetadataSlot_filter) {
744
750
  metadataSlots(
745
751
  first: $first
746
752
  skip: $skip
747
753
  orderBy: $orderBy
748
754
  orderDirection: $orderDirection
755
+ where: $where
749
756
  ) {
750
757
  ...MetadataSlotFields
751
758
  }
@@ -771,12 +778,13 @@ var GetMetadataSlotsByRecipientDocument = gql`
771
778
  }
772
779
  ${MetadataSlotFieldsFragmentDoc}`;
773
780
  var GetMetadataUpdatedEventsDocument = gql`
774
- query GetMetadataUpdatedEvents($slot: String, $first: Int = 50, $orderBy: MetadataUpdatedEvent_orderBy = timestamp, $orderDirection: OrderDirection = desc) {
781
+ query GetMetadataUpdatedEvents($first: Int = 50, $skip: Int = 0, $orderBy: MetadataUpdatedEvent_orderBy = timestamp, $orderDirection: OrderDirection = desc, $where: MetadataUpdatedEvent_filter) {
775
782
  metadataUpdatedEvents(
776
783
  first: $first
777
- where: {slot: $slot}
784
+ skip: $skip
778
785
  orderBy: $orderBy
779
786
  orderDirection: $orderDirection
787
+ where: $where
780
788
  ) {
781
789
  id
782
790
  slot {
@@ -1066,8 +1074,7 @@ var FeedModuleClient = class {
1066
1074
  }
1067
1075
  get chain() {
1068
1076
  const chain = this.wallet.chain;
1069
- if (!chain)
1070
- throw new SlotsError("feed", "WalletClient must have a chain");
1077
+ if (!chain) throw new SlotsError("feed", "WalletClient must have a chain");
1071
1078
  return chain;
1072
1079
  }
1073
1080
  get publicClient() {
@@ -1116,10 +1123,7 @@ var FeedModuleClient = class {
1116
1123
  }
1117
1124
  /** Get a single metadata slot by slot address. */
1118
1125
  getSlot(...args) {
1119
- return this.query(
1120
- "feed.getSlot",
1121
- () => this.sdk.GetMetadataSlot(...args)
1122
- );
1126
+ return this.query("feed.getSlot", () => this.sdk.GetMetadataSlot(...args));
1123
1127
  }
1124
1128
  /** Get metadata update history for a slot. */
1125
1129
  getUpdateHistory(...args) {
@@ -1799,5 +1803,5 @@ function createSlotsClient(config) {
1799
1803
  }
1800
1804
 
1801
1805
  export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, FeedModuleClient, GetAccountDocument, GetAccountsDocument, GetBoughtEventsDocument, GetDepositedEventsDocument, GetFactoryDocument, GetLiquidatedEventsDocument, GetMetadataSlotDocument, GetMetadataSlotsByRecipientDocument, GetMetadataSlotsDocument, GetMetadataUpdatedEventsDocument, GetModulesDocument, GetPriceUpdatedEventsDocument, GetRecentEventsDocument, GetReleasedEventsDocument, GetSettledEventsDocument, GetSlotActivityDocument, GetSlotDeployedEventsDocument, GetSlotDocument, GetSlotsByOccupantDocument, GetSlotsByRecipientDocument, GetSlotsDocument, GetTaxCollectedEventsDocument, GetWithdrawnEventsDocument, MetadataModuleClient, MetadataSlotFieldsFragmentDoc, SUBGRAPH_URLS, SlotFieldsFragmentDoc, SlotsChain, SlotsClient, SlotsError, createSlotsClient, getSdk };
1802
- //# sourceMappingURL=chunk-52RYU3VZ.js.map
1803
- //# sourceMappingURL=chunk-52RYU3VZ.js.map
1806
+ //# sourceMappingURL=chunk-SEHWEXEA.js.map
1807
+ //# sourceMappingURL=chunk-SEHWEXEA.js.map