nspcc-dev / fs-neo-org

It's a landing page that describes all the advantages of using it and everything under the hood of NeoFS.
https://fs.neo.org/
GNU General Public License v3.0
0 stars 0 forks source link

Basic income storage price calculator #1

Closed alexvanin closed 1 year ago

alexvanin commented 2 years ago

I liked the way it looks in https://neo.org/ (NEO & Gas calculator).

alexvanin commented 1 year ago

image

cthulhu-rider commented 1 year ago

according to https://fs.neo.org/hosting/, we should to support network settings' requests in https://github.com/nspcc-dev/neofs-http-gw/ to implement this feature

roman-khimov commented 1 year ago

My suggestion is to have these parameters hardcoded (we haven't ever changed them yet) for now and leave an issue to resolve it in future. In this bright and prosperous future we'll also display other fee parameters like the network page on https://governance.neo.org/

cthulhu-rider commented 1 year ago

lets assume values have been already received somehow

e.g. from MainNet:

$ neofs-cli -r st1.storage.fs.neo.org:8080 netmap netinfo

you need:

then GAS price for N GB/month will be:

N x P  x (30 x 24 x 60 x 60) / E / T  / 10^12
roman-khimov commented 1 year ago

Mainnet:

Epoch: 17946
Network magic: [net 0x572dfa5] 91414437
Time per block: 15s
NeoFS network configuration (system)
  Audit fee: 50000000
  Storage price: 100000
  Container fee: 1000000000
  Container alias fee: 200
  EigenTrust alpha: 0.1
  Number of EigenTrust iterations: 4
  Epoch duration: 240
  Inner Ring candidate fee: 10000000000
  Maximum object size: 67108864
  Withdrawal fee: 100000000
  Homomorphic hashing disabled: false
  Maintenance mode allowed: true
NeoFS network configuration (other)

Testnet:

Epoch: 8745
Network magic: [net 0x2bdb2b5f] 735783775
Time per block: 15s
NeoFS network configuration (system)
  Audit fee: 10000
  Storage price: 100000000
  Container fee: 1000000000
  Container alias fee: 90000000000
  EigenTrust alpha: 0.1
  Number of EigenTrust iterations: 4
  Epoch duration: 240
  Inner Ring candidate fee: 10000000000
  Maximum object size: 67108864
  Withdrawal fee: 100000000
  Homomorphic hashing disabled: false
  Maintenance mode allowed: false
NeoFS network configuration (other)