From 5f66e92b614616f7b8861c156f5a6b8430e1cc68 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 2 Feb 2023 11:55:24 +0400 Subject: [PATCH] [#275] balance: Document contract storage model 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 --- balance/doc.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/balance/doc.go b/balance/doc.go index cada2122..401ece11 100644 --- a/balance/doc.go +++ b/balance/doc.go @@ -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. +*/