Skip to content

Commit

Permalink
docsgen: Add []abi.SectorNumber example
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Dec 10, 2020
1 parent 564b88a commit 4734690
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func init() {
addExample(map[api.SectorState]int{
api.SectorState(sealing.Proving): 120,
})
addExample([]abi.SectorNumber{123, 124})

// worker specific
addExample(storiface.AcquireMove)
Expand Down
16 changes: 14 additions & 2 deletions documentation/en/api-methods-miner.md
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,13 @@ Perms: read

Inputs: `null`

Response: `null`
Response:
```json
[
123,
124
]
```

### SectorsListInStates
List sectors in particular states
Expand All @@ -1511,7 +1517,13 @@ Inputs:
]
```

Response: `null`
Response:
```json
[
123,
124
]
```

### SectorsRefs
There are not yet any comments for this method.
Expand Down

0 comments on commit 4734690

Please sign in to comment.