From 6c9fec15e5ed220106005707550a397ca3a99014 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 20 Sep 2024 10:50:43 +0200 Subject: [PATCH] Fix readme --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 0e84e5b..9261095 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,25 @@ const response = await marketplace.createAvailability({ }); ``` +#### updateAvailability + +Updates availability. + +- input ([CodexUpdateAvailabilityInput](./src/marketplace/types.ts#L171), required) +- returns Promise<""> + +Example: + +```js +const response = await marketplace.updateAvailability({ + id: "0x.....................", + maxCollateral: 1, + totalSize: 3000, + minPrice: 100, + duration: 100, +}); +``` + #### reservations Return list of reservations for ongoing Storage Requests that the node hosts.