Skip to content

Commit

Permalink
clean up: collab command
Browse files Browse the repository at this point in the history
  • Loading branch information
boddumanohar committed Feb 5, 2023
1 parent ad06e9d commit 92a0670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 143 deletions.
40 changes: 4 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ zbox is a command line interface (CLI) tool to understand the capabilities of 0C
- [Stats](#stats)
- [Repair](#repair)
- [Add collaborator](#add-collaborator)
- [Delete collaborator](#delete-collaborator)
- [Sign data](#sign-data)
- [Streaming](#streaming)
- [How it works:](#how-it-works)
Expand Down Expand Up @@ -125,7 +124,6 @@ When you run the `zbox` command in terminal with no arguments, it will list all
[copy](#copy)|copy an object(file/folder) to another folder on blobbers
[cp-info](#challenge-pool-information)|Challenge pool information.
[delete](#delete)|delete file from blobbers
[delete-collab](#delete-collaborator)|delete collaborator for a file
[download](#download)|download file from blobbers
[get](#get)|Gets the allocation info
[get-diff](#get-differences)|Get difference of local and allocation root
Expand Down Expand Up @@ -1495,36 +1493,6 @@ Collaborator d477d12134c2d7ba5ab71ac8ad37f244224695ef3215be990c3215d531c5a329 ad

You can check all collaborators for a file in metadata json response.

#### Delete collaborator

Use command delete-collab to remove a collaborator for a file

| Parameter | Required | Description | default | Valid values |
|------------|----------|------------------------------|---------|--------------|
| allocation | yes | allocation id | | string |
| collabid | yes | id of collaberator | | string |
| remotepath | yes | file on which to collaberate | | string |

<details>
<summary>delete-collab</summary>

![image](https://user-images.githubusercontent.com/6240686/124505356-3571a900-ddc1-11eb-9dd8-72927cefa790.png)

</details>

Example

```
./zbox delete-collab --allocation 8695b9e7f986d4a447b64de020ba86f53b3b5e2c442abceb6cd65742702067dc --remotepath /1.txt --collabid d477d12134c2d7ba5ab71ac8ad37f244224695ef3215be990c3215d531c5a329
```

Response will be a confirmation that collaborator is removed on all blobbers for the given file.

```
Collaborator d477d12134c2d7ba5ab71ac8ad37f244224695ef3215be990c3215d531c5a329 removed successfully for the file /1.txt
```


#### Sign data

`sign-data` uses the information from your wallet to sign the input data string
Expand Down Expand Up @@ -1776,10 +1744,10 @@ Use `sp-info` to get your stake pool information and settings.

#### Lock tokens into stake pool

Lock creates delegate pool for current client and a given provider (blobber or validator).
The tokens locked for the provider stake can be unlocked any time, excluding times
when the tokens held by opened offers. These tokens will earn rewards depending on the
actions of the linked provider.
Lock creates delegate pool for current client and a given provider (blobber or validator).
The tokens locked for the provider stake can be unlocked any time, excluding times
when the tokens held by opened offers. These tokens will earn rewards depending on the
actions of the linked provider.

`sp-lock` returns the id of the new stake pool, this will be needed to reference
to stake pool later.
Expand Down
107 changes: 0 additions & 107 deletions cmd/collaborators.go

This file was deleted.

0 comments on commit 92a0670

Please sign in to comment.