[#21] Document contract storage schemes #22

Merged
fyrchik merged 1 commit from aarifullin/frostfs-contract:feature/document_contract_storage_schemes into master 2023-05-12 12:46:53 +00:00
Member

Signed-off-by: Airat Arifullin a.arifullin@yadro.com

Signed-off-by: Airat Arifullin a.arifullin@yadro.com
aarifullin added the
documentation
label 2023-05-10 08:36:39 +00:00
aarifullin force-pushed feature/document_contract_storage_schemes from 5bf7b48bd1 to e9558807d4 2023-05-10 08:42:05 +00:00 Compare
aarifullin requested review from storage-core-developers 2023-05-10 08:42:39 +00:00
aarifullin requested review from storage-services-developers 2023-05-10 08:42:39 +00:00
dstepanov-yadro reviewed 2023-05-10 11:16:24 +00:00
netmap/doc.go Outdated
@ -32,0 +35,4 @@
+-----------------------------+------------+-----------------------------------+
| Key | Value type | Description |
|-----------------------------+------------+-----------------------------------|
| 'snapshotCount' | int | snapshot count |

' should be replaced with ` ?

`'` should be replaced with ` ?
Author
Member

Thanks!

Thanks!
dstepanov-yadro marked this conversation as resolved
aarifullin force-pushed feature/document_contract_storage_schemes from e9558807d4 to 013ae8ffd9 2023-05-10 15:41:54 +00:00 Compare
aarifullin force-pushed feature/document_contract_storage_schemes from 013ae8ffd9 to da81fd7ff6 2023-05-10 15:44:10 +00:00 Compare
fyrchik reviewed 2023-05-11 08:37:44 +00:00
alphabet/doc.go Outdated
@ -20,0 +22,4 @@
+--------------------+------------+-------------------------------------------------+
| Key | Value type | Description |
|--------------------+------------+-------------------------------------------------|
Owner

Can we use markdown syntax for tables?

| Key | Value | Desc |
|-----|-------|------|
| a   | b     | c    |
| x   | y     | z    |

It is easier to copy in md doc, takes less space and is somewhat widely accepted.

I've searched a bit -- it seems godoc has no support for tables, so markdown is a safe choice.
Also, pre-formatted text should be indented (goimports does this, but we have no pre-commit here).

Can we use markdown syntax for tables? ``` | Key | Value | Desc | |-----|-------|------| | a | b | c | | x | y | z | ``` It is easier to copy in md doc, takes less space and is somewhat widely accepted. I've searched a bit -- it seems `godoc` has no support for tables, so markdown is a safe choice. Also, pre-formatted text should be indented (goimports does this, but we have no pre-commit here).
fyrchik marked this conversation as resolved
nns/doc.go Outdated
@ -0,0 +1,25 @@
package nns
/*
Owner

Let's use a package comment everywhere (like in the netmap contract) -- before the package keyword.

Let's use a package comment everywhere (like in the netmap contract) -- before the `package` keyword.
fyrchik marked this conversation as resolved
dstepanov-yadro approved these changes 2023-05-12 06:57:56 +00:00
acid-ant approved these changes 2023-05-12 08:03:20 +00:00
aarifullin force-pushed feature/document_contract_storage_schemes from da81fd7ff6 to 46e104102f 2023-05-12 11:46:35 +00:00 Compare
aarifullin force-pushed feature/document_contract_storage_schemes from 46e104102f to 8dd198faa0 2023-05-12 11:50:19 +00:00 Compare
aarifullin force-pushed feature/document_contract_storage_schemes from 8dd198faa0 to a8029c71cd 2023-05-12 11:51:29 +00:00 Compare
aarifullin requested review from dstepanov-yadro 2023-05-12 11:51:42 +00:00
aarifullin requested review from acid-ant 2023-05-12 11:51:45 +00:00
acid-ant approved these changes 2023-05-12 11:55:02 +00:00
fyrchik approved these changes 2023-05-12 12:02:17 +00:00
@ -77,0 +81,4 @@
|-----------------------|------------|----------------------------------|
| `netmapScriptHash` | Hash160 | netmap contract hash |
| `containerScriptHash` | Hash160 | container contract hash |
| circulationKey | int | the token circulation key value |
Owner

Is it variable length?

Is it variable length?
Author
Member

Right, it's non-const

Right, it's non-`const`
fyrchik marked this conversation as resolved
fyrchik merged commit a8029c71cd into master 2023-05-12 12:46:53 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-contract#22
No description provided.