@0xslots/sdk 0.10.2 → 0.11.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.
@@ -86,6 +86,11 @@ var SlotFieldsFragmentDoc = gql`
86
86
  verified
87
87
  name
88
88
  version
89
+ feeBps
90
+ moduleURI
91
+ image
92
+ description
93
+ totalFeesCollected
89
94
  }
90
95
  occupant
91
96
  occupantAccount {
@@ -726,6 +731,11 @@ var GetModulesDocument = gql`
726
731
  verified
727
732
  name
728
733
  version
734
+ feeBps
735
+ moduleURI
736
+ image
737
+ description
738
+ totalFeesCollected
729
739
  }
730
740
  }
731
741
  `;
@@ -908,7 +918,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
908
918
  }
909
919
  };
910
920
  }
911
- var EXPECTED_MODULE_NAME = "MetadataModule";
921
+ var EXPECTED_MODULE_NAME = "AdLandModule";
912
922
  var MetadataModuleClient = class {
913
923
  constructor(opts) {
914
924
  this.sdk = opts.sdk;
@@ -1340,7 +1350,7 @@ var SlotsClient = class {
1340
1350
  to: params.slot,
1341
1351
  abi: slotAbi,
1342
1352
  functionName: "buy",
1343
- args: [params.depositAmount, params.selfAssessedPrice]
1353
+ args: [params.account, params.depositAmount, params.selfAssessedPrice]
1344
1354
  });
1345
1355
  }
1346
1356
  /**
@@ -1360,7 +1370,8 @@ var SlotsClient = class {
1360
1370
  });
1361
1371
  }
1362
1372
  /**
1363
- * Top up deposit on a slot (occupant only). Handles ERC-20 approval automatically.
1373
+ * Top up deposit on a slot. Anyone can pay to extend the occupant's deposit.
1374
+ * Handles ERC-20 approval automatically.
1364
1375
  * @param slot - The slot contract address.
1365
1376
  * @param amount - The amount to deposit (must be > 0).
1366
1377
  * @returns Transaction hash.
@@ -1599,5 +1610,5 @@ function createSlotsClient(config) {
1599
1610
  }
1600
1611
 
1601
1612
  export { AccountFieldsFragmentDoc, CurrencyFieldsFragmentDoc, 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 };
1602
- //# sourceMappingURL=chunk-PZ2PG636.js.map
1603
- //# sourceMappingURL=chunk-PZ2PG636.js.map
1613
+ //# sourceMappingURL=chunk-JPXMWACL.js.map
1614
+ //# sourceMappingURL=chunk-JPXMWACL.js.map