Skip to content

Commit

Permalink
Update Allocation Op Params
Browse files Browse the repository at this point in the history
  • Loading branch information
ranajahanzaib committed Jul 20, 2023
1 parent f7e4ca2 commit ac8d682
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zerochain/zus-sdk",
"version": "0.3.1",
"version": "0.3.2",
"description": "[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](./CONTRIBUTING.md)",
"main": "./lib/index.js",
"types": "lib/index.d.ts",
Expand Down
15 changes: 4 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export const listAllocations = async () => {
* @param {number} allocationConfig.datashards - The number of data shards for the allocation.
* @param {number} allocationConfig.parityshards - The number of parity shards for the allocation.
* @param {number} allocationConfig.size - The size of the allocation in bytes.
* @param {number} allocationConfig.expiry - The expiry time of the allocation.
* @param {number} allocationConfig.minReadPrice - The minimum price for reading from the allocation.
* @param {number} allocationConfig.maxReadPrice - The maximum price for reading from the allocation.
* @param {number} allocationConfig.minWritePrice - The minimum price for writing to the allocation.
Expand All @@ -139,7 +138,6 @@ export const createAllocation = async (allocationConfig) => {
allocationConfig.datashards,
allocationConfig.parityshards,
allocationConfig.size,
allocationConfig.expiry,
allocationConfig.minReadPrice,
allocationConfig.maxReadPrice,
allocationConfig.minWritePrice,
Expand All @@ -156,7 +154,6 @@ export const createAllocation = async (allocationConfig) => {
* @param {number} allocationConfig.datashards - The number of data shards for the allocation.
* @param {number} allocationConfig.parityshards - The number of parity shards for the allocation.
* @param {number} allocationConfig.size - The size of the allocation in bytes.
* @param {number} allocationConfig.expiry - The expiry time of the allocation.
* @param {number} allocationConfig.minReadPrice - The minimum price for reading from the allocation.
* @param {number} allocationConfig.maxReadPrice - The maximum price for reading from the allocation.
* @param {number} allocationConfig.minWritePrice - The minimum price for writing to the allocation.
Expand All @@ -171,7 +168,6 @@ export const createAllocationWithBlobbers = async (allocationConfig) => {
allocationConfig.datashards,
allocationConfig.parityshards,
allocationConfig.size,
allocationConfig.expiry,
allocationConfig.minReadPrice,
allocationConfig.maxReadPrice,
allocationConfig.minWritePrice,
Expand Down Expand Up @@ -248,7 +244,7 @@ export const cancelAllocation = async (allocationId) => {
*
* @param {string} allocationId - The ID of the allocation to update.
* @param {number} size - The new size of the allocation in bytes.
* @param {number} expiry - The new expiry time of the allocation.
* @param {bool} extend - Flag indicating if the allocation should be extended.
* @param {boolean} lock - Flag indicating if the allocation should be locked.
* @param {boolean} updateTerms - Flag indicating if the terms of the allocation should be updated.
* @param {string} addBlobberId - The ID of the blobber to add to the allocation.
Expand All @@ -258,7 +254,7 @@ export const cancelAllocation = async (allocationId) => {
export const updateAllocation = async (
allocationId,
size,
expiry,
extend,
lock,
updateTerms,
addBlobberId,
Expand All @@ -267,7 +263,7 @@ export const updateAllocation = async (
log("updateAllocation", {
allocationId,
size,
expiry,
extend,
lock,
updateTerms,
addBlobberId,
Expand All @@ -276,7 +272,7 @@ export const updateAllocation = async (
const hash = await goWasm.sdk.updateAllocation(
allocationId,
size,
expiry,
extend,
lock,
updateTerms,
addBlobberId,
Expand Down Expand Up @@ -649,7 +645,6 @@ export const getLookupHash = async (allocationId, path) => {
* @param {number} dataShards - The number of data shards.
* @param {number} parityShards - The number of parity shards.
* @param {number} size - The size of the allocation.
* @param {number} expiry - The expiry duration of the allocation.
* @param {number} minReadPrice - The minimum read price.
* @param {number} maxReadPrice - The maximum read price.
* @param {number} minWritePrice - The minimum write price.
Expand All @@ -661,7 +656,6 @@ export const getAllocationBlobbers = async (
dataShards,
parityShards,
size,
expiry,
minReadPrice,
maxReadPrice,
minWritePrice,
Expand All @@ -673,7 +667,6 @@ export const getAllocationBlobbers = async (
dataShards,
parityShards,
size,
expiry,
minReadPrice,
maxReadPrice,
minWritePrice,
Expand Down

0 comments on commit ac8d682

Please sign in to comment.