nspcc-dev / neofs-node

NeoFS is a decentralized distributed object storage integrated with the Neo blockchain
https://fs.neo.org
GNU General Public License v3.0
32 stars 38 forks source link

Add extra export/import commands for chain redeployment #2129

Closed alexvanin closed 2 weeks ago

alexvanin commented 1 year ago

Is your feature request related to a problem? Please describe.

neofs-adm has morph dump-containers and morph restore-containers commands for exporting and importing container data. Complete chain redeployment requires more contract data:

Describe the solution you'd like

morph export containers ...
morph export balances ...
morph export domains ...

morph import containers ...
morph import balances ...
morph import domains ...
KirillovDenis commented 1 year ago

Tasks

KirillovDenis commented 1 year ago

Do we need dump balances? It seems we already have this (or does it act different?):

$ ./bin/neofs-adm morph dump-balances -h
Dump GAS balances

Usage:
  neofs-adm morph dump-balances [flags]

Flags:
  -a, --alphabet              Dump balances of alphabet contracts
  -h, --help                  help for dump-balances
  -p, --proxy                 Dump balances of the proxy contract
  -r, --rpc-endpoint string   N3 RPC node endpoint
      --script-hash           Use script-hash format for addresses
  -s, --storage               Dump balances of storage nodes from the current netmap
fyrchik commented 1 year ago

I'd like to make all of them similar (export/import). We can have a --text flag for each to print for a user. And for balances we can retain all the flags.

roman-khimov commented 2 weeks ago

See https://github.com/nspcc-dev/neofs-node/pull/2138#pullrequestreview-2408270666, WONTFIX.