blockchain

package
v0.0.0-...-1da9c7e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Methods and types for blockchain entities and interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StakePoolSettings

type StakePoolSettings struct {
	DelegateWallet string  `json:"delegate_wallet"`
	NumDelegates   int     `json:"num_delegates"`
	ServiceCharge  float64 `json:"service_charge"`
}

StakePoolSettings information.

type StorageNode

type StorageNode struct {
	ID                string `json:"id"`
	Baseurl           string `json:"url"`
	AllocationVersion int64  `json:"-"`
	AllocationRoot    string `json:"-"`
	LatestWM          *marker.WriteMarker
	// contains filtered or unexported fields
}

StorageNode represents a storage node (blobber)

func (*StorageNode) IsSkip

func (sn *StorageNode) IsSkip() bool

func (*StorageNode) SetSkip

func (sn *StorageNode) SetSkip(t bool)

type UpdateStakePoolSettings

type UpdateStakePoolSettings struct {
	DelegateWallet *string  `json:"delegate_wallet,omitempty"`
	NumDelegates   *int     `json:"num_delegates,omitempty"`
	ServiceCharge  *float64 `json:"service_charge,omitempty"`
}

UpdateStakePoolSettings represent stake pool information of a provider node.

type UpdateValidationNode

type UpdateValidationNode struct {
	ID                string                   `json:"id"`
	BaseURL           *string                  `json:"url"`
	StakePoolSettings *UpdateStakePoolSettings `json:"stake_pool_settings"`
}

UpdateValidationNode represents a validation node (miner) update

type ValidationNode

type ValidationNode struct {
	ID                string            `json:"id"`
	BaseURL           string            `json:"url"`
	StakePoolSettings StakePoolSettings `json:"stake_pool_settings"`
}

ValidationNode represents a validation node (miner)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL