contracts

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(p *pool.Pool, contractHash util.Uint160) (*Container, error)

NewContainer creates Container to interact with 'container' contract in morph chain.

func (*Container) Total

func (c *Container) Total() (int64, error)

type NNS

type NNS struct {
	// contains filtered or unexported fields
}

func NewNNS

func NewNNS(p *pool.Pool, contractHash util.Uint160) (*NNS, error)

NewNNS creates NNS to interact with 'nns' contract in morph chain.

func (*NNS) ResolveFSContract

func (c *NNS) ResolveFSContract(name string) (util.Uint160, error)

type NNSNoOp

type NNSNoOp struct {
}

func (*NNSNoOp) ResolveFSContract

func (c *NNSNoOp) ResolveFSContract(_ string) (util.Uint160, error)

type Netmap

type Netmap struct {
	// contains filtered or unexported fields
}

func NewNetmap

func NewNetmap(p NetmapArgs) (*Netmap, error)

NewNetmap creates Netmap to interact with 'netmap' contract in morph chain.

func (*Netmap) Epoch

func (c *Netmap) Epoch() (int64, error)

func (*Netmap) FetchCandidates

func (c *Netmap) FetchCandidates() (monitor.NetmapCandidatesInfo, error)

func (*Netmap) FetchInnerRingKeys

func (c *Netmap) FetchInnerRingKeys() (keys.PublicKeys, error)

func (*Netmap) FetchNetmap

func (c *Netmap) FetchNetmap() (monitor.NetmapInfo, error)

func (*Netmap) Netmap

func (c *Netmap) Netmap() ([]*netmap.NodeInfo, error)

func (*Netmap) NetmapCandidates

func (c *Netmap) NetmapCandidates() ([]*netmap.NodeInfo, error)

type NetmapArgs

type NetmapArgs struct {
	Pool           *pool.Pool
	NetmapContract util.Uint160
	Logger         *zap.Logger
}

Jump to

Keyboard shortcuts

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