@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.
- package/dist/{chunk-PZ2PG636.js → chunk-XQG6GMWZ.js} +6 -5
- package/dist/chunk-XQG6GMWZ.js.map +1 -0
- package/dist/{client-pupk2FMg.d.ts → client-CN0aLhHJ.d.ts} +3 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +2 -5
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-PZ2PG636.js.map +0 -1
|
@@ -908,7 +908,7 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
908
908
|
}
|
|
909
909
|
};
|
|
910
910
|
}
|
|
911
|
-
var EXPECTED_MODULE_NAME = "
|
|
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
|
|
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-
|
|
1603
|
-
//# sourceMappingURL=chunk-
|
|
1603
|
+
//# sourceMappingURL=chunk-XQG6GMWZ.js.map
|
|
1604
|
+
//# sourceMappingURL=chunk-XQG6GMWZ.js.map
|