Skip to content

Commit

Permalink
[#275] balance: Document contract storage model
Browse files Browse the repository at this point in the history
Add comments (outside the docs) with key-value storage structure and
some explanations. The memory mode will allow to more precisely
understand and migrate the contract storage.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Feb 2, 2023
1 parent 171e1df commit 5f66e92
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions balance/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,23 @@ when NeoFS contract has transferred GAS assets back to the user.
type: Integer
*/
package balance

/*
Contract storage model.
# Summary
Key-value storage format:
- 'notary' -> bool
is notary mode disabled
- 'netmapScriptHash' -> interop.Hash160
Netmap contract reference
- 'containerScriptHash' -> interop.Hash160
Container contract reference
- 'MainnetGAS' -> int
total amount of Mainchain GAS deployed in the NeoFS network
# Setting
Contract can be deployed in notary and notary-disabled mode.
To handle some events, the contract refers to other contracts.
*/

0 comments on commit 5f66e92

Please sign in to comment.