Overview
Show and change the board on your workspace’s Overview: metrics as figures or graphs, the top rows of a table or of your users, and groups of users as figures. See Overview.
Requires contract-dev login.
The board holds 6 figures, 6 graphs and 4 tables. A new pin past that is refused until one of its kind is unpinned. Pinning something already pinned changes its pin and keeps what the command does not restate. A metric or table is named by its name or id. Deleting a metric, a table or a group of users takes its pins off the board.
overview
Every pin, by kind, in the order it is drawn, with how many of each the board holds. A table pin shows its rows, ranking and columns.
contract-dev overviewFigures (3 of 6)
1. TVL
2. Volume
3. Traders (users)
Graphs (2 of 6)
1. Volume (half width)
2. TVL (half width)
Tables (2 of 4)
1. Pools (5 rows · by Volume 7d · Pool, Volume 7d, Fees 7d, Liquidity)
2. LPs (users) (5 rows)metric pin "<metric>"
A metric as a figure: its value, its change on the day and its 24-hour trend. With --graph, the metric over the last 24 hours. A metric can be both: run the command once for each.
contract-dev metric pin "<metric>" [--graph | --figure] [--half | --full] [--first | --after "<pin>"]| Flag | Description |
|---|---|
--graph | Pin it as a graph. |
--figure | Pin it as a figure. The default. |
--half, --full | With --graph. See Width and position. |
--first, --after "<pin>" | See Width and position. |
contract-dev metric pin "TVL"
contract-dev metric pin "Swap fees" --graph --halfPinned TVL to the overview as a figure.
The overview holds 3 figures, 2 graphs, 2 tables. https://app.contract.devmetric unpin "<metric>"
Take a metric’s figure and graph off the board. The metric stays as it is.
contract-dev metric unpin "<metric>" [--graph | --figure]| Flag | Description |
|---|---|
--graph | Its graph only. |
--figure | Its figure only. |
table pin "<table>"
A table’s top rows.
contract-dev table pin "<table>" [--rows <n>] [--sort "<column>" [--asc]] [--columns "<A>, <B>…"]
[--last 24h|7d|30d|all] [--half | --full] [--first | --after "<pin>"]| Flag | Description |
|---|---|
--rows <n> | Rows shown, 1 to 10. Default 5. |
--sort "<column>" | The column the rows are ranked by, by its label, largest first. Without it, the table’s own order. |
--asc | With --sort: smallest first. |
--columns "<A>, <B>…" | The columns shown, by label, in order, up to 8. Without it, the table’s first six, with the --sort column among them. A column the table does not have is refused, with the table’s columns listed. |
--last | An activity table kept over a window, read over a shorter one inside it: 24h, 7d or 30d. Its rows are the ones in that window; a ranking is added up over it alone. all takes the window off. Refused on a table without a window, and on a window as long as the table’s own or longer. |
--half, --full, --first, --after "<pin>" | See Width and position. |
contract-dev table pin "Pools" --sort "Volume 7d" --columns "Pool, Volume 7d, Fees 7d, Liquidity"
contract-dev table pin "Top traders, 7d" --last 24h --half
contract-dev table pin "Pools" --rows 10Changed the pin of Pools on the overview as a table.
The overview holds 3 figures, 2 graphs, 2 tables. https://app.contract.devtable unpin "<table>"
Take a table off the board. The table stays as it is.
contract-dev table unpin "<table>"user pin ["<Group>"]
The top rows of one group of users, or of every user with no group (or all). With --figure, the group as one count. The workspace needs a group of users first: see user create.
contract-dev user pin ["<Group>"] [--rows <n>] [--sort "<column>" [--asc]] [--columns "<A>, <B>…"]
[--half | --full] [--first | --after "<pin>"]
contract-dev user pin ["<Group>"] --figure [--first | --after "<pin>"]| Flag | Description |
|---|---|
--rows <n> | Rows shown, 1 to 10. Default 5. |
--sort "<column>" | The column the users are ranked by, by its label, largest first. Without it, the group’s own ranking. |
--asc | With --sort: smallest first. |
--columns "<A>, <B>…" | The columns shown, by label, in order, up to 8. Without it, the user and the columns the group shows, up to six in all. |
--figure | The group as one count, in place of its rows. Takes no rows, sort, columns or width. |
--half, --full, --first, --after "<pin>" | See Width and position. |
A figure counts by the group’s type:
| Group | Counts |
|---|---|
holders | How many are in it now. |
traders or other | How many acted in the last 24 hours, with the change on the 24 hours before. |
| No group | Every user who did anything in the last 24 hours. |
contract-dev user pin LPs --rows 10 --half
contract-dev user pin Traders --figure --firstuser unpin ["<Group>"]
Take a group’s rows and figure off the board, or every user’s with no group. The group stays as it is.
contract-dev user unpin ["<Group>"] [--figure]| Flag | Description |
|---|---|
--figure | Its figure only. |
Width and position
A graph or table takes the board’s full width, and a new pin goes last among its kind.
| Flag | Description |
|---|---|
--half | Half width, for a graph or table. Two half-width pins next to each other in the board’s order (graphs, then tables) sit side by side; one with no half-width neighbour still takes the full width. Refused on a figure. |
--full | Back to full width. |
--first | First among its kind. |
--after "<pin>" | Straight after the pin of that name, of the same kind. |
--first or --after on something already pinned moves it.
--pin on create
Pin a metric or table as it is made.
contract-dev metric create "<name>" … --pin [figure|graph|both]
contract-dev table create "<name>" … --pin| On | --pin |
|---|---|
metric create | figure (the default), graph or both. |
table create | Takes no value: the table’s top 5 rows, in its own order. |
When the board has no room, the command prints Not pinned: with the reason and keeps what it made.
contract-dev metric create "Loans opened" --on group:markets --each LoanOpened --pin both
contract-dev table create "Loans" --on group:markets --each LoanOpened --id loanId \
--column "Owed=accountDebt(id())" --pin