tests

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: GPL-3.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InnerRing added in v0.17.0

func InnerRing(tb testing.TB, e *neotest.Executor) keys.PublicKeys

InnerRing reads Inner Ring composition from given neotest.Executor using RoleManagement contract. The list can be set via SetInnerRing.

func RegisterContractInNNS added in v0.21.0

func RegisterContractInNNS(t *testing.T, e *neotest.Executor, params RegisterContractInNNSParams)

RegisterContractInNNS make registration of the contract hash in nns contract.

func SetInnerRing added in v0.17.0

func SetInnerRing(tb testing.TB, e *neotest.Executor, _keys keys.PublicKeys)

SetInnerRing sets Inner Ring composition in given neotest.Executor using RoleManagement contract. The list can be read via InnerRing.

func TickEpoch added in v0.21.0

func TickEpoch(t *testing.T, e *neotest.Executor, signers ...neotest.Signer)

TickEpoch increments epoch value by one.

Types

type RegisterContractInNNSParams added in v0.21.0

type RegisterContractInNNSParams struct {
	// Name is a contract name. Domain will be registered in the `.neofs` top-level domain.
	// You custom contract names must not collide with system contract names. See rpc/nns/names.go.
	Name         string
	ContractHash util.Uint160
	Email        string
	Refresh      int64
	Retry        int64
	// Expire in milliseconds
	Expire int64
	TTL    int64
}

RegisterContractInNNSParams is a param struct for RegisterContractInNNS func.

func NewRegisterContractInNNSParams added in v0.21.0

func NewRegisterContractInNNSParams(name string, contractHash util.Uint160) RegisterContractInNNSParams

NewRegisterContractInNNSParams is a constructor for RegisterContractInNNSParams.

Directories

Path Synopsis
Package dump provides I/O operations for collected states of the Neo smart contracts.
Package dump provides I/O operations for collected states of the Neo smart contracts.
Package migration provides framework to test migration of the NeoFS smart contracts.
Package migration provides framework to test migration of the NeoFS smart contracts.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳