@0xslots/sdk 0.10.2 → 0.11.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.
@@ -908,7 +908,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
908
908
  }
909
909
  };
910
910
  }
911
- var EXPECTED_MODULE_NAME = "MetadataModule";
911
+ var EXPECTED_MODULE_NAME = "AdLandModule";
912
912
  var MetadataModuleClient = class {
913
913
  constructor(opts) {
914
914
  this.sdk = opts.sdk;
@@ -1340,7 +1340,7 @@ var SlotsClient = class {
1340
1340
  to: params.slot,
1341
1341
  abi: slotAbi,
1342
1342
  functionName: "buy",
1343
- args: [params.depositAmount, params.selfAssessedPrice]
1343
+ args: [params.account, params.depositAmount, params.selfAssessedPrice]
1344
1344
  });
1345
1345
  }
1346
1346
  /**
@@ -1360,7 +1360,8 @@ var SlotsClient = class {
1360
1360
  });
1361
1361
  }
1362
1362
  /**
1363
- * Top up deposit on a slot (occupant only). Handles ERC-20 approval automatically.
1363
+ * Top up deposit on a slot. Anyone can pay to extend the occupant's deposit.
1364
+ * Handles ERC-20 approval automatically.
1364
1365
  * @param slot - The slot contract address.
1365
1366
  * @param amount - The amount to deposit (must be > 0).
1366
1367
  * @returns Transaction hash.
@@ -1599,5 +1600,5 @@ function createSlotsClient(config) {
1599
1600
  }
1600
1601
 
1601
1602
  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
1603
+ //# sourceMappingURL=chunk-XQG6GMWZ.js.map
1604
+ //# sourceMappingURL=chunk-XQG6GMWZ.js.map