Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional stats #42

Open
11 tasks
alexvanin opened this issue Jun 9, 2022 · 0 comments
Open
11 tasks

Additional stats #42

alexvanin opened this issue Jun 9, 2022 · 0 comments
Labels
epic A collection of related issues I2 Regular impact S4 Routine U4 Nothing urgent

Comments

@alexvanin
Copy link
Contributor

alexvanin commented Jun 9, 2022

... ✍️ WIP

Inspired by siastats.info

	ctx := context.Background()
	pk, err := keys.NewPrivateKey()
	exitErr(err)
	cli, err := client.New(pk, "wss://rpc01.morph.testnet.fs.neo.org:51331/ws", client.WithContext(ctx))
	exitErr(err)
	cnr, err := util.Uint160DecodeStringLE("9dbd2b5e67568ed285c3d6f96bac4edf5e1efba0")
	exitErr(err)
	cnrClient, err := cntClient.NewFromMorph(cli, cnr, 0)
	exitErr(err)
	list, err := cnrClient.ListLoadEstimationsByEpoch(6438)
	exitErr(err)
	total := uint64(0)
	for i := range list {
		est, err := cnrClient.GetUsedSpaceEstimations(list[i])
		exitErr(err)
		for j := range est.Values {
			sz := est.Values[j].Size
			total += sz
			fmt.Println(sz, est.ContainerID.String())
		}
	}
	fmt.Println(total)
  • Deposited GAS
  • Basic Storage pricing per GiB without audit
  • Storage pricing per GiB with audit (calculate average price of nodes)
  • Host monitor with details: IP, locodes, etc.
  • Capacity
  • Outage (number of node exits from network map)
  • Side chain monitor: blocks, transactions
  • Profitability
@roman-khimov roman-khimov added U4 Nothing urgent S4 Routine I2 Regular impact epic A collection of related issues labels Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic A collection of related issues I2 Regular impact S4 Routine U4 Nothing urgent
Projects
None yet
Development

No branches or pull requests

2 participants