Storage S.C.
This page is under progressive development.
Allocation-related functions
new_allocation_request
new_allocation_request
Create a new allocation and lock tokens in the client's write pool, given the following inputs:
name
(not used) the name of the allocation
data_shards
Number of data shards.
parity_shards
Number of prity shards used for error correction.
size
Size of the allocation.
owner
ClientID of the owner of the alloaction.
owner_public_key
Public Key of the owner of the allocation.
blobbers
List of blobber IDs to show for the blobbers.
blobber_auth_tickets
List of auth tickets corresponding to the list of blobber ids to host the allocation.
read_price_range
Range of read price offer for the blobbers chosen for the allocation (Reads in Züs are free!).
write_price_range
Range of write price offer for the blobbers chosen for the allocation.
third_party_extendable
Whether the allocation can be extendable by third party or not, meaning its size can be increased by a client other than the owner of the allocation.
file_options_changed
Whether file option flags are changed.
file_options
File option flags mask which control permissions of the files that belong to the allocation.
update_allocation_request
update_allocation_request
Updates the parameters of an existing allocation given the following parameters:
ID
The id of the allocation
name
(not used) the name of the allocation
owner_id
ClientID of the owner of the alloaction.
owner_public_key
Public Key of the owner of the allocation.
size
Size of the allocation.
extend
Whether the allocation should be extended.
add_blobber_id
ID of the blobber to add to the allocation.
add_blobber_auth_ticket
Auth ticket of the blobber to add to the allocation.
remove_blobber_id
ID of the blobber to remove from the allocation.
read_price_range
Range of read price offer for the blobbers chosen for the allocation (Reads in Züs are free!).
write_price_range
Range of write price offer for the blobbers chosen for the allocation.
set_third_party_extendable
Set the allocation to be extendable by third party, meaning its size can be increased by a client other than the owner of the allocation.
file_options_changed
Whether file option flags are changed.
file_options
File option flags mask which control permissions of the files that belong to the allocation.
finalize_allocation
finalize_allocation
Finalize an expired allocation by allocation owner or one of blobbers of the allocation. It moves all tokens have to be moved between pools and empties write pool moving left tokens to the client. It requires the following input parameters:
cancel_allocation
cancel_allocation
Cancel the allocation before its expiry date. It moves all tokens have to be moved between pools and empties write pool moving left tokens to the client, it also deducts a cancelation fee mentioned in the Allocations page. It required the following input parameters:
Last updated